2014-08-15 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / ChangeLog
blobd7689423fca6a3b44ee5c3f3d3f1daa10e520a2e
1 2014-08-15  Richard Biener  <rguenther@suse.de>
3         * fold-const.c (tree_swap_operands_p): Put all constants
4         last, also strip sign-changing NOPs when considering further
5         canonicalization.  Canonicalize also when optimizing for size.
7 2014-08-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
10         one_match > zero_match case to just before simple_sequence.
12 2014-08-15  Richard Biener  <rguenther@suse.de>
14         * data-streamer.h (streamer_string_index, string_for_index):
15         Remove.
16         * data-streamer-out.c (streamer_string_index): Make static.
17         * data-streamer-in.c (string_for_index): Likewise.
18         * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
19         * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
21 2014-08-15  Richard Biener  <rguenther@suse.de>
23         PR tree-optimization/62031
24         * tree-data-ref.c (dr_analyze_indices): Do not set
25         DR_UNCONSTRAINED_BASE.
26         (dr_may_alias_p): All indirect accesses have to go the
27         formerly DR_UNCONSTRAINED_BASE path.
28         * tree-data-ref.h (struct indices): Remove
29         unconstrained_base member.
30         (DR_UNCONSTRAINED_BASE): Remove.
32 2014-08-15  Jakub Jelinek  <jakub@redhat.com>
34         PR middle-end/62092
35         * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
36         OMP_CLAUSE_SHARED for global vars if the global var is mentioned
37         in OMP_CLAUSE_MAP in some outer target region.
39 2014-08-15  Bin Cheng  <bin.cheng@arm.com>
41         * tree-ssa-loop-ivopts.c (ivopts_data): New field
42         name_expansion_cache.
43         (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
44         (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
45         (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
46         (difference_cannot_overflow_p): New parameter.  Use affine
47         expansion for equality check.
48         (iv_elimination_compare_lt): Pass new argument.
50 2014-08-14  DJ Delorie  <dj@redhat.com>
52         * config/rl78/rl78-real.md (addqi3_real): Allow adding global
53         variables to the accumulator.
55         * config/rl78/predicates.md (rl78_near_mem_operand): New.
56         * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
57         (movhi_virt_mm): Split out near mem-mem moves to avoid problems
58         with far-far moves.
60         * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
61         * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
62         (umulqihi3_virt): Likewise.
63         * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
64         (umulqihi3_real): Likewise.
66         * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
68 2014-08-14  Jan Hubicka  <hubicka@ucw.cz>
70         PR tree-optimization/62091
71         * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
72         function_entry_reached.
73         (walk_aliased_vdefs): Clear it here.
74         * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
76 2014-08-14  Jan Hubicka  <hubicka@ucw.cz>
78         * ipa-utils.h (compare_virtual_tables): Declare.
79         * ipa-devirt.c (odr_subtypes_equivalent_p): New function
81 2014-08-14  Marek Polacek  <polacek@redhat.com>
83         DR 458
84         * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
85         (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
87 2014-08-14  Tom de Vries  <tom@codesourcery.com>
89         * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
91 2014-08-14  Tom de Vries  <tom@codesourcery.com>
93         PR rtl-optimization/62004
94         PR rtl-optimization/62030
95         * ifcvt.c (rtx_interchangeable_p): New function.
96         (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
97         * emit-rtl.h (mem_attrs_eq_p): Declare.
99 2014-08-14  Roman Gareev  <gareevroman@gmail.com>
101         * graphite-scop-detection.c:
102         Add inclusion of cp-tree.h.
103         (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
104         in case they are pointers to object types
106 2014-08-14  Richard Biener  <rguenther@suse.de>
108         * BASE-VER: Change to 5.0.0
110 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
111             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
112             Anna Tikhonova  <anna.tikhonova@intel.com>
113             Ilya Tocar  <ilya.tocar@intel.com>
114             Andrey Turetskiy  <andrey.turetskiy@intel.com>
115             Ilya Verbin  <ilya.verbin@intel.com>
116             Kirill Yukhin  <kirill.yukhin@intel.com>
117             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
119         * config/i386/sse.md (define_mode_attr avx512): New.
120         (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
121         V4DI modes.
122         (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
123         (define_mode_attr ssse3_avx2): Ditto.
124         (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
125         (define_mode_attr avx2_avx512bw): New.
126         (define_mode_attr ssedoublemodelower): New.
127         (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
128         V32HI, V64QI modes.
129         (define_mode_attr ssebytemode): Allow V8DI modes.
130         (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
131         (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
132         (define_mode_attr ssePSmode2): New.
133         (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
134         V16HI, V32HI modes.
135         (define_mode_attr dbpsadbwmode): New.
136         (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
137         V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
138         (vi8_sse4_1_avx2_avx512): New.
139         (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
140         mode attribute.
141         (define_mode_attr blendbits): Move before its immediate use.
143 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
144             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
145             Anna Tikhonova  <anna.tikhonova@intel.com>
146             Ilya Tocar  <ilya.tocar@intel.com>
147             Andrey Turetskiy  <andrey.turetskiy@intel.com>
148             Ilya Verbin  <ilya.verbin@intel.com>
149             Kirill Yukhin  <kirill.yukhin@intel.com>
150             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
152         * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
153         * config/i386/subst.md
154         (define_mode_iterator SUBST_V): Update.
155         (define_mode_iterator SUBST_A): Ditto.
156         (define_subst_attr "mask_operand7"): New.
157         (define_subst_attr "mask_operand10"): New.
158         (define_subst_attr "mask_operand_arg34") : New.
159         (define_subst_attr "mask_expand_op3"): New.
160         (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
161         (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
162         (define_subst_attr "mask_avx512vl_condition"): New.
163         (define_subst_attr "round_mask_operand4"): Ditto.
164         (define_subst_attr "round_mask_scalar_op3"): Delete.
165         (define_subst_attr "round_mask_op4"): New.
166         (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
167         V16SImode.
168         (define_subst_attr "round_modev8sf_condition"): New.
169         (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
170         <MODE>mode.
171         (define_subst_attr "round_saeonly_mask_operand4"): New.
172         (define_subst_attr "round_saeonly_mask_op4"): New.
173         (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
174         V8DImode, V16SImode.
175         (define_subst_attr "round_saeonly_modev8sf_condition"): New.
176         (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
177         (define_subst_attr "mask_expand4_args"): New.
178         (define_subst "mask_expand4"): New.
180 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
181             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
182             Anna Tikhonova  <anna.tikhonova@intel.com>
183             Ilya Tocar  <ilya.tocar@intel.com>
184             Andrey Turetskiy  <andrey.turetskiy@intel.com>
185             Ilya Verbin  <ilya.verbin@intel.com>
186             Kirill Yukhin  <kirill.yukhin@intel.com>
187             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
189         * config/i386/i386.md
190         (define_attr "isa"): Add avx512bw,noavx512bw.
191         (define_attr "enabled"): Ditto.
192         (define_split): Add 32/64-bit mask logic.
193         (define_insn "*k<logic>qi"): New.
194         (define_insn "*k<logic>hi"): New.
195         (define_insn "*anddi_1"): Add mask version.
196         (define_insn "*andsi_1"): Ditto.
197         (define_insn "*<code><mode>_1"): Ditto.
198         (define_insn "*<code>hi_1"): Ditto.
199         (define_insn "kxnor<mode>"): New.
200         (define_insn "kunpcksi"): New.
201         (define_insn "kunpckdi"): New.
202         (define_insn "*one_cmpl<mode>2_1"): Add mask version.
203         (define_insn "*one_cmplhi2_1"): Ditto.
205 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
206             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
207             Anna Tikhonova  <anna.tikhonova@intel.com>
208             Ilya Tocar  <ilya.tocar@intel.com>
209             Andrey Turetskiy  <andrey.turetskiy@intel.com>
210             Ilya Verbin  <ilya.verbin@intel.com>
211             Kirill Yukhin  <kirill.yukhin@intel.com>
212             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
214         * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
215         V32HImode.
217 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
218             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
219             Anna Tikhonova  <anna.tikhonova@intel.com>
220             Ilya Tocar  <ilya.tocar@intel.com>
221             Andrey Turetskiy  <andrey.turetskiy@intel.com>
222             Ilya Verbin  <ilya.verbin@intel.com>
223             Kirill Yukhin  <kirill.yukhin@intel.com>
224             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
226         * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
227         registers.
228         (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
229         (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
230         xmm/ymm16+ when availble.
231         * config/i386/i386.h
232         (HARD_REGNO_NREGS): Add mask regs.
233         (VALID_AVX512F_REG_MODE): Ditto.
234         (VALID_AVX512F_REG_MODE) : Define.
235         (VALID_MASK_AVX512BW_MODE): Ditto.
236         (reg_class) (MASK_REG_P(X)): Define.
237         * config/i386/i386.md: Do not split long moves with mask register,
238         use kmovb if avx512bw is availible.
239         (movdi_internal): Handle mask registers.
241 2014-08-14  Richard Biener  <rguenther@suse.de>
243         PR tree-optimization/62081
244         * tree-ssa-loop.c (pass_fix_loops): New pass.
245         (pass_tree_loop::gate):  Do not fixup loops here.
246         * tree-pass.h (make_pass_fix_loops): Declare.
247         * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
249 2014-08-14  Richard Biener  <rguenther@suse.de>
251         * tree.c (type_hash_lookup, type_hash_add): Merge into ...
252         (type_hash_canon): ... this and avoid 2nd lookup for the add.
254 2014-08-14  Richard Biener  <rguenther@suse.de>
256         PR tree-optimization/62090
257         * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
258         (fold_builtin_2): Do not fold sprintf.
259         (fold_builtin_3): Likewise.
260         * gimple-fold.c (gimple_fold_builtin_sprintf): New function
261         moved from builtins.c.
262         (gimple_fold_builtin): Fold sprintf.
264 2014-08-14  Richard Biener  <rguenther@suse.de>
266         PR rtl-optimization/62079
267         * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
268         run cleanup_cfg.
270 2014-08-14  Ilya Enkovich  <ilya.enkovich@intel.com>
272         * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
273         current_function_decl.
275 2014-08-14  Ilya Enkovich  <ilya.enkovich@intel.com>
277         * cgraph.c (cgraph_node::function_symbol): Fix wrong
278         cgraph_function_node to cgraph_node::function_symbol
279         refactoring.
281 2014-08-14  Zhenqiang Chen  <zhenqiang.chen@arm.com>
283         * config/arm/arm.c (arm_option_override): Set max_insns_skipped
284         to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
286 2014-08-13  Chen Gang  gang.chen.5i5j@gmail.com
288         * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
289         warning.
291 2014-08-13  Roman Gareev  <gareevroman@gmail.com>
293         * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
294         generator.
296 2014-08-12  Jakub Jelinek  <jakub@redhat.com>
298         PR target/62025
299         * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
300         any registers that are used in mem_insn.
302 2014-08-12  Steve Ellcey  <sellcey@mips.com>
304         * config/mips/mips.h (ASM_SPEC): Pass float options to assembler. 
306 2014-08-12  Steve Ellcey  <sellcey@mips.com>
308         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
309         (MULTILIB_DIRNAMES): Ditto.
310         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
311         * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
312         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
313         * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
314         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
315         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
317 2014-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
319         PR target/61413
320         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
321         of __ARM_SIZEOF_WCHAR_T.
323 2014-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
325         PR target/62098
326         * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
327         Remove unnecessary attributes.
329 2014-08-12  Yury Gribov  <y.gribov@samsung.com>
331         * internal-fn.c (init_internal_fns): Fix off-by-one.
333 2014-08-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
334             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
335             Anna Tikhonova  <anna.tikhonova@intel.com>
336             Ilya Tocar  <ilya.tocar@intel.com>
337             Andrey Turetskiy  <andrey.turetskiy@intel.com>
338             Ilya Verbin  <ilya.verbin@intel.com>
339             Kirill Yukhin  <kirill.yukhin@intel.com>
340             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
342         * config/i386/i386.c (standard_sse_constant_opcode): Use
343         vpxord/vpternlog if avx512 is availible.
345 2014-08-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
347         PR middle-end/62103
348         * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
349         bitfields, that is when size doesn't match the size of type or the
350         size of the constructor.
352 2014-08-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
354         * config/rs6000/constraints.md (wh constraint): New constraint,
355         for FP registers if direct move is available.
356         (wi constraint): New constraint, for VSX/FP registers that can
357         handle 64-bit integers.
358         (wj constraint): New constraint for VSX/FP registers that can
359         handle 64-bit integers for direct moves.
360         (wk constraint): New constraint for VSX/FP registers that can
361         handle 64-bit doubles for direct moves.
362         (wy constraint): Make documentation match implementation.
364         * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
365         scalar_in_vmx_p field to simplify tests of whether SFmode or
366         DFmode can go in the Altivec registers.
367         (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
368         (rs6000_setup_reg_addr_masks): Likewise.
369         (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
370         field, and wh/wi/wj/wk constraints.
371         (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
372         the wh/wi/wj/wk constraints.
373         (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
374         upper registers, prefer VSX registers unless the operation is a
375         memory operation with REG+OFFSET addressing.
377         * config/rs6000/vsx.md (VSr mode attribute): Add support for
378         DImode.  Change SFmode to use ww constraint instead of d to allow
379         SF registers in the upper registers.
380         (VSr2): Likewise.
381         (VSr3): Likewise.
382         (VSr5): Fix thinko in comment.
383         (VSa): New mode attribute that is an alternative to wa, that
384         returns the VSX register class that a mode can go in, but may not
385         be the preferred register class.
386         (VS_64dm): New mode attribute for appropriate register classes for
387         referencing 64-bit elements of vectors for direct moves and normal
388         moves.
389         (VS_64reg): Likewise.
390         (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
391         register allocator to only registers the data type can handle.
392         (vsx_le_perm_load_<mode>): Likewise.
393         (vsx_le_perm_store_<mode>): Likewise.
394         (vsx_xxpermdi2_le_<mode>): Likewise.
395         (vsx_xxpermdi4_le_<mode>): Likewise.
396         (vsx_lxvd2x2_le_<mode>): Likewise.
397         (vsx_lxvd2x4_le_<mode>): Likewise.
398         (vsx_stxvd2x2_le_<mode>): Likewise.
399         (vsx_add<mode>3): Likewise.
400         (vsx_sub<mode>3): Likewise.
401         (vsx_mul<mode>3): Likewise.
402         (vsx_div<mode>3): Likewise.
403         (vsx_tdiv<mode>3_internal): Likewise.
404         (vsx_fre<mode>2): Likewise.
405         (vsx_neg<mode>2): Likewise.
406         (vsx_abs<mode>2): Likewise.
407         (vsx_nabs<mode>2): Likewise.
408         (vsx_smax<mode>3): Likewise.
409         (vsx_smin<mode>3): Likewise.
410         (vsx_sqrt<mode>2): Likewise.
411         (vsx_rsqrte<mode>2): Likewise.
412         (vsx_tsqrt<mode>2_internal): Likewise.
413         (vsx_fms<mode>4): Likewise.
414         (vsx_nfma<mode>4): Likewise.
415         (vsx_eq<mode>): Likewise.
416         (vsx_gt<mode>): Likewise.
417         (vsx_ge<mode>): Likewise.
418         (vsx_eq<mode>_p): Likewise.
419         (vsx_gt<mode>_p): Likewise.
420         (vsx_ge<mode>_p): Likewise.
421         (vsx_xxsel<mode>): Likewise.
422         (vsx_xxsel<mode>_uns): Likewise.
423         (vsx_copysign<mode>3): Likewise.
424         (vsx_float<VSi><mode>2): Likewise.
425         (vsx_floatuns<VSi><mode>2): Likewise.
426         (vsx_fix_trunc<mode><VSi>2): Likewise.
427         (vsx_fixuns_trunc<mode><VSi>2): Likewise.
428         (vsx_x<VSv>r<VSs>i): Likewise.
429         (vsx_x<VSv>r<VSs>ic): Likewise.
430         (vsx_btrunc<mode>2): Likewise.
431         (vsx_b2trunc<mode>2): Likewise.
432         (vsx_floor<mode>2): Likewise.
433         (vsx_ceil<mode>2): Likewise.
434         (vsx_<VS_spdp_insn>): Likewise.
435         (vsx_xscvspdp): Likewise.
436         (vsx_xvcvspuxds): Likewise.
437         (vsx_float_fix_<mode>2): Likewise.
438         (vsx_set_<mode>): Likewise.
439         (vsx_extract_<mode>_internal1): Likewise.
440         (vsx_extract_<mode>_internal2): Likewise.
441         (vsx_extract_<mode>_load): Likewise.
442         (vsx_extract_<mode>_store): Likewise.
443         (vsx_splat_<mode>): Likewise.
444         (vsx_xxspltw_<mode>): Likewise.
445         (vsx_xxspltw_<mode>_direct): Likewise.
446         (vsx_xxmrghw_<mode>): Likewise.
447         (vsx_xxmrglw_<mode>): Likewise.
448         (vsx_xxsldwi_<mode>): Likewise.
449         (vsx_xscvdpspn): Tighten constraints to only use register classes
450         the types use.
451         (vsx_xscvspdpn): Likewise.
452         (vsx_xscvdpspn_scalar): Likewise.
454         * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
455         wj, and wk constraints.
456         (GPR_REG_CLASS_P): New helper macro for register classes targeting
457         general purpose registers.
459         * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
460         direct moves.
461         (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
462         DImode instead of wm.  Use wk constraint for direct move of DFmode
463         instead of wm.
464         (extendsidi2_lfiwax): Likewise.
465         (lfiwax): Likewise.
466         (lfiwzx): Likewise.
467         (movdi_internal64): Likewise.
469         * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
470         wk constraints. Make the wy constraint documentation match them
471         implementation.
473 2014-08-11  Mircea Namolaru  <mircea.namolaru@inria.fr>
475         Replacement of isl_int by isl_val
476         * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
477         (compute_bounds_for_param): use isl_val instead of isl_int
478         (compute_bounds_for_loop): likewise
479         * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
480         (build_linearized_memory_access): use isl_val instead of isl_int
481         (pdr_stride_in_loop): likewise
482         * graphite-optimize-isl.c:
483         (getPrevectorMap): use isl_val instead of isl_int
484         * graphite-poly.c:
485         (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
486         graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
487         (extern the_isl_ctx): declare
488         (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
489         (extract_affine_gmp): likewise
490         (wrap): likewise
491         (build_loop_iteration_domains): likewise
492         (add_param_constraints): likewise
494 2014-08-11  Richard Biener  <rguenther@suse.de>
496         PR tree-optimization/62075
497         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
498         handle uses in patterns.
500 2014-08-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
501             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
502             Anna Tikhonova  <anna.tikhonova@intel.com>
503             Ilya Tocar  <ilya.tocar@intel.com>
504             Andrey Turetskiy  <andrey.turetskiy@intel.com>
505             Ilya Verbin  <ilya.verbin@intel.com>
506             Kirill Yukhin  <kirill.yukhin@intel.com>
507             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
509         * common/config/i386/i386-common.c
510         (OPTION_MASK_ISA_AVX512VL_SET): Define.
511         (OPTION_MASK_ISA_AVX512F_UNSET): Update.
512         (ix86_handle_option): Handle OPT_mavx512vl.
513         * config/i386/cpuid.h (bit_AVX512VL): Define.
514         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
515         set -mavx512vl accordingly.
516         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
517         OPTION_MASK_ISA_AVX512VL.
518         * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
519         (ix86_option_override_internal): Define PTA_AVX512VL, handle
520         PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
521         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
522         * config/i386/i386.h (TARGET_AVX512VL): Define.
523         (TARGET_AVX512VL_P(x)): Ditto.
524         * config/i386/i386.opt: Add mavx512vl.
526 2014-08-11  Felix Yang  <fei.yang0953@gmail.com>
528         PR tree-optimization/62073
529         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
530         a basic block.
532 2014-08-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
533             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
534             Anna Tikhonova  <anna.tikhonova@intel.com>
535             Ilya Tocar  <ilya.tocar@intel.com>
536             Andrey Turetskiy  <andrey.turetskiy@intel.com>
537             Ilya Verbin  <ilya.verbin@intel.com>
538             Kirill Yukhin  <kirill.yukhin@intel.com>
539             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
541         * common/config/i386/i386-common.c
542         (OPTION_MASK_ISA_AVX512BW_SET) : Define.
543         (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
544         (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
545         (ix86_handle_option): Handle OPT_mavx512bw.
546         * config/i386/cpuid.h (bit_AVX512BW): Define.
547         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
548         set -mavx512bw accordingly.
549         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
550         OPTION_MASK_ISA_AVX512BW.
551         * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
552         (ix86_option_override_internal): Define PTA_AVX512BW, handle
553         PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
554         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
555         * config/i386/i386.h (TARGET_AVX512BW): Define.
556         (TARGET_AVX512BW_P(x)): Ditto.
557         * config/i386/i386.opt: Add mavx512bw.
559 2014-08-11  Richard Biener  <rguenther@suse.de>
561         PR tree-optimization/62070
562         * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
563         Remove SSA checking.
565 2014-08-11  Yury Gribov  <y.gribov@samsung.com>
567         * asan.c (asan_check_flags): New enum.
568         (build_check_stmt_with_calls): Removed function.
569         (build_check_stmt): Split inlining logic to
570         asan_expand_check_ifn.
571         (instrument_derefs): Rename parameter.
572         (instrument_mem_region_access): Rename parameter.
573         (instrument_strlen_call): Likewise.
574         (asan_expand_check_ifn): New function.
575         (asan_instrument): Remove old code.
576         (pass_sanopt::execute): Change handling of
577         asan-instrumentation-with-call-threshold.
578         (asan_clear_shadow): Fix formatting.
579         (asan_function_start): Likewise.
580         (asan_emit_stack_protection): Likewise.
581         * doc/invoke.texi (asan-instrumentation-with-call-threshold):
582         Update description.
583         * internal-fn.c (expand_ASAN_CHECK): New function.
584         * internal-fn.def (ASAN_CHECK): New internal function.
585         * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
586         Update description.
587         (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
588         * tree.c: Small comment fix.
590 2014-08-11  Yury Gribov  <y.gribov@samsung.com>
592         * gimple.c (gimple_call_fnspec): Support internal functions.
593         (gimple_call_return_flags): Use const.
594         * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
595         * internal-fn.def: Add fnspec information.
596         * internal-fn.h (internal_fn_fnspec): New function.
597         (init_internal_fns): Declare new function.
598         * internal-fn.c (internal_fn_fnspec_array): New global variable.
599         (init_internal_fns): New function.
600         * tree-core.h: Update macro call.
601         * tree.c (build_common_builtin_nodes): Initialize internal fns.
603 2014-08-10  Gerald Pfeifer  <gerald@pfeifer.com>
605         * lto-streamer.h (struct output_block::symbol): Change from
606         struct symtab_node to plain symtab_node.
607         (referenced_from_this_partition_p): Change first parameter
608         from struct symtab_node to plain symtab_node.
610 2014-08-10  Marek Polacek  <polacek@redhat.com>
612         PR c/51849
613         * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
615 2014-08-09  Jan Hubicka  <hubicka@ucw.cz>
617         * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
618         DECL correctly; do not give up on types in static storage.
620 2014-08-09  Paolo Carlini  <paolo.carlini@oracle.com>
622         * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
624 2014-08-09  Roman Gareev  <gareevroman@gmail.com>
626         * graphite-isl-ast-to-gimple.c:
627         (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
629         * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
631 2014-08-08  Guozhi Wei  <carrot@google.com>
633         * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
635 2014-08-08  Cary Coutant  <ccoutant@google.com>
637         * dwarf2out.c (get_skeleton_type_unit): Remove.
638         (output_skeleton_debug_sections): Remove skeleton type units.
639         (output_comdat_type_unit): Likewise.
640         (dwarf2out_finish): Likewise.
642 2014-08-07  Yi Yang  <ahyangyi@google.com>
644         * predict.c (expr_expected_value_1): Remove the redundant assignment.
646 2014-08-08  Richard Biener  <rguenther@suse.de>
648         * lto-streamer.h (struct lto_input_block): Make it a class
649         with a constructor.
650         (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
651         (struct lto_function_header, struct lto_simple_header,
652         struct lto_simple_header_with_strings,
653         struct lto_decl_header, struct lto_function_header): Make
654         a simple inheritance hieararchy.  Remove unused fields.
655         (struct lto_asm_header): Remove.
656         * lto-streamer-out.c (produce_asm): Adjust.
657         (lto_output_toplevel_asms): Likewise.
658         (produce_asm_for_decls): Likewise.
659         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
660         * data-streamer-in.c (string_for_index): Likewise.
661         * ipa-inline-analysis.c (inline_read_section): Likewise.
662         * ipa-prop.c (ipa_prop_read_section): Likewise.
663         (read_replacements_section): Likewise.
664         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
665         * lto-section-in.c (lto_create_simple_input_block): Likewise.
666         (lto_destroy_simple_input_block): Likewise.
667         * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
668         (lto_input_toplevel_asms): Likewise.
670 2014-08-08  Alexander Ivchenko  <alexander.ivchenko@intel.com>
671             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
672             Anna Tikhonova  <anna.tikhonova@intel.com>
673             Ilya Tocar  <ilya.tocar@intel.com>
674             Andrey Turetskiy  <andrey.turetskiy@intel.com>
675             Ilya Verbin  <ilya.verbin@intel.com>
676             Kirill Yukhin  <kirill.yukhin@intel.com>
677             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
679         * common/config/i386/i386-common.c
680         (OPTION_MASK_ISA_AVX512DQ_SET): Define.
681         (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
682         (ix86_handle_option): Handle OPT_mavx512dq.
683         * config/i386/cpuid.h (bit_AVX512DQ): Define.
684         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
685         set -mavx512dq accordingly.
686         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
687         OPTION_MASK_ISA_AVX512DQ.
688         * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
689         (ix86_option_override_internal): Define PTA_AVX512DQ, handle
690         PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
691         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
692         * config/i386/i386.h (TARGET_AVX512DQ): Define.
693         (TARGET_AVX512DQ_P(x)): Ditto.
694         * config/i386/i386.opt: Add mavx512dq.
696 2014-08-08  Richard Biener  <rguenther@suse.de>
698         * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
699         target_percent, target_percent_s): Export.
700         (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
701         fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
702         fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
703         fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
704         fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
705         Move to gimple-fold.c.
706         (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
707         strcat and strcpy.
708         (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
709         mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
710         (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
711         memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
712         (rewrite_call_expr_array): Remove.
713         (fold_builtin_sprintf_chk): Likewise.
714         (fold_builtin_snprintf_chk): Likewise.
715         (fold_builtin_varargs): Remove handling of sprintf_chk,
716         vsprintf_chk, snprintf_chk and vsnprintf_chk.
717         (gimple_fold_builtin_sprintf_chk): Remove.
718         (gimple_fold_builtin_snprintf_chk): Likewise.
719         (gimple_fold_builtin_varargs): Likewise.
720         (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
721         * predict.c (optimize_bb_for_size_p): Handle NULL bb.
722         * gimple.c (gimple_seq_add_seq_without_update): New function.
723         * gimple.h (gimple_seq_add_seq_without_update): Declare.
724         * gimple-fold.c: Include output.h.
725         (gsi_replace_with_seq_vops): New function, split out from ...
726         (gimplify_and_update_call_from_tree): ... here.
727         (replace_call_with_value): New function.
728         (replace_call_with_call_and_fold): Likewise.
729         (var_decl_component_p): Moved from builtins.c.
730         (gimple_fold_builtin_memory_op): Moved from builtins.c
731         fold_builtin_memory_op and rewritten to GIMPLE.
732         (gimple_fold_builtin_memset): Likewise.
733         (gimple_fold_builtin_strcpy): Likewise.
734         (gimple_fold_builtin_strncpy): Likewise.
735         (gimple_fold_builtin_strcat): Likewise.
736         (gimple_fold_builtin_fputs): Likewise.
737         (gimple_fold_builtin_memory_chk): Likewise.
738         (gimple_fold_builtin_stxcpy_chk): Likewise.
739         (gimple_fold_builtin_stxncpy_chk): Likewise.
740         (gimple_fold_builtin_snprintf_chk): Likewise.
741         (gimple_fold_builtin_sprintf_chk): Likewise.
742         (gimple_fold_builtin_strlen): New function.
743         (gimple_fold_builtin_with_strlen): New function split out from
744         gimple_fold_builtin.
745         (gimple_fold_builtin): Change signature and handle
746         bzero, memset, bcopy, memcpy, mempcpy and memmove folding
747         here.  Call gimple_fold_builtin_with_strlen.
748         (gimple_fold_call): Adjust.
750 2014-08-08  Kugan Vivekanandarajah  <kuganv@linaro.org>
752         * calls.c (precompute_arguments): Check
753          promoted_for_signed_and_unsigned_p and set the promoted mode.
754         (promoted_for_signed_and_unsigned_p): New function.
755         (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
756         and set the promoted mode.
757         * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
758         * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
759         SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
762 2014-08-08  Kugan Vivekanandarajah  <kuganv@linaro.org>
764         * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
765         instead of SUBREG_PROMOTED_UNSIGNED_SET.
766         (expand_call): Likewise.
767         * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
768         to get promoted mode.
769         * combine.c (record_promoted_value): Skip > 0 comparison with
770         SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
771         * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
772         of SUBREG_PROMOTED_UNSIGNED_P.
773         (convert_modes): Likewise.
774         (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
775         Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
776         (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
777         SUBREG_PROMOTED_UNSIGNED_SET.
778         * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
779         instead of SUBREG_PROMOTED_UNSIGNED_SET.
780         * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
781         SUBREG_PROMOTED_SET.
782         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
783         SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
784         * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
785         of SUBREG_PROMOTED_UNSIGNED_P.
786         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
787         (SUBREG_PROMOTED_SET): New define.
788         (SUBREG_PROMOTED_GET): Likewise.
789         (SUBREG_PROMOTED_SIGN): Likewise.
790         (SUBREG_PROMOTED_SIGNED_P): Likewise.
791         (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
792         (SUBREG_PROMOTED_UNSIGNED_P): Updated.
793         * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
794         instead of SUBREG_PROMOTED_UNSIGNED_GET.
795         (nonzero_bits1): Skip > 0 comparison with the results as
796         SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
797         (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
798         of !SUBREG_PROMOTED_UNSIGNED_P.
799         * simplify-rtx.c (simplify_unary_operation_1): Use new
800         SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
801         (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
802         SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
803         SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
805 2014-08-07  Jan Hubicka  <hubicka@ucw.cz>
807         * ipa-devirt.c: Include gimple-pretty-print.h
808         (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
809         further tests.
810         (decl_maybe_in_construction_p): Fix conditional on cdtor check
811         (get_polymorphic_call_info): Fix return value
812         (type_change_info): New sturcture based on ipa-prop
813         variant.
814         (noncall_stmt_may_be_vtbl_ptr_store): New predicate
815         based on ipa-prop variant.
816         (extr_type_from_vtbl_ptr_store): New function
817         based on ipa-prop variant.
818         (record_known_type): New function.
819         (check_stmt_for_type_change): New function.
820         (get_dynamic_type): New function.
821         * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
822         * tree-ssa-pre.c: ipa-utils.h
823         (eliminate_dom_walker::before_dom_children): Use ipa-devirt
824         machinery; sanity check with ipa-prop devirtualization.
825         * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
826         polymorphic flag.
828 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
830         * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
831         * alias.c, cfgexpand.c, cgraphbuild.c,
832         config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
833         config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
834         config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
835         config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
836         config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
837         config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
838         config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
839         dse.c, except.c, gengtype.c, gimple-expr.c,
840         gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
841         ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
842         tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
843         tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
844         tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
845         tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
846         pointer-set.h.
847         * pointer-set.c: Remove file.
848         * pointer-set.h: Remove file.
850 2014-08-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
852         * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
853         * config/arm/types.md (f_sels, f_seld): Delete.
855 2014-08-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
857         * config/aarch64/aarch64.md (absdi2): Set simd attribute.
858         (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
859         (aarch64_movdi_<mode>high): Likewise.
860         (aarch64_mov<mode>high_di): Likewise.
861         (aarch64_movdi_<mode>low): Likewise.
862         (aarch64_mov<mode>low_di): Likewise.
863         (aarch64_movtilow_tilow): Likewise.
864         Add comment explaining usage of fp,simd attributes and of
865         TARGET_FLOAT and TARGET_SIMD.
867 2014-08-07  Ian Bolton  <ian.bolton@arm.com>
868             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
870         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
871         Use MOVN when one of the half-words is 0xffff.
873 2014-08-07  Marat Zakirov  <m.zakirov@samsung.com>
875         * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
877 2014-08-07  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
879         * haifa-sched.c (SCHED_SORT): Delete.  Macro used exactly once.
880         (enum rfs_decition:RFS_*): New constants wrapped in an enum.
881         (rfs_str): String corresponding to RFS_* constants.
882         (rank_for_schedule_stats_t): New typedef.
883         (rank_for_schedule_stats): New static variable.
884         (rfs_result): New static function.
885         (rank_for_schedule): Track statistics for deciding heuristics.
886         (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
887         static functions.
888         (ready_sort): Use them for debug printouts.
889         (schedule_block): Init statistics state.  Print statistics on
890         rank_for_schedule decisions.
892 2014-08-07  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
894         * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
896 2014-08-07  Ilya Tocar  <ilya.tocar@intel.com>
898         * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
899         constraint.
901 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
903         * hash-map.h (default_hashmap_traits): Adjust overloads of hash
904         function to not conflict.
905         * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
906         gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
907         lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
908         tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
909         tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
910         of pointer_map.
912 2014-08-07  Marek Polacek  <polacek@redhat.com>
914         * fold-const.c (fold_binary_loc): Add folding of
915         (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
917 2013-08-07  Ilya Enkovich  <ilya.enkovich@intel.com>
919         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
920         instead of type size.
921         (ASM_FINISH_DECLARE_OBJECT): Likewise.
923 2014-08-07  Marat Zakirov  <m.zakirov@samsung.com>
925         * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
926         (*thumb1_movqi_insn): Likewise.
927         * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
929 2014-08-07  Tom de Vries  <tom@codesourcery.com>
931         * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
932         (glibc_2_11_or_earlier): Remove effective-target keywords.
934 2014-08-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
936         * config/arm/arm.c (bdesc_2arg): Fix typo.
937         (arm_atomic_assign_expand_fenv): Remove The default implementation.
939 2014-08-07  Zhenqiang Chen  <zhenqiang.chen@arm.com>
941         * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
943 2014-08-06  Vladimir Makarov  <vmakarov@redhat.com>
945         PR debug/61923
946         * haifa-sched.c (advance_one_cycle): Fix dump.
947         (schedule_block): Don't advance cycle if we are already at the
948         beginning of the cycle.
950 2014-08-06  Martin Jambor  <mjambor@suse.cz>
952         PR ipa/61393
953         * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
955 2014-08-06  Richard Biener  <rguenther@suse.de>
957         PR lto/62034
958         * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
959         SCCs here.
960         (lto_input_tree): Pop SCCs here.
962 2014-08-06  Richard Biener  <rguenther@suse.de>
964         PR tree-optimization/61320
965         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
966         handle misaligned loads.
968 2014-08-06  Alan Lawrence  <alan.lawrence@arm.com>
970         * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
971         (aarch64_expand_vec_perm_const): Check for dup before zip.
973 2014-08-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
975         * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
976         CONST_INT_P instead of GET_CODE and compare.
977         (aarch64_select_cc_mode): Likewise.
978         (aarch64_print_operand): Likewise.
979         (aarch64_rtx_costs): Likewise.
980         (aarch64_simd_valid_immediate): Likewise.
981         (aarch64_simd_check_vect_par_cnst_half): Likewise.
982         (aarch64_simd_emit_pair_result_insn): Likewise.
984 2014-08-05  David Malcolm  <dmalcolm@redhat.com>
986         * gdbhooks.py (find_gcc_source_dir): New helper function.
987         (class PassNames): New class, locating and parsing passes.def.
988         (class BreakOnPass): New command "break-on-pass".
990 2014-08-05  Trevor Saunders  <tsaunders@mozilla.com>
992         * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
993         getting olde.
995 2014-08-05  Richard Biener  <rguenther@suse.de>
997         PR rtl-optimization/61672
998         * emit-rtl.h (mem_attrs_eq_p): Declare.
999         * emit-rtl.c (mem_attrs_eq_p): Export.  Handle NULL mem-attrs.
1000         * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
1001         * cfgcleanup.c (merge_memattrs): Likewise.
1002         Include emit-rtl.h.
1004 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1006         * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
1007         rather than singleton vectors.
1008         (vqdmlsls_lane_s32): Likewise.
1010 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1012         * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
1013         Use VSDQ_HSI mode iterator.
1014         (aarch64_sqrdmulh_laneq<mode>): Likewise.
1015         (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
1016         * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
1017         Use BUILTIN_VDQHS macro.
1018         (sqrdmulh_laneq): Likewise.
1019         * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
1020         (vqdmlals_laneq_s32): Likewise.
1021         (vqdmlslh_laneq_s16): Likewise.
1022         (vqdmlsls_laneq_s32): Likewise.
1023         (vqdmulhh_laneq_s16): Likewise.
1024         (vqdmulhs_laneq_s32): Likewise.
1025         (vqrdmulhh_laneq_s16): Likewise.
1026         (vqrdmulhs_laneq_s32): Likewise.
1028 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1030         * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
1031         (vmuld_laneq_f64): Likewise.
1032         (vmuls_laneq_f32): Likewise.
1033         (vmul_n_f64): Likewise.
1034         (vmuld_lane_f64): Reimplement in C.
1035         (vmuls_lane_f32): Likewise.
1037 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1039         * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
1040         to reservation.
1041         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
1043 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1045         * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
1046         (rbitsi2): Likewise.
1047         (*arm_rev): Set predicable and predicable_short_it attributes.
1049 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1051         * convert.c (convert_to_integer): Guard transformation to lrint by
1052         -fno-math-errno.
1054 2014-08-05  James Greenhalgh  <james.greenhalgh@arm.com>
1056         * config/aarch64/aarch64-builtins.c
1057         (aarch64_simd_builtin_type_mode): Delete.
1058         (v8qi_UP): Remap to V8QImode.
1059         (v4hi_UP): Remap to V4HImode.
1060         (v2si_UP): Remap to V2SImode.
1061         (v2sf_UP): Remap to V2SFmode.
1062         (v1df_UP): Remap to V1DFmode.
1063         (di_UP): Remap to DImode.
1064         (df_UP): Remap to DFmode.
1065         (v16qi_UP):V16QImode.
1066         (v8hi_UP): Remap to V8HImode.
1067         (v4si_UP): Remap to V4SImode.
1068         (v4sf_UP): Remap to V4SFmode.
1069         (v2di_UP): Remap to V2DImode.
1070         (v2df_UP): Remap to V2DFmode.
1071         (ti_UP): Remap to TImode.
1072         (ei_UP): Remap to EImode.
1073         (oi_UP): Remap to OImode.
1074         (ci_UP): Map to CImode.
1075         (xi_UP): Remap to XImode.
1076         (si_UP): Remap to SImode.
1077         (sf_UP): Remap to SFmode.
1078         (hi_UP): Remap to HImode.
1079         (qi_UP): Remap to QImode.
1080         (aarch64_simd_builtin_datum): Make mode a machine_mode.
1081         (VAR1): Build builtin name.
1082         (aarch64_init_simd_builtins): Remove dead code.
1084 2014-08-05  Roman Gareev  <gareevroman@gmail.com>
1086         * graphite-isl-ast-to-gimple.c:
1087         (set_options): New function.
1088         (scop_to_isl_ast): Add calling of set_options.
1090 2014-08-05  Jakub Jelinek  <jakub@redhat.com>
1092         * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
1093         (analyze_iv_to_split_insn): Don't initialize them.
1094         (get_ivts_expr): Removed.
1095         (allocate_basic_variable, insert_base_initialization): Use
1096         SET_SRC instead of *get_ivts_expr.
1097         (split_iv): Use &SET_SRC instead of get_ivts_expr.
1099 2014-08-05  Roman Gareev  <gareevroman@gmail.com>
1101         * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
1102         (translate_isl_ast_for_loop): Add checking of the
1103         flag_loop_parallelize_all.
1104         (ast_build_before_for): New function.
1105         (scop_to_isl_ast): Add checking of the
1106         flag_loop_parallelize_all.
1107         * graphite-dependences.c: Move the defenition of the
1108         scop_get_dependences from graphite-optimize-isl.c to this file.
1109         (apply_schedule_on_deps): Add checking of the ux's emptiness.
1110         (carries_deps): Add checking of the x's value.
1111         * graphite-optimize-isl.c: Move the defenition of the
1112         scop_get_dependences to graphite-dependences.c.
1113         * graphite-poly.h: Add declarations of scop_get_dependences
1114         and carries_deps.
1116 2014-08-04  Rohit  <rohitarulraj@freescale.com>
1118         PR target/60102
1119         * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
1120         names.
1121         (alt_reg_names): Likewise.
1122         (rs6000_dwarf_register_span): For SPE high registers, replace
1123         dwarf register numbers with GCC hard register numbers.
1124         (rs6000_init_dwarf_reg_sizes_extra): Likewise.
1125         (rs6000_dbx_register_number): For SPE high registers, return dwarf
1126         register number for the corresponding GCC hard register number.
1127         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
1128         newly added GCC hard register numbers for SPE high registers.
1129         (DWARF_FRAME_REGISTERS):  Likewise.
1130         (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
1131         (DWARF_FRAME_REGNUM): Likewise.
1132         (FIXED_REGISTERS): Likewise.
1133         (CALL_USED_REGISTERS): Likewise.
1134         (CALL_REALLY_USED_REGISTERS): Likewise.
1135         (REG_ALLOC_ORDER): Likewise.
1136         (enum reg_class): Likewise.
1137         (REG_CLASS_NAMES): Likewise.
1138         (REG_CLASS_CONTENTS): Likewise.
1139         (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
1141 2014-08-04  Richard Biener  <rguenther@suse.de>
1143         * gimple-fold.h (gimple_fold_builtin): Remove.
1144         * gimple-fold.c (gimple_fold_builtin): Make static.
1145         * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
1146         fold_stmt, not gimple_fold_builtin.
1148 2014-08-04  Martin Liska <mliska@suse.cz>
1150         * cgraph.h (csi_end_p): Removed.
1151         (csi_next): Likewise.
1152         (csi_node): Likewise.
1153         (csi_start): Likewise.
1154         (cgraph_node_in_set_p): Likewise.
1155         (cgraph_node_set_size): Likewise.
1156         (vsi_end_p): Likewise.
1157         (vsi_next): Likewise.
1158         (vsi_node): Likewise.
1159         (vsi_start): Likewise.
1160         (varpool_node_set_size): Likewise.
1161         (cgraph_node_set_nonempty_p): Likewise.
1162         (varpool_node_set_nonempty_p): Likewise.
1163         * cgraphunit.c (cgraph_process_new_functions): vec replaces
1164         cgraph_node_set.
1165         * ipa-inline-transform.c: Likewise.
1166         * ipa-utils.c (cgraph_node_set_new): Removed.
1167         (cgraph_node_set_add): Likewise.
1168         (cgraph_node_set_remove): Likewise.
1169         (cgraph_node_set_find): Likewise.
1170         (dump_cgraph_node_set): Likewise.
1171         (debug_cgraph_node_set): Likewise.
1172         (free_cgraph_node_set): Likewise.
1173         (varpool_node_set_new): Likewise.
1174         (varpool_node_set_add): Likewise.
1175         (varpool_node_set_remove): Likewise.
1176         (varpool_node_set_find): Likewise.
1177         (dump_varpool_node_set): Likewise.
1178         (free_varpool_node_set): Likewise.
1179         (debug_varpool_node_set): Likewise.
1180         * tree-emutls.c (struct tls_var_data):
1181         (emutls_index): Removed.
1182         (emutls_decl): Likewise.
1183         (gen_emutls_addr): Function implementation uses newly added
1184         hash_map<varpool_node *, tls_var_data>.
1185         (clear_access_vars): Likewise.
1186         (create_emultls_var): Likewise.
1187         (ipa_lower_emutls): Likewise.
1188         (reset_access): New function.
1190 2014-08-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
1192         * config/i386/i386.c (ix86_option_override_internal): Add
1193         PTA_RDRND and PTA_MOVBE for bdver4.
1195 2014-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1196             James Greenhalgh  <james.greenhalgh@arm.com>
1198         * doc/md.texi (clrsb): Document.
1199         (clz): Change reference to x into operand 1.
1200         (ctz): Likewise.
1201         (popcount): Likewise.
1203 2014-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1205         PR target/61713
1206         * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
1207         move to subtarget in serial version if result is ignored.
1209 2014-08-04  Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1210             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1212         * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
1213         to any two insns.  Update comment.  Rename to sched_macro_fuse_insns.
1214         (sched_analyze_insn): Update use of try_group_insn to
1215         sched_macro_fuse_insns.
1216         * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
1217         arguments that are not conditional jumps.
1219 2014-08-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
1221         * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
1222         family information. Handle BTVER2 cpu with cpuid family value.
1224 2014-08-04  Tom de Vries  <tom@codesourcery.com>
1226         * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
1227         (glibc_2_11_or_earlier): Document effective-target keywords.
1229 2014-08-01  Jan Hubicka  <hubicka@ucw.cz>
1231         * ipa-devirt.c (odr_type_warn_count): Add type.
1232         (possible_polymorphic_call_targets): Set it.
1233         (ipa_devirt): Use it.
1235 2014-08-01  Jan Hubicka  <hubicka@ucw.cz>
1237         * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
1238         Document.
1239         * ipa-devirt.c: Include hash-map.h
1240         (struct polymorphic_call_target_d): Add type_warning and decl_warning.
1241         (clear_speculation): Break out of ...
1242         (get_class_context): ... here; speed up handling obviously useless
1243         speculations.
1244         (odr_type_warn_count, decl_warn_count): New structures.
1245         (final_warning_record): New structure.
1246         (final_warning_records): New static variable.
1247         (possible_polymorphic_call_targets): Cleanup handling of
1248         speculative info; do not build speculation when user do not care;
1249         record info about warnings when asked for.
1250         (add_decl_warning): New function.
1251         (type_warning_cmp): New function.
1252         (decl_warning_cmp): New function.
1253         (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
1254         (gate): Enable pass when warnings are requested.
1255         * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
1256         options.
1258 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
1260         * hash-map.h (default_hashmap_traits::mark_key_deleted):
1261         Fix cast.
1262         (hash_map::remove): New method.
1263         (hash_map::traverse): New method.
1264         * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
1265         ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
1266         tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
1267         tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
1268         tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
1269         tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
1270         pointer_map.
1272 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
1274         * hash-set.h: new File.
1275         * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
1276         cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
1277         ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
1278         lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
1279         tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
1280         tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
1281         tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
1282         varpool.c: Use hash_set instead of pointer_set.
1284 2014-08-01  Alan Lawrence  <alan.lawrence@arm.com>
1286         * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
1288 2014-08-01  Jiong Wang <jiong.wang@arm.com>
1290         * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
1291         for frame access when strict_p is false.
1293 2014-08-01  Renlin Li <renlin.li@arm.com>
1294 2014-08-01  Jiong Wang <jiong.wang@arm.com>
1296         * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
1297         aarch64_offset_7bit_signed_scaled_p, remove static and use it.
1298         * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
1299         Declaration.
1300         * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
1301         predicate.
1302         * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
1303         aarch64_mem_pair_offset.
1305 2014-08-01  Jiong Wang <jiong.wang@arm.com>
1307         * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
1308         offset.
1309         (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
1310         * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
1312 2014-08-01  Matthew Fortune  <matthew.fortune@imgtec.com>
1314         * config/mips/mips.h (REGISTER_PREFIX): Define macro.
1316 2014-08-01  James Greenhalgh  <james.greenhalgh@arm.com>
1318         PR regression/61510
1319         * cgraphunit.c (analyze_functions): Use get_create rather than get
1320         for decls which are clones of abstract functions.
1322 2014-08-01  Martin Liska  <mliska@suse.cz>
1324         * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
1325         * ipa-prop.h (count_formal_params): Global function created from static.
1326         * ipa-prop.c (count_formal_params): Likewise.
1327         * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
1328         profiles for semantically equivalent functions.
1329         * passes.c (do_per_function): If we load body of a function
1330         during WPA, this condition should behave same.
1331         * varpool.c (ctor_for_folding): More tolerant assert for variable
1332         aliases created during WPA.
1334 2014-08-01  Martin Liska  <mliska@suse.cz>
1336         * doc/invoke.texi (Options That Control Optimization): Documentation
1337         for -foptimize-strlen introduced. Optimization levels default options
1338         fixed.
1340 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
1342         * opts.c (common_handle_option): Handle -fsanitize=alignment.
1343         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
1344         (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
1345         type to bool.
1346         * stor-layout.h (min_align_of_type): New prototype.
1347         * asan.c (pass_sanopt::execute): Don't perform gsi_next if
1348         ubsan_expand* told us not to do it.  Remove the extra gsi_end_p
1349         check.
1350         * ubsan.c: Include builtins.h.
1351         (ubsan_expand_bounds_ifn): Change return type to bool,
1352         always return true.
1353         (ubsan_expand_null_ifn): Change return type to bool, change
1354         argument to gimple_stmt_iterator *.  Handle both null and alignment
1355         sanitization, take type from ckind argument's type rather than
1356         first argument.
1357         (instrument_member_call): Removed.
1358         (instrument_mem_ref): Remove t argument, add mem and base arguments.
1359         Handle both null and alignment sanitization, don't say whole
1360         struct access is member access.  Build 3 argument IFN_UBSAN_NULL
1361         call instead of 2 argument.
1362         (instrument_null): Adjust instrument_mem_ref caller.  Don't
1363         instrument calls here.
1364         (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
1365         like SANITIZE_NULL.
1366         * stor-layout.c (min_align_of_type): New function.
1367         * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
1368         Or it into SANITIZE_UNDEFINED.
1369         * doc/invoke.texi (-fsanitize=alignment): Document.
1371 2014-07-31  Andi Kleen  <ak@linux.intel.com>
1373         * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
1375 2014-07-31  Andi Kleen  <ak@linux.intel.com>
1377         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
1378         inchash.
1379         (vn_reference_compute_hash): Dito.
1380         (vn_nary_op_compute_hash): Dito.
1381         (vn_phi_compute_hash): Dito.
1382         * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
1384 2014-07-31  Andi Kleen  <ak@linux.intel.com>
1386         * tree-ssa-dom.c (iterative_hash_exprs_commutative):
1387         Rename to inchash:add_expr_commutative. Convert to inchash.
1388         (iterative_hash_hashable_expr): Rename to
1389         inchash:add_hashable_expr. Convert to inchash.
1390         (avail_expr_hash): Dito.
1392 2014-07-31  Andi Kleen  <ak@linux.intel.com>
1394         * ipa-devirt.c (polymorphic_call_target_hasher::hash):
1395         Convert to inchash.
1397 2014-07-31  Andi Kleen  <ak@linux.intel.com>
1399         * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
1401 2014-07-31  Andi Kleen  <ak@linux.intel.com>
1403         * Makefile.in (OBJS): Add rtlhash.o
1404         * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
1405         (loc_checksum): Dito.
1406         (loc_checksum_ordered): Dito.
1407         (hash_loc_operands): Dito.
1408         (hash_locs): Dito.
1409         (hash_loc_list): Dito.
1410         * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
1411         * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
1412         * rtlhash.c: New file.
1413         * rtlhash.h: New file.
1415 2014-07-31  Andi Kleen  <ak@linux.intel.com>
1417         * inchash.h (inchash): Change inchash class to namespace.
1418         (class hash): ... Rename from inchash.
1419         (add_object): Move from macro to class template.
1420         * lto-streamer-out.c (hash_tree): Change inchash
1421         to inchash::hash.
1422         * tree.c (build_type_attribute_qual_variant): Dito.
1423         (type_hash_list): Dito.
1424         (attribute_hash_list): Dito.
1425         (iterative_hstate_expr): Rename to inchash::add_expr
1426         (build_range_type_1): Change inchash to inchash::hash
1427         and use hash::add_expr.
1428         (build_array_type_1): Dito.
1429         (build_function_type): Dito
1430         (build_method_type_directly): Dito.
1431         (build_offset_type): Dito.
1432         (build_complex_type): Dito.
1433         (make_vector_type): Dito.
1434         * tree.h (iterative_hash_expr): Dito.
1436 2014-07-31  Chen Gang  <gang.chen.5i5j@gmail.com>
1438         * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
1440 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
1442         * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
1443         correct alphabetical position.
1444         (vpaddd_f64): Rewrite using builtins.
1445         (vpaddd_s64): Move to correct alphabetical position.
1446         (vpaddd_u64): New.
1448 2014-07-31  Oleg Endo  <olegendo@gcc.gnu.org>
1450         PR target/61844
1451         * config/sh/sh.c (sh_legitimate_address_p,
1452         sh_legitimize_reload_address): Handle reg+reg address modes when
1453         ALLOW_INDEXED_ADDRESS is false.
1454         * config/sh/predicates.md (general_movsrc_operand,
1455         general_movdst_operand): Likewise.
1457 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
1459         * config/aarch64/aarch64-builtins.c
1460         (aarch64_gimple_fold_builtin): Don't fold reduction operations for
1461         BYTES_BIG_ENDIAN.
1463 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
1465         * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
1466         the generated mask based on BYTES_BIG_ENDIAN.
1467         (aarch64_simd_check_vect_par_cnst_half): New.
1468         * config/aarch64/aarch64-protos.h
1469         (aarch64_simd_check_vect_par_cnst_half): New.
1470         * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
1471         the check out to aarch64_simd_check_vect_par_cnst_half.
1472         (vect_par_cnst_lo_half): Likewise.
1473         * config/aarch64/aarch64-simd.md
1474         (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
1475         (move_hi_quad_<mode>): Always generate a low mask.
1477 2014-07-30  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
1479         * doc/invoke.texi (AVR Options): Add documentation about
1480         __AVR_DEVICE_NAME__ built-in macro.
1482 2014-07-31  Charles Baylis  <charles.baylis@linaro.org>
1484         PR target/61948
1485         * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
1486         constraints are satisfied.
1487         (<shift>di3_neon): Likewise.
1489 2014-07-31  Richard Biener  <rguenther@suse.de>
1491         PR tree-optimization/61964
1492         * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
1493         by structural equality.
1495 2014-07-31  Yury Gribov  <y.gribov@samsung.com>
1497         * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
1498         * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
1499         * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
1500         New enums.
1501         * gcc.c (sanitize_spec_function): Support new option.
1502         (SANITIZER_SPEC): Remove now redundant check.
1503         * opts.c (common_handle_option): Support new option.
1504         (finish_options): Check for incompatibilities.
1505         * toplev.c (process_options): Split userspace-specific checks.
1507 2014-07-31  Richard Biener  <rguenther@suse.de>
1509         * lto-streamer.h (struct output_block): Remove global.
1510         (struct data_in): Remove labels, num_named_labels and
1511         num_unnamed_labels.
1512         * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
1513         * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
1515 2014-07-31  Marc Glisse  <marc.glisse@inria.fr>
1517         PR c++/60517
1518         * common.opt (-Wreturn-local-addr): Moved from c.opt.
1519         * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
1520         (isolate_path): New argument to avoid inserting a trap.
1521         (find_implicit_erroneous_behaviour): Handle returning the address
1522         of a local variable.
1523         (find_explicit_erroneous_behaviour): Likewise.
1525 2014-07-31  Bingfeng Mei <bmei@broadcom.com>
1527         PR lto/61868
1528         * toplev.c (init_random_seed): Move piece of code never called to
1529         set_random_seed.
1530         (set_random_seed): see above.
1532 2014-07-31  Tom de Vries  <tom@codesourcery.com>
1534         * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
1536 2014-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
1538         * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
1539         (compute_regs_asm_clobbered): Use extract_asm_operands instead.
1541 2014-07-31  Richard Biener  <rguenther@suse.de>
1543         * data-streamer.h (streamer_write_data_stream): Declare here,
1544         renamed from ...
1545         * lto-streamer.h (lto_output_data_stream): ... this.  Remove.
1546         * lto-cgraph.c (lto_output_node): Adjust.
1547         (lto_output_varpool_node): Likewise.
1548         * data-streamer-out.c (streamer_string_index): Likewise.
1549         (streamer_write_data_stream, lto_append_block): Move from ...
1550         * lto-section-out.c (lto_output_data_stream,
1551         lto_append_block): ... here.
1553 2014-07-30  Mike Stump  <mikestump@comcast.net>
1555         * configure.ac: Also check for popen.
1556         * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
1557         * configure: Regenerate.
1558         * config.in:  Regenerate.
1560 2014-07-30  Martin Jambor  <mjambor@suse.cz>
1562         * tree-sra.c (sra_ipa_modify_assign): Change type of the first
1563         parameter to gimple.
1565 2014-07-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1567         * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
1568         address as second parameter to __tpf_eh_return routine.
1570 2014-07-30  Jiong Wang  <jiong.wang@arm.com>
1572         * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
1573         Thumb2.
1575 2014-07-30  Tom Tromey  <tromey@redhat.com>
1577         PR c/59855
1578         * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
1579         * doc/extend.texi (Type Attributes): Document designated_init
1580         attribute.
1582 2014-07-30  Roman Gareev  <gareevroman@gmail.com>
1584         * graphite-isl-ast-to-gimple.c:
1585         (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
1586         (gcc_expression_from_isl_expression): Pass type to
1587         gcc_expression_from_isl_ast_expr_id.
1589 2014-07-30  Richard Biener  <rguenther@suse.de>
1591         * lto-streamer.h (lto_write_data): New function.
1592         * langhooks.c (lhd_append_data): Do not free block.
1593         * lto-section-out.c (lto_write_data): New function writing
1594         raw data to the current section.
1595         (lto_write_stream): Adjust for langhook semantic change.
1596         (lto_destroy_simple_output_block): Write header directly.
1597         * lto-opts.c (lto_write_options): Write options directly.
1598         * lto-streamer-out.c (produce_asm): Write heaeder directly.
1599         (lto_output_toplevel_asms): Likewise.
1600         (copy_function_or_variable): Copy data directly.
1601         (write_global_references): Output index table directly.
1602         (lto_output_decl_state_refs): Likewise.
1603         (write_symbol): Write data directly.
1604         (produce_symtab): Adjust.
1605         (produce_asm_for_decls): Output header and refs directly.
1607 2014-07-29  Jan Hubicka  <hubicka@ucw.cz>
1609         * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
1610         to speculative_targets
1611         (get_class_context): Fix handling of contextes without outer type;
1612         avoid matching non-polymorphic types in LTO.
1613         (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
1614         parameter to speculative_targetsp; handle speculation.
1615         (dump_possible_polymorphic_call_targets): Update dumping.
1617 2014-07-29  Jan Hubicka  <hubicka@ucw.cz>
1619         * common.opt (Wodr): Enable by default.
1621 2014-07-29  Olivier Hainque  <hainque@adacore.com>
1623         * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
1625 2014-07-29  H.J. Lu  <hongjiu.lu@intel.com>
1627         PR bootstrap/61914
1628         * gengtype.c (strtoken): New function.
1629         (create_user_defined_type): Replace strtok with strtoken.
1631 2014-07-29  Nathan Sidwell  <nathan@acm.org>
1633         * gcov-io.c (gcov_var): Make hidden.
1634         * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
1635         (gcov_do_dump): Declare.
1636         (gcov_output_files): Call gcov_do_dump, not gcov_exit).
1638 2014-07-29  Martin Jambor  <mjambor@suse.cz>
1640         * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
1641         parameter to gimple.
1642         (sra_modify_assign): Likewise.
1644 2014-07-29  Richard Biener  <rguenther@suse.de>
1646         PR middle-end/52478
1647         * expr.c (expand_expr_real_2): Revert last change.
1649 2014-07-28  Jan Hubicka  <hubicka@ucw.cz>
1651         * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
1652         * cgraph.h (cgraph_indirect_call_info): Add speculative data.
1653         * gimple-fold.c (fold_gimple_assign): Fix check for virtual
1654         call.
1655         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
1656         (contains_type_p): Forward declare.
1657         (polymorphic_call_target_hasher::hash): Hash speculative info.
1658         (polymorphic_call_target_hasher::equal): Compare speculative info.
1659         (get_class_context): Handle speuclation.
1660         (contains_type_p): Update.
1661         (get_polymorphic_call_info_for_decl): Update.
1662         (walk_ssa_copies): Break out from ...
1663         (get_polymorphic_call_info): ... here; set speculative context
1664         before giving up.
1665         * ipa-prop.c (ipa_write_indirect_edge_info,
1666         ipa_read_indirect_edge_info): Stream speculative context.
1667         * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
1668         (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
1669         SPECULATIVE_MAYBE_DERIVED_TYPE).
1670         (possible_polymorphic_call_targets overriders): Update.
1671         (dump_possible_polymorphic_call_targets overriders): Update.
1672         (dump_possible_polymorphic_call_target_p overriders): Update.
1674 2014-07-28  Jan Hubicka  <hubicka@ucw.cz>
1676         * gimple-fold.c (fold_gimple_assign): Fix condition guarding
1677         ipa-devirt path; fix thinko there.
1679 2014-07-28  Trevor Saunders  <tsaunders@mozilla.com>
1681         * config/i386/i386.c (ix86_return_in_memory): Replace one
1682         ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
1684 2014-07-28  Marek Polacek  <polacek@redhat.com>
1686         * doc/invoke.texi (-Wno-odr): Fix @item entry.  Tweak wording.
1688 2014-07-28  Peter Bergner  <bergner@vnet.ibm.com>
1690         * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
1691         * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
1692         * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
1693         (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
1694         (USE_LD_AS_NEEDED): Likewise.
1695         (ASM_APP_ON): Likewise.
1696         (ASM_APP_OFF): Likewise.
1697         (TARGET_POSIX_IO): Likewise.
1698         * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
1699         (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
1700         (USE_LD_AS_NEEDED): Likewise.
1701         (ASM_APP_ON): Likewise.
1702         (ASM_APP_OFF): Likewise.
1703         (TARGET_POSIX_IO): Likewise.
1705 2014-07-28  Eric Botcazou  <ebotcazou@adacore.com>
1707         PR middle-end/61734
1708         * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
1709         operators other than the equality operators.
1711 2014-07-28  Richard Biener  <rguenther@suse.de>
1713         PR middle-end/52478
1714         * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
1715         sure to register SImode ones, not only >= word_mode ones.
1716         * expr.c (expand_expr_real_2): When expanding -ftrapv
1717         binops do not use OPTAB_LIB_WIDEN.
1719 2014-07-28  Richard Sandiford  <rdsandiford@googlemail.com>
1721         PR middle-end/61919
1722         * tree-outof-ssa.c (insert_partition_copy_on_edge)
1723         (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
1724         (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
1725         inserting them in the insn stream.
1727 2014-07-28  Marek Polacek  <polacek@redhat.com>
1729         PR middle-end/61913
1730         * common.opt (Wodr): Add Var.
1732 2014-07-28  Richard Biener  <rguenther@suse.de>
1734         PR tree-optimization/61921
1735         * tree-ssa-structalias.c (create_variable_info_for_1): Check
1736         if there is a varpool node before dereferencing it.
1738 2014-07-28  Roman Gareev  <gareevroman@gmail.com>
1740         * graphite-sese-to-poly.c:
1741         (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
1742         id of the pbb), which contains pointer to the pbb1.
1744         * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
1746 2014-07-28  Roman Gareev  <gareevroman@gmail.com>
1748         * graphite-isl-ast-to-gimple.c:
1749         (graphite_create_new_guard): New function.
1750         (translate_isl_ast_node_if): New function.
1751         (translate_isl_ast): Add calling of translate_isl_ast_node_if.
1753         * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
1755 2014-07-27  Anthony Green  <green@moxielogic.com>
1757         * config.gcc: Add moxie-*-moxiebox* configuration.
1758         * config/moxie/moxiebox.h: New file.
1760 2014-07-26  Andrew Pinski  <apinski@cavium.com>
1762         * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
1763         from the read only register.
1765 2014-07-26  Richard Sandiford  <rdsandiford@googlemail.com>
1767         * ira-costs.c (find_costs_and_classes): For -O0, use the best class
1768         as the allocation class if it isn't likely to be spilled.
1770 2014-07-26  Richard Sandiford  <rdsandiford@googlemail.com>
1772         * rtl.h (tls_referenced_p): Declare.
1773         * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
1774         * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
1775         (mips_cannot_force_const_mem): Use tls_referenced_p.
1776         * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
1777         * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
1778         instead of pa_tls_referenced_p.
1779         * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
1780         (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
1781         (pa_legitimate_constant_p): Likewise.
1782         (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
1783         * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
1784         (rs6000_cannot_force_const_mem, rs6000_emit_move)
1785         (rs6000_address_for_altivec): Use tls_referenced_p instead of
1786         rs6000_tls_referenced_p.
1787         (rs6000_tls_symbol_ref_1): Delete.
1789 2014-07-26  Marc Glisse  <marc.glisse@inria.fr>
1791         PR target/44551
1792         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
1793         Optimize inverse of a VEC_CONCAT.
1795 2014-07-25  Xinliang David Li  <davidxl@google.com>
1797         * params.def: New parameter.
1798         * coverage.c (get_coverage_counts): Check new flag.
1799         (coverage_compute_profile_id): Check new flag.
1800         (coverage_begin_function): Check new flag.
1801         (coverage_end_function): Check new flag.
1802         * value-prof.c (coverage_node_map_initialized_p): New function.
1803         (init_node_map): Populate map with all functions.
1804         * doc/invoke.texi: Document new parameter.
1806 2014-07-25  Jan Hubicka  <hubicka@ucw.cz>
1807             Richard Biener <rguenther@suse.de>
1809         * lto-streamer-out.c (struct sccs): Turn to ...
1810         (class DFS): ... this one; refactor the DFS walk so it can
1811         be re-done on per-SCC basis.
1812         (DFS::DFS): New constructor.
1813         (DFS::~DFS): New destructor.
1814         (hash_tree): Add new MAP argument holding in-SCC hash values;
1815         remove POINTER_TYPE hashing hack.
1816         (scc_entry_compare): Rename to ...
1817         (DFS::scc_entry_compare): ... this one.
1818         (hash_scc): Rename to ...
1819         (DFS::hash_scc): ... this one; pass output_block instead
1820         of streamer_cache; work harder to get unique and stable SCC
1821         hashes.
1822         (DFS_write_tree): Rename to ...
1823         (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
1824         (lto_output_tree): Update.
1826 2014-07-25  Andi Kleen  <ak@linux.intel.com>
1828         * lto-streamer-out.c (hash_tree): Convert to inchash.
1830 2014-07-25  Andi Kleen  <ak@linux.intel.com>
1832         * tree.c (build_type_attribute_qual_variant): Use inchash.
1833         (type_hash_list): Dito.
1834         (attribute_hash_list): Dito
1835         (iterative_hstate_expr): Dito.
1836         (iterative_hash_expr): Dito.
1837         (build_range_type_1): Dito.
1838         (build_array_type_1): Dito.
1839         (build_function_type): Dito.
1840         (build_method_type_directly): Dito.
1841         (build_offset_type): Dito.
1842         (build_complex_type): Dito.
1843         (make_vector_type): Dito.
1844         * tree.h (iterative_hash_expr): Add compat wrapper.
1845         (iterative_hstate_expr): Add.
1847 2014-07-25  Andi Kleen  <ak@linux.intel.com>
1849         * Makefile.in (OBJS): Add inchash.o.
1850         (PLUGIN_HEADERS): Add inchash.h.
1851         * ipa-devirt.c: Include inchash.h.
1852         * lto-streamer-out.c: Dito.
1853         * tree-ssa-dom.c: Dito.
1854         * tree-ssa-pre.c: Dito.
1855         * tree-ssa-sccvn.c: Dito.
1856         * tree-ssa-tail-merge.c: Dito.
1857         * asan.c: Dito.
1858         * tree.c (iterative_hash_hashval_t): Move to ...
1859         (iterative_hash_host_wide_int): Move to ...
1860         * inchash.c: Here. New file.
1861         * tree.h (iterative_hash_hashval_t): Move to ...
1862         (iterative_hash_host_wide_int): Move to ...
1863         * inchash.h: Here. New file.
1865 2014-07-25  Richard Biener  <rguenther@suse.de>
1867         PR middle-end/61762
1868         PR middle-end/61894
1869         * fold-const.c (native_encode_int): Add and handle offset
1870         parameter to do partial encodings of expr.
1871         (native_encode_fixed): Likewise.
1872         (native_encode_real): Likewise.
1873         (native_encode_complex): Likewise.
1874         (native_encode_vector): Likewise.
1875         (native_encode_string): Likewise.
1876         (native_encode_expr): Likewise.
1877         * fold-const.c (native_encode_expr): Add offset parameter
1878         defaulting to -1.
1879         * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
1880         (fold_ctor_reference): Handle all reads from tcc_constant
1881         ctors.
1883 2014-07-25  Richard Biener  <rguenther@suse.de>
1885         * tree-inline.c (estimate_move_cost): Mark speed_p argument
1886         as possibly unused.
1888 2014-07-23  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
1890         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
1892 2014-07-24  Kyle McMartin  <kyle@redhat.com>
1894         * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
1896 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1898         * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
1899         Add prototype.
1900         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
1901         function.
1902         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
1903         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
1904         * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
1906 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1908         * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
1909         and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
1910         aggregate types.  Instead, *all* aggregate types, except for single-
1911         element or homogeneous float/vector aggregates, are quadword-aligned
1912         if required by their type alignment.  Issue -Wpsabi note when a type
1913         is now treated differently than before.
1915 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1917         * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
1918         does not fit fully into floating-point registers, and there is still
1919         space in the register parameter area, use GPRs to pass those parts
1920         of the argument.  Issue -Wpsabi note if any parameter is now treated
1921         differently than before.
1922         (rs6000_arg_partial_bytes): Update.
1924 2014-07-24  Uros Bizjak  <ubizjak@gmail.com>
1926         * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
1928 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
1930         * rtl.h (target_rtl): Remove lang_dependent_initialized.
1931         * toplev.c (initialize_rtl): Don't use it.  Move previously
1932         "language-dependent" calls to...
1933         (backend_init): ...here.
1934         (lang_dependent_init_target): Don't set lang_dependent_initialized.
1935         Assert that RTL initialization hasn't happend yet.
1937 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
1939         PR rtl-optimization/61629
1940         * reginfo.c (reinit_regs): Only call ira_init and recog_init if
1941         they have already been initialized.
1943 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
1945         PR middle-end/61268
1946         * function.c (assign_parm_setup_reg): Prevent invalid sharing of
1947         DECL_INCOMING_RTL and entry_parm.
1948         (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
1949         * calls.c (load_register_parameters): Likewise argument values.
1950         (emit_library_call_value_1, store_one_arg): Likewise argument
1951         save areas.
1952         * config/i386/i386.c (assign_386_stack_local): Likewise the local
1953         stack slot.
1954         * explow.c (validize_mem): Modify the argument in-place.
1956 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
1958         * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
1959         (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
1961 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
1963         * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
1964         (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
1966 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
1968         * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
1969         (aarch64_save_callee_saves): New parameter "skip_wb".
1970         (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
1972 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
1974         * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
1975         "wb_candidate2".
1976         * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
1978 2014-07-24  Roman Gareev  <gareevroman@gmail.com>
1980         * graphite-isl-ast-to-gimple.c:
1981         (graphite_create_new_loop): Add calling of isl_id_free to properly
1982         decrement reference counts.
1984         * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
1986 2014-07-24  Martin Liska  <mliska@suse.cz>
1987         * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
1988         function used.
1989         * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
1990         (rs6000_code_end): Likewise.
1992 2014-07-24  Martin Liska  <mliska@suse.cz>
1994         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
1995         symtab_node funtion used.
1996         (rs6000_xcoff_declare_object_name): Likewise.
1998 2014-07-24  Martin Liska  <mliska@suse.cz>
2000         * cgraphunit.c (compile): Correct function used.
2002 2014-07-24  Jan Hubicka  <hubicka@ucw.cz>
2004         * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
2005         as non-indexable.
2007 2014-07-24  Jan Hubicka  <hubicka@ucw.cz>
2009         PR lto/61802
2010         * varasm.c (bss_initializer_p): Handle offlined ctors.
2011         (align_variable, get_variable_align): Likewise.
2012         (make_decl_one_only): Likewise.
2013         (default_binds_local_p_1): Likewise.
2014         (decl_binds_to_current_def_p): Likewise.
2015         (get_variable_section): Get constructor if it is offlined.
2016         (assemble_variable_contents): Sanity check that the caller
2017         streamed in the ctor in LTO.
2019 2014-07-24  Roman Gareev  <gareevroman@gmail.com>
2021         * graphite-isl-ast-to-gimple.c:
2022         (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
2023         (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
2024         isl_ast_op_pdiv_r to the different case.
2026         * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
2028 2014-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2030         PR middle-end/61876
2031         * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
2032         when flag_errno_math is on.
2034 2014-07-24  Martin Liska  <mliska@suse.cz>
2036         * cgraph.h (varpool_node):
2037         (availability get_availability (void)):
2038         created from cgraph_variable_initializer_availability
2039         (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
2040         created from: cgraph_variable_initializer_availability
2041         (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
2042         (void finalize_named_section_flags (void)):
2043         created from varpool_finalize_named_section_flags
2044         (bool assemble_decl (void)): created from varpool_assemble_decl
2045         (void analyze (void)): created from varpool_analyze_node
2046         (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
2047         void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
2048         (void remove_initializer (void)): created from varpool_remove_initializer
2049         (tree get_constructor (void)): created from varpool_get_constructor
2050         (bool externally_visible_p (void)): created from varpool_externally_visible_p
2051         (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
2052         (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
2053         (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
2054         (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
2055         (static void finalize_decl (tree decl)): created from varpool_finalize_decl
2056         (static bool output_variables (void)): created from varpool_output_variables
2057         (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
2058         created from varpool_extra_name_alias
2059         (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
2060         (static void dump_varpool (FILE *f)): created from dump_varpool
2061         (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
2062         (static varpool_node *create_empty (void)): created from varpool_create_empty_node
2063         (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
2064         (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
2065         (void assemble_aliases (void)): created from assemble_aliases
2067 2014-07-24  Martin Liska  <mliska@suse.cz>
2069         * cgraph.h (symtab_node):
2070         (void register_symbol (void)): created from symtab_register_node
2071         (void remove (void)): created from symtab_remove_node
2072         (void dump (FILE *f)): created from dump_symtab_node
2073         (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
2074         (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
2075         (struct ipa_ref *add_reference (symtab_node *referred_node,
2076         enum ipa_ref_use use_type)): created from add_reference 
2077         (struct ipa_ref *add_reference (symtab_node *referred_node,
2078         enum ipa_ref_use use_type, gimple stmt)): created from add_reference
2079         (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
2080         gimple stmt)): created from maybe_add_reference
2081         (bool semantically_equivalent_p (symtab_node *target)): created from
2082         symtab_semantically_equivalent_p
2083         (void remove_from_same_comdat_group (void)): created from
2084         remove_from_same_comdat_group
2085         (void add_to_same_comdat_group (symtab_node *old_node)): created from
2086         symtab_add_to_same_comdat_group
2087         (void dissolve_same_comdat_group_list (void)): created from
2088         symtab_dissolve_same_comdat_group_list
2089         (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
2090         (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
2091         created from symtab_alias_ultimate_target
2092         (inline symtab_node *next_defined_symbol (void)): created from
2093         symtab_next_defined_symbol
2094         (bool resolve_alias (symtab_node *target)): created from
2095         symtab_resolve_alias
2096         (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
2097         void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
2098         (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
2099         (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
2100         (void set_section (const char *section)): created from set_section_1 
2101         (enum availability get_availability (void)): created from symtab_node_availability
2102         (void make_decl_local (void)): created from symtab_make_decl_local
2103         (bool real_symbol_p (void)): created from symtab_read_node
2104         (can_be_discarded_p (void)): created from symtab_can_be_discarded
2105         (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
2106         (inline bool in_same_comdat_group_p (symtab_node *target)): created from
2107         symtab_in_same_comdat_p;
2108         (bool address_taken_from_non_vtable_p (void)): created from
2109         address_taken_from_non_vtable_p
2110         (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
2111         (static void dump_table (FILE *)): created from dump_symtab
2112         (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
2113         (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
2114         (static bool used_from_object_file_p_worker (symtab_node *node)): created from
2115         symtab_used_from_object_file_p 
2116         (void dump_base (FILE *)): created from dump_symtab_base
2117         (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
2118         (void unregister (void)): created from symtab_unregister_node
2119         (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
2120         (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
2121         (static bool noninterposable_alias (symtab_node *node, void *data)): created from
2122         symtab_nonoverwritable_alias_1
2123         * cgraph.h (cgraph_node):
2124         (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
2125         created from cgraph_remove_node_and_inline_clones
2126         (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
2127         (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
2128         bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
2129         (cgraph_node *function_symbol (enum availability *avail = NULL)):
2130         created from cgraph_function_node
2131         (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
2132         vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
2133         struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
2134         created from cgraph_create_clone 
2135         (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
2136         vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
2137         created from cgraph_create_virtual_clone
2138         (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
2139         (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
2140         bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
2141         (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
2142         vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
2143         bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
2144         created from cgraph_function_version_info
2145         (struct cgraph_function_version_info *insert_new_function_version (void)):
2146         created from insert_new_cgraph_node_version
2147         (struct cgraph_function_version_info *function_version (void)): created from
2148         get_cgraph_node_version
2149         (void analyze (void)): created from analyze_function
2150         (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
2151         HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
2152         tree real_alias) cgraph_add_thunk
2153         (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
2154         (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
2155         created from cgraph_function_or_thunk_node
2156         (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
2157         created from expand_thunk
2158         (void reset (void)): created from cgraph_reset_node
2159         (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
2160         (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
2161         (void remove (void)): created from cgraph_remove_node
2162         (void dump (FILE *f)): created from dump_cgraph_node
2163         (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
2164         (bool get_body (void)): created from cgraph_get_body
2165         (void release_body (void)): created from cgraph_release_function_body
2166         (void unnest (void)): created from cgraph_unnest_node
2167         (void make_local (void)): created from cgraph_make_node_local
2168         (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
2169         (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
2170         gcov_type count, int freq)): created from cgraph_create_edge
2171         (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
2172         gcov_type count, int freq)): created from cgraph_create_indirect_edge
2173         (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
2174         gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
2175         created from cgraph_create_edge_including_clones
2176         (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
2177         (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
2178         (void remove_callers (void)): created from cgraph_node_remove_callers
2179         (void remove_callees (void)): created from cgraph_node_remove_callees
2180         (enum availability get_availability (void)): created from cgraph_function_body_availability
2181         (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
2182         (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
2183         (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
2184         (void call_duplication_hooks (cgraph_node *node2)): created from
2185         cgraph_call_node_duplication_hooks
2186         (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
2187         void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
2188         (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
2189         void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
2190         (void call_function_insertion_hooks (void)):
2191         created from cgraph_call_function_insertion_hooks
2192         (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
2193         (bool local_p (void)): created from cgraph_local_node
2194         (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
2195         (bool cannot_return_p (void)): created from cgraph_node_cannot_return
2196         (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
2197         (inline bool only_called_directly_or_aliased_p (void)):
2198         created from cgraph_only_called_directly_or_aliased_p
2199         (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
2200         created from cgraph_will_be_removed_from_program_if_no_direct_calls
2201         (bool can_remove_if_no_direct_calls_and_refs_p (void)):
2202         created from cgraph_can_remove_if_no_direct_calls_and_refs_p
2203         (bool can_remove_if_no_direct_calls_p (void)):
2204         created from cgraph_can_remove_if_no_direct_calls_p
2205         (inline bool has_gimple_body_p (void)):
2206         created from cgraph_function_with_gimple_body_p
2207         (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
2208         (static void dump_cgraph (FILE *f)): created from dump_cgraph
2209         (static inline void debug_cgraph (void)): created from debug_cgraph
2210         (static void record_function_versions (tree decl1, tree decl2)):
2211         created from record_function_versions
2212         (static void delete_function_version (tree decl)):
2213         created from delete_function_version
2214         (static void add_new_function (tree fndecl, bool lowered)):
2215         created from cgraph_add_new_function
2216         (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
2217         (static cgraph_node * create (tree decl)): created from cgraph_create_node
2218         (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
2219         (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
2220         (static cgraph_node *get_for_asmname (tree asmname)):
2221         created from cgraph_node_for_asm
2222         (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
2223         created from cgraph_same_body_alias 
2224         (static bool used_from_object_file_p_worker (cgraph_node *node,
2225         void *): new function
2226         (static bool non_local_p (cgraph_node *node, void *)):
2227         created from cgraph_non_local_node_p_1
2228         (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
2229         created from verify_cgraph
2230         (static bool make_local (cgraph_node *node, void *)):
2231         created from cgraph_make_node_local
2232         (static cgraph_node *create_alias (tree alias, tree target)):
2233         created from cgraph_create_function_alias
2234         (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
2235         gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
2236         created from cgraph_create_edge_1
2237         * cgraph.h (varpool_node):
2238         (void remove (void)): created from varpool_remove_node
2239         (void dump (FILE *f)): created from dump_varpool_node
2241 2014-07-24  Richard Biener  <rguenther@suse.de>
2243         PR ipa/61823
2244         * tree-ssa-structalias.c (create_variable_info_for_1):
2245         Use varpool_get_constructor.
2246         (create_variable_info_for): Likewise.
2248 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
2250         * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
2251         subtract outgoing area size when restoring stack_pointer_rtx.
2253 2014-07-24  Nick Clifton  <nickc@redhat.com>
2255         * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
2256         that operations are taking place in parallel.
2257         * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
2259 2014-07-24  Thomas Schwinge  <thomas@codesourcery.com>
2261         * omp-low.c (extract_omp_for_data): Add missing break statement.
2263 2014-07-24  Richard Biener  <rguenther@suse.de>
2265         * tree-inline.h (estimate_move_cost): Add speed_p parameter.
2266         * tree-inline.c (estimate_move_cost): Add speed_p parameter
2267         and adjust MOVE_RATIO query accordingly.
2268         (estimate_num_insns): Adjust callers.
2269         * ipa-prop.c (ipa_populate_param_decls): Likewise.
2270         * ipa-cp.c (gather_context_independent_values,
2271         estimate_local_effects): Likewise.
2272         * ipa-split.c (consider_split): Likewise.
2274 2014-07-24  Trevor Saunders  <tsaunders@mozilla.com>
2276         * config/i386/driver-i386.c: Remove names of unused arguments and
2277         unnecessary unused attributes.
2278         * config/i386/host-mingw32.c: Likewise.
2279         * config/i386/i386.c: Likewise.
2280         * config/i386/winnt-stubs.c: Likewise.
2281         * config/i386/winnt.c: Likewise.
2283 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
2285         * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
2286         (aarch64_gen_loadwb_pair): New helper function.
2287         (aarch64_expand_epilogue): Simplify code using new helper functions.
2288         * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
2290 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
2292         * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
2293         (aarch64_gen_storewb_pair): New helper function.
2294         (aarch64_expand_prologue): Simplify code using new helper functions.
2295         * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
2297 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
2299         * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
2300         Rename to aarch64_save_callee_saves, remove restore code.
2301         (aarch64_restore_callee_saves): New function.
2303 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
2305         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
2306         (aarch64_save_callee_saves): New function to handle reg save
2307         for both core and vectore regs.
2309 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
2311         * config/aarch64/aarch64.c (aarch64_gen_load_pair)
2312         (aarch64_gen_store_pair): New helper function.
2313         (aarch64_save_or_restore_callee_save_registers)
2314         (aarch64_save_or_restore_fprs): Use new helper functions.
2316 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
2318         * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
2319         (aarch64_save_or_restore_callee_save_registers)
2320         (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
2322 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
2324         * config/aarch64/aarch64.c
2325         (aarch64_save_or_restore_callee_save_registers)
2326         (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
2328 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
2330         * config/aarch64/aarch64.c
2331         (aarch64_save_or_restore_callee_save_registers)
2332         (aarch64_save_or_restore_fprs): Remove 'increment'.
2334 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
2336         * config/aarch64/aarch64.c
2337         (aarch64_save_or_restore_callee_save_registers)
2338         (aarch64_save_or_restore_fprs): Use register offset in
2339         cfun->machine->frame.reg_offset.
2341 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
2343         * config/aarch64/aarch64.c
2344         (aarch64_save_or_restore_callee_save_registers)
2345         (aarch64_save_or_restore_fprs): Remove base_rtx.
2347 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
2349         * config/aarch64/aarch64.c
2350         (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
2351         to 'start_offset'.  Remove local variable 'start_offset'.
2353 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
2355         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
2356         type to HOST_WIDE_INT.
2358 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
2360         * config/aarch64/aarch64.c (aarch64_expand_prologue)
2361         (aarch64_save_or_restore_fprs)
2362         (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
2364 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
2366         * config/arm/t-rtems-eabi: Add
2367         mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
2368         mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
2369         mbig-endian/mthumb/march=armv7-r, and
2370         mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
2371         multilibs.
2373 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
2374             Chris Johns <chrisj@rtems.org>
2375             Joel Sherrill <joel.sherrill@oarcorp.com>
2377         * config.gcc: Add nios2-*-rtems*.
2378         * config/nios2/rtems.h: New file.
2379         * gcc/config/nios2/t-rtems: New file.
2381 2014-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
2383         PR target/61396
2384         * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
2385         constant numbers, not general constants.
2386         (rs6000_expand_vector_init): Ditto.
2388 2014-07-23  Nathan Sidwell  <nathan@acm.org>
2390         * gcov-tool.c (gcov_list): Declare here.
2391         (set_gcov_list): Remove.
2392         (gcov_output_files): Set gcov_list directly.
2394 2014-07-23  Host Schirmeier  <horst@schirmeier.com>
2396         * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
2398 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
2400         * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
2401         callee-saved registers are available for padding purpose
2402         and r3 is not mandatory, then prefer use those callee-saved
2403         instead of r3.
2405 2014-07-23  Richard Biener  <rguenther@suse.de>
2407         * params.def (PARAM_MAX_COMBINE_INSNS): New.
2408         * combine.c: Include statistics.h and params.h.
2409         (combine_instructions): Guard three and four insn combines
2410         with max-combine-insns value.  Record statistics for combines
2411         performed.
2412         * doc/invoke.texi (max-combine-insns): Document new param.
2414 2014-07-23  Roman Gareev  <gareevroman@gmail.com>
2416         * graphite-isl-ast-to-gimple.c:
2417         (translate_isl_ast_node_block): New function.
2418         (translate_isl_ast): Add calling of translate_isl_ast_node_block.
2420         * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
2421         * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
2423 2014-07-23  Roman Gareev  <gareevroman@gmail.com>
2425         * graphite-isl-ast-to-gimple.c:
2426         (get_max_schedule_dimensions): New function.
2427         (extend_schedule): Likewise.
2428         (generate_isl_schedule): Add calling of extend_schedule and
2429         get_max_schedule_dimensions.
2431 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2433         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
2434         (case UNSPEC): Handle UNSPEC_RBIT.
2436 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2438         * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
2439         (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
2441 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2443         * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
2445 2014-07-22  Roman Gareev  <gareevroman@gmail.com>
2447         * graphite-isl-ast-to-gimple.c:
2448         Add inclusion of gimple-ssa.h, tree-into-ssa.h.
2449         (ivs_params_clear):
2450         (build_iv_mapping): New function.
2451         (translate_isl_ast_node_user): Likewise.
2452         (translate_isl_ast): Add calling of translate_isl_ast_node_user.
2454         * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
2455         * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
2456         * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
2458 2014-07-21  Bin Cheng  <bin.cheng@arm.com>
2460         PR target/55701
2461         * config/arm/arm.md (setmem): New pattern.
2462         * config/arm/arm-protos.h (struct tune_params): New fields.
2463         (arm_gen_setmem): New prototype.
2464         * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
2465         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
2466         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
2467         (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
2468         (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
2469         (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
2470         (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
2471         (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
2472         (arm_const_inline_cost): New function.
2473         (arm_block_set_max_insns): New function.
2474         (arm_block_set_non_vect_profit_p): New function.
2475         (arm_block_set_vect_profit_p): New function.
2476         (arm_block_set_unaligned_vect): New function.
2477         (arm_block_set_aligned_vect): New function.
2478         (arm_block_set_unaligned_non_vect): New function.
2479         (arm_block_set_aligned_non_vect): New function.
2480         (arm_block_set_vect, arm_gen_setmem): New functions.
2482 2014-07-21  Bin Cheng  <bin.cheng@arm.com>
2484         * config/arm/arm.c (output_move_neon): Handle REG explicitly.
2486 2014-07-21  Uros Bizjak  <ubizjak@gmail.com>
2488         PR target/61855
2489         * config/i386/avx512fintrin.h: Move constants for mantissa extraction
2490         out of #ifdef __OPTIMIZE__.
2492 2014-07-20  Eric Botcazou  <ebotcazou@adacore.com>
2494         * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
2495         different trapping status if -fnon-call-exceptions is enabled.
2497 2014-07-20  Eric Botcazou  <ebotcazou@adacore.com>
2499         * expr.c (store_field): Handle VOIDmode for calls that return values
2500         in multiple locations.
2502 2014-07-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2504         * config/rs6000/altivec.md (unspec enum):  Fix typo in UNSPEC_VSLDOI.
2505         (altivec_vsldoi_<mode>): Likewise.
2507 2014-07-20  Roman Gareev  <gareevroman@gmail.com>
2509         * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
2510         to the number of characters in the line.
2512 2014-07-20  Roman Gareev  <gareevroman@gmail.com>
2514         * graphite-isl-ast-to-gimple.c: Add using of
2515         build_nonstandard_integer_type instead of int128_integer_type_node.
2517 2014-07-19  Eric Botcazou  <ebotcazou@adacore.com>
2519         * toplev.c (output_stack_usage): Adjust the location of the warning.
2521 2014-07-19  Daniel Cederman  <cederman@gaisler.com>
2523         * config/sparc/sync.md (*membar_storeload_leon3): New insn.
2524         (*membar_storeload): Disable for LEON3.
2526 2014-07-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2528         PR rtl-optimization/61461
2529         * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
2531 2014-07-18  Uros Bizjak  <ubizjak@gmail.com>
2533         PR target/61794
2534         * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
2535         Fix instruction constraint.
2536         (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
2538 2014-07-18  Jonathan Wakely  <jwakely@redhat.com>
2540         * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
2542 2014-07-18  Chung-Ju Wu  <jasonwucj@gmail.com>
2544         * config/nds32/nds32.c (nds32_can_eliminate): Follow the
2545         GNU coding standards.
2546         (nds32_register_move_cost): Likewise.
2547         (nds32_memory_move_cost): Likewise.
2548         (nds32_address_cost): Likewise.
2550 2014-07-18  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
2552         * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
2554 2014-07-17  John David Anglin  <danglin@gcc.gnu.org>
2556         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
2557         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
2558         and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
2559         (HAVE_sync_compare_and_swapqi): Define.
2560         (HAVE_sync_compare_and_swaphi): Likewise.
2561         (HAVE_sync_compare_and_swapsi): Likewise.
2563 2014-07-17  Richard Sandiford  <rdsandiford@googlemail.com>
2565         * config/mips/p5600.md: Add missing cpu tests.
2567 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2569         * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
2570         (vmla_f64): Likewise.
2571         (vfms_f64): Likewise.
2572         (vmls_f64): Likewise.
2574 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2576         * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
2577         (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
2579 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2581         * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
2582         (vmlal_high_lane_s32): Likewise.
2583         (vmlal_high_lane_u16): Likewise.
2584         (vmlal_high_lane_u32): Likewise.
2585         (vmlsl_high_lane_s16): Likewise.
2586         (vmlsl_high_lane_s32): Likewise.
2587         (vmlsl_high_lane_u16): Likewise.
2588         (vmlsl_high_lane_u32): Likewise.
2590 2014-07-17  Terry Guo  <terry.guo@arm.com>
2592         * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
2593         (alus_reg): Renamed to alus_sreg.
2594         * config/arm/arm-fixed.md: Change type of non-dsp instructions
2595         from alu_reg to alu_sreg.  Change type of dsp instructions from
2596         alu_reg to alu_dsp_reg.
2597         * config/arm/thumb1.md: Likewise.
2598         * config/arm/thumb2.md: Likewise.
2599         * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
2600         * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
2601         with alu_sreg and alus_sreg.
2602         * config/arm/arm1026ejs.md (alu_op): Likewise.
2603         * config/arm/arm1136jfs.md (11_alu_op): Likewise.
2604         * config/arm/arm926ejs.md (9_alu_op): Likewise.
2605         * config/arm/fa526.md (526_alu_op): Likewise.
2606         * config/arm/fa606te.md (606te_alu_op): Likewise.
2607         * config/arm/fa626te.md (626te_alu_op): Likewise.
2608         * config/arm/fa726te.md (726te_alu_op): Likewise.
2609         * config/arm/fmp626.md (mp626_alu_op): Likewise.
2610         * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
2611         alu_sreg, alu_dsp_reg and alus_sreg.
2612         * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
2613         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
2614         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
2615         * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
2616         * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
2617         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
2618         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
2619         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
2620         * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
2621         * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
2622         subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
2623         *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
2624         (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
2625         sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
2626         subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
2627         alus_reg to alus_sreg.
2629 2014-07-17  Andreas Schwab  <schwab@linux-m68k.org>
2631         * real.c (encode_ieee_extended_motorola): Clear integer bit in the
2632         infinity format.
2634 2014-07-17  Richard Biener  <rguenther@suse.de>
2636         PR rtl-optimization/61801
2637         * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
2638         don't set reg_pending_barrier if it appears in a debug-insn.
2640 2014-07-16  DJ Delorie  <dj@redhat.com>
2642         * config/rx/rx.c (rx_option_override): Fix alignment values.
2643         (rx_align_for_label): Likewise.
2645 2014-07-17  Hans-Peter Nilsson  <hp@axis.com>
2647         PR target/61737.
2648         * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
2649         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
2650         (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
2651         functions.
2652         (cris_print_index, cris_print_operand, cris_constant_index_p)
2653         (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
2654         (cris_address_cost): Ditto last CONSTANT_P.
2655         (cris_symbol_type_of): Rename from cris_pic_symbol_type_of.  All
2656         callers changed.  Yield cris_offsettable_symbol for non-PIC
2657         constant symbolic expressions including labels.  Yield cris_unspec
2658         for all unspecs.
2659         (cris_expand_pic_call_address): New parameter MARKERP.  Set its
2660         target to pic_offset_table_rtx for calls that will likely go
2661         through PLT, const0_rtx when they can't.  All callers changed.
2662         Assert flag_pic.  Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
2663         symbolic expressions to be PICified.  Remove second, redundant,
2664         assert on can_create_pseudo_p returning non-zero.  Use
2665         replace_equiv_address_nv, not replace_equiv_address, for final
2666         operand update.
2667         * config/cris/cris.md ("movsi"): Move variable t to pattern
2668         toplevel. Adjust assert for new cris_symbol_type member.  Use
2669         CONSTANT_P instead of CONSTANT_ADDRESS_P.
2670         ("*movsi_internal") <case 9>: Make check for valid unspec operands
2671         for lapc stricter.
2672         <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
2673         ("call", "call_value"): Use second incoming operand as a marker
2674         for pic-offset-table-register being used.
2675         ("*expanded_call_non_v32", "*expanded_call_v32")
2676         ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
2677         second incoming operand to CALL, match cris_call_type_marker.
2678         ("*expanded_call_value_side"): Ditto.  Disable before reload_completed.
2679         ("*expanded_call_side"): Ditto.  Fix typo in comment.
2680         (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
2681         CONSTANT_P.
2682         * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
2683         * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
2684         (enum cris_symbol_type): Rename from cris_pic_symbol_type.  All
2685         users changed.  Add members cris_offsettable_symbol and cris_unspec.
2686         (cris_symbol_type): Rename from cris_pic_symbol_type.
2687         * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
2688         just CONSTANT_P.
2689         * config/cris/cris-protos.h (cris_symbol_type_of,
2690         cris_expand_pic_call_address): Adjust prototypes.
2691         (cris_legitimate_constant_p): New prototype.
2693         * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
2694         an existing tmake_file.  Don't add t-slibgcc and t-linux.
2696 2014-07-17  Jason Merrill  <jason@redhat.com>
2698         PR c++/61623
2699         * symtab.c (symtab_remove_from_same_comdat_group): Also
2700         set_comdat_group to NULL_TREE.
2701         (verify_symtab): Fix diagnostic.
2703 2014-07-16  David Wohlferd  <dw@LimeGreenSocks.com>
2705         PR target/61662
2706         * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
2708 2014-07-16  Dodji Seketeli  <dodji@redhat.com>
2710         Support location tracking for built-in macro tokens
2711         * input.h (is_location_from_builtin_token): New function declaration.
2712         * input.c (is_location_from_builtin_token): New function definition.
2713         * toplev.c (general_init): Tell libcpp what the pre-defined
2714         spelling location for built-in tokens is.
2716 2014-07-16  Jakub Jelinek  <jakub@redhat.com>
2718         * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
2719         on the FUNCTION_DECL.
2721 2014-07-16  Richard Biener  <rguenther@suse.de>
2723         PR other/61782
2724         * doc/extend.texi (always_inline): Clarify.
2726 2014-07-15  Eric Christopher  <echristo@gmail.com>
2728         * doc/invoke.texi (Link Options): Document -z option.
2730 2014-07-15  Uros Bizjak  <ubizjak@gmail.com>
2732         * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
2733         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
2735 2014-07-15  Jan Hubicka  <hubicka@ucw.cz>
2737         * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
2739 2014-07-15  Bernd Schmidt  <bernds@codesourcery.com>
2741         * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
2742         varpool_assemble_decl.
2743         * varpool.c (varpool_assemble_decl): Assert that node->definition is
2744         true.
2746 2014-07-15  Michael Matz  <matz@suse.de>
2748         PR rtl-optimization/61772
2749         * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
2751 2014-07-15  Richard Biener  <rguenther@suse.de>
2753         * opts.c (default_options_table): Disable bit-ccp at -Og.
2755 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
2757         * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
2759 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
2761         * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
2762         NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
2763         call langhook for unknown declaration.
2764         (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
2765         * tree.h (DECL_ARGUMENTS): Update.
2766         * print-tree.c (print_node): Update.
2767         * tree-core.h (tree_decl_non_common): Remove arguments.
2768         (tree_function_decl): Add arguments.
2770 2014-07-14  Richard Earnshaw  <rearnsha@arm.com>
2772         * aarch64.md (add_losym_<mode>): Set type to alu_imm.
2774 2014-07-14  Richard Biener  <rguenther@suse.de>
2776         PR tree-optimization/61779
2777         * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
2778         simplifying a condition.
2780 2014-07-14  Richard Biener  <rguenther@suse.de>
2782         * builtins.c (c_strlen): Make only_value == 2 really only
2783         affect warning generation.
2785 2014-07-14  Richard Biener  <rguenther@suse.de>
2787         PR tree-optimization/61757
2788         PR tree-optimization/61783
2789         PR tree-optimization/61787
2790         * tree-ssa-dom.c (record_equality): Revert canonicalization
2791         change and add comment.
2792         (propagate_rhs_into_lhs): Revert previous fix, removing
2793         loop depth restriction again.
2795 2014-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2797         * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
2798         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
2799         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
2800         * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
2801         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
2802         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
2803         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
2805 2014-07-14  Richard Biener  <rguenther@suse.de>
2807         * cgraph.h (decl_in_symtab_p): Make inline.
2809 2014-07-14  Jakub Jelinek  <jakub@redhat.com>
2811         PR middle-end/61294
2812         * doc/invoke.texi (-Wmemset-transposed-args): Document.
2814         PR target/61656
2815         * config/i386/i386.c (classify_argument): Don't merge classes above
2816         number of words.
2818 2014-07-13  Jan Hubicka  <hubicka@ucw.cz>
2820         * cgraph.h (symtab_node): Add nonzero_address.
2821         (decl_in_symtab_p): Break out from ...
2822         (symtab_get_node): ... here.
2823         * fold-const.c: Include cgraph.h
2824         (tree_single_nonzero_warnv_p): Use symtab to determine
2825         if symbol is non-zero.
2826         * symtab.c (symtab_node::nonzero_address): New method.
2828 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
2830         * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
2831         forgotten in previous commit.
2833 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
2835         * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
2836         on builtin types.
2837         * ipa-devirt.c: Include stor-layout.h and intl.h
2838         (odr_subtypes_equivalent_p): New function.
2839         (warn_odr): New function.
2840         (warn_type_mismatch): New function.
2841         (odr_types_equivalent_p): New function.
2842         (add_type_duplicate): Use it.
2843         * common.opt (Wodr): New flag.
2844         * doc/invoke.texi (Wodr): Document new warning.
2846 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
2848         * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
2849         (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
2850         * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
2851         (varpool_get_constructor): Push CTORS_IN timevar.
2852         * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
2854 2014-07-12  Uros Bizjak  <ubizjak@gmail.com>
2856         * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
2857         Remove VOID_FTYPE_PUSHORT.
2858         * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
2859         Change code to USHORT_FTYPE_VOID.
2860         (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
2861         (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
2862         (ix86_atomic_assign_expand_fenv): Update for
2863         __builtin_ia32_fnstsw changes.
2864         * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
2865         (fnstsw): Change operand 0 to nonimmediate operand.
2867 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
2869         * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
2870         (varpool_get_constructor): New function.
2871         (varpool_ctor_useable_for_folding_p): Break out from ...
2872         (ctor_for_folding): ... here; use varpool_get_constructor.
2873         (varpool_assemble_decl): Likewise.
2874         * lto-streamer.h (struct output_block): Turn cgraph_node
2875         to symbol filed.
2876         (lto_input_variable_constructor): Declare.
2877         * ipa-visibility.c (function_and_variable_visibility): Use
2878         varpool_get_constructor.
2879         * cgraph.h (varpool_get_constructor): Declare.
2880         (varpool_ctor_useable_for_folding_p): New function.
2881         * lto-streamer-out.c (get_symbol_initial_value): Take encoder
2882         parameter; return error_mark_node for non-trivial constructors.
2883         (lto_write_tree_1, DFS_write_tree): Update use of
2884         get_symbol_initial_value.
2885         (output_function): Update initialization of symbol.
2886         (output_constructor): New function.
2887         (copy_function): Rename to ..
2888         (copy_function_or_variable): ... this one; handle vars too.
2889         (lto_output): Output variable sections.
2890         * lto-streamer-in.c (input_constructor): New function.
2891         (lto_read_body): Rename from ...
2892         (lto_read_body_or_constructor): ... this one; handle vars too.
2893         (lto_input_variable_constructor): New function.
2894         * ipa-prop.c (ipa_prop_write_jump_functions,
2895         ipa_prop_write_all_agg_replacement): Update.
2896         * lto-cgraph.c (compute_ltrans_boundary): Use it.
2897         (output_cgraph_opt_summary): Set symbol to NULL.
2899 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
2901         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
2902         non-polymorphic types.
2903         * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
2904         * ipa-devirt.c (types_same_for_odr): Do not explode when one
2905         of types is not polymorphic.
2907 2014-07-11  Vladimir Makarov  <vmakarov@redhat.com>
2909         * lra-constraints.c (remove_inheritance_pseudos): Process
2910         destination pseudo too.
2912 2014-07-11  Rong Xu  <xur@google.com>
2914         * gcov-tool.c (gcov_output_files): Fix build error introduced in
2915         commit r212448.
2917 2014-07-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
2919         * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
2920         * config/avr/avr-devices.c (AVR_MCU): Same.
2921         (avr_mcu_types): add text start value to end of device list.
2922         * config/avr/avr-mcus.def: Add text section start for all devices.
2923         (ata5782): Add new avr5 device.
2924         (ata5831): Same.
2925         * config/avr/avr-tables.opt: Regenerate.
2926         * config/avr/avr.h: Add declaration for text section start handler.
2927         (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
2928         SPEC functions.
2929         (LINK_SPEC): Include text section start handler to linker spec.
2930         * config/avr/driver-avr.c (avr_device_to_text_start): New function to
2931         pass -Ttext option to linker if the text section start for the device
2932         is not zero.
2933         * config/avr/t-multilib: Regenerate.
2934         * doc/avr-mmcu.texi: Regenerate.
2936 2014-07-11  David Edelsohn  <dje.gcc@gmail.com>
2938         * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
2939         * config/rs6000/aix52.h (LINK_SPEC): Same.
2940         * config/rs6000/aix53.h (LINK_SPEC): Same.
2941         * config/rs6000/aix61.h (LINK_SPEC): Same.
2942         * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
2944 2014-07-11  Roman Gareev  <gareevroman@gmail.com>
2946         * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
2947         (graphite_verify): New function.
2948         (ivs_params_clear): New function.
2949         (gcc_expression_from_isl_ast_expr_id): New function.
2950         (gcc_expression_from_isl_expr_int): New function.
2951         (binary_op_to_tree): New function.
2952         (ternary_op_to_tree): New function.
2953         (unary_op_to_tree): New function.
2954         (nary_op_to_tree): New function.
2955         (gcc_expression_from_isl_expr_op): New function.
2956         (gcc_expression_from_isl_expression): New function.
2957         (graphite_create_new_loop): New function.
2958         (translate_isl_ast_for_loop): New function.
2959         (get_upper_bound): New function.
2960         (graphite_create_new_loop_guard): New function.
2961         (translate_isl_ast_node_for): New function.
2962         (translate_isl_ast): New function.
2963         (add_parameters_to_ivs_params): New function.
2964         (scop_to_isl_ast): New parameter ip.
2965         (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
2967 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
2969         * config/xtensa/predicates.md (call expander): Update for
2970         DECL_SECTION_NAME being string.
2972 2014-07-11  Richard Biener  <rguenther@suse.de>
2974         PR middle-end/61473
2975         * builtins.c (fold_builtin_memory_op): Inline memory moves that
2976         can be implemented with a single load followed by a single store.
2977         (c_strlen): Only warn when only_value is not 2.
2979 2014-07-11  Evgeny Stupachenko  <evstupac@gmail.com>
2981         * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
2983 2014-07-11  Marat Zakirov  <m.zakirov@samsung.com>
2985         PR target/61561
2986         * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
2987         (*movhi_bytes): Likewise.
2988         (*arm_movqi_insn): Likewise.
2990 2014-07-11  Uros Bizjak  <ubizjak@gmail.com>
2992         PR target/56858
2993         * config/alpha/alpha.c: Include tree-pass.h, context.h
2994         and pass_manager.h.
2995         (pass_data_handle_trap_shadows): New pass.
2996         (pass_handle_trap_shadows::gate): New pass gate function.
2997         (make_pass_handle_trap_shadows): New function.
2998         (rest_of_handle_trap_shadows): Ditto.
3000         (alpha_align_insns_1): Rename from alpha_align_insns.
3001         (pass_data_align_insns): New pass.
3002         (pass_align_insns::gate): New pass gate function.
3003         (make_pass_aling_insns): New function.
3004         (rest_of_align_insns): Ditto.
3005         (alpha_align_insns): Ditto.
3007         (alpha_option_override): Declare handle_trap_shadows info
3008         and align_insns_info.  Register handle_trap_shadows and align_insns
3009         passes here.
3010         (alpha_reorg): Do not call alpha_trap_shadows and
3011         alpha_align_insn from here.
3013         (alpha_pad_function_end): Do not skip BARRIERs.
3015 2014-07-10  Rong Xu  <xur@google.com>
3017         Add gcov-tool: an offline gcda profile processing tool support.
3018         * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
3019         (gcov_is_error): Ditto.
3020         (gcov_read_string): Ditto.
3021         (gcov_read_sync): Ditto.
3022         * gcov-io.h: Move counter defines to gcov-counter.def.
3023         * gcov-dump.c (tag_counters): Use gcov-counter.def.
3024         * coverage.c: Ditto.
3025         * gcov-tool.c: Offline gcda profile processing tool.
3026         (unlink_gcda_file): Remove one gcda file.
3027         (unlink_profile_dir): Remove gcda files from the profile path.
3028         (gcov_output_files): Output gcda files to an output dir.
3029         (profile_merge): Merge two profiles in directory.
3030         (print_merge_usage_message): Print merge usage.
3031         (merge_usage): Print merge usage and exit.
3032         (do_merge): Driver for profile merge sub-command.
3033         (profile_rewrite): Rewrite profile.
3034         (print_rewrite_usage_message): Print rewrite usage.
3035         (rewrite_usage): Print rewrite usage and exit.
3036         (do_rewrite): Driver for profile rewrite sub-command.
3037         (print_usage): Print gcov-info usage and exit.
3038         (print_version): Print gcov-info version.
3039         (process_args): Process arguments.
3040         (main): Main routine for gcov-tool.
3041         * Makefile.in: Build and install gcov-tool.
3042         * gcov-counter.def: New file split from gcov-io.h.
3043         * doc/gcc.texi: Include gcov-tool.texi.
3044         * doc/gcov-tool.texi: Document for gcov-tool.
3046 2014-07-10  Richard Biener  <rguenther@suse.de>
3048         PR tree-optimization/61757
3049         * tree-ssa-dom.c (loop_depth_of_name): Restore.
3050         (propagate_rhs_into_lhs): Revert part of last change.
3052 2014-07-10  Thomas Schwinge  <thomas@codesourcery.com>
3054         * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
3055         FUNCTION_DECLs.
3057 2014-07-10  Eric Botcazou  <ebotcazou@adacore.com>
3059         PR middle-end/53590
3060         * function.c (allocate_struct_function): Revert r188667 change.
3062         * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
3064 2014-07-10  Tom G. Christensen  <tgc@jupiterrise.com>
3066         * doc/install.texi: Remove links to defunct package providers for
3067         Solaris.
3069 2014-07-09  Tom de Vries  <tom@codesourcery.com>
3071         * final.c (get_call_fndecl): Declare.
3072         (self_recursive_call_p): New function.
3073         (collect_fn_hard_reg_usage): Handle self-recursive function calls.
3075 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
3077         * ipa-devirt.c (record_node): Walk through aliases.
3079 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
3081         * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
3083 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
3085         Revert:
3086         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
3088 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
3090         * ipa-visibility.c (function_and_variable_visibility): Remove
3091         temporary hack disabling local aliases on AIX.
3093 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
3095         * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
3096         * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
3098 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
3100         * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
3101         * rs6000/rs6000.c: Inline output of .set instruction.
3102         (declare_alias_data): New struct.
3103         (rs6000_declare_alias): New function.
3104         (rs6000_xcoff_declare_function_name): Use it.
3105         (rs6000_xcoff_declare_object_name): New function.
3106         * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
3107         (ASM_OUTPUT_DEF): Turn to empty definition.
3109 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
3111         PR bootstrap/61679
3112         * hash-table.h: use hash_table::value_type instead of
3113         Descriptor::value_type in the return types of several methods.
3115 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
3117         * tree-pass.h (pass_data): Remove has_execute member.
3118         * passes.c (execute_one_pass): Don't check pass->has_execute.
3119         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
3120         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
3121         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
3122         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
3123         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
3124         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
3125         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
3126         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
3127         gimple-low.c, gimple-ssa-isolate-paths.c,
3128         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
3129         ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
3130         ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
3131         ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
3132         lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
3133         postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
3134         reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
3135         stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
3136         tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
3137         tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
3138         tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
3139         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
3140         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
3141         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
3142         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
3143         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
3144         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
3145         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
3146         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
3147         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
3148         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
3149         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
3150         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
3151         web.c: Remove initializer for pass_data::has_execute.
3153 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
3155         * graphite-htab.h: Use hash_map instead of hash_table.
3156         * graphite-clast-to-gimple.c: Adjust.
3157         * passes.c: Use hash_map instead of hash_table.
3158         * sese.c: Likewise.
3159         * sese.h: Remove now unused code.
3161 2014-07-08  Sriraman Tallam  <tmsriram@google.com>
3163         PR target/61599
3164         * config/i386/i386.c (ix86_in_large_data_p): Check for size less
3165         than zero.
3167 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
3169         PR rtl-optimization/61673
3170         * combine.c (simplify_comparison): Test just mode's sign bit
3171         in tmode rather than the sign bit and any bits above it.
3173 2014-07-08  Roman Gareev  <gareevroman@gmail.com>
3175         * graphite-isl-ast-to-gimple.c (generate_isl_context):
3176         Add __isl_give to the declaration.
3177         (generate_isl_schedule): Likewise.
3178         (scop_to_isl_ast): Likewise.
3180 2014-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3182         * config/arm/arm.c (cortexa5_extra_costs): New table.
3183         (arm_cortex_a5_tune): Use cortexa5_extra_costs.
3185 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
3187         PR tree-optimization/61725
3188         * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
3189         range, use range_includes_zerop_p instead of integer_zerop on
3190         vr0->min, only use log2 of max if min is not negative.
3192 2014-07-08  Richard Biener  <rguenther@suse.de>
3194         * tree-ssa-dom.h (loop_depth_of_name): Remove.
3195         * tree-ssa-dom.c (record_equivalences_from_phis): Remove
3196         restriction on loop depth difference.
3197         (record_equality): Likewise.
3198         (propagate_rhs_into_lhs): Likewise.  Simplify condition.
3199         (loop_depth_of_name): Remove.
3200         * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
3201         restriction on loop depth difference.
3202         (init_copy_prop): Likewise.
3204 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
3206         * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
3207         parameter.
3208         (walk_aliased_vdefs): Likewise.
3209         * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
3210         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
3211         (detect_type_change_from_memory_writes): Check if entry was reached.
3213 2014-07-08  Richard Biener  <rguenther@suse.de>
3215         PR tree-optimization/61681
3216         * tree-ssa-structalias.c (find_what_var_points_to): Expand
3217         NONLOCAL inside ESCAPED.
3219 2014-07-08  Richard Biener  <rguenther@suse.de>
3221         PR tree-optimization/61680
3222         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
3223         Handle properly all read-write dependences with group accesses.
3225 2014-07-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
3227         PR tree-optimization/61576
3228         * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
3229         block containing reduction statement is predecessor of phi basi block.
3231 2014-07-08  Marek Polacek  <polacek@redhat.com>
3233         PR c/60226
3234         * fold-const.c (round_up_loc): Change the parameter type.
3235         Remove assert.
3236         * fold-const.h (round_up_loc): Adjust declaration.
3237         * stor-layout.c (finalize_record_size): Check for too large types.
3239 2014-07-07  Jan Hubicka  <hubicka@ucw.cz>
3241         * symtab.c: Include calls.h.
3242         (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
3244 2014-07-07  Maciej W. Rozycki  <macro@codesourcery.com>
3246         * config/rs6000/rs6000.c (output_vec_const_move): Handle
3247         little-endian code generation.
3248         * config/rs6000/spe.md (spe_evmergehi): Rename to...
3249         (vec_perm00_v2si): ... this.  Handle little-endian code generation.
3250         (spe_evmergehilo): Rename to...
3251         (vec_perm01_v2si): ... this.  Handle little-endian code generation.
3252         (spe_evmergelo): Rename to...
3253         (vec_perm11_v2si): ... this.  Handle little-endian code generation.
3254         (spe_evmergelohi): Rename to...
3255         (vec_perm10_v2si): ... this.  Handle little-endian code generation.
3256         (spe_evmergehi, spe_evmergehilo): New expanders.
3257         (spe_evmergelo, spe_evmergelohi): Likewise.
3258         (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
3259         (*frob_tf_ti): Likewise.
3260         (*frob_<mode>_di_2): Likewise.
3261         (*frob_tf_di_8_2): Likewise.
3262         (*frob_di_<mode>): Likewise.
3263         (*frob_ti_tf): Likewise.
3264         (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
3265         (*frob_ti_<mode>_8_2): Likewise.
3266         (*frob_ti_tf_2): Likewise.
3267         (mov_si<mode>_e500_subreg0): Rename to...
3268         (mov_si<mode>_e500_subreg0_be): ... this.  Restrict to the big
3269         endianness only.
3270         (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
3271         (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
3272         (*mov_si<mode>_e500_subreg0_elf_low_be): ... this.  Restrict to
3273         the big endianness only.
3274         (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
3275         (*mov_si<mode>_e500_subreg0_2): Rename to...
3276         (*mov_si<mode>_e500_subreg0_2_be): ... this.  Restrict to the
3277         big big endianness only.
3278         (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
3279         (*mov_si<mode>_e500_subreg4): Rename to...
3280         (*mov_si<mode>_e500_subreg4_be): ... this.  Restrict to the big
3281         endianness only.
3282         (mov_si<mode>_e500_subreg4_le): New instruction pattern.
3283         (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
3284         (*mov_si<mode>_e500_subreg4_elf_low_be): ... this.  Restrict to
3285         the big endianness only.
3286         (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
3287         pattern.
3288         (*mov_si<mode>_e500_subreg4_2): Rename to...
3289         (*mov_si<mode>_e500_subreg4_2_be): ... this.  Restrict to the big
3290         endianness only.
3291         (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
3292         (*mov_sitf_e500_subreg8): Rename to...
3293         (*mov_sitf_e500_subreg8_be): ... this.  Restrict to the big
3294         endianness only.
3295         (*mov_sitf_e500_subreg8_le): New instruction pattern.
3296         (*mov_sitf_e500_subreg8_2): Rename to...
3297         (*mov_sitf_e500_subreg8_2_be): ... this.  Restrict to the big
3298         endianness only.
3299         (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
3300         (*mov_sitf_e500_subreg12): Rename to...
3301         (*mov_sitf_e500_subreg12_be): ... this.  Restrict to the big
3302         endianness only.
3303         (*mov_sitf_e500_subreg12_le): New instruction pattern.
3304         (*mov_sitf_e500_subreg12_2): Rename to...
3305         (*mov_sitf_e500_subreg12_2_be): ... this.  Restrict to the big
3306         endianness only.
3307         (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
3309 2014-07-07  Max Ostapenko  <m.ostapenko@partner.samsung.com>
3311         * asan.c (instrument_strlen_call): Do not instrument first byte
3312         in strlen if already instrumented.
3314 2014-07-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3316         * config/arm/arm.opt (mwords-little-endian): Delete.
3317         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
3318         of TARGET_LITTLE_WORDS.
3319         (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
3320         * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
3321         warning.
3322         * doc/invoke.texi: Remove references to -mwords-little-endian.
3324 2014-07-07  Jakub Jelinek  <jakub@redhat.com>
3326         * expmed.c (struct init_expmed_rtl): Change all fields but
3327         pow2 and cint from struct rtx_def to rtx.
3328         (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
3329         (init_expmed): Likewise.  Allocate all the 18 rtxes and ggc_free them
3330         at the end again.
3332 2014-07-06  Marek Polacek  <polacek@redhat.com>
3334         PR c/6940
3335         * doc/invoke.texi: Document -Wsizeof-array-argument.
3337 2014-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
3339         * wide-int.h (wide_int_storage): Change declaration from struct
3340         to class.
3342 2014-07-05  Jan Hubicka  <hubicka@ucw.cz>
3344         * cgraph.c (cgraph_create_indirect_edge): Update call of
3345         get_polymorphic_call_info.
3346         * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
3347         (possible_polymorphic_call_targets): Add parameter call.
3348         (decl_maybe_in_construction_p): New predicate.
3349         (get_polymorphic_call_info): Add parameter call;
3350         use decl_maybe_in_construction_p.
3351         * gimple-fold.c (fold_gimple_assign): Update use of
3352         possible_polymorphic_call_targets.
3353         (gimple_fold_call): Likewise.
3354         * ipa-prop.c: Inlcude calls.h
3355         (ipa_binfo_from_known_type_jfunc): Check that known type is record.
3356         (param_type_may_change_p): New predicate.
3357         (detect_type_change_from_memory_writes): Break out from ...
3358         (detect_type_change): ... this one; use param_type_may_change_p.
3359         (detect_type_change_ssa): Use param_type_may_change_p.
3360         (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
3362 2014-07-05  Charles Baylis  <charles.baylis@linaro.org>
3364         PR target/49423
3365         * config/arm/arm-protos.h (arm_legitimate_address_p,
3366         arm_is_constant_pool_ref): Add prototypes.
3367         * config/arm/arm.c (arm_legitimate_address_p): Remove static.
3368         (arm_is_constant_pool_ref) New function.
3369         * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
3370         arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
3371         (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
3372         operand. Remove pool_range and neg_pool_range attributes.
3373         (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
3374         pool_range and neg_pool_range attributes.
3375         * config/arm/constraints.md (Uh): New constraint.
3376         (Uq): Don't allow constant pool references.
3378 2014-07-04  James Greenhalgh  <james.greenhalgh@arm.com>
3380         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
3381         (move_lo_quad_internal_be_<mode>): Likewise.
3382         (move_lo_quad_<mode>): Convert to define_expand.
3383         (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
3384         (aarch64_simd_move_hi_quad_be_<mode>): New.
3385         (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
3386         (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
3387         (aarch64_combinez_be<mode>): New.
3388         (aarch64_combine<mode>): Convert to define_expand.
3389         (aarch64_combine_internal<mode>): New.
3390         (aarch64_simd_combine<mode>): Remove bogus RTL description.
3392 2014-07-04  Tom de Vries  <tom@codesourcery.com>
3394         * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
3395         combination of earlyclobber and read/write modifiers.
3397 2014-07-04  Tom de Vries  <tom@codesourcery.com>
3399         * config/aarch64/aarch64-simd.md
3400         (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
3402 2014-07-04  Richard Earnshaw  <rearnsha@arm.com>
3404         PR target/61714
3405         * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
3407 2014-07-04  Jakub Jelinek  <jakub@redhat.com>
3409         PR middle-end/61654
3410         * cgraphunit.c (expand_thunk): Call free_dominance_info.
3412         PR tree-optimization/61684
3413         * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
3414         rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
3416 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
3417             Kito Cheng  <kito@0xlab.org>
3418             Monk Chiang  <sh.chiang04@gmail.com>
3420         * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
3421         (nds32_symbol_load_store_p): Move to ...
3422         (nds32_fp_as_gp_check_available): Move to ...
3423         * config/nds32/nds32-fp-as-gp.c: ... here.
3424         * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
3425         extern declaration.
3427 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
3428             Kito Cheng  <kito@0xlab.org>
3429             Monk Chiang  <sh.chiang04@gmail.com>
3431         * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
3432         (nds32_expand_store_multiple): Move to ...
3433         (nds32_expand_movmemqi): Move to ...
3434         * config/nds32/nds32-memory-manipulation.c: ... here.
3436 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
3437             Kito Cheng  <kito@0xlab.org>
3438             Monk Chiang  <sh.chiang04@gmail.com>
3440         * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
3441         (nds32_output_casesi_pc_relative): Move to ...
3442         (nds32_output_casesi): Move to ...
3443         (nds32_mem_format): Move to ...
3444         (nds32_output_16bit_store): Move to ...
3445         (nds32_output_16bit_load): Move to ...
3446         (nds32_output_32bit_store): Move to ...
3447         (nds32_output_32bit_load): Move to ...
3448         (nds32_output_32bit_load_s): Move to ...
3449         (nds32_output_stack_push): Move to ...
3450         (nds32_output_stack_pop): Move to ...
3451         * config/nds32/nds32-md-auxiliary.c: ... here.
3453 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
3454             Ling-Hua Tseng  <uranus@tinlans.org>
3456         * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
3457         the purpose of this file.
3459 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
3460             Kito Cheng  <kito@0xlab.org>
3461             Monk Chiang  <sh.chiang04@gmail.com>
3463         * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
3464         (nds32_address_cost): Move implementation to ...
3465         * config/nds32/nds32-cost.c: ... here.
3466         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
3467         (nds32_address_cost_impl): Declare.
3469 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
3470             Kito Cheng  <kito@0xlab.org>
3471             Monk Chiang  <sh.chiang04@gmail.com>
3473         * config/nds32/nds32.c
3474         (nds32_consecutive_registers_load_store_p): Move to ...
3475         (nds32_valid_multiple_load_store): Move to ...
3476         (nds32_valid_stack_push_pop): Move to ...
3477         (nds32_can_use_bclr_p): Move to ...
3478         (nds32_can_use_bset_p): Move to ...
3479         (nds32_can_use_btgl_p): Move to ...
3480         (nds32_can_use_bitci_p): Move to ...
3481         * config/nds32/nds32-predicates.c: ... here.
3483 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
3484             Kito Cheng  <kito@0xlab.org>
3485             Monk Chiang  <sh.chiang04@gmail.com>
3487         * config/nds32/nds32.c
3488         (nds32_expand_builtin_null_ftype_reg): Move to ...
3489         (nds32_expand_builtin_reg_ftype_imm): Move to ...
3490         (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
3491         (nds32_init_builtins): Move implementation to ...
3492         (nds32_expand_builtin): Move implementation to ...
3493         * config/nds32/nds32-intrinsic.c: ... here.
3494         * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
3495         (nds32_expand_builtin_impl): Declare.
3497 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
3498             Kito Cheng  <kito@0xlab.org>
3499             Monk Chiang  <sh.chiang04@gmail.com>
3501         * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
3502         (nds32_emit_section_tail_template): Move to ...
3503         (nds32_emit_isr_jmptbl_section): Move to ...
3504         (nds32_emit_isr_vector_section): Move to ...
3505         (nds32_emit_isr_reset_conten): Move to ...
3506         (nds32_check_isr_attrs_conflict): Move to ...
3507         (nds32_construct_isr_vectors_information): Move to ...
3508         (nds32_asm_file_start): Move implementation to ...
3509         (nds32_asm_file_end): Move implementation to ...
3510         * config/nds32/nds32-isr.c: ... here.
3511         * config/nds32/nds32-protos.h
3512         (nds32_check_isr_attrs_conflict): Declare.
3513         (nds32_construct_isr_vectors_information): Declare.
3514         (nds32_asm_file_start_for_isr): Declare.
3515         (nds32_asm_file_end_for_isr): Declare.
3517 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
3518             Kito Cheng  <kito@0xlab.org>
3519             Monk Chiang  <sh.chiang04@gmail.com>
3521         * config.gcc (nds32*): Add new modules to extra_objs.
3522         (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
3523         (nds32be-*-*): Likewise.
3524         * config/nds32/nds32-cost.c: New file.
3525         * config/nds32/nds32-fp-as-gp.c: New file.
3526         * config/nds32/nds32-intrinsic.c: New file.
3527         * config/nds32/nds32-isr.c: New file.
3528         * config/nds32/nds32-md-auxiliary.c: New file.
3529         * config/nds32/nds32-memory-manipulation.c: New file.
3530         * config/nds32/nds32-pipelines-auxiliary.c: New file.
3531         * config/nds32/nds32-predicates.c: New file.
3532         * config/nds32/t-nds32: New file.
3534 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
3536         PR tree-optimization/61682
3537         * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
3538         using cases and when one of the operands is equal to 1.
3540 2014-07-03  Segher Boessenkool  <segher@kernel.crashing.org>
3542         * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
3543         ashr<mode>3): Correct mode of operands[2].
3544         (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
3545         lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
3546         Correct mode of operands[2].  Fix split condition.
3548 2014-07-03  Richard Earnshaw  <rearnsha@arm.com>
3550         * arm.md (arch): Add armv6_or_vfpv3.
3551         (arch_enabled): Add test for the above.
3552         * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
3553         on VFP9.
3554         (sqrtsf_vfp, sqrtdf_vfp): Likewise.
3556 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
3558         * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
3559         * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
3560         HWI 1 and negate the unsigned value.
3561         * expmed.c (expand_sdiv_pow2): For modes wider than word always
3562         use AND instead of shift.
3563         * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
3565 2014-07-03  Marek Polacek  <polacek@redhat.com>
3567         * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
3568         (-fsanitize=float-divide-by-zero): Move to the table with
3569         -fsanitize=undefined suboptions.
3570         (-fsanitize=float-cast-overflow): Likewise.
3572 2014-07-03  Maciej W. Rozycki  <macro@codesourcery.com>
3574         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
3575         BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
3576         endianness.
3578 2014-07-03  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
3580         * loop-invariant.c (struct invariant): Add a new member: eqno;
3581         (find_identical_invariants): Update eqno;
3582         (create_new_invariant): Init eqno;
3583         (get_inv_cost): Compute comp_cost with eqno;
3585 2014-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
3587         * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
3588         (walk_insn_part) <ROTATE, ROTATERT>: New cases.
3589         (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
3590         * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
3591         Only do the transformation if both HAVE_rotate and HAVE_rotatert.
3593 2014-07-02  Christian Bruel  <christian.bruel@st.com>
3595         PR target/29349
3596         PR target/53513
3597         * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
3598         (make_preds_opaque): Delete.
3599         (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
3600         (commit_mode_sets): New function.
3601         (optimize_mode_switching): Handle current_mode to mode_switching_emit.
3602         Process all modes at once.
3603         * basic-block.h (pre_edge_lcm_avs): Declare.
3604         * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
3605         Call clear_aux_for_edges. Fix comments.
3606         (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
3607         (pre_edge_rev_lcm): Idem.
3608         * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
3609         parameter.
3610         * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
3611         * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
3612         Idem.
3613         * config/i386/i386.c (x96_emit_mode_set): Idem.
3614         * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
3615         * config/sh/sh.md (toggle_pr):  Defined if TARGET_FPU_SINGLE.
3616         (fpscr_toggle) Disallow from delay slot.
3617         * target.def (emit_mode_set): Add prev_mode parameter.
3618         * doc/tm.texi: Regenerate.
3620 2014-07-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3622         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
3623         variable i.
3625 2014-07-01  Jan Hubicka  <hubicka@ucw.cz>
3627         * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
3628         vtable_pointer_value_to_vtable): Constify.
3629         (contains_polymorphic_type_p): Declare.
3630         * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
3631         vtable_pointer_value_to_vtable): Constify.
3632         (contains_polymorphic_type_p): New predicate.
3633         * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
3634         polymorphic types.
3635         (ipa_set_ancestor_jf): Likewise.
3636         (detect_type_change): Return false in easy cases.
3637         (compute_complex_assign_jump_func): Require type to contain
3638         polymorphic type.
3639         (compute_known_type_jump_func): Likewise.
3641 2014-07-01  Jan Hubicka  <hubicka@ucw.cz>
3643         * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
3644         Remove.
3645         (type_in_anonymous_namespace_p): Constify argument.
3646         * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
3647         * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
3648         (main_odr_variant): New function.
3649         (hash_type_name): Make static; update assert; do not ICE on
3650         non-records.
3651         (types_same_for_odr): Bring here from tree.c; simplify and remove
3652         old structural comparing code that doesn't work for templates.
3653         (odr_hasher::equal): Update assert.
3654         (add_type_duplicate): Return true when bases should be computed;
3655         replace incomplete loader by complete; do not output duplicated
3656         warnings; do not ICE on non-records; set odr_violated flag.
3657         (get_odr_type): Be ready to replace incomplete type by complete
3658         one; work on ODR variants instead of main variants; reorder item
3659         in array so bases have still smaller indexes.
3660         (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
3661         (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
3663 2014-07-01  Cary Coutant  <ccoutant@google.com>
3665         * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
3666         lookup.
3667         (resolve_addr_in_expr): When replacing the rtx in a location list
3668         entry, get a new address table entry.
3669         (dwarf2out_finish): Call index_location_lists even if there are no
3670         addr_index_table entries yet.
3672 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
3674         * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
3675         change for not being obvious.
3677 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
3679         * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
3680         unused argument.
3682 2014-07-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3684         * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
3685         (vcagt_f64): Likewise.
3686         (vcale_f64): Likewise.
3687         (vcaled_f64): Likewise.
3688         (vcales_f32): Likewise.
3689         (vcalt_f64): Likewise.
3690         (vcaltd_f64): Likewise.
3691         (vcalts_f32): Likewise.
3693 2014-07-01  Marek Polacek  <polacek@redhat.com>
3695         * doc/invoke.texi: Document -Wint-conversion.
3697 2014-07-01  Marek Polacek  <polacek@redhat.com>
3699         PR c/58286
3700         * doc/invoke.texi: Document -Wincompatible-pointer-types.
3702 2014-07-01  Martin Liska  <mliska@suse.cz>
3704         IPA REF alias refactoring
3705         * cgraph.h (iterate_direct_aliases): New function.
3706         (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
3707         * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
3708         FOR_EACH_ALIAS added.
3709         (cgraph_for_node_and_aliases): Likewise.
3710         * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
3711         * ipa-inline.c (reset_edge_caches): Likewise.
3712         (update_caller_keys): Likewise.
3713         * trans-mem.c (ipa_tm_execute): Likewise.
3714         *varpool.c (varpool_analyze_node): Likewise.
3715         (varpool_for_node_and_aliases): Likewise.
3716         * ipa-ref.h (first_alias): New function.
3717         (last_alias): Likewise.
3718         (has_aliases_p): Likewise.
3719         * ipa-ref.c (ipa_ref::remove_reference): Removal function
3720         is sensitive to IPA_REF_ALIASes.
3721         * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
3722         are put at the beginning of the list.
3723         (symtab_node::iterate_direct_aliases): New function.
3725 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
3727         Revert:
3728         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
3729         type is complete.
3730         (write_ts_type_common_tree_pointers): Do not stream fields not set
3731         for incomplete types; do not stream duplicated fields for variants;
3732         sanity check that variant and type match.
3733         (write_ts_type_non_common_tree_pointers): Likewise.
3734         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
3735         TYPE_SIZE whether type is complete.
3736         (lto_input_ts_type_common_tree_pointers): Do same changes as in
3737         write_ts_type_common_tree_pointers
3738         (lto_input_ts_type_non_common_tree_pointers): Likewise.
3740 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
3742         * var-tracking.c (add_stores): Return instead of asserting if old
3743         and new values for conditional store are the same.
3745 2014-06-30  Richard Henderson  <rth@redhat.com>
3747         PR rtl-opt/61608
3748         PR target/39284
3749         * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
3750         the cfg if there were any changes.
3751         * passes.def: Revert move of peephole2 after reorder_blocks;
3752         move duplicate_computed_gotos before peephole2.
3754 2014-06-30  Uros Bizjak  <ubizjak@gmail.com>
3756         * except.c (emit_note_eh_region_end): New helper function.
3757         (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
3758         emit EH_REGION_END note.
3759         * jump.c (cleanup_barriers): Do not split a call and its
3760         corresponding CALL_ARG_LOCATION note.
3762 2014-06-30  Jeff Law  <law@redhat.com>
3764         PR tree-optimization/61607
3765         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
3766         deeper into the SSA_NAME_VALUE chain.
3768 2014-06-30  Marek Polacek  <polacek@redhat.com>
3770         * convert.c (convert_to_integer): Don't instrument conversions if the
3771         function has no_sanitize_undefined attribute.
3772         * ubsan.c: Don't run the ubsan pass if the function has
3773         no_sanitize_undefined attribute.
3775 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
3777         * doc/invoke.texi (-fsanitize=bounds): Move to the table with
3778         -fsanitize=undefined suboptions.
3780 2014-06-30  Alan Lawrence  <alan.lawrence@arm.com>
3782         * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
3783         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
3784         against bigendian and adjust indices.
3786 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
3788         * doc/install.texi (Specific, aarch64*-*-*): Fix markup.  Reword a bit.
3790 2014-06-30  Marcus Shawcroft  <marcus.shawcroft@arm.com>
3792         PR target/61633
3793         * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
3794         Add alternative; make early clobber.  Adjust both split patterns
3795         to use operand 0 as the working register.
3797 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
3799         * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
3800         as ira_object_id_map might be NULL, or 1.
3802 2014-06-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
3804         * loop-invariant.c (get_inv_cost): Handle register class.
3805         (gain_for_invariant): Check the register pressure of the inv
3806         and its overlapped register class, other than all.
3808 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
3810         * doc/invoke.texi (Optimize Options): Fix descriptions of
3811         ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
3813 2014-06-29  David Wohlferd <dw@LimeGreenSocks.com>
3815         * doc/extend.texi (Function Attributes): Update 'naked' attribute
3816         documentation.
3818 2014-06-29  Tobias Grosser <tobias@grosser.es>
3820         PR bootstrap/61650
3821         * graphite-isl-ast-to-gimple.c: Add missing guards.
3823 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
3825         * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
3826         * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
3827         * flag-types.h: Add new enum fgraphite_generator.
3828         * graphite-isl-ast-to-gimple.c: New.
3829         * graphite-isl-ast-to-gimple.h: New.
3830         * graphite.c (graphite_transform_loops): Add choice of Graphite
3831         code generator, which depends on flag_graphite_code_gen.
3833 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
3835         * graphite-dependences.c (subtract_commutative_associative_deps):
3836         Add NULL checking of the following variables: must_raw_no_source,
3837         may_raw_no_source, must_war_no_source, may_war_no_source,
3838         must_waw_no_source, may_waw_no_source, must_raw, may_raw,
3839         must_war, may_war, must_waw, may_waw.
3841 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
3843         * graphite-clast-to-gimple.c: gloog is renamed to
3844         graphite_regenerate_ast_cloog.  gloog_error is renamed to
3845         graphite_regenerate_error.
3846         * graphite-clast-to-gimple.h: The definition of the struct
3847         bb_pbb_def is moved to graphite-htab.h.
3848         Add inclusion of the hash-table.h.
3849         * graphite-htab.h: The declaration of the function gloog is moved
3850         to graphite-clast-to-gimple.h and renamed to
3851         graphite_regenerate_ast_cloog.
3852         * graphite.c (graphite_transform_loops): gloog is renamed
3853         to graphite_regenerate_ast_cloog.
3855 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
3857         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
3858         type is complete.
3859         (write_ts_type_common_tree_pointers): Do not stream fields not set
3860         for incomplete types; do not stream duplicated fields for variants;
3861         sanity check that variant and type match.
3862         (write_ts_type_non_common_tree_pointers): Likewise.
3863         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
3864         TYPE_SIZE whether type is complete.
3865         (lto_input_ts_type_common_tree_pointers): Do same changes as in
3866         write_ts_type_common_tree_pointers
3867         (lto_input_ts_type_non_common_tree_pointers): Likewise.
3869 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
3871         * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
3873 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
3875         * tree-inline.c (remap_type_1): Do not duplicate fields
3876         that are shared in between type and its main variant.
3878 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
3880         * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
3881         of the type.
3882         (ipa_set_ancestor_jf) Likewise.
3883         (check_stmt_for_type_change): Check that we work on main variant.
3884         (detect_type_change): Look into main variant.
3885         (compute_known_type_jump_func): Check that main variant has BINFO.
3887 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
3889         * ipa-devirt.c (set_type_binfo): New function.
3890         (add_type_duplicate): Use it.
3891         (get_odr_type): Sanity check that binfos points to main variants.
3892         (get_class_context): Be sure the context's outer_type is main variant.
3893         (contains_type_p): Walk main variant.
3894         (get_polymorphic_call_info_for_decl): Set outer_type to be
3895         main variant.
3896         (get_polymorphic_call_info): Likewise.
3897         (possible_polymorphic_call_targets): Sanity check that we operate
3898         on main variant.
3900 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
3902         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
3904 2014-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3906         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
3907         accidental change due to wide-int branch merge.
3909 2014-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3911         * configure.ac (gcc_cv_as_compress_debug): Check for assembler
3912         compressed debug support.
3913         (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
3914         * configure: Regenerate.
3915         * config.in: Regenerate.
3916         * common.opt (compressed_debug_sections): New enum.
3917         (gz, gz=): New options.
3918         * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
3919         (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
3920         (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
3921         * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
3922         LINK_COMPRESS_DEBUG_SPEC.
3923         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
3924         * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
3925         * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
3926         (Debugging Options): Document -gz[=type].
3928 2014-06-27  Martin Jambor  <mjambor@suse.cz>
3930         PR ipa/61160
3931         * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
3932         args_to_skip, use those from node instead.  Copy args_to_skip and
3933         combined_args_to_skip from node to the new thunk.
3934         (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
3935         (cgraph_create_virtual_clone): Moved computation of
3936         combined_args_to_skip...
3937         (cgraph_clone_node): ...here, simplify it to bitmap_ior..
3939 2014-06-27  trevor Saunders  <tsaunders@mozilla.com>
3941         * config/i386/winnt.c (i386_pe_section_type_flags): Remove
3942         redundant diagnostic machinary.
3944 2014-06-27  Richard Biener  <rguenther@suse.de>
3946         * tree-ssa-math-opts.c (bswap_replace): Fix
3947         SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
3949 2014-06-27  Martin Liska  <mliska@suse.cz>
3951         * gimple.h (gimple_location_safe): New function introduced.
3952         * cgraphunit.c (walk_polymorphic_call_targets): Usage
3953         of gimple_location_safe replaces gimple_location.
3954         (gimple_fold_call): Likewise.
3955         * ipa-devirt.c (ipa_devirt): Likewise.
3956         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
3957         * ipa.c (walk_polymorphic_call_targets): Likewise.
3958         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
3960 2014-06-27  Jakub Jelinek  <jakub@redhat.com>
3962         PR tree-optimization/57233
3963         PR tree-optimization/61299
3964         * tree-vect-generic.c (get_compute_type, count_type_subparts): New
3965         functions.
3966         (expand_vector_operations_1): Use them.  If {L,R}ROTATE_EXPR
3967         would be lowered to scalar shifts, check if corresponding
3968         shifts and vector BIT_IOR_EXPR are supported and don't lower
3969         or lower just to narrower vector type in that case.
3970         * expmed.c (expand_shift_1): Fix up handling of vector
3971         shifts and rotates.
3973 2014-06-26  Uros Bizjak  <ubizjak@gmail.com>
3975         PR target/61586
3976         * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
3978 2014-06-26  Jan Hubicka  <hubicka@ucw.cz>
3980         * doc/invoke.texi (-fsemantic-interposition): Document.
3981         * common.opt (fsemantic-interposition): New flag.
3982         * varasm.c (decl_replaceable_p): Use it.
3984 2014-06-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3986         PR target/61542
3987         * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
3988         extraction other than index 3.
3990 2014-06-26  Teresa Johnson  <tejohnson@google.com>
3992         * doc/invoke.texi: Fix typo.
3993         * dumpfile.c: Add support for documented -fdump-* options
3994         optimized/missed/note/optall.
3996 2014-06-26  Martin Jambor  <mjambor@suse.cz>
3998         * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
3999         (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
4000         (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
4001         (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
4002         * opts.c (default_options_optimization): Set
4003         PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
4004         * doc/invoke.texi (allow-load-data-races)
4005         (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
4006         (allow-store-data-races): Document the new default.
4008 2014-06-26  Martin Jambor  <mjambor@suse.cz>
4010         * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
4011         renamed to ipa_impossible_devirt_target.  Fix typo.
4012         * ipa-prop.h (ipa_impossible_devirt_target): Declare.
4013         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
4014         ipa_impossible_devirt_target.
4016 2014-06-26  Richard Biener  <rguenther@suse.de>
4018         PR tree-optimization/61607
4019         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
4020         explaining why we restrict copies on loop depth.
4021         * tree-ssa-dom.c (cprop_operand): Remove restriction on
4022         on loop depth.
4023         (record_equivalences_from_phis): Instead add it here.
4025 2014-06-26  Bernd Schmidt  <bernds@codesourcery.com>
4027         * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
4028         (LTO_WRAPPER_OBJS): New variable.
4029         (lto-wrapper$(exeext)): Use it.
4030         * collect2.c: Include "collect-utils.h".
4031         (verbose, debug): Remove variables.
4032         (at_file_supplied): No longer static.
4033         (tool_name): New variable.
4034         (do_wait, fork_execute, maybe_unlink): Don't declare.
4035         (tool_cleanup): No longer static.
4036         (notice): Remove function.
4037         (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
4038         fork_execute calls.
4039         (collect_wait, do_wait, collect_execute): Remove functions.
4040         (maybe_unlink): No longer static.
4041         * collect2.h (verbose, debug): Don't declare.
4042         (at_file_supplied): Declare.
4043         * collect-utils.c (utils_cleanup): New arg from_signal.  All callers
4044         changed.
4045         (collect_execute): Replace with implementation from collect2, plus a
4046         new arg use_atfile.  All callers changed.
4047         (collect_wait): Replace with implementation from collect2.
4048         (maybe_unlink_file): Remove function.
4049         (fork_execute): Replace with implementation from collect2, plus a
4050         new arg use_atfile.  All callers changed.
4051         (do_wait): Add call to utils_cleanup to the error path.
4052         * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
4053         (tool_cleanup): Adjust declarations.
4054         * lto-wrapper.c (tool_cleanup): Add unused bool argument.
4055         * tlink.c: Include "collect-utils.h".
4056         (tlink_execute): New arg use_atfile.  All callers changed.
4057         (tlink_init, tlink_execute): Remove declarations.
4059         * collect-utils.c (save_temps): New variable.
4060         (do_wait): Use it instead of debug.  Use fatal_error.
4061         * collect-utils.h (save_temps): Declare.
4062         * collect2.c (verbose): Rename from vflag.  All uses changed.
4063         (tool_cleanup): New function, copied from collect_atexit.
4064         (collect_atexit, handler): Just call it.
4065         * collect2.h (verbose): Declaration renamed from vflag.
4066         * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
4067         debug.
4069         * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
4070         (lto-wrapper$(exeext)): Link with collect-utils.o.
4071         * collect-utils.c: New file.
4072         * collect-utils.h: New file.
4073         * lto-wrapper.c: Include "collect-utils.h".
4074         (args_name): Delete variable.
4075         (tool_name): New variable.
4076         (tool_cleanup): New function.
4077         (maybe_unlink): Renamed from maybe_unlink_file.  All callers changed.
4078         (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
4079         (fork_execute): Remove functions.
4081 2014-06-26  Nick Clifton  <nickc@redhat.com>
4083         * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
4085         * doc/extend.texi (Function Attributes): Fix typo in description
4086         of RX vector attribute.
4088 2014-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
4090         * config.gcc (supported_defaults): Error when passing either
4091         --with-tune or --with-arch in conjunction with --with-cpu for ARM.
4093 2014-06-26  Richard Biener  <rguenther@suse.de>
4095         * tree-ssa-dom.c (cprop_operand): Remove restriction on
4096         propagating volatile pointers.
4098 2014-06-26  Richard Biener  <rguenther@suse.de>
4100         PR tree-optimization/61607
4101         * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
4102         loop if we redirected its latch edge.
4103         (thread_block_1): Do not cancel loops prematurely.
4105 2014-06-25  Jan Hubicka  <hubicka@ucw.cz>
4107         * toplev.c (backend_init_target): Move init_emit_regs and
4108         init_regs to...
4109         (backend_init) ... here; skip ira_init_once and backend_init_target.
4110         (target_reinit) ... and here; clear
4111         this_target_rtl->lang_dependent_initialized.
4112         (lang_dependent_init_target): Clear
4113         this_target_rtl->lang_dependent_initialized;
4114         break out rtl initialization to ...
4115         (initialize_rtl): ... here; call also backend_init_target
4116         and ira_init_once.
4117         * toplev.h (initialize_rtl): New function.
4118         * function.c: Include toplev.h
4119         (init_function_start): Call initialize_rtl.
4120         * rtl.h (target_rtl): Add target_specific_initialized,
4121         lang_dependent_initialized.
4123 2014-06-25  Paul Gortmaker  <paul.gortmaker@windriver.com>
4124             Jakub Jelinek  <jakub@redhat.com>
4126         * gcc.c (set_multilib_dir): Malloc "." pointer as well.
4128 2014-06-25  Tom de Vries  <tom@codesourcery.com>
4130         * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
4132 2014-06-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4134         * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
4135         check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
4136         Issue a strict overflow warning if appropriate.
4138 2014-06-25  Martin Liska  <mliska@suse.cz>
4140         IPA REF refactoring
4141         * Makefile.in: Removed header file (ipa-ref-inline.h).
4142         * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
4143         called.
4144         (cgraph_speculative_call_info): Likewise.
4145         (cgraph_for_node_thunks_and_aliases): Likewise.
4146         (cgraph_for_node_and_aliases): Likewise.
4147         (verify_cgraph_node): Likewise.
4148         * cgraph.h: Batch of IPA REF functions become member functions of
4149         symtab_node: add_reference, maybe_add_reference, clone_references,
4150         clone_referring, clone_reference, find_reference,
4151         remove_stmt_references, remove_all_references,
4152         remove_all_referring, dump_references, dump_referring,
4153         has_alias_p, iterate_reference, iterate_referring.
4154         * cgraphbuild.c (record_reference): New IPA REF function used.
4155         (record_type_list): Likewise.
4156         (record_eh_tables): Likewise.
4157         (mark_address): Likewise.
4158         (mark_load): Likewise.
4159         (mark_store): Likewise.
4160         (pass_build_cgraph_edges): Likewise.
4161         (rebuild_cgraph_edge): Likewise.
4162         (cgraph_rebuild_references): Likewise.
4163         (pass_remove_cgraph_callee_edges): Likewise.
4164         * cgraphclones.c (cgraph_clone_node): Likewise.
4165         (cgraph_create_virtual_clone): Likewise.
4166         (cgraph_materialize_clone): Likewise.
4167         (cgraph_materialize_all_clones): Likewise.
4168         * cgraphunit.c (cgraph_reset_node): Likewise.
4169         (cgraph_reset_node): Likewise.
4170         (analyze_function): Likewise.
4171         (assemble_thunks_and_aliases): Likewise.
4172         (expand_function): Likewise.
4173         * ipa-comdats.c (propagate_comdat_group): Likewise.
4174         (enqueue_references): Likewise.
4175         * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
4176         (create_specialized_node): Likewise.
4177         * ipa-devirt.c (referenced_from_vtable_p): Likewise.
4178         * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
4179         * ipa-inline.c (reset_edge_caches): Likewise.
4180         (update_caller_keys): Likewise.
4181         (execute): Likewise.
4182         * ipa-prop.c (remove_described_reference): Likewise.
4183         (propagate_controlled_uses): Likewise.
4184         (ipa_edge_duplication_hook): Likewise.
4185         (ipa_modify_call_arguments): Likewise.
4186         * ipa-pure-const.c (propagate_pure_const): Likewise.
4187         * ipa-ref-inline.h: Header file removed, functions moved
4188         to symtab_node class.
4189         * ipa-ref.c (remove_reference): New class member function.
4190         (cannot_lead_to_return): New class member function.
4191         (referring_ref_list): Likewise.
4192         (referred_ref_list): Likewise.
4193         Rest of functions moved to symtab_node class.
4194         * ipa-ref.h: New member functions remove_reference,
4195         cannot_lead_to_return, referring_ref_list, referred_ref_list added
4196         to ipa_ref class.
4197         ipa_ref_list class has new member functions: first_reference,
4198         first_referring, clear, nreferences.
4199         * ipa-reference.c (analyze_function): New IPA REF function used.
4200         (write_node_summary_p): Likewise.
4201         (ipa_reference_write_optimization_summary): Likewise.
4202         * ipa-split.c (split_function): Likewise.
4203         * ipa-utils.c (ipa_reverse_postorder): Likewise.
4204         * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
4205         (function_and_variable_visibility): Likewise.
4206         * ipa.c (has_addr_references_p): Likewise.
4207         (process_references): Argument type changed.
4208         (symtab_remove_unreachable_nodes): New IPA REF function used.
4209         (process_references): Likewise.
4210         (set_writeonly_bit): Likewise.
4211         * lto-cgraph.c: Implementation of new symtab_node member functions
4212         that uses new IPA REF functions.
4213         * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
4214         function used.
4215         * lto-streamer-out.c (output_symbol_p): Likewise.
4216         * lto-streamer.h (referenced_from_this_partition_p): Argument type
4217         changed.
4218         * symtab.c: Implementation of new IPA REF API.
4219         * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
4220         (ipa_tm_create_version): Likewise.
4221         (ipa_tm_execute): Likewise.
4222         * tree-emutls.c (gen_emutls_addr): Likewise.
4223         * tree-inline.c (copy_bb): Likewise.
4224         (delete_unreachable_blocks_update_callgraph): Likewise.
4225         * varpool.c (varpool_remove_unreferenced_decls): Likewise.
4226         (varpool_for_node_and_aliases): Likewise.
4228 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
4230         * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
4232 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
4234         PR bootstrap/61598
4235         * fold-const.c (fold_checksum_tree): Use a hash_table of const
4236         tree_node * instead of tree_node *.
4237         (fold): Adjust.
4238         (print_fold_checksum): Likewise.
4239         (fold_check_failed): Likewise.
4240         (debug_fold_checksum): Likewise.
4241         (fold_build1_stat_loc): Likewise.
4242         (fold_build2_stat_loc): Likewise.
4243         (fold_build3_stat_loc): Likewise.
4244         (fold_build_call_array_loc): Likewise.
4246 2014-06-25  David Edelsohn  <dje.gcc@gmail.com>
4248         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
4249         implementation with call to...
4250         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
4251         function.
4252         * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
4253         Declare.
4255 2014-06-25  Marc Glisse  <marc.glisse@inria.fr>
4257         PR tree-optimization/57742
4258         * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
4259         after replacing the statement.
4261 2014-06-25  Nick Clifton  <nickc@redhat.com>
4263         * config/v850/v850.c (GHS_default_section_names): Change to const
4264         char * type.
4265         (GHS_current_section_names): Likewise.
4266         (v850_insert_attributes): Do not build strings, just assign the
4267         names directly.  Change the type of 'chosen_section' to const
4268         char*.
4269         * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
4270         directly to the array entry.
4271         * config/v850/v850.h (GHS_default_section_names): Change to const
4272         char * type.
4273         (GHS_current_section_names): Likewise.
4275 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
4277         * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
4278         (LANG_HOOKS_DECLS): Add it.
4279         * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
4280         has correct type.
4281         * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
4282         * langhooks.h (struct lang_hooks_for_decls): Add
4283         omp_clause_linear_ctor hook.
4284         * omp-low.c (lower_rec_input_clauses): Set max_vf even if
4285         OMP_CLAUSE_LINEAR_ARRAY is set.  Don't fold_convert
4286         OMP_CLAUSE_LINEAR_STEP.  For OMP_CLAUSE_LINEAR_ARRAY in
4287         combined simd loop use omp_clause_linear_ctor hook.
4289 2014-06-24  Cong Hou  <congh@google.com>
4291         * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
4292         pattern recognition.
4293         (type_conversion_p): PROMOTION is true if it's a type promotion
4294         conversion, and false otherwise.  Return true if the given expression
4295         is a type conversion one.
4296         * tree-vectorizer.h: Adjust the number of patterns.
4297         * tree.def: Add SAD_EXPR.
4298         * optabs.def: Add sad_optab.
4299         * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
4300         * expr.c (expand_expr_real_2): Likewise.
4301         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
4302         * gimple.c (get_gimple_rhs_num_ops): Likewise.
4303         * optabs.c (optab_for_tree_code): Likewise.
4304         * tree-cfg.c (estimate_operator_cost): Likewise.
4305         * tree-ssa-operands.c (get_expr_operands): Likewise.
4306         * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
4307         * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
4308         * doc/generic.texi: Add document for SAD_EXPR.
4309         * doc/md.texi: Add document for ssad and usad.
4311 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
4313         * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
4314         qualification in cast.
4316 2014-06-24  Jan Hubicka  <hubicka@ucw.cz>
4318         * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
4319         * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
4320         * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
4321         (tree_function_decl): ... here.
4322         * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
4323         streaming of vindex to ...
4324         (write_ts_function_decl_tree_pointers): ... here.
4325         * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
4326         Do not stream DECL_VINDEX.
4327         (lto_input_ts_function_decl_tree_pointers): Stream it here.
4329 2014-06-24  Catherine Moore  <clm@codesourcery.com>
4330             Sandra Loosemore  <sandra@codesourcery.com>
4332         * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
4333         * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
4334         * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
4336 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
4338         * doc/invoke.texi (Warning Options): Remove duplicated
4339         -Wmaybe-uninitialized.
4341 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
4343         PR tree-optimization/57742
4344         * tree-ssa-strlen.c (get_string_length): Ignore malloc.
4345         (handle_builtin_malloc, handle_builtin_memset): New functions.
4346         (strlen_optimize_stmt): Call them.
4347         * passes.def: Move strlen after loop+dom but before vrp.
4349 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
4351         PR target/61570
4352         * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
4353         model family 6 CPU with has_longmode never use a CPU without
4354         64-bit support.
4356 2014-06-24  H.J. Lu  <hongjiu.lu@intel.com>
4358         PR target/61570
4359         * config/i386/driver-i386.c (host_detect_local_cpu): Revert
4360         the last change.
4362 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
4364         * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
4365         * dominance.c (iterate_fix_dominators): Use hash_map instead of
4366         pointer_map.
4367         * hash-map.h: New file.
4368         * ipa-comdats.c: Use hash_map instead of pointer_map.
4369         * ipa.c: Likewise.
4370         * lto-section-out.c: Adjust.
4371         * lto-streamer.h: Replace pointer_map with hash_map.
4372         * symtab.c (verify_symtab): Likewise.
4373         * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
4374         * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
4375         * tree-streamer.h: Likewise.
4376         * tree-streamer.c: Adjust.
4377         * pointer-set.h: Remove pointer_map.
4379 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
4381         * hash-table.h: Add a template arg to choose between storing values
4382         and storing pointers to values, and then provide partial
4383         specializations for both.
4384         * tree-browser.c (tree_upper_hasher): Provide the type the hash table
4385         should store, not the type values should point to.
4386         * tree-into-ssa.c (var_info_hasher): Likewise.
4387         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
4388         * tree-complex.c: Adjust.
4389         * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
4390         table instead of int_tree_map *.
4391         * tree-parloops.c: Adjust.
4392         * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
4393         type is being stored.
4394         * tree-vectorizer.c: Adjust.
4396 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
4398         * hash-table.h: Remove a layer of indirection from hash_table so that
4399         it contains the hash table's data instead of a pointer to the data.
4400         * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
4401         config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
4402         config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
4403         data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
4404         fold-const.c, gcse.c, ggc-common.c,
4405         gimple-ssa-strength-reduction.c, gimplify.c,
4406         graphite-clast-to-gimple.c, graphite-dependences.c,
4407         graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
4408         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
4409         loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
4410         lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
4411         postreload-gcse.c, sese.c, statistics.c, store-motion.c,
4412         trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
4413         tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
4414         tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
4415         tree-ssa-live.c, tree-ssa-loop-im.c,
4416         tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
4417         tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
4418         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
4419         tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
4420         tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
4421         tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
4422         vtable-verify.c, vtable-verify.h: Adjust.
4424 2014-06-24  Richard Biener  <rguenther@suse.de>
4426         PR tree-optimization/61572
4427         * tree-ssa-sink.c (statement_sink_location): Do not sink
4428         loads from hard registers.
4430 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
4432         * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
4433         not mentioned in clauses use private clause if the iterator is
4434         declared in #pragma omp for simd, and when adding lastprivate
4435         instead, add it to the outer #pragma omp for too.  Diagnose
4436         if the variable is private in outer context.  For simd collapse > 1
4437         loops, replace all iterators with temporaries.
4438         * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
4439         same even in collapse > 1 loops.
4441         * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
4442         OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
4443         non-NULL.
4444         <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
4445         (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
4446         non-NULL.
4447         (gimplify_adjust_omp_clauses): Likewise.
4448         * omp-low.c (lower_rec_simd_input_clauses,
4449         lower_rec_input_clauses, expand_omp_simd): Handle non-constant
4450         safelen the same as safelen(1).
4451         * tree-nested.c (convert_nonlocal_omp_clauses,
4452         convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED.  For
4453         OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
4454         (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
4455         Fixup handling of GIMPLE_OMP_TARGET.
4456         (convert_tramp_reference_stmt, convert_gimple_call): Handle
4457         GIMPLE_OMP_TARGET.
4459 2014-06-24  Chung-Lin Tang  <cltang@codesourcery.com>
4461         PR tree-optimization/61554
4462         * tree-ssa-propagate.c: Include "bitmap.h".
4463         (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
4464         properly update constructor/destructor.
4465         (substitute_and_fold_dom_walker::before_dom_children):
4466         Remove call to gimple_purge_dead_eh_edges, add bb->index to
4467         need_eh_cleaup instead.
4468         (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
4469         need_eh_cleanup.
4471 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
4473         * varpool.c (dump_varpool_node): Dump used_by_single_function.
4474         * tree-pass.h (make_pass_ipa_single_use): New pass.
4475         * cgraph.h (used_by_single_function): New flag.
4476         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
4477         Stream it.
4478         * passes.def (pass_ipa_single_use): Scedule.
4479         * ipa.c (BOTTOM): New macro.
4480         (meet): New function
4481         (propagate_single_user): New function.
4482         (ipa_single_use): New function.
4483         (pass_data_ipa_single_use): New pass.
4484         (pass_ipa_single_use): New pass.
4485         (pass_ipa_single_use::gate): New gate.
4486         (make_pass_ipa_single_use): New function.
4488 2014-06-23  Kai Tietz  <ktietz@redhat.com>
4490         PR target/39284
4491         * passes.def (peephole2): Move peephole2 pass before sched2 pass.
4492         * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
4494 2014-06-23  Richard Biener  <rguenther@suse.de>
4496         * tree-ssa-loop.c (gate_loop): New function.
4497         (pass_tree_loop::gate): Call it.
4498         (pass_data_tree_no_loop, pass_tree_no_loop,
4499         make_pass_tree_no_loop): New.
4500         * tree-vectorizer.c: Include tree-scalar-evolution.c
4501         (pass_slp_vectorize::execute): Initialize loops and SCEV if
4502         required.
4503         (pass_slp_vectorize::clone): New method.
4504         * timevar.def (TV_TREE_NOLOOP): New.
4505         * tree-pass.h (make_pass_tree_no_loop): Declare.
4506         * passes.def (pass_tree_no_loop): New pass group with
4507         SLP vectorizer.
4509 2014-06-23  H.J. Lu  <hongjiu.lu@intel.com>
4511         PR target/61570
4512         * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
4513         to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
4515 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
4517         * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
4518         "yes" where needed.
4520 2014-06-23  Alan Modra  <amodra@gmail.com>
4522         PR bootstrap/61583
4523         * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
4524         to zero on debug statements.
4526 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
4528         PR target/60825
4529         * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
4530         Ignore third operand if present by marking qualifier_internal.
4532         * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
4534         * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
4535         vector extension.
4536         (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
4537         arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
4538         (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
4539         vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
4540         vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
4541         vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
4542         vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
4543         vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
4544         vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
4545         vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
4546         vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
4547         vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
4548         vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
4549         vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
4550         vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
4551         vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
4552         logic in GCC vector extensions
4554         (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
4555         vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
4556         vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
4557         vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
4558         vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
4559         vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
4560         vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
4561         vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
4562         vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
4563         vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
4565         (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
4567         (vget_high_s64, vget_high_u64): Reimplement with GCC vector
4568         extensions.
4570         (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
4571         (vget_low_s64): Use __GET_LOW macro.
4572         (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
4573         gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
4574         (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
4575         (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
4576         __builtin_aarch64_lane_boundsi, use GCC vector extensions.
4578         (vcombine_s64): Use GCC vector extensions; remove cast.
4579         (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
4580         vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
4581         vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
4582         Fix type signature; remove cast.
4584 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
4586         PR target/60825
4587         * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
4588         V1DFmode.
4589         * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
4590         add V1DFmode
4591         (BUILTIN_VD1): New.
4592         (BUILTIN_VD_RE): Remove.
4593         (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
4594         (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
4595         * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
4596         variant but not df.
4597         (vreinterpretv1df*, vreinterpret*v1df): New.
4598         (vreinterpretdf*, vreinterpret*df): Remove.
4599         * config/aarch64/aarch64-simd.md (aarch64_create,
4600         aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
4601         * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
4602         (VD1): New.
4603         * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
4604         (vcreate_f64): Remove cast, use v1df builtin.
4605         (vcombine_f64): Remove cast, get elements with gcc vector extensions.
4606         (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
4607         vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
4608         vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
4609         vmov_n_f64, vst1_f64): Use gcc vector extensions.
4610         (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
4611         add range check using __builtin_aarch64_im_lane_boundsi.
4612         (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
4613         vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
4614         type signature, use gcc vector extensions.
4615         (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
4616         vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
4617         vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
4618         vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
4619         vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
4620         vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
4621         vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
4622         vreinterpret_u64_f64): Use v1df builtin not df.
4624 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
4626         * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
4627         vector registers.
4629 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
4631         * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
4632         priority directly.
4634 2014-06-23  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
4636         * loop-invariant.c (pre_check_invariant_p): New function.
4637         (find_invariant_insn): Call pre_check_invariant_p.
4639 2014-06-22  Richard Henderson  <rth@redhat.com>
4641         PR target/61565
4642         * compare-elim.c (struct comparison): Add eh_note.
4643         (find_comparison_dom_walker::before_dom_children): Don't eliminate
4644         a redundant comparison in a different EH region.  Purge EH edges if
4645         necessary.
4647 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
4649         * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
4650         (var_shift): Use it.
4651         (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
4652         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
4653         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
4654         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
4655         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
4656         *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
4657         *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
4658         *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
4659         *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
4660         *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
4661         *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
4662         *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
4663         *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
4664         *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
4665         *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
4666         *rotldi3_internal15be): Use the new attribute.  Merge register and
4667         integer alternatives.
4669 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
4671         * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
4672         define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
4673         split, *ashrdi3_internal3 and split): Delete, merge into...
4674         (ashr<mode>3): New expander.
4675         (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
4676         (*ashrsi3_64): Fix formatting.  Replace "i" by "n".
4678 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
4680         * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
4681         *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
4682         *rotldi3_internal3 and split): Delete, merge into...
4683         (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
4684         (*rotlsi3_64): Fix formatting.  Fix condition.  Replace "i" by "n".
4685         Use "rotlw" extended mnemonic.
4687 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
4689         * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
4690         and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
4691         and split, *ashldi3_internal3 and split): Delete, merge into...
4692         (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
4693         (*ashlsi3_64): Fix formatting.  Replace "i" by "n".
4695 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
4697         * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
4698         (lshrsi3, two anonymous define_insns and define_splits,
4699         lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
4700         *lshrdi3_internal3 and split): Delete, merge into...
4701         (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
4702         (*lshrsi3_64): Fix formatting.  Replace "i" by "n".
4704 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
4706         * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
4707         Remove "O" alternative.
4709 2014-06-22  Richard Sandiford  <rdsandiford@googlemail.com>
4711         * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
4712         (mips_move_from_gpr_cost): Likewise.
4713         (mips_register_move_cost): Update accordingly.
4714         (mips_secondary_reload_class): Remove name of in_p.
4716 2014-06-22  Marc Glisse  <marc.glisse@inria.fr>
4718         PR target/61503
4719         * config/i386/i386.md (x86_64_shrd, x86_shrd,
4720         ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
4722 2014-06-21  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
4724         * config/nios2/nios2.c: Include "builtins.h".
4726 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
4728         * cgraph.h (tls_model_names): New variable.
4729         * print-tree.c (print_node): Simplify.
4730         * varpool.c (tls_model_names): New variable.
4731         (dump_varpool_node): Output tls model.
4733 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
4735         * ipa-visibility.c (function_and_variable_visibility): Disable
4736         temporarily local aliases for some targets.
4738 2014-06-20  Marek Polacek  <polacek@redhat.com>
4740         * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
4741         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
4742         into SANITIZE_UNDEFINED.
4743         * doc/invoke.texi: Describe -fsanitize=bounds.
4744         * gimplify.c (gimplify_call_expr): Add gimplification of internal
4745         functions created in the FEs.
4746         * internal-fn.c: Move "internal-fn.h" after "tree.h".
4747         (expand_UBSAN_BOUNDS): New function.
4748         * internal-fn.def (UBSAN_BOUNDS): New internal function.
4749         * internal-fn.h: Don't define internal functions here.
4750         * opts.c (common_handle_option): Add -fsanitize=bounds.
4751         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
4752         BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
4753         * tree-core.h: Define internal functions here.
4754         (struct tree_base): Add ifn field.
4755         * tree-pretty-print.c: Include "internal-fn.h".
4756         (dump_generic_node): Handle functions without CALL_EXPR_FN.
4757         * tree.c (get_callee_fndecl): Likewise.
4758         (build_call_expr_internal_loc): New function.
4759         * tree.def (CALL_EXPR): Update description.
4760         * tree.h (CALL_EXPR_IFN): Define.
4761         (build_call_expr_internal_loc): Declare.
4762         * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
4763         types.
4764         (ubsan_type_descriptor): Change bool parameter to enum
4765         ubsan_print_style.  Adjust the code.  Add handling of
4766         UBSAN_PRINT_ARRAY.
4767         (ubsan_expand_bounds_ifn): New function.
4768         (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
4769         (ubsan_build_overflow_builtin): Likewise.
4770         (instrument_bool_enum_load): Likewise.
4771         (ubsan_instrument_float_cast): Likewise.
4772         * ubsan.h (enum ubsan_print_style): New enum.
4773         (ubsan_expand_bounds_ifn): Declare.
4774         (ubsan_type_descriptor): Adjust declaration.  Use a default parameter.
4776 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
4778         * config/rs6000/rs6000.md: Append `DONE' to preparation
4779         statements of `bswap' pattern splitters.
4781 2014-06-20  Tom de Vries  <tom@codesourcery.com>
4783         * target.def (call_fusage_contains_non_callee_clobbers): Update
4784         definition.
4785         * doc/tm.texi: Regenerate.
4787 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
4788             Max Ostapenko  <m.ostapenko@partner.samsung.com>
4790         PR sanitizer/61547
4791         * asan.c (instrument_strlen_call): Fixed instrumentation of
4792         trailing byte.
4794 2014-06-20  Martin Jambor  <mjambor@suse.cz>
4796         PR ipa/61540
4797         * ipa-prop.c (impossible_devirt_target): New function.
4798         (try_make_edge_direct_virtual_call): Use it, also instead of
4799         asserting.
4801 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
4802             Max Ostapenko  <m.ostapenko@partner.samsung.com>
4804         PR sanitizer/61530
4805         * asan.c (build_check_stmt): Add condition.
4807 2014-06-20  Martin Jambor  <mjambor@suse.cz>
4809         PR ipa/61211
4810         * cgraph.c (clone_of_p): Allow skipped_branch to deal with
4811         expanded clones.
4813 2014-06-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4815         * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
4816         Update comments.
4817         (VCONQ): Make comment more helpful.
4818         (VCON): Delete.
4819         * config/aarch64/aarch64-simd.md
4820         (aarch64_sqdmulh_lane<mode>):
4821         Use VCOND for operands 2.  Update lane checking and flipping logic.
4822         (aarch64_sqrdmulh_lane<mode>): Likewise.
4823         (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
4824         (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
4825         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
4826         attribute of operand 3 to VCOND.
4827         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
4828         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
4829         (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
4830         (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
4831         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
4832         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
4833         define_insn.
4834         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
4835         (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
4836         (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
4837         (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
4838         (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
4839         (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
4840         operand to VCOND.  Update lane flipping and bounds checking logic.
4841         (aarch64_sqdmlal2_lane<mode>): Likewise.
4842         (aarch64_sqdmlsl_lane<mode>): Likewise.
4843         (aarch64_sqdmull_lane<mode>): Likewise.
4844         (aarch64_sqdmull2_lane<mode>): Likewise.
4845         (aarch64_sqdmlal_laneq<mode>):
4846         Replace VCON usage with VCONQ.
4847         Emit aarch64_sqdmlal_laneq<mode>_internal insn.
4848         (aarch64_sqdmlal2_laneq<mode>): Emit
4849         aarch64_sqdmlal2_laneq<mode>_internal insn.
4850         Replace VCON with VCONQ.
4851         (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
4852         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
4853         (aarch64_sqdmull_laneq<mode>): Emit
4854         aarch64_sqdmull_laneq<mode>_internal insn.
4855         Replace VCON with VCONQ.
4856         (aarch64_sqdmull2_laneq<mode>): Emit
4857         aarch64_sqdmull2_laneq<mode>_internal insn.
4858         (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
4859         * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
4860         of 3rd argument to int16x4_t.
4861         (vqdmlalh_lane_s16): Likewise.
4862         (vqdmlslh_lane_s16): Likewise.
4863         (vqdmull_high_lane_s16): Likewise.
4864         (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
4865         (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
4866         (vqdmlsl_lane_s16): Likewise.
4867         (vqdmull_lane_s16): Don't create temporary int16x8_t value.
4868         (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
4869         (vqdmlals_lane_s32): Likewise.
4870         (vqdmlsls_lane_s32): Likewise.
4871         (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
4872         (vqdmulls_lane_s32): Likewise.
4873         (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
4874         (vqdmlsl_lane_s32): Likewise.
4875         (vqdmull_lane_s32): Don't create temporary int32x4_t value.
4876         (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
4877         (vqrdmulhh_lane_s16): Likewise.
4878         (vqdmlsl_high_lane_s16): Likewise.
4879         (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
4880         (vqdmlsl_high_lane_s32): Likewise.
4881         (vqrdmulhs_lane_s32): Likewise.
4883 2014-06-20  Tom de Vries  <tom@codesourcery.com>
4885         * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
4886         get_call_reg_set_usage.
4888 2014-06-20  Tom de Vries  <tom@codesourcery.com>
4890         * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
4891         it contains all call_used_regs.
4893 2014-06-20  Tom de Vries  <tom@codesourcery.com>
4895         * final.c (collect_fn_hard_reg_usage): Add and use variable
4896         function_used_regs.
4898 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
4900         * cgraph.h (struct symtab_node): Add field in_init_priority_hash
4901         (set_init_priority, get_init_priority, set_fini_priority,
4902         get_fini_priority): New methods.
4903         * tree.c (init_priority_for_decl): Remove.
4904         (init_ttree): Do not initialize init priority.
4905         (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
4906         (decl_priority_info): Remove.
4907         (decl_init_priority_insert): Rewrite.
4908         (decl_fini_priority_insert): Rewrite.
4909         * tree.h (tree_priority_map_eq, tree_priority_map_hash,
4910         tree_priority_map_marked_p): Remove.
4911         * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
4912         * lto-streamer-out.c (hash_tree): Do not hash priorities.
4913         * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
4914         not output priorities.
4915         (pack_ts_function_decl_value_fields): Likewise.
4916         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
4917         not input priorities.
4918         (unpack_ts_function_decl_value_fields): Likewise.
4919         * symtab.c (symbol_priority_map): Declare.
4920         (init_priority_hash): Declare.
4921         (symtab_unregister_node): Unregister from priority hash, too.
4922         (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
4923         New methods.
4924         (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
4925         (symbol_priority_info): New function.
4926         (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
4927         New methods.
4928         * tree-core.h (tree_priority_map): Remove.
4930 2014-06-20  Jakub Jelinek  <jakub@redhat.com>
4932         * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
4933         0xff to uint64_t before shifting it up.
4935 2014-06-20  Julian Brown  <julian@codesourcery.com>
4936             Chung-Lin Tang  <cltang@codesourcery.com>
4938         * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
4939         TARGET_THUMB1_ONLY. Add comments.
4941 2014-06-19  Tom de Vries  <tom@codesourcery.com>
4943         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
4944         return type to void.
4945         * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
4947 2014-06-19  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
4949         * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
4950         as "move", from depends_on.
4952 2014-06-19  Terry Guo  <terry.guo@arm.com>
4954         * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
4955         stage.
4957 2014-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
4959         * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
4960         Remove cr5.
4961         (REG_ALLOC_ORDER): Update comment.  Move cr5 earlier.
4963 2014-06-18  Kaz Kojima  <kkojima@gcc.gnu.org>
4965         PR target/61550
4966         * config/sh/sh.c (prepare_move_operands): Don't process TLS
4967         addresses here if reload in progress or completed.
4969 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
4971         * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
4972         "TARGET_MIPS16 ? M16_REGS : GR_REGS".
4973         * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
4974         (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
4975         (mips_register_priority): New function that implements the target
4976         hook TARGET_REGISTER_PRIORITY.
4977         (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
4978         (mips_lra_p): Likewise for TARGET_LRA_P.
4979         (TARGET_REGISTER_PRIORITY): Define macro.
4980         (TARGET_SPILL_CLASS): Likewise.
4981         (TARGET_LRA_P): Likewise.
4982         * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
4983         classes.
4984         (REG_CLASS_NAMES): Likewise.
4985         (REG_CLASS_CONTENTS): Likewise.
4986         (BASE_REG_CLASS): Use M16_SP_REGS.
4987         * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
4988         New set attribute to enable alternatives depending on the register
4989         allocator used.
4990         (*mul_acc_si_r3900, *mul_sub_si): Likewise.
4991         (*lea64): Disable pattern for MIPS16.
4992         * config/mips/mips.opt (mlra): New option.
4994 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
4996         * lra-constraints.c (base_to_reg): New function.
4997         (process_address): Use new function.
4999 2014-06-18  Tom de Vries  <tom@codesourcery.com>
5001         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
5002         * config/aarch64/aarch64.c
5003         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
5004         (aarch64_emit_call_insn): New function.
5005         (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
5006         of emit_call_insn.
5007         * config/aarch64/aarch64.md (define_expand "call_internal")
5008         (define_expand "call_value_internal", define_expand "sibcall_internal")
5009         (define_expand "sibcall_value_internal"): New.
5010         (define_expand "call", define_expand "call_value")
5011         (define_expand "sibcall", define_expand "sibcall_value"): Use internal
5012         expand variant and aarch64_emit_call_insn.
5014 2014-06-18  Radovan Obradovic  <robradovic@mips.com>
5015             Tom de Vries  <tom@codesourcery.com>
5017         * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
5018         * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
5019         Redefine to true.
5020         (arm_emit_call_insn): Add and use sibcall parameter.  Add IP and CC
5021         clobbers to CALL_INSN_FUNCTION_USAGE.
5022         (define_expand "sibcall_internal")
5023         (define_expand "sibcall_value_internal"): New.
5024         (define_expand "call", define_expand "call_value"): Add argument to
5025         arm_emit_call_insn.
5026         (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
5027         (define_expand "sibcall_value"): Use sibcall_value_internal and
5028         arm_emit_call_insn.
5030 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
5032         * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
5034 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
5036         * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
5037         __udivmoddi4.
5039 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
5041         * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
5042         push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
5043         annotations. Fix DWARF information.
5045 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
5047         * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
5048         __udivmoddi4, and fixups for negative operands.
5050 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
5052         * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
5054 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
5056         * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
5057         to __udivmoddi4.
5059 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
5061         * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
5062         manipulation.
5064 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
5066         * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
5067         describing register usage on function entry and exit.
5069 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
5071         * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
5072         (__aeabi_ldivmod): Fix whitespace.
5074 2014-06-18  Andreas Schwab  <schwab@suse.de>
5076         * doc/md.texi (Standard Names): Use @itemx for grouped items.
5077         Remove blank line after @item.
5079 2014-06-18  Richard Henderson  <rth@redhat.com>
5081         PR target/61545
5082         * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
5084 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
5086         * config/arm/arm.c (neon_vector_mem_operand): Allow register
5087         POST_MODIFY for neon loads and stores.
5088         (arm_print_operand): Output post-index register for neon loads and
5089         stores.
5091 2014-06-18  Richard Biener  <rguenther@suse.de>
5093         * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
5095 2014-06-18  Richard Biener  <rguenther@suse.de>
5097         * tree-pass.h (make_pass_dce_loop): Remove.
5098         * passes.def: Replace pass_dce_loop with pass_dce.
5099         * tree-ssa-dce.c (perform_tree_ssa_dce): If something
5100         changed free niter estimates and reset the scev cache.
5101         (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
5102         make_pass_dce_loop): Remove.
5103         * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
5104         (fini_copy_prop): Return whether something changed.  Always
5105         let substitute_and_fold perform DCE and free niter estimates
5106         and reset the scev cache if so.
5107         (execute_copy_prop): If sth changed schedule cleanup-cfg.
5108         (pass_data_copy_prop): Do not unconditionally schedule
5109         cleanup-cfg or update-ssa.
5111 2014-06-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
5113         PR tree-optimization/61518
5114         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
5115         reduction var is used in reduction stmt or phi-function only.
5117 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5119         * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
5121 2014-06-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5123         PR tree-optimization/61517
5124         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
5125         whose rhs's first tree is the source expression instead of the
5126         expression itself.
5127         (find_bswap_or_nop): Likewise.
5128         (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
5129         gimple stmt whose rhs's first tree is the source. In the memory source
5130         case, move the stmt to be replaced close to one of the original load to
5131         avoid the problem of a store between the load and the stmt's original
5132         location.
5133         (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
5134         signature.
5136 2014-06-18  Andreas Schwab  <schwab@suse.de>
5138         PR rtl-optimization/54555
5139         * postreload.c (move2add_use_add2_insn): Substitute
5140         STRICT_LOW_PART only if it is cheaper.
5142 2014-06-18  Uros Bizjak  <ubizjak@gmail.com>
5144         * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
5145         Do not use unspec as call operand.  Use memory_operand instead of
5146         memory_nox32_operand and add "m" operand constraint.  Disable
5147         pattern for TARGET_X32.
5148         (*sibcall_pop_memory): Ditto.
5149         (*sibcall_value_memory): Ditto.
5150         (*sibcall_value_pop_memory): Ditto.
5151         (sibcall peepholes): Merge SImode and DImode patterns using
5152         W mode iterator.  Use memory_operand instead of memory_nox32_operand.
5153         Disable pattern for TARGET_X32.  Check if eliminated register is
5154         really dead after call insn.  Generate call RTX without unspec operand.
5155         (sibcall_value peepholes): Ditto.
5156         (sibcall_pop peepholes): Fix call insn RTXes.  Use memory_operand
5157         instead of memory_nox32_operand.  Check if eliminated register is
5158         really dead after call insn. Generate call RTX without unspec operand.
5159         (sibcall_value_pop peepholes): Ditto.
5160         * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
5162 2014-06-18  Terry Guo  <terry.guo@arm.com>
5164         PR target/61544
5165         * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
5166         reach the head.
5168 2014-06-18  Olivier Hainque  <hainque@adacore.com>
5170         * tree-core.h (tree_block): Add an "end_locus" field, allowing
5171         memorization of the end of block source location.
5172         * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
5173         * gimplify.c (gimplify_bind_expr): Propagate the block start and
5174         end source location info we have on the block entry/exit code we
5175         generate.
5177 2014-06-18  Richard Biener  <rguenther@suse.de>
5179         * common.opt (fssa-phiopt): New option.
5180         * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
5181         but not with -Og.
5182         * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
5183         * doc/invoke.texi (-fssa-phiopt): Document.
5185 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5187         * genattrtab.c (n_bypassed): New variable.
5188         (process_bypasses): Initialise n_bypassed.
5189         Count number of bypassed reservations.
5190         (make_automaton_attrs): Allocate space for bypassed reservations
5191         rather than number of bypasses.
5193 2014-06-18  Richard Biener  <rguenther@suse.de>
5195         * tree-ssa-propagate.c (replace_phi_args_in): Return whether
5196         we propagated anything.
5197         (substitute_and_fold_dom_walker::before_dom_children): Something
5198         changed if we propagated into PHI arguments.
5199         * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
5200         we removed a stmt.
5202 2014-06-18  Evgeny Stupachenko  <evstupac@gmail.com>
5204         * config/i386/i386.c (ix86_reassociation_width): Add alternative for
5205         vector case.
5206         * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
5207         * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
5208         * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
5209         Introduces alternative way of loads group permutaions.
5210         (vect_transform_grouped_load): Try alternative way of permutations.
5212 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
5214         * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
5215         changed in ORT_TARGET region, don't jump to do_outer.
5216         (struct gimplify_adjust_omp_clauses_data): New type.
5217         (gimplify_adjust_omp_clauses_1): Adjust for data being
5218         a struct gimplify_adjust_omp_clauses_data pointer instead
5219         of tree *.  Pass pre_p as a new argument to
5220         lang_hooks.decls.omp_finish_clause hook.
5221         (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
5222         splay_tree_foreach to pass both list_p and pre_p.
5223         (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
5224         gimplify_omp_workshare, gimplify_omp_target_update): Adjust
5225         gimplify_adjust_omp_clauses callers.
5226         * langhooks.c (lhd_omp_finish_clause): New function.
5227         * langhooks-def.h (lhd_omp_finish_clause): New prototype.
5228         (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
5229         * langhooks.h (struct lang_hooks_for_decls): Add a new
5230         gimple_seq * argument to omp_finish_clause hook.
5231         * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
5232         non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
5233         (scan_omp_parallel, lower_omp_for): When adding
5234         _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
5235         * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
5236         * tree-nested.c (convert_nonlocal_omp_clauses,
5237         convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
5238         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
5240 2014-06-17  Andrew MacLeod  <amacleod@redhat.com>
5242         * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
5243         * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
5245 2014-06-17  Xinliang David Li  <davidxl@google.com>
5247         * tree-pretty-print.c (dump_function_header): Print cgraph uid.
5248         * passes.c (pass_init_dump_file): Do not set initialize
5249         flag to false unconditionally.
5251 2014-06-17  Richard Biener  <rguenther@suse.de>
5253         * genopinit.c (main): Use vec<>::qsort method.
5254         * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
5255         Likewise.
5256         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
5258 2014-06-17  Matthew Fortune  <matthew.fortune@imgtec.com>
5260         * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
5261         * config/mips/mips.c (mips_expand_fcc_reload): Remove.
5262         (mips_move_to_gpr_cost): Remove ST_REGS case.
5263         (mips_move_from_gpr_cost): Likewise.
5264         (mips_register_move_cost): Likewise.
5265         (mips_secondary_reload_class): Likewise.
5267 2014-06-17  Richard Biener  <rguenther@suse.de>
5269         * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
5270         (pass_all_optimizations): Move 3rd copy-prop pass from after
5271         fre to before ifcombine/phiopt.
5273 2014-06-17  Richard Biener  <rguenther@suse.de>
5275         * tree-switch-conversion.c (collect_switch_conv_info): Simplify
5276         and allow all blocks to be forwarders.
5278 2014-06-17  Yufeng Zhang  <yufeng.zhang@arm.com>
5280         PR target/61483
5281         * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
5282         variable 'size'; calculate 'size' right in the front; use
5283         'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
5284         pcum->aapcs_stack_words.
5286 2014-06-17  Nick Clifton  <nickc@redhat.com>
5288         * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
5289         (umulhi3, mulsidi3, umulsidi3): Likewise.
5291 2014-06-17  Thomas Schwinge  <thomas@codesourcery.com>
5293         PR middle-end/61508
5294         * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
5295         check for section name.
5297 2014-06-17  Richard Biener  <rguenther@suse.de>
5299         * tree-ssa-propagate.c: Include domwalk.h.
5300         (substitute_and_fold): Outline main worker into a domwalker ...
5301         (substitute_and_fold_dom_walker::before_dom_children): ... here.
5302         Schedule stmts we can fully propagate for removal.  Remove
5303         poor-mans DCE.
5304         (substitute_and_fold): Apply a dominator walk to perform
5305         substitution.  Process stmts scheduled for removal here.
5307 2014-06-17  Richard Biener  <rguenther@suse.de>
5309         * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
5310         of PHI node moving.
5312 2014-06-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
5314         * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
5315         default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
5316         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
5317         __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
5318         * config/arm/vfp.md (set_fpscr): Make pattern conditional on
5319         TARGET_HARD_FLOAT.
5320         (get_fpscr) : Likewise.
5322 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
5324         PR rtl-optimization/61325
5325         * lra-constraints.c (valid_address_p): Add forward declaration.
5326         (simplify_operand_subreg): Check address validity before and after
5327         alter_reg of memory subreg.
5329 2014-06-16  Uros Bizjak  <ubizjak@gmail.com>
5331         * config/i386/i386.c (decide_alg): Correctly handle
5332         maximum size of stringop algorithm.
5334 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
5336         * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
5338 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
5340         PR rtl-optimization/61522
5341         * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
5343 2014-06-16  Jan Hubicka  <hubicka@ucw.cz>
5345         Revert:
5346         * symtab.c (symtab_node::reset_section): New method.
5347         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
5348         for localization.
5349         * cgraph.h (reset_section): Declare.
5350         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
5351         do not consider comdat locals.
5352         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
5353         for new symbol.
5354         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
5355         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
5356         reset sections of symbols dragged out of the comdats.
5357         (function_and_variable_visibility): Reset sections of
5358         localized symbols.
5360 2014-06-16  Richard Biener  <rguenther@suse.de>
5362         PR tree-optimization/61482
5363         * tree-vrp.c (adjust_range_with_scev): Avoid setting of
5364         [-INF(OVF), +INF(OVF)] range.
5366 2014-06-16  Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
5368         * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
5369         instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
5370         handling 32-bit multiplication.
5372 2014-06-16  Chung-Lin Tang  <cltang@codesourcery.com>
5374         PR middle-end/61430
5375         * lra-lives.c (process_bb_lives): Skip creating copy during
5376         insn scan when src/dest has constrained to same regno.
5378 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
5380         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
5381         DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
5383 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
5385         * asan.c (check_func): New function.
5386         (maybe_create_ssa_name): Likewise.
5387         (build_check_stmt_with_calls): Likewise.
5388         (use_calls_p): Likewise.
5389         (report_error_func): Change interface.
5390         (build_check_stmt): Allow non-integer lengths; add support
5391         for new parameter.
5392         (asan_instrument): Likewise.
5393         (instrument_mem_region_access): Moved code to build_check_stmt.
5394         (instrument_derefs): Likewise.
5395         (instrument_strlen_call): Likewise.
5396         * cfgcleanup.c (old_insns_match_p): Add support for new functions.
5397         * doc/invoke.texi: Describe new parameter.
5398         * params.def: Define new parameter.
5399         * params.h: Likewise.
5400         * sanitizer.def: Describe new builtins.
5402 2014-06-16  Richard Biener  <rguenther@suse.de>
5404         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
5405         Make all defs available at the end.
5406         (eliminate): If we remove a PHI node schedule cfg-cleanup.
5408 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
5410         PR plugins/45078
5411         * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
5413 2014-06-16  Richard Sandiford  <rdsandiford@googlemail.com>
5415         PR bootstrap/61516
5416         * auto-inc-dec.c (merge_in_block): Fix location of insn_info
5417         initialization.  Replace remaining use of uid.
5419 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
5421         * c-family/c-common.c (handle_tls_model_attribute): Use
5422         set_decl_tls_model.
5423         * c-family/c-common.c (handle_tls_model_attribute): Use
5424         set_decl_tls_model.
5425         * cgraph.h (struct varpool_node): Add tls_model.
5426         * tree.c (decl_tls_model, set_decl_tls_model): New functions.
5427         * tree.h (DECL_TLS_MODEL): Update.
5428         (DECL_THREAD_LOCAL_P): Check that variable is static.
5429         (decl_tls_model): Declare.
5430         (set_decl_tls_model): Declare.
5431         * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
5432         set symbol prorperties.
5433         (get_emutls_init_templ_addr): Cleanup.
5434         (new_emutls_decl): Update.
5435         * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
5436         (lto_input_varpool_node): Likewise.
5437         * lto-streamer-out.c (hash_tree): Likewise.
5438         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
5439         not stream DECL_TLS_MODEL.
5440         * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
5441         * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
5443 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
5445         * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
5447 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
5449         * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
5450         (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
5451         lists.
5452         (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
5453         (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
5454         (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
5455         (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
5456         (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
5457         (df_get_artificial_defs, df_get_artificial_uses)
5458         (df_single_def, df_single_use): Update accordingly.
5459         (df_refs_chain_dump): Take the first element in a linked list as
5460         parameter, rather than a pointer to an array of pointers.
5461         * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
5462         * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
5463         (df_chain_create_bb_process_use): Likewise.
5464         (df_md_bb_local_compute_process_def): Likewise.
5465         * fwprop.c (process_defs, process_uses): Likewise.
5466         (register_active_defs, update_uses): Likewise.
5467         (forward_propagate_asm): Update for new df_ref linking.
5468         * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
5469         (df_null_ref_rec, df_null_mw_rec): Likewise.
5470         (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
5471         explicitly.
5472         (df_scan_free_bb_info): Remove check for null artificial_defs.
5473         (df_install_ref_incremental): Adjust for new df_ref linking.
5474         Use a single-element insertion rather than a full sort.
5475         (df_ref_chain_delete_du_chain): Take the first element
5476         in a linked list as parameter, rather than a pointer to an array of
5477         pointers.
5478         (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
5479         (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
5480         (df_insn_info_delete): Remove check for null defs and call to
5481         df_scan_free_mws_vec.
5482         (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
5483         null rather than df_null_*_rec.
5484         (df_insn_rescan_debug_internal): Likewise, and update null
5485         checks in the same way.  Remove check for null defs.
5486         (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
5487         Move a single element rather doing a full sort.
5488         (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
5489         linking.
5490         (df_notes_rescan): Likewise.  Use a merge rather than a full sort.
5491         Initialize df_ref and df_mw_hardreg lists to null rather than
5492         df_null_*_rec.
5493         (df_ref_compare): Take df_refs as parameter, transferring the
5494         old interface to...
5495         (df_ref_ptr_compare): ...this new function.
5496         (df_sort_and_compress_refs): Update accordingly.
5497         (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
5498         old interface to...
5499         (df_mw_ptr_compare): ...this new function.
5500         (df_sort_and_compress_mws): Update accordingly.
5501         (df_install_refs, df_install_mws): Return a linked list rather than
5502         an array of pointers.
5503         (df_refs_add_to_chains): Assert that old lists are empty rather
5504         than freeing them.
5505         (df_insn_refs_verify): Don't handle null defs speciailly.
5506         * web.c (union_match_dups): Update for new df_ref linking.
5508 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
5510         * df.h (df_ref_create, df_ref_remove): Delete.
5511         * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
5512         (df_ref_remove): Likewise.
5514 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
5516         * df.h (df_single_def, df_single_use): New functions.
5517         * ira.c (find_moveable_pseudos): Use them.
5519 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
5521         * df.h (FOR_EACH_INSN_INFO_MW): New macro.
5522         * df-problems.c (df_note_bb_compute): Use it.
5523         * regstat.c (regstat_bb_compute_ri): Likewise.
5525 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
5527         * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
5528         * cse.c (cse_extended_basic_block): Use them.
5529         * dce.c (mark_artificial_use): Likewise.
5530         * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
5531         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
5532         (df_chain_remove_problem, df_chain_bb_dump): Likewise.
5533         (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
5534         (df_simulate_initialize_backwards): Likewise.
5535         (df_simulate_finalize_backwards): Likewise.
5536         (df_simulate_initialize_forwards): Likewise.
5537         (df_md_simulate_artificial_defs_at_top): Likewise.
5538         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
5539         * regrename.c (init_rename_info): Likewise.
5540         * regstat.c (regstat_bb_compute_ri): Likewise.
5541         (regstat_bb_compute_calls_crossed): Likewise.
5543 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
5545         * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
5546         (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
5547         (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
5548         * auto-inc-dec.c (find_inc, merge_in_block): Use them.
5549         * combine.c (create_log_links): Likewise.
5550         * compare-elim.c (find_flags_uses_in_insn): Likewise.
5551         (try_eliminate_compare): Likewise.
5552         * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
5553         * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
5554         (remove_reg_equal_equiv_notes_for_defs): Likewise.
5555         (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
5556         (word_dce_process_block, dce_process_block): Likewise.
5557         * ddg.c (def_has_ccmode_p): Likewise.
5558         * df-core.c (df_bb_regno_first_def_find): Likewise.
5559         (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
5560         * df-problems.c (df_rd_simulate_one_insn): Likewise.
5561         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
5562         (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
5563         (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
5564         (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
5565         (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
5566         (df_simulate_find_defs, df_simulate_find_uses): Likewise.
5567         (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
5568         (df_simulate_uses, df_md_simulate_one_insn): Likewise.
5569         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
5570         * fwprop.c (local_ref_killed_between_p): Likewise.
5571         (all_uses_available_at, free_load_extend): Likewise.
5572         * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
5573         * hw-doloop.c (scan_loop): Likewise.
5574         * ifcvt.c (dead_or_predicable): Likewise.
5575         * init-regs.c (initialize_uninitialized_regs): Likewise.
5576         * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
5577         (process_bb_node_lives): Likewise.
5578         * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
5579         (find_moveable_pseudos): Likewise.
5580         * loop-invariant.c (check_dependencies, record_uses): Likewise.
5581         * recog.c (peep2_find_free_register): Likewise.
5582         * ree.c (get_defs): Likewise.
5583         * regstat.c (regstat_bb_compute_ri): Likewise.
5584         (regstat_bb_compute_calls_crossed): Likewise.
5585         * sched-deps.c (find_inc, find_mem): Likewise.
5586         * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
5587         (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
5588         * shrink-wrap.c (requires_stack_frame_p): Likewise.
5589         (prepare_shrink_wrap): Likewise.
5590         * store-motion.c (compute_store_table, build_store_vectors): Likewise.
5591         * web.c (union_defs, pass_web::execute): Likewise.
5592         * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
5593         (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
5595 2014-06-13  Vladimir Makarov  <vmakarov@redhat.com>
5597         * lra-assign.c (assign_by_spills): Add code to assign vector regs
5598         to inheritance pseudos.
5599         * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
5601 2014-06-13  Peter Bergner  <bergner@vnet.ibm.com>
5603         PR target/61415
5604         * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
5605         (BU_MISC_2): Rename to ...
5606         (BU_LDBL128_2): ... this.
5607         * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
5608         (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
5609         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
5610         RS6000_BTM_LDBL128.
5611         (rs6000_invalid_builtin): Add long double 128-bit builtin support.
5612         (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
5613         * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
5614         (unpacktf_1): Likewise.
5615         * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
5616         (__builtin_longdouble_dw1): Likewise.
5617         * doc/sourcebuild.texi (longdouble128): Document.
5619 2014-06-13  Jeff Law  <law@redhat.com>
5621         PR rtl-optimization/61094
5622         PR rtl-optimization/61446
5623         * ree.c (combine_reaching_defs): Get the mode for the copy from
5624         the extension insn rather than the defining insn.
5626 2014-06-13  Dehao Chen  <dehao@google.com>
5628         * dwarf2out.c (add_linkage_name): Emit more linkage name.
5630 2014-06-13  Thomas Schwinge  <thomas@codesourcery.com>
5632         * doc/install.texi (--enable-linker-plugin-configure-flags)
5633         (--enable-linker-plugin-flags): Document new flags.
5635 2014-06-13  Martin Jambor  <mjambor@suse.cz>
5637         PR ipa/61186
5638         * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
5639         cache_token if returning early.
5641 2014-06-13  Nick Clifton  <nickc@redhat.com>
5643         * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
5644         requested alignment is active.
5645         (LABEL_ALIGN): Likewise.
5646         (LOOP_ALIGN): Likewise.
5648 2014-06-13  Richard Biener  <rguenther@suse.de>
5650         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
5651         Rewrite to propagate the VN result into all uses where
5652         possible and to remove stmts becoming dead because of that.
5653         (eliminate): Generalize stmt removal handling, remove in
5654         reverse dominator order to support proper debug stmt
5655         generation.  Update stmts before removing stmts.
5656         * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
5658 2014-06-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5660         PR tree-optimization/61375
5661         * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
5662         symbolic number cannot be represented in an uint64_t.
5663         (find_bswap_or_nop_1): Likewise.
5665 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
5667         * symtab.c (symtab_node::reset_section): New method.
5668         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
5669         for localization.
5670         * cgraph.h (reset_section): Declare.
5671         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
5672         do not consider comdat locals.
5673         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
5674         for new symbol.
5675         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
5676         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
5677         reset sections of symbols dragged out of the comdats.
5678         (function_and_variable_visibility): Reset sections of
5679         localized symbols.
5681 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
5683         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
5684         to use symtab and decl_binds_to_current_def_p
5685         * tree-vectorizer.c (increase_alignment): Increase alignment
5686         of alias target, too.
5688 2014-06-12  Jakub Jelinek  <jakub@redhat.com>
5690         PR middle-end/61486
5691         * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
5692         (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
5693         if outer combined construct is distribute.
5694         (gimplify_omp_for): For OMP_DISTRIBUTE set
5695         gimplify_omp_ctxp->distribute.
5696         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
5697         GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
5698         mapping into decl map.
5700 2014-06-12  Jason Merrill  <jason@redhat.com>
5702         * common.opt (fabi-version): Change default to 0.
5704 2014-06-12  Jason Merrill  <jason@redhat.com>
5706         * toplev.c (process_options): Reject -fabi-version=1.
5708 2014-06-12  Jeff Law  <law@redhat.com>
5710         PR tree-optimization/61009
5711         * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
5712         value when we stop processing a block due to problematic PHIs.
5714 2014-06-12  Alan Lawrence  <alan.lawrence@arm.com>
5716         * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
5717         vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
5718         vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
5719         vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
5720         vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
5721         vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
5722         vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
5723         are not in the spec.
5725 2014-06-10  Alan Lawrence  <alan.lawrence@arm.com>
5727         PR target/59843
5728         * config/aarch64/aarch64-modes.def: Add V1DFmode.
5729         * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
5730         Support V1DFmode.
5732 2014-06-12  Eric Botcazou  <ebotcazou@adacore.com>
5734         * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
5736 2014-06-12  Georg-Johann Lay  <avr@gjlay.de>
5738         PR target/61443
5739         * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
5740         loading from address spaces.
5742 2014-06-12  Martin Liska  <mliska@suse.cz>
5744         PR ipa/61462
5745         * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
5746         statement is reachable.
5748 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
5750         * symtab.c (section_hash): New hash.
5751         (symtab_unregister_node): Clear section before freeing.
5752         (hash_section_hash_entry): New haser.
5753         (eq_sections): New function.
5754         (symtab_node::set_section_for_node): New method.
5755         (set_section_1): Update.
5756         (symtab_node::set_section): Take string instead of tree as parameter.
5757         (symtab_resolve_alias): Update.
5758         * cgraph.h (section_hash_entry_d): New structure.
5759         (section_hash_entry): New typedef.
5760         (cgraph_node): Change comdat_group_ to x_comdat_group,
5761         change section_ to x_section and turn into section_hash_entry;
5762         update accestors; put set_section_for_node offline.
5763         * tree.c (decl_section_name): Turn into string.
5764         (set_decl_section_name): Change parameter to be string.
5765         * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
5766         * sdbout.c (sdbout_one_type): Update.
5767         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
5768         * varasm.c (IN_NAMED_SECTION, get_named_section,
5769         resolve_unique_section, hot_function_section, get_named_text_section,
5770         USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
5771         make_decl_rtl, default_unique_section): Update.
5772         * config/c6x/c6x.c (c6x_in_small_data_p): Update.
5773         (c6x_elf_unique_section): Update.
5774         * config/nios2/nios2.c (nios2_in_small_data_p): Update.
5775         * config/pa/pa.c (pa_function_section): Update.
5776         * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
5777         * config/ia64/ia64.c (ia64_in_small_data_p): Update.
5778         * config/arc/arc.c (arc_in_small_data_p): Update.
5779         * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
5780         * config/mcore/mcore.c (mcore_unique_section): Update.
5781         * config/mips/mips.c (mips16_build_function_stub): Update.
5782         (mips16_build_call_stub): Update.
5783         (mips_function_rodata_section): Update.
5784         (mips_in_small_data_p): Update.
5785         * config/score/score.c (score_in_small_data_p): Update.
5786         * config/rx/rx.c (rx_in_small_data): Update.
5787         * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
5788         (rs6000_xcoff_asm_named_section): Update.
5789         (rs6000_xcoff_unique_section): Update.
5790         * config/frv/frv.c (frv_string_begins_with): Update.
5791         (frv_in_small_data_p): Update.
5792         * config/v850/v850.c (v850_encode_data_area): Update.
5793         * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
5794         (bfin_handle_l1_data_attribute): Update.
5795         (bfin_handle_l2_attribute): Update.
5796         * config/mep/mep.c (mep_unique_section): Update.
5797         * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
5798         Update.
5799         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
5800         (h8300_handle_tiny_data_attribute): Update.
5801         * config/m32r/m32r.c (m32r_in_small_data_p): Update.
5802         (m32r_in_small_data_p): Update.
5803         * config/alpha/alpha.c (alpha_in_small_data_p): Update.
5804         * config/i386/i386.c (ix86_in_large_data_p): Update.
5805         * config/i386/winnt.c (i386_pe_unique_section): Update.
5806         * config/darwin.c (darwin_function_section): Update.
5807         * config/lm32/lm32.c (lm32_in_small_data_p): Update.
5808         * tree-emutls.c (get_emutls_init_templ_addr): Update.
5809         (new_emutls_decl): Update.
5810         * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
5811         input_varpool_node): Update.
5812         (ead_string_cst): Turn to ...
5813         (read_string): ... this one.
5814         * dwarf2out.c (secname_for_decl): Update.
5815         * asan.c (asan_protect_global): Update.
5817 2014-06-11  DJ Delorie  <dj@redhat.com>
5819         * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
5820         cache lines.
5821         * config/rx/rx.c (rx_option_override): Likewise.
5822         (rx_align_for_label): Likewise.
5824         * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
5826 2014-06-11  Maciej W. Rozycki  <macro@codesourcery.com>
5828         * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
5829         prototype.
5831 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
5833         * common.md: New file.
5834         * doc/md.texi: Update description of generic, machine-independent
5835         constraints.
5836         * config/s390/constraints.md (e): Delete.
5837         * Makefile.in (md_file): Include common.md.
5838         * config/m32c/t-m32c (md_file): Likewise.
5839         * genpreds.c (general_mem): New array.
5840         (generic_constraint_letters): Remove constraints now defined by
5841         common.md.
5842         (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
5843         Allow the first character to be '<' or '>' as well.
5844         * genoutput.c (general_mem): New array.
5845         (indep_constraints): Remove constraints now defined by common.md.
5846         (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
5847         Remove special handling of 'm'.
5848         * ira-costs.c (record_reg_classes): Remove special handling of
5849         constraints now defined by common.md.
5850         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
5851         * ira-lives.c (single_reg_class): Likewise.
5852         (ira_implicitly_set_insn_hard_regs): Likewise.
5853         * lra-constraints.c (reg_class_from_constraints): Likewise.
5854         (process_alt_operands, process_address, curr_insn_transform): Likewise.
5855         * postreload.c (reload_cse_simplify_operands): Likewise.
5856         * reload.c (push_secondary_reload, scratch_reload_class)
5857         (find_reloads, alternative_allows_const_pool_ref): Likewise.
5858         * reload1.c (maybe_fix_stack_asms): Likewise.
5859         * targhooks.c (default_secondary_reload): Likewise.
5860         * stmt.c (parse_output_constraint): Likewise.
5861         * recog.c (preprocess_constraints): Likewise.
5862         (constrain_operands, peep2_find_free_register): Likewise.
5863         (asm_operand_ok): Likewise, but add a comment saying why 'o'
5864         must be handled specially.
5866 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
5868         * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
5869         * genpreds.c (have_const_dbl_constraints): Delete.
5870         (add_constraint): Don't set it.
5871         (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
5872         * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
5873         constraints using the lookup_constraint logic.
5874         * ira-lives.c (single_reg_class): Likewise.
5875         * ira.c (ira_setup_alts): Likewise.
5876         * lra-constraints.c (process_alt_operands): Likewise.
5877         * recog.c (asm_operand_ok, constrain_operands): Likewise.
5878         * reload.c (find_reloads): Likewise.
5880 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
5882         * genpreds.c (const_int_start, const_int_end): New variables.
5883         (choose_enum_order): Output CONST_INT constraints before memory
5884         constraints.
5885         (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
5886         Add CT_CONST_INT.
5887         * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
5888         * ira.c (ira_setup_alts): Likewise.
5889         * lra-constraints.c (process_alt_operands): Likewise.
5890         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
5891         * reload.c (find_reloads): Likewise.
5893 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
5895         * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
5896         decmem_ok and incmem_ok.  Reformat other bitfields for consistency.
5897         * recog.c (preprocess_constraints): Update accordingly.
5899 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
5901         * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
5902         (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
5903         (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
5904         * genpreds.c (print_type_tree): New function.
5905         (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
5906         REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
5907         EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
5908         Write out enum constraint_type and get_constraint_type.
5909         * lra-constraints.c (satisfies_memory_constraint_p): Take a
5910         constraint_num rather than a constraint string.
5911         (satisfies_address_constraint_p): Likewise.
5912         (reg_class_from_constraints): Avoid old constraint macros.
5913         (process_alt_operands, process_address_1): Likewise.
5914         (curr_insn_transform): Likewise.
5915         * ira-costs.c (record_reg_classes): Likewise.
5916         (record_operand_costs): Likewise.
5917         * ira-lives.c (single_reg_class): Likewise.
5918         (ira_implicitly_set_insn_hard_regs): Likewise.
5919         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
5920         * postreload.c (reload_cse_simplify_operands): Likewise.
5921         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
5922         (constrain_operands, peep2_find_free_register): Likewise.
5923         * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
5924         (find_reloads, alternative_allows_const_pool_ref): Likewise.
5925         * reload1.c (maybe_fix_stack_asms): Likewise.
5926         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
5927         * targhooks.c (default_secondary_reload): Likewise.
5928         * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
5929         to EXTRA_CONSTRAINT_STR.
5930         * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
5932 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
5934         * genpreds.c (write_constraint_satisfied_p_1): Replace with...
5935         (write_constraint_satisfied_p_array): ...this new function.
5936         (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
5937         an array.
5938         (write_insn_preds_c): Update accordingly.
5940 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
5942         * genpreds.c (write_lookup_constraint): Rename to...
5943         (write_lookup_constraint_1): ...this.
5944         (write_lookup_constraint_array): New function.
5945         (write_tm_preds_h): Define lookup_constraint as an inline function
5946         that uses write_lookup_constraint_array where possible.
5947         (write_insn_preds_c): Update for the changes above.
5949 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
5951         * doc/md.texi (regclass_for_constraint): Rename to...
5952         (reg_class_for_constraint): ...this.
5953         * genpreds.c (num_constraints, enum_order, register_start)
5954         (register_end, satisfied_start, memory_start, memory_end)
5955         (address_start, address_end): New variables.
5956         (add_constraint): Count the number of constraints.
5957         (choose_enum_order): New function.
5958         (write_enum_constraint_num): Iterate over enum_order.
5959         (write_regclass_for_constraint): Rename to...
5960         (write_reg_class_for_constraint_1): ...this and update output
5961         accordingly.
5962         (write_constraint_satisfied_p): Rename to...
5963         (write_constraint_satisfied_p_1): ...this and update output
5964         accordingly.  Do nothing if all extra constraints are register
5965         constraints.
5966         (write_insn_extra_memory_constraint): Delete.
5967         (write_insn_extra_address_constraint): Delete.
5968         (write_range_function): New function.
5969         (write_tm_preds_h): Define constraint_satisfied_p and
5970         reg_class_for_constraint as inline functions that do a range check
5971         before calling the out-of-line function.  Use write_range_function
5972         to implement insn_extra_{register,memory,address}_constraint,
5973         the first of which is new.
5974         (write_insn_preds_c): Update after above changes to write_* functions.
5975         (main): Call choose_enum_order.
5977 2014-06-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5979         PR tree-optimization/61306
5980         * tree-ssa-math-opts.c (struct symbolic_number): Store type of
5981         expression instead of its size.
5982         (do_shift_rotate): Adapt to change in struct symbolic_number. Return
5983         false to prevent optimization when the result is unpredictable due to
5984         arithmetic right shift of signed type with highest byte is set.
5985         (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
5986         (init_symbolic_number): Likewise.
5987         (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
5988         when the result is unpredictable due to sign extension.
5990 2014-06-11  Terry Guo  <terry.guo@arm.com>
5992         * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
5993         (*thumb1_addsi3): Ditto.
5994         (*thumb_subdi3): Ditto.
5995         (thumb1_subsi3_insn): Ditto.
5996         (*thumb_mulsi3): Ditto.
5997         (*thumb_mulsi3_v6): Ditto.
5998         (*thumb1_andsi3_insn): Ditto.
5999         (thumb1_bicsi3): Ditto.
6000         (*thumb1_iorsi3_insn): Ditto.
6001         (*thumb1_xorsi3_insn): Ditto.
6002         (*thumb1_ashlsi3): Ditto.
6003         (*thumb1_ashrsi3): Ditto.
6004         (*thumb1_lshrsi3): Ditto.
6005         (*thumb1_rotrsi3): Ditto.
6006         (*thumb1_negdi2): Ditto.
6007         (*thumb1_negsi2): Ditto.
6008         (*thumb1_abssi2): Ditto.
6009         (*thumb1_neg_abssi2): Ditto.
6010         (*thumb1_one_cmplsi2): Ditto.
6011         (*thumb1_zero_extendhisi2): Ditto.
6012         (*thumb1_zero_extendqisi2): Ditto.
6013         (*thumb1_zero_extendqisi2_v6): Ditto.
6014         (thumb1_extendhisi2): Ditto.
6015         (thumb1_extendqisi2): Ditto.
6016         (*thumb1_movdi_insn): Ditto.
6017         (*thumb1_movsi_insn): Ditto.
6018         (*thumb1_movhi_insn): Ditto.
6019         (thumb_movhi_clobber): Ditto.
6020         (*thumb1_movqi_insn): Ditto.
6021         (*thumb1_movhf): Ditto.
6022         (*thumb1_movsf_insn): Ditto.
6023         (*thumb_movdf_insn): Ditto.
6024         (movmem12b): Ditto.
6025         (movmem8b): Ditto.
6026         (cbranchqi4): Ditto.
6027         (cbranchsi4_insn): Ditto.
6028         (cbranchsi4_scratch): Ditto.
6029         (*negated_cbranchsi4): Ditto.
6030         (*tbit_cbranch): Ditto.
6031         (*tlobits_cbranch): Ditto.
6032         (*tstsi3_cbranch): Ditto.
6033         (*cbranchne_decr1): Ditto.
6034         (*addsi3_cbranch): Ditto.
6035         (*addsi3_cbranch_scratch): Ditto.
6036         (*thumb_cmpdi_zero): Ditto.
6037         (cstoresi_eq0_thumb1): Ditto.
6038         (cstoresi_ne0_thumb1): Ditto.
6039         (*cstoresi_eq0_thumb1_insn): Ditto.
6040         (*cstoresi_ne0_thumb1_insn): Ditto.
6041         (cstoresi_nltu_thumb1): Ditto.
6042         (cstoresi_ltu_thumb1): Ditto.
6043         (thumb1_addsi3_addgeu): Ditto.
6044         (*thumb_jump): Ditto.
6045         (*call_reg_thumb1_v5): Ditto.
6046         (*call_reg_thumb1): Ditto.
6047         (*call_value_reg_thumb1_v5): Ditto.
6048         (*call_value_reg_thumb1): Ditto.
6049         (*call_insn): Ditto.
6050         (*call_value_insn): Ditto.
6051         (thumb1_casesi_internal_pic): Ditto.
6052         (thumb1_casesi_dispatch): Ditto.
6053         (*thumb1_indirect_jump): Ditto.
6054         (prologue_thumb1_interwork): Ditto.
6055         (*epilogue_insns): Ditto.
6056         (consttable_1): Ditto.
6057         (consttable_2): Ditto.
6058         (tablejump): Ditto.
6059         (*thumb1_tablejump): Ditto.
6060         (thumb_eh_return): Ditto.
6061         (define_peephole2): Two of them are thumb1 only and got moved into
6062         new file thumb1.md.
6063         (define_split): Six of them are thumb1 only and got moved into new
6064         file thumb1.md.
6065         * config/arm/thumb1.md: New file comprised of above thumb1 only
6066         patterns.
6068 2014-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6070         * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
6071         * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
6072         dependencies.
6073         * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
6074         (aarch64_crc_builtin_datum): New struct.
6075         (aarch64_crc_builtin_data): New.
6076         (aarch64_init_crc32_builtins): New function.
6077         (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
6078         (aarch64_crc32_expand_builtin): New.
6079         (aarch64_expand_builtin): Add CRC32 builtin expansion case.
6080         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
6081         __ARM_FEATURE_CRC32 when appropriate.
6082         (TARGET_CRC32): Define.
6083         * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
6084         UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
6085         UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
6086         (aarch64_<crc_variant>): New pattern.
6087         * config/aarch64/arm_acle.h: New file.
6088         * config/aarch64/iterators.md (CRC): New int iterator.
6089         (crc_variant, crc_mode): New int attributes.
6090         * doc/aarch64-acle-intrinsics.texi: New file.
6091         * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
6092         Include aarch64-acle-intrinsics.texi.
6094 2014-06-11  Evgeny Stupachenko  <evstupac@gmail.com>
6096         * tree-vect-data-refs.c (vect_grouped_store_supported): New
6097         check for stores group of length 3.
6098         (vect_permute_store_chain): New permutations for stores group of
6099         length 3.
6100         * tree-vect-stmts.c (vect_model_store_cost): Change cost
6101         of vec_perm_shuffle for the new permutations.
6103 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
6105         * ipa-visibility.c (function_and_variable_visibility): Disable virtual
6106         table rewriting temporarily on targets not supporting ONE_ONLY.
6108 2014-06-11  Richard Biener  <rguenther@suse.de>
6110         PR middle-end/61437
6111         Revert
6112         2014-06-04  Richard Biener  <rguenther@suse.de>
6114         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
6115         TREE_PUBLIC and DECL_EXTERNAL decls.
6117 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
6119         * varasm.c (set_implicit_section): New function.
6120         (resolve_unique_section): Use it to set implicit section
6121         for aliases, too.
6122         (get_named_text_section): Use symtab_get_node (decl)->implicit_section
6123         (default_function_section): Likewise.
6124         (decl_binds_to_current_def_p): Constify argument.
6125         * varasm.h (decl_binds_to_current_def_p): Update prototype.
6126         * asan.c (asan_protect_global): Use
6127         symtab_get_node (decl)->implicit_section.
6128         * symtab.c (dump_symtab_base): Dump implicit sections.
6129         (verify_symtab_base): Verify sanity of sectoins and comdats.
6130         (symtab_resolve_alias): Alias share the section of its target.
6131         (set_section_1): New function.
6132         (symtab_node::set_section): Move here, recurse to aliases.
6133         (verify_symtab): Check for duplicated symtab lists.
6134         * tree-core.h (implicit_section_name_p): Remove.
6135         * tree-vect-data-refs.c: Include varasm.h.
6136         (vect_can_force_dr_alignment_p): Fix conditional on when
6137         decl bints to current definition; use
6138         symtab_get_node (decl)->implicit_section.
6139         * cgraph.c (cgraph_make_node_local_1): Fix section set.
6140         * cgraph.h (struct symtab_node): Add implicit_section.
6141         (set_section): Rename to ...
6142         (set_section_for_node): ... this one.
6143         (set_section): Declare.
6144         * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
6145         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
6146         input_overwrite_node, input_varpool_node): Stream implicit_section.
6147         * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
6148         removal; it will fail in LTO.
6150 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6152         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
6153         Change second alternative type to f_mcr.
6154         * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
6155         and 12th alternatives' types to f_mcr and f_mrc.
6156         (*movdi_aarch64): Same for 12th and 13th alternatives.
6157         (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
6158         (aarch64_movtilow_tilow): Change type to fmov.
6160 2014-06-10  Jiong Wang  <jiong.wang@arm.com>
6162         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
6163         (aarch64_save_or_restore_callee_save_registers): Fix layout.
6165 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6167         * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
6168         New expander.
6169         (aarch64_sqrdmulh_lane<mode>): Likewise.
6170         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
6171         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
6172         (aarch64_sqdmulh_laneq<mode>): New expander.
6173         (aarch64_sqrdmulh_laneq<mode>): Likewise.
6174         (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
6175         (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
6176         (aarch64_sqdmulh_lane<mode>): New expander.
6177         (aarch64_sqrdmulh_lane<mode>): Likewise.
6178         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
6179         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
6180         (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
6181         (aarch64_sqdmlal_laneq<mode>): Likewise.
6182         (aarch64_sqdmlsl_lane<mode>): Likewise.
6183         (aarch64_sqdmlsl_laneq<mode>): Likewise.
6184         (aarch64_sqdmlal2_lane<mode>): Likewise.
6185         (aarch64_sqdmlal2_laneq<mode>): Likewise.
6186         (aarch64_sqdmlsl2_lane<mode>): Likewise.
6187         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
6188         (aarch64_sqdmull_lane<mode>): Likewise.
6189         (aarch64_sqdmull_laneq<mode>): Likewise.
6190         (aarch64_sqdmull2_lane<mode>): Likewise.
6191         (aarch64_sqdmull2_laneq<mode>): Likewise.
6193 2014-06-10  Richard Biener  <rguenther@suse.de>
6195         PR tree-optimization/61438
6196         * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
6197         (eliminate_dom_walker::before_dom_children): Only try to inhibit
6198         insertion of IVs if running PRE.
6199         (eliminate): Adjust.
6200         (pass_pre::execute): Likewise.
6201         (pass_fre::execute): Likewise.
6203 2014-06-10  Richard Biener  <rguenther@suse.de>
6205         PR middle-end/61456
6206         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
6207         Do not use the main variant for the type comparison.
6208         (ncr_compar): Likewise.
6209         (nonoverlapping_component_refs_p): Likewise.
6211 2014-06-10  Marcus Shawcroft  <marcus.shawcroft@arm.com>
6213         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
6214         REG_CFA_RESTORE mode.
6216 2014-06-10  Evgeny Stupachenko  <evstupac@gmail.com>
6218         * config/i386/i386.c (expand_vec_perm_pblendv): New.
6219         * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
6220         expand_vec_perm_pblendv.
6222 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6224         * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
6225         available.
6226         Simplify description of __crc32d and __crc32cd intrinsics.
6227         * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
6228         availability.
6230 2014-06-10  Thomas Schwinge  <thomas@codesourcery.com>
6232         PR lto/61334
6233         * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
6234         * config.in: Regenerate.
6235         * configure: Likewise.
6237 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
6239         * ipa-reference.c (is_proper_for_analysis): Exclude addressable
6240         and public vars.
6241         (intersect_static_var_sets): Remove.
6242         (propagate): Do not prune local statics.
6244 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
6246         PR fortran/60928
6247         * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
6248         Set lastprivate_firstprivate even if omp_private_outer_ref
6249         langhook returns true.
6250         <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
6251         langhook, call unshare_expr on new_var and call
6252         build_outer_var_ref to get the last argument.
6254 2014-06-10  Marek Polacek  <polacek@redhat.com>
6256         PR c/60988
6257         * doc/extend.texi: Add cindex for transparent_union.
6259 2014-06-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
6261         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
6262         init_symbolic_number ().
6264 2014-05-18  John David Anglin  <danglin@gcc.gnu.org>
6266         PR middle-end/61141
6267         * emit-rtl.c (reset_all_used_flags): In a sequence, check that
6268         XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
6269         (verify_rtl_sharing): Likewise.
6271 2014-06-09  Marc Glisse  <marc.glisse@inria.fr>
6273         PR c++/54442
6274         * tree.c (build_qualified_type): Use a canonical type for
6275         TYPE_CANONICAL.
6277 2014-06-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6279         * config/arm/arm-modes.def: Remove XFmode.
6281 2014-06-09  Alan Lawrence  <alan.lawrence@arm.com>
6283         PR target/61062
6284         * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
6285         vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
6286         vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
6287         vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
6288         vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
6289         vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
6290         vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
6291         vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
6292         vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
6294 2014-06-09  Jan Hubicka  <hubicka@ucw.cz>
6296         * tree-core.h (tree_decl_with_vis): Remove section_name.
6298 2014-06-09  Kito Cheng  <kito@0xlab.org>
6300         * ira.c (ira): Don't call init_caller_save if LRA enabled
6301         since LRA use its own infrastructure to handle that.
6303 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
6305         * symtab.c (dump_symtab_base): Update dumping.
6306         (symtab_make_decl_local): Clear only DECL_COMDAT.
6307         * tree-vect-data-refs.c (Check that variable is static before
6308         tampering with sections.
6309         * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
6310         (cgraph_create_virtual_clone): Likewise.
6311         * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
6312         (decl_section_name, set_decl_section_name): New accessors.
6313         (find_decls_types_r): Do not walk section name
6314         * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
6315         (decl_comdat_group, decl_comdat_group_id): Constify.
6316         (decl_section_name, set_decl_section_name): Update.
6317         * varpool.c (varpool_finalize_named_section_flags): Use get_section.
6318         * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
6319         (cgraph_make_node_local_1): Clear section and comdat group.
6320         * cgraph.h (set_comdat_group): Sanity check.
6321         (get_section, set_section): New.
6322         * ipa-comdats.c (ipa_comdats): Use get_section.
6323         * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
6324         * lto-streamer-out.c: Do not follow section names.
6325         * c-family/c-common.c (handle_section_attribute): Update.
6326         * lto-cgraph.c (lto_output_node): Output section.
6327         (lto_output_varpool_node): Likewise.
6328         (read_comdat_group): Rename to ...
6329         (read_identifier): ... this one.
6330         (read_string_cst): New function.
6331         (input_node, input_varpool_node): Input section names.
6332         * tree-emutls.c (get_emutls_init_templ_addr): Update.
6333         (new_emutls_decl): Update.
6334         (secname_for_decl): Check section names only of static vars.
6335         * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
6336         * config/i386/winnt.c (i386_pe_unique_section): Likewise.
6337         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
6338         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
6339         * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
6340         * config/mcore/mcore.c (mcore_unique_section): Likewise.
6341         * config/mips/mips.c (mips16_build_function_stub): Likewise.
6342         * config/v850/v850.c (v850_insert_attributes): Likewise.
6343         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
6344         Likewise.
6345         (h8300_handle_tiny_data_attribute): Likewise.
6346         * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
6347         (bfin_handle_l2_attribute): Likewise.
6349 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
6351         * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
6352         remove static initializer.
6354 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
6356         * varasm.c (use_blocks_for_decl_p): Check symbol table
6357         instead of alias attribute.
6358         (place_block_symbol): Recurse on aliases.
6360 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
6362         * ipa-visibility.c: Include varasm.h
6363         (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
6365 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
6367         * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
6368         outputting aliases.
6370 2014-06-07  Steven Bosscher  <steven@gcc.gnu.org>
6372         * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
6373         from test_insn into GGC space escape via SET_SRC.
6375 2014-06-07  Eric Botcazou  <ebotcazou@adacore.com>
6377         * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
6378         call statement, if any.
6379         (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
6380         statements, if any.  Tidy up.
6382 2014-06-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
6384         PR target/61431
6385         * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
6386         iterators, VSX_D that handles 64-bit types, and VSX_LE that
6387         handles swapping the two 64-bit double words on little endian
6388         systems.  Include V1TImode and optionally TImode in VSX_LE so that
6389         these types are properly swapped.  Change all of the insns and
6390         splits that do the 64-bit swaps to use VSX_LE.
6391         (vsx_le_perm_load_<mode>): Likewise.
6392         (vsx_le_perm_store_<mode>): Likewise.
6393         (splitters for little endian memory operations): Likewise.
6394         (vsx_xxpermdi2_le_<mode>): Likewise.
6395         (vsx_lxvd2x2_le_<mode>): Likewise.
6396         (vsx_stxvd2x2_le_<mode>): Likewise.
6398 2014-06-06  Uros Bizjak  <ubizjak@gmail.com>
6400         PR target/61423
6401         * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
6402         define_insn_and_split pattern, merged from *floatunssi<mode>2_1
6403         and corresponding splitters.  Zero extend general register
6404         or memory input operand to XMM temporary.  Enable for
6405         TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
6406         (floatunssi<mode>2): Update expander predicate.
6408 2014-06-06  Vladimir Makarov  <vmakarov@redhat.com>
6410         PR rtl-optimization/61325
6411         * lra-constraints.c (process_address_1): Check scale equal to one
6412         to prevent transformation: base + scale * index => base + new_reg.
6414 2014-06-06  Richard Biener  <rguenther@suse.de>
6416         PR tree-optimization/59299
6417         * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
6418         a def operand.
6419         (nearest_common_dominator_of_uses): Likewise.
6420         (statement_sink_location): Adjust.  Support sinking loads.
6422 2014-06-06  Martin Jambor  <mjambor@suse.cz>
6424         * ipa-prop.c (get_place_in_agg_contents_list): New function.
6425         (build_agg_jump_func_from_list): Likewise.
6426         (determine_known_aggregate_parts): Renamed to
6427         determine_locally_known_aggregate_parts.  Moved some functionality
6428         to the two functions above, removed bound checks.
6430 2014-06-06  James Greenhalgh  <james.greenhalgh@arm.com>
6432         * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
6433         * config/aarch64/aarch64.c (aarch64_move_pointer): New.
6434         (aarch64_progress_pointer): Likewise.
6435         (aarch64_copy_one_part_and_move_pointers): Likewise.
6436         (aarch64_expand_movmen): Likewise.
6437         * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
6438         * config/aarch64/aarch64.md (movmem<mode>): New.
6440 2014-06-06  Bingfeng Mei  <bmei@broadcom.com>
6442         * targhooks.c (default_add_stmt_cost): Call target specific
6443         hook instead of default one.
6445 2014-06-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
6447         * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
6448         endianness instead of host endianness.
6449         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
6450         comments.
6452 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
6454         PR debug/53927
6455         * function.c (instantiate_decls): Process the saved static chain.
6456         (expand_function_start): If not optimizing, save the static chain
6457         onto the stack.
6458         * tree-nested.c (convert_all_function_calls): Always create the static
6459         chain for nested functions if not optimizing.
6461 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
6463         * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
6465 2014-06-06  Richard Biener  <rguenther@suse.de>
6467         * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
6468         (construct_init_block): Likewise.
6469         (construct_exit_block): Likewise.
6470         (pass_expand::execute): Likewise.
6471         * graphite.c (graphite_transforms): Replace check for current_loops
6472         with a check for > 1 loops.
6473         (pass_graphite_transforms::execute): Adjust.
6474         * ipa-split.c (split_function): Remove check for current_loops.
6475         * omp-low.c (expand_parallel_call): Likewise.
6476         (expand_omp_for_init_counts): Likewise.
6477         (extract_omp_for_update_vars): Likewise.
6478         (expand_omp_for_generic): Likewise.
6479         (expand_omp_sections): Likewise.
6480         (expand_omp_target): Likewise.
6481         * tracer.c (tail_duplicate): Likewise.
6482         (pass_tracer::execute): Likewise.
6483         * trans-mem.c (expand_transaction): Likewise.
6484         * tree-complex.c (expand_complex_div_wide): Likewise.
6485         * tree-eh.c (lower_resx): Likewise.
6486         (cleanup_empty_eh_merge_phis): Likewise.
6487         * tree-predcom.c (run_tree_predictive_commoning): Replace check for
6488         current_loops with a check for > 1 loops.
6489         (pass_predcom::execute): Adjust.
6490         * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
6491         * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
6492         * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
6493         * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
6494         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
6495         * tree-switch-conversion.c (process_switch): Likewise.
6496         * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
6497         * tree-vrp.c (vrp_visit_phi_node): Likewise.
6498         (execute_vrp): Likewise.
6499         * ubsan.c (ubsan_expand_null_ifn): Likewise.
6501 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
6503         * rtl.h (insn_location): Declare.
6504         * cfgcleanup.c (try_forward_edges): Compare the locus of locations
6505         with UNKNOWN_LOCATION.
6506         * emit-rtl.c (insn_location): New function.
6507         * final.c (notice_source_line): Check that the instruction has a
6508         location before retrieving it and use insn_location.
6509         * modulo-sched.c (loop_single_full_bb_p): Likewise.
6510         * print-rtl.c (print_rtx): Likewise.
6512 2014-06-06  Richard Biener  <rguenther@suse.de>
6514         * passes.def: Move 2nd VRP pass before phi-only-cprop.
6516 2014-06-06  Christian Bruel  <christian.bruel@st.com>
6518         PR tree-optimization/43934
6519         * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
6520         cost.
6522 2014-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
6524         * ira-lives.c (single_reg_class): Add missing break.  Explicitly
6525         return NO_REGS for extra address and memory constraints.  Handle
6526         operands that match (or are equivalent to something that matches)
6527         extra constant constraints.  Ignore other non-register operands.
6529 2014-06-06  Alan Modra  <amodra@gmail.com>
6531         PR target/61300
6532         * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
6533         * doc/tm.texi: Regenerate.
6534         * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
6535         Use throughout in place of REG_PARM_STACK_SPACE.
6536         * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
6537         "incoming" param.  Pass to rs6000_function_parms_need_stack.
6538         (rs6000_function_parms_need_stack): Add "incoming" param, ignore
6539         prototype_p when incoming.  Use function decl when incoming
6540         to handle K&R style functions.
6541         * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
6542         (INCOMING_REG_PARM_STACK_SPACE): Define.
6544 2014-06-05  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
6546         PR target/52472
6547         * cfgexpand.c (expand_debug_expr): Use address space of nested
6548         TREE_TYPE for ADDR_EXPR and MEM_REF.
6550 2014-06-05  Jeff Law  <law@redhat.com>
6552         PR tree-optimization/61289
6553         * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
6554         DST_MAP parameters.   Invalidate by walking all the SSA_NAME_VALUES
6555         looking for those which match LHS.  All callers changed.
6556         (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
6557         parameters and code which manipulated them.  All callers changed.
6558         (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
6559         and DST_MAP parameters.  Simplify invalidation code by just calling
6560         invalidate_equivalences.  All callers changed.
6561         (thread_across_edge): Simplify now that we don't need to maintain
6562         the map of equivalences to invalidate.
6564 2014-06-05  Kai Tietz  <ktietz@redhat.com>
6565             Richard Henderson  <rth@redhat.com>
6567         PR target/46219
6568         * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
6569         checking for !TARGET_X32.
6570         * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
6571         (sibcall_intern): New define_insn, plus required peepholes.
6572         (sibcall_pop_intern): Likewise.
6573         (sibcall_value_intern): Likewise.
6574         (sibcall_value_pop_intern): Likewise.
6576 2014-06-05  Ilya Enkovich  <ilya.enkovich@intel.com>
6578         * tree-inline.c (tree_function_versioning): Check DF info existence
6579         before accessing it.
6581 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
6583         * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
6584         frame_size.
6585         * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
6586         aarch64_frame hard_fp_offset and frame_size.
6587         (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
6588         frame_size; remove original_frame_size.
6589         (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
6590         (aarch64_initial_elimination_offset): Remove frame_size and
6591         offset.  Use aarch64_frame frame_size.
6593 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
6594             Jiong Wang  <jiong.wang@arm.com>
6595             Renlin  <renlin.li@arm.com>
6597         * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
6598         initialization of R30 offset.  Update offset.  Iterate core
6599         regisers upto X30.  Remove X29, X30 specific code.
6601 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
6602             Jiong Wang  <jiong.wang@arm.com>
6604         * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
6605         (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
6606         (aarch64_register_saved_on_entry): Adjust test.
6608 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
6610         * config/aarch64/aarch64.h (machine_function): Move
6611         saved_varargs_size from here...
6612         (aarch64_frame): ... to here.
6614         * config/aarch64/aarch64.c (aarch64_expand_prologue)
6615         (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
6616         (aarch64_initial_elimination_offset)
6617         (aarch64_setup_incoming_varargs): Adjust location of
6618         saved_varargs_size.
6620 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
6622         * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
6623         layout comment.
6625 2014-06-05  Jaydeep Patil  <Jaydeep.Patil@imgtec.com>
6626             Prachi Godbole  <Prachi.Godbole@imgtec.com>
6628         * config/mips/mips-cpus.def: Add definition for p5600.  Updated
6629         mips32r5 entry to use PROCESSOR_P5600.
6630         * config/mips/mips-tables.opt: Regenerate.
6631         * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
6632         * config/mips/mips.c (mips_fmadd_bypass): New function.
6633         (mips_rtx_cost_data): Add costs for p5600.
6634         (mips_issue_rate): Add support for p5600.
6635         (mips_multipass_dfa_lookahead): Likewise.
6636         * config/mips/mips.h (TUNE_P5600): New define.
6637         (TUNE_MACC_CHAINS): Add TUNE_P5600.
6638         (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
6639         * config/mips/mips.md: Include p5600.md.
6640         (processor): Add p5600.
6641         * config/mips/p5600.md: New file.
6643 2014-06-05  Evgeny Stupachenko  <evstupac@gmail.com>
6645         * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
6646         * config/i386/predicates.md (palignr_operand): New.
6647         Indicates if permutation is suitable for palignr instruction.
6649 2014-06-05  Yuri Rumyantsev  <ysrumyan@gmail.com>
6651         PR tree-optimization/61319
6652         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
6653         stmt belongs to loop.
6655 2014-06-05  Richard Biener  <rguenther@suse.de>
6657         * gimplify.c (create_tmp_from_val): Remove is_formal parameter
6658         and set DECL_GIMPLE_REG_P unconditionally if appropriate.
6659         (lookup_tmp_var): Adjust.
6660         (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
6662 2014-06-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6664         * config/arm/arm.md (enabled): Disable opt_enabled attribute.
6666 2014-06-05  Marek Polacek  <polacek@redhat.com>
6668         PR c/49706
6669         * doc/invoke.texi: Document -Wlogical-not-parentheses.
6671 2014-06-04  Tom de Vries  <tom@codesourcery.com>
6673         * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
6674         CONST_INT.
6676 2014-06-04  Marc Glisse  <marc.glisse@inria.fr>
6678         PR tree-optimization/61385
6679         * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
6681 2014-06-04  Bernd Schmidt  <bernds@codesourcery.com>
6683         * lto-wrapper.c (fatal, fatal_perror): Remove functions.  All callers
6684         changed to use fatal_error.
6685         (main): Ensure lto_wrapper_cleanup is run atexit.
6687 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
6689         * lra-constraints.c (valid_address_p): Move earlier in file.
6690         (address_eliminator): New structure.
6691         (satisfies_memory_constraint_p): New function.
6692         (satisfies_address_constraint_p): Likewise.
6693         (process_alt_operands, process_address, curr_insn_transform): Use them.
6695 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
6697         * lra-int.h (lra_static_insn_data): Make operand_alternative a
6698         const pointer.
6699         (target_lra_int, default_target_lra_int, this_target_lra_int)
6700         (op_alt_data): Delete.
6701         * lra.h (lra_init): Delete.
6702         * lra.c (default_target_lra_int, this_target_lra_int): Delete.
6703         (init_insn_code_data_once): Remove op_alt_data handling.
6704         (finish_insn_code_data_once): Likewise.
6705         (init_op_alt_data): Delete.
6706         (get_static_insn_data): Initialize operand_alternative to null.
6707         (free_insn_recog_data): Cast operand_alternative before freeing it.
6708         (setup_operand_alternative): Take the operand_alternative as
6709         parameter and assume it isn't already cached in the static
6710         insn data.
6711         (lra_set_insn_recog_data): Update accordingly.
6712         (lra_init): Delete.
6713         * ira.c (ira_init): Don't call lra_init.
6714         * target-globals.h (this_target_lra_int): Declare.
6715         (target_globals): Remove lra_int.
6716         (restore_target_globals): Update accordingly.
6717         * target-globals.c: Don't include lra-int.h.
6718         (default_target_globals, save_target_globals): Remove lra_int.
6720 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
6722         * recog.h (operand_alternative): Convert reg_class, reject,
6723         matched and matches into bitfields.
6724         (preprocess_constraints): New overload.
6725         (preprocess_insn_constraints): New function.
6726         (preprocess_constraints): Take the insn as parameter.
6727         (recog_op_alt): Change into a pointer.
6728         (target_recog): Add x_op_alt.
6729         * recog.c (asm_op_alt): New variable.
6730         (recog_op_alt): Change into a pointer.
6731         (preprocess_constraints): New overload, replacing the old function
6732         definition with one that doesn't use global state.
6733         (preprocess_insn_constraints): New function.
6734         (preprocess_constraints): Use them.  Take the insn as parameter.
6735         Use asm_op_alt for asms.
6736         (recog_init): Free existing x_op_alt entries.
6737         * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
6738         pointer const.
6739         (make_early_clobber_and_input_conflicts): Likewise.
6740         (process_bb_node_lives): Pass the insn to process_constraints.
6741         * reg-stack.c (check_asm_stack_operands): Likewise.
6742         (subst_asm_stack_regs): Likewise.
6743         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
6744         * regrename.c (build_def_use): Likewise.
6745         * sched-deps.c (sched_analyze_insn): Likewise.
6746         * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
6747         * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
6748         (note_invalid_constants): Likewise.
6749         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
6750         (ix86_legitimate_combined_insn): Make operand_alternative pointer
6751         const.
6753 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
6755         * recog.c (preprocess_constraints): Don't skip disabled alternatives.
6756         * ira-lives.c (check_and_make_def_conflict): Check for disabled
6757         alternatives.
6758         (make_early_clobber_and_input_conflicts): Likewise.
6759         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
6761 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
6763         * recog.h (alternative_class): New function.
6764         (which_op_alt): Return a const recog_op_alt.
6765         * reg-stack.c (check_asm_stack_operands): Update type accordingly.
6766         (subst_asm_stack_regs): Likewise.
6767         * config/arm/arm.c (note_invalid_constants): Likewise.
6768         * regcprop.c (copyprop_hardreg_forward_1): Likewise.  Don't modify
6769         the operand_alternative; use alternative class instead.
6770         * sel-sched.c (get_reg_class): Likewise.
6771         * regrename.c (build_def_use): Likewise.
6772         (hide_operands, restore_operands, record_out_operands): Update type
6773         accordingly.
6775 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
6777         * recog.h (recog_op_alt): Convert to a flat array.
6778         (which_op_alt): New function.
6779         * recog.c (recog_op_alt): Convert to a flat array.
6780         (preprocess_constraints): Update accordingly, grouping all
6781         operands of the same alternative together, rather than the
6782         other way around.
6783         * ira-lives.c (check_and_make_def_conflict): Likewise.
6784         (make_early_clobber_and_input_conflicts): Likewise.
6785         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
6786         * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
6787         (subst_asm_stack_regs): Likewise.
6788         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
6789         * regrename.c (hide_operands, record_out_operands): Likewise.
6790         (build_def_use): Likewise.
6791         * sel-sched.c (get_reg_class): Likewise.
6792         * config/arm/arm.c (note_invalid_constants): Likewise.
6794 2014-06-04  Jason Merrill  <jason@redhat.com>
6796         PR c++/51253
6797         PR c++/61382
6798         * gimplify.c (gimplify_arg): Non-static.
6799         * gimplify.h: Declare it.
6801 2014-06-04  Richard Biener  <rguenther@suse.de>
6803         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
6804         TREE_PUBLIC and DECL_EXTERNAL decls.
6806 2014-06-04  Matthew Fortune  <matthew.fortune@imgtec.com>
6808         * regcprop.c (copyprop_hardreg_forward_1): Account for
6809         HARD_REGNO_CALL_PART_CLOBBERED.
6811 2014-06-04  Richard Biener  <rguenther@suse.de>
6813         * configure.ac: Check whether the underlying type of int64_t
6814         is long or long long.
6815         * configure: Regenerate.
6816         * config.in: Likewise.
6817         * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
6818         (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
6820 2014-06-04  Richard Biener  <rguenther@suse.de>
6822         PR tree-optimization/60098
6823         * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
6824         we hit a kill.
6825         (dse_optimize_stmt): Simplify, now that we found a kill
6826         earlier.
6828 2014-06-04  Richard Biener  <rguenther@suse.de>
6830         * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
6831         of accesses with non-invariant address.
6833 2014-06-04  Martin Liska  <mliska@suse.cz>
6835         * cgraph.h (cgraph_make_wrapper): New function introduced.
6836         * cgraphunit.c (cgraph_make_wrapper): The function implementation.
6837         * ipa-inline.h (inline_analyze_function): The function is global.
6838         * ipa-inline-analysis.c (inline_analyze_function): Likewise.
6840 2014-06-04  Martin Liska  <mliska@suse.cz>
6842         * tree.h (private_lookup_attribute_starting): New function.
6843         (lookup_attribute_starting): Likewise.
6844         * tree.c (private_lookup_attribute_starting): Likewise.
6846 2014-06-04  Martin Liska  <mliska@suse.cz>
6848         * cgraph.h (expand_thunk): New argument added.
6849         (address_taken_from_non_vtable_p): New global function.
6850         * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
6851         * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
6852         * cgraphunit.c (analyze_function): Likewise.
6853         (assemble_thunks_and_aliases): Argument added to call.
6854         (expand_thunk): New argument forces to produce GIMPLE thunk.
6856 2014-06-04  Martin Liska  <mliska@suse.cz>
6858         * coverage.h (coverage_compute_cfg_checksum): Argument added.
6859         * coverage.c (coverage_compute_cfg_checksum): Likewise.
6860         * profile.c (branch_prob): Likewise.
6862 2014-06-04  Martin Jambor  <mjambor@suse.cz>
6864         PR ipa/61340
6865         * ipa-pure-const.c (propagate_pure_const): Add unreachable default
6866         handler for switch on an ipa_ref_use enum.
6867         * ipa-reference.c (analyze_function): Likewise.
6869 2014-06-04  Kai Tietz  <ktietz@redhat.com>
6871         * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
6872         from old call-instruction.
6874 2014-06-04  Bin Cheng  <bin.cheng@arm.com>
6876         * config/aarch64/aarch64.c (aarch64_classify_address)
6877         (aarch64_legitimize_reload_address): Support full addressing modes
6878         for vector modes.
6879         * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
6880         (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
6882 2014-06-03  Andrew Pinski  <apinski@cavium.com>
6884         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
6885         for OP0.
6887 2014-06-03  Andrew Pinski  <apinski@cavium.com>
6889         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
6890         (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
6892 2014-06-03  Kai Tietz  <ktietz@redhat.com>
6894         * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
6895         for 64-bit ms-abi.
6897 2014-06-03  Dehao Chen  <dehao@google.com>
6899         * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
6900         the same loop.
6902 2014-06-03  Marek Polacek  <polacek@redhat.com>
6904         PR c/60439
6905         * doc/invoke.texi: Document -Wswitch-bool.
6906         * function.c (stack_protect_epilogue): Cast controlling expression of
6907         the switch to int.
6908         * gengtype.c (walk_type): Generate switch expression with its
6909         controlling expression cast to int.
6911 2014-06-03  Vishnu K S  <Vishnu.k_s@atmel.com>
6913         * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
6914         and attiny841.
6915         * config/avr/avr-tables.opt: Regenerate.
6916         * config/avr/t-multilib: Regenerate.
6917         * doc/avr-mmcu.texi: Regenerate.
6919 2014-06-03  Vishnu K S  <vishnu.k_s@atmel.com>
6920             Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
6922         * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
6923         (ata6617c, ata664251): Add new avr35 devices.
6924         (ata6612c): Add new avr4 device.
6925         (ata6613c, ata6614q): Add new avr5 devices.
6926         * config/avr/avr-tables.opt: Regenerate.
6927         * config/avr/t-multilib: Regenerate.
6928         * doc/avr-mmcu.texi: Regenerate.
6930 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
6932         * gcc/config/aarch64/aarch64-builtins.c
6933         (aarch64_types_binop_ssu_qualifiers): New static data.
6934         (TYPES_BINOP_SSU): Define.
6935         * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
6936         urshr_n, ushll_n): Use appropriate unsigned qualifiers.
6937         * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
6938         vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
6939         vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
6940         vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
6941         vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
6942         vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
6943         vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
6944         suffix to builtin function name, remove cast.
6945         (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
6946         vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
6947         vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
6949 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
6951         * gcc/config/aarch64/aarch64-builtins.c
6952         (aarch64_types_binop_uus_qualifiers,
6953         aarch64_types_shift_to_unsigned_qualifiers,
6954         aarch64_types_unsigned_shiftacc_qualifiers): Define.
6955         * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
6956         uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
6957         sqshlu_n, uqshl_n): Update qualifiers.
6958         * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
6959         vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
6960         vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
6961         vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
6962         vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
6963         vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
6964         vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
6965         vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
6966         vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
6967         vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
6968         vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
6969         vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
6970         vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
6971         vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
6972         vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
6973         vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
6974         vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
6975         vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
6976         vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
6977         vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
6978         vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
6979         vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
6980         vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
6981         vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
6982         vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
6983         vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
6984         vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
6986 2014-06-03  Teresa Johnson  <tejohnson@google.com>
6988         * tree-sra.c (modify_function): Record caller nodes after rebuild.
6990 2014-06-02  Jason Merrill  <jason@redhat.com>
6992         PR c++/61020
6993         * varpool.c (ctor_for_folding): Handle uninitialized vtables.
6995 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
6997         * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
6998         location == 0.
7000 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
7002         * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
7003         New pattern.
7004         * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
7005         (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
7006         * config/aarch64/iterators.md (REVERSE): New iterator.
7007         (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
7008         (rev_op): New int_attribute.
7009         * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
7010         vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
7011         vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
7012         vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
7013         vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
7014         vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
7015         vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
7016         Replace temporary __asm__ with __builtin_shuffle.
7018 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
7020         * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
7021         mips64r5.
7022         * config/mips/mips-tables.opt: Regenerate.
7023         * config/mips/mips.c (mips_compute_frame_info): Changed if statement
7024         to use mips_isa_rev rather than ISA_MIPS32R2.
7025         * config/mips/mips.h (ISA_MIPS32R3): New define.
7026         (ISA_MIPS32R5): New define.
7027         (ISA_MIPS64R3): New define.
7028         (ISA_MIPS64R5): New define.
7029         (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
7030         ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
7031         (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
7032         and mips64r5.
7033         (MIPS_ISA_SYNCI_SPEC): Likewise.
7034         (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
7035         (LINK_SPEC): Added mips32r3 and mips32r5.
7036         * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
7037         to mips32r2; and mips64r3 and mips64r5 to mips64r2.
7038         * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
7039         * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
7040         * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
7041         * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
7042         * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
7044 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
7046         * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
7047         options.
7048         * config/mips/mips.opt (mxpa): New option.
7049         * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
7050         assembler.
7052 2014-06-03  Martin Jambor  <mjambor@suse.cz>
7054         PR ipa/61160
7055         * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
7056         thunks.
7058 2014-06-03  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7060         PR tree-optimization/61328
7061         * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
7062         initialization from find_bswap_or_nop_1.
7063         (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
7064         in source_expr2 before using the size value the function sets. Also
7065         make use of init_symbolic_number () in both the old place and
7066         find_bswap_or_nop_load () to avoid reading uninitialized memory when
7067         doing recursion in the GIMPLE_BINARY_RHS case.
7069 2014-06-03  Richard Biener  <rguenther@suse.de>
7071         PR tree-optimization/61383
7072         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
7073         stmts can't trap.
7075 2014-06-03  Richard Sandiford  <rdsandiford@googlemail.com>
7077         * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
7078         (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
7079         (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
7080         (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
7081         in this file.
7082         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
7083         (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
7084         * system.h: ...here and make it unconditional.
7085         * target.def (conditional_register_usage): Mention
7086         define_register_constraint instead of old-style constraint macros.
7087         * doc/tm.texi.in: Remove documentation for old-style constraint macros.
7088         * doc/tm.texi: Regenerate.
7089         * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
7090         protected by !USE_MD_CONSTRAINTS.
7091         * config/frv/frv.md: Remove quote from old version of documentation.
7092         * config/frv/frv.c (frv_conditional_register_usage): Likewise.
7093         * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
7094         CONST_DOUBLE_OK_FOR_LETTER.
7095         * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
7097 2014-06-02  Andrew Pinski  <apinski@cavium.com>
7099         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
7100         /lib/ld-linux32-aarch64.so.1 is used for ILP32.
7101         (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
7102         file whose name depends on -mabi= and -mbig-endian.
7103         * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
7104         Handle LP64 better and handle ilp32 too.
7105         (MULTILIB_OPTIONS): Delete.
7106         (MULTILIB_DIRNAMES): Delete.
7108 2014-06-02  Andrew MacLeod  <amacleod@redhat.com>
7110         * expr.h: Remove prototypes of functions defined in builtins.c.
7111         * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
7112         Remove prototypes of functions defined in builtins.c.
7113         * builtins.h: Update prototype list to include all exported functions.
7114         * builtins.c: (default_libc_has_function, gnu_libc_has_function,
7115         no_c99_libc_has_function): Move to targhooks.c
7116         (build_string_literal, build_call_expr_loc_array,
7117         build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
7118         to tree.c.
7119         (expand_builtin_object_size, fold_builtin_object_size): Make static.
7120         * targhooks.c (default_libc_has_function, gnu_libc_has_function,
7121         no_c99_libc_has_function): Relocate from builtins.c.
7122         * tree.c: Include builtins.h.
7123         (build_call_expr_loc_array, build_call_expr_loc_vec,
7124         build_call_expr_loc, build_call_expr, build_string_literal): Relocate
7125         from builtins.c.
7126         * fold-const.h (fold_fma): Move prototype to builtins.h.
7127         * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
7128         * asan.c: Include builtins.h.
7129         * cfgexpand.c: Likewise.
7130         * convert.c: Likewise.
7131         * emit-rtl.c: Likewise.
7132         * except.c: Likewise.
7133         * expr.c: Likewise.
7134         * fold-const.c: Likewise.
7135         * gimple-fold.c: Likewise.
7136         * gimple-ssa-strength-reduction.c: Likewise.
7137         * gimplify.c: Likewise.
7138         * ipa-inline.c: Likewise.
7139         * ipa-prop.c: Likewise.
7140         * lto-streamer-out.c: Likewise.
7141         * stmt.c: Likewise.
7142         * tree-inline.c: Likewise.
7143         * tree-object-size.c: Likewise.
7144         * tree-sra.c: Likewise.
7145         * tree-ssa-ccp.c: Likewise.
7146         * tree-ssa-forwprop.c: Likewise.
7147         * tree-ssa-loop-ivcanon.c: Likewise.
7148         * tree-ssa-loop-ivopts.c: Likewise.
7149         * tree-ssa-math-opts.c: Likewise.
7150         * tree-ssa-reassoc.c: Likewise.
7151         * tree-ssa-threadedge.c: Likewise.
7152         * tree-streamer-in.c: Likewise.
7153         * tree-vect-data-refs.c: Likewise.
7154         * tree-vect-patterns.c: Likewise.
7155         * tree-vect-stmts.c: Likewise.
7156         * config/aarch64/aarch64.c: Likewise.
7157         * config/alpha/alpha.c: Likewise.
7158         * config/arc/arc.c: Likewise.
7159         * config/arm/arm.c: Likewise.
7160         * config/avr/avr.c: Likewise.
7161         * config/bfin/bfin.c: Likewise.
7162         * config/c6x/c6x.c: Likewise.
7163         * config/cr16/cr16.c: Likewise.
7164         * config/cris/cris.c: Likewise.
7165         * config/epiphany/epiphany.c: Likewise.
7166         * config/fr30/fr30.c: Likewise.
7167         * config/frv/frv.c: Likewise.
7168         * config/h8300/h8300.c: Likewise.
7169         * config/i386/i386.c: Likewise.
7170         * config/i386/winnt.c: Likewise.
7171         * config/ia64/ia64.c: Likewise.
7172         * config/iq2000/iq2000.c: Likewise.
7173         * config/lm32/lm32.c: Likewise.
7174         * config/m32c/m32c.c: Likewise.
7175         * config/m32r/m32r.c: Likewise.
7176         * config/m68k/m68k.c: Likewise.
7177         * config/mcore/mcore.c: Likewise.
7178         * config/mep/mep.c: Likewise.
7179         * config/microblaze/microblaze.c: Likewise.
7180         * config/mips/mips.c: Likewise.
7181         * config/mmix/mmix.c: Likewise.
7182         * config/mn10300/mn10300.c: Likewise.
7183         * config/moxie/moxie.c: Likewise.
7184         * config/msp430/msp430.c: Likewise.
7185         * config/nds32/nds32.c: Likewise.
7186         * config/pa/pa.c: Likewise.
7187         * config/pdp11/pdp11.c: Likewise.
7188         * config/picochip/picochip.c: Likewise.
7189         * config/rl78/rl78.c: Likewise.
7190         * config/rs6000/rs6000.c: Likewise.
7191         * config/rx/rx.c: Likewise.
7192         * config/s390/s390.c: Likewise.
7193         * config/score/score.c: Likewise.
7194         * config/sh/sh.c: Likewise.
7195         * config/sparc/sparc.c: Likewise.
7196         * config/spu/spu.c: Likewise.
7197         * config/stormy16/stormy16.c: Likewise.
7198         * config/tilegx/tilegx.c: Likewise.
7199         * config/tilepro/tilepro.c: Likewise.
7200         * config/v850/v850.c: Likewise.
7201         * config/vax/vax.c: Likewise.
7202         * config/xtensa/xtensa.c: Likewise.
7204 2014-06-02  Jeff Law  <law@redhat.com>
7206         PR rtl-optimization/61094
7207         * ree.c (combine_reaching_defs): Do not reextend an insn if it
7208         was marked as do_no_reextend.  If a copy is needed to eliminate
7209         an extension, then mark it as do_not_reextend.
7211 2014-06-02  Marcus Shawcroft  <marcus.shawcroft@arm.com>
7213         * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
7215 2014-06-02  Richard Henderson  <rth@redhat.com>
7217         PR target/61336
7218         * config/alpha/alpha.c (print_operand_address): Allow symbolic
7219         addresses inside asms.  Use output_operand_lossage instead of
7220         gcc_unreachable.
7222 2014-06-02  Uros Bizjak  <ubizjak@gmail.com>
7224         PR target/61239
7225         * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
7226         GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
7228 2014-06-02  Tom de Vries  <tom@codesourcery.com>
7230         * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
7231         case that x has VOIDmode.
7233 2014-06-02  Bernd Schmidt  <bernds@codesourcery.com>
7235         * varasm.c (copy_constant): Delete function.
7236         (build_constant_desc): Don't call it.
7238 2014-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7240         PR target/61154
7241         * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
7242         * config/arm/arm.md (mov64 splitter): Replace const_double_operand
7243         with immediate_operand.
7245 2014-06-02  Andreas Schwab  <schwab@suse.de>
7247         * config/ia64/ia64.c
7248         (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
7249         pending_data_specs first.
7251 2014-06-02  Richard Biener  <rguenther@suse.de>
7253         PR tree-optimization/61378
7254         * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
7255         valueized_anything.
7257 2014-06-01  Uros Bizjak  <ubizjak@gmail.com>
7259         * config/i386/constraints.md (Bw): Rename from 'w'.
7260         (Bz): Rename from 'z'.
7261         * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
7263 2014-06-01  Kai Tietz  <ktietz@redhat.com>
7265         PR target/61377
7266         * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
7267         * config/i386/i386.md (sibcall_insn_operand): Use Bs
7268         instead of m constraint.
7270 2014-05-31  Andreas Schwab  <schwab@linux-m68k.org>
7272         * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
7273         a separate alternative where the scratch operand 2 is marked as
7274         early clobber.
7276 2014-05-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
7278         * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
7279         (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
7280         (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
7281         and __builtins_arm_get_fpscr.
7282         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
7283         __builtins_arm_get_fpscr.
7284         (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
7285         __builtins_arm_ldfpscr.
7286         (arm_atomic_assign_expand_fenv): New function.
7287         * config/arm/vfp.md (set_fpscr): New pattern.
7288         (get_fpscr) : Likewise.
7289         * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
7290         VUNSPEC_SET_FPSCR.
7291         * doc/extend.texi (AARCH64 Built-in Functions) : Document
7292         __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
7294 2014-05-30  Jakub Jelinek  <jakub@redhat.com>
7296         * asan.c (report_error_func): Add SLOW_P argument, use
7297         BUILT_IN_ASAN_*_N if set.
7298         (build_check_stmt): Likewise.
7299         (instrument_derefs): If T has insufficient alignment,
7300         force same handling as for odd sizes.
7302         * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
7303         BUILT_IN_ASAN_REPORT_STORE_N): New.
7304         * asan.c (struct asan_mem_ref): Change access_size type to
7305         HOST_WIDE_INT.
7306         (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
7307         update_mem_ref_hash_table): Likewise.
7308         (asan_mem_ref_hasher::hash): Hash in a HWI.
7309         (report_error_func): Change size_in_bytes argument to HWI.
7310         Use *_N builtins if size_in_bytes is larger than 16 or not power of
7311         two.
7312         (build_shadow_mem_access): New function.
7313         (build_check_stmt): Use it.  Change size_in_bytes argument to HWI.
7314         Handle size_in_bytes not power of two or larger than 16.
7315         (instrument_derefs): Don't give up if size_in_bytes is not
7316         power of two or is larger than 16.
7318 2014-05-30  Kai Tietz  <ktietz@redhat.com>
7320         PR target/60104
7321         * config/i386/i386.c (x86_output_mi_thunk): Add memory case
7322         for sibling-tail-calls.
7323         * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
7324         to its use.
7325         * config/i386/predicates.md (sibcall_memory_operand): New predicate.
7326         (sibcall_insn_operand): Add check for sibcall_memory_operand.
7328 2014-05-30  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
7330         * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
7331         * config/avr/avr-tables.opt: Regenerate.
7332         * config/avr/t-multilib: Regenerate.
7333         * doc/avr-mmcu.texi: Regenerate.
7335 2014-05-30  Ian Lance Taylor  <iant@google.com>
7337         * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
7338         target("sse").
7340 2014-05-30  Tom de Vries  <tom@codesourcery.com>
7342         * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
7343         Redefine as true.
7345 2014-05-30  Tom de Vries  <tom@codesourcery.com>
7347         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
7348         * lra.c (initialize_lra_reg_info_element): Add init of
7349         actual_call_used_reg_set field.
7350         (lra): Call lra_create_live_ranges before lra_inheritance for
7351         -fuse-caller-save.
7352         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
7353         -fuse-caller-save.
7354         * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
7355         instead of call_used_reg_set for -fuse-caller-save.
7356         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
7358 2014-05-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7360         * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
7361         to mov_imm.
7362         * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
7364 2014-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
7366         * ira.c (ira_get_dup_out_num): Check for output operands at
7367         the start of the loop.  Handle cases where an included alternative
7368         follows an excluded one.
7370 2014-05-29  Mike Stump  <mikestump@comcast.net>
7372         PR debug/61352
7373         * collect2.c (maybe_run_lto_and_relink): Be sure to always run
7374         post ld passes when lto is used.
7376 2014-05-29  Vladimir Makarov  <vmakarov@redhat.com>
7378         PR rtl-optimization/61325
7379         * lra-constraints.c (process_address): Rename to process_address_1.
7380         (process_address): New function.
7382 2014-05-29  Alan Lawrence  <alan.lawrence@arm.com>
7384         * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
7385         TYPES_BINOPV): New static data.
7386         * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
7387         New builtin.
7388         * config/aarch64/aarch64-simd.md (aarch64_ext,
7389         aarch64_im_lane_boundsi): New patterns.
7390         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
7391         patterns for EXT.
7392         (aarch64_evpc_ext): New function.
7394         * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
7396         * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
7397         vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
7398         vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
7399         vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
7400         vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
7402 2014-05-29  Tom de Vries  <tom@codesourcery.com>
7404         * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
7406 2014-05-29  Richard Earnshaw <rearnsha@arm.com>
7407             Richard Sandiford  <rdsandiford@googlemail.com>
7409         * arm/iterators.md (shiftable_ops): New code iterator.
7410         (t2_binop0, arith_shift_insn): New code attributes.
7411         * arm/predicates.md (shift_nomul_operator): New predicate.
7412         * arm/arm.md (insn_enabled): Delete.
7413         (enabled): Remove insn_enabled test.
7414         (*arith_shiftsi): Delete.  Replace with ...
7415         (*<arith_shift_insn>_multsi): ... new pattern.
7416         (*<arith_shift_insn>_shiftsi): ... new pattern.
7417         * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
7419 2014-05-29  Radovan Obradovic  <robradovic@mips.com>
7420             Tom de Vries  <tom@codesourcery.com>
7422         * config/mips/mips.h (POST_CALL_TMP_REG): Define.
7423         * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
7424         clobber.
7425         (mips_split_call): Use POST_CALL_TMP_REG.
7426         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
7428 2014-05-29  Tom de Vries  <tom@codesourcery.com>
7430         * final.c (collect_fn_hard_reg_usage): Guard variable declaration
7431         with #ifdef STACK_REGS.
7433 2014-05-28  Jan Hubicka  <hubicka@ucw.cz>
7435         * varasm.c (get_variable_section): Walk aliases.
7436         (place_block_symbol): Walk aliases.
7438 2014-05-28  Tom de Vries  <tom@codesourcery.com>
7440         Revert:
7441         2014-05-28  Tom de Vries  <tom@codesourcery.com>
7443         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
7444         * lra.c (initialize_lra_reg_info_element): Add init of
7445         actual_call_used_reg_set field.
7446         (lra): Call lra_create_live_ranges before lra_inheritance for
7447         -fuse-caller-save.
7448         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
7449         -fuse-caller-save.
7450         * lra-constraints.c (need_for_call_save_p): Use
7451         actual_call_used_reg_set instead of call_used_reg_set for
7452         -fuse-caller-save.
7453         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
7455 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
7457         * doc/md.texi: Document that the % constraint character must
7458         be at the beginning of the string.
7459         * genoutput.c (validate_insn_alternatives): Check that '=',
7460         '+' and '%' only appear at the beginning of a constraint.
7461         * ira.c (commutative_constraint_p): Delete.
7462         (ira_get_dup_out_num): Expect the '%' commutativity marker to be
7463         at the start of the string.
7464         * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
7465         duplicate '='s.
7466         * config/arm/neon.md (bicdi3_neon): Likewise.
7467         * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
7468         (slt_si, sltu_si): Likewise.
7469         * config/vax/vax.md (sbcdi3): Likewise.
7470         * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
7471         * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
7472         (mul64): Move '%' to beginning of constraint.
7473         * config/arm/arm.md (*xordi3_insn): Likewise.
7474         * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
7475         (xorsi3): Likewise.
7477 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
7479         * doc/md.texi: Document the restrictions on the "enabled" attribute.
7481 2014-05-28  Jason Merrill  <jason@redhat.com>
7483         PR c++/47202
7484         * cgraph.h (symtab_node::get_comdat_group_id): New.
7485         * cgraphunit.c (analyze_functions): Call it.
7486         * symtab.c (dump_symtab_node): Likewise.
7487         * tree.c (decl_comdat_group_id): New.
7488         * tree.h: Declare it.
7489         * lto-streamer-out.c (write_symbol): Use it.
7490         * trans-mem.c (ipa_tm_create_version_alias): Likewise.
7492 2014-05-28  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
7494         PR bootstrap/PR61146
7495         * wide-int.cc: Do not include longlong.h when compiling with clang.
7497 2014-05-28  Richard Biener  <rguenther@suse.de>
7499         * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
7500         * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
7501         (vrp_visit_assignment_or_call): Print less vertical space.
7502         (vrp_visit_stmt): Likewise.
7503         (vrp_visit_phi_node): Likewise.  For a PHI argument with
7504         VR_VARYING range consider recording it as copy.
7506 2014-05-28  Richard Biener  <rguenther@suse.de>
7508         Revert
7509         2014-05-28  Richard Biener  <rguenther@suse.de>
7511         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
7513 2014-05-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7515         * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
7516         sufficiently aligned and an offset is used at the same time.
7517         (expand_expr_real_1): Likewise.
7519 2014-05-28  Richard Biener  <rguenther@suse.de>
7521         PR middle-end/61045
7522         * fold-const.c (fold_comparison): When folding
7523         X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
7524         the sign of the remaining constant operand stays the same.
7526 2014-05-28  Kaushik Phatak  <kaushik.phatak@kpit.com>
7528         * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
7529         __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
7530         (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
7531         to the assembler.
7532         (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
7533         * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
7534         (m32bit-doubles) Likewise.
7535         * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
7536         * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
7537         option for RL78.
7539 2014-05-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7541         * configure.ac ($gcc_cv_ld_clearcap): New test.
7542         * configure: Regenerate.
7543         * config.in: Regenerate.
7544         * config/sol2.opt (mclear-hwcap): New option.
7545         * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
7546         * config/sol2-clearcap.map: Moved here from
7547         testsuite/gcc.target/i386/clearcap.map.
7548         * config/sol2-clearcapv2.map: Move here from
7549         gcc.target/i386/clearcapv2.map.
7550         * config/t-sol2 (install): Depend on install-clearcap-map.
7551         (install-clearcap-map): New target.
7552         * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
7553         -mclear-hwcap.
7555 2014-05-28  Richard Biener  <rguenther@suse.de>
7557         * hwint.h (*_HALF_WIDE_INT*): Move to ...
7558         * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
7559         ... here and remove the rest.
7560         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
7562 2014-05-28  Richard Biener  <rguenther@suse.de>
7564         PR tree-optimization/61335
7565         * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
7566         new range fails, drop to varying.
7568 2014-05-28  Olivier Hainque  <hainque@adacore.com>
7570         * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
7571         (CPP_SPEC): Add entry for -mcpu=8548.
7572         * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
7573         * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
7575 2014-05-28  Tom de Vries  <tom@codesourcery.com>
7577         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
7578         * lra.c (initialize_lra_reg_info_element): Add init of
7579         actual_call_used_reg_set field.
7580         (lra): Call lra_create_live_ranges before lra_inheritance for
7581         -fuse-caller-save.
7582         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
7583         -fuse-caller-save.
7584         * lra-constraints.c (need_for_call_save_p): Use
7585         actual_call_used_reg_set instead of call_used_reg_set for
7586         -fuse-caller-save.
7587         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
7589 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
7590             Tom de Vries  <tom@codesourcery.com>
7592         * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
7593         to gccoptlist.
7594         (@item -fuse-caller-save): New item.
7596 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
7597             Tom de Vries  <tom@codesourcery.com>
7599         * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
7600         OPT_fuse_caller_save.
7602 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
7603             Tom de Vries  <tom@codesourcery.com>
7605         * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
7606         * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
7607         get_call_reg_set_usage.
7608         * resource.c (mark_set_resources, mark_target_live_regs): Use
7609         get_call_reg_set_usage.
7610         * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
7611         field.
7612         (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
7613         * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
7614         Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
7615         * ira-build.c (ira_create_allocno): Init
7616         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
7617         (create_cap_allocno, propagate_allocno_info)
7618         (propagate_some_info_from_allocno)
7619         (copy_info_to_removed_store_destinations): Handle
7620         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
7621         * ira-costs.c (ira_tune_allocno_costs): Use
7622         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
7624 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
7625             Tom de Vries  <tom@codesourcery.com>
7627         * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
7628         and function_used_regs_valid fields.
7629         * final.c: Move include of hard-reg-set.h to before rtl.h to declare
7630         find_all_hard_reg_sets.
7631         (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
7632         (get_call_reg_set_usage): New function.
7633         (rest_of_handle_final): Use collect_fn_hard_reg_usage.
7634         * regs.h (get_call_reg_set_usage): Declare.
7636 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
7638         PR libgcc/61152
7639         * config/dbx.h (License): Add Runtime Library Exception.
7640         * config/newlib-stdint.h (License): Same.
7641         * config/rtems.h (License): Same
7642         * config/initfini-array.h (License): Same
7643         * config/v850/v850.h (License): Same.
7644         * config/v850/v850-opts.h (License): Same
7645         * config/v850/rtems.h (License): Same.
7647 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
7649         PR target/61044
7650         * doc/extend.texi (Local Labels): Note that label differences are
7651         not supported for AVR.
7653 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
7654             Olivier Hainque  <hainque@adacore.com>
7656         * rtl.h (set_for_reg_notes): Declare.
7657         * emit-rtl.c (set_for_reg_notes): New function.
7658         (set_unique_reg_note): Use it.
7659         * optabs.c (add_equal_note): Likewise
7661 2014-05-27  Andrew Pinski  <apinski@cavium.com>
7663         * config/aarch64/aarch64.md (stack_protect_set_<mode>):
7664         Use <w> for the register in assembly template.
7665         (stack_protect_test): Use the mode of operands[0] for the result.
7666         (stack_protect_test_<mode>): Use <w> for the register
7667         in assembly template.
7669 2014-05-27  DJ Delorie  <dj@redhat.com>
7671         * config/rx/rx.c (add_vector_labels): New.
7672         (rx_output_function_prologue): Call it.
7673         (rx_handle_func_attribute): Don't require empty arguments.
7674         (rx_handle_vector_attribute): New.
7675         (rx_attribute_table): Add "vector" attribute.
7676         * doc/extend.texi (interrupt, vector): Document new/changed
7677         RX-specific attributes.
7679         * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
7681 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
7683         * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
7684         predicate to detect a negative quotient.
7686 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
7688         * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
7689         to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
7690         Add X - Y CMP 0 to X CMP Y transformation.
7691         (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
7693 2014-05-27  Segher Boessenkool  <segher@kernel.crashing.org>
7695         * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
7696         before printing.
7698 2014-05-27  Steve Ellcey  <sellcey@mips.com>
7700         * config/mips/mips.c: Add include of cgraph.h.
7702 2014-05-27  Richard Biener  <rguenther@suse.de>
7704         * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
7706 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
7708         PR libgcc/61152
7709         * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
7710         * config/arm/arm-cores.def (License): Same.
7711         * config/arm/arm-opts.h (License): Same.
7712         * config/arm/aout.h (License): Same.
7713         * config/arm/bpabi.h (License): Same.
7714         * config/arm/elf.h (License): Same.
7715         * config/arm/linux-elf.h (License): Same.
7716         * config/arm/linux-gas.h (License): Same.
7717         * config/arm/netbsd-elf.h (License): Same.
7718         * config/arm/uclinux-eabi.h (License): Same.
7719         * config/arm/uclinux-elf.h (License): Same.
7720         * config/arm/vxworks.h (License): Same.
7722 2014-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7724         * config/arm/neon.md (neon_bswap<mode>): New pattern.
7725         * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
7726         (arm_init_neon_builtins): Handle NEON_BSWAP.
7727         Define required type nodes.
7728         (arm_expand_neon_builtin): Handle NEON_BSWAP.
7729         (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
7730         * config/arm/arm_neon_builtins.def (bswap): Define builtins.
7731         * config/arm/iterators.md (VDQHSD): New mode iterator.
7733 2014-05-27  Richard Biener  <rguenther@suse.de>
7735         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
7736         Try using literal operands when comparing value-ranges failed.
7738 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
7740         * ira.c (commutative_operand): Adjust for change to recog_data.
7741         [Missing from previous commit.]
7743 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
7745         * system.h (TEST_BIT): New macro.
7746         * recog.h (alternative_mask): New type.
7747         (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
7748         (recog_data_d): Replace alternative_enabled_p array with
7749         enabled_alternatives.
7750         (target_recog): New structure.
7751         (default_target_recog, this_target_recog): Declare.
7752         (get_enabled_alternatives, recog_init): Likewise.
7753         * recog.c (default_target_recog, this_target_recog): New variables.
7754         (get_enabled_alternatives): New function.
7755         (extract_insn): Use it.
7756         (recog_init): New function.
7757         (preprocess_constraints, constrain_operands): Adjust for change to
7758         recog_data.
7759         * postreload.c (reload_cse_simplify_operands): Likewise.
7760         * reload.c (find_reloads): Likewise.
7761         * ira-costs.c (record_reg_classes): Likewise.
7762         * ira-lives.c (single_reg_class): Likewise.  Fix bug in which
7763         all alternatives after a disabled one would be skipped.
7764         (ira_implicitly_set_insn_hard_regs): Likewise.
7765         * ira.c (ira_setup_alts): Adjust for change to recog_data.
7766         * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
7767         with enabled_alternatives.
7768         * lra.c (free_insn_recog_data): Update accordingly.
7769         (lra_update_insn_recog_data): Likewise.
7770         (lra_set_insn_recog_data): Likewise.  Use get_enabled_alternatives.
7771         * lra-constraints.c (process_alt_operands): Likewise.  Handle
7772         only_alternative as part of the enabled mask.
7773         * target-globals.h (this_target_recog): Declare.
7774         (target_globals): Add a recog field.
7775         (restore_target_globals): Restore this_target_recog.
7776         * target-globals.c: Include recog.h.
7777         (default_target_globals): Initialize recog field.
7778         (save_target_globals): Likewise.
7779         * reginfo.c (reinit_regs): Call recog_init.
7780         * toplev.c (backend_init_target): Likewise.
7782 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
7784         * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
7785         rather than any named insn's code.
7787 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
7789         PR libgcc/61152
7790         * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
7791         * config/arm/arm-cores.def (License): Same.
7793 2014-05-26  Jan Hubicka  <hubicka@ucw.cz>
7795         * tree.h (decl_comdat_group): Declare.
7796         * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
7797         * tree.c (decl_comdat_group): Here.
7799 2014-05-26  Richard Sandiford  <r.sandiford@uk.ibm.com>
7801         PR rtl-optimization/61222
7802         * combine.c (simplify_shift_const_1): When moving a PLUS outside
7803         the shift, truncate the PLUS operand to the result mode.
7805 2014-05-26  Uros Bizjak  <ubizjak@gmail.com>
7807         PR target/61271
7808         * config/i386/i386.c (ix86_rtx_costs)
7809         <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
7810         Fix condition.
7812 2014-05-26  Martin Jambor  <mjambor@suse.cz>
7814         * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
7815         subreg uses.
7817 2014-05-26  Richard Biener  <rguenther@suse.de>
7819         * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
7820         wi::int_traits <long long>, wi::int_traits <unsigned long long>):
7821         Provide specializations.
7822         (wi::int_traits <HOST_WIDE_INT>,
7823         wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
7825 2014-05-26  Alan Modra  <amodra@gmail.com>
7827         PR target/61098
7828         * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
7829         params and return a bool.  Remove dead code.  Update comment.
7830         Assert we have a const_int source.  Remove bogus code from
7831         32-bit HWI days.  Move !TARGET_POWERPC64 handling, and correct
7832         handling of constants > 2G and reg_equal note, from..
7833         (rs6000_emit_set_long_const): ..here.  Remove unneeded param and
7834         return value.  Update comment.  If we can, use a new pseudo
7835         for intermediate calculations.
7836         * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
7837         prototype.
7838         * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
7839         call to rs6000_emit_set_const in splitter.
7840         (movdi_internal64+2, +3): Likewise.
7842 2014-05-26  Richard Biener  <rguenther@suse.de>
7844         * system.h: Define __STDC_FORMAT_MACROS before
7845         including inttypes.h.
7846         * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
7847         HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
7848         HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
7849         HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
7850         HOST_WIDEST_INT_C): Remove.
7851         (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
7852         if C99 inttypes.h is not available.
7853         * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
7854         * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
7855         * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
7856         * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
7857         * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
7858         (struct output_info): Likewise.
7859         (print_statistics): Adjust.
7860         (dump_bitmap_statistics): Likewise.
7861         * bt-load.c (migrate_btr_defs): Print with PRId64.
7862         * cfg.c (dump_edge_info, dump_bb_info): Likewise.
7863         (MAX_SAFE_MULTIPLIER): Adjust.
7864         * cfghooks.c (dump_bb_for_graph): Print with PRId64.
7865         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
7866         dump_cgraph_node): Likewise.
7867         * final.c (dump_basic_block_info): Likewise.
7868         * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
7869         * gcov.c (format_gcov): Likewise.
7870         * ipa-cp.c (good_cloning_opportunity_p): Likewise.  Use int64_t
7871         for calculation.
7872         (get_clone_agg_value): Use HOST_WIDE_INT for offset.
7873         * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
7874         (inline_small_functions, dump_overall_stats, dump_inline_stats):
7875         Use PRId64 for dumping.
7876         * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
7877         * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
7878         (add_allocno_hard_regs): Adjust.
7879         * loop-doloop.c (doloop_modify): Print using PRId64.
7880         * loop-iv.c (inverse): Compute in uint64_t.
7881         (determine_max_iter, iv_number_of_iterations): Likewise.
7882         * loop-unroll.c (decide_peel_completely, decide_peel_simple):
7883         Print using PRId64.
7884         * lto-streamer-out.c (write_symbol): Use uint64_t.
7885         * mcf.c (CAP_INFINITY): Use int64_t maximum.
7886         (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
7887         find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
7888         * modulo-sched.c (const_iteration_count): Use int64_t.
7889         (sms_schedule): Dump using PRId64.
7890         * predict.c (dump_prediction): Likewise.
7891         * pretty-print.h (pp_widest_integer): Remove.
7892         * profile.c (get_working_sets, is_edge_inconsistent,
7893         is_inconsistent, read_profile_edge_counts): Dump using PRId64.
7894         * tree-pretty-print.c (pp_double_int): Remove case handling
7895         HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
7896         * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
7897         and adjust users.
7898         (pass_optimize_bswap::execute): Remove restriction on hosts.
7899         * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
7900         * tree-streamer-out.c (streamer_write_tree_header): Likewise.
7901         * tree.c (widest_int_cst_value): Remove.
7902         * tree.h (widest_int_cst_value): Likewise.
7903         * value-prof.c (dump_histogram_value): Print using PRId64.
7904         * gengtype.c (main): Also inject int64_t.
7905         * ggc-page.c (struct max_alignment): Use int64_t.
7906         * alloc-pool.c (struct allocation_object_def): Likewise.
7907         * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
7908         for computation.
7909         * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
7910         * doc/tm.texi: Regenerated.
7911         * gengtype-lex.l (IWORD): Handle [u]int64_t.
7912         * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
7913         * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
7914         mmix_output_register_setting): Use [u]int64_t in prototypes.
7915         * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
7916         mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
7917         mmix_output_octa, mmix_output_shifted_value): Adjust.
7918         (mmix_intval): Adjust.  Remove unreachable case.
7919         * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
7921 2014-05-26  Richard Biener  <rguenther@suse.de>
7923         * configure.ac: Drop __int64 type check.  Insist that we
7924         found uint64_t and int64_t.
7925         * hwint.h (HOST_BITS_PER___INT64): Remove.
7926         (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
7927         (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
7928         (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
7929         (HOST_WIDEST_FAST_INT): Remove __int64 case.
7930         * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
7931         for dst_q_src_df_rms_cdt.
7932         * configure: Regenerate.
7933         * config.in: Likewise.
7935 2014-05-26  Michael Tautschnig  <mt@debian.org>
7937         PR target/61249
7938         * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
7939         __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
7941 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
7943         PR rtl-optimization/61278
7944         * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
7946 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
7948         PR rtl-optimization/61220
7949         Part of PR rtl-optimization/61225
7950         * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
7951         insn; skip split_edge for a block with only one successor.
7953 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
7955         * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
7956         for variables.
7958 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
7960         * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
7961         (update_vtable_references): New function.
7962         (function_and_variable_visibility): Rewrite also vtable initializers.
7963         * varpool.c (cgraph_variable_initializer_availability): Remove assert.
7965 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
7967         * ggc.h (ggc_grow): New function.
7968         * ggc-none.c (ggc_grow): New function.
7969         * ggc-page.c (ggc_grow): Likewise.
7971 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
7973         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
7974         address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
7975         comdat_can_be_unshared_p, cgraph_externally_visible_p,
7976         varpool_externally_visible_p, can_replace_by_local_alias,
7977         update_visibility_by_resolution_info, function_and_variable_visibility,
7978         pass_data_ipa_function_and_variable_visibility,
7979         make_pass_ipa_function_and_variable_visibility,
7980         whole_program_function_and_variable_visibility,
7981         pass_data_ipa_whole_program_visibility,
7982         make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
7983         * cgraph.h (cgraph_local_node_p): Declare.
7984         * ipa-visibility.c: New file.
7985         * Makefile.in (OBJS): Add ipa-visiblity.o
7987 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
7989         * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
7990         that var decl is available.
7992 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
7994         * tree-core.h (tree_decl_with_vis): Replace comdat_group by
7995         symtab_node pointer.
7996         * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
7997         (find_decls_types_r): Do not walk COMDAT_GROUP.
7998         * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
7999         * varasm.c (make_decl_one_only): Use set_comdat_group;
8000         create node if needed.
8001         * ipa-inline-transform.c (save_inline_function_body): Update
8002         way we decl->symtab mapping.
8003         * symtab.c (symtab_hash, hash_node, eq_node
8004         symtab_insert_node_to_hashtable): Remove.
8005         (symtab_register_node): Update.
8006         (symtab_unregister_node): Update.
8007         (symtab_get_node): Reimplement as inline function.
8008         (symtab_add_to_same_comdat_group): Update.
8009         (symtab_dissolve_same_comdat_group_list): Update.
8010         (dump_symtab_base): Update.
8011         (verify_symtab_base): Update.
8012         (symtab_make_decl_local): Update.
8013         (fixup_same_cpp_alias_visibility): Update.
8014         (symtab_nonoverwritable_alias): Update.
8015         * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
8016         * ipa.c (update_visibility_by_resolution_info): UPdate.
8017         * bb-reorder.c: Include cgraph.h
8018         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
8019         with comdat groups.
8020         * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
8021         * cgraph.c (cgraph_get_create_node): Update.
8022         * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
8023         and comdat_group_.
8024         (symtab_get_node): Make inline.
8025         (symtab_insert_node_to_hashtable): Remove.
8026         (symtab_can_be_discarded): Update.
8027         (decl_comdat_group): New function.
8028         * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
8029         Update.
8030         * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
8031         comdat group name.
8032         (read_comdat_group): New function.
8033         (input_node, input_varpool_node): Use it.
8034         * trans-mem.c (ipa_tm_create_version_alias): Update code creating
8035         comdat groups.
8036         * mips.c (mips_start_unique_function): Likewise.
8037         (ix86_code_end): Likewise.
8038         (rs6000_code_end): Likweise.
8039         * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
8041 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
8043         * gengtype-state.c (fatal_reading_state): Bring offline.
8044         * optabs.c (widening_optab_handler): Bring offline.
8045         * optabs.h (widening_optab_handler): Likewise.
8046         * final.c (get_attr_length_1): Likewise.
8048 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
8050         * sched-int.h (sd_iterator_cond): Manually tail recurse.
8052 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
8054         * config/rs6000/440.md (ppc440-integer): Include shift without dot.
8055         (ppc440-compare): Include shift with dot.
8056         * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
8057         * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
8058         without dot.
8059         * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
8060         without dot.
8061         (e6500_sfx2): Include it.
8062         * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
8063         *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
8064         *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
8065         andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
8066         *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
8067         *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
8068         *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
8069         *lshiftrt_internal1le, *lshiftrt_internal1be,
8070         *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
8071         *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
8072         *rotldi3_internal10le, *rotldi3_internal10be,
8073         *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
8074         ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
8075         ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
8076         *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
8077         define_insns): Use type "shift" in the appropriate alternatives.
8079 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
8081         * config/rs6000/rs6000.md (type): Add "logical".  Delete
8082         "fast_compare".
8083         (dot): Adjust comment.
8084         (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
8085         *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
8086         *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
8087         anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
8088         *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
8089         *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
8090         *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
8091         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
8093         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
8094         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
8095         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
8096         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
8097         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
8098         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
8099         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
8100         * config/rs6000/8540.md (ppc8540_su): Adjust.
8101         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
8102         cell-cmp-microcoded): Adjust.
8103         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
8104         * config/rs6000/e500mc.md (e500mc_su): Adjust.
8105         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
8106         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
8107         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
8108         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
8109         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
8110         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
8111         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
8112         Adjust.
8113         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
8114         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
8115         Adjust.  Adjust comment.
8116         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
8117         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
8119 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
8121         * config/rs6000/rs6000.md (type): Add "add".
8122         (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
8123         *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
8124         define_insns): Use it.
8125         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
8127         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
8128         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
8129         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
8130         * config/rs6000/601.md (ppc601-integer): Adjust.
8131         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
8132         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
8133         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
8134         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
8135         * config/rs6000/8540.md (ppc8540_su): Adjust.
8136         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
8137         cell-cmp-microcoded): Adjust.
8138         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
8139         * config/rs6000/e500mc.md (e500mc_su): Adjust.
8140         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
8141         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
8142         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
8143         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
8144         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
8145         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
8146         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
8147         Adjust.
8148         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
8149         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
8150         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
8151         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
8153 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
8155         * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
8156         "delayed_compare", "var_delayed_compare".
8157         (var_shift): New attribute.
8158         (cell_micro): Adjust.
8159         (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
8160         *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
8161         rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
8162         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
8163         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
8164         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
8165         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
8166         *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
8167         *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
8168         *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
8169         *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
8170         rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
8171         *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
8172         *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
8173         *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
8174         *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
8175         *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
8176         *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
8177         *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
8178         *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
8179         *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
8180         *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
8181         *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
8182         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
8183         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
8185         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
8186         * config/rs6000/440.md (ppc440-integer): Adjust.
8187         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
8188         * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
8189         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
8190         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
8191         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
8192         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
8193         * config/rs6000/8540.md (ppc8540_su): Adjust.
8194         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
8195         cell-cmp-microcoded): Adjust.
8196         * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
8197         * config/rs6000/e500mc.md (e500mc_su): Adjust.
8198         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
8199         e500mc64_delayed): Adjust.
8200         * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
8201         * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
8202         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
8203         * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
8204         * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
8205         * config/rs6000/power6.md (power6-shift, power6-var-rotate,
8206         power6-delayed-compare, power6-var-delayed-compare): Adjust.
8207         * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
8208         * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
8209         Adjust comment.
8210         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
8211         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
8213 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
8215         * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv".  Add "div".
8216         (bits): New mode_attr.
8217         (idiv_ldiv): Delete mode_attr.
8218         (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
8219         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
8220         rs6000_adjust_priority, is_nonpipeline_insn,
8221         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
8223         * config/rs6000/40x.md (ppc403-idiv): Adjust.
8224         * config/rs6000/440.md (ppc440-idiv): Adjust.
8225         * config/rs6000/476.md (ppc476-idiv): Adjust.
8226         * config/rs6000/601.md (ppc601-idiv): Adjust.
8227         * config/rs6000/603.md (ppc603-idiv): Adjust.
8228         * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
8229         ppc620-ldiv): Adjust.
8230         * config/rs6000/7450.md (ppc7450-idiv): Adjust.
8231         * config/rs6000/7xx.md (ppc750-idiv): Adjust.
8232         * config/rs6000/8540.md (ppc8540_divide): Adjust.
8233         * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
8234         * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
8235         * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
8236         * config/rs6000/e500mc.md (e500mc_divide): Adjust.
8237         * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
8238         * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
8239         * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
8240         * config/rs6000/mpc.md (mpccore-idiv): Adjust.
8241         * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
8242         * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
8243         * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
8244         * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
8245         * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
8246         * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
8247         * config/rs6000/titan.md (titan_fxu_div): Adjust.
8249 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
8251         * config/rs6000/rs6000.md (type): Delete "insert_word",
8252         "insert_dword".  Add "insert".
8253         (size): Update comment.
8254         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
8255         insn_must_be_first_in_group): Adjust.
8256         (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
8257         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
8258         *insvsi_internal6, insvdi_internal): Adjust.
8260         * config/rs6000/40x.md (ppc403-integer): Adjust.
8261         * config/rs6000/440.md (ppc440-integer): Adjust.
8262         * config/rs6000/476.md (ppc476-simple-integer): Adjust.
8263         * config/rs6000/601.md (ppc601-integer): Adjust.
8264         * config/rs6000/603.md (ppc603-integer): Adjust.
8265         * config/rs6000/6xx.md (ppc604-integer): Adjust.
8266         * config/rs6000/7450.md (ppc7450-integer): Adjust.
8267         * config/rs6000/7xx.md (ppc750-integer): Adjust.
8268         * config/rs6000/8540.md (ppc8540_su): Adjust.
8269         * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
8270         * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
8271         * config/rs6000/e500mc.md (e500mc_su): Adjust.
8272         * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
8273         * config/rs6000/e5500.md (e5500_sfx): Adjust.
8274         * config/rs6000/e6500.md (e6500_sfx): Adjust.
8275         * config/rs6000/mpc.md (mpccore-integer): Adjust.
8276         * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
8277         * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
8278         * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
8279         * config/rs6000/power7.md (power7-integer): Adjust.
8280         * config/rs6000/power8.md (power8-1cyc): Adjust.
8281         * config/rs6000/rs64.md (rs64a-integer): Adjust.
8282         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
8284 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
8286         * config/rs6000/rs6000.md (type): Add "mul".  Delete "imul",
8287         "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
8288         (size): New attribute.
8289         (dot): New attribute.
8290         (cell_micro): Adjust.
8291         (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
8292         umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
8293         *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
8294         umuldi3_highpart): Adjust.
8295         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
8296         rs6000_adjust_priority, is_nonpipeline_insn,
8297         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
8299         * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
8300         ppc405-imul3): Adjust.
8301         * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
8302         * config/rs6000/476.md (ppc476-imul): Adjust.
8303         * config/rs6000/601.md (ppc601-imul): Adjust.
8304         * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
8305         * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
8306         ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
8307         * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
8308         * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
8309         Adjust.
8310         * config/rs6000/8540.md (ppc8540_multiply): Adjust.
8311         * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
8312         * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
8313         cell-imul): Adjust.
8314         * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
8315         * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
8316         * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
8317         * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
8318         * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
8319         * config/rs6000/mpc.md (mpccore-imul): Adjust.
8320         * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
8321         power4-lmul, power4-imul, power4-imul3): Adjust.
8322         * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
8323         power5-lmul, power5-imul, power5-imul3): Adjust.
8324         * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
8325         power6-lmul, power6-imul, power6-imul3): Adjust.
8326         * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
8327         * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
8329         * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
8330         rs64a-lmul): Adjust.
8331         * config/rs6000/titan.md (titan_imul): Adjust.
8333 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
8335         * config/rs6000/rs6000.md (type): Add new value "halfmul".
8336         (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
8337         *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
8338         *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
8339         *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
8340         *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
8341         * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
8342         * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
8343         * config/rs6000/476.md (ppc476-imul): Add type halfmul.
8344         * config/rs6000/titan.md: Delete nonsensical comment.
8345         (titan_imul): Add type imul3.
8346         (titan_mulhw): Remove type imul3; add type halfmul.
8348 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
8350         * config/rs6000/rs6000.md (type): Reorder, reformat.
8352 2014-05-23  Martin Jambor  <mjambor@suse.cz>
8354         PR tree-optimization/53787
8355         * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
8356         * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
8357         analysis_done, update all uses.
8358         * ipa-prop.c: Include domwalk.h
8359         (param_analysis_info): Removed.
8360         (param_aa_status): New type.
8361         (ipa_bb_info): Likewise.
8362         (func_body_info): Likewise.
8363         (ipa_get_bb_info): New function.
8364         (aa_overwalked): Likewise.
8365         (find_dominating_aa_status): Likewise.
8366         (parm_bb_aa_status_for_bb): Likewise.
8367         (parm_preserved_before_stmt_p): Changed to use new param AA info.
8368         (load_from_unmodified_param): Accept func_body_info as a parameter
8369         instead of parms_ainfo.
8370         (parm_ref_data_preserved_p): Changed to use new param AA info.
8371         (parm_ref_data_pass_through_p): Likewise.
8372         (ipa_load_from_parm_agg_1): Likewise.  Update callers.
8373         (compute_complex_assign_jump_func): Changed to use new param AA info.
8374         (compute_complex_ancestor_jump_func): Likewise.
8375         (ipa_compute_jump_functions_for_edge): Likewise.
8376         (ipa_compute_jump_functions): Removed.
8377         (ipa_compute_jump_functions_for_bb): New function.
8378         (ipa_analyze_indirect_call_uses): Likewise, moved variable
8379         declarations down.
8380         (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
8381         and info, moved variable declarations down.
8382         (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
8383         node and info.
8384         (ipa_analyze_stmt_uses): Likewise.
8385         (ipa_analyze_params_uses): Removed.
8386         (ipa_analyze_params_uses_in_bb): New function.
8387         (ipa_analyze_controlled_uses): Likewise.
8388         (free_ipa_bb_info): Likewise.
8389         (analysis_dom_walker): New class.
8390         (ipa_analyze_node): Handle node-specific forbidden analysis,
8391         initialize and free func_body_info, use dominator walker.
8392         (ipcp_modif_dom_walker): New class.
8393         (ipcp_transform_function): Create and free func_body_info, use
8394         ipcp_modif_dom_walker, moved a lot of functionality there.
8396 2014-05-23  Marek Polacek  <polacek@redhat.com>
8397             Jakub Jelinek  <jakub@redhat.com>
8399         * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
8400         * gcc.c (sanitize_spec_function): Likewise.
8401         * convert.c (convert_to_integer): Include "ubsan.h".  Add
8402         floating-point to integer instrumentation.
8403         * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
8404         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
8405         SANITIZE_NONDEFAULT.
8406         * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
8407         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
8408         BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
8409         * ubsan.c: Include "realmpfr.h" and "dfp.h".
8410         (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
8411         (ubsan_type_descriptor): Set tkind to 0xffff for types other than
8412         float/double/long double.
8413         (ubsan_instrument_float_cast): New function.
8414         * ubsan.h (ubsan_instrument_float_cast): Declare.
8416 2014-05-23 Jiong Wang  <jiong.wang@arm.com>
8418         * config/aarch64/predicates.md (aarch64_call_insn_operand): New
8419         predicate.
8420         * config/aarch64/constraints.md ("Ucs", "Usf"):  New constraints.
8421         * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
8422         Adjust for tailcalling through registers.
8423         * config/aarch64/aarch64.h (enum reg_class): New caller save
8424         register class.
8425         (REG_CLASS_NAMES): Likewise.
8426         (REG_CLASS_CONTENTS): Likewise.
8427         * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
8428         Allow tailcalling without decls.
8430 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
8432         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
8433         Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
8435         * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
8436         gsi, and variables v_* to v*.
8438 2014-05-23  Eric Botcazou  <ebotcazou@adacore.com>
8440         * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
8442 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
8444         * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
8445         * omp-low.c: Update accordingly.
8447         * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
8448         for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
8449         GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
8450         GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
8451         GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
8452         GF_OMP_TARGET_KIND_UPDATE.
8454         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
8455         Explicitly enumerate the expected region types.
8457 2014-05-23  Paul Eggert  <eggert@cs.ucla.edu>
8459         PR other/56955
8460         * doc/extend.texi (Function Attributes): Fix  __attribute__ ((malloc))
8461         documentation; the old documentation didn't clearly state the
8462         constraints on the contents of the pointed-to storage.
8464 2014-05-23  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
8466         Fix bootstrap error on ia64
8467         * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
8468         Return default value.
8470 2014-05-23  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8472         PR tree-optimization/54733
8473         * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
8474         (CMPNOP): Define.
8475         (find_bswap_or_nop_load): New.
8476         (find_bswap_1): Renamed to ...
8477         (find_bswap_or_nop_1): This. Also add support for memory source.
8478         (find_bswap): Renamed to ...
8479         (find_bswap_or_nop): This. Also add support for memory source and
8480         detection of bitwise operations equivalent to load in target
8481         endianness.
8482         (execute_optimize_bswap): Likewise. Also move its leading comment back
8483         in place and split statement transformation into ...
8484         (bswap_replace): This.
8486 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
8488         PR rtl-optimization/61215
8489         * lra-elelimination.c (lra_eliminate_regs_1): Don't use
8490         simplify_gen_subreg until final substitution.
8492 2014-05-23  Alan Modra  <amodra@gmail.com>
8494         PR target/61231
8495         * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
8496         * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
8497         Use "Y" constraint rather than "m".
8499 2014-05-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
8501         * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
8502         define.
8503         * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
8504         New function declaration.
8505         * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
8506         AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
8507         AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
8508         (aarch64_init_builtins) : Initialize builtins
8509         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
8510         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
8511         (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
8512         __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
8513         and __builtins_aarch64_set_fpsr.
8514         (aarch64_atomic_assign_expand_fenv): New function.
8515         * config/aarch64/aarch64.md (set_fpcr): New pattern.
8516         (get_fpcr) : Likewise.
8517         (set_fpsr) : Likewise.
8518         (get_fpsr) : Likewise.
8519         (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
8520          and UNSPECV_SET_FPSR.
8521         * doc/extend.texi (AARCH64 Built-in Functions) : Document
8522         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
8523         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
8525 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
8527         PR rtl-optimization/60969
8528         * ira-costs.c (record_reg_classes): Process NO_REGS for matching
8529         constraints.  Set up mem cost for NO_REGS case.
8531 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
8533         * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
8535 2012-05-22  Bernd Schmidt  <bernds@codesourcery.com>
8537         * config/darwin.c: Include "lto-section-names.h".
8538         (LTO_SEGMENT_NAME): Don't define.
8539         * config/i386/winnt.c: Include "lto-section-names.h".
8540         * lto-streamer.c: Include "lto-section-names.h".
8541         * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
8542         * lto-wrapper.c: Include "lto-section-names.h".
8543         (LTO_SECTION_NAME_PREFIX): Don't define.
8544         * lto-section-names.h: New file.
8545         * cgraphunit.c: Include "lto-section-names.h".
8547 2014-05-22  Peter Bergner  <bergner@vnet.ibm.com>
8549         * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
8551 2014-05-22  Richard Earnshaw  <rearnsha@arm.com>
8553         PR target/61208
8554         * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
8556 2014-05-22  Nick Clifton  <nickc@redhat.com>
8558         * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
8560 2014-05-22  Eric Botcazou  <ebotcazou@adacore.com>
8562         * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
8563         -> (T)A transformation to integer types.
8565 2014-05-22  Teresa Johnson  <tejohnson@google.com>
8567         * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
8568         (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
8569         (gcov_rewrite): Use gcov_nonruntime_assert.
8570         (gcov_open): Ditto.
8571         (gcov_write_words): Ditto.
8572         (gcov_write_length): Ditto.
8573         (gcov_read_words): Use gcov_nonruntime_assert, and remove
8574         gcc_assert from IN_LIBGCOV code.
8575         (gcov_read_summary): Use gcov_error to flag profile corruption.
8576         (gcov_sync): Use gcov_nonruntime_assert.
8577         (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
8578         (gcov_histo_index): Use gcov_nonruntime_assert.
8579         (static void gcov_histogram_merge): Ditto.
8580         (compute_working_sets): Ditto.
8581         * gcov-io.h (gcov_nonruntime_assert): Define.
8582         (gcov_error): Define for !IN_LIBGCOV
8584 2014-05-22  Richard Biener  <rguenther@suse.de>
8586         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
8587         BUILT_IN_REALLOC like BUILT_IN_STRDUP.
8588         (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
8589         and deallocation site.
8590         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
8591         Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
8592         passing through the incoming points-to set.
8593         (handle_lhs_call): Use flags argument instead of recomputing it.
8594         (find_func_aliases_for_call): Call handle_lhs_call with proper
8595         call return flags.
8597 2014-05-22  Jakub Jelinek  <jakub@redhat.com>
8599         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
8600         all padding bits in REAL_VALUE_TYPE are cleared.
8602 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
8604         Cleanup and improve multipass_dfa_lookahead_guard
8605         * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
8606         (core2i7_first_cycle_multipass_begin,)
8607         (core2i7_first_cycle_multipass_issue,)
8608         (core2i7_first_cycle_multipass_backtrack): Update signature.
8609         * config/ia64/ia64.c
8610         (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
8611         (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
8612         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
8613         hook definition.
8614         (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
8615         ia64_first_cycle_multipass_dfa_lookahead_guard_spec.  Update return
8616         values.
8617         * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
8618         return values.
8619         * doc/tm.texi: Regenerate.
8620         * doc/tm.texi.in
8621         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
8622         * haifa-sched.c (ready_try): Make signed to allow negative values.
8623         (rebug_ready_list_1): Update.
8624         (choose_ready): Simplify.
8625         (sched_extend_ready_list): Update.
8627 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
8629         Remove IA64 speculation tweaking flags
8630         * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
8631         speculation tuning flags.
8632         (msched-prefer-non-data-spec-insns,)
8633         (msched-prefer-non-control-spec-insns): Obsolete options.
8634         * haifa-sched.c (choose_ready): Remove handling of
8635         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
8636         * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
8637         and PREFER_NON_DATA_SPEC.
8638         * sel-sched.c (process_spec_exprs): Remove handling of
8639         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
8641 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
8643         Improve scheduling debug output
8644         * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
8645         (advance_one_cycle): Update.
8646         (schedule_insn, queue_to_ready): Add debug printouts.
8647         (debug_ready_list_1): New static function.
8648         (debug_ready_list): Update.
8649         (max_issue): Add debug printouts.
8650         (dump_insn_stream): New static function.
8651         (schedule_block): Use it.  Also better indent printouts.
8653 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
8655         Fix sched_insn debug counter
8656         * haifa-sched.c (schedule_insn): Update.
8657         (struct haifa_saved_data): Add nonscheduled_insns_begin.
8658         (save_backtrack_point, restore_backtrack_point): Update.
8659         (first_nonscheduled_insn): New static function.
8660         (queue_to_ready, choose_ready): Use it.
8661         (schedule_block): Init nonscheduled_insns_begin.
8662         (sched_emit_insn): Update.
8665 2014-05-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
8667         * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
8668         to GENERAL_REGS.
8669         (aarch64_secondary_reload) : LikeWise.
8670         (aarch64_class_max_nregs) : Remove CORE_REGS.
8671         * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
8672         (REG_CLASS_NAMES) : Likewise.
8673         (REG_CLASS_CONTENTS) : LikeWise.
8674         (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
8676 2014-05-21  Guozhi Wei  <carrot@google.com>
8678         PR target/61202
8679         * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
8680         constraint.
8681         (vqdmulhq_n_s16): Likewise.
8683 2014-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
8685         * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
8687 2014-05-21  Marek Polacek  <polacek@redhat.com>
8689         PR sanitizer/61272
8690         * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
8692 2014-05-21  Martin Jambor  <mjambor@suse.cz>
8694         * doc/invoke.texi (Optimize Options): Document parameters
8695         ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
8696         ipa-cp-array-index-hint-bonus.
8698 2014-05-21  Mark Wielaard  <mjw@redhat.com>
8700         PR debug/16063
8701         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
8702         version >= 3 or not strict DWARF.
8703         * langhooks.h (struct lang_hooks_for_types): Add
8704         enum_underlying_base_type.
8705         * langhooks.c (lhd_enum_underlying_base_type): New function.
8706         * gcc/langhooks.h (struct lang_hooks_for_types): Add
8707         enum_underlying_base_type.
8708         * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
8709         (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
8710         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
8712 2014-05-21  Richard Biener  <rguenther@suse.de>
8714         * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
8716 2014-05-21  John Marino  <gnugcc@marino.st>
8718         * config.gcc (*-*-dragonfly*): New target.
8719         * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
8720         * configure: Regenerate.
8721         * config/dragonfly-stdint.h: New.
8722         * config/dragonfly.h: New.
8723         * config/dragonfly.opt: New.
8724         * config/i386/dragonfly.h: New.
8725         * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
8727 2014-05-21  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
8729         * tree.def (VOID_CST): New.
8730         * tree-core.h (TI_VOID): New.
8731         * tree.h (void_node): New.
8732         * tree.c (tree_node_structure_for_code, tree_code_size)
8733         (iterative_hash_expr): Handle VOID_CST.
8734         (build_common_tree_nodes): Initialize void_node.
8736 2014-05-21  Bernd Schmidt  <bernds@codesourcery.com>
8738         * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
8739         functions.
8740         (reload, calculate_needs_all_insns, reload_as_needed): Use them.
8742         * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
8743         more places.
8745         * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
8746         flag_reorder_blocks_and_partition.
8747         * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
8749 2014-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
8751         PR target/54236
8752         * config/sh/sh.md (*addc_r_1): Rename to addc_t_r.  Remove empty
8753         constraints.
8754         (*addc_r_t): Add new insn_and_split.
8756 2014-05-21  Jakub Jelinek  <jakub@redhat.com>
8758         PR middle-end/61252
8759         * omp-low.c (handle_simd_reference): New function.
8760         (lower_rec_input_clauses): Use it.  Defer adding reference
8761         initialization even for reduction without placeholder if in simd,
8762         handle it properly later on.
8764 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
8766         PR tree-optimization/60899
8767         * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
8768         assume all static symbols will have definition wile parsing and
8769         check the do have definition later in compilation; check that
8770         variable referring symbol will be output before concluding that
8771         reference is safe; be conservative for referring local statics;
8772         be more precise about when comdat is output in other partition.
8774 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
8776         PR bootstrap/60984
8777         * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
8778         parameter.
8779         * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
8780         (ipa_inline): Loop inline_to_all_callers until no more aliases
8781         are removed.
8783 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
8785         * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
8786         set writeonly flag only for vars actually written to.
8788 2014-05-20  Dehao Chen  <dehao@google.com>
8790         * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
8791         and callee count to get clone count.
8792         * tree-inline.c (expand_call_inline): Use callee count instead of bb
8793         count in copy_body.
8795 2014-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
8797         PR rtl-optimization/61243
8798         * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
8800 2014-05-20  Xinliang David Li  <davidxl@google.com>
8802         * cgraphunit.c (walk_polymorphic_call_targets): Add
8803         dbgcnt and fopt-info support.
8804         * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
8805         * ipa-devirt.c (ipa_devirt): Ditto.
8806         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
8807         * ipa.c (walk_polymorphic_call_targets): Ditto.
8808         * gimple-fold.c (fold_gimple_assign): Ditto.
8809         (gimple_fold_call): Ditto.
8810         * dbgcnt.def: New counter.
8812 2014-05-20  DJ Delorie  <dj@redhat.com>
8814         * config/msp430/msp430.md (split): Don't allow subregs when
8815         splitting SImode adds.
8816         (andneghi): Fix subtraction logic.
8817         * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
8819 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
8821         * tree.h (DECL_ONE_ONLY): Return true only for externally visible
8822         symbols.
8823         * except.c (switch_to_exception_section, resolve_unique_section,
8824         get_named_text_section, default_function_rodata_section,
8825         align_variable, get_block_for_decl, default_section_type_flags):
8826         Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
8827         * symtab.c (symtab_add_to_same_comdat_group,
8828         symtab_make_decl_local, fixup_same_cpp_alias_visibility,
8829         symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
8830         Likewise.
8831         * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
8832         * bb-reorder.c (pass_partition_blocks::gate): Likewise.
8833         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
8834         (c6x_function_in_section_p): Likewise.
8835         * config/darwin.c (machopic_select_section): Likewise.
8836         * config/arm/arm.c (arm_function_in_section_p): Likewise.
8837         * config/mips/mips.c (mips_function_rodata_section): Likewise.
8838         * config/mep/mep.c (mep_select_section): LIkewise.
8839         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
8841 2014-05-20  Eric Botcazou  <ebotcazou@adacore.com>
8843         * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
8844         EH region of calls to pure functions that can throw an exception.
8845         * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
8846         (copy_reference_ops_from_call): Also copy the EH region of the call if
8847         it can throw an exception.
8849 2014-05-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8851         * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
8852         nested VEC_SELECTs that are inverses of each other.
8854 2014-05-20  Richard Biener  <rguenther@suse.de>
8856         * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
8857         (extract_and_process_scc_for_name): not here.
8858         (cond_dom_walker::before_dom_children): Only process
8859         stmts that end the BB in interesting ways.
8860         (run_scc_vn): Mark param uses as visited.
8862 2014-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8864         * config/arm/arm.md (arith_shiftsi): Do not predicate for
8865         arm_restrict_it.
8867 2014-05-20  Nick Clifton  <nickc@redhat.com>
8869         * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
8870         (msp430_gimplify_va_arg_expr): New function.
8871         (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
8873         * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
8874         operand 0 in order to prevent confusion about the number of
8875         registers involved.
8877 2014-05-20  Richard Biener  <rguenther@suse.de>
8879         PR tree-optimization/61221
8880         * tree-ssa-pre.c (el_to_update): Remove.
8881         (eliminate_dom_walker::before_dom_children): Handle released
8882         VDEFs by value-numbering them to the associated VUSE.  Update
8883         stmt immediately for substituted call address.
8884         (eliminate): Remove delayed stmt updating code.
8885         * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
8886         possibly late re-numbered vuses.
8887         (vn_reference_lookup_2): Adjust.
8888         (vn_reference_lookup_pieces): Likewise.
8889         (vn_reference_lookup): Likewise.
8891 2014-05-20  Richard Biener  <rguenther@suse.de>
8893         * config.gcc: Remove need_64bit_hwint.
8894         * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
8895         * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
8896         it to be true.
8897         * config.in: Regenerate.
8898         * configure: Likewise.
8900 2014-05-19  David Wohlferd <dw@LimeGreenSocks.com>
8902         * doc/extend.texi: Create Label Attributes section,
8903         move all label attributes into it and reference it.
8905 2014-05-19  Richard Earnshaw  <rearnsha@arm.com>
8907         * arm.c (thumb1_reorg): When scanning backwards skip anything
8908         that's not a proper insn.
8910 2014-05-19  Richard Biener  <rguenther@suse.de>
8912         PR tree-optimization/61221
8913         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
8914         Do nothing for unreachable blocks.
8915         * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
8916         Improve unreachability detection.
8918 2014-05-19  Richard Biener  <rguenther@suse.de>
8920         PR tree-optimization/61209
8921         * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
8923 2014-05-19  Nick Clifton  <nickc@redhat.com>
8925         * except.c (init_eh): Fix computation of builtin setjmp buffer
8926         size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
8928 2014-05-19  Richard Biener  <rguenther@suse.de>
8930         PR tree-optimization/61184
8931         * tree-vrp.c (is_negative_overflow_infinity): Use
8932         TREE_OVERFLOW_P and do that check first.
8933         (is_positive_overflow_infinity): Likewise.
8934         (is_overflow_infinity): Likewise.
8935         (vrp_operand_equal_p): Properly treat operands with
8936         differing overflow as not equal.
8938 2014-05-19  Bernd Schmidt  <bernds@codesourcery.com>
8940         * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
8941         shift simplification where it was intended.
8943 2014-05-19  Christian Bruel  <christian.bruel@st.com>
8945         PR target/61195
8946         * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
8948 2014-05-19  Richard Sandiford  <r.sandiford@uk.ibm.com>
8950         PR target/61084
8951         * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
8952         than wide_int.
8954 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
8956         * reg-notes.def (CROSSING_JUMP): Likewise.
8957         * rtl.h (rtx_def): Update comment for jump flag.
8958         (CROSSING_JUMP_P): Define.
8959         * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
8960         of a REG_CROSSING_JUMP note.
8961         * cfghooks.c (tidy_fallthru_edges): Likewise.
8962         * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
8963         * emit-rtl.c (try_split): Likewise.
8964         * haifa-sched.c (sched_create_recovery_edges): Likewise.
8965         * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
8966         * jump.c (redirect_jump_2): Likewise.
8967         * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
8968         (relax_delay_slots): Likewise.
8969         * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
8970         (bbit_di): Likewise.
8971         * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
8972         * config/sh/sh.md (jump_compact): Likewise.
8973         * bb-reorder.c (rotate_loop): Likewise.
8974         (pass_duplicate_computed_gotos::execute): Likewise.
8975         (add_reg_crossing_jump_notes): Rename to...
8976         (update_crossing_jump_flags): ...this.
8977         (pass_partition_blocks::execute): Update accordingly.
8979 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
8981         * tree.h: Remove extraneous template <>.
8983 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
8985         * ipa.c (symtab_remove_unreachable_nodes): Remove
8986         symbol from comdat group if its body was eliminated.
8987         (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
8988         * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
8989         (symtab_unregister_node): ... this one.
8990         (verify_symtab_base): More strict checking of comdats.
8991         * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
8993 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
8995         * tree-pass.h (make_pass_ipa_comdats): New pass.
8996         * timevar.def (TV_IPA_COMDATS): New timevar.
8997         * passes.def (pass_ipa_comdats): Add.
8998         * Makefile.in (OBJS): Add ipa-comdats.o
8999         * ipa-comdats.c: New file.
9001 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
9003         * ipa.c (update_visibility_by_resolution_info): New function.
9004         (function_and_variable_visibility): Use it.
9006 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
9008         * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
9009         New functions.
9010         (FOR_EACH_DEFINED_SYMBOL): New macro.
9011         (varpool_first_static_initializer, varpool_next_static_initializer,
9012         varpool_first_defined_variable, varpool_next_defined_variable):
9013         Fix comments.
9014         (symtab_in_same_comdat_p): Correctly deal with inline functions.
9016 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
9018         * ggc-page.c (ggc_handle_finalizers): Add comment.
9020 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
9022         * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
9023         * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
9024         (ggc_internal_cleared_alloc): Likewise.
9025         * ggc-page.c (finalizer): New class.
9026         (vec_finalizer): Likewise.
9027         (globals::finalizers): New member.
9028         (globals::vec_finalizers): Likewise.
9029         (ggc_internal_alloc): Record the finalizer if any for the block being
9030         allocated.
9031         (ggc_handle_finalizers): New function.
9032         (ggc_collect): Call ggc_handle_finalizers.
9033         * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
9034         finalizer.
9035         (ggc_internal_cleared_alloc): Likewise.
9036         (finalize): New function.
9037         (need_finalization_p): Likewise.
9038         (ggc_alloc): Install the type's destructor as the finalizer if it
9039         might do something.
9040         (ggc_cleared_alloc): Likewise.
9041         (ggc_vec_alloc): Likewise.
9042         (ggc_cleared_vec_alloc): Likewise.
9044 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
9046         * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
9048 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
9050         * alias.c (record_alias_subset): Adjust.
9051         * bitmap.c (bitmap_element_allocate): Likewise.
9052         (bitmap_gc_alloc_stat): Likewise.
9053         * cfg.c (init_flow): Likewise.
9054         (alloc_block): Likewise.
9055         (unchecked_make_edge): Likewise.
9056         * cfgloop.c (alloc_loop): Likewise.
9057         (flow_loops_find): Likewise.
9058         (rescan_loop_exit): Likewise.
9059         * cfgrtl.c (init_rtl_bb_info): Likewise.
9060         * cgraph.c (insert_new_cgraph_node_version): Likewise.
9061         (cgraph_allocate_node): Likewise.
9062         (cgraph_create_edge_1): Likewise.
9063         (cgraph_allocate_init_indirect_info): Likewise.
9064         * cgraphclones.c (cgraph_clone_edge): Likewise.
9065         * cgraphunit.c (add_asm_node): Likewise.
9066         (init_lowered_empty_function): Likewise.
9067         * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
9068         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
9069         (alpha_use_linkage): Likewise.
9070         * config/arc/arc.c (arc_init_machine_status): Likewise.
9071         * config/arm/arm.c (arm_init_machine_status): Likewise.
9072         * config/avr/avr.c (avr_init_machine_status): Likewise.
9073         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
9074         * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
9075         * config/cris/cris.c (cris_init_machine_status): Likewise.
9076         * config/darwin.c (machopic_indirection_name): Likewise.
9077         (darwin_build_constant_cfstring): Likewise.
9078         (darwin_enter_string_into_cfstring_table): Likewise.
9079         * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
9080         * config/frv/frv.c (frv_init_machine_status): Likewise.
9081         * config/i386/i386.c (get_dllimport_decl): Likewise.
9082         (ix86_init_machine_status): Likewise.
9083         (assign_386_stack_local): Likewise.
9084         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
9085         (i386_pe_maybe_record_exported_symbol): Likewise.
9086         (i386_pe_record_stub): Likewise.
9087         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
9088         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
9089         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
9090         (m32c_note_pragma_address): Likewise.
9091         * config/mep/mep.c (mep_init_machine_status): Likewise.
9092         (mep_note_pragma_flag): Likewise.
9093         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
9094         (mips16_local_alias): Likewise.
9095         (mips_init_machine_status): Likewise.
9096         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
9097         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
9098         * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
9099         * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
9100         * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
9101         * config/pa/pa.c (pa_init_machine_status): Likewise.
9102         (pa_get_deferred_plabel): Likewise.
9103         * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
9104         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
9105         (rs6000_init_machine_status): Likewise.
9106         (output_toc): Likewise.
9107         * config/s390/s390.c (s390_init_machine_status): Likewise.
9108         * config/score/score.c (score_output_external): Likewise.
9109         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
9110         * config/spu/spu.c (spu_init_machine_status): Likewise.
9111         * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
9112         * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
9113         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
9114         * coverage.c (coverage_end_function): Likewise.
9115         * dbxout.c (dbxout_init): Likewise.
9116         * doc/gty.texi: Don't mention variable_size attribute.
9117         * dwarf2cfi.c (new_cfi): Adjust.
9118         (new_cfi_row): Likewise.
9119         (copy_cfi_row): Likewise.
9120         (create_cie_data): Likewise.
9121         * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
9122         (new_loc_descr): Likewise.
9123         (find_AT_string_in_table): Likewise.
9124         (add_addr_table_entry): Likewise.
9125         (new_die): Likewise.
9126         (add_var_loc_to_decl): Likewise.
9127         (clone_die): Likewise.
9128         (clone_as_declaration): Likewise.
9129         (break_out_comdat_types): Likewise.
9130         (new_loc_list): Likewise.
9131         (add_loc_descr_to_each): Likewise.
9132         (add_location_or_const_value_attribute): Likewise.
9133         (add_linkage_name): Likewise.
9134         (lookup_filename): Likewise.
9135         (dwarf2out_var_location): Likewise.
9136         (new_line_info_table): Likewise.
9137         (dwarf2out_init): Likewise.
9138         (mem_loc_descriptor): Likewise.
9139         (loc_descriptor): Likewise.
9140         (add_const_value_attribute): Likewise.
9141         (tree_add_const_value_attribute): Likewise.
9142         (comp_dir_string): Likewise.
9143         (dwarf2out_vms_debug_main_pointer): Likewise.
9144         (string_cst_pool_decl): Likewise.
9145         * emit-rtl.c (set_mem_attrs): Likewise.
9146         (get_reg_attrs): Likewise.
9147         (start_sequence): Likewise.
9148         (init_emit): Likewise.
9149         (init_emit_regs): Likewise.
9150         * except.c (init_eh_for_function): Likewise.
9151         (gen_eh_region): Likewise.
9152         (gen_eh_region_catch): Likewise.
9153         (gen_eh_landing_pad): Likewise.
9154         (add_call_site): Likewise.
9155         * function.c (add_frame_space): Likewise.
9156         (insert_temp_slot_address): Likewise.
9157         (assign_stack_temp_for_type): Likewise.
9158         (get_hard_reg_initial_val): Likewise.
9159         (allocate_struct_function): Likewise.
9160         (prepare_function_start): Likewise.
9161         (types_used_by_var_decl_insert): Likewise.
9162         * gengtype.c (variable_size_p): Remove function.
9163         (enum alloc_quantity): Remove enum.
9164         (write_typed_alloc_def): Remove function.
9165         (write_typed_struct_alloc_def): Likewise.
9166         (write_typed_typedef_alloc_def): Likewise.
9167         (write_typed_alloc_defns): Likewise.
9168         (main): Adjust.
9169         * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
9170         (ggc_cleared_alloc_ptr_array_two_args): Likewise.
9171         * ggc.h (ggc_alloc): new function.
9172         (ggc_cleared_alloc): Likewise.
9173         (ggc_vec_alloc): Template on type of vector element, and remove
9174         element size argument.
9175         (ggc_cleared_vec_alloc): Likewise.
9176         * gimple.c (gimple_build_omp_for): Adjust.
9177         (gimple_copy): Likewise.
9178         * ipa-cp.c (get_replacement_map): Likewise.
9179         (find_aggregate_values_for_callers_subset): Likewise.
9180         (known_aggs_to_agg_replacement_list): Likewise.
9181         * ipa-devirt.c (get_odr_type): Likewise.
9182         * ipa-prop.c (ipa_node_duplication_hook): Likewise.
9183         (read_agg_replacement_chain): Likewise.
9184         * loop-iv.c (get_simple_loop_desc): Likewise.
9185         * lto-cgraph.c (input_node_opt_summary): Likewise.
9186         * lto-section-in.c (lto_new_in_decl_state): Likewise.
9187         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
9188         (input_eh_region): Likewise.
9189         (input_eh_lp): Likewise.
9190         (input_cfg): Likewise.
9191         * optabs.c (set_optab_libfunc): Likewise.
9192         (init_tree_optimization_optabs): Likewise.
9193         (set_conv_libfunc): Likewise.
9194         * passes.c (do_per_function_toporder): Likewise.
9195         * rtl.h: Don't use variable_size gty attribute.
9196         * sese.c (if_region_set_false_region): Adjust.
9197         * stringpool.c (gt_pch_save_stringpool): Likewise.
9198         * target-globals.c (save_target_globals): Likewise.
9199         * toplev.c (general_init): Likewise.
9200         * trans-mem.c (record_tm_replacement): Likewise.
9201         (split_bb_make_tm_edge): Likewise.
9202         * tree-cfg.c (move_sese_region_to_fn): Likewise.
9203         * tree-data-ref.h (lambda_vector_new): Likewise.
9204         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
9205         * tree-iterator.c (tsi_link_before): Likewise.
9206         (tsi_link_after): Likewise.
9207         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
9208         * tree-ssa-loop-niter.c (record_estimate): Likewise.
9209         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
9210         * tree-ssa-operands.h: Don't use variable_size gty attribute.
9211         * tree-ssa.c (init_tree_ssa): Adjust.
9212         * tree-ssanames.c (set_range_info): Likewise.
9213         (get_ptr_info): Likewise.
9214         (duplicate_ssa_name_ptr_info): Likewise.
9215         (duplicate_ssa_name_range_info): Likewise.
9216         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
9217         (unpack_ts_fixed_cst_value_fields): Likewise.
9218         * tree.c (build_fixed): Likewise.
9219         (build_real): Likewise.
9220         (build_string): Likewise.
9221         (decl_priority_info): Likewise.
9222         (decl_debug_expr_insert): Likewise.
9223         (decl_value_expr_insert): Likewise.
9224         (decl_debug_args_insert): Likewise.
9225         (type_hash_add): Likewise.
9226         (build_omp_clause): Likewise.
9227         * ubsan.c (decl_for_type_insert): Likewise.
9228         * varasm.c (get_unnamed_section): Likewise.
9229         (get_noswitch_section): Likewise.
9230         (get_section): Likewise.
9231         (get_block_for_section): Likewise.
9232         (create_block_symbol): Likewise.
9233         (build_constant_desc): Likewise.
9234         (create_constant_pool): Likewise.
9235         (force_const_mem): Likewise.
9236         (record_tm_clone_pair): Likewise.
9237         * varpool.c (varpool_create_empty_node): Likewise.
9239 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
9241         * dwarf2out.c (tree_add_const_value_attribute): Call
9242         ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
9243         * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
9244         instead of ggc_internal_<x>alloc_stat.
9245         * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
9246         (ggc_realloc): Likewise.
9247         * ggc-none.c (ggc_internal_alloc): Likewise.
9248         (ggc_internal_cleared_alloc): Likewise.
9249         * ggc-page.c: Likewise.
9250         * ggc.h (ggc_internal_alloc_stat): Likewise.
9251         (ggc_internal_alloc): Remove macro.
9252         (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
9253         (ggc_internal_cleared_alloc): Remove macro.
9254         (GGC_RESIZEVEC): Adjust.
9255         (ggc_resizevar): Remove macro.
9256         (ggc_internal_vec_alloc_stat): Drop _stat suffix.
9257         (ggc_internal_cleared_vec_alloc_stat): Likewise.
9258         (ggc_internal_vec_cleared_alloc): Remove macro.
9259         (ggc_alloc_atomic_stat): Drop _stat suffix.
9260         (ggc_alloc_atomic): Remove macro.
9261         (ggc_alloc_cleared_atomic): Remove macro.
9262         (ggc_alloc_string_stat): Drop _stat suffix.
9263         (ggc_alloc_string): Remove macro.
9264         (ggc_alloc_rtx_def_stat): Adjust.
9265         (ggc_alloc_tree_node_stat): Likewise.
9266         (ggc_alloc_cleared_tree_node_stat): Likewise.
9267         (ggc_alloc_cleared_gimple_statement_stat): Likewise.
9268         (ggc_alloc_cleared_simd_clone_stat): Likewise.
9269         * gimple.c (gimple_build_omp_for): Likewise.
9270         (gimple_copy): Likewise.
9271         * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
9272         * toplev.c (realloc_for_line_map): Adjust.
9273         * tree-data-ref.h (lambda_vector_new): Likewise.
9274         * tree-phinodes.c (allocate_phi_node): Likewise.
9275         * tree.c (grow_tree_vec_stat): Likewise.
9276         * vec.h (va_gc::reserve): Adjust.
9278 2014-05-17  Ajit Agarwal  <ajitkum@xilinx.com>
9280         * config/microblaze/microblaze.c (break_handler): New Declaration.
9281         (microblaze_break_function_p,microblaze_is_break_handler): New.
9282         (compute_frame_size): Use microblaze_break_function_p.
9283         Add the test of break_handler.
9284         (microblaze_function_prologue) : Add the test of variable
9285         break_handler.  Check the fnname by BREAK_HANDLER_NAME.
9286         (microblaze_function_epilogue) : Add the test of break_handler.
9287         (microblaze_globalize_label) : Add the test of break_handler.
9288         Check the name by BREAK_HANDLER_NAME.
9290         * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
9292         * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
9293         microblaze_is_break_handler test.
9294         (call_internal1,call_value_intern): Use microblaze_break_function_p.
9295         Use SYMBOL_REF_DECL.
9297         * config/microblaze/microblaze-protos.h
9298         (microblaze_break_function_p,microblaze_is_break_handler):
9299         New Declaration.
9301         * doc/extend.texi (MicroBlaze break_handler Functions): Document
9302         new MicroBlaze break_handler functions.
9304 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
9306         * doc/extend.texi (Size of an asm): Move node text according
9307         to its @menu entry position.
9309 2014-05-17  Marc Glisse  <marc.glisse@inria.fr>
9311         PR tree-optimization/61140
9312         PR tree-optimization/61150
9313         PR tree-optimization/61197
9314         * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
9316 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
9318         * doc/invoke.texi (free): Mention Alpha.  Also enabled at -Os.
9320 2014-05-17  Richard Sandiford  <r.sandiford@uk.ibm.com>
9322         * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
9323         __SIZEOF_INT128__ is defined.
9325 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
9327         * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
9328         (rs6000_delegitimize_address): Use it.
9330 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
9332         * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
9333         inplace argument.  Store the new address in the original MEM when true.
9334         * emit-rtl.c (change_address_1): Likewise.
9335         (adjust_address_1, adjust_automodify_address_1, offset_address):
9336         Update accordingly.
9337         * rtl.h (plus_constant): Add an inplace argument.
9338         * explow.c (plus_constant): Likewise.  Try to reuse the original PLUS
9339         when true.  Avoid generating (plus X (const_int 0)).
9340         * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
9341         in-place.  Pass true to plus_constant.
9342         (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
9344 2014-05-16  Dehao Chen  <dehao@google.com>
9346         * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
9348 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
9350         PR target/54089
9351         * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
9352         patterns.
9353         * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
9355 2014-05-16  Dehao Chen  <dehao@google.com>
9357         * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
9358         optimize_function_for_size_p.
9359         * regs.h (REG_FREQ_FROM_BB): Likewise.
9361 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
9363         PR target/51244
9364         * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
9365         negt_reg_operand cases.
9366         * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
9367         predicate.
9368         * config/sh/predicates.md (cbranch_treg_value): Simplify.
9370 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
9372         * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
9373         target variants.
9375 2014-05-16  David Malcolm  <dmalcolm@redhat.com>
9377         Revert:
9378         2014-04-29  David Malcolm  <dmalcolm@redhat.com>
9380         * tree-cfg.c (dump_function_to_file): Dump the return type of
9381         functions, in a line to itself before the function body, mimicking
9382         the layout of a C function.
9384 2014-05-16  Dehao Chen  <dehao@google.com>
9386         * cfghooks.c (make_forwarder_block): Use direct computation to
9387         get fall-through edge's count and frequency.
9389 2014-05-16  Benno Schulenberg  <bensberg@justemail.net>
9391         * config/arc/arc.c (arc_init): Fix typo in error message.
9392         * config/i386/i386.c (ix86_expand_builtin): Likewise.
9393         (split_stack_prologue_scratch_regno): Likewise.
9394         * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
9395         word from error message.
9397 2014-05-16  Zhouyi Zhou <yizhouzhou@ict.ac.cn>
9399         * ira-costs.c: Fix typo in comment.
9401 2014-05-16  David Wohlferd <dw@LimeGreenSocks.com>
9403         * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
9405 2014-05-16  Jan Hubicka  <hubicka@ucw.cz>
9407         * varpool.c (dump_varpool_node): Dump write-only flag.
9408         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
9409         write-only flag.
9410         * tree-cfg.c (execute_fixup_cfg): Remove statements setting
9411         write-only variables.
9412         * ipa.c (process_references): New function.
9413         (set_readonly_bit): New function.
9414         (set_writeonly_bit): New function.
9415         (clear_addressable_bit): New function.
9416         (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
9417         fix handling of aliases.
9418         * cgraph.h (struct varpool_node): Add writeonly flag.
9420 2014-05-16  Vladimir Makarov  <vmakarov@redhat.com>
9422         PR rtl-optimization/60969
9423         * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
9424         Calculate costs for this case.
9426 2014-05-16  Eric Botcazou  <ebotcazou@adacore.com>
9428         * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
9429         <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
9431 2014-05-16  Richard Biener  <rguenther@suse.de>
9433         PR tree-optimization/61194
9434         * tree-vect-patterns.c (adjust_bool_pattern): Also handle
9435         bool patterns ending in a COND_EXPR.
9437 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
9439         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
9441 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
9443         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
9444         where we were unable to cost an RTX.
9446 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
9448         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
9449         HIGH, LO_SUM.
9451 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
9452             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
9454         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
9456 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
9457             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
9459         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
9460         FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
9462 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
9463             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
9465         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
9466         operators.
9468 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
9469             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
9471         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
9472         DIV/MOD.
9474 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
9475             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
9477         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
9478         (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
9480 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
9481             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
9483         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
9484         rotates and shifts.
9486 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
9487             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
9489         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
9490         ZERO_EXTEND and SIGN_EXTEND better.
9492 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
9493             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
9495         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
9496         logical operations.
9498 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
9499             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
9501         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
9502         costs when costing loads and stores to memory.
9504 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
9505             Philip Tomsich  <philipp.tomsich@theobroma-systems.com>
9507         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
9508         for SET RTX.
9510 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
9512         * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
9514 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
9515             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
9517         * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
9518         to...
9519         (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
9520         well formed.
9521         (aarch64_rtx_mult_cost): New.
9522         (aarch64_rtx_costs): Use it, refactor as appropriate.
9524 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
9525             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
9527         * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
9528         emit instructions, return number of instructions which would
9529         be emitted.
9530         (aarch64_add_constant): Update call to aarch64_build_constant.
9531         (aarch64_output_mi_thunk): Likewise.
9532         (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
9533         a CONST_DOUBLE.
9535 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
9537         * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
9538         (TARGET_RTX_COSTS): Call it.
9540 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
9542         * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
9543         (cortexa57_vector_cost): Likewise.
9544         (cortexa57_tunings): Use them.
9546 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
9548         * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
9549         (cpu_addrcost_table): Use it.
9550         * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
9551         (aarch64_address_cost): Rewrite using aarch64_classify_address,
9552         move it.
9554 2014-05-16  Richard Biener  <rguenther@suse.de>
9556         * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
9557         (set_ssa_val_to): Handle unexpected sets to VN_TOP.
9558         (visit_phi): Ignore edges marked as not executable.
9559         (class cond_dom_walker): New.
9560         (cond_dom_walker::before_dom_children): Value-number
9561         control statements and mark successor edges as not
9562         executable if possible.
9563         (run_scc_vn): First walk all control statements in
9564         dominator order, marking edges as not executable.
9565         * tree-inline.c (copy_edges_for_bb): Be not confused
9566         about random edge flags.
9568 2014-05-16  Richard Biener  <rguenther@suse.de>
9570         * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
9572 2014-05-15  Peter Bergner  <bergner@vnet.ibm.com>
9574         PR target/61193
9575         * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
9576         (__TM_simple_begin): Use it.
9577         (__TM_begin): Likewise.
9579 2014-05-15  Martin Jambor  <mjambor@suse.cz>
9581         PR ipa/61085
9582         * ipa-prop.c (update_indirect_edges_after_inlining): Check
9583         type_preserved flag when the indirect edge is polymorphic.
9585 2014-05-15  Martin Jambor  <mjambor@suse.cz>
9587         PR tree-optimization/61090
9588         * tree-sra.c (sra_modify_expr): Pass the current gsi to
9589         build_ref_for_model.
9591 2014-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9593         * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
9594         enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
9596 2014-05-15  Jakub Jelinek  <jakub@redhat.com>
9598         PR tree-optimization/61158
9599         * fold-const.c (fold_binary_loc): If X is zero-extended and
9600         shiftc >= prec, make sure zerobits is all ones instead of
9601         invoking undefined behavior.
9603 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
9605         * regcprop.h: New file.
9606         * regcprop.c (skip_debug_insn_p): New decl.
9607         (replace_oldest_value_reg): Check skip_debug_insn_p.
9608         (copyprop_hardreg_forward_bb_without_debug_insn): New function.
9609         * shrink-wrap.c: Include regcprop.h.
9610         (prepare_shrink_wrap): Call
9611         copyprop_hardreg_forward_bb_without_debug_insn.
9613 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
9615         * shrink-wrap.h: Update comment.
9616         * shrink-wrap.c: Update comment.
9617         (next_block_for_reg): Rename to live_edge_for_reg.
9618         (live_edge_for_reg): Allow live_edge->dest has two predecessors.
9619         (move_insn_for_shrink_wrap): Split live_edge.
9620         (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
9622 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
9624         * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
9625         Delete.
9626         * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
9627         * config/sparc/sparc.md (fptype_ut699): New attribute.
9628         (in_branch_delay): Return false if -mfix-ut699 is specified and
9629         fptype_ut699 is set to single.
9630         (truncdfsf2): Add fptype_ut699 attribute.
9631         (fix_truncdfsi2): Likewise.
9632         (floatsisf2): Change fptype attribute.
9633         (fix_truncsfsi2): Likewise.
9634         (negtf2_notv9): Delete.
9635         (negtf2_v9): Likewise.
9636         (negtf2_hq): New instruction.
9637         (negtf2): New instruction and splitter.
9638         (negdf2_notv9): Rewrite.
9639         (abstf2_notv9): Delete.
9640         (abstf2_hq_v9): Likewise.
9641         (abstf2_v9): Likewise.
9642         (abstf2_hq): New instruction.
9643         (abstf2): New instruction and splitter.
9644         (absdf2_notv9): Rewrite.
9646 2014-05-14  Cary Coutant  <ccoutant@google.com>
9648         PR debug/61013
9649         * opts.c (common_handle_option): Don't special-case "-g".
9650         (set_debug_level): Default to at least level 2 with "-g".
9652 2014-05-14  DJ Delorie  <dj@redhat.com>
9654         * config/msp430/msp430.c (msp430_builtin): Add
9655         MSP430_BUILTIN_DELAY_CYCLES.
9656         (msp430_init_builtins): Register void __delay_cycles(long long).
9657         (msp430_builtin_decl): Add it.
9658         (cg_magic_constant): New.
9659         (msp430_expand_delay_cycles): New.
9660         (msp430_expand_builtin): Call it.
9661         (msp430_print_operand_raw): Change integer printing from "int" to
9662         HOST_WIDE_INT.
9663         * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
9664         (delay_cycles_start): New.
9665         (delay_cycles_end): New.
9666         (delay_cycles_32): New.
9667         (delay_cycles_32x): New.
9668         (delay_cycles_16): New.
9669         (delay_cycles_16x): New.
9670         (delay_cycles_2): New.
9671         (delay_cycles_1): New.
9672         * doc/extend.texi: Document __delay_cycles().
9674 2014-05-14  Sandra Loosemore  <sandra@codesourcery.com>
9676         * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
9677         length attribute computation.
9679 2014-05-14  Richard Sandiford  <rdsandiford@googlemail.com>
9681         PR debug/61188
9682         * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
9684 2014-05-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
9686         PR target/61084
9687         * config/sparc/sparc.md: Fix types of low and high in DI constant
9688         splitter.  Use gen_int_mode in some other splitters.
9690 2014-05-14  Martin Jambor  <mjambor@suse.cz>
9692         PR ipa/60897
9693         * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
9695 2014-05-14  James Norris  <jnorris@codesourcery.com>
9697         * omp-low.c (expand_parallel_call): Remove shadow variable.
9698         (expand_omp_taskreg): Likewise.
9700 2014-05-14  Ilya Tocar  <ilya.tocar@intel.com>
9702         * common/config/i386/i386-common.c
9703         (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
9704         (OPTION_MASK_ISA_XSAVES_SET): Ditto.
9705         (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
9706         (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
9707         (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
9708         (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
9709         (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
9710         * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
9711         xsavecintrin.h, xsavesintrin.h.
9712         (x86_64-*-*): Ditto.
9713         * config/i386/clflushoptintrin.h: New.
9714         * config/i386/xsavecintrin.h: Ditto.
9715         * config/i386/xsavesintrin.h: Ditto.
9716         * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
9717         (bit_XSAVES): Ditto.
9718         (bit_XSAVES): Ditto.
9719         * config/i386/driver-i386.c (host_detect_local_cpu): Handle
9720         -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
9721         -mno-clflushopt.
9722         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
9723         OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
9724         OPTION_MASK_ISA_XSAVES.
9725         * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
9726         -mxsavec, -mxsaves.
9727         (PTA_CLFLUSHOPT) Define.
9728         (PTA_XSAVEC): Ditto.
9729         (PTA_XSAVES): Ditto.
9730         (ix86_option_override_internal): Handle new options.
9731         (ix86_valid_target_attribute_inner_p): Ditto.
9732         (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
9733         IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
9734         IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
9735         (bdesc_special_args): Add __builtin_ia32_xsaves,
9736         __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
9737         __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
9738         (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
9739         (ix86_expand_builtin): Handle new builtins.
9740         * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
9741         (TARGET_CLFLUSHOPT_P): Ditto.
9742         (TARGET_XSAVEC): Ditto.
9743         (TARGET_XSAVEC_P): Ditto.
9744         (TARGET_XSAVES): Ditto.
9745         (TARGET_XSAVES_P): Ditto.
9746         * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
9747         (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
9748         (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
9749         (ANY_XRSTOR): New.
9750         (ANY_XRSTOR64): Ditto.
9751         (xrstor): Ditto.
9752         (xrstor): Change into <xrstor>.
9753         (xrstor_rex64): Change into <xrstor>_rex64.
9754         (xrstor64): Change into <xrstor>64
9755         (clflushopt): New.
9756         * config/i386/i386.opt (mclflushopt): New.
9757         (mxsavec): Ditto.
9758         (mxsaves): Ditto.
9759         * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
9760         xsavecintrin.h.
9761         * doc/invoke.texi: Document new options.
9763 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
9765         PR rtl-optimization/60866
9766         * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
9767         Default it to -1.  Pass it down to init_simplejump_data.
9768         (init_simplejump_data): New parameter old_seqno.  Pass it down
9769         to get_seqno_for_a_jump.
9770         (get_seqno_for_a_jump): New parameter old_seqno.  Use it for
9771         initializing new jump seqno as a last resort.  Add comment.
9772         (sel_redirect_edge_and_branch): Save old seqno of the conditional
9773         jump and pass it down to sel_init_new_insn.
9774         (sel_redirect_edge_and_branch_force): Likewise.
9776 2014-05-14  Georg-Johann Lay  <avr@gjlay.de>
9778         * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
9779         shifted values to avoid build warning.
9781 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
9783         * cfgcleanup.c (try_forward_edges): Use location_t for locations.
9784         * cfgrtl.c (rtl_merge_blocks): Fix comment.
9785         (cfg_layout_merge_blocks): Likewise.
9786         * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
9788 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
9790         PR rtl-optimization/60901
9791         * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
9792         bb predecessor belongs to the same scheduling region.  Adjust comment.
9794 2014-05-13  Peter Bergner  <bergner@vnet.ibm.com>
9796         * doc/sourcebuild.texi: (dfp_hw): Document.
9797         (p8vector_hw): Likewise.
9798         (powerpc_eabi_ok): Likewise.
9799         (powerpc_elfv2): Likewise.
9800         (powerpc_htm_ok): Likewise.
9801         (ppc_recip_hw): Likewise.
9802         (vsx_hw): Likewise.
9804 2014-05-13  Cary Coutant  <ccoutant@google.com>
9806         * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
9808 2014-05-13  David Malcolm  <dmalcolm@redhat.com>
9810         * gengtype-parse.c (require3): Eliminate in favor of...
9811         (require4): New.
9812         (require_template_declaration): Update to support optional single *
9813         on a type.
9815         * gengtype.c (get_ultimate_base_class): Add a non-const overload.
9816         (create_user_defined_type): Handle a single level of explicit
9817         pointerness within template arguments.
9818         (struct write_types_data): Add field "kind".
9819         (filter_type_name): Handle "*" character.
9820         (write_user_func_for_structure_ptr): Require a write_types_data
9821         rather than just a prefix string, so that we can look up the kind
9822         of the wtd and use it as an index into wrote_user_func_for_ptr,
9823         ensuring that such functions are written at most once.  Support
9824         subclasses by invoking the marking function of the ultimate base class.
9825         (write_user_func_for_structure_body): Require a write_types_data
9826         rather than just a prefix string, so that we can pass this to
9827         write_user_func_for_structure_ptr.
9828         (write_func_for_structure): Likewise.
9829         (ggc_wtd): Add initializer of new "kind" field.
9830         (pch_wtd): Likewise.
9832         * gengtype.h (enum write_types_kinds): New.
9833         (struct type): Add field wrote_user_func_for_ptr to the "s"
9834         union member.
9836 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
9838         * fold-const.c (optimize_bit_field_compare): Use wi:: operations
9839         instead of const_binop.
9840         (fold_binary_loc): Likewise.
9842 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
9844         * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
9845         calculation to match get_ref_base_and_extent.
9847 2014-05-13  Catherine Moore  <clm@codesourcery.com>
9848             Sandra Loosemore  <sandra@codesourcery.com>
9850         * configure.ac: Fix assembly for explicit JALR relocation check.
9851         * configure: Regenerate.
9853 2014-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9855         * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
9856         (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
9857         Remove associated type declarations and initialisations.
9858         (arm_expand_neon_builtin): Likewise.
9859         (neon_emit_pair_result_insn): Delete.
9860         * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
9861         * config/arm/neon.md (neon_vtrn<mode>): Delete.
9862         (neon_vzip<mode>): Likewise.
9863         (neon_vuzp<mode>): Likewise.
9865 2014-05-13  Richard Biener  <rguenther@suse.de>
9867         PR ipa/60973
9868         * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
9869         it needs revisiting whether the call still may be tail-called.
9871 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
9873         * rtl.def (SYMBOL_REF): Remove middle "0" field.
9874         * rtl.h (block_symbol): Reduce number of fields to 2.
9875         (rtx_def): Add u2.symbol_ref_flags.
9876         (SYMBOL_REF_FLAGS): Use it.
9877         (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
9878         (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
9879         * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
9880         Lower index of SYMBOL_REF_DATA.
9881         * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
9882         Print SYMBOL_REF_FLAGS at the same time.
9883         * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
9885 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
9887         * rtl.def (VAR_LOCATION): Remove "i" field.
9888         * rtl.h (rtx_def): Add u2.var_location_status.
9889         (PAT_VAR_LOCATION_STATUS): Use it.
9890         (gen_rtx_VAR_LOCATION): Declare.
9891         * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
9892         * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
9893         * var-tracking.c (emit_note_insn_var_location): Remove casts.
9895 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
9897         * rtl.def (scratch): Fix outdated comment and remove "0" field.
9898         * gengtype.c (adjust_field_rtx_def): Update accordingly.
9900 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
9902         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
9903         (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
9904         * rtl.h (rtx_def): Add insn_uid to u2 field.
9905         (RTX_FLAG_CHECK8): Delete in favor of...
9906         (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
9907         (INSN_DELETED_P): Update accordingly.
9908         (INSN_UID): Use u2.insn_uid.
9909         (INSN_CHAIN_CODE_P): Define.
9910         (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
9911         (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
9912         (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
9913         (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
9914         (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
9915         indices accordingly.
9916         * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
9917         Update indices for insn-chain rtxes.
9918         * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
9919         (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
9920         * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
9921         * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
9922         * combine.c (try_combine): Likewise.
9923         * ira.c (setup_prohibited_mode_move_regs): Likewise.
9925 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
9927         * rtl.def (REG): Remove middle field.
9928         * rtl.h (rtx_def): Add orignal_regno to u2.
9929         (ORIGINAL_REGNO): Use it instead of field 1.
9930         (REG_ATTRS): Lower field index accordingly.
9931         * gengtype.c (adjust_field_rtx_def): Remove handling of
9932         ORIGINAL_REGNO.  Move REG_ATTRS index down.
9933         * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
9934         code that prints the REGNO.
9936 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
9938         * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
9939         GENERATOR_FILE.
9941 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
9943         * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
9945 2014-05-13  Bin Cheng  <bin.cheng@arm.com>
9947         * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
9948         (alloc_iv): Lower base expressions containing ADDR_EXPR.
9950 2014-05-13  Ian Bolton  <ian.bolton@arm.com>
9952         * config/aarch64/aarch64-protos.h
9953         (aarch64_hard_regno_caller_save_mode): New prototype.
9954         * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
9955         New function.
9956         * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
9958 2014-05-13  Christian Bruel  <christian.bruel@st.com>
9960         * target.def (mode_switching): New hook vector.
9961         (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
9962         (mode_exit, modepriority_to_mode): Likewise.
9963         * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
9964         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
9965         * target.h: Include tm.h and hard-reg-set.h.
9966         * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
9967         (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
9968         * doc/tm.texi Regenerate.
9969         * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
9970         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
9971         * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
9972         (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
9973         * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
9974         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
9975         * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
9976         (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
9977         * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
9978         (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
9979         (ix86_emit_mode_set): Hookify.
9980         * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
9981         Delete.
9982         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
9983         * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
9984         (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
9985         (epiphany_mode_priority_to_mode): Remove declaration.
9986         * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
9987         (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
9988         (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
9989         Likewise.
9990         (epiphany_mode_priority_to_mode): Change priority type.  Hookify.
9991         (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
9992         (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
9994 2014-05-13  Jakub Jelinek  <jakub@redhat.com>
9996         PR target/61060
9997         * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
9998         is const0_rtx, return immediately.  Don't test count == 0 when
9999         it is always true.
10001 2014-05-13  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
10003         * Makefile.in: add shrink-wrap.o.
10004         * config/i386/i386.c: include "shrink-wrap.h"
10005         * function.c: Likewise.
10006         (requires_stack_frame_p, next_block_for_reg,
10007         move_insn_for_shrink_wrap, prepare_shrink_wrap,
10008         dup_block_and_redirect): Move to shrink-wrap.c
10009         (thread_prologue_and_epilogue_insns): Extract three code segments
10010         as functions in shrink-wrap.c
10011         * function.h: Move #ifdef HAVE_simple_return ... #endif block to
10012         shrink-wrap.h
10013         * shrink-wrap.c: New file.
10014         * shrink-wrap.h: New file.
10016 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
10018         * doc/extend.texi: Reflect current numbers of pragmas.  Remove
10019         reference to Solaris.
10021 2014-05-12  Mike Stump  <mikestump@comcast.net>
10023         PR other/31778
10024         * genattrtab.c (filename): Add.
10025         (convert_set_attr_alternative): Improve error message.
10026         (check_defs): Restore read_md_filename for error messages.
10027         (gen_insn): Save filename.
10029 2014-05-12  Dimitris Papavasiliou  <dpapavas@gmail.com>
10031         * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
10032         -fno-local-ivars and -fivar-visibility.
10033         * c-family/c.opt: Make -Wshadow also implicitly enable
10034         -Wshadow-ivar.
10036 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
10038         * doc/tm.texi: Remove reference to deleted macro.
10039         * doc/tm.texi.in: Likewise.
10041 2014-05-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
10043         PR target/60991
10044         * config/avr/avr.c (avr_out_store_psi): Use correct constant
10045         to restore Y.
10047 2014-05-12  Georg-Johann Lay  <avr@gjlay.de>
10049         PR libgcc/61152
10050         * config/arm/arm.h (License): Add GCC Runtime Library Exception.
10051         * config/arm/aout.h (License): Same.
10052         * config/arm/bpabi.h (License): Same.
10053         * config/arm/elf.h (License): Same.
10054         * config/arm/linux-elf.h (License): Same.
10055         * config/arm/linux-gas.h (License): Same.
10056         * config/arm/netbsd-elf.h (License): Same.
10057         * config/arm/uclinux-eabi.h (License): Same.
10058         * config/arm/uclinux-elf.h (License): Same.
10059         * config/arm/vxworks.h (License): Same.
10061 2014-05-11  Jakub Jelinek  <jakub@redhat.com>
10063         * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
10064         * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
10065         number of operands to 3.
10066         (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
10067         * tree-nested.c (convert_nonlocal_omp_clauses,
10068         convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
10069         * gimplify.c (gimplify_scan_omp_clauses): Handle
10070         OMP_CLAUSE_LINEAR_STMT.
10071         * omp-low.c (lower_rec_input_clauses): Fix typo.
10072         (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
10073         cast between Fortran boolean_type_node and C _Bool if
10074         needed.
10076 2014-05-11  Richard Sandiford  <rdsandiford@googlemail.com>
10078         PR tree-optimization/61136
10079         * wide-int.h (multiple_of_p): Define a version that doesn't return
10080         the quotient.
10081         * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
10082         integer_zerop/const_binop pair.
10083         (multiple_of_p): Likewise, converting both operands to widest_int
10084         precision.
10086 2014-05-09  Teresa Johnson  <tejohnson@google.com>
10088         * cgraphunit.c (analyze_functions): Use correct dump file.
10090 2014-05-09  Florian Weimer  <fweimer@redhat.com>
10092         * cfgexpand.c (stack_protect_decl_p): New function, extracted from
10093         expand_used_vars.
10094         (stack_protect_return_slot_p): New function.
10095         (expand_used_vars): Call stack_protect_decl_p and
10096         stack_protect_return_slot_p for -fstack-protector-strong.
10098 2014-05-09  David Wohlferd <LimeGreenSocks@yahoo.com>
10099         Andrew Haley <aph@redhat.com>
10100         Richard Sandiford <rdsandiford@googlemail.com>
10102         * doc/extend.texi: Rewrite inline asm page / re-org asm-related
10103         pages.
10105 2014-05-09  Kenneth Zadeck  <zadeck@naturalbridge.com>
10107         PR middle-end/61111
10108         * fold-const.c (fold_binary_loc): Changed width of mask.
10110 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
10112         * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
10113         unsigned int initializers for regno_in, regno_out.
10115 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
10117         PR target/61055
10118         * config/avr/avr.md (cc): Add new attribute set_vzn.
10119         (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
10120         Set cc insn attribute to set_vzn instead of set_zn for alternatives
10121         with INC, DEC or NEG.
10122         * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
10123         (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
10124         INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
10126 2014-05-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10128         Revert:
10129         2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10131         * wide-int.cc (UTItype): Define.
10132         (UDWtype): Define for appropriate W_TYPE_SIZE.
10134 2014-05-09  Richard Biener  <rguenther@suse.de>
10136         * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
10137         * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
10138         (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
10139         (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
10140         ssa_propagate): Adjust.
10142 2014-05-08  Jeff Law  <law@redhat.com>
10144         PR tree-optimization/61009
10145         * tree-ssa-threadedge.c (thread_through_normal_block): Return a
10146         tri-state rather than a boolean.  When a block is too big to
10147         thread through, inform caller via negative return value.
10148         (thread_across_edge): If a block was too big for normal threading,
10149         then it's too big for a joiner too, so remove temporary equivalences
10150         and return immediately.
10152 2014-05-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10153             Matthias Klose  <doko@ubuntu.com>
10155         PR driver/61106
10156         * optc-gen.awk: Fix option handling for -Wunused-parameter.
10158 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
10160         PR target/59952
10161         * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
10163 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
10165         PR target/61092
10166         * config/alpha/alpha.c: Include gimple-iterator.h.
10167         (alpha_gimple_fold_builtin): New function.  Move
10168         ALPHA_BUILTIN_UMULH folding from ...
10169         (alpha_fold_builtin): ... here.
10170         (TARGET_GIMPLE_FOLD_BUILTIN): New define.
10172 2014-05-08  Wei Mi  <wmi@google.com>
10174         PR target/58066
10175         * config/i386/i386.c (ix86_compute_frame_layout): Update
10176         preferred_stack_boundary for call, expanded from tls descriptor.
10177         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
10178         to depend on SP register.
10179         (*tls_local_dynamic_base_32_gnu): Ditto.
10180         (*tls_local_dynamic_32_once): Ditto.
10181         (tls_global_dynamic_64_<mode>): Set
10182         ix86_tls_descriptor_calls_expanded_in_cfun.
10183         (tls_local_dynamic_base_64_<mode>): Ditto.
10184         (tls_global_dynamic_32): Set
10185         ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
10186         to depend on SP register.
10187         (tls_local_dynamic_base_32): Ditto.
10189 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10191         * config/arm/arm_neon.h: Update comment.
10192         * config/arm/neon-docgen.ml: Delete.
10193         * config/arm/neon-gen.ml: Delete.
10194         * doc/arm-neon-intrinsics.texi: Update comment.
10196 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10198         * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
10199         and v4sf versions.
10200         (vand, vorr, veor, vorn, vbic): Remove.
10201         * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
10202         iterator.
10203         (neon_vsub_unspec): Likewise.
10204         (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
10206 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10208         * config/arm/arm_neon.h (vadd_s8): GNU C implementation
10209         (vadd_s16): Likewise.
10210         (vadd_s32): Likewise.
10211         (vadd_f32): Likewise.
10212         (vadd_u8): Likewise.
10213         (vadd_u16): Likewise.
10214         (vadd_u32): Likewise.
10215         (vadd_s64): Likewise.
10216         (vadd_u64): Likewise.
10217         (vaddq_s8): Likewise.
10218         (vaddq_s16): Likewise.
10219         (vaddq_s32): Likewise.
10220         (vaddq_s64): Likewise.
10221         (vaddq_f32): Likewise.
10222         (vaddq_u8): Likewise.
10223         (vaddq_u16): Likewise.
10224         (vaddq_u32): Likewise.
10225         (vaddq_u64): Likewise.
10226         (vmul_s8): Likewise.
10227         (vmul_s16): Likewise.
10228         (vmul_s32): Likewise.
10229         (vmul_f32): Likewise.
10230         (vmul_u8): Likewise.
10231         (vmul_u16): Likewise.
10232         (vmul_u32): Likewise.
10233         (vmul_p8): Likewise.
10234         (vmulq_s8): Likewise.
10235         (vmulq_s16): Likewise.
10236         (vmulq_s32): Likewise.
10237         (vmulq_f32): Likewise.
10238         (vmulq_u8): Likewise.
10239         (vmulq_u16): Likewise.
10240         (vmulq_u32): Likewise.
10241         (vsub_s8): Likewise.
10242         (vsub_s16): Likewise.
10243         (vsub_s32): Likewise.
10244         (vsub_f32): Likewise.
10245         (vsub_u8): Likewise.
10246         (vsub_u16): Likewise.
10247         (vsub_u32): Likewise.
10248         (vsub_s64): Likewise.
10249         (vsub_u64): Likewise.
10250         (vsubq_s8): Likewise.
10251         (vsubq_s16): Likewise.
10252         (vsubq_s32): Likewise.
10253         (vsubq_s64): Likewise.
10254         (vsubq_f32): Likewise.
10255         (vsubq_u8): Likewise.
10256         (vsubq_u16): Likewise.
10257         (vsubq_u32): Likewise.
10258         (vsubq_u64): Likewise.
10259         (vand_s8): Likewise.
10260         (vand_s16): Likewise.
10261         (vand_s32): Likewise.
10262         (vand_u8): Likewise.
10263         (vand_u16): Likewise.
10264         (vand_u32): Likewise.
10265         (vand_s64): Likewise.
10266         (vand_u64): Likewise.
10267         (vandq_s8): Likewise.
10268         (vandq_s16): Likewise.
10269         (vandq_s32): Likewise.
10270         (vandq_s64): Likewise.
10271         (vandq_u8): Likewise.
10272         (vandq_u16): Likewise.
10273         (vandq_u32): Likewise.
10274         (vandq_u64): Likewise.
10275         (vorr_s8): Likewise.
10276         (vorr_s16): Likewise.
10277         (vorr_s32): Likewise.
10278         (vorr_u8): Likewise.
10279         (vorr_u16): Likewise.
10280         (vorr_u32): Likewise.
10281         (vorr_s64): Likewise.
10282         (vorr_u64): Likewise.
10283         (vorrq_s8): Likewise.
10284         (vorrq_s16): Likewise.
10285         (vorrq_s32): Likewise.
10286         (vorrq_s64): Likewise.
10287         (vorrq_u8): Likewise.
10288         (vorrq_u16): Likewise.
10289         (vorrq_u32): Likewise.
10290         (vorrq_u64): Likewise.
10291         (veor_s8): Likewise.
10292         (veor_s16): Likewise.
10293         (veor_s32): Likewise.
10294         (veor_u8): Likewise.
10295         (veor_u16): Likewise.
10296         (veor_u32): Likewise.
10297         (veor_s64): Likewise.
10298         (veor_u64): Likewise.
10299         (veorq_s8): Likewise.
10300         (veorq_s16): Likewise.
10301         (veorq_s32): Likewise.
10302         (veorq_s64): Likewise.
10303         (veorq_u8): Likewise.
10304         (veorq_u16): Likewise.
10305         (veorq_u32): Likewise.
10306         (veorq_u64): Likewise.
10307         (vbic_s8): Likewise.
10308         (vbic_s16): Likewise.
10309         (vbic_s32): Likewise.
10310         (vbic_u8): Likewise.
10311         (vbic_u16): Likewise.
10312         (vbic_u32): Likewise.
10313         (vbic_s64): Likewise.
10314         (vbic_u64): Likewise.
10315         (vbicq_s8): Likewise.
10316         (vbicq_s16): Likewise.
10317         (vbicq_s32): Likewise.
10318         (vbicq_s64): Likewise.
10319         (vbicq_u8): Likewise.
10320         (vbicq_u16): Likewise.
10321         (vbicq_u32): Likewise.
10322         (vbicq_u64): Likewise.
10323         (vorn_s8): Likewise.
10324         (vorn_s16): Likewise.
10325         (vorn_s32): Likewise.
10326         (vorn_u8): Likewise.
10327         (vorn_u16): Likewise.
10328         (vorn_u32): Likewise.
10329         (vorn_s64): Likewise.
10330         (vorn_u64): Likewise.
10331         (vornq_s8): Likewise.
10332         (vornq_s16): Likewise.
10333         (vornq_s32): Likewise.
10334         (vornq_s64): Likewise.
10335         (vornq_u8): Likewise.
10336         (vornq_u16): Likewise.
10337         (vornq_u32): Likewise.
10338         (vornq_u64): Likewise.
10340 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10342         * wide-int.cc (UTItype): Define.
10343         (UDWtype): Define for appropriate W_TYPE_SIZE.
10345 2014-05-08  Marc Glisse  <marc.glisse@inria.fr>
10347         PR tree-optimization/59100
10348         * tree-ssa-phiopt.c: Include tree-inline.h.
10349         (neutral_element_p, absorbing_element_p): New functions.
10350         (value_replacement): Handle conditional binary operations with a
10351         neutral or absorbing element.
10353 2014-05-08  Richard Biener  <rguenther@suse.de>
10355         * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
10356         folding the expression.
10357         (valueize_expr): Remove.
10358         (visit_reference_op_load): Do not valueize the result of
10359         vn_get_expr_for.
10360         (simplify_binary_expression): Likewise.
10361         (simplify_unary_expression): Likewise.
10363 2014-05-08  Richard Biener  <rguenther@suse.de>
10365         * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
10366         looking at TYPE_ARG_TYPES.
10368 2014-05-08  Richard Biener  <rguenther@suse.de>
10370         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
10371         pointer propagation special-case.
10373 2014-05-08  Bin Cheng  <bin.cheng@arm.com>
10375         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
10376         core part of address expressions.
10378 2014-05-08  Alan Modra  <amodra@gmail.com>
10380         PR target/60737
10381         * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
10382         loads and stores when -mno-strict-align at any alignment.
10383         (expand_block_clear): Similarly.  Also correct calculation of
10384         instruction count.
10386 2014-05-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
10388         PR middle-end/39246
10389         * tree-complex.c (expand_complex_move): Keep line info when expanding
10390         complex move.
10391         * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
10392         of complex expression. Use new argument to display correct location
10393         for values coming from phi statement.
10394         (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
10395         (warn_uninitialized_phi): Pass location of phi argument to
10396         warn_uninit.
10397         * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
10398         COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
10400 2014-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
10402         * config/rs6000/predicates.md (indexed_address_mem): New.
10403         * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
10404         load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
10405         fpstore_ux, fpstore_u.
10406         (sign_extend, indexed, update): New.
10407         (cell_micro): Adjust.
10408         (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
10409         *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
10410         *movsi_internal1, *movsi_internal1_single, *movhi_internal,
10411         *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
10412         *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
10413         *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
10414         *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
10415         *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
10416         *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
10417         *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
10418         *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
10419         *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
10420         *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
10421         *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
10422         *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
10424         * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
10425         * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
10426         *vsx_extract_<mode>_store): Adjust.
10427         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
10428         is_cracked_insn, insn_must_be_first_in_group,
10429         insn_must_be_last_in_group): Adjust.
10431         * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
10432         Adjust.
10433         * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
10434         ppc440-fpstore): Adjust.
10435         * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
10436         ppc476-fpstore): Adjust.
10437         * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
10438         ppc601-fpstore): Adjust.
10439         * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
10440         Adjust.
10441         * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
10442         Adjust.
10443         * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
10444         ppc7450-fpstore): Adjust.
10445         * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
10446         * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
10447         * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
10448         Adjust.
10449         * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
10450         cell-fpload, cell-fpload-update, cell-store, cell-store-update,
10451         cell-fpstore, cell-fpstore-update): Adjust.
10452         * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
10453         ppce300c3_store, ppce300c3_fpstore): Adjust.
10454         * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
10455         e500mc_fpstore): Adjust.
10456         * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
10457         e500mc64_store, e500mc64_fpstore): Adjust.
10458         * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
10459         e5500_fpstore): Adjust.
10460         * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
10461         e6500_fpstore): Adjust.
10462         * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
10463         Adjust.
10464         * config/rs6000/power4.md (power4-load, power4-load-ext,
10465         power4-load-ext-update, power4-load-ext-update-indexed,
10466         power4-load-update-indexed, power4-load-update, power4-fpload,
10467         power4-fpload-update, power4-store, power4-store-update,
10468         power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
10469         Adjust.
10470         * config/rs6000/power5.md (power5-load, power5-load-ext,
10471         power5-load-ext-update, power5-load-ext-update-indexed,
10472         power5-load-update-indexed, power5-load-update, power5-fpload,
10473         power5-fpload-update, power5-store, power5-store-update,
10474         power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
10475         Adjust.
10476         * config/rs6000/power6.md (power6-load, power6-load-ext,
10477         power6-load-update, power6-load-update-indexed,
10478         power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
10479         power6-fpload-update, power6-store, power6-store-update,
10480         power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
10481         Adjust.
10482         * config/rs6000/power7.md (power7-load, power7-load-ext,
10483         power7-load-update, power7-load-update-indexed,
10484         power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
10485         power7-fpload-update, power7-store, power7-store-update,
10486         power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
10487         Adjust.
10488         * config/rs6000/power8.md (power8-load, power8-load-update,
10489         power8-load-ext, power8-load-ext-update, power8-fpload,
10490         power8-fpload-update, power8-store, power8-store-update-indexed,
10491         power8-fpstore, power8-fpstore-update): Adjust.
10492         * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
10493         Adjust.
10494         * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
10495         titan_lsu_store, titan_lsu_fpstore): Adjust.
10496         * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
10498 2014-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
10500         PR target/60884
10501         * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
10502         unrolled byte insns.  Emit address increments after move insns.
10504 2014-05-07  David Malcolm  <dmalcolm@redhat.com>
10506         * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
10507         const_gimple, rather than a gimple.
10508         (gimple_call_builtin_p): Likewise, for the three variants.
10510         * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
10511         (gimple_call_builtin_p): Likewise, for the three variants.
10513 2014-05-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
10515         PR tree-optimization/61095
10516         * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
10518 2014-05-07  Richard Biener  <rguenther@suse.de>
10520         PR tree-optimization/61034
10521         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
10522         (maybe_skip_until): Use translate to take into account
10523         lattices when trying to do disambiguations.
10524         (get_continuation_for_phi_1): Likewise.
10525         (get_continuation_for_phi): Adjust for added translate arguments.
10526         (walk_non_aliased_vuses): Likewise.
10527         * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
10528         (walk_non_aliased_vuses): Likewise.
10529         (call_may_clobber_ref_p_1): Declare.
10530         * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
10531         calls.  Stop early if we are only supposed to disambiguate.
10532         * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
10534 2014-05-07  Joern Rennecke  <joern.rennecke@embecosm.com>
10536         * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
10537         Emit an error when the function has arguments.
10539 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
10541         * cfgloop.h (unswitch_loops): Remove.
10542         * doc/passes.texi: Remove references to loop-unswitch.c
10543         * timevar.def (TV_LOOP_UNSWITCH): Remove.
10545 2014-05-07  Evgeny Stupachenko  <evstupac@gmail.com>
10547         * tree-vect-data-refs.c (vect_grouped_load_supported): New
10548         check for loads group of length 3.
10549         (vect_permute_load_chain): New permutations for loads group of
10550         length 3.
10551         * tree-vect-stmts.c (vect_model_load_cost): Change cost
10552         of vec_perm_shuffle for the new permutations.
10554 2014-05-07  Alan Lawrence  <alan.lawrence@arm.com>
10556         * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
10557         vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
10558         vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
10559         vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
10560         vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
10561         vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
10562         vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
10563         vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
10565 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
10567         * loop-unswitch.c: Delete.
10569 2014-05-07  Richard Biener  <rguenther@suse.de>
10571         * config.gcc: Always set need_64bit_hwint to yes.
10573 2014-05-07  Chung-Ju Wu  <jasonwucj@gmail.com>
10575         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
10576         of using optimize_size.
10578 2014-05-06  Mike Stump  <mikestump@comcast.net>
10580         * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
10582 2014-05-06  Joseph Myers  <joseph@codesourcery.com>
10584         * config/i386/sse.md (*mov<mode>_internal)
10585         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
10586         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
10587         (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
10588         (*<code><mode>3, *andnot<mode>3<mask_name>)
10589         (<mask_codefor><code><mode>3<mask_name>): Only consider
10590         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
10592 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
10594         Revert:
10595         2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
10597         * lra-constraints.c (valid_address_p): Move earlier in file.
10598         Add a constraint argument to the address_info version.
10599         (satisfies_memory_constraint_p): New function.
10600         (satisfies_address_constraint_p): Likewise.
10601         (process_alt_operands, curr_insn_transform): Use them.
10602         (process_address): Pass the constraint to valid_address_p when
10603         checking address operands.
10605 2014-05-06  Richard Sandiford  <r.sandiford@uk.ibm.com>
10607         * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
10608         to their respective blocks.  Fix inadvertent use of "node".
10610 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
10612         * emit-rtl.c (init_derived_machine_modes): New functionm, split
10613         out from...
10614         (init_emit_once): ...here.
10615         * rtl.h (init_derived_machine_modes): Declare.
10616         * toplev.c (do_compile): Call it even if no_backend.
10618 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
10619             Mike Stump  <mikestump@comcast.net>
10620             Richard Sandiford  <rdsandiford@googlemail.com>
10621             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10623         * alias.c (ao_ref_from_mem): Use wide-int interfaces.
10624         (rtx_equal_for_memref_p): Update comment.
10625         (adjust_offset_for_component_ref): Use wide-int interfaces.
10626         * builtins.c (get_object_alignment_2): Likewise.
10627         (c_readstr): Likewise.
10628         (target_char_cast): Add comment.
10629         (determine_block_size): Use wide-int interfaces.
10630         (expand_builtin_signbit): Likewise.
10631         (fold_builtin_int_roundingfn): Likewise.
10632         (fold_builtin_bitop): Likewise.
10633         (fold_builtin_bswap): Likewise.
10634         (fold_builtin_logarithm): Use signop.
10635         (fold_builtin_pow): Likewise.
10636         (fold_builtin_memory_op): Use wide-int interfaces.
10637         (fold_builtin_object_size): Likewise.
10638         * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
10639         nb_iterations_estimate.
10640         (record_niter_bound): Use wide-int interfaces.
10641         (get_estimated_loop_iterations_int): Likewise.
10642         (get_estimated_loop_iterations): Likewise.
10643         (get_max_loop_iterations): Likewise.
10644         * cfgloop.h: Include wide-int.h.
10645         (struct nb_iter_bound): Change bound to widest_int.
10646         (struct loop): Change nb_iterations_upper_bound and
10647         nb_iterations_estimate to widest_int.
10648         (record_niter_bound): Switch to use widest_int.
10649         (get_estimated_loop_iterations): Likewise.
10650         (get_max_loop_iterations): Likewise.
10651         (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
10652         update for wide-int.
10653         * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
10654         * combine.c (try_combine): Likewise.
10655         (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
10656         * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
10657         interfaces.
10658         (aarch64_float_const_representable_p): Likewise.
10659         * config/arc/arc.c: Include wide-int.h.
10660         (arc_can_use_doloop_p): Use wide-int interfaces.
10661         * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
10662         (vfp3_const_double_index): Likewise.
10663         * config/avr/avr.c (avr_out_round): Likewise.
10664         (avr_fold_builtin): Likewise.
10665         * config/bfin/bfin.c (bfin_local_alignment): Likewise.
10666         (bfin_can_use_doloop_p): Likewise.
10667         * config/darwin.c (darwin_mergeable_constant_section): Likewise.
10668         (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
10669         * config/i386/i386.c: Include wide-int.h.
10670         (ix86_data_alignment): Use wide-int interfaces.
10671         (ix86_local_alignment): Likewise.
10672         (ix86_emit_swsqrtsf): Update real_from_integer.
10673         * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
10674         * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
10675         * config/rs6000/predicates.md (any_operand): Add const_wide_int.
10676         (zero_constant): Likewise.
10677         (input_operand): Likewise.
10678         (splat_input_operand): Likewise.
10679         (non_logical_cint_operand): Change const_double to const_wide_int.
10680         * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
10681         (easy_altivec_constant): Remove comment.
10682         (paired_expand_vector_init): Use CONSTANT_P.
10683         (rs6000_legitimize_address): Handle CONST_WIDE_INT.
10684         (rs6000_emit_move): Update checks.
10685         (rs6000_aggregate_candidate): Use wide-int interfaces.
10686         (rs6000_expand_ternop_builtin): Likewise.
10687         (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
10688         (rs6000_assemble_integer): Likewise.
10689         (rs6000_hash_constant): Likewise.
10690         (output_toc): Likewise.
10691         (rs6000_rtx_costs): Likewise.
10692         (rs6000_emit_swrsqrt); Update call to real_from_integer.
10693         * config/rs6000/rs6000-c.c: Include wide-int.h.
10694         (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
10695         * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
10696         * config/rs6000/rs6000.md: Use const_scalar_int_operand.
10697         Handle CONST_WIDE_INT.
10698         * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
10699         Use tree_fits_uhwi_p.
10700         * config/sparc/sparc.c: Include wide-int.h.
10701         (sparc_fold_builtin): Use wide-int interfaces.
10702         * config/vax/vax.c: Include wide-int.h.
10703         (vax_float_literal): Use real_from_integer.
10704         * coretypes.h (struct hwivec_def): New.
10705         (hwivec): New.
10706         (const_hwivec): New.
10707         * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
10708         (equiv_constant): Handle CONST_WIDE_INT.
10709         * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
10710         (cselib_hash_rtx): Handle CONST_WIDE_INT.
10711         * dbxout.c (stabstr_U): Use wide-int interfaces.
10712         (dbxout_type): Update to use cst_fits_shwi_p.
10713         * defaults.h (LOG2_BITS_PER_UNIT): Define.
10714         (TARGET_SUPPORTS_WIDE_INT): Add default.
10715         * dfp.c: Include wide-int.h.
10716         (decimal_real_to_integer2): Use wide-int interfaces and rename to
10717         decimal_real_to_integer.
10718         * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
10719         decimal_real_to_integer.
10720         * doc/generic.texi (Constant expressions): Update for wide_int.
10721         * doc/rtl.texi (const_double): Likewise.
10722         (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
10723         (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
10724         * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
10725         (REAL_VALUE_FROM_INT): Remove.
10726         (TARGET_SUPPORTS_WIDE_INT): New.
10727         * doc/tm.texi: Regenerate.
10728         * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
10729         * double-int.h: Include wide-int.h.
10730         (struct wi::int_traits): New.
10731         * dwarf2out.c (get_full_len): New.
10732         (dw_val_equal_p): Add case dw_val_class_wide_int.
10733         (size_of_loc_descr): Likewise.
10734         (output_loc_operands): Likewise.
10735         (insert_double): Remove.
10736         (insert_wide_int): New.
10737         (add_AT_wide): New.
10738         (print_die): Add case dw_val_class_wide_int.
10739         (attr_checksum): Likewise.
10740         (attr_checksum_ordered): Likewise.
10741         (same_dw_val_p): Likewise.
10742         (size_of_die): Likewise.
10743         (value_format): Likewise.
10744         (output_die): Likewise.
10745         (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
10746         Use wide-int.
10747         (clz_loc_descriptor): Use wide-int interfaces.
10748         (mem_loc_descriptor): Likewise.  Handle CONST_WIDE_INT.
10749         (loc_descriptor): Use wide-int interfaces.  Handle CONST_WIDE_INT.
10750         (round_up_to_align): Use wide-int interfaces.
10751         (field_byte_offset): Likewise.
10752         (insert_double): Rename to insert_wide_int.  Use wide-int interfaces.
10753         (add_const_value_attribute): Handle CONST_WIDE_INT.  Update
10754         CONST_DOUBLE handling.  Use wide-int interfaces.
10755         (add_bound_info): Use tree_fits_uhwi_p.  Use wide-int interfaces.
10756         (gen_enumeration_type_die): Use add_AT_wide.
10757         (hash_loc_operands): Add case dw_val_class_wide_int.
10758         (compare_loc_operands): Likewise.
10759         * dwarf2out.h: Include wide-int.h.
10760         (wide_int_ptr): New.
10761         (enum dw_val_class): Add dw_val_class_wide_int.
10762         (struct dw_val_struct): Add val_wide.
10763         * emit-rtl.c (const_wide_int_htab): New.
10764         (const_wide_int_htab_hash): New.
10765         (const_wide_int_htab_eq): New.
10766         (lookup_const_wide_int): New.
10767         (const_double_htab_hash): Use wide-int interfaces.
10768         (const_double_htab_eq): Likewise.
10769         (rtx_to_double_int): Conditionally compile for wide-int.
10770         (immed_double_int_const): Rename to immed_wide_int_const and
10771         update for wide-int.
10772         (immed_double_const): Conditionally compile for wide-int.
10773         (init_emit_once): Use wide-int interfaces.
10774         * explow.c (plus_constant): Likewise.
10775         * expmed.c (mask_rtx): Move further up file.  Use wide-int interfaces.
10776         (lshift_value): Use wide-int interfaces.
10777         (expand_mult): Likewise.
10778         (choose_multiplier): Likewise.
10779         (expand_smod_pow2): Likewise.
10780         (make_tree): Likewise.
10781         * expr.c (convert_modes): Consolidate handling of constants.
10782         Use wide-int interfaces.
10783         (emit_group_load_1): Add note.
10784         (store_expr): Update comment.
10785         (get_inner_reference): Use wide-int interfaces.
10786         (expand_constructor): Update comment.
10787         (expand_expr_real_2): Use wide-int interfaces.
10788         (expand_expr_real_1): Likewise.
10789         (reduce_to_bit_field_precision): Likewise.
10790         (const_vector_from_tree): Likewise.
10791         * final.c: Include wide-int-print.h.
10792         (output_addr_const): Handle CONST_WIDE_INT.  Use CONST_DOUBLE_AS_INT_P.
10793         * fixed-value.c: Include wide-int.h.
10794         (fixed_from_string): Use wide-int interfaces.
10795         (fixed_to_decimal): Likewise.
10796         (fixed_convert_from_real): Likewise.
10797         (real_convert_from_fixed): Likewise.
10798         * fold-const.h (mem_ref_offset): Return an offset_int.
10799         (div_if_zero_remainder): Remove code parameter.
10800         * fold-const.c (div_if_zero_remainder): Remove code parameter.
10801         Use wide-int interfaces.
10802         (may_negate_without_overflow_p): Use wide-int interfaces.
10803         (negate_expr_p): Likewise.
10804         (fold_negate_expr): Likewise.
10805         (int_const_binop_1): Likewise.
10806         (const_binop): Likewise.
10807         (fold_convert_const_int_from_int): Likewise.
10808         (fold_convert_const_int_from_real): Likewise.
10809         (fold_convert_const_int_from_fixed): Likewise.
10810         (fold_convert_const_fixed_from_int): Likewise.
10811         (all_ones_mask_p): Take an unsigned size.  Use wide-int interfaces.
10812         (sign_bit_p): Use wide-int interfaces.
10813         (make_range_step): Likewise.
10814         (build_range_check): Likewise.  Pass an integer of the correct type
10815         instead of using integer_one_node.
10816         (range_predecessor): Pass an integer of the correct type instead
10817         of using integer_one_node.
10818         (range_successor): Likewise.
10819         (merge_ranges): Likewise.
10820         (unextend): Use wide-int interfaces.
10821         (extract_muldiv_1): Likewise.
10822         (fold_div_compare): Likewise.
10823         (fold_single_bit_test): Likewise.
10824         (fold_sign_changed_comparison): Likewise.
10825         (try_move_mult_to_index): Update calls to div_if_zero_remainder.
10826         (fold_plusminus_mult_expr): Use wide-int interfaces.
10827         (native_encode_int): Likewise.
10828         (native_interpret_int): Likewise.
10829         (fold_unary_loc): Likewise.
10830         (pointer_may_wrap_p): Likewise.
10831         (size_low_cst): Likewise.
10832         (mask_with_tz): Likewise.
10833         (fold_binary_loc): Likewise.
10834         (fold_ternary_loc): Likewise.
10835         (multiple_of_p): Likewise.
10836         (tree_call_nonnegative_warnv_p): Update calls to
10837         tree_int_cst_min_precision and real_from_integer.
10838         (fold_negate_const): Use wide-int interfaces.
10839         (fold_abs_const): Likewise.
10840         (fold_relational_const): Use tree_int_cst_lt.
10841         (round_up_loc): Use wide-int interfaces.
10842         * genemit.c (gen_exp): Add CONST_WIDE_INT case.
10843         * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
10844         * gengtype.c: Remove include of double-int.h.
10845         (do_typedef): Use wide-int interfaces.
10846         (open_base_files): Add wide-int.h.
10847         (main): Add offset_int and widest_int typedefs.
10848         * gengtype-lex.l: Handle "^".
10849         (CXX_KEYWORD): Add "static".
10850         * gengtype-parse.c (require3): New.
10851         (require_template_declaration): Handle constant template arguments
10852         and nested templates.
10853         * gengtype-state.c: Don't include "double-int.h".
10854         * genpreds.c (write_one_predicate_function): Update comment.
10855         (write_tm_constrs_h): Add check for hval and lval use in
10856         CONST_WIDE_INT.
10857         * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
10858         (add_to_sequence): Likewise.
10859         * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
10860         and const_double_operand.
10861         * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
10862         interfaces.
10863         * gimple-fold.c (get_base_constructor): Likewise.
10864         (fold_array_ctor_reference): Likewise.
10865         (fold_nonarray_ctor_reference): Likewise.
10866         (fold_const_aggregate_ref_1): Likewise.
10867         (gimple_val_nonnegative_real_p): Likewise.
10868         (gimple_fold_indirect_ref): Likewise.
10869         * gimple-pretty-print.c (dump_ssaname_info): Likewise.
10870         * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
10871         (struct slsr_cand_d): Change index to be widest_int.
10872         (struct incr_info_d): Change incr to be widest_int.
10873         (alloc_cand_and_find_basis): Use wide-int interfaces.
10874         (slsr_process_phi): Likewise.
10875         (backtrace_base_for_ref): Likewise.  Return a widest_int.
10876         (restructure_reference): Take a widest_int instead of a double_int.
10877         (slsr_process_ref): Use wide-int interfaces.
10878         (create_mul_ssa_cand): Likewise.
10879         (create_mul_imm_cand): Likewise.
10880         (create_add_ssa_cand): Likewise.
10881         (create_add_imm_cand): Take a widest_int instead of a double_int.
10882         (slsr_process_add): Use wide-int interfaces.
10883         (slsr_process_cast): Likewise.
10884         (slsr_process_copy): Likewise.
10885         (dump_candidate): Likewise.
10886         (dump_incr_vec): Likewise.
10887         (replace_ref): Likewise.
10888         (cand_increment): Likewise.  Return a widest_int.
10889         (cand_abs_increment): Likewise.
10890         (replace_mult_candidate): Take a widest_int instead of a double_int.
10891         (replace_unconditional_candidate): Use wide-int interfaces.
10892         (incr_vec_index): Take a widest_int instead of a double_int.
10893         (create_add_on_incoming_edge): Likewise.
10894         (create_phi_basis): Use wide-int interfaces.
10895         (replace_conditional_candidate): Likewise.
10896         (record_increment): Take a widest_int instead of a double_int.
10897         (record_phi_increments): Use wide-int interfaces.
10898         (phi_incr_cost): Take a widest_int instead of a double_int.
10899         (lowest_cost_path): Likewise.
10900         (total_savings): Likewise.
10901         (analyze_increments): Use wide-int interfaces.
10902         (ncd_with_phi): Take a widest_int instead of a double_int.
10903         (ncd_of_cand_and_phis): Likewise.
10904         (nearest_common_dominator_for_cands): Likewise.
10905         (insert_initializers): Use wide-int interfaces.
10906         (all_phi_incrs_profitable): Likewise.
10907         (replace_one_candidate): Likewise.
10908         (replace_profitable_candidates): Likewise.
10909         * godump.c: Include wide-int-print.h.
10910         (go_output_typedef): Use wide-int interfaces.
10911         * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
10912         * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
10913         (build_loop_iteration_domains): Likewise.
10914         * hooks.h: Include wide-int.h rather than double-int.h.
10915         (hook_bool_dint_dint_uint_bool_true): Delete.
10916         (hook_bool_wint_wint_uint_bool_true): Declare.
10917         * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
10918         (hook_bool_wint_wint_uint_bool_true): New.
10919         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
10920         interfaces.
10921         (ubsan_expand_si_overflow_mul_check): Likewise.
10922         * ipa-devirt.c (get_polymorphic_call_info): Likewise.
10923         * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
10924         (get_ancestor_addr_info): Likewise.
10925         (ipa_modify_call_arguments): Likewise.
10926         * loop-doloop.c (doloop_modify): Likewise.
10927         (doloop_optimize): Likewise.
10928         * loop-iv.c (iv_number_of_iterations): Likewise.
10929         * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
10930         (unroll_loop_constant_iterations): Likewise.
10931         (decide_unroll_runtime_iterations): Likewise.
10932         (unroll_loop_runtime_iterations): Likewise.
10933         (decide_peel_simple): Likewise.
10934         (decide_unroll_stupid): Likewise.
10935         * lto-streamer-in.c (streamer_read_wi): Add.
10936         (input_cfg): Use wide-int interfaces.
10937         (lto_input_tree_1): Likewise.
10938         * lto-streamer-out.c (streamer_write_wi): Add.
10939         (hash_tree): Use wide-int interfaces.
10940         (output_cfg): Likewise.
10941         * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
10942         (GTFILES): Add wide-int.h and signop.h.
10943         (TAGS): Look for .cc files too.
10944         * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
10945         * optabs.c (expand_subword_shift): Likewise.
10946         (expand_doubleword_shift): Likewise.
10947         (expand_absneg_bit): Likewise.
10948         (expand_copysign_absneg): Likewise.
10949         (expand_copysign_bit): Likewise.
10950         * postreload.c (reload_cse_simplify_set): Likewise.
10951         * predict.c (predict_iv_comparison): Likewise.
10952         * pretty-print.h: Include wide-int-print.h.
10953         (pp_wide_int) New.
10954         * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
10955         * print-tree.c: Include wide-int-print.h.
10956         (print_node_brief): Use wide-int interfaces.
10957         (print_node): Likewise.
10958         * read-rtl.c (validate_const_wide_int): New.
10959         (read_rtx_code): Add CONST_WIDE_INT case.
10960         * real.c: Include wide-int.h.
10961         (real_to_integer2): Delete.
10962         (real_to_integer): New function, returning a wide_int.
10963         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
10964         (ten_to_ptwo): Update call to real_from_integer.
10965         (real_digit): Likewise.
10966         * real.h: Include signop.h, wide-int.h and insn-modes.h.
10967         (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
10968         (REAL_VALUE_TO_INT): Delete.
10969         (real_to_integer): Declare a wide-int form.
10970         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
10971         * recog.c (const_int_operand): Improve comment.
10972         (const_scalar_int_operand): New.
10973         (const_double_operand): Add a separate definition for CONST_WIDE_INT.
10974         * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
10975         (split_double): Likewise.
10976         * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
10977         (rtx_size): Likewise.
10978         (rtx_alloc_stat_v): New.
10979         (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
10980         (cwi_output_hex): New.
10981         (iterative_hash_rtx): Handle CONST_WIDE_INT.
10982         (cwi_check_failed_bounds): New.
10983         * rtl.def (CONST_WIDE_INT): New.
10984         * rtl.h: Include <utility> and wide-int.h.
10985         (struct hwivec_def): New.
10986         (CWI_GET_NUM_ELEM): New.
10987         (CWI_PUT_NUM_ELEM): New.
10988         (struct rtx_def): Add num_elem and hwiv.
10989         (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
10990         (CASE_CONST_UNIQUE): Likewise.
10991         (CASE_CONST_ANY): Likewise.
10992         (CONST_SCALAR_INT_P): Likewise.
10993         (CONST_WIDE_INT_P): New.
10994         (CWI_ELT): New.
10995         (HWIVEC_CHECK): New.
10996         (cwi_check_failed_bounds): New.
10997         (CWI_ELT): New.
10998         (HWIVEC_CHECK): New.
10999         (CONST_WIDE_INT_VEC) New.
11000         (CONST_WIDE_INT_NUNITS) New.
11001         (CONST_WIDE_INT_ELT) New.
11002         (rtx_mode_t): New type.
11003         (wi::int_traits <rtx_mode_t>): New.
11004         (wi::shwi): New.
11005         (wi::min_value): New.
11006         (wi::max_value): New.
11007         (rtx_alloc_v) New.
11008         (const_wide_int_alloc): New.
11009         (immed_wide_int_const): New.
11010         * sched-vis.c (print_value): Handle CONST_WIDE_INT.
11011         * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
11012         * signop.h: New file.
11013         * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
11014         (simplify_const_unary_operation): Use wide-int interfaces.
11015         (simplify_binary_operation_1): Likewise.
11016         (simplify_const_binary_operation): Likewise.
11017         (simplify_const_relational_operation): Likewise.
11018         (simplify_immed_subreg): Likewise.
11019         * stmt.c (expand_case): Likewise.
11020         * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
11021         signop rather than a bool.
11022         * stor-layout.c (layout_type): Use wide-int interfaces.
11023         (initialize_sizetypes): Update calls to
11024         set_min_and_max_values_for_integral_type.
11025         (set_min_and_max_values_for_integral_type): Take a signop rather
11026         than a bool.  Use wide-int interfaces.
11027         (fixup_signed_type): Update accordingly.  Remove
11028         HOST_BITS_PER_DOUBLE_INT limit.
11029         (fixup_unsigned_type): Likewise.
11030         * system.h (STATIC_CONSTANT_P): New.
11031         (STATIC_ASSERT): New.
11032         * target.def (can_use_doloop_p): Take widest_ints rather than
11033         double_ints.
11034         * target.h: Include wide-int.h rather than double-int.h.
11035         * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
11036         than double_ints.
11037         * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
11038         rather than INT_CST_LT_UNSIGNED.
11039         (can_use_doloop_if_innermost): Take widest_ints rather than
11040         double_ints.
11041         * tree-affine.c: Include wide-int-print.h.
11042         (double_int_ext_for_comb): Delete.
11043         (wide_int_ext_for_comb): New.
11044         (aff_combination_zero): Use wide-int interfaces.
11045         (aff_combination_const): Take a widest_int instead of a double_int.
11046         (aff_combination_elt): Use wide-int interfaces.
11047         (aff_combination_scale): Take a widest_int instead of a double_int.
11048         (aff_combination_add_elt): Likewise.
11049         (aff_combination_add_cst): Likewise.
11050         (aff_combination_add): Use wide-int interfaces.
11051         (aff_combination_convert): Likewise.
11052         (tree_to_aff_combination): Likewise.
11053         (add_elt_to_tree): Take a widest_int instead of a double_int.
11054         (aff_combination_to_tree): Use wide-int interfaces.
11055         (aff_combination_remove_elt): Likewise.
11056         (aff_combination_add_product): Take a widest_int instead of
11057         a double_int.
11058         (aff_combination_mult): Use wide-int interfaces.
11059         (aff_combination_expand): Likewise.
11060         (double_int_constant_multiple_p): Delete.
11061         (wide_int_constant_multiple_p): New.
11062         (aff_combination_constant_multiple_p): Take a widest_int pointer
11063         instead of a double_int pointer.
11064         (print_aff): Use wide-int interfaces.
11065         (get_inner_reference_aff): Take a widest_int pointer
11066         instead of a double_int pointer.
11067         (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
11068         * tree-affine.h: Include wide-int.h.
11069         (struct aff_comb_elt): Change type of coef to widest_int.
11070         (struct affine_tree_combination): Change type of offset to widest_int.
11071         (double_int_ext_for_comb): Delete.
11072         (wide_int_ext_for_comb): New.
11073         (aff_combination_const): Use widest_int instead of double_int.
11074         (aff_combination_scale): Likewise.
11075         (aff_combination_add_elt): Likewise.
11076         (aff_combination_constant_multiple_p): Likewise.
11077         (get_inner_reference_aff): Likewise.
11078         (aff_comb_cannot_overlap_p): Likewise.
11079         (aff_combination_zero_p): Use wide-int interfaces.
11080         * tree.c: Include tree.h.
11081         (init_ttree): Use make_int_cst.
11082         (tree_code_size): Removed code for INTEGER_CST case.
11083         (tree_size): Add INTEGER_CST case.
11084         (make_node_stat): Update comment.
11085         (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
11086         (build_int_cst_type): Use wide-int interfaces.
11087         (double_int_to_tree): Likewise.
11088         (double_int_fits_to_tree_p): Delete.
11089         (force_fit_type_double): Delete.
11090         (force_fit_type): New.
11091         (int_cst_hash_hash): Use wide-int interfaces.
11092         (int_cst_hash_eq): Likewise.
11093         (build_int_cst_wide): Delete.
11094         (wide_int_to_tree): New.
11095         (cache_integer_cst): Use wide-int interfaces.
11096         (build_low_bits_mask): Likewise.
11097         (cst_and_fits_in_hwi): Likewise.
11098         (real_value_from_int_cst): Likewise.
11099         (make_int_cst_stat): New.
11100         (integer_zerop): Use wide_int interfaces.
11101         (integer_onep): Likewise.
11102         (integer_all_onesp): Likewise.
11103         (integer_pow2p): Likewise.
11104         (integer_nonzerop): Likewise.
11105         (tree_log2): Likewise.
11106         (tree_floor_log2): Likewise.
11107         (tree_ctz): Likewise.
11108         (int_size_in_bytes): Likewise.
11109         (mem_ref_offset): Return an offset_int rather than a double_int.
11110         (build_type_attribute_qual_variant): Use wide_int interfaces.
11111         (type_hash_eq): Likewise
11112         (tree_int_cst_equal): Likewise.
11113         (tree_int_cst_lt): Delete.
11114         (tree_int_cst_compare): Likewise.
11115         (tree_fits_shwi_p): Use wide_int interfaces.
11116         (tree_fits_uhwi_p): Likewise.
11117         (tree_int_cst_sign_bit): Likewise.
11118         (tree_int_cst_sgn): Likewise.
11119         (tree_int_cst_min_precision): Take a signop rather than a bool.
11120         (simple_cst_equal): Use wide_int interfaces.
11121         (compare_tree_int): Likewise.
11122         (iterative_hash_expr): Likewise.
11123         (int_fits_type_p): Likewise.  Use tree_int_cst_lt rather than
11124         INT_CST_LT.
11125         (get_type_static_bounds): Use wide_int interfaces.
11126         (tree_int_cst_elt_check_failed): New.
11127         (build_common_tree_nodes): Reordered to set prec before filling in
11128         value.
11129         (int_cst_value): Check cst_and_fits_in_hwi.
11130         (widest_int_cst_value): Use wide_int interfaces.
11131         (upper_bound_in_type): Likewise.
11132         (lower_bound_in_type): Likewise.
11133         (num_ending_zeros): Likewise.
11134         (drop_tree_overflow): Likewise.
11135         * tree-call-cdce.c (check_pow): Update call to real_from_integer.
11136         (gen_conditions_for_pow_cst_base): Likewise.
11137         * tree-cfg.c: Include wide-int.h and wide-int-print.h.
11138         (group_case_labels_stmt): Use wide-int interfaces.
11139         (verify_gimple_assign_binary): Likewise.
11140         (print_loop): Likewise.
11141         * tree-chrec.c (tree_fold_binomial): Likewise.
11142         * tree-core.h (struct tree_base): Add int_length.
11143         (struct tree_int_cst): Change rep of value.
11144         * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
11145         (dr_may_alias_p): Likewise.
11146         (max_stmt_executions_tree): Likewise.
11147         * tree.def (INTEGER_CST): Update comment.
11148         * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
11149         * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
11150         * tree-dump.c: Include wide-int.h and wide-int-print.h.
11151         (dequeue_and_dump): Use wide-int interfaces.
11152         * tree.h: Include wide-int.h.
11153         (NULL_TREE): Moved to earlier loc in file.
11154         (TREE_INT_CST_ELT_CHECK): New.
11155         (tree_int_cst_elt_check_failed): New.
11156         (TYPE_SIGN): New.
11157         (TREE_INT_CST): Delete.
11158         (TREE_INT_CST_LOW): Use wide-int interfaces.
11159         (TREE_INT_CST_HIGH): Delete.
11160         (TREE_INT_CST_NUNITS): New.
11161         (TREE_INT_CST_EXT_NUNITS): Likewise.
11162         (TREE_INT_CST_OFFSET_NUNITS): Likewise.
11163         (TREE_INT_CST_ELT): Likewise.
11164         (INT_CST_LT): Delete.
11165         (tree_int_cst_elt_check): New (two forms).
11166         (type_code_size): Update comment.
11167         (make_int_cst_stat, make_int_cst): New.
11168         (tree_to_double_int): Delete.
11169         (double_int_fits_to_tree_p): Delete.
11170         (force_fit_type_double): Delete.
11171         (build_int_cstu): Replace with out-of-line function.
11172         (build_int_cst_wide): Delete.
11173         (tree_int_cst_lt): Define inline.
11174         (tree_int_cst_le): New.
11175         (tree_int_cst_compare): Define inline.
11176         (tree_int_cst_min_precision): Take a signop rather than a bool.
11177         (wi::int_traits <const_tree>): New.
11178         (wi::int_traits <tree>): New.
11179         (wi::extended_tree): New.
11180         (wi::int_traits <wi::extended_tree>): New.
11181         (wi::to_widest): New.
11182         (wi::to_offset): New.
11183         (wi::fits_to_tree_p): New.
11184         (wi::min_value): New.
11185         (wi::max_value): New.
11186         * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
11187         (copy_tree_body_r): Likewise.
11188         * tree-object-size.c (compute_object_offset): Likewise.
11189         (addr_object_size): Likewise.
11190         * tree-predcom.c: Include wide-int-print.h.
11191         (struct dref_d): Change type of offset to widest_int.
11192         (dump_dref): Call wide-int printer.
11193         (aff_combination_dr_offset): Use wide-int interfaces.
11194         (determine_offset): Take a widest_int pointer rather than a
11195         double_int pointer.
11196         (split_data_refs_to_components): Use wide-int interfaces.
11197         (suitable_component_p): Likewise.
11198         (order_drefs): Likewise.
11199         (add_ref_to_chain): Likewise.
11200         (valid_initializer_p): Likewise.
11201         (determine_roots_comp): Likewise.
11202         * tree-pretty-print.c: Include wide-int-print.h.
11203         (dump_generic_node): Use wide-int interfaces.
11204         * tree-sra.c (sra_ipa_modify_expr): Likewise.
11205         * tree-ssa-address.c (addr_for_mem_ref): Likewise.
11206         (move_fixed_address_to_symbol): Likewise.
11207         (move_hint_to_base): Likewise.
11208         (move_pointer_to_base): Likewise.
11209         (move_variant_to_index): Likewise.
11210         (most_expensive_mult_to_index): Likewise.
11211         (addr_to_parts): Likewise.
11212         (copy_ref_info): Likewise.
11213         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
11214         (indirect_refs_may_alias_p): Likewise.
11215         (stmt_kills_ref_p_1): Likewise.
11216         * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
11217         * tree-ssa-ccp.c: Update comment at top of file.  Include
11218         wide-int-print.h.
11219         (struct prop_value_d): Change type of mask to widest_int.
11220         (extend_mask): New function.
11221         (dump_lattice_value): Use wide-int interfaces.
11222         (get_default_value): Likewise.
11223         (set_constant_value): Likewise.
11224         (set_value_varying): Likewise.
11225         (valid_lattice_transition): Likewise.
11226         (set_lattice_value): Likewise.
11227         (value_to_double_int): Delete.
11228         (value_to_wide_int): New.
11229         (get_value_from_alignment): Use wide-int interfaces.
11230         (get_value_for_expr): Likewise.
11231         (do_dbg_cnt): Likewise.
11232         (ccp_finalize): Likewise.
11233         (ccp_lattice_meet): Likewise.
11234         (bit_value_unop_1): Use widest_ints rather than double_ints.
11235         (bit_value_binop_1): Likewise.
11236         (bit_value_unop): Use wide-int interfaces.
11237         (bit_value_binop): Likewise.
11238         (bit_value_assume_aligned): Likewise.
11239         (evaluate_stmt): Likewise.
11240         (ccp_fold_stmt): Likewise.
11241         (visit_cond_stmt): Likewise.
11242         (ccp_visit_stmt): Likewise.
11243         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
11244         (constant_pointer_difference): Likewise.
11245         (associate_pointerplus): Likewise.
11246         (combine_conversions): Likewise.
11247         * tree-ssa-loop.h: Include wide-int.h.
11248         (struct tree_niter_desc): Change type of max to widest_int.
11249         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
11250         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
11251         (remove_redundant_iv_tests): Likewise.
11252         (canonicalize_loop_induction_variables): Likewise.
11253         * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
11254         (constant_multiple_of): Take a widest_int pointer instead of
11255         a double_int pointer.
11256         (get_computation_aff): Use wide-int interfaces.
11257         (ptr_difference_cost): Likewise.
11258         (difference_cost): Likewise.
11259         (get_loop_invariant_expr_id): Likewise.
11260         (get_computation_cost_at): Likewise.
11261         (iv_elimination_compare_lt): Likewise.
11262         (may_eliminate_iv): Likewise.
11263         * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
11264         instead of double_int.
11265         (max_loop_iterations): Likewise.
11266         (max_stmt_executions): Likewise.
11267         (estimated_stmt_executions): Likewise.
11268         * tree-ssa-loop-niter.c: Include wide-int-print.h.
11269         (split_to_var_and_offset): Use wide-int interfaces.
11270         (determine_value_range): Likewise.
11271         (bound_difference_of_offsetted_base): Likewise.
11272         (bounds_add): Take a widest_int instead of a double_int.
11273         (number_of_iterations_ne_max): Use wide-int interfaces.
11274         (number_of_iterations_ne): Likewise.
11275         (number_of_iterations_lt_to_ne): Likewise.
11276         (assert_loop_rolls_lt): Likewise.
11277         (number_of_iterations_lt): Likewise.
11278         (number_of_iterations_le): Likewise.
11279         (number_of_iterations_cond): Likewise.
11280         (number_of_iterations_exit): Likewise.
11281         (finite_loop_p): Likewise.
11282         (derive_constant_upper_bound_assign): Likewise.
11283         (derive_constant_upper_bound): Return a widest_int.
11284         (derive_constant_upper_bound_ops): Likewise.
11285         (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
11286         (record_estimate): Take a widest_int rather than a double_int.
11287         (record_nonwrapping_iv): Use wide-int interfaces.
11288         (double_int_cmp): Delete.
11289         (wide_int_cmp): New.
11290         (bound_index): Take a widest_int rather than a double_int.
11291         (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
11292         (maybe_lower_iteration_bound): Likewise.
11293         (estimate_numbers_of_iterations_loop): Likewise.
11294         (estimated_loop_iterations): Take a widest_int pointer than than
11295         a double_int pointer.
11296         (estimated_loop_iterations_int): Use wide-int interfaces.
11297         (max_loop_iterations): Take a widest_int pointer than than
11298         a double_int pointer.
11299         (max_loop_iterations_int): Use wide-int interfaces.
11300         (max_stmt_executions): Take a widest_int pointer than than
11301         a double_int pointer.
11302         (estimated_stmt_executions): Likewise.
11303         (n_of_executions_at_most): Use wide-int interfaces.
11304         (scev_probably_wraps_p): Likewise.
11305         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
11306         to real_to_integer.
11307         * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
11308         interfaces.
11309         * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
11310         double_ints.  Adjust for trailing_wide_ints <3> representation.
11311         (set_nonzero_bits): Likewise.
11312         (get_range_info): Return wide_ints rather than double_ints.
11313         Adjust for trailing_wide_ints <3> representation.
11314         (get_nonzero_bits): Likewise.
11315         (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
11316         representation.
11317         * tree-ssanames.h (struct range_info_def): Replace min, max and
11318         nonzero_bits with a trailing_wide_ints <3>.
11319         (set_range_info): Use wide_int_refs rather than double_ints.
11320         (set_nonzero_bits): Likewise.
11321         (get_range_info): Return wide_ints rather than double_ints.
11322         (get_nonzero_bits): Likewise.
11323         * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
11324         * tree-ssa-pre.c (phi_translate_1): Likewise.
11325         * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
11326         (acceptable_pow_call): Likewise.
11327         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
11328         interfaces.
11329         (vn_reference_fold_indirect): Likewise.
11330         (vn_reference_maybe_forwprop_address): Likewise.
11331         (valueize_refs_1): Likewise.
11332         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
11333         * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
11334         tree_int_cst_lt and tree_int_cst_le.
11335         * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
11336         interfaces.
11337         (streamer_alloc_tree): Likewise.
11338         * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
11339         (streamer_write_tree_header): Likewise.
11340         (streamer_write_integer_cst): Likewise.
11341         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
11342         (build_constructors): Likewise.
11343         (array_value_type): Likewise.
11344         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
11345         (vect_check_gather): Likewise.
11346         * tree-vect-generic.c (build_replicated_const): Likewise.
11347         (expand_vector_divmod): Likewise.
11348         * tree-vect-loop.c (vect_transform_loop): Likewise.
11349         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
11350         (vect_do_peeling_for_alignment): Likewise.
11351         * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
11352         * tree-vrp.c: Include wide-int.h.
11353         (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
11354         (extract_range_from_assert): Use wide-int interfaces.
11355         (vrp_int_const_binop): Likewise.
11356         (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
11357         double_int pointers.
11358         (ranges_from_anti_range): Use wide-int interfaces.
11359         (quad_int_cmp): Delete.
11360         (quad_int_pair_sort): Likewise.
11361         (extract_range_from_binary_expr_1): Use wide-int interfaces.
11362         (extract_range_from_unary_expr_1): Likewise.
11363         (adjust_range_with_scev): Likewise.
11364         (masked_increment): Take and return wide_ints rather than double_ints.
11365         (register_edge_assert_for_2): Use wide-int interfaces.
11366         (check_array_ref): Likewise.
11367         (search_for_addr_array): Likewise.
11368         (maybe_set_nonzero_bits): Likewise.
11369         (union_ranges): Pass an integer of the correct type instead of
11370         using integer_one_node.
11371         (intersect_ranges): Likewise.
11372         (simplify_truth_ops_using_ranges): Likewise.
11373         (simplify_bit_ops_using_ranges): Use wide-int interfaces.
11374         (range_fits_type_p): Likewise.
11375         (simplify_cond_using_ranges): Likewise.  Take a signop rather than
11376         a bool.
11377         (simplify_conversion_using_ranges): Use wide-int interfaces.
11378         (simplify_float_conversion_using_ranges): Likewise.
11379         (vrp_finalize): Likewise.
11380         * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
11381         (gimple_stringops_transform): Likewise.
11382         * varasm.c (decode_addr_const): Likewise.
11383         (const_hash_1): Likewise.
11384         (const_rtx_hash_1): Likewise
11385         (output_constant): Likewise.
11386         (array_size_for_constructor): Likewise.
11387         (output_constructor_regular_field): Likewise.
11388         (output_constructor_bitfield): Likewise.
11389         * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
11390         * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
11391         GENERATOR_FILEs.
11392         * gencheck.c: Define BITS_PER_UNIT.
11393         * wide-int.cc: New.
11394         * wide-int.h: New.
11395         * wide-int-print.cc: New.
11396         * wide-int-print.h: New.
11398 2014-05-06  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
11400         * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
11402 2014-05-06  Richard Biener  <rguenther@suse.de>
11404         * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
11405         TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
11406         (TODO_verify_all): Adjust.
11407         * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
11408         TODO_verify_stmts and TODO_verify_rtl_sharing.
11409         * bb-reorder.c: Likewise.
11410         * cfgexpand.c: Likewise.
11411         * cprop.c: Likewise.
11412         * cse.c: Likewise.
11413         * function.c: Likewise.
11414         * fwprop.c: Likewise.
11415         * gcse.c: Likewise.
11416         * gimple-ssa-isolate-paths.c: Likewise.
11417         * gimple-ssa-strength-reduction.c: Likewise.
11418         * ipa-split.c: Likewise.
11419         * loop-init.c: Likewise.
11420         * loop-unroll.c: Likewise.
11421         * lower-subreg.c: Likewise.
11422         * modulo-sched.c: Likewise.
11423         * postreload-gcse.c: Likewise.
11424         * predict.c: Likewise.
11425         * recog.c: Likewise.
11426         * sched-rgn.c: Likewise.
11427         * store-motion.c: Likewise.
11428         * tracer.c: Likewise.
11429         * trans-mem.c: Likewise.
11430         * tree-call-cdce.c: Likewise.
11431         * tree-cfg.c: Likewise.
11432         * tree-cfgcleanup.c: Likewise.
11433         * tree-complex.c: Likewise.
11434         * tree-eh.c: Likewise.
11435         * tree-emutls.c: Likewise.
11436         * tree-if-conv.c: Likewise.
11437         * tree-into-ssa.c: Likewise.
11438         * tree-loop-distribution.c: Likewise.
11439         * tree-object-size.c: Likewise.
11440         * tree-parloops.c: Likewise.
11441         * tree-pass.h: Likewise.
11442         * tree-sra.c: Likewise.
11443         * tree-ssa-ccp.c: Likewise.
11444         * tree-ssa-copy.c: Likewise.
11445         * tree-ssa-copyrename.c: Likewise.
11446         * tree-ssa-dce.c: Likewise.
11447         * tree-ssa-dom.c: Likewise.
11448         * tree-ssa-dse.c: Likewise.
11449         * tree-ssa-forwprop.c: Likewise.
11450         * tree-ssa-ifcombine.c: Likewise.
11451         * tree-ssa-loop-ch.c: Likewise.
11452         * tree-ssa-loop-ivcanon.c: Likewise.
11453         * tree-ssa-loop.c: Likewise.
11454         * tree-ssa-math-opts.c: Likewise.
11455         * tree-ssa-phiopt.c: Likewise.
11456         * tree-ssa-phiprop.c: Likewise.
11457         * tree-ssa-pre.c: Likewise.
11458         * tree-ssa-reassoc.c: Likewise.
11459         * tree-ssa-sink.c: Likewise.
11460         * tree-ssa-strlen.c: Likewise.
11461         * tree-ssa-tail-merge.c: Likewise.
11462         * tree-ssa-uncprop.c: Likewise.
11463         * tree-switch-conversion.c: Likewise.
11464         * tree-tailcall.c: Likewise.
11465         * tree-vect-generic.c: Likewise.
11466         * tree-vectorizer.c: Likewise.
11467         * tree-vrp.c: Likewise.
11468         * tsan.c: Likewise.
11469         * var-tracking.c: Likewise.
11470         * bt-load.c: Likewise.
11471         * cfgcleanup.c: Likewise.
11472         * combine-stack-adj.c: Likewise.
11473         * combine.c: Likewise.
11474         * compare-elim.c: Likewise.
11475         * config/epiphany/resolve-sw-modes.c: Likewise.
11476         * config/i386/i386.c: Likewise.
11477         * config/mips/mips.c: Likewise.
11478         * config/s390/s390.c: Likewise.
11479         * config/sh/sh_treg_combine.cc: Likewise.
11480         * config/sparc/sparc.c: Likewise.
11481         * dce.c: Likewise.
11482         * dse.c: Likewise.
11483         * final.c: Likewise.
11484         * ifcvt.c: Likewise.
11485         * mode-switching.c: Likewise.
11486         * passes.c: Likewise.
11487         * postreload.c: Likewise.
11488         * ree.c: Likewise.
11489         * reg-stack.c: Likewise.
11490         * regcprop.c: Likewise.
11491         * regrename.c: Likewise.
11492         * web.c: Likewise.
11494 2014-05-06  Richard Biener  <rguenther@suse.de>
11496         PR middle-end/61070
11497         * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
11498         * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
11500 2014-05-05  Jan Hubicka  <hubicka@ucw.cz>
11502         PR ipa/60965
11503         * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
11505 2014-05-05  Radovan Obradovic  <robradovic@mips.com>
11506             Tom de Vries  <tom@codesourcery.com>
11508         * target.def (call_fusage_contains_non_callee_clobbers): New
11509         DEFHOOKPOD.
11510         * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
11511         Hooks to @menu.
11512         (@node Miscellaneous Register Hooks): New node.
11513         (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
11514         * doc/tm.texi: Regenerate.
11516 2014-05-05  Marek Polacek  <polacek@redhat.com>
11518         PR driver/61065
11519         * opts.c (common_handle_option): Call error_at instead of warning_at.
11521 2014-05-05  Richard Biener  <rguenther@suse.de>
11523         * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
11524         from last_verified if update_ssa ran.  Move TODO_verify_rtl_sharing
11525         under the TODO_verify_il umbrella.
11527 2014-05-05  Richard Biener  <rguenther@suse.de>
11529         * passes.c (execute_function_todo): Move TODO_verify_flow under
11530         the TODO_verify_ul umbrella.
11532 2014-05-05  Richard Biener  <rguenther@suse.de>
11534         PR middle-end/61010
11535         * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
11536         X & CST away from a CST that is the mask of a mode.
11538 2014-05-05  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
11540         * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
11541         int argument to enum machine_mode.
11542         (picochip_class_max_nregs): Ditto.
11543         * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
11544         (picochip_class_max_nregs): Ditto.
11546 2014-05-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11548         * target.def: Add new target hook.
11549         * doc/tm.texi: Regenerate.
11550         * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
11551         * targhooks.c (default_keep_leaf_when_profiled): New function.
11553         * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
11554         (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
11556 2014-05-05  Bin Cheng  <bin.cheng@arm.com>
11558         PR tree-optimization/60363
11559         * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
11560         (copy_phi_args): New parameters.  Call get_value_locus_in_path.
11561         (update_destination_phis): New parameter.
11562         (create_edge_and_update_destination_phis): Ditto.
11563         (ssa_fix_duplicate_block_edges): Pass new arguments.
11564         (thread_single_edge): Ditto.
11566 2014-05-04  Peter Bergner  <bergner@vnet.ibm.com>
11568         * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
11569         (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
11570         (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
11571         * config/rs6000/rs6000-builtin.def (BU_MISC_1):
11572         Use RS6000_BTM_HARD_FLOAT.
11573         (BU_MISC_2): Likewise.
11574         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
11575         RS6000_BTM_HARD_FLOAT.
11576         (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
11577         is explicitly used.
11578         (rs6000_invalid_builtin): Add hard floating builtin support.
11579         (rs6000_expand_builtin): Relax the gcc_assert to allow the new
11580         hard float builtins.
11581         (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
11583 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
11585         * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
11586         Add missing function* argument.
11588 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
11590         * lra-constraints.c (valid_address_p): Move earlier in file.
11591         Add a constraint argument to the address_info version.
11592         (satisfies_memory_constraint_p): New function.
11593         (satisfies_address_constraint_p): Likewise.
11594         (process_alt_operands, curr_insn_transform): Use them.
11595         (process_address): Pass the constraint to valid_address_p when
11596         checking address operands.
11598 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
11600         * config/mips/mips.c (mips_isa_rev): New variable.
11601         (mips_set_architecture): Set it.
11602         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
11603         from mips_isa_rev.
11604         (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
11605         (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
11606         (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
11607         (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
11608         (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
11609         conditions in terms of mips_isa_rev.
11610         (mips_isa_rev): Declare.
11612 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
11614         * config/sh/sh-mem.cc: Use tabs instead of spaces.
11615         (prob_unlikely, prob_likely): Make variables const.
11617 2014-05-03  Denis Chertykov  <chertykov@gmail.com>
11619         * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
11621 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
11623         * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
11625 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
11627         * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
11628         (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
11629         * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
11630         functions.
11631         (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
11632         sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
11633         sh_pass_in_reg_p.
11634         Replace usage of ROUND_REG with sh_round_reg.
11635         Use CEIL instead of ROUND_ADVANCE.
11637 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
11639         PR target/61026
11640         * config/sh/sh.c: Include stdlib headers before everything else.
11642 2014-05-02  Jakub Jelinek  <jakub@redhat.com>
11644         * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
11645         GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
11646         (gimplify_adjust_omp_clauses): Simd region is never
11647         directly nested in combined parallel.  Instead, for linear
11648         with copyin/copyout, if in combined for simd loop, make decl
11649         firstprivate/lastprivate on OMP_FOR.
11650         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
11651         expand_omp_for_static_chunk): When setting endvar, also set
11652         fd->loop.v to the same value.
11654 2014-05-02  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
11656         * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
11658 2014-05-02  Alan Lawrence  <alan.lawrence@arm.com>
11660         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
11661         expression.
11663 2014-05-02  Marek Polacek  <polacek@redhat.com>
11665         * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
11667 2014-05-02  Kito Cheng  <kito@0xlab.org>
11669         * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
11670         to a C expression marco.
11671         * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
11672         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
11673         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
11674         * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
11675         HONOR_REG_ALLOC_ORDER.
11676         * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
11678 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
11680         * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
11682 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
11684         * config/arc/arc.c (arc_select_cc_mode): Fix typo.
11686 2014-05-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
11688         * tree-if-conv.c (is_cond_scalar_reduction): New function.
11689         (convert_scalar_cond_reduction): Likewise.
11690         (predicate_scalar_phi): Add recognition and transformation
11691         of simple conditioanl reduction to be vectorizable.
11693 2014-05-01  Marek Polacek  <polacek@redhat.com>
11695         PR c/43245
11696         * doc/invoke.texi: Document -Wdiscarded-qualifiers.
11698 2014-04-30  Alan Lawrence  <alan.lawrence@arm.com>
11700         * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
11701         vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
11702         vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
11703         vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
11704         vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
11705         vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
11706         vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
11707         vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
11709 2014-04-30  Joern Rennecke  <joern.rennecke@embecosm.com>
11711         * config/arc/arc.opt (mlra): Move comment above option name
11712         to avoid mis-parsing as language options.
11714 2014-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11716         * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
11717         * config/sol2.h: ... here.
11718         * config/sol2-10.h: Remove.
11720         * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
11721         (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
11722         (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
11723         (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
11724         (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
11725         * config/sol2.h: ... here.
11726         (SECTION_NAME_FORMAT): Don't redefine.
11727         (STARTFILE_ARCH32_SPEC): Rename to ...
11728         (STARTFILE_ARCH_SPEC): ... this.
11729         (ASM_OUTPUT_ALIGNED_COMMON): Move ...
11730         * config/sparc/sol2.h: ... here.
11731         (SECTION_NAME_FORMAT): Don't undef.
11732         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
11733         (SUBTARGET_EXTRA_SPECS): Remove.
11734         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
11736         * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
11737         (MD_STARTFILE_PREFIX): Remove.
11738         (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
11739         (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
11740         (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
11741         (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
11742         (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
11743         (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
11744         * config/i386/sol2.h: ... here.
11745         (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
11746         * config/i386/sol2-bi.h: Remove.
11747         * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
11748         (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
11750         * config/i386/t-sol2-64: Rename to ...
11751         * config/i386/t-sol2: ... this.
11752         * config/sparc/t-sol2-64: Rename to ...
11753         * config/sparc/t-sol2: ... this.
11755         * config.gcc (*-*-solaris2*): Split sol2_tm_file into
11756         sol2_tm_file_head, sol2_tm_file_tail.
11757         Include ${cpu_type}/sol2.h before sol2.h.
11758         Remove sol2-10.h.
11759         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
11760         i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
11761         Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
11762         Reflect i386/t-sol2-64 renaming.
11763         (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
11764         Reflect sparc/t-sol2-64 renaming.
11766 2014-04-30  Richard Biener  <rguenther@suse.de>
11768         * passes.c (execute_function_todo): Move TODO_verify_stmts
11769         and TODO_verify_ssa under the TODO_verify_il umbrella.
11770         * tree-ssa.h (verify_ssa): Adjust prototype.
11771         * tree-ssa.c (verify_ssa): Add parameter to tell whether
11772         we should verify SSA operands.
11773         * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
11774         * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
11775         whether we should verify whether not throwing stmts have EH info.
11776         * graphite-scop-detection.c (create_sese_edges): Adjust.
11777         * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
11778         * tree-eh.c (lower_try_finally_switch): Do not add the
11779         default case label twice.
11781 2014-04-30  Marek Polacek  <polacek@redhat.com>
11783         * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
11784         * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
11785         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
11786         * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
11788 2014-04-29  Alan Lawrence  <alan.lawrence@arm.com>
11790         * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
11791         vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
11792         vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
11793         vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
11794         vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
11795         vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
11796         vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
11797         vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
11799 2014-04-29  David Malcolm  <dmalcolm@redhat.com>
11801         * tree-cfg.c (dump_function_to_file): Dump the return type of
11802         functions, in a line to itself before the function body, mimicking
11803         the layout of a C function.
11805 2014-04-29  Jakub Jelinek  <jakub@redhat.com>
11807         PR tree-optimization/60971
11808         * tree-tailcall.c (process_assignment): Reject conversions which
11809         reduce precision.
11811 2014-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
11813         * calls.c (initialize_argument_information): Always treat
11814         PUSH_ARGS_REVERSED as 1, simplify code accordingly.
11815         (expand_call): Likewise.
11816         (emit_library_call_calue_1): Likewise.
11817         * expr.c (PUSH_ARGS_REVERSED): Do not define.
11818         (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
11819         code accordingly.
11821 2014-04-29  Nick Clifton  <nickc@redhat.com>
11823         * config/msp430/msp430.md (umulsidi): Fix typo.
11824         (mulhisi3): Enable even inside interrupt handlers.
11825         * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
11826         bigger return address pushed in large mode.
11828 2014-04-29  Nick Clifton  <nickc@redhat.com>
11830         * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
11831         (arc_init_reg_tables): Use a machine_mode enum to iterate over
11832         available modes.
11833         * config/m32r/m32r.c (init_reg_tables): Likewise.
11834         * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
11835         enum to hold the modes.
11837 2014-04-29  Richard Biener  <rguenther@suse.de>
11839         * dominance.c (free_dominance_info): Add overload with
11840         function parameter.
11841         (dom_info_state): Likewise.
11842         (dom_info_available_p): Likewise.
11843         * basic-block.h (free_dominance_info, dom_info_state,
11844         dom_info_available_p): Declare overloads.
11845         * passes.c (execute_function_todo): Verify that verifiers
11846         don't change dominator info state.  Drop dominator info
11847         for IPA pass invocations.
11848         * cgraph.c (release_function_body): Restore asserts that
11849         dominator information is released.
11851 2014-04-29  Patrick Palka  <patrick@parcs.ath.cx>
11853         * doc/invoke.texi: Fix typo.
11854         * tree-vrp.c: Fix typos.
11855         * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
11857 2014-04-29  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
11859         * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
11861 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
11863         * config/aarch64/aarch64-builtins.c
11864         (aarch64_types_storestruct_lane_qualifiers): New.
11865         (TYPES_STORESTRUCT_LANE): Likewise.
11866         * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
11867         (st3_lane): Likewise.
11868         (st4_lane): Likewise.
11869         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
11870         (vec_store_lanesci_lane<mode>): Likewise.
11871         (vec_store_lanesxi_lane<mode>): Likewise.
11872         (aarch64_st2_lane<VQ:mode>): Likewise.
11873         (aarch64_st3_lane<VQ:mode>): Likewise.
11874         (aarch64_st4_lane<VQ:mode>): Likewise.
11875         * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
11876         * config/aarch64/arm_neon.h
11877         (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
11878         use new macro arguments.
11879         (__ST3_LANE_FUNC): Likewise.
11880         (__ST4_LANE_FUNC): Likewise.
11881         * config/aarch64/iterators.md (V_TWO_ELEM): New.
11882         (V_THREE_ELEM): Likewise.
11883         (V_FOUR_ELEM): Likewise.
11885 2014-04-28  David Malcolm  <dmalcolm@redhat.com>
11887         * doc/gimple.texi: Replace the description of the now-defunct
11888         union gimple_statement_d with a diagram showing the
11889         gimple_statement_base class hierarchy and its relationships to
11890         the GSS_ and GIMPLE_ enums.
11892 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
11894         * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
11895         * config/aarch64/aarch64.c
11896         (aarch64_cannot_change_mode_class): Weaken conditions.
11897         (aarch64_modes_tieable_p): New.
11898         * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
11900 2014-04-28  Pat Haugen  <pthaugen@us.ibm.com>
11902         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
11903         (loadsync_<mode>): Change mode.
11904         (load_quadpti, store_quadpti): New.
11905         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
11906         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
11908 2014-04-28  Martin Jambor  <mjambor@suse.cz>
11910         * tree-sra.c (sra_modify_expr): Generate new memory accesses with
11911         same alias type as the original statement.
11912         (subreplacement_assignment_data): New type.
11913         (handle_unscalarized_data_in_subtree): New type of parameter,
11914         generate new memory accesses with same alias type as the original
11915         statement.
11916         (load_assign_lhs_subreplacements): Likewise.
11917         (sra_modify_constructor_assign): Generate new memory accesses with
11918         same alias type as the original statement.
11920 2014-04-28  Richard Biener  <rguenther@suse.de>
11922         * tree-pass.h (TODO_verify_il): Define.
11923         (TODO_verify_all): Complete properly.
11924         * passes.c (execute_function_todo): Move existing loop-closed
11925         SSA verification under TODO_verify_il.
11926         (execute_one_pass): Trigger TODO_verify_il at todo-after time.
11927         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
11928         Fix tree sharing issue.
11930 2014-04-28  Richard Biener  <rguenther@suse.de>
11932         PR middle-end/60092
11933         * builtins.def (DEF_C11_BUILTIN): Add.
11934         (BUILT_IN_ALIGNED_ALLOC): Likewise.
11935         * coretypes.h (enum function_class): Add function_c11_misc.
11936         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
11937         BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
11938         (call_may_clobber_ref_p_1): Likewise.
11939         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
11940         (mark_all_reaching_defs_necessary_1): Likewise.
11941         (propagate_necessity): Likewise.
11942         (eliminate_unnecessary_stmts): Likewise.
11943         * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
11945 2014-04-28  Richard Biener  <rguenther@suse.de>
11947         * tree-vrp.c (vrp_var_may_overflow): Remove.
11948         (vrp_visit_phi_node): Rather than bumping to +-INF possibly
11949         with overflow immediately bump to one before that value and
11950         let iteration figure out overflow status.
11952 2014-04-28  Richard Biener  <rguenther@suse.de>
11954         * configure.ac: Do valgrind header checks unconditionally.
11955         Add --enable-valgrind-annotations.
11956         * system.h: Guard valgrind header inclusion with
11957         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
11958         * alloc-pool.c (pool_alloc, pool_free): Use
11959         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
11960         to guard possibly dead code.
11961         * config.in: Regenerated.
11962         * configure: Likewise.
11964 2014-04-28  Jeff Law  <law@redhat.com>
11966         PR tree-optimization/60902
11967         * tree-ssa-threadedge.c
11968         (record_temporary_equivalences_from_stmts_at_dest): Only iterate
11969         over real defs when invalidating outputs from statements that do not
11970         produce useful outputs for threading.
11972 2014-04-28  Richard Biener  <rguenther@suse.de>
11974         PR tree-optimization/60979
11975         * graphite-scop-detection.c (scopdet_basic_block_info): Reject
11976         SCOPs that end in a block with a successor with abnormal
11977         predecessors.
11979 2014-04-28  Richard Biener  <rguenther@suse.de>
11981         * tree-pass.h (execute_pass_list): Adjust prototype.
11982         * passes.c (pass_manager::execute_early_local_passes): Adjust.
11983         (do_per_function): Change callback signature, push all actual
11984         work to the callbals.
11985         (do_per_function_toporder): Likewise.
11986         (execute_function_dump): Adjust.
11987         (execute_function_todo): Likewise.
11988         (clear_last_verified): Likewise.
11989         (verify_curr_properties): Likewise.
11990         (update_properties_after_pass): Likewise.
11991         (execute_pass_list_1): Split out from ...
11992         (execute_pass_list): ... here.  Adjust.
11993         (execute_ipa_pass_list): Likewise.
11994         * cgraphunit.c (cgraph_add_new_function): Adjust.
11995         (analyze_function): Likewise.
11996         (expand_function): Likewise.
11997         * cgraph.c (release_function_body): Free dominance info
11998         here instead of asserting it was magically freed elsewhere.
12000 2014-04-28  Eric Botcazou  <ebotcazou@adacore.com>
12002         * configure.ac: Tweak GAS check for LEON instructions on SPARC.
12003         * configure: Regenerate.
12004         * config/sparc/sparc.opt (muser-mode): New option.
12005         * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
12006         for LEON3.
12007         (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
12008         * doc/invoke.texi (SPARC options): Document -muser-mode.
12010 2014-04-27  Richard Sandiford  <rdsandiford@googlemail.com>
12012         * cselib.c (find_slot_memmode): Delete.
12013         (cselib_hasher): Change compare_type to a struct.
12014         (cselib_hasher::equal): Update accordingly.  Don't expect wrapped
12015         constants.
12016         (preserve_constants_and_equivs): Adjust for new compare_type.
12017         (cselib_find_slot): Likewise.  Take the mode of the rtx as argument.
12018         (wrap_constant): Delete.
12019         (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
12021 2014-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
12023         * doc/install.texi (Building with profile feedback): Remove
12024         outdated sentence.
12026 2014-04-26  Tom de Vries  <tom@codesourcery.com>
12028         * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
12029         array accesses.
12031 2014-04-25  Cary Coutant  <ccoutant@google.com>
12033         PR debug/60929
12034         * dwarf2out.c (should_move_die_to_comdat): A type definition
12035         can contain a subprogram definition, but don't move it to a
12036         comdat unit.
12037         (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
12038         (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
12039         from original DIE.
12040         (clone_tree_hash): Rename to...
12041         (clone_tree_partial): ...this; change callers.  Copy
12042         DW_TAG_subprogram DIEs as declarations.
12043         (copy_decls_walk): Don't copy children of a declaration into a
12044         type unit.
12046 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
12048         PR target/60969
12049         * config/i386/i386.md (*movsf_internal): Set MODE to SI for
12050         alternative 12.
12052 2014-04-25  Jiong Wang  <jiong.wang@arm.com>
12054         * config/arm/predicates.md (call_insn_operand): Add long_call check.
12055         * config/arm/arm.md (sibcall, sibcall_value): Force the address to
12056         reg for long_call.
12057         * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
12058         restriction.
12060 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12062         * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
12064 2014-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12066         PR tree-optimization/60930
12067         * gimple-ssa-strength-reduction.c (create_mul_imm_cand):  Reject
12068         creating a multiply candidate by folding two constant
12069         multiplicands when the result overflows.
12071 2014-04-25  Jakub Jelinek  <jakub@redhat.com>
12073         PR tree-optimization/60960
12074         * tree-vect-generic.c (expand_vector_operation): Only call
12075         expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
12077 2014-04-25  Tom de Vries  <tom@codesourcery.com>
12079         * expr.c (clobber_reg_mode): New function.
12080         * expr.h (clobber_reg): New function.
12082 2014-04-25  Tom de Vries  <tom@codesourcery.com>
12084         * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
12085         clobbers.
12087 2014-04-25  Radovan Obradovic  <robradovic@mips.com>
12088             Tom de Vries  <tom@codesourcery.com>
12090         * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
12091         handle.
12092         * rtl.h (find_all_hard_reg_sets): Add bool parameter.
12093         * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
12094         new argument to find_all_hard_reg_sets call.
12096 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12098         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
12099         Use HOST_WIDE_INT_C for mask literal.
12100         (aarch_rev16_shleft_mask_imm_p): Likewise.
12102 2014-04-25  Eric Botcazou  <ebotcazou@adacore.com>
12104         PR target/60941
12105         * config/sparc/sparc.md (ashlsi3_extend): Delete.
12107 2014-04-25  Marc Glisse  <marc.glisse@inria.fr>
12109         PR preprocessor/56540
12110         * config/i386/i386-c.c (ix86_target_macros): Define
12111         __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
12113 2014-04-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12115         * configure.ac (tga_func): Remove.
12116         (LIB_TLS_SPEC): Remove.
12117         * configure: Regenerate.
12118         * config.in: Regenerate.
12119         * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
12121 2014-04-25  Richard Biener  <rguenther@suse.de>
12123         PR ipa/60912
12124         * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
12125         call stmt use/clobber sets during stmt walk instead of
12126         walking the possibly incomplete set of caller edges.
12128 2014-04-25  Richard Biener  <rguenther@suse.de>
12130         PR ipa/60911
12131         * passes.c (apply_ipa_transforms): Inline into only caller ...
12132         (execute_one_pass): ... here.  Properly bring in function
12133         bodies for nodes we want to apply IPA transforms to.
12135 2014-04-24  Cong Hou  <congh@google.com>
12137         PR tree-optimization/60896
12138         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
12139         all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
12140         (vect_mark_pattern_stmts): Set the def type of all statements in
12141         PATTERN_DEF_SEQ as vect_internal_def.
12143 2014-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
12145         * doc/extend.texi (PowerPC Built-in Functions): Document new
12146         powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
12147         (PowerPC AltiVec/VSX Built-in Functions): Likewise.
12149         * config/rs6000/predicates.md (const_0_to_3_operand): New
12150         predicate to match 0..3 integer constants.
12152         * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
12153         to support adding miscellaneous builtin functions.
12154         (BU_DFP_MISC_2): Likewise.
12155         (BU_P7_MISC_1): Likewise.
12156         (BU_P7_MISC_2): Likewise.
12157         (BU_P8V_MISC_3): Likewise.
12158         (BU_MISC_1): Likewise.
12159         (BU_MISC_2): Likewise.
12160         (DIVWE): Add extended divide builtin functions.
12161         (DIVWEO): Likewise.
12162         (DIVWEU): Likewise.
12163         (DIVWEUO): Likewise.
12164         (DIVDE): Likewise.
12165         (DIVDEO): Likewise.
12166         (DIVDEU): Likewise.
12167         (DIVDEUO): Likewise.
12168         (DXEX): Add decimal floating-point builtin functions.
12169         (DXEXQ): Likewise.
12170         (DDEDPD): Likewise.
12171         (DDEDPDQ): Likewise.
12172         (DENBCD): Likewise.
12173         (DENBCDQ): Likewise.
12174         (DIEX): Likewise.
12175         (DIEXQ): Likewise.
12176         (DSCLI): Likewise.
12177         (DSCLIQ): Likewise.
12178         (DSCRI): Likewise.
12179         (DSCRIQ): Likewise.
12180         (CDTBCD): Add new BCD builtin functions.
12181         (CBCDTD): Likewise.
12182         (ADDG6S): Likewise.
12183         (BCDADD): Likewise.
12184         (BCDADD_LT): Likewise.
12185         (BCDADD_EQ): Likewise.
12186         (BCDADD_GT): Likewise.
12187         (BCDADD_OV): Likewise.
12188         (BCDSUB): Likewise.
12189         (BCDSUB_LT): Likewise.
12190         (BCDSUB_EQ): Likewise.
12191         (BCDSUB_GT): Likewise.
12192         (BCDSUB_OV): Likewise.
12193         (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
12194         (UNPACK_TD): Likewise.
12195         (PACK_TF): Likewise.
12196         (UNPACK_TF): Likewise.
12197         (UNPACK_TF_0): Likewise.
12198         (UNPACK_TF_1): Likewise.
12199         (PACK_V1TI): Likewise.
12200         (UNPACK_V1TI): Likewise.
12202         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
12203         support for decimal floating point builtin functions.
12204         (rs6000_expand_ternop_builtin): Add checks for the new builtin
12205         functions that take constant arguments.
12206         (rs6000_invalid_builtin): Add decimal floating point builtin support.
12207         (rs6000_init_builtins): Setup long double, _Decimal64, and
12208         _Decimal128 types for new builtin functions.
12209         (builtin_function_type): Set the unsigned flags appropriately for
12210         the new builtin functions.
12211         (rs6000_opt_masks): Add support for decimal floating point builtin
12212         functions.
12214         * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
12215         floating point builtin functions.
12216         (RS6000_BTM_COMMON): Likewise.
12217         (RS6000_BTI_long_double): Likewise.
12218         (RS6000_BTI_dfloat64): Likewise.
12219         (RS6000_BTI_dfloat128): Likewise.
12220         (long_double_type_internal_node): Likewise.
12221         (dfloat64_type_internal_node): Likewise.
12222         (dfloat128_type_internal_node): Likewise.
12224         * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
12225         2.07 bcd arithmetic instructions.
12226         (UNSPEC_BCDSUB): Likewise.
12227         (UNSPEC_BCD_OVERFLOW): Likewise.
12228         (UNSPEC_BCD_ADD_SUB): Likewise.
12229         (bcd_add_sub): Likewise.
12230         (BCD_TEST): Likewise.
12231         (bcd<bcd_add_sub>): Likewise.
12232         (bcd<bcd_add_sub>_test): Likewise.
12233         (bcd<bcd_add_sub>_test2): Likewise.
12234         (bcd<bcd_add_sub>_<code>): Likewise.
12235         (peephole2 for combined bcd ops): Likewise.
12237         * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
12238         decimal floating point builtin functions.
12239         (UNSPEC_DENBCD): Likewise.
12240         (UNSPEC_DXEX): Likewise.
12241         (UNSPEC_DIEX): Likewise.
12242         (UNSPEC_DSCLI): Likewise.
12243         (UNSPEC_DSCRI): Likewise.
12244         (D64_D128): Likewise.
12245         (dfp_suffix): Likewise.
12246         (dfp_ddedpd_<mode>): Likewise.
12247         (dfp_denbcd_<mode>): Likewise.
12248         (dfp_dxex_<mode>): Likewise.
12249         (dfp_diex_<mode>): Likewise.
12250         (dfp_dscli_<mode>): Likewise.
12251         (dfp_dscri_<mode>): Likewise.
12253         * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
12254         builtin functions.
12255         (UNSPEC_CDTBCD): Likewise.
12256         (UNSPEC_CBCDTD): Likewise.
12257         (UNSPEC_DIVE): Add support for new extended divide builtin functions.
12258         (UNSPEC_DIVEO): Likewise.
12259         (UNSPEC_DIVEU): Likewise.
12260         (UNSPEC_DIVEUO): Likewise.
12261         (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
12262         pack/unpack 128-bit types.
12263         (UNSPEC_PACK_128BIT): Likewise.
12264         (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
12265         (udiv<mode>3): Use idiv_ldiv mode attribute.
12266         (div<mode>3): Likewise.
12267         (addg6s): Add new BCD builtin functions.
12268         (cdtbcd): Likewise.
12269         (cbcdtd): Likewise.
12270         (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
12271         (div_extend): Likewise.
12272         (div<div_extend>_<mode>"): Likewise.
12273         (FP128_64): Add support for new builtin functions to pack/unpack
12274         128-bit types.
12275         (unpack<mode>): Likewise.
12276         (unpacktf_0): Likewise.
12277         (unpacktf_1): Likewise.
12278         (unpack<mode>_dm): Likewise.
12279         (unpack<mode>_nodm): Likewise.
12280         (pack<mode>): Likewise.
12281         (unpackv1ti): Likewise.
12282         (packv1ti): Likewise.
12284 2014-04-24  Vishnu K S  <Vishnu.k_s@atmel.com>
12286         * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
12287         is disabled.
12289 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
12291         * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
12292         * gimplify.c (omp_is_private): Change last argument's type to int.
12293         Only diagnose lastprivate if the simd argument is 1, only diagnose
12294         linear if the simd argument is 2.
12295         (gimplify_omp_for): Adjust omp_is_private callers.  When adding
12296         lastprivate or private, add the clause to OMP_FOR_CLAUSES.  Pass
12297         GOVD_EXPLICIT to omp_add_variable.  For simd with collapse == 1
12298         create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
12299         If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
12300         increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
12301         * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
12302         OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
12303         * tree-nested.c (convert_nonlocal_omp_clauses,
12304         convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
12306 2014-04-24  Segher Boessenkool  <segher@kernel.crashing.org>
12308         PR target/60822
12309         * config/m68k/m68k.md (extendplussidi): Don't allow memory for
12310         operand 1.
12312 2014-04-24  Dimitris Papavasiliou  <dpapavas@gmail.com>
12314         * flag-types.h (enum ivar_visibility): Add.
12316 2014-04-24  Trevor Saunders  <tsaunders@mozilla.com>
12318         * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
12319         function * argument.
12321 2014-04-24  Alan Lawrence  <alan.lawrence@arm.com>
12323         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
12325 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
12326             Tom de Vries  <tom@codesourcery.com>
12328         * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
12329         * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
12330         reg-note.
12331         * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
12332         * emit-rtl.c (try_split): Same.
12334 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
12335             Tom de Vries  <tom@codesourcery.com>
12337         * common.opt (fuse-caller-save): New option.
12339 2014-04-24  Tejas Belagod  <tejas.belagod@arm.com>
12341         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
12342         elements for big-endian.
12344 2014-04-24  Richard Biener  <rguenther@suse.de>
12346         * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
12347         during TER and instead use the sepops interface for expanding
12348         non-GIMPLE_SINGLE_RHS.
12350 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12352         * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
12353         if not HAVE_AS_IX86_DIFF_SECT_DELTA.
12355 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12357         * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
12358         assembler 64-bit option.
12359         * configure: Regenerate.
12361 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12363         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
12364         TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
12365         (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
12366         (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
12367         (TARGET_CRYPTO): Take TARGET_SIMD into account.
12369 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12371         * config/aarch64/aarch64-builtins.c
12372         (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
12373         BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
12374         * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
12375         * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
12376         builtins.
12377         * config/aarch64/iterator.md (VDQHSD): New mode iterator.
12378         (Vrevsuff): New mode attribute.
12380 2014-04-24  Terry Guo  <terry.guo@arm.com>
12382         * config/arm/arm.h (machine_function): Define variable
12383         after_arm_reorg here.
12384         * config/arm/arm.c (after_arm_reorg): Remove the definition.
12385         (arm_split_constant): Update the way to access variable
12386         after_arm_reorg.
12387         (arm_reorg): Ditto.
12388         (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
12390 2014-04-23  Tom de Vries  <tom@codesourcery.com>
12392         * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
12394 2014-04-23  David Malcolm  <dmalcolm@redhat.com>
12396         * is-a.h: Update comments to reflect the following changes to the
12397         "pointerness" of the API, making the template parameter match the
12398         return type, allowing use of is-a.h with typedefs of pointers.
12399         (is_a_helper::cast): Return a T rather then a pointer to a T, so
12400         that the return type matches the parameter to the is_a_helper.
12401         (as_a): Likewise.
12402         (dyn_cast): Likewise.
12404         * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
12405         pointer from the is-a.h API.
12407         * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
12408         (is_a_helper <cgraph_node *>::test): ...this, matching change to
12409         is-a.h API.
12410         (is_a_helper <varpool_node>::test): Likewise, convert to...
12411         (is_a_helper <varpool_node *>::test): ...this.
12413         (varpool_first_variable): Update for removal of implicit pointer
12414         from the is-a.h API.
12415         (varpool_next_variable): Likewise.
12416         (varpool_first_static_initializer): Likewise.
12417         (varpool_next_static_initializer): Likewise.
12418         (varpool_first_defined_variable): Likewise.
12419         (varpool_next_defined_variable): Likewise.
12420         (cgraph_first_defined_function): Likewise.
12421         (cgraph_next_defined_function): Likewise.
12422         (cgraph_first_function): Likewise.
12423         (cgraph_next_function): Likewise.
12424         (cgraph_first_function_with_gimple_body): Likewise.
12425         (cgraph_next_function_with_gimple_body): Likewise.
12426         (cgraph_alias_target): Likewise.
12427         (varpool_alias_target): Likewise.
12428         (cgraph_function_or_thunk_node): Likewise.
12429         (varpool_variable_node): Likewise.
12430         (symtab_real_symbol_p): Likewise.
12431         * cgraphunit.c (referred_to_p): Likewise.
12432         (analyze_functions): Likewise.
12433         (handle_alias_pairs): Likewise.
12434         * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
12435         * gimple-ssa.h (gimple_vuse_op): Likewise.
12436         (gimple_vdef_op): Likewise.
12437         * gimple-streamer-in.c (input_gimple_stmt): Likewise.
12438         * gimple.c (gimple_build_asm_1): Likewise.
12439         (gimple_build_try): Likewise.
12440         (gimple_build_resx): Likewise.
12441         (gimple_build_eh_dispatch): Likewise.
12442         (gimple_build_omp_for): Likewise.
12443         (gimple_omp_for_set_clauses): Likewise.
12445         * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
12446         (is_a_helper <gimple_statement_asm *>::test): ...this.
12447         (is_a_helper <gimple_statement_bind>::test): Convert to...
12448         (is_a_helper <gimple_statement_bind *>::test): ...this.
12449         (is_a_helper <gimple_statement_call>::test): Convert to...
12450         (is_a_helper <gimple_statement_call *>::test): ...this.
12451         (is_a_helper <gimple_statement_catch>::test): Convert to...
12452         (is_a_helper <gimple_statement_catch *>::test): ...this.
12453         (is_a_helper <gimple_statement_resx>::test): Convert to...
12454         (is_a_helper <gimple_statement_resx *>::test): ...this.
12455         (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
12456         (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
12457         (is_a_helper <gimple_statement_eh_else>::test): Convert to...
12458         (is_a_helper <gimple_statement_eh_else *>::test): ...this.
12459         (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
12460         (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
12461         (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
12462         (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
12463         (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
12464         (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
12465         (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
12466         (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
12467         (is_a_helper <gimple_statement_omp_return>::test): Convert to...
12468         (is_a_helper <gimple_statement_omp_return *>::test): ...this.
12469         (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
12470         (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
12471         (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
12472         (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
12473         (is_a_helper <gimple_statement_omp_for>::test): Convert to...
12474         (is_a_helper <gimple_statement_omp_for *>::test): ...this.
12475         (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
12476         (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
12477         (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
12478         (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
12479         (is_a_helper <gimple_statement_omp_target>::test): Convert to...
12480         (is_a_helper <gimple_statement_omp_target *>::test): ...this.
12481         (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
12482         (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
12483         (is_a_helper <gimple_statement_omp_single>::test): Convert to...
12484         (is_a_helper <gimple_statement_omp_single *>::test): ...this.
12485         (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
12486         (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
12487         (is_a_helper <gimple_statement_omp_task>::test): Convert to...
12488         (is_a_helper <gimple_statement_omp_task *>::test): ...this.
12489         (is_a_helper <gimple_statement_phi>::test): Convert to...
12490         (is_a_helper <gimple_statement_phi *>::test): ...this.
12491         (is_a_helper <gimple_statement_transaction>::test): Convert to...
12492         (is_a_helper <gimple_statement_transaction *>::test): ...this.
12493         (is_a_helper <gimple_statement_try>::test): Convert to...
12494         (is_a_helper <gimple_statement_try *>::test): ...this.
12495         (is_a_helper <gimple_statement_wce>::test): Convert to...
12496         (is_a_helper <gimple_statement_wce *>::test): ...this.
12497         (is_a_helper <const gimple_statement_asm>::test): Convert to...
12498         (is_a_helper <const gimple_statement_asm *>::test): ...this.
12499         (is_a_helper <const gimple_statement_bind>::test): Convert to...
12500         (is_a_helper <const gimple_statement_bind *>::test): ...this.
12501         (is_a_helper <const gimple_statement_call>::test): Convert to...
12502         (is_a_helper <const gimple_statement_call *>::test): ...this.
12503         (is_a_helper <const gimple_statement_catch>::test): Convert to...
12504         (is_a_helper <const gimple_statement_catch *>::test): ...this.
12505         (is_a_helper <const gimple_statement_resx>::test): Convert to...
12506         (is_a_helper <const gimple_statement_resx *>::test): ...this.
12507         (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
12508         (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
12509         (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
12510         (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
12511         (is_a_helper <const gimple_statement_omp_atomic_load>::test):
12512         Convert to...
12513         (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
12514         ...this.
12515         (is_a_helper <const gimple_statement_omp_atomic_store>::test):
12516         Convert to...
12517         (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
12518         ...this.
12519         (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
12520         (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
12521         (is_a_helper <const gimple_statement_omp_continue>::test): Convert
12522         to...
12523         (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
12524         (is_a_helper <const gimple_statement_omp_critical>::test): Convert
12525         to...
12526         (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
12527         (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
12528         (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
12529         (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
12530         (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
12531         (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
12532         to...
12533         (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
12534         (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
12535         (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
12536         (is_a_helper <const gimple_statement_omp_sections>::test): Convert
12537         to...
12538         (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
12539         (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
12540         (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
12541         (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
12542         (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
12543         (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
12544         (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
12545         (is_a_helper <const gimple_statement_phi>::test): Convert to...
12546         (is_a_helper <const gimple_statement_phi *>::test): ...this.
12547         (is_a_helper <const gimple_statement_transaction>::test): Convert to...
12548         (is_a_helper <const gimple_statement_transaction *>::test): ...this.
12549         (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
12550         (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
12551         (is_a_helper <gimple_statement_with_ops>::test): Convert to...
12552         (is_a_helper <gimple_statement_with_ops *>::test): ...this.
12553         (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
12554         to...
12555         (is_a_helper <const gimple_statement_with_memory_ops *>::test):
12556         ...this.
12557         (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
12558         (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
12560         (gimple_use_ops): Update for removal of implicit pointer from the
12561         is-a.h API.
12562         (gimple_set_use_ops): Likewise.
12563         (gimple_vuse): Likewise.
12564         (gimple_vdef): Likewise.
12565         (gimple_vuse_ptr): Likewise.
12566         (gimple_vdef_ptr): Likewise.
12567         (gimple_set_vuse): Likewise.
12568         (gimple_set_vdef): Likewise.
12569         (gimple_omp_return_set_lhs): Likewise.
12570         (gimple_omp_return_lhs): Likewise.
12571         (gimple_omp_return_lhs_ptr): Likewise.
12572         (gimple_call_fntype): Likewise.
12573         (gimple_call_set_fntype): Likewise.
12574         (gimple_call_set_internal_fn): Likewise.
12575         (gimple_call_use_set): Likewise.
12576         (gimple_call_clobber_set): Likewise.
12577         (gimple_bind_vars): Likewise.
12578         (gimple_bind_set_vars): Likewise.
12579         (gimple_bind_body_ptr): Likewise.
12580         (gimple_bind_set_body): Likewise.
12581         (gimple_bind_add_stmt): Likewise.
12582         (gimple_bind_block): Likewise.
12583         (gimple_bind_set_block): Likewise.
12584         (gimple_asm_ninputs): Likewise.
12585         (gimple_asm_noutputs): Likewise.
12586         (gimple_asm_nclobbers): Likewise.
12587         (gimple_asm_nlabels): Likewise.
12588         (gimple_asm_input_op): Likewise.
12589         (gimple_asm_input_op_ptr): Likewise.
12590         (gimple_asm_output_op): Likewise.
12591         (gimple_asm_output_op_ptr): Likewise.
12592         (gimple_asm_set_output_op): Likewise.
12593         (gimple_asm_clobber_op): Likewise.
12594         (gimple_asm_set_clobber_op): Likewise.
12595         (gimple_asm_label_op): Likewise.
12596         (gimple_asm_set_label_op): Likewise.
12597         (gimple_asm_string): Likewise.
12598         (gimple_catch_types): Likewise.
12599         (gimple_catch_types_ptr): Likewise.
12600         (gimple_catch_handler_ptr): Likewise.
12601         (gimple_catch_set_types): Likewise.
12602         (gimple_catch_set_handler): Likewise.
12603         (gimple_eh_filter_types): Likewise.
12604         (gimple_eh_filter_types_ptr): Likewise.
12605         (gimple_eh_filter_failure_ptr): Likewise.
12606         (gimple_eh_filter_set_types): Likewise.
12607         (gimple_eh_filter_set_failure): Likewise.
12608         (gimple_eh_must_not_throw_fndecl): Likewise.
12609         (gimple_eh_must_not_throw_set_fndecl): Likewise.
12610         (gimple_eh_else_n_body_ptr): Likewise.
12611         (gimple_eh_else_e_body_ptr): Likewise.
12612         (gimple_eh_else_set_n_body): Likewise.
12613         (gimple_eh_else_set_e_body): Likewise.
12614         (gimple_try_eval_ptr): Likewise.
12615         (gimple_try_cleanup_ptr): Likewise.
12616         (gimple_try_set_eval): Likewise.
12617         (gimple_try_set_cleanup): Likewise.
12618         (gimple_wce_cleanup_ptr): Likewise.
12619         (gimple_wce_set_cleanup): Likewise.
12620         (gimple_phi_capacity): Likewise.
12621         (gimple_phi_num_args): Likewise.
12622         (gimple_phi_result): Likewise.
12623         (gimple_phi_result_ptr): Likewise.
12624         (gimple_phi_set_result): Likewise.
12625         (gimple_phi_arg): Likewise.
12626         (gimple_phi_set_arg): Likewise.
12627         (gimple_resx_region): Likewise.
12628         (gimple_resx_set_region): Likewise.
12629         (gimple_eh_dispatch_region): Likewise.
12630         (gimple_eh_dispatch_set_region): Likewise.
12631         (gimple_omp_critical_name): Likewise.
12632         (gimple_omp_critical_name_ptr): Likewise.
12633         (gimple_omp_critical_set_name): Likewise.
12634         (gimple_omp_for_clauses): Likewise.
12635         (gimple_omp_for_clauses_ptr): Likewise.
12636         (gimple_omp_for_set_clauses): Likewise.
12637         (gimple_omp_for_collapse): Likewise.
12638         (gimple_omp_for_index): Likewise.
12639         (gimple_omp_for_index_ptr): Likewise.
12640         (gimple_omp_for_set_index): Likewise.
12641         (gimple_omp_for_initial): Likewise.
12642         (gimple_omp_for_initial_ptr): Likewise.
12643         (gimple_omp_for_set_initial): Likewise.
12644         (gimple_omp_for_final): Likewise.
12645         (gimple_omp_for_final_ptr): Likewise.
12646         (gimple_omp_for_set_final): Likewise.
12647         (gimple_omp_for_incr): Likewise.
12648         (gimple_omp_for_incr_ptr): Likewise.
12649         (gimple_omp_for_set_incr): Likewise.
12650         (gimple_omp_for_pre_body_ptr): Likewise.
12651         (gimple_omp_for_set_pre_body): Likewise.
12652         (gimple_omp_parallel_clauses): Likewise.
12653         (gimple_omp_parallel_clauses_ptr): Likewise.
12654         (gimple_omp_parallel_set_clauses): Likewise.
12655         (gimple_omp_parallel_child_fn): Likewise.
12656         (gimple_omp_parallel_child_fn_ptr): Likewise.
12657         (gimple_omp_parallel_set_child_fn): Likewise.
12658         (gimple_omp_parallel_data_arg): Likewise.
12659         (gimple_omp_parallel_data_arg_ptr): Likewise.
12660         (gimple_omp_parallel_set_data_arg): Likewise.
12661         (gimple_omp_task_clauses): Likewise.
12662         (gimple_omp_task_clauses_ptr): Likewise.
12663         (gimple_omp_task_set_clauses): Likewise.
12664         (gimple_omp_task_child_fn): Likewise.
12665         (gimple_omp_task_child_fn_ptr): Likewise.
12666         (gimple_omp_task_set_child_fn): Likewise.
12667         (gimple_omp_task_data_arg): Likewise.
12668         (gimple_omp_task_data_arg_ptr): Likewise.
12669         (gimple_omp_task_set_data_arg): Likewise.
12670         (gimple_omp_taskreg_clauses): Likewise.
12671         (gimple_omp_taskreg_clauses_ptr): Likewise.
12672         (gimple_omp_taskreg_set_clauses): Likewise.
12673         (gimple_omp_taskreg_child_fn): Likewise.
12674         (gimple_omp_taskreg_child_fn_ptr): Likewise.
12675         (gimple_omp_taskreg_set_child_fn): Likewise.
12676         (gimple_omp_taskreg_data_arg): Likewise.
12677         (gimple_omp_taskreg_data_arg_ptr): Likewise.
12678         (gimple_omp_taskreg_set_data_arg): Likewise.
12679         (gimple_omp_task_copy_fn): Likewise.
12680         (gimple_omp_task_copy_fn_ptr): Likewise.
12681         (gimple_omp_task_set_copy_fn): Likewise.
12682         (gimple_omp_task_arg_size): Likewise.
12683         (gimple_omp_task_arg_size_ptr): Likewise.
12684         (gimple_omp_task_set_arg_size): Likewise.
12685         (gimple_omp_task_arg_align): Likewise.
12686         (gimple_omp_task_arg_align_ptr): Likewise.
12687         (gimple_omp_task_set_arg_align): Likewise.
12688         (gimple_omp_single_clauses): Likewise.
12689         (gimple_omp_single_clauses_ptr): Likewise.
12690         (gimple_omp_single_set_clauses): Likewise.
12691         (gimple_omp_target_clauses): Likewise.
12692         (gimple_omp_target_clauses_ptr): Likewise.
12693         (gimple_omp_target_set_clauses): Likewise.
12694         (gimple_omp_target_child_fn): Likewise.
12695         (gimple_omp_target_child_fn_ptr): Likewise.
12696         (gimple_omp_target_set_child_fn): Likewise.
12697         (gimple_omp_target_data_arg): Likewise.
12698         (gimple_omp_target_data_arg_ptr): Likewise.
12699         (gimple_omp_target_set_data_arg): Likewise.
12700         (gimple_omp_teams_clauses): Likewise.
12701         (gimple_omp_teams_clauses_ptr): Likewise.
12702         (gimple_omp_teams_set_clauses): Likewise.
12703         (gimple_omp_sections_clauses): Likewise.
12704         (gimple_omp_sections_clauses_ptr): Likewise.
12705         (gimple_omp_sections_set_clauses): Likewise.
12706         (gimple_omp_sections_control): Likewise.
12707         (gimple_omp_sections_control_ptr): Likewise.
12708         (gimple_omp_sections_set_control): Likewise.
12709         (gimple_omp_for_set_cond): Likewise.
12710         (gimple_omp_for_cond): Likewise.
12711         (gimple_omp_atomic_store_set_val): Likewise.
12712         (gimple_omp_atomic_store_val): Likewise.
12713         (gimple_omp_atomic_store_val_ptr): Likewise.
12714         (gimple_omp_atomic_load_set_lhs): Likewise.
12715         (gimple_omp_atomic_load_lhs): Likewise.
12716         (gimple_omp_atomic_load_lhs_ptr): Likewise.
12717         (gimple_omp_atomic_load_set_rhs): Likewise.
12718         (gimple_omp_atomic_load_rhs): Likewise.
12719         (gimple_omp_atomic_load_rhs_ptr): Likewise.
12720         (gimple_omp_continue_control_def): Likewise.
12721         (gimple_omp_continue_control_def_ptr): Likewise.
12722         (gimple_omp_continue_set_control_def): Likewise.
12723         (gimple_omp_continue_control_use): Likewise.
12724         (gimple_omp_continue_control_use_ptr): Likewise.
12725         (gimple_omp_continue_set_control_use): Likewise.
12726         (gimple_transaction_body_ptr): Likewise.
12727         (gimple_transaction_label): Likewise.
12728         (gimple_transaction_label_ptr): Likewise.
12729         (gimple_transaction_set_body): Likewise.
12730         (gimple_transaction_set_label): Likewise.
12732         * ipa-devirt.c (build_type_inheritance_graph): Likewise.
12733         * ipa-inline-analysis.c (inline_write_summary): Likewise.
12734         * ipa-ref.c (ipa_record_reference): Likewise.
12735         * ipa-reference.c (analyze_function): Likewise.
12736         (ipa_reference_write_optimization_summary): Likewise.
12737         * ipa.c (symtab_remove_unreachable_nodes): Likewise.
12738         (address_taken_from_non_vtable_p): Likewise.
12739         (comdat_can_be_unshared_p_1): Likewise.
12740         * lto-cgraph.c (lto_output_ref): Likewise.
12741         (add_references): Likewise.
12742         (compute_ltrans_boundary): Likewise.
12743         (output_symtab): Likewise.
12744         (input_ref): Likewise.
12745         (input_cgraph_1): Likewise.
12746         (output_cgraph_opt_summary): Likewise.
12747         * lto-streamer-out.c (lto_output): Likewise.
12748         (output_symbol_p): Likewise.
12749         * lto-streamer.h (lsei_next_function_in_partition): Likewise.
12750         (lsei_start_function_in_partition): Likewise.
12751         (lsei_next_variable_in_partition): Likewise.
12752         (lsei_start_variable_in_partition): Likewise.
12753         * symtab.c (insert_to_assembler_name_hash): Likewise.
12754         (unlink_from_assembler_name_hash): Likewise.
12755         (symtab_unregister_node): Likewise.
12756         (symtab_remove_node): Likewise.
12757         (dump_symtab_node): Likewise.
12758         (verify_symtab_base): Likewise.
12759         (verify_symtab_node): Likewise.
12760         (symtab_make_decl_local): Likewise.
12761         (symtab_alias_ultimate_target): Likewise.
12762         (symtab_resolve_alias): Likewise.
12763         (symtab_get_symbol_partitioning_class): Likewise.
12764         * tree-phinodes.c (allocate_phi_node): Likewise.
12765         (reserve_phi_args_for_new_edge): Likewise.
12766         (remove_phi_args): Likewise.
12767         * varpool.c (varpool_node_for_asm): Likewise.
12768         (varpool_remove_unreferenced_decls): Likewise.
12770 2014-04-23  Jeff Law  <law@redhat.com>
12772         PR tree-optimization/60902
12773         * tree-ssa-threadedge.c
12774         (record_temporary_equivalences_from_stmts_at_dest): Make sure to
12775         invalidate outputs from statements that do not produce useful
12776         outputs for threading.
12778 2014-04-23  Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
12780         * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
12781         (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
12782         machine descriptions for Stack Smashing Protector.
12784 2014-04-23  Richard Earnshaw  <rearnsha@arm.com>
12786         * aarch64.md (<optab>_rol<mode>3): New pattern.
12787         (<optab>_rolsi3_uxtw): Likewise.
12788         * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
12790 2014-04-23  James Greenhalgh  <james.greenhalgh@arm.com>
12792         * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
12793         (arm_cortex_a12_tune): Likewise.
12795 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12797         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
12799 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12801         * config/arm/arm.md (arm_rev16si2): New pattern.
12802         (arm_rev16si2_alt): Likewise.
12803         * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
12805 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12807         * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
12808         (rev16<mode>2_alt): Likewise.
12809         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
12810         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
12811         (aarch_rev16_shleft_mask_imm_p): Likewise.
12812         (aarch_rev16_p_1): Likewise.
12813         (aarch_rev16_p): Likewise.
12814         * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
12815         (aarch_rev16_shright_mask_imm_p): Likewise.
12816         (aarch_rev16_shleft_mask_imm_p): Likewise.
12818 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12820         * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
12821         * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
12822         rev cost.
12823         (cortex_a53_extra_costs): Likewise.
12824         (cortex_a57_extra_costs): Likewise.
12825         * config/arm/arm.c (cortexa9_extra_costs): Likewise.
12826         (cortexa7_extra_costs): Likewise.
12827         (cortexa8_extra_costs): Likewise.
12828         (cortexa12_extra_costs): Likewise.
12829         (cortexa15_extra_costs): Likewise.
12830         (v7m_extra_costs): Likewise.
12831         (arm_new_rtx_costs): Handle BSWAP.
12833 2013-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12835         * config/arm/arm.c (cortexa8_extra_costs): New table.
12836         (arm_cortex_a8_tune): New tuning struct.
12837         * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
12839 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12841         * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
12843 2014-04-23  Richard Biener  <rguenther@suse.de>
12845         * Makefile.in (OBJS): Remove loop-unswitch.o.
12846         * tree-pass.h (make_pass_rtl_unswitch): Remove.
12847         * passes.def (pass_rtl_unswitch): Likewise.
12848         * loop-init.c (gate_rtl_unswitch): Likewise.
12849         (rtl_unswitch): Likewise.
12850         (pass_data_rtl_unswitch): Likewise.
12851         (pass_rtl_unswitch): Likewise.
12852         (make_pass_rtl_unswitch): Likewise.
12853         * rtl.h (reversed_condition): Likewise.
12854         (compare_and_jump_seq): Likewise.
12855         * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
12856         and make static.
12857         * loop-unroll.c (compare_and_jump_seq): Likewise.
12859 2014-04-23  Richard Biener  <rguenther@suse.de>
12861         PR tree-optimization/60903
12862         * tree-ssa-loop-im.c (analyze_memory_references): Remove
12863         commented code block.
12864         (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
12865         loop flags to newly created BBs and edges.
12867 2014-04-23  Nick Clifton  <nickc@redhat.com>
12869         * config/msp430/msp430.c (msp430_handle_option): Move function
12870         to msp430-common.c
12871         (msp430_option_override): Simplify mcu and mcpu option handling.
12872         (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult.  Add
12873         support for -mhwmult command line option.
12874         (has_32bit_hwmult): Rename to use_32bit_hwmult.  Add support for
12875         -mhwmult command line option.
12876         (msp430_hwmult_enabled): Delete.
12877         (msp43o_output_labelref): Add support for -mhwmult command line option.
12878         * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
12879         (umulsidi3): Likewise.
12880         * config/msp430/msp430.opt (mmcu): Add Report attribute.
12881         (mcpu, mlarge, msmall): Likewise.
12882         (mhwmult): New option.
12883         * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
12884         prototype.
12885         (msp430_is_f5_mcu): Remove prototype.
12886         (msp430_use_f5_series_hwmult): Add prototype.
12887         * config/msp430/msp430-opts.h: New file.
12888         * common/config/msp430: New directory.
12889         * common/config/msp430/msp430-common.c: New file.
12890         * config.gcc (msp430): Remove target_has_targetm_common.
12891         * doc/invoke.texi: Document -mhwmult command line option.
12893 2014-04-23  Nick Clifton  <nickc@redhat.com>
12895         * config/i386/cygwin.h (ENDFILE_SPEC): Include
12896         default-manifest.o if it can be found in the search path.
12897         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
12899 2014-04-23  Terry Guo  <terry.guo@arm.com>
12901         * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
12903 2014-04-23  Richard Biener  <rguenther@suse.de>
12905         PR middle-end/60895
12906         * tree-inline.c (declare_return_variable): Use mark_addressable.
12908 2014-04-23  Richard Biener  <rguenther@suse.de>
12910         PR middle-end/60891
12911         * loop-init.c (loop_optimizer_init): Make sure to apply
12912         LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
12914 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
12916         PR sanitizer/60275
12917         * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
12918         New options.
12919         * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
12920         if flag_sanitize_undefined_trap_on_error.
12921         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
12922         BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
12923         BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
12924         BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
12925         BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
12926         BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
12927         BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
12928         BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
12929         BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
12930         * ubsan.c (ubsan_instrument_unreachable): Return
12931         __builtin_trap () if flag_sanitize_undefined_trap_on_error.
12932         (ubsan_expand_null_ifn): Emit __builtin_trap ()
12933         if flag_sanitize_undefined_trap_on_error and
12934         __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
12935         (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
12936         instrument_bool_enum_load): Emit __builtin_trap () if
12937         flag_sanitize_undefined_trap_on_error and
12938         __builtin_handle_*_abort () if !flag_sanitize_recover.
12939         * doc/invoke.texi (-fsanitize-recover,
12940         -fsanitize-undefined-trap-on-error): Document.
12942 2014-04-22  Christian Bruel  <christian.bruel@st.com>
12944         * config/sh/sh.md (mov<mode>): Replace movQIHI.
12945          Force immediates to SImode.
12947 2014-04-22  Sandra Loosemore  <sandra@codesourcery.com>
12949         * config/nios2/nios2.md (UNSPEC_ROUND): New.
12950         (lroundsfsi2): New.
12951         * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
12952         * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
12953         * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
12954         (nios2_fpu_insn): Add entry for round.
12955         (N2FPU_NO_ERRNO_P): Define.
12956         (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
12957         flag_errno_math.
12958         * doc/invoke.texi (Nios II Options): Document -mcustom-round.
12960 2014-04-22  Richard Henderson  <rth@redhat.com>
12962         * config/aarch64/aarch64 (addti3, subti3): New expanders.
12963         (add<GPI>3_compare0): Remove leading * from name.
12964         (add<GPI>3_carryin): Likewise.
12965         (sub<GPI>3_compare0): Likewise.
12966         (sub<GPI>3_carryin): Likewise.
12967         (<su_optab>mulditi3): New expander.
12968         (multi3): New expander.
12969         (madd<GPI>): Remove leading * from name.
12971 2014-04-22  Martin Jambor  <mjambor@suse.cz>
12973         * cgraphclones.c (cgraph_function_versioning): Copy
12974         ipa_transforms_to_apply instead of asserting it is empty.
12976 2014-04-22  H.J. Lu  <hongjiu.lu@intel.com>
12978         PR target/60868
12979         * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
12980         on count_exp to get mode.
12982 2014-04-22  Andrew Pinski  <apinski@cavium.com>
12984         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
12985         Handle TLS for ILP32.
12986         * config/aarch64/aarch64.md (tlsie_small): Rename to ...
12987         (tlsie_small_<mode>): this and handle PTR.
12988         (tlsie_small_sidi): New pattern.
12989         (tlsle_small): Change to an expand to handle ILP32.
12990         (tlsle_small_<mode>): New pattern.
12991         (tlsdesc_small): Rename to ...
12992         (tlsdesc_small_<mode>): this and handle PTR.
12994 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12996         * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
12998 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
13000         * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
13001         (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
13002         (aarch64_types_signed_poly_qualifiers): Likewise.
13003         (aarch64_types_unsigned_signed_qualifiers): Likewise.
13004         (aarch64_types_poly_signed_qualifiers): Likewise.
13005         (TYPES_REINTERP_SS): Type macro added.
13006         (TYPES_REINTERP_SU): Likewise.
13007         (TYPES_REINTERP_SP): Likewise.
13008         (TYPES_REINTERP_US): Likewise.
13009         (TYPES_REINTERP_PS): Likewise.
13010         (aarch64_fold_builtin): New expression folding added.
13011         * config/aarch64/aarch64-simd-builtins.def (REINTERP):
13012         Declarations removed.
13013         (REINTERP_SS): Declarations added.
13014         (REINTERP_US): Likewise.
13015         (REINTERP_PS): Likewise.
13016         (REINTERP_SU): Likewise.
13017         (REINTERP_SP): Likewise.
13018         * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
13019         (vreinterpretq_p8_f64): Likewise.
13020         (vreinterpret_p16_f64): Likewise.
13021         (vreinterpretq_p16_f64): Likewise.
13022         (vreinterpret_f32_f64): Likewise.
13023         (vreinterpretq_f32_f64): Likewise.
13024         (vreinterpret_f64_f32): Likewise.
13025         (vreinterpret_f64_p8): Likewise.
13026         (vreinterpret_f64_p16): Likewise.
13027         (vreinterpret_f64_s8): Likewise.
13028         (vreinterpret_f64_s16): Likewise.
13029         (vreinterpret_f64_s32): Likewise.
13030         (vreinterpret_f64_s64): Likewise.
13031         (vreinterpret_f64_u8): Likewise.
13032         (vreinterpret_f64_u16): Likewise.
13033         (vreinterpret_f64_u32): Likewise.
13034         (vreinterpret_f64_u64): Likewise.
13035         (vreinterpretq_f64_f32): Likewise.
13036         (vreinterpretq_f64_p8): Likewise.
13037         (vreinterpretq_f64_p16): Likewise.
13038         (vreinterpretq_f64_s8): Likewise.
13039         (vreinterpretq_f64_s16): Likewise.
13040         (vreinterpretq_f64_s32): Likewise.
13041         (vreinterpretq_f64_s64): Likewise.
13042         (vreinterpretq_f64_u8): Likewise.
13043         (vreinterpretq_f64_u16): Likewise.
13044         (vreinterpretq_f64_u32): Likewise.
13045         (vreinterpretq_f64_u64): Likewise.
13046         (vreinterpret_s64_f64): Likewise.
13047         (vreinterpretq_s64_f64): Likewise.
13048         (vreinterpret_u64_f64): Likewise.
13049         (vreinterpretq_u64_f64): Likewise.
13050         (vreinterpret_s8_f64): Likewise.
13051         (vreinterpretq_s8_f64): Likewise.
13052         (vreinterpret_s16_f64): Likewise.
13053         (vreinterpretq_s16_f64): Likewise.
13054         (vreinterpret_s32_f64): Likewise.
13055         (vreinterpretq_s32_f64): Likewise.
13056         (vreinterpret_u8_f64): Likewise.
13057         (vreinterpretq_u8_f64): Likewise.
13058         (vreinterpret_u16_f64): Likewise.
13059         (vreinterpretq_u16_f64): Likewise.
13060         (vreinterpret_u32_f64): Likewise.
13061         (vreinterpretq_u32_f64): Likewise.
13063 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
13065         * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
13066         * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
13067         (vreinterpret_p8_s8): Likewise.
13068         * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
13069         (vreinterpret_p8_s16): Likewise.
13070         (vreinterpret_p8_s32): Likewise.
13071         (vreinterpret_p8_s64): Likewise.
13072         (vreinterpret_p8_f32): Likewise.
13073         (vreinterpret_p8_u8): Likewise.
13074         (vreinterpret_p8_u16): Likewise.
13075         (vreinterpret_p8_u32): Likewise.
13076         (vreinterpret_p8_u64): Likewise.
13077         (vreinterpret_p8_p16): Likewise.
13078         (vreinterpretq_p8_s8): Likewise.
13079         (vreinterpretq_p8_s16): Likewise.
13080         (vreinterpretq_p8_s32): Likewise.
13081         (vreinterpretq_p8_s64): Likewise.
13082         (vreinterpretq_p8_f32): Likewise.
13083         (vreinterpretq_p8_u8): Likewise.
13084         (vreinterpretq_p8_u16): Likewise.
13085         (vreinterpretq_p8_u32): Likewise.
13086         (vreinterpretq_p8_u64): Likewise.
13087         (vreinterpretq_p8_p16): Likewise.
13088         (vreinterpret_p16_s8): Likewise.
13089         (vreinterpret_p16_s16): Likewise.
13090         (vreinterpret_p16_s32): Likewise.
13091         (vreinterpret_p16_s64): Likewise.
13092         (vreinterpret_p16_f32): Likewise.
13093         (vreinterpret_p16_u8): Likewise.
13094         (vreinterpret_p16_u16): Likewise.
13095         (vreinterpret_p16_u32): Likewise.
13096         (vreinterpret_p16_u64): Likewise.
13097         (vreinterpret_p16_p8): Likewise.
13098         (vreinterpretq_p16_s8): Likewise.
13099         (vreinterpretq_p16_s16): Likewise.
13100         (vreinterpretq_p16_s32): Likewise.
13101         (vreinterpretq_p16_s64): Likewise.
13102         (vreinterpretq_p16_f32): Likewise.
13103         (vreinterpretq_p16_u8): Likewise.
13104         (vreinterpretq_p16_u16): Likewise.
13105         (vreinterpretq_p16_u32): Likewise.
13106         (vreinterpretq_p16_u64): Likewise.
13107         (vreinterpretq_p16_p8): Likewise.
13108         (vreinterpret_f32_s8): Likewise.
13109         (vreinterpret_f32_s16): Likewise.
13110         (vreinterpret_f32_s32): Likewise.
13111         (vreinterpret_f32_s64): Likewise.
13112         (vreinterpret_f32_u8): Likewise.
13113         (vreinterpret_f32_u16): Likewise.
13114         (vreinterpret_f32_u32): Likewise.
13115         (vreinterpret_f32_u64): Likewise.
13116         (vreinterpret_f32_p8): Likewise.
13117         (vreinterpret_f32_p16): Likewise.
13118         (vreinterpretq_f32_s8): Likewise.
13119         (vreinterpretq_f32_s16): Likewise.
13120         (vreinterpretq_f32_s32): Likewise.
13121         (vreinterpretq_f32_s64): Likewise.
13122         (vreinterpretq_f32_u8): Likewise.
13123         (vreinterpretq_f32_u16): Likewise.
13124         (vreinterpretq_f32_u32): Likewise.
13125         (vreinterpretq_f32_u64): Likewise.
13126         (vreinterpretq_f32_p8): Likewise.
13127         (vreinterpretq_f32_p16): Likewise.
13128         (vreinterpret_s64_s8): Likewise.
13129         (vreinterpret_s64_s16): Likewise.
13130         (vreinterpret_s64_s32): Likewise.
13131         (vreinterpret_s64_f32): Likewise.
13132         (vreinterpret_s64_u8): Likewise.
13133         (vreinterpret_s64_u16): Likewise.
13134         (vreinterpret_s64_u32): Likewise.
13135         (vreinterpret_s64_u64): Likewise.
13136         (vreinterpret_s64_p8): Likewise.
13137         (vreinterpret_s64_p16): Likewise.
13138         (vreinterpretq_s64_s8): Likewise.
13139         (vreinterpretq_s64_s16): Likewise.
13140         (vreinterpretq_s64_s32): Likewise.
13141         (vreinterpretq_s64_f32): Likewise.
13142         (vreinterpretq_s64_u8): Likewise.
13143         (vreinterpretq_s64_u16): Likewise.
13144         (vreinterpretq_s64_u32): Likewise.
13145         (vreinterpretq_s64_u64): Likewise.
13146         (vreinterpretq_s64_p8): Likewise.
13147         (vreinterpretq_s64_p16): Likewise.
13148         (vreinterpret_u64_s8): Likewise.
13149         (vreinterpret_u64_s16): Likewise.
13150         (vreinterpret_u64_s32): Likewise.
13151         (vreinterpret_u64_s64): Likewise.
13152         (vreinterpret_u64_f32): Likewise.
13153         (vreinterpret_u64_u8): Likewise.
13154         (vreinterpret_u64_u16): Likewise.
13155         (vreinterpret_u64_u32): Likewise.
13156         (vreinterpret_u64_p8): Likewise.
13157         (vreinterpret_u64_p16): Likewise.
13158         (vreinterpretq_u64_s8): Likewise.
13159         (vreinterpretq_u64_s16): Likewise.
13160         (vreinterpretq_u64_s32): Likewise.
13161         (vreinterpretq_u64_s64): Likewise.
13162         (vreinterpretq_u64_f32): Likewise.
13163         (vreinterpretq_u64_u8): Likewise.
13164         (vreinterpretq_u64_u16): Likewise.
13165         (vreinterpretq_u64_u32): Likewise.
13166         (vreinterpretq_u64_p8): Likewise.
13167         (vreinterpretq_u64_p16): Likewise.
13168         (vreinterpret_s8_s16): Likewise.
13169         (vreinterpret_s8_s32): Likewise.
13170         (vreinterpret_s8_s64): Likewise.
13171         (vreinterpret_s8_f32): Likewise.
13172         (vreinterpret_s8_u8): Likewise.
13173         (vreinterpret_s8_u16): Likewise.
13174         (vreinterpret_s8_u32): Likewise.
13175         (vreinterpret_s8_u64): Likewise.
13176         (vreinterpret_s8_p8): Likewise.
13177         (vreinterpret_s8_p16): Likewise.
13178         (vreinterpretq_s8_s16): Likewise.
13179         (vreinterpretq_s8_s32): Likewise.
13180         (vreinterpretq_s8_s64): Likewise.
13181         (vreinterpretq_s8_f32): Likewise.
13182         (vreinterpretq_s8_u8): Likewise.
13183         (vreinterpretq_s8_u16): Likewise.
13184         (vreinterpretq_s8_u32): Likewise.
13185         (vreinterpretq_s8_u64): Likewise.
13186         (vreinterpretq_s8_p8): Likewise.
13187         (vreinterpretq_s8_p16): Likewise.
13188         (vreinterpret_s16_s8): Likewise.
13189         (vreinterpret_s16_s32): Likewise.
13190         (vreinterpret_s16_s64): Likewise.
13191         (vreinterpret_s16_f32): Likewise.
13192         (vreinterpret_s16_u8): Likewise.
13193         (vreinterpret_s16_u16): Likewise.
13194         (vreinterpret_s16_u32): Likewise.
13195         (vreinterpret_s16_u64): Likewise.
13196         (vreinterpret_s16_p8): Likewise.
13197         (vreinterpret_s16_p16): Likewise.
13198         (vreinterpretq_s16_s8): Likewise.
13199         (vreinterpretq_s16_s32): Likewise.
13200         (vreinterpretq_s16_s64): Likewise.
13201         (vreinterpretq_s16_f32): Likewise.
13202         (vreinterpretq_s16_u8): Likewise.
13203         (vreinterpretq_s16_u16): Likewise.
13204         (vreinterpretq_s16_u32): Likewise.
13205         (vreinterpretq_s16_u64): Likewise.
13206         (vreinterpretq_s16_p8): Likewise.
13207         (vreinterpretq_s16_p16): Likewise.
13208         (vreinterpret_s32_s8): Likewise.
13209         (vreinterpret_s32_s16): Likewise.
13210         (vreinterpret_s32_s64): Likewise.
13211         (vreinterpret_s32_f32): Likewise.
13212         (vreinterpret_s32_u8): Likewise.
13213         (vreinterpret_s32_u16): Likewise.
13214         (vreinterpret_s32_u32): Likewise.
13215         (vreinterpret_s32_u64): Likewise.
13216         (vreinterpret_s32_p8): Likewise.
13217         (vreinterpret_s32_p16): Likewise.
13218         (vreinterpretq_s32_s8): Likewise.
13219         (vreinterpretq_s32_s16): Likewise.
13220         (vreinterpretq_s32_s64): Likewise.
13221         (vreinterpretq_s32_f32): Likewise.
13222         (vreinterpretq_s32_u8): Likewise.
13223         (vreinterpretq_s32_u16): Likewise.
13224         (vreinterpretq_s32_u32): Likewise.
13225         (vreinterpretq_s32_u64): Likewise.
13226         (vreinterpretq_s32_p8): Likewise.
13227         (vreinterpretq_s32_p16): Likewise.
13228         (vreinterpret_u8_s8): Likewise.
13229         (vreinterpret_u8_s16): Likewise.
13230         (vreinterpret_u8_s32): Likewise.
13231         (vreinterpret_u8_s64): Likewise.
13232         (vreinterpret_u8_f32): Likewise.
13233         (vreinterpret_u8_u16): Likewise.
13234         (vreinterpret_u8_u32): Likewise.
13235         (vreinterpret_u8_u64): Likewise.
13236         (vreinterpret_u8_p8): Likewise.
13237         (vreinterpret_u8_p16): Likewise.
13238         (vreinterpretq_u8_s8): Likewise.
13239         (vreinterpretq_u8_s16): Likewise.
13240         (vreinterpretq_u8_s32): Likewise.
13241         (vreinterpretq_u8_s64): Likewise.
13242         (vreinterpretq_u8_f32): Likewise.
13243         (vreinterpretq_u8_u16): Likewise.
13244         (vreinterpretq_u8_u32): Likewise.
13245         (vreinterpretq_u8_u64): Likewise.
13246         (vreinterpretq_u8_p8): Likewise.
13247         (vreinterpretq_u8_p16): Likewise.
13248         (vreinterpret_u16_s8): Likewise.
13249         (vreinterpret_u16_s16): Likewise.
13250         (vreinterpret_u16_s32): Likewise.
13251         (vreinterpret_u16_s64): Likewise.
13252         (vreinterpret_u16_f32): Likewise.
13253         (vreinterpret_u16_u8): Likewise.
13254         (vreinterpret_u16_u32): Likewise.
13255         (vreinterpret_u16_u64): Likewise.
13256         (vreinterpret_u16_p8): Likewise.
13257         (vreinterpret_u16_p16): Likewise.
13258         (vreinterpretq_u16_s8): Likewise.
13259         (vreinterpretq_u16_s16): Likewise.
13260         (vreinterpretq_u16_s32): Likewise.
13261         (vreinterpretq_u16_s64): Likewise.
13262         (vreinterpretq_u16_f32): Likewise.
13263         (vreinterpretq_u16_u8): Likewise.
13264         (vreinterpretq_u16_u32): Likewise.
13265         (vreinterpretq_u16_u64): Likewise.
13266         (vreinterpretq_u16_p8): Likewise.
13267         (vreinterpretq_u16_p16): Likewise.
13268         (vreinterpret_u32_s8): Likewise.
13269         (vreinterpret_u32_s16): Likewise.
13270         (vreinterpret_u32_s32): Likewise.
13271         (vreinterpret_u32_s64): Likewise.
13272         (vreinterpret_u32_f32): Likewise.
13273         (vreinterpret_u32_u8): Likewise.
13274         (vreinterpret_u32_u16): Likewise.
13275         (vreinterpret_u32_u64): Likewise.
13276         (vreinterpret_u32_p8): Likewise.
13277         (vreinterpret_u32_p16): Likewise.
13278         (vreinterpretq_u32_s8): Likewise.
13279         (vreinterpretq_u32_s16): Likewise.
13280         (vreinterpretq_u32_s32): Likewise.
13281         (vreinterpretq_u32_s64): Likewise.
13282         (vreinterpretq_u32_f32): Likewise.
13283         (vreinterpretq_u32_u8): Likewise.
13284         (vreinterpretq_u32_u16): Likewise.
13285         (vreinterpretq_u32_u64): Likewise.
13286         (vreinterpretq_u32_p8): Likewise.
13287         (vreinterpretq_u32_p16): Likewise.
13289 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
13291         * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
13292         Pattern extended.
13293         * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
13294         (sqabs): Likewise.
13295         * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
13296         (vqnegd_s64): Likewise.
13297         (vqabs_s64): Likewise.
13298         (vqabsd_s64): Likewise.
13300 2014-04-22  Richard Henderson  <rth@redhat.com>
13302         * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
13303         computation to the top of the loop.
13305 2014-04-22  Renlin  <renlin.li@arm.com>
13306             Jiong Wang  <jiong.wang@arm.com>
13308         * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
13309         * config/aarch64/aarch64.c (aarch64_layout_frame)
13310         (aarch64_initial_elimination_offset): Likewise.
13312 2014-04-22  Marcus Shawcroft  <marcus.shawcroft@arm.com>
13314         * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
13315         Fix indentation.
13317 2014-04-22  Richard Sandiford  <rdsandiford@googlemail.com>
13319         * machmode.h (bitwise_mode_for_mode): Declare.
13320         * stor-layout.h (bitwise_type_for_mode): Likewise.
13321         * stor-layout.c (bitwise_mode_for_mode): New function.
13322         (bitwise_type_for_mode): Likewise.
13323         * builtins.c (fold_builtin_memory_op): Use it instead of
13324         int_mode_for_mode and build_nonstandard_integer_type.
13326 2014-04-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13328         * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
13329         (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
13330         (*-*-solaris2*): Simplify.
13331         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
13332         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
13333         *-*-solaris2.9* handling.
13335         * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
13336         as bug.
13337         (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
13338         (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
13339         handling, simplify.
13340         (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
13341         * configure: Regenerate.
13343         * config/i386/sol2-9.h: Remove.
13345         * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
13346         (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
13347         Remove Solaris 9 references.
13349 2014-04-22  Vidya Praveen  <vidyapraveen@arm.com>
13351         * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
13352         (floatuns<GPI:mode><GPF:mode>2): Remove.
13353         (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
13354         and floatuns conversions.
13355         (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
13356         and floatuns conversions.
13357         * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
13358         (w1,w2): New mode attributes for inequal width conversions.
13360 2014-04-22  Renlin Li  <Renlin.Li@arm.com>
13362         * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
13363         the output asm format.
13365 2014-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
13367         * config/aarch64/aarch64-simd.md
13368         (aarch64_cm<optab>di): Always split.
13369         (*aarch64_cm<optab>di): New.
13370         (aarch64_cmtstdi): Always split.
13371         (*aarch64_cmtstdi): New.
13373 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
13375         PR tree-optimization/60823
13376         * omp-low.c (ipa_simd_modify_function_body): Go through
13377         all SSA_NAMEs and for those refering to vector arguments
13378         which are going to be replaced adjust SSA_NAME_VAR and,
13379         if it is a default definition, change it into a non-default
13380         definition assigned at the beginning of function from new_decl.
13381         (ipa_simd_modify_stmt_ops): Rewritten.
13382         * tree-dfa.c (set_ssa_default_def): When removing default def,
13383         check for NULL loc instead of NULL *loc.
13385 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13387         * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
13388         restrictions on core registers for DImode values in Thumb2.
13390 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
13392         * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
13393         * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
13395 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
13397         * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
13398         (*iordi_notzesidi_di): Likewise.
13399         (*iordi_notsesidi_di): Likewise.
13401 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
13403         * config/arm/arm-protos.h (tune_params): New struct members.
13404         * config/arm/arm.c: Initialise tune_params per processor.
13405         (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
13406         for speed, based on new tune_params.
13408 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
13410         * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
13411         * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
13412         * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
13413         * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
13414         * config/aarch64/arm_neon.h (vrnd_f64): Added.
13415         (vrnda_f64): Likewise.
13416         (vrndi_f64): Likewise.
13417         (vrndm_f64): Likewise.
13418         (vrndn_f64): Likewise.
13419         (vrndp_f64): Likewise.
13420         (vrndx_f64): Likewise.
13422 2014-04-22  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
13424         * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
13425         GET_MODE_SIZE argument is enum machine_mode.
13427 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
13429         PR target/60910
13430         * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
13431         value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
13433 2014-04-22  Lin Zuojian  <manjian2006@gmail.com>
13435         PR middle-end/60281
13436         * asan.c (asan_emit_stack_protection): Force the base to align to
13437         appropriate bits if STRICT_ALIGNMENT.  Set shadow_mem align to
13438         appropriate bits if STRICT_ALIGNMENT.
13439         * cfgexpand.c (expand_stack_vars): Set base_align appropriately
13440         when asan is on.
13441         (expand_used_vars): Leave a space in the stack frame for alignment
13442         if STRICT_ALIGNMENT.
13444 2014-04-21  David Malcolm  <dmalcolm@redhat.com>
13446         * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
13447         than a gimple.
13448         (gimple_store_p): Likewise.
13449         (gimple_assign_load_p): Likewise.
13450         (gimple_assign_cast_p): Likewise.
13451         (gimple_clobber_p): Likewise.
13453         * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
13454         rather than a gimple.
13455         (gimple_assign_cast_p): Likewise.
13457 2014-04-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
13459         PR target/60735
13460         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
13461         If mode is DDmode and TARGET_E500_DOUBLE allow move.
13463         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
13464         more debug information for E500 if -mdebug=reg.
13466 2014-04-21  Uros Bizjak  <ubizjak@gmail.com>
13468         PR target/60909
13469         * config/i386/i386.c (ix86_expand_builtin)
13470         <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
13471         register for target RTX.
13472         <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
13474 2014-04-18  Cong Hou  <congh@google.com>
13476         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
13477         the widen-mult pattern by handling two operands with different sizes,
13478         and operands whose size is smaller than half of the result type.
13480 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
13482         * ipa-inline.h (INLINE_HINT_known_hot): New hint.
13483         * ipa-inline-analysis.c (dump_inline_hints): Dump it.
13484         (do_estimate_edge_time): Compute it.
13485         * ipa-inline.c (want_inline_small_function_p): Bypass
13486         INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
13488 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
13490         * ipa-inline.c (spec_rem): New static variable.
13491         (dump_overall_stats): New function.
13492         (dump_inline_stats): New function.
13494 2014-04-18  Richard Henderson  <rth@redhat.com>
13496         * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
13497         to GET_MODE_SIZE, not a reg_class_t.
13499 2014-04-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13501         * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
13502         (vsx_xxmrglw_<mode>): Likewise.
13504 2014-04-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
13506         PR target/60876
13507         * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
13508         GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
13509         (rs6000_init_hard_regno_mode_ok): Likewise.
13511 2014-04-17  Jan Hubicka  <hubicka@ucw.cz>
13513         * ipa-inline.c (inline_small_functions): Account only non-cold
13514         functions.
13515         * doc/invoke.texi (inline-unit-growth): Update documentation.
13517 2014-04-17  Pat Haugen  <pthaugen@us.ibm.com>
13519         * config/rs6000/rs6000.md (addti3, subti3): New.
13521 2014-04-17  H.J. Lu  <hongjiu.lu@intel.com>
13523         PR target/60863
13524         * config/i386/i386.c (ix86_expand_clear): Remove outdated
13525         comment.  Check optimize_insn_for_size_p instead of
13526         optimize_insn_for_speed_p.
13528 2014-04-17  Martin Jambor  <mjambor@suse.cz>
13530         * gimple-iterator.c (gsi_start_edge): New function.
13531         * gimple-iterator.h (gsi_start_edge): Declare.
13532         * tree-sra.c (single_non_eh_succ): New function.
13533         (disqualify_ops_if_throwing_stmt): Renamed to
13534         disqualify_if_bad_bb_terminating_stmt.  Allow throwing statements
13535         having one non-EH successor BB.
13536         (sra_modify_expr): If stmt ends bb, use single non-EH successor to
13537         generate loads into replacements.
13538         (sra_modify_assign): Likewise and and also use the simple path for
13539         such statements.
13540         (sra_modify_function_body): Commit statements on edges.
13542 2014-04-17  Richard Biener  <rguenther@suse.de>
13544         PR middle-end/60849
13545         * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
13546         comparison results and add clarifying comment.
13548 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
13550         * genmodes.c (struct mode_data): Add need_bytesize_adj field.
13551         (blank_mode): Initialize it.
13552         (emit_mode_size_inline, emit_mode_nunits_inline,
13553         emit_mode_inner_inline): New functions.
13554         (emit_insn_modes_h): Call them and surround their output with
13555         #if GCC_VERSION >= 4001 ... #endif.
13556         * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
13557         For GCC_VERSION >= 4001 use mode_*_inline routines instead of
13558         mode_* arrays if the argument is __builtin_constant_p.
13559         * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
13560         is enum machine_mode.
13562 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
13564         * passes.c (opt_pass::execute): Adjust.
13565         (pass_manager::execute_pass_mode_switching): Likewise.
13566         (early_local_passes::execute): Likewise.
13567         (execute_one_pass): Pass cfun to the pass's execute method.
13568         * tree-pass.h (opt_pass::execute): Add function * argument.
13569         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
13570         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
13571         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
13572         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
13573         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
13574         config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
13575         except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
13576         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
13577         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
13578         ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
13579         ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
13580         lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
13581         postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
13582         reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
13583         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
13584         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
13585         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
13586         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
13587         tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
13588         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
13589         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
13590         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
13591         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
13592         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
13593         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
13594         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
13595         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
13596         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
13597         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
13598         Adjust.
13600 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
13602         * passes.c (opt_pass::gate): Take function * argument.
13603         (gate_all_early_local_passes): Merge into
13604         (early_local_passes::gate): this.
13605         (gate_all_early_optimizations): Merge into
13606         (all_early_optimizations::gate): this.
13607         (gate_all_optimizations): Mege into
13608         (all_optimizations::gate): this.
13609         (gate_all_optimizations_g): Merge into
13610         (all_optimizations_g::gate): this.
13611         (gate_rest_of_compilation): Mege into
13612         (rest_of_compilation::gate): this.
13613         (gate_postreload): Merge into
13614         (postreload::gate): this.
13615         (dump_one_pass): Pass cfun to the pass's gate method.
13616         (execute_ipa_summary_passes): Likewise.
13617         (execute_one_pass): Likewise.
13618         (ipa_write_summaries_2): Likewise.
13619         (ipa_write_optimization_summaries_1): Likewise.
13620         (ipa_read_summaries_1): Likewise.
13621         (ipa_read_optimization_summaries_1): Likewise.
13622         (execute_ipa_stmt_fixups): Likewise.
13623         * tree-pass.h (opt_pass::gate): Add function * argument.
13624         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
13625         combine-stack-adj.c, combine.c, compare-elim.c,
13626         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
13627         config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
13628         config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
13629         dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c,  fwprop.c, gcse.c,
13630         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
13631         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
13632         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
13633         loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
13634         omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
13635         reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
13636         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
13637         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
13638         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
13639         tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
13640         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
13641         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
13642         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
13643         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
13644         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
13645         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
13646         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
13647         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
13648         tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
13649         tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
13650         var-tracking.c, vtable-verify.c, web.c: Adjust.
13652 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
13654         * configure.ac: Check for -Woverloaded-virtual and enable it if found.
13655         * configure: Regenerate.
13657 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
13659         * passes.c (dump_one_pass): don't check pass->has_gate.
13660         (execute_ipa_summary_passes): Likewise.
13661         (execute_one_pass): Likewise.
13662         (ipa_write_summaries_2): Likewise.
13663         (ipa_write_optimization_summaries_1): Likewise.
13664         (ipa_read_optimization_summaries_1): Likewise.
13665         (execute_ipa_stmt_fixups): Likewise.
13666         * tree-pass.h (pass_data::has_gate): Remove.
13667         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
13668         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
13669         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
13670         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
13671         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
13672         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
13673         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
13674         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
13675         gimple-low.c, gimple-ssa-isolate-paths.c,
13676         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
13677         ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
13678         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
13679         ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
13680         modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
13681         recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
13682         reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
13683         trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
13684         tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
13685         tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
13686         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
13687         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
13688         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
13689         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
13690         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
13691         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
13692         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
13693         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
13694         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
13695         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
13696         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
13697         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
13698         Adjust.
13700 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
13702         * pass_manager.h (pass_manager::register_dump_files_1): Remove
13703         declaration.
13704         * passes.c (pass_manager::register_dump_files_1): Merge into
13705         (pass_manager::register_dump_files): this, and remove its handling of
13706         properties since the pass always has the properties anyway.
13707         (pass_manager::pass_manager): Adjust.
13709 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
13711         * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
13712         * passes.c (pass_manager::register_dump_files_1): Remove dead code
13713         dealing with properties.
13714         (pass_manager::register_dump_files): Adjust.
13716 2014-03-20  Mark Wielaard  <mjw@redhat.com>
13718         * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
13719         then represent the bound as normal constant value.
13721 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
13723         PR target/60847
13724         Forward port from 4.8 branch
13725         2013-07-19  Kirill Yukhin  <kirill.yukhin@intel.com>
13727         * config/i386/bmiintrin.h (_blsi_u32): New.
13728         (_blsi_u64): Ditto.
13729         (_blsr_u32): Ditto.
13730         (_blsr_u64): Ditto.
13731         (_blsmsk_u32): Ditto.
13732         (_blsmsk_u64): Ditto.
13733         (_tzcnt_u32): Ditto.
13734         (_tzcnt_u64): Ditto.
13736 2014-04-17  Kito Cheng  <kito@0xlab.org>
13738         * gcc.c (used_arg): Prevent out of bound access for multilib_options.
13740 2014-04-17  Richard Biener  <rguenther@suse.de>
13742         PR middle-end/60849
13743         * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
13744         boolean results for comparisons.
13746 2014-04-17  Richard Biener  <rguenther@suse.de>
13748         PR tree-optimization/60836
13749         * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
13750         initial PHI args to be gimple values.
13752 2014-04-17  Richard Biener  <rguenther@suse.de>
13754         PR tree-optimization/60841
13755         * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
13756         * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
13757         of stmts to SLP build.
13758         * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
13759         (vect_analyze_slp): Likewise.
13760         (vect_analyze_slp_instance): Likewise.
13761         (vect_build_slp_tree): Limit overall SLP tree growth.
13762         * tree-vectorizer.h (vect_analyze_data_refs,
13763         vect_analyze_slp): Adjust prototypes.
13765 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
13767         * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
13768         Silvermont.
13770 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
13772         * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
13773         * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
13774         * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
13775         for TARGET_SLOW_PSHUFB
13777 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
13779         * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
13780         * config/i386/i386.c (intel_cost): Ditto.
13782 2014-04-17  Joey Ye  <joey.ye@arm.com>
13784         * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
13786 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
13788         * opts.c (common_handle_option): Disable -fipa-reference coorectly
13789         with -fuse-profile.
13791 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
13793         * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
13794         (type_all_derivations_known_p): New predicate.
13795         (type_all_ctors_visible_p): New predicate.
13796         (type_possibly_instantiated_p): New predicate.
13797         (get_odr_type): Compute all_derivations_known.
13798         (dump_odr_type): Dump the flag.
13799         (maybe_record_type): Cleanup.
13800         (record_target_from_binfo): Add bases_to_consider array;
13801         record bases for types w/o instances and skip CXX destructor.
13802         (possible_polymorphic_call_targets_1): Add bases_to_consider
13803         and consider_construction parameters; check if type may have instance.
13804         (get_polymorphic_call_info): Set maybe_in_construction to true
13805         when we know nothing.
13806         (record_targets_from_bases): Skip CXX destructors; they are
13807         never called for types in construction.
13808         (possible_polymorphic_call_targets): Do not record target when
13809         type may not have instance.
13811 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
13813         PR ipa/60854
13814         * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
13815         external aliases alive, too.
13817 2014-04-16  Andrew  Pinski  <apinski@cavium.com>
13819         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
13820         definition.
13822 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
13824         * final.c (compute_alignments): Do not apply loop alignment to a block
13825         falling through to the exit.
13827 2014-04-16  Catherine Moore  <clm@codesourcery.com>
13829         * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
13830         Adjust constraints for microMIPS store patterns.
13832 2014-04-16  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
13834         * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
13836 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
13838         * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
13839         (append_use): Run at -O0.
13840         (append_vdef): Likewise.
13841         * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
13842         * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
13844 2014-04-16  Jakub Jelinek  <jakub@redhat.com>
13846         PR tree-optimization/60844
13847         * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
13848         (propagate_op_to_single_use, remove_visited_stmt_chain,
13849         linearize_expr, repropagate_negates, reassociate_bb): Use it
13850         instead of gsi_remove.
13852 2014-04-16  Martin Jambor  <mjambor@suse.cz>
13854         * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
13855         ipa_transforms_to_apply.
13856         (cgraph_function_versioning): Assert that old_node has empty
13857         ipa_transforms_to_apply.
13858         * trans-mem.c (ipa_tm_create_version): Likewise.
13859         * tree-inline.c (tree_function_versioning): Do not duplicate
13860         ipa_transforms_to_apply.
13862 2014-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13864         PR target/60817
13865         * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
13866         x86_64-*-* cases.
13867         Pass necessary as flags on 64-bit Solaris/x86.
13868         Use lowercase relocs for x86_64-*-*.
13869         * configure: Regenerate.
13871 2014-04-15  Jan Hubicka  <jh@suse.cz>
13873         * ipa-devirt.c (referenced_from_vtable_p): New predicate.
13874         (maybe_record_node, likely_target_p): Use it.
13876 2014-04-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13878         PR target/60839
13879         Revert following patch
13881         2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
13883         PR target/60735
13884         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
13885         software floating point or no floating point registers, do not
13886         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
13887         in GPRs that occurs after we tested for GPRs that would never be
13888         true.
13890         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
13891         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
13892         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
13893         specifically allow DDmode, since that does not use the SPE SIMD
13894         instructions.
13896 2014-03-21  Mark Wielaard  <mjw@redhat.com>
13898         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
13899         as unsigned or int depending on type and value used.
13901 2014-04-15  Richard Biener  <rguenther@suse.de>
13903         PR rtl-optimization/56965
13904         * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
13905         * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
13906         ... here.
13907         * alias.c (true_dependence_1): Do not call
13908         nonoverlapping_component_refs_p.
13909         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
13910         nonoverlapping_component_refs_p.
13911         (indirect_refs_may_alias_p): Likewise.
13913 2014-04-15  Teresa Johnson  <tejohnson@google.com>
13915         * cfg.c (dump_bb_info): Fix flags check.
13916         * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
13918 2014-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13920         PR rtl-optimization/60663
13921         * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
13922         avoid 0 cost.
13924 2014-04-15  Richard Biener  <rguenther@suse.de>
13926         * lto-streamer.h (LTO_major_version): Bump to 4.
13928 2014-04-15  Richard Biener  <rguenther@suse.de>
13930         * common.opt (lto_partition_model): New enum.
13931         (flto-partition=): Merge separate options with a single with argument,
13932         add -flto-partition=one support.
13933         * flag-types.h (enum lto_partition_model): Declare.
13934         * opts.c (finish_options): Remove duplicate -flto-partition=
13935         option check.
13936         * lto-wrapper.c (run_gcc): Adjust.
13938 2014-04-15  Richard Biener  <rguenther@suse.de>
13940         * alias.c (ncr_compar): New function.
13941         (nonoverlapping_component_refs_p): Re-implement in O (n log n).
13943 2014-04-15  Richard Biener  <rguenther@suse.de>
13945         * alias.c (record_component_aliases): Do not walk BINFOs.
13947 2014-04-15  Richard Biener  <rguenther@suse.de>
13949         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
13950         Add struct function argument and adjust.
13951         (find_func_aliases_for_call): Likewise.
13952         (find_func_aliases): Likewise.
13953         (find_func_clobbers): Likewise.
13954         (intra_create_variable_infos): Likewise.
13955         (compute_points_to_sets): Likewise.
13956         (ipa_pta_execute): Adjust.  Do not push/pop cfun.
13958 2014-04-15  Richard Biener  <rguenther@suse.de>
13960         * tree.c (iterative_hash_expr): Use enum tree_code_class
13961         to store TREE_CODE_CLASS.
13962         (tree_block): Likewise.
13963         (tree_set_block): Likewise.
13964         * tree.h (fold_build_pointer_plus_loc): Use
13965         convert_to_ptrofftype_loc.
13967 2014-04-15  Jakub Jelinek  <jakub@redhat.com>
13969         PR plugins/59335
13970         * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
13971         added in 4.9.
13973 2014-04-15  Eric Botcazou  <ebotcazou@adacore.com>
13975         * cfgloop.h (struct loop): Move force_vectorize down.
13976         * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
13977         (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
13978         * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
13979         * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
13980         * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
13981         * tree-core.h (enum annot_expr_kind): Add new kind values.
13982         * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
13983         * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
13984         kinds.
13985         * tree.def (ANNOTATE_EXPR): Tweak comment.
13987 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
13989         * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
13990         cxa_pure_virtual).
13992 2014-04-14  Paolo Carlini  <paolo.carlini@oracle.com>
13994         * tree.h (TYPE_IDENTIFIER): Declare.
13995         * tree.c (subrange_type_for_debug_p): Use it.
13996         * godump.c (go_format_type): Likewise.
13997         * dwarf2out.c (is_cxx_auto, modified_type_die,
13998         gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
13999         * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
14001 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
14003         PR lto/60820
14004         * varpool.c (varpool_remove_node): Do not alter decls when streaming.
14006 2014-04-14  Uros Bizjak  <ubizjak@gmail.com>
14008         * config/i386/i386.c (examine_argument): Return bool.  Return true if
14009         parameter should be passed in memory.
14010         <case X86_64_COMPLEX_X87_CLASS>: Adjust.
14011         (construct_container): Update calls to examine_argument.
14012         (function_arg_advance_64): Ditto.
14013         (return_in_memory_32): Merge with ix86_return_in_memory.
14014         (return_in_memory_64): Ditto.
14015         (return_in_memory_ms_64): Ditto.
14017 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
14019         * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
14020         * coverage.c (coverage_compute_profile_id): Handle externally visible
14021         symbols.
14023 2014-04-14  Martin Jambor  <mjambor@suse.cz>
14025         * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
14026         DECL_DISREGARD_INLINE_LIMITS functions.
14028 2014-04-14  H.J. Lu  <hongjiu.lu@intel.com>
14030         PR target/60827
14031         * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
14033 2014-04-14  H.J. Lu  <hongjiu.lu@intel.com>
14035         PR target/60827
14036         * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
14037         optimize_insn_for_speed_p instead of
14038         optimize_function_for_speed_p.
14040 2014-04-14  Yufeng Zhang  <yufeng.zhang@arm.com>
14042         * doc/invoke.texi (free): Document AArch64.
14044 2014-04-14  Richard Biener  <rguenther@suse.de>
14046         PR tree-optimization/60042
14047         * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
14048         (insert_into_preds_of_block): Do not prevent PHI insertion
14049         for REFERENCE exprs here ...
14050         (eliminate_dom_walker::before_dom_children): ... but prevent
14051         their use here under similar conditions when applied to the
14052         IL after PRE optimizations.
14054 2014-04-14  Richard Biener  <rguenther@suse.de>
14056         * passes.def: Move early points-to after early SRA.
14058 2014-04-14  Richard Biener  <rguenther@suse.de>
14060         * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
14061         check for which sign-changes we allow when forwarding
14062         a converted value into a switch.
14064 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
14066         * stor-layout.c (place_field): Finalize non-constant offset for the
14067         field, if any.
14069 2014-04-14  Richard Biener  <rguenther@suse.de>
14071         * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
14072         as argument.
14073         (expand_switch_using_bit_tests_p): Likewise.
14074         (process_switch): Compute and pass on speed_p based on the
14075         switch stmt.
14076         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
14077         optimize_bb_for_speed_p.
14079 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
14081         * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
14082         * function.h (struct function): Rename has_force_vect_loops into
14083         has_force_vectorize_loops.
14084         * lto-streamer-in.c (input_cfg): Adjust for renaming.
14085         (input_struct_function_base): Likewise.
14086         * lto-streamer-out.c (output_cfg): Likewise.
14087         (output_struct_function_base): Likewise.
14088         * omp-low.c (expand_omp_simd): Likewise.
14089         * tree-cfg.c (move_sese_region_to_fn): Likewise.
14090         * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
14091         (version_loop_for_if_conversion): Likewise.
14092         (tree_if_conversion): Likewise.
14093         (main_tree_if_conversion): Likewise.
14094         (gate_tree_if_conversion): Likewise.
14095         * tree-inline.c (copy_loops): Likewise.
14096         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
14097         * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
14098         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
14099         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
14100         * tree-vectorizer.c (vectorize_loops): Likewise.
14101         * tree-vectorizer.h (unlimited_cost_model): Likewise.
14103 2014-04-14  Richard Biener  <rguenther@suse.de>
14105         PR lto/60720
14106         * lto-streamer-out.c (wrap_refs): New function.
14107         (lto_output): Wrap symbol references in global initializes in
14108         type-preserving MEM_REFs.
14110 2014-04-14  Christian Bruel  <christian.bruel@st.com>
14112         * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
14114 2014-04-14  Christian Bruel  <christian.bruel@st.com>
14116         * config/sh/sh.md (setmemqi): New expand pattern.
14117         * config/sh/sh.h (CLEAR_RATIO): Define.
14118         * config/sh/sh-mem.cc (sh_expand_setmem): Define.
14119         * config/sh/sh-protos.h (sh_expand_setmem): Declare.
14121 2014-04-14  Richard Biener  <rguenther@suse.de>
14123         PR middle-end/55022
14124         * fold-const.c (negate_expr_p): Don't negate directional rounding
14125         division.
14126         (fold_negate_expr): Likewise.
14128 2014-04-14  Richard Biener  <rguenther@suse.de>
14130         PR tree-optimization/59817
14131         PR tree-optimization/60453
14132         * graphite-scop-detection.c (graphite_can_represent_scev): Complete
14133         recursion to catch all CHRECs in the scalar evolution and restrict
14134         the predicate for the remains appropriately.
14136 2014-04-12  Catherine Moore  <clm@codesourcery.com>
14138         * config/mips/constraints.md: Add new register constraint "kb".
14139         * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
14140         (*movhi_internal): Likewise.
14141         (*movqi_internal): Likewise.
14142         * config/mips/mips.h (M16_STORE_REGS): New register class.
14143         (REG_CLASS_NAMES): Add M16_STORE_REGS.
14144         (REG_CLASS_CONTENTS): Likewise.
14145         * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
14147 2014-04-11  Tobias Burnus  <burnus@net-b.de>
14149         PR c/60194
14150         * doc/invoke.texi (-Wformat-signedness): Document it.
14151         (Wformat=2): Mention that this enables -Wformat-signedness.
14153 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
14155         * common/config/epiphany/epiphany-common.c
14156         (epiphany_option_optimization_table): Enable section anchors by
14157         default at -O1 or higher.
14158         * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
14159         (TARGET_MIN_ANCHOR_OFFSET): Likewise.
14160         (epiphany_rtx_costs) <SET>: For binary operators, the set as such
14161         carries no extra cost.
14162         (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
14163         * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
14164         * config/epiphany/predicates.md (memclob_operand): New predicate.
14165         * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
14166         Use memclob_operand predicate and X constraint for operand 3.
14168 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
14170         * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
14171         with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
14172         its operands.
14174 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
14176         PR rtl-optimization/60651
14177         * mode-switching.c (optimize_mode_switching): Make sure to emit
14178         sets of a lower numbered entity before sets of a higher numbered
14179         entity to a mode of the same or lower priority.
14180         When creating a seginfo for a basic block that starts with a code
14181         label, move the insertion point past the code label.
14182         (new_seginfo): Document and enforce requirement that
14183         NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
14184         * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
14185         * doc/tm.texi: Regenerate.
14187 2014-01-11  Joern Rennecke  <joern.rennecke@embecosm.com>
14189         PR target/60811
14190         * config/arc/arc.c (arc_save_restore): Fix assert typo.
14192 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
14194         * BASE-VER: Set to 4.10.0.
14196 2014-04-11  Tobias Burnus  <burnus@net-b.de>
14198         PR other/59055
14199         * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
14200         * doc/gcc.texi (Service): Update description in the @menu
14201         * doc/invoke.texi (Option Summary): Remove misplaced and
14202         duplicated @menu.
14204 2014-04-11  Steve Ellcey  <sellcey@mips.com>
14205             Jakub Jelinek  <jakub@redhat.com>
14207         PR middle-end/60556
14208         * expr.c (convert_move): Use emit_store_flag_force instead of
14209         emit_store_flag.  Pass lowpart_mode instead of VOIDmode as 5th
14210         argument to it.
14212 2014-04-11  Richard Biener  <rguenther@suse.de>
14214         PR middle-end/60797
14215         * varasm.c (assemble_alias): Avoid endless error reporting
14216         recursion by setting TREE_ASM_WRITTEN.
14218 2014-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14220         * config/s390/s390.md: Add a splitter for NOT rtx.
14222 2014-04-11  Jakub Jelinek  <jakub@redhat.com>
14224         PR rtl-optimization/60663
14225         * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
14227 2014-04-10  Jan Hubicka  <hubicka@ucw.cz>
14228             Jakub Jelinek  <jakub@redhat.com>
14230         PR lto/60567
14231         * ipa.c (function_and_variable_visibility): Copy forced_by_abi
14232         flag from decl_node to node.
14234 2014-04-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14236         PR debug/60655
14237         * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
14238         (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
14239         ameliorating the cases where it can be.
14241 2014-04-09  David Edelsohn  <dje.gcc@gmail.com>
14243         Revert
14244         2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
14246         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
14247         (loadsync_<mode>): Change mode.
14248         (load_quadpti, store_quadpti): New.
14249         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
14250         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
14251         * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
14253 2014-04-09  Cong Hou  <congh@google.com>
14255         PR testsuite/60773
14256         * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
14257         documentation.
14259 2014-04-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14261         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
14262         instead of vnor to exploit possible fusion opportunity in the
14263         future.
14264         (altivec_expand_vec_perm_const_le): Likewise.
14266 2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
14268         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
14269         (loadsync_<mode>): Change mode.
14270         (load_quadpti, store_quadpti): New.
14271         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
14272         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
14274 2014-04-08  Richard Sandiford  <rdsandiford@googlemail.com>
14276         PR target/60763
14277         * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
14278         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
14279         Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
14281 2014-04-08  Richard Biener  <rguenther@suse.de>
14283         PR middle-end/60706
14284         * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
14285         a 64bit widest int print double-int similar to on HWI64 hosts.
14287 2014-04-08  Richard Biener  <rguenther@suse.de>
14289         PR tree-optimization/60785
14290         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
14291         default defs properly.
14293 2014-04-08  Nathan Sidwell  <nathan@codesourcery.com>
14295         * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
14296         (Weffc++): Likewise.
14298 2014-04-07  Jan Hubicka  <hubcika@ucw.cz>
14300         * ipa-devirt.c (maybe_record_node): When node is not recorded,
14301         set completep to false rather than true.
14303 2014-04-07  Douglas B Rupp  <rupp@adacore.com>
14305         PR target/60504
14306         * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
14307         ARM_TARGET2_DWARF_FORMAT.
14309 2014-04-07  Charles Baylis  <charles.baylis@linaro.org>
14311         PR target/60609
14312         * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
14313         (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
14314         ADDR_DIFF_VEC.
14316 2014-04-07  Richard Biener  <rguenther@suse.de>
14318         PR tree-optimization/60766
14319         * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
14320         (may_eliminate_iv): Convert cand_value_at result to desired type.
14322 2014-04-07  Jason Merrill  <jason@redhat.com>
14324         PR c++/60731
14325         * common.opt (-fno-gnu-unique): Add.
14326         * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
14328 2014-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14330         * haifa-sched.c: Fix outdated function reference and minor
14331         grammar errors in introductory comment.
14333 2014-04-07  Richard Biener  <rguenther@suse.de>
14335         PR middle-end/60750
14336         * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
14337         for noreturn calls.
14338         * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
14340 2014-04-06  John David Anglin  <danglin@gcc.gnu.org>
14342         PR debug/55794
14343         * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
14344         size accounting for thunks.
14345         (pa_asm_output_mi_thunk): Use final_start_function() and
14346         final_end_function() to output function start and end directives.
14348 2014-04-05  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
14350         * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
14351         device specific ISA/ feature information. Remove short_sp and
14352         errata_skip ds.  Add avr_device_specific_features enum to have device
14353         specific info.
14354         * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
14355         errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
14356         * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
14357         updated device specific info.
14358         * config/avr/avr-mcus.def: Merge device specific details to
14359         dev_attribute field.
14360         * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
14361         errata_skip.
14362         * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
14363         * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
14364         assembler if RMW isa supported by current device.
14365         * config/avr/genmultilib.awk: Update as device info structure changed.
14366         * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
14368 2014-04-04  Cong Hou  <congh@google.com>
14370         PR tree-optimization/60656
14371         * tree-vect-stmts.c (supportable_widening_operation):
14372         Fix a bug that elements in a vector with vect_used_by_reduction
14373         property are incorrectly reordered when the operation on it is not
14374         consistant with the one in reduction operation.
14376 2014-04-04  John David Anglin  <danglin@gcc.gnu.org>
14378         PR rtl-optimization/60155
14379         * gcse.c (record_set_data): New function.
14380         (single_set_gcse): New function.
14381         (gcse_emit_move_after): Use single_set_gcse instead of single_set.
14382         (hoist_code): Likewise.
14383         (get_pressure_class_and_nregs): Likewise.
14385 2014-04-04  Eric Botcazou  <ebotcazou@adacore.com>
14387         * explow.c (probe_stack_range): Emit a final optimization blockage.
14389 2014-04-04  Anthony Green  <green@moxielogic.com>
14391         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
14392         typos.
14394 2014-04-04  Jan Hubicka  <hubicka@ucw.cz>
14396         PR ipa/59626
14397         * lto-cgraph.c (input_overwrite_node): Check that partitioning
14398         flags are set only during streaming.
14399         * ipa.c (process_references, walk_polymorphic_call_targets,
14400         symtab_remove_unreachable_nodes): Drop bodies of always inline
14401         after early inlining.
14402         (symtab_remove_unreachable_nodes): Remove always_inline attribute.
14404 2014-04-04  Jakub Jelinek  <jakub@redhat.com>
14405         Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14407         PR debug/60655
14408         * dwarf2out.c (const_ok_for_output_1): Reject expressions
14409         containing a NOT.
14411 2014-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14413         PR bootstrap/60743
14414         * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
14415         duration.
14416         (cortex_a53_fdivd): Likewise.
14418 2014-04-04  Martin Jambor  <mjambor@suse.cz>
14420         PR ipa/60640
14421         * cgraph.h (cgraph_clone_node): New parameter added to declaration.
14422         Adjust all callers.
14423         * cgraph.c (clone_of_p): Also return true if thunks match.
14424         (verify_edge_corresponds_to_fndecl): Removed extraneous call to
14425         cgraph_function_or_thunk_node and an obsolete comment.
14426         * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
14427         file.
14428         (build_function_decl_skip_args): Likewise.
14429         (set_new_clone_decl_and_node_flags): New function.
14430         (duplicate_thunk_for_node): Likewise.
14431         (redirect_edge_duplicating_thunks): Likewise.
14432         (cgraph_clone_node): New parameter args_to_skip, pass it to
14433         redirect_edge_duplicating_thunks which is called instead of
14434         cgraph_redirect_edge_callee.
14435         (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
14436         moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
14438 2014-04-04  Jeff Law  <law@redhat.com>
14440         PR target/60657
14441         * config/arm/predicates.md (const_int_I_operand): New predicate.
14442         (const_int_M_operand): Similarly.
14443         * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
14444         const_int_operand.
14445         (insv_t2, extv_reg, extzv_t2): Likewise.
14446         (load_multiple_with_writeback): Similarly for const_int_I_operand.
14447         (pop_multiple_with_writeback_and_return): Likewise.
14448         (vfp_pop_multiple_with_writeback): Likewise
14450 2014-04-04  Richard Biener  <rguenther@suse.de>
14452         PR ipa/60746
14453         * tree-ssanames.c (make_ssa_name_fn): Fix assert.
14454         * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
14455         non-GIMPLE_LABELs.
14456         * gimplify.h (gimple_add_tmp_var_fn): Declare.
14457         * gimplify.c (gimple_add_tmp_var_fn): New function.
14458         * gimple-expr.h (create_tmp_reg_fn): Declare.
14459         * gimple-expr.c (create_tmp_reg_fn): New function.
14460         * gimple-low.c (record_vars_into): Don't change cfun.
14461         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
14462         code generation without cfun.
14464 2014-04-04  Thomas Schwinge  <thomas@codesourcery.com>
14466         PR bootstrap/60719
14467         * Makefile.in (install-driver): Fix shell scripting.
14469 2014-04-03  Cong Hou  <congh@google.com>
14471         PR tree-optimization/60505
14472         * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
14473         threshold of number of iterations below which no vectorization
14474         will be done.
14475         * tree-vect-loop.c (new_loop_vec_info):
14476         Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
14477         * tree-vect-loop.c (vect_analyze_loop_operations):
14478         Set LOOP_VINFO_COST_MODEL_THRESHOLD.
14479         * tree-vect-loop.c (vect_transform_loop):
14480         Use LOOP_VINFO_COST_MODEL_THRESHOLD.
14481         * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
14482         of iterations of the loop and see if we should build the epilogue.
14484 2014-04-03  Richard Biener  <rguenther@suse.de>
14486         * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
14487         (streamer_tree_cache_create): Adjust.
14488         * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
14489         to allow optional nodes array.
14490         (streamer_tree_cache_insert_1): Use next_idx to assign idx.
14491         (streamer_tree_cache_append): Likewise.
14492         (streamer_tree_cache_create): Create nodes array optionally
14493         as specified by parameter.
14494         * lto-streamer-out.c (create_output_block): Avoid maintaining
14495         the node array in the writer cache.
14496         (DFS_write_tree): Remove assertion.
14497         (produce_asm_for_decls): Free the out decl state hash table early.
14498         * lto-streamer-in.c (lto_data_in_create): Adjust for
14499         streamer_tree_cache_create prototype change.
14501 2014-04-03  Richard Biener  <rguenther@suse.de>
14503         * tree-streamer-out.c (streamer_write_chain): Do not temporarily
14504         set TREE_CHAIN to NULL_TREE.
14506 2014-04-03  Richard Biener  <rguenther@suse.de>
14508         PR tree-optimization/60740
14509         * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
14510         over all GIMPLE_COND operands.
14512 2014-04-03  Nathan Sidwell  <nathan@codesourcery.com>
14514         * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
14515         (Weffc++): Remove Scott's numbering, merge lists and reference
14516         Wnon-virtual-dtor.
14518 2014-04-03  Nick Clifton  <nickc@redhat.com>
14520         * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
14521         properly.
14523 2014-04-03  Martin Jambor  <mjambor@suse.cz>
14525         * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
14526         mention gcc_unreachable before failing.
14527         * ipa.c (symtab_remove_unreachable_nodes): Also print order of
14528         removed symbols.
14530 2014-04-02  Jan Hubicka  <hubicka@ucw.cz>
14532         PR ipa/60659
14533         * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
14534         inconsistent code and instead mark the context inconsistent.
14535         (possible_polymorphic_call_targets): For inconsistent contexts
14536         return empty complete list.
14538 2014-04-02  Anthony Green  <green@moxielogic.com>
14540         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
14541         (extendqisi2, extendhisi2): Define.
14542         * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
14543         (WCHAR_TYPE): Change to unsigned int.
14545 2014-04-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14547         PR tree-optimization/60733
14548         * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
14549         insertion point for PHI candidates to be the end of the feeding
14550         block for the PHI argument.
14552 2014-04-02  Vladimir Makarov  <vmakarov@redhat.com>
14554         PR rtl-optimization/60650
14555         * lra-constraints.c (process_alt_operands): Decrease reject for
14556         earlyclobber matching.
14558 2014-04-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14560         * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
14562 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14564         * config/spu/spu.c (pad_bb): Do not crash when the last
14565         insn is CODE_FOR_blockage.
14567 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14569         * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
14570         lies outside the target mode.
14572 2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
14574         PR target/60735
14575         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
14576         software floating point or no floating point registers, do not
14577         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
14578         in GPRs that occurs after we tested for GPRs that would never be
14579         true.
14581         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
14582         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
14583         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
14584         specifically allow DDmode, since that does not use the SPE SIMD
14585         instructions.
14587 2014-04-02  Richard Biener  <rguenther@suse.de>
14589         PR middle-end/60729
14590         * optabs.c (expand_abs_nojump): Honor flag_trapv only for
14591         MODE_INTs.  Properly use negv_optab.
14592         (expand_abs): Likewise.
14594 2014-04-02  Richard Biener  <rguenther@suse.de>
14596         PR bootstrap/60719
14597         * Makefile.in (install-driver): Guard extra installs with special
14598         names properly.
14600 2014-04-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
14602         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
14603         Document vec_vgbbd.
14605 2014-04-01  Richard Henderson  <rth@redhat.com>
14607         PR target/60704
14608         * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
14609         alternative enabled before register allocation.
14611 2014-04-01  Chung-Lin Tang  <cltang@codesourcery.com>
14613         * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
14614         * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
14615         typo.
14616         (nios2_large_got_address): Remove unneeded 'sym' parameter.
14617         (nios2_got_address): Update nios2_large_got_address call site.
14618         (nios2_delegitimize_address): New function.
14619         (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
14620         * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
14621         (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
14623 2014-04-01  Martin Husemann  <martin@duskware.de>
14625         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
14626         for -mabi=32.
14628 2014-04-01  Richard Sandiford  <rdsandiford@googlemail.com>
14630         PR rtl-optimization/60604
14631         * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
14632         check from register_operand.
14633         (register_operand): Redefine in terms of general_operand.
14634         (nonmemory_operand): Use register_operand for the non-constant cases.
14636 2014-04-01  Richard Biener  <rguenther@suse.de>
14638         * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
14640 2014-04-01  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14642         * doc/invoke.texi (mapp-regs): Clarify.
14644 2014-03-31  Ulrich Drepper  <drepper@gmail.com>
14646         * config/i386/avx512fintrin.h (__v32hi): Define type.
14647         (__v64qi): Likewise.
14648         (_mm512_set1_epi8): Define.
14649         (_mm512_set1_epi16): Define.
14650         (_mm512_set4_epi32): Define.
14651         (_mm512_set4_epi64): Define.
14652         (_mm512_set4_pd): Define.
14653         (_mm512_set4_ps): Define.
14654         (_mm512_setr4_epi64): Define.
14655         (_mm512_setr4_epi32): Define.
14656         (_mm512_setr4_pd): Define.
14657         (_mm512_setr4_ps): Define.
14658         (_mm512_setzero_epi32): Define.
14660 2014-03-31  Martin Jambor  <mjambor@suse.cz>
14662         PR middle-end/60647
14663         * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
14664         callsite_arguments_match_p.  Updated all callers.  Also check types of
14665         corresponding formal parameters and actual arguments.
14666         (not_all_callers_have_enough_arguments_p) Renamed to
14667         some_callers_have_mismatched_arguments_p.
14669 2014-03-31  Yuri Rumyantsev  <ysrumyan@gmail.com>
14671         * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
14673 2014-03-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
14675         PR target/60034
14676         * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
14677         section anchor.
14679 2014-03-30  Uros Bizjak  <ubizjak@gmail.com>
14681         * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
14682         (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
14683         Split out
14684         <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
14685         Use FMAMODE_NOVF512 mode iterator.
14686         (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
14687         (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
14688         (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
14689         (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
14690         Split out
14691         <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
14692         Use VF_128_256 mode iterator.
14693         (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
14694         Ditto.
14696 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
14698         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
14699         static chain if needed.
14701 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
14703         PR target/60697
14704         * lra-constraints.c (index_part_to_reg): New.
14705         (process_address): Use it.
14707 2014-03-27  Jeff Law  <law@redhat.com>
14708             Jakub Jelinek  <jakub@redhat.com>
14710         PR target/60648
14711         * expr.c (do_tablejump): Use simplify_gen_binary rather than
14712         gen_rtx_{PLUS,MULT} to build up the address expression.
14714         * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
14715         creating non-canonical RTL.
14717 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
14719         PR ipa/60243
14720         * ipa-inline.c (want_inline_small_function_p): Short circuit large
14721         functions; reorganize to make cheap checks first.
14722         (inline_small_functions): Do not estimate growth when dumping;
14723         it is expensive.
14724         * ipa-inline.h (inline_summary): Add min_size.
14725         (growth_likely_positive): New function.
14726         * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
14727         (set_cond_stmt_execution_predicate): Cleanup.
14728         (estimate_edge_size_and_time): Compute min_size.
14729         (estimate_calls_size_and_time): Likewise.
14730         (estimate_node_size_and_time): Likewise.
14731         (inline_update_overall_summary): Update min_size.
14732         (do_estimate_edge_time): Likewise.
14733         (do_estimate_edge_size): Update.
14734         (do_estimate_edge_hints): Update.
14735         (growth_likely_positive): New function.
14737 2014-03-28  Jakub Jelinek  <jakub@redhat.com>
14739         PR target/60693
14740         * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
14741         also if addr has VOIDmode.
14743 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14745         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
14746         * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
14747         Declare extern.
14748         * config/arm/cortex-a53.md: Add reservations and bypass for crypto
14749         instructions as well as AdvancedSIMD loads.
14751 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14753         * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
14754         Use crypto_aese type.
14755         (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
14756         * config/arm/arm.md (is_neon_type): Replace crypto_aes with
14757         crypto_aese, crypto_aesmc.  Move to types.md.
14758         * config/arm/types.md (crypto_aes): Split into crypto_aese,
14759         crypto_aesmc.
14760         * config/arm/iterators.md (crypto_type): Likewise.
14762 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
14764         * cgraph.c: Include expr.h and tree-dfa.h.
14765         (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
14766         remove LHS.
14768 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
14770         PR target/60675
14771         * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
14772         regs from checking multi-reg pseudos.
14774 2014-03-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14776         * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
14778 2014-03-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14780         * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
14781         if it would clobber the stack pointer, even temporarily.
14783 2014-03-28  Eric Botcazou  <ebotcazou@adacore.com>
14785         * mode-switching.c: Make small adjustments to the top comment.
14787 2014-03-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
14789         * config/rs6000/constraints.md (wD constraint): New constraint to
14790         match the constant integer to get the top DImode/DFmode out of a
14791         vector in a VSX register.
14793         * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
14794         match the constant integer to get the top DImode/DFmode out of a
14795         vector in a VSX register.
14797         * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
14798         for ISA 2.07.
14800         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
14801         vbpermq builtins.
14803         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
14804         -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
14806         * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
14807         Optimize vec_extract of 64-bit values, where the value being
14808         extracted is in the top word, where we can use scalar
14809         instructions.  Add direct move and store support.  Combine the big
14810         endian/little endian vector select load support into a single insn.
14811         (vsx_extract_<mode>_internal1): Likewise.
14812         (vsx_extract_<mode>_internal2): Likewise.
14813         (vsx_extract_<mode>_load): Likewise.
14814         (vsx_extract_<mode>_store): Likewise.
14815         (vsx_extract_<mode>_zero): Delete, big and little endian insns are
14816         combined into vsx_extract_<mode>_load.
14817         (vsx_extract_<mode>_one_le): Likewise.
14819         * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
14820         define the top 64-bit vector element.
14822         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
14823         constraint.
14825         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
14826         Document vec_vbpermq builtin.
14828         PR target/60672
14829         * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
14830         enable use of xxsldwi and xxpermdi builtin functions.
14831         (vec_xxpermdi): Likewise.
14833         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
14834         Document use of vec_xxsldwi and vec_xxpermdi builtins.
14836 2014-03-27  Vladimir Makarov  <vmakarov@redhat.com>
14838         PR rtl-optimization/60650
14839         * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
14840         first_p.  Use it.
14841         (find_spills_for): New.
14842         (assign_by_spills): Pass the new parameter to find_hard_regno_for.
14843         Spill all pseudos on the second iteration.
14845 2014-03-27  Marek Polacek  <polacek@redhat.com>
14847         PR c/50347
14848         * doc/extend.texi (ffs Builtins): Change unsigned types to signed
14849         types.
14851 2014-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14853         * config/s390/s390.c (s390_can_use_return_insn): Check for
14854         call-saved FPRs on 31 bit.
14856 2014-03-27  Jakub Jelinek  <jakub@redhat.com>
14858         PR middle-end/60682
14859         * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
14860         if they need regimplification, just drop them instead of
14861         calling gimple_regimplify_operands on them.
14863 2014-03-27  Marcus Shawcroft  <marcus.shawcroft@arm.com>
14865         PR target/60580
14866         * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
14867         (aarch64_frame_pointer_required): Adjust logic.
14868         (aarch64_can_eliminate): Adjust logic.
14869         (aarch64_override_options_after_change): Adjust logic.
14871 2014-03-27  Dehao Chen  <dehao@google.com>
14873         * ipa-inline.c (early_inliner): Update node's inline info.
14875 2014-03-26  Dehao Chen  <dehao@google.com>
14877         * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
14878         compiler inserted conditional jumps for NAN float check.
14880 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
14882         * ubsan.h (ubsan_create_data): Change second argument's type
14883         to const location_t *.
14884         * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
14885         _("<unknown>").
14886         (ubsan_create_data): Change second argument to const location_t *PLOC.
14887         Create Loc field whenever PLOC is non-NULL.
14888         (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
14889         ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
14890         callers.
14892         PR other/59545
14893         * real.c (real_to_integer2): Change type of low to UHWI.
14895 2014-03-26  Tobias Burnus  <burnus@net-b.de>
14897         * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
14898         (CILK_SELF_SPECS): New define.
14899         (driver_self_specs): Use it.
14901 2014-03-26  Richard Biener  <rguenther@suse.de>
14903         * tree-pretty-print.c (percent_K_format): Implement special
14904         case for LTO and its stripped down BLOCK tree.
14906 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
14908         PR sanitizer/60636
14909         * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
14911         * tree-vrp.c (simplify_internal_call_using_ranges): If only
14912         one range is range_int_cst_p, but not both, at least optimize
14913         addition/subtraction of 0 and multiplication by 0 or 1.
14914         * gimple-fold.c (gimple_fold_call): Fold
14915         IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
14916         (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
14917         INTEGER_CSTs, try to fold at least x * 0 and y - y.
14919 2014-03-26  Eric Botcazou  <ebotcazou@adacore.com>
14921         PR rtl-optimization/60452
14922         * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
14923         <case REG>: Return 1 for invalid offsets from the frame pointer.
14925 2014-03-26  Marek Polacek  <polacek@redhat.com>
14927         PR c/37428
14928         * doc/extend.texi (C Extensions): Mention variable-length arrays in
14929         a structure/union.
14931 2014-03-26  Marek Polacek  <polacek@redhat.com>
14933         PR c/39525
14934         * doc/extend.texi (Designated Inits): Describe what happens to omitted
14935         field members.
14937 2014-03-26  Marek Polacek  <polacek@redhat.com>
14939         PR other/59545
14940         * ira-color.c (update_conflict_hard_regno_costs): Perform the
14941         multiplication in unsigned type.
14943 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
14945         * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
14947 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
14949         * doc/contrib.texi: Add myself as Andes nds32 port contributor.
14951 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
14953         PR ipa/60315
14954         * cif-code.def (UNREACHABLE) New code.
14955         * ipa-inline.c (inline_small_functions): Skip edges to
14956         __builtlin_unreachable.
14957         (estimate_edge_growth): Allow edges to __builtlin_unreachable.
14958         * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
14959         predicate to __bulitin_unreachable.
14960         (set_cond_stmt_execution_predicate): Fix issue when
14961         invert_tree_comparison returns ERROR_MARK.
14962         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
14963         propagate to inline clones.
14964         * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
14965         to unreachable.
14966         * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
14967         * cgraphclones.c (cgraph_clone_node): If call destination is already
14968         ureachable, do not redirect it back.
14969         * tree-inline.c (fold_marked_statements): Hanlde calls becoming
14970         unreachable.
14972 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
14974         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
14975         Do not modify inline clones.
14977 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
14979         * config/i386/i386.md (general_sext_operand): New mode attr.
14980         (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
14981         don't generate (sign_extend (const_int)).
14982         (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
14983         operands[2].  Use We constraint instead of <i> and
14984         <general_sext_operand> predicate instead of <general_operand>.
14985         (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
14986         * config/i386/constraints.md (We): New constraint.
14987         * config/i386/predicates.md (x86_64_sext_operand,
14988         sext_operand): New predicates.
14990 2014-03-25  Martin Jambor  <mjambor@suse.cz>
14992         PR ipa/60600
14993         * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
14994         inconsistent devirtualizations to __builtin_unreachable.
14996 2014-03-25  Marek Polacek  <polacek@redhat.com>
14998         PR c/35449
14999         * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
15001 2014-03-25  Alan Lawrence  <alan.lawrence@arm.com>
15003         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
15004         order of elements for big-endian.
15006 2014-03-25  Richard Biener  <rguenther@suse.de>
15008         PR middle-end/60635
15009         * gimplify-me.c (gimple_regimplify_operands): Update the
15010         re-gimplifed stmt.
15012 2014-03-25  Martin Jambor  <mjambor@suse.cz>
15014         PR ipa/59176
15015         * lto-cgraph.c (lto_output_node): Stream body_removed flag.
15016         (lto_output_varpool_node): Likewise.
15017         (input_overwrite_node): Likewise.
15018         (input_varpool_node): Likewise.
15020 2014-03-25  Richard Biener  <rguenther@suse.de>
15022         * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
15023         (run_gcc): Likewise.
15025 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
15027         * combine.c (simplify_compare_const): Add MODE argument.
15028         Handle mode_width 0 as very large mode_width.
15029         (try_combine, simplify_comparison): Adjust callers.
15031         * cselib.c (cselib_hash_rtx): Perform addition in unsigned
15032         type to avoid signed integer overflow.
15033         * explow.c (plus_constant): Likewise.
15035 2014-03-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
15037         * doc/generic.texi: Correct typos.
15039 2014-03-24  Tobias Burnus  <burnus@net-b.de>
15041         * doc/invoke.texi (-flto): Expand section about
15042         using static libraries with LTO.
15044 2014-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15046         PR rtl-optimization/60501
15047         * optabs.def (addptr3_optab): New optab.
15048         * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
15049         * doc/md.texi ("addptrm3"): Document new RTL standard expander.
15050         * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
15052         * lra.c (emit_add3_insn): Use the addptr pattern if available.
15054         * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
15056 2014-03-24  Ulrich Drepper  <drepper@gmail.com>
15058         * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
15059         _mm512_set1_pd.
15061         * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
15062         (_mm256_undefined_ps): Define.
15063         (_mm256_undefined_pd): Define.
15064         * config/i386/emmintrin.h (_mm_undefined_si128): Define.
15065         (_mm_undefined_pd): Define.
15066         * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
15067         * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
15068         (_mm512_undefined_ps): Define.
15069         (_mm512_undefined_pd): Define.
15070         Use _mm*_undefined_*.
15071         * config/i386/avx2intrin.h: Use _mm*_undefined_*.
15073 2014-03-24  Alex Velenko  <Alex.Velenko@arm.com>
15075         * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
15076         (lshr_simd): DI mode added.
15077         * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
15078         (aarch64_ushr_simddi): Likewise.
15079         * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
15080         * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
15081         (vshrd_n_u64): Likewise.
15083 2014-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15085         * Makefile.in (s-macro_list): Depend on cc1.
15087 2014-03-23  Teresa Johnson  <tejohnson@google.com>
15089         * ipa-utils.c (ipa_print_order): Use specified dump file.
15091 2014-03-23  Eric Botcazou  <ebotcazou@adacore.com>
15093         PR rtl-optimization/60601
15094         * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
15096         * gcc.c (eval_spec_function): Initialize save_growing_value.
15098 2014-03-22  Jakub Jelinek  <jakub@redhat.com>
15100         PR sanitizer/60613
15101         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
15102         code == MINUS_EXPR, never swap op0 with op1.
15104         * toplev.c (init_local_tick): Avoid signed integer multiplication
15105         overflow.
15106         * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
15107         shift by first operand's bitsize.
15109 2014-03-21  Jakub Jelinek  <jakub@redhat.com>
15111         PR target/60610
15112         * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
15113         redefine to 1 or 0.
15114         * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
15115         TARGET_ISA_64BIT_P(x).
15117 2014-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15119         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
15120         pattern for vector nor instead of subtract from splat(-1).
15121         (altivec_expand_vec_perm_const_le): Likewise.
15123 2014-03-21  Richard Henderson  <rth@twiddle.net>
15125         PR target/60598
15126         * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
15127         related insns after epilogue_completed.
15129 2014-03-21  Martin Jambor  <mjambor@suse.cz>
15131         PR ipa/59176
15132         * cgraph.h (symtab_node): New flag body_removed.
15133         * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
15134         when removing bodies.
15135         * symtab.c (dump_symtab_base): Dump body_removed flag.
15136         * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
15137         had their bodies removed.
15139 2014-03-21  Martin Jambor  <mjambor@suse.cz>
15141         PR ipa/60419
15142         * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
15143         in the border.
15145 2014-03-21  Richard Biener  <rguenther@suse.de>
15147         PR tree-optimization/60577
15148         * tree-core.h (struct tree_base): Document nothrow_flag use
15149         in DECL_NONALIASED.
15150         * tree.h (DECL_NONALIASED): New.
15151         (may_be_aliased): Adjust.
15152         * coverage.c (build_var): Set DECL_NONALIASED.
15154 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
15156         * expr.c (expand_expr_real_1): Remove outdated comment.
15158 2014-03-20  Jakub Jelinek  <jakub@redhat.com>
15160         PR middle-end/60597
15161         * ira.c (adjust_cleared_regs): Call copy_rtx on
15162         *reg_equiv[REGNO (loc)].src_p before passing it to
15163         simplify_replace_fn_rtx.
15165         PR target/60568
15166         * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
15167         into CONST, put pic register as first operand of PLUS.  Use
15168         gen_const_mem for both 32-bit and 64-bit PIC got loads.
15170 2014-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15172         * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
15174 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
15176         * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
15177         around for store forwarding issue in the FPU on the UT699.
15178         * config/sparc/sparc.md (in_branch_delay): Return false for single FP
15179         loads and operations if -mfix-ut699 is specified.
15180         (divtf3_hq): Tweak attribute.
15181         (sqrttf2_hq): Likewise.
15183 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
15185         * calls.c (store_one_arg): Remove incorrect const qualification on the
15186         type of the temporary.
15187         * cfgexpand.c (expand_return): Likewise.
15188         * expr.c (expand_constructor): Likewise.
15189         (expand_expr_real_1): Likewise.
15191 2014-03-20  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
15193         * config/arm/arm.c (arm_dwarf_register_span): Update the element number
15194         of parts.
15196 2014-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
15198         PR target/60039
15199         * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
15201 2014-03-19  James Greenhalgh  <james.greenhalgh@arm.com>
15203         * config/arm/aarch-common-protos.h
15204         (alu_cost_table): Fix spelling of "extend".
15205         * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
15207 2014-03-19  Richard Biener  <rguenther@suse.de>
15209         PR middle-end/60553
15210         * tree-core.h (tree_type_common): Re-order pointer members
15211         to reduce recursion depth during GC walks.
15213 2014-03-19  Marek Polacek  <polacek@redhat.com>
15215         PR sanitizer/60569
15216         * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
15217         before accessing it.
15219 2014-03-19  Richard Biener  <rguenther@suse.de>
15221         PR lto/59543
15222         * lto-streamer-in.c (input_function): In WPA stage do not drop
15223         debug stmts.
15225 2014-03-19  Jakub Jelinek  <jakub@redhat.com>
15227         PR tree-optimization/60559
15228         * vectorizable_mask_load_store): Replace scalar MASK_LOAD
15229         with build_zero_cst assignment.
15231 2014-03-18  Kai Tietz  <ktietz@redhat.com>
15233         PR rtl-optimization/56356
15234         * sdbout.c (sdbout_parms): Verify that parms'
15235         incoming argument is valid.
15236         (sdbout_reg_parms): Likewise.
15238 2014-03-18  Richard Henderson  <rth@redhat.com>
15240         PR target/60562
15241         * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
15242         be shadowed by *float<SWI48><MODEF>2_sse.  Test X87_ENABLE_FLOAT.
15243         (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
15245 2014-03-18  Basile Starynkevitch  <basile@starynkevitch.net>
15247         * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
15248         * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
15249         Italicize plugin event names in description.  Explain that
15250         PLUGIN_PRAGMAS has no sense for lto1.  Explain PLUGIN_INCLUDE_FILE.
15251         Remind that no GCC functions should be called after PLUGIN_FINISH.
15252         Explain what pragmas with expansion are.
15254 2014-03-18  Martin Liska  <mliska@suse.cz>
15256         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
15257         gimple call statement is update.
15258         * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
15259         GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
15261 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
15263         PR sanitizer/60557
15264         * ubsan.c (ubsan_instrument_unreachable): Call
15265         initialize_sanitizer_builtins.
15266         (ubsan_pass): Likewise.
15268         PR sanitizer/60535
15269         * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
15270         varpool_finalize_decl instead of rest_of_decl_compilation.
15272 2014-03-18  Richard Biener  <rguenther@suse.de>
15274         * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
15275         by using bitmap_and_compl instead of bitmap_and_compl_into.
15276         (df_rd_transfer_function): Likewise.
15278 2014-03-18  Richard Biener  <rguenther@suse.de>
15280         * doc/lto.texi (fresolution): Fix typo.
15282 2014-03-18  Richard Biener  <rguenther@suse.de>
15284         * doc/invoke.texi (flto): Update for changes in 4.9.
15286 2014-03-18  Richard Biener  <rguenther@suse.de>
15288         * doc/loop.texi: Remove section on the removed lambda framework.
15289         Update loop docs with recent changes in preserving loop structure.
15291 2014-03-18  Richard Biener  <rguenther@suse.de>
15293         * doc/lto.texi (-fresolution): Document.
15295 2014-03-18  Richard Biener  <rguenther@suse.de>
15297         * doc/contrib.texi: Adjust my name.
15299 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
15301         PR ipa/58721
15302         * internal-fn.c: Include diagnostic-core.h.
15303         (expand_BUILTIN_EXPECT): New function.
15304         * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
15305         (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
15306         IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
15307         * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
15308         IFN_BUILTIN_EXPECT.
15309         * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
15310         Revert 3 argument __builtin_expect code.
15311         (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
15312         * gimple-fold.c (gimple_fold_call): Likewise.
15313         * tree.h (fold_builtin_expect): New prototype.
15314         * builtins.c (build_builtin_expect_predicate): Add predictor
15315         argument, if non-NULL, create 3 argument __builtin_expect.
15316         (fold_builtin_expect): No longer static.  Add ARG2 argument,
15317         pass it through to build_builtin_expect_predicate.
15318         (fold_builtin_2): Adjust caller.
15319         (fold_builtin_3): Handle BUILT_IN_EXPECT.
15320         * internal-fn.def (BUILTIN_EXPECT): New.
15322 2014-03-18  Tobias Burnus  <burnus@net-b.de>
15324         PR ipa/58721
15325         * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
15326         PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
15327         PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
15329 2014-03-18  Jan Hubicka  <hubicka@ucw.cz>
15331         PR ipa/58721
15332         * predict.c (combine_predictions_for_bb): Fix up formatting.
15333         (expr_expected_value_1, expr_expected_value): Add predictor argument,
15334         fill what it points to if non-NULL.
15335         (tree_predict_by_opcode): Adjust caller, use the predictor.
15336         * predict.def (PRED_COMPARE_AND_SWAP): Add.
15338 2014-03-18  Eric Botcazou  <ebotcazou@adacore.com>
15340         * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
15341         proper constant for the store mode.
15343 2014-03-18  Ilya Enkovich  <ilya.enkovich@intel.com>
15345         * symtab.c (change_decl_assembler_name): Fix transparent alias
15346         chain construction.
15348 2014-03-16  Renlin Li  <Renlin.Li@arm.com>
15350         * config/aarch64/aarch64.c: Correct the comments about the
15351         aarch64 stack layout.
15353 2014-03-18  Thomas Schwinge  <thomas@codesourcery.com>
15355         * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
15356         check for GF_OMP_FOR_KIND_FOR.
15358 2013-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
15360         * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
15361         ymm and zmm register names.
15363 2014-03-17  Jakub Jelinek  <jakub@redhat.com>
15365         PR target/60516
15366         * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
15367         note creation for the 2010-08-31 changes.
15369 2014-03-17  Marek Polacek  <polacek@redhat.com>
15371         PR middle-end/60534
15372         * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
15373         as -fno-tree-loop-vectorize.
15374         (expand_omp_simd): Likewise.
15376 2014-03-15  Eric Botcazou  <ebotcazou@adacore.com>
15378         * config/sparc/sparc-protos.h (tls_call_delay): Delete.
15379         (eligible_for_call_delay): New prototype.
15380         * config/sparc/sparc.c (tls_call_delay): Rename into...
15381         (eligible_for_call_delay): ...this.  Return false if the instruction
15382         cannot be put in the delay slot of a branch.
15383         (eligible_for_restore_insn): Simplify.
15384         (eligible_for_return_delay): Return false if the instruction cannot be
15385         put in the delay slot of a branch and simplify.
15386         (eligible_for_sibcall_delay): Return false if the instruction cannot be
15387         put in the delay slot of a branch.
15388         * config/sparc/sparc.md (fix_ut699): New attribute.
15389         (tls_call_delay): Delete.
15390         (in_call_delay): Reimplement.
15391         (eligible_for_sibcall_delay): Rename into...
15392         (in_sibcall_delay): ...this.
15393         (eligible_for_return_delay): Rename into...
15394         (in_return_delay): ...this.
15395         (in_branch_delay): Reimplement.
15396         (in_uncond_branch_delay): Delete.
15397         (in_annul_branch_delay): Delete.
15399 2014-03-14  Richard Henderson  <rth@redhat.com>
15401         PR target/60525
15402         * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
15403         define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
15404         (*floathi<X87MODEF>2_i387_with_temp): Remove.
15405         (floathi splitters): Remove.
15406         (float<SWI48x>xf2): New pattern.
15407         (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2.  Drop
15408         code that tried to handle DImode for 32-bit, but which was excluded
15409         by the pattern's condition.  Drop allocation of stack temporary.
15410         (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
15411         (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
15412         (*float<SWI48><MODEF>2_mixed_interunit): Remove.
15413         (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
15414         (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
15415         (*float<SWI48><MODEF>2_sse_with_temp): Remove.
15416         (*float<SWI48><MODEF>2_sse_interunit): Remove.
15417         (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
15418         (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
15419         (*float<SWI48x><X87MODEF>2_i387): Remove.
15420         (all float _with_temp splitters): Remove.
15421         (*float<SWI48x><MODEF>2_i387): New pattern.
15422         (*float<SWI48><MODEF>2_sse): New pattern.
15423         (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
15424         (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
15426 2014-03-14  Jakub Jelinek  <jakub@redhat.com>
15427             Marek Polacek  <polacek@redhat.com>
15429         PR middle-end/60484
15430         * common.opt (dump_base_name_prefixed): New Variable.
15431         * opts.c (finish_options): Don't prepend directory to x_dump_base_name
15432         if x_dump_base_name_prefixed is already set, set it at the end.
15434 2014-03-14  Vladimir Makarov  <vmakarov@redhat.com>
15436         PR rtl-optimization/60508
15437         * lra-constraints.c (get_reload_reg): Add new parameter
15438         in_subreg_p.
15439         (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
15440         Pass the new parameter values.
15442 2014-03-14  Richard Biener  <rguenther@suse.de>
15444         * common.opt: Revert unintented changes from r205065.
15445         * opts.c: Likewise.
15447 2014-03-14  Richard Biener  <rguenther@suse.de>
15449         PR middle-end/60518
15450         * cfghooks.c (split_block): Properly adjust all loops the
15451         block was a latch of.
15453 2014-03-14  Martin Jambor  <mjambor@suse.cz>
15455         PR lto/60461
15456         * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
15457         and simplify it.
15459 2014-03-14  Georg-Johann Lay  <avr@gjlay.de>
15461         PR target/59396
15462         * config/avr/avr.c (avr_set_current_function): Pass function name
15463         through default_strip_name_encoding before sanity checking instead
15464         of skipping the first char of the assembler name.
15466 2014-03-13  Richard Henderson  <rth@redhat.com>
15468         PR debug/60438
15469         * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
15470         (ix86_force_to_memory, ix86_free_from_memory): Remove.
15471         * config/i386/i386-protos.h: Likewise.
15472         * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
15473         in the expander instead of a splitter.
15474         (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
15475         any possibility of requiring a memory.
15476         (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
15477         (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
15478         (fp branch splitters): Update for ix86_split_fp_branch.
15479         (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
15480         (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
15481         (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
15482         (*fop_<MODEF>_2_i387): Remove f/r alternative.
15483         (*fop_<MODEF>_3_i387): Likewise.
15484         (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
15485         (splitters for the fop_* register patterns): Remove.
15486         (fscalexf4_i387): Rename from *fscalexf4_i387.
15487         (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
15489 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
15491         PR tree-optimization/59779
15492         * tree-dfa.c (get_ref_base_and_extent): Use double_int
15493         type for bitsize and maxsize instead of HOST_WIDE_INT.
15495 2014-03-13  Steven Bosscher  <steven@gcc.gnu.org>
15497         PR rtl-optimization/57320
15498         * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
15499         the CFG after thread_prologue_and_epilogue_insns.
15501 2014-03-13  Vladimir Makarov  <vmakarov@redhat.com>
15503         PR rtl-optimization/57189
15504         * lra-constraints.c (process_alt_operands): Disfavor spilling
15505         vector pseudos.
15507 2014-03-13  Cesar Philippidis  <cesar@codesourcery.com>
15509         * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
15511 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
15513         PR tree-optimization/59025
15514         PR middle-end/60418
15515         * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
15516         same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
15518 2014-03-13  Georg-Johann Lay  <avr@gjlay.de>
15520         PR target/60486
15521         * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
15522         calls of avr_out_plus_1.
15524 2014-03-13  Bin Cheng  <bin.cheng@arm.com>
15526         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
15527         BB's single pred and update the father loop's latch info later.
15529 2014-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
15531         * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
15532         (VEC_M): Likewise.
15533         (VEC_N): Likewise.
15534         (VEC_R): Likewise.
15535         (VEC_base): Likewise.
15536         (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
15537         registers, we need to swap double words in little endian mode.
15539         * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
15540         to be a container mode for 128-bit integer operations added in ISA
15541         2.07.  Unlike TImode and PTImode, the preferred register set is
15542         the Altivec/VMX registers for the 128-bit operations.
15544         * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
15545         declarations.
15546         (rs6000_split_128bit_ok_p): Likewise.
15548         * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
15549         macros for creating ISA 2.07 normal and overloaded builtin
15550         functions with 3 arguments.
15551         (BU_P8V_OVERLOAD_3): Likewise.
15552         (VPERM_1T): Add support for V1TImode in 128-bit vector operations
15553         for use as overloaded functions.
15554         (VPERM_1TI_UNS): Likewise.
15555         (VSEL_1TI): Likewise.
15556         (VSEL_1TI_UNS): Likewise.
15557         (ST_INTERNAL_1ti): Likewise.
15558         (LD_INTERNAL_1ti): Likewise.
15559         (XXSEL_1TI): Likewise.
15560         (XXSEL_1TI_UNS): Likewise.
15561         (VPERM_1TI): Likewise.
15562         (VPERM_1TI_UNS): Likewise.
15563         (XXPERMDI_1TI): Likewise.
15564         (SET_1TI): Likewise.
15565         (LXVD2X_V1TI): Likewise.
15566         (STXVD2X_V1TI): Likewise.
15567         (VEC_INIT_V1TI): Likewise.
15568         (VEC_SET_V1TI): Likewise.
15569         (VEC_EXT_V1TI): Likewise.
15570         (EQV_V1TI): Likewise.
15571         (NAND_V1TI): Likewise.
15572         (ORC_V1TI): Likewise.
15573         (VADDCUQ): Add support for 128-bit integer arithmetic instructions
15574         added in ISA 2.07.  Add both normal 'altivec' builtins, and the
15575         overloaded builtin.
15576         (VADDUQM): Likewise.
15577         (VSUBCUQ): Likewise.
15578         (VADDEUQM): Likewise.
15579         (VADDECUQ): Likewise.
15580         (VSUBEUQM): Likewise.
15581         (VSUBECUQ): Likewise.
15583         * config/rs6000/rs6000-c.c (__int128_type): New static to hold
15584         __int128_t and __uint128_t types.
15585         (__uint128_type): Likewise.
15586         (altivec_categorize_keyword): Add support for vector __int128_t,
15587         vector __uint128_t, vector __int128, and vector unsigned __int128
15588         as a container type for TImode operations that need to be done in
15589         VSX/Altivec registers.
15590         (rs6000_macro_to_expand): Likewise.
15591         (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
15592         to support 128-bit integer instructions vaddcuq, vadduqm,
15593         vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
15594         (altivec_resolve_overloaded_builtin): Add support for V1TImode.
15596         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
15597         for V1TImode, and set up preferences to use VSX/Altivec registers.
15598         Setup VSX reload handlers.
15599         (rs6000_debug_reg_global): Likewise.
15600         (rs6000_init_hard_regno_mode_ok): Likewise.
15601         (rs6000_preferred_simd_mode): Likewise.
15602         (vspltis_constant): Do not allow V1TImode as easy altivec constants.
15603         (easy_altivec_constant): Likewise.
15604         (output_vec_const_move): Likewise.
15605         (rs6000_expand_vector_set): Convert V1TImode set and extract to
15606         simple move.
15607         (rs6000_expand_vector_extract): Likewise.
15608         (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
15609         addressing.
15610         (rs6000_const_vec): Add support for V1TImode.
15611         (rs6000_emit_le_vsx_load): Swap double words when loading or
15612         storing TImode/V1TImode.
15613         (rs6000_emit_le_vsx_store): Likewise.
15614         (rs6000_emit_le_vsx_move): Likewise.
15615         (rs6000_emit_move): Add support for V1TImode.
15616         (altivec_expand_ld_builtin): Likewise.
15617         (altivec_expand_st_builtin): Likewise.
15618         (altivec_expand_vec_init_builtin): Likewise.
15619         (altivec_expand_builtin): Likewise.
15620         (rs6000_init_builtins): Add support for V1TImode type.  Add
15621         support for ISA 2.07 128-bit integer builtins.  Define type names
15622         for the VSX/Altivec vector types.
15623         (altivec_init_builtins): Add support for overloaded vector
15624         functions with V1TImode type.
15625         (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
15626         (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
15627         external function.
15628         (rs6000_split_128bit_ok_p): Likewise.
15629         (rs6000_handle_altivec_attribute): Create V1TImode from vector
15630         __int128_t and vector __uint128_t.
15632         * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
15633         and mode attributes.
15634         (VSX_M): Likewise.
15635         (VSX_M2): Likewise.
15636         (VSm): Likewise.
15637         (VSs): Likewise.
15638         (VSr): Likewise.
15639         (VSv): Likewise.
15640         (VS_scalar): Likewise.
15641         (VS_double): Likewise.
15642         (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
15644         * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
15645         we support the ISA 2.07 128-bit integer arithmetic instructions.
15646         (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
15647         (enum rs6000_builtin_type_index): Add fields to hold V1TImode
15648         and TImode types for use with the builtin functions.
15649         (V1TI_type_node): Likewise.
15650         (unsigned_V1TI_type_node): Likewise.
15651         (intTI_type_internal_node): Likewise.
15652         (uintTI_type_internal_node): Likewise.
15654         * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
15655         128-bit builtin functions.
15656         (UNSPEC_VADDEUQM): Likewise.
15657         (UNSPEC_VADDECUQ): Likewise.
15658         (UNSPEC_VSUBCUQ): Likewise.
15659         (UNSPEC_VSUBEUQM): Likewise.
15660         (UNSPEC_VSUBECUQ): Likewise.
15661         (VM): Add V1TImode to vector mode iterators.
15662         (VM2): Likewise.
15663         (VI_unit): Likewise.
15664         (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
15665         (altivec_vaddcuq): Likewise.
15666         (altivec_vsubuqm): Likewise.
15667         (altivec_vsubcuq): Likewise.
15668         (altivec_vaddeuqm): Likewise.
15669         (altivec_vaddecuq): Likewise.
15670         (altivec_vsubeuqm): Likewise.
15671         (altivec_vsubecuq): Likewise.
15673         * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
15674         mode iterators.
15675         (BOOL_128): Likewise.
15676         (BOOL_REGS_OUTPUT): Likewise.
15677         (BOOL_REGS_OP1): Likewise.
15678         (BOOL_REGS_OP2): Likewise.
15679         (BOOL_REGS_UNARY): Likewise.
15680         (BOOL_REGS_AND_CR0): Likewise.
15682         * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
15683         128-bit integer builtin support.
15684         (vec_vadduqm): Likewise.
15685         (vec_vaddecuq): Likewise.
15686         (vec_vaddeuqm): Likewise.
15687         (vec_vsubecuq): Likewise.
15688         (vec_vsubeuqm): Likewise.
15689         (vec_vsubcuq): Likewise.
15690         (vec_vsubuqm): Likewise.
15692         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
15693         Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
15694         vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
15695         128-bit integer add/subtract to ISA 2.07.
15697 2014-03-12  Joern Rennecke  <joern.rennecke@embecosm.com>
15699         * config/arc/arc.c (arc_predicate_delay_insns):
15700         Fix third argument passed to conditionalize_nonjump.
15702 2014-03-12  Yufeng Zhang  <yufeng.zhang@arm.com>
15704         * config/aarch64/aarch64-builtins.c
15705         (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
15706         BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
15707         * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
15708         instead of __builtin_lfloor.
15709         (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
15711 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
15713         * tree-ssa-ifcombine.c (forwarder_block_to): New function.
15714         (tree_ssa_ifcombine_bb_1): New function.
15715         (tree_ssa_ifcombine_bb): Use it.  Handle also cases where else_bb
15716         is an empty forwarder block to then_bb or vice versa and then_bb
15717         and else_bb are effectively swapped.
15719 2014-03-12  Christian Bruel  <christian.bruel@st.com>
15721         PR target/60264
15722         * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
15723         REG_CFA_DEF_CFA note.
15724         (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
15725         (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
15727 2014-03-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15729         PR tree-optimization/60454
15730         * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
15732 2014-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15734         * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
15735         Do not define target_cpu_default2 to generic.
15736         * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
15737         * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
15738         * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
15740 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
15741             Marc Glisse  <marc.glisse@inria.fr>
15743         PR tree-optimization/60502
15744         * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
15745         instead of build_low_bits_mask.
15747 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
15749         PR middle-end/60482
15750         * tree-vrp.c (register_edge_assert_for_1): Don't add assert
15751         if there are multiple uses, but op doesn't live on E edge.
15752         * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
15753         clobber stmts before __builtin_unreachable.
15755 2014-03-11  Richard Sandiford  <rdsandiford@googlemail.com>
15757         * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
15758         hard_frame_pointer_rtx.
15759         * cse.c (cse_insn): Remove volatile check.
15760         * cselib.c (cselib_process_insn): Likewise.
15761         * dse.c (scan_insn): Likewise.
15763 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
15765         * config/arc/arc.c (conditionalize_nonjump): New function,
15766         broken out of ...
15767         (arc_ifcvt): ... this.
15768         (arc_predicate_delay_insns): Use it.
15770 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
15772         * config/arc/predicates.md (extend_operand): During/after reload,
15773         allow const_int_operand.
15774         * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
15775         (umulsidi3_700): Likewise.  Change operand 2 constraint back to "cL".
15776         (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
15777         to "i".
15778         (umulsi3_highpart_i): Likewise.
15780 2014-03-11  Richard Biener  <rguenther@suse.de>
15782         * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
15783         Add asserts to guard possible wrong-code bugs.
15785 2014-03-11  Richard Biener  <rguenther@suse.de>
15787         PR tree-optimization/60429
15788         PR tree-optimization/60485
15789         * tree-ssa-structalias.c (set_union_with_increment): Properly
15790         take into account all fields that overlap the shifted vars.
15791         (do_sd_constraint): Likewise.
15792         (do_ds_constraint): Likewise.
15793         (get_constraint_for_ptr_offset): Likewise.
15795 2014-03-11  Chung-Lin Tang  <cltang@codesourcery.com>
15797         * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
15798         (nios2_compute_frame_layout):
15799         Add calculation of cfun->machine->fp_save_offset.
15800         (nios2_expand_prologue): Correct setting of frame pointer register
15801         in prologue.
15802         (nios2_expand_epilogue): Update recovery of stack pointer from
15803         frame pointer accordingly.
15804         (nios2_initial_elimination_offset): Update calculation of offset
15805         for eliminating to HARD_FRAME_POINTER_REGNUM.
15807 2014-03-10  Jakub Jelinek  <jakub@redhat.com>
15809         PR ipa/60457
15810         * ipa.c (symtab_remove_unreachable_nodes): Don't call
15811         cgraph_get_create_node on VAR_DECLs.
15813 2014-03-10  Richard Biener  <rguenther@suse.de>
15815         PR middle-end/60474
15816         * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
15818 2014-03-08  Douglas B Rupp  <rupp@gnat.com>
15820         * config/vms/vms.opt (vms_float_format): New variable.
15822 2014-03-08  Tobias Burnus  <burnus@net-b.de>
15824         * doc/invoke.texi (-fcilkplus): Update implementation status.
15826 2014-03-08  Paulo Matos  <paulo@matos-sorge.com>
15827             Richard Biener  <rguenther@suse.de>
15829         * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
15830         consistently accross all TUs.
15831         (run_gcc): Enable -fshort-double automatically at link at link-time
15832         and disallow override.
15834 2014-03-08  Richard Sandiford  <rdsandiford@googlemail.com>
15836         PR target/58271
15837         * config/mips/mips.c (mips_option_override): Promote -mpaired-single
15838         warning to an error.  Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
15839         if they can't be used.
15841 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15843         * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
15844         for Solaris 11/x86 ld.
15845         * configure: Regenerate.
15847 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15849         * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
15850         (LIB_TLS_SPEC): Save as ld_tls_libs.
15851         (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
15852         (HAVE_AS_IX86_TLSLDM): New test.
15853         * configure, config.in: Regenerate.
15854         * config/i386/i386.c (legitimize_tls_address): Fall back to
15855         TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
15856         cannot support TLS_MODEL_LOCAL_DYNAMIC.
15857         * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
15858         instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
15860 2014-03-07  Paulo Matos  <paulo@matos-sorge.com>
15862         * common.opt (fira-loop-pressure): Mark as optimization.
15864 2014-03-07  Thomas Schwinge  <thomas@codesourcery.com>
15866         * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
15867         an OpenMP mappable type.
15869 2014-03-06  Matthias Klose  <doko@ubuntu.com>
15871         * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
15872         MULTILIB_OSDIRNAMES is not defined.
15874 2014-03-06  Jakub Jelinek  <jakub@redhat.com>
15875             Meador Inge  <meadori@codesourcery.com>
15877         PR target/58595
15878         * config/arm/arm.c (arm_tls_symbol_p): Remove.
15879         (arm_legitimize_address): Call legitimize_tls_address for any
15880         arm_tls_referenced_p expression, handle constant addend.  Call it
15881         before testing for !TARGET_ARM.
15882         (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
15884 2014-03-06  Richard Biener  <rguenther@suse.de>
15886         PR middle-end/60445
15887         PR lto/60424
15888         PR lto/60427
15889         Revert
15890         2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
15892         * tree-streamer.c (record_common_node): Assert we don't record
15893         nodes with type double.
15894         (preload_common_node): Skip type double, complex double and double
15895         pointer since it is now frontend dependent due to fshort-double option.
15897 2014-03-06  Richard Biener  <rguenther@suse.de>
15899         * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
15900         or -fno-lto is specified and the linker has full plugin support.
15901         * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
15902         (main): Remove -flto processing, adjust lto_mode using use_plugin late.
15903         * lto-wrapper.c (merge_and_complain): Merge compile-time
15904         optimization levels.
15905         (run_gcc): And pass it through to the link options.
15907 2014-03-06  Alexandre Oliva  <aoliva@redhat.com>
15909         PR debug/60381
15910         Revert:
15911         2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
15912         PR debug/59992
15913         * cselib.c (remove_useless_values): Skip to avoid quadratic
15914         behavior if the condition moved from...
15915         (cselib_process_insn): ... here holds.
15917 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
15919         PR plugins/59335
15920         * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
15921         ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
15923         PR plugins/59335
15924         * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
15925         (TM_H): Add x86-tune.def.
15927 2014-03-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15929         * config/aarch64/aarch64.c (generic_tunings):
15930         Use cortexa57_extra_costs.
15932 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
15934         PR lto/60404
15935         * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
15936         of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
15937         * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
15938         cost for in_lto_p.
15940 2014-03-04  Heiher  <r@hev.cc>
15942         * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
15943         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
15945 2014-03-04  Uros Bizjak  <ubizjak@gmail.com>
15947         * config/i386/predicates.md (const2356_operand): Change to ...
15948         (const2367_operand): ... this.
15949         * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
15950         const2367_operand.
15951         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
15952         (*avx512pf_scatterpf<mode>sf): Ditto.
15953         (avx512pf_scatterpf<mode>df): Ditto.
15954         (*avx512pf_scatterpf<mode>df_mask): Ditto.
15955         (*avx512pf_scatterpf<mode>df): Ditto.
15956         * config/i386/i386.c (ix86_expand_builtin): Update
15957         incorrect hint operand error message.
15959 2014-03-04  Richard Biener  <rguenther@suse.de>
15961         * lto-section-in.c (lto_get_section_data): Fix const cast.
15963 2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
15965         * tree-streamer.c (record_common_node): Assert we don't record
15966         nodes with type double.
15967         (preload_common_node): Skip type double, complex double and double
15968         pointer since it is now frontend dependent due to fshort-double option.
15970 2014-03-04  Richard Biener  <rguenther@suse.de>
15972         PR lto/60405
15973         * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
15974         (lto_input_toplevel_asms): Likewise.
15975         * lto-section-in.c (lto_get_section_data): Instead do it here
15976         for every section.
15978 2014-03-04  Richard Biener  <rguenther@suse.de>
15980         PR tree-optimization/60382
15981         * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
15982         dead PHIs a reduction.
15984 2014-03-03  Uros Bizjak  <ubizjak@gmail.com>
15986         * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
15987         hint value.
15988         (_mm_prefetch): Move out of GCC target("sse") pragma.
15989         * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
15990         GCC target("prfchw") pragma.
15991         * config/i386/i386.md (prefetch): Emit prefetchwt1 only
15992         for locality <= 2.
15993         * config/i386/i386.c (ix86_option_override_internal): Enable
15994         -mprfchw with -mprefetchwt1.
15996 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
15998         * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
15999         Mark as varying.
16001 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
16003         * opts.h (CL_PCH_IGNORE): Define.
16004         * targhooks.c (option_affects_pch_p):
16005         Return false for options that have CL_PCH_IGNORE set.
16006         * opt-functions.awk: Process PchIgnore.
16007         * doc/options.texi: Document PchIgnore.
16009         * config/arc/arc.opt (misize): Add PchIgnore property.
16011 2014-03-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16013         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
16014         reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
16015         constraint on constants to permit them being loaded into
16016         GENERAL_REGS or BASE_REGS.
16018 2014-03-03  Nick Clifton  <nickc@redhat.com>
16020         * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
16021         anti-cacnonical alternatives.
16022         (negandhi3_real): New pattern.
16023         * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
16025 2014-03-03  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
16027         * config/avr/avr-mcus.def: Remove atxmega16x1.
16028         * config/avr/avr-tables.opt: Regenerate.
16029         * config/avr/t-multilib: Regenerate.
16030         * doc/avr-mmcu.texi: Regenerate.
16032 2014-03-03  Tobias Grosser  <tobias@grosser.es>
16033             Mircea Namolaru  <mircea.namolaru@inria.fr>
16035         PR tree-optimization/58028
16036         * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
16037         scalar dimensions.
16039 2014-03-03  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16041         * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
16042         not handled by recognizers.
16044 2014-03-03  Jakub Jelinek  <jakub@redhat.com>
16046         PR middle-end/60175
16047         * function.c (expand_function_end): Don't emit
16048         clobber_return_register sequence if clobber_after is a BARRIER.
16049         * cfgexpand.c (construct_exit_block): Append instructions before
16050         return_label to prev_bb.
16052 2014-03-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16054         * config/rs6000/constraints.md: Document reserved use of "wc".
16056 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
16058         PR ipa/60150
16059         * ipa.c (function_and_variable_visibility): When dissolving comdat
16060         group, also set all symbols to local.
16062 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
16064         PR ipa/60306
16066         Revert:
16067         2013-12-14  Jan Hubicka  <jh@suse.cz>
16068         PR middle-end/58477
16069         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
16071 2014-03-02  Jon Beniston  <jon@beniston.com>
16073         PR bootstrap/48230
16074         PR bootstrap/50927
16075         PR bootstrap/52466
16076         PR target/46898
16077         * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
16078           (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
16079         * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
16080         (simple_return, *simple_return): New patterns
16081         * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
16082         * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
16084 2014-03-01  Paolo Carlini  <paolo.carlini@oracle.com>
16086         * dwarf2out.c (gen_subprogram_die): Tidy.
16088 2014-03-01  Oleg Endo  <olegendo@gcc.gnu.org>
16090         PR target/60071
16091         * config/sh/sh.md (*mov_t_msb_neg): Split into ...
16092         (*mov_t_msb_neg_negc): ... this new insn.
16094 2014-02-28  Jason Merrill  <jason@redhat.com>
16096         PR c++/58678
16097         * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
16098         function.
16100 2014-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
16102         PR c++/60314
16103         * dwarf2out.c (decltype_auto_die): New static.
16104         (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
16105         (gen_type_die_with_usage): Handle 'decltype(auto)'.
16106         (is_cxx_auto): Likewise.
16108 2014-02-28  Ian Bolton  <ian.bolton@arm.com>
16110         * config/aarch64/aarch64.h: Define __ARM_NEON by default if
16111         we are not using general regs only.
16113 2014-02-28  Richard Biener  <rguenther@suse.de>
16115         PR target/60280
16116         * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
16117         previous fix and only allow to remove trivial pre-headers
16118         and latches.  Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
16119         (remove_forwarder_block): Properly update the latch of a loop.
16121 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
16123         PR debug/59992
16124         * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
16125         (cselib_preserved_hash_table): New.
16126         (preserve_constants_and_equivs): Move preserved vals to it.
16127         (cselib_find_slot): Look it up first.
16128         (cselib_init): Initialize it.
16129         (cselib_finish): Release it.
16130         (dump_cselib_table): Dump it.
16132 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
16134         PR debug/59992
16135         * cselib.c (remove_useless_values): Skip to avoid quadratic
16136         behavior if the condition moved from...
16137         (cselib_process_insn): ... here holds.
16139 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
16141         PR debug/57232
16142         * var-tracking.c (vt_initialize): Apply the same condition to
16143         preserve the CFA base value.
16145 2014-02-28  Joey Ye  <joey.ye@arm.com>
16147         PR target/PR60169
16148         * config/arm/arm.c (thumb_far_jump_used_p): Don't change
16149         if reload in progress or completed.
16151 2014-02-28  Tobias Burnus  <burnus@net-b.de>
16153         PR middle-end/60147
16154         * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
16155         NAMELIST_DECL.
16157 2014-02-27  H.J. Lu  <hongjiu.lu@intel.com>
16159         * doc/tm.texi.in (Condition Code Status): Update documention for
16160         relative locations of cc0-setter and cc0-user.
16162 2014-02-27  Jeff Law  <law@redhat.com>
16164         PR rtl-optimization/52714
16165         * combine.c (try_combine): When splitting an unrecognized PARALLEL
16166         into two independent simple sets, if I3 is a jump, ensure the
16167         pattern we place into I3 is a (set (pc) ...).
16169 2014-02-27  Mikael Pettersson  <mikpe@it.uu.se>
16170             Jeff Law  <law@redhat.com>
16172         PR rtl-optimization/49847
16173         * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
16174         are in different blocks.
16175         * doc/tm.texi (Condition Code Status): Update documention for
16176         relative locations of cc0-setter and cc0-user.
16178 2014-02-27  Vladimir Makarov  <vmakarov@redhat.com>
16180         PR target/59222
16181         * lra.c (lra_emit_add): Check SUBREG too.
16183 2014-02-27  Andreas Schwab  <schwab@suse.de>
16185         * config/m68k/m68k.c (m68k_option_override): Disable
16186         -flive-range-shrinkage for classic m68k.
16187         (m68k_override_options_after_change): Likewise.
16189 2014-02-27  Marek Polacek  <polacek@redhat.com>
16191         PR middle-end/59223
16192         * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
16193         -Wmaybe-uninitialized.
16195 2014-02-27  Alan Modra  <amodra@gmail.com>
16197         PR target/57936
16198         * reload1.c (emit_input_reload_insns): When reload_override_in,
16199         set old to rl->in_reg when rl->in_reg is a subreg.
16201 2014-02-26  Richard Biener  <rguenther@suse.de>
16203         PR bootstrap/60343
16204         * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
16206 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
16208         * common/config/i386/predicates.md (const1256_operand): Remove.
16209         (const2356_operand): New.
16210         (const_1_to_2_operand): Remove.
16211         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
16212         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
16213         (*avx512pf_gatherpf<mode>sf): Ditto.
16214         (avx512pf_gatherpf<mode>df): Ditto.
16215         (*avx512pf_gatherpf<mode>df_mask): Ditto.
16216         (*avx512pf_gatherpf<mode>df): Ditto.
16217         (avx512pf_scatterpf<mode>sf): Ditto.
16218         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
16219         (*avx512pf_scatterpf<mode>sf): Ditto.
16220         (avx512pf_scatterpf<mode>df): Ditto.
16221         (*avx512pf_scatterpf<mode>df_mask): Ditto.
16222         (*avx512pf_scatterpf<mode>df): Ditto.
16223         * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
16225 2014-02-26  Ilya Tocar  <ilya.tocar@intel.com>
16227         * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
16228         (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
16229         (_mm512_mask_testn_epi64_mask): Move to ...
16230         * config/i386/avx512cdintrin.h: Here.
16231         * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
16232         * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
16233         (avx512f_scalef<mode><mask_name><round_name>): Ditto.
16234         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
16235         TARGET_AVX512F from TARGET_AVX512CD.
16237 2014-02-26  Richard Biener  <rguenther@suse.de>
16239         PR ipa/60327
16240         * ipa.c (walk_polymorphic_call_targets): Properly guard
16241         call to inline_update_overall_summary.
16243 2014-02-26  Bin Cheng  <bin.cheng@arm.com>
16245         PR target/60280
16246         * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
16247         and latches only if requested.  Fix latch if it is removed.
16248         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
16249         LOOPS_HAVE_PREHEADERS.
16251 2014-02-25  Andrew Pinski  <apinski@cavium.com>
16253         * builtins.c (expand_builtin_thread_pointer): Create a new target
16254         when the target is NULL.
16256 2014-02-25  Vladimir Makarov  <vmakarov@redhat.com>
16258         PR rtl-optimization/60317
16259         * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
16260         * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
16261         * lra-assigns.c: Include params.h.
16262         (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
16263         other reload pseudos considerations.
16265 2014-02-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16267         * config/rs6000/vector.md (*vector_unordered<mode>): Change split
16268         to use canonical form for nor<mode>3.
16270 2014-02-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16272         PR target/55426
16273         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
16274         conversions.
16276 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
16278         * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
16279         (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
16280         (ix86_handle_option): Handle OPT_mprefetchwt1.
16281         * config/i386/cpuid.h (bit_PREFETCHWT1): New.
16282         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
16283         PREFETCHWT1 CPUID.
16284         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
16285         OPTION_MASK_ISA_PREFETCHWT1.
16286         * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
16287         (PTA_PREFETCHWT1): New.
16288         (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
16289         (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
16290         * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
16291         * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
16292         (*prefetch_avx512pf_<mode>_: Change into ...
16293         (*prefetch_prefetchwt1_<mode>: This.
16294         * config/i386/i386.opt (mprefetchwt1): New.
16295         * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
16296         (_mm_prefetch): Handle intent to write.
16297         * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
16299 2014-02-25  Richard Biener  <rguenther@suse.de>
16301         PR middle-end/60291
16302         * emit-rtl.c (mem_attrs_htab): Remove.
16303         (mem_attrs_htab_hash): Likewise.
16304         (mem_attrs_htab_eq): Likewise.
16305         (set_mem_attrs): Always allocate new mem-attrs when something changed.
16306         (init_emit_once): Do not allocate mem_attrs_htab.
16308 2014-02-25  Richard Biener  <rguenther@suse.de>
16310         PR lto/60319
16311         * lto-opts.c (lto_write_options): Output non-explicit conservative
16312         -fwrapv, -fno-trapv and -fno-strict-overflow.
16313         * lto-wrapper.c (merge_and_complain): Handle merging those options.
16314         (run_gcc): And pass them through.
16316 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
16318         * sel-sched.c (calculate_new_fences): New parameter ptime.
16319         Calculate it as a maximum over all fence cycles.
16320         (sel_sched_region_2): Adjust the call to calculate_new_fences.
16321         Print the final schedule timing when sched_verbose.
16323 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
16325         PR rtl-optimization/60292
16326         * sel-sched.c (fill_vec_av_set): Do not reset target availability
16327         bit fot the fence instruction.
16329 2014-02-24  Alangi Derick  <alangiderick@gmail.com>
16331         * calls.h: Fix typo in comment.
16333 2014-02-24  John David Anglin  <danglin@gcc.gnu.org>
16335         * config/pa/pa.c (pa_output_move_double): Don't valididate when
16336         adjusting offsetable addresses.
16338 2014-02-24  Guozhi Wei  <carrot@google.com>
16340         * sparseset.h (sparseset_pop): Fix the wrong index.
16342 2014-02-24  Walter Lee  <walt@tilera.com>
16344         * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
16345         (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
16346         triplet.
16347         * common/config/tilegx/tilegx-common.c
16348         (TARGET_DEFAULT_TARGET_FLAGS): Define.
16349         * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
16350         (LINK_SPEC): Ditto.
16351         * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
16352         * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
16353         (tilegx_gimplify_va_arg_expr): Handle big endian.
16354         (tilegx_expand_unaligned_load): Ditto.
16355         (tilegx_expand_unaligned_store): Ditto.
16356         (TARGET_RETURN_IN_MSB): New.
16357         * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
16358         (TARGET_ENDIAN_DEFAULT): New.
16359         (TARGET_BIG_ENDIAN): Handle big endian.
16360         (BYTES_BIG_ENDIAN): Ditto.
16361         (WORDS_BIG_ENDIAN): Ditto.
16362         (FLOAT_WORDS_BIG_ENDIAN): Ditto.
16363         (ENDIAN_SPEC): New.
16364         (EXTRA_SPECS): New.
16365         * config/tilegx/tilegx.md (extv): Handle big endian.
16366         (extzv): Ditto.
16367         (insn_st<n>): Ditto.
16368         (insn_st<n>_add<bitsuffix>): Ditto.
16369         (insn_stnt<n>): Ditto.
16370         (insn_stnt<n>_add<bitsuffix>):Ditto.
16371         (vec_interleave_highv8qi): Handle big endian.
16372         (vec_interleave_highv8qi_be): New.
16373         (vec_interleave_highv8qi_le): New.
16374         (insn_v1int_h): Handle big endian.
16375         (vec_interleave_lowv8qi): Handle big endian.
16376         (vec_interleave_lowv8qi_be): New.
16377         (vec_interleave_lowv8qi_le): New.
16378         (insn_v1int_l): Handle big endian.
16379         (vec_interleave_highv4hi): Handle big endian.
16380         (vec_interleave_highv4hi_be): New.
16381         (vec_interleave_highv4hi_le): New.
16382         (insn_v2int_h): Handle big endian.
16383         (vec_interleave_lowv4hi): Handle big endian.
16384         (vec_interleave_lowv4hi_be): New.
16385         (vec_interleave_lowv4hi_le): New.
16386         (insn_v2int_l): Handle big endian.
16387         (vec_interleave_highv2si): Handle big endian.
16388         (vec_interleave_highv2si_be): New.
16389         (vec_interleave_highv2si_le): New.
16390         (insn_v4int_h): Handle big endian.
16391         (vec_interleave_lowv2si): Handle big endian.
16392         (vec_interleave_lowv2si_be): New.
16393         (vec_interleave_lowv2si_le): New.
16394         (insn_v4int_l): Handle big endian.
16395         * config/tilegx/tilegx.opt (mbig-endian): New option.
16396         (mlittle-endian): New option.
16397         * doc/install.texi: Document tilegxbe-linux.
16398         * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
16400 2014-02-24  Martin Jambor  <mjambor@suse.cz>
16402         PR ipa/60266
16403         * ipa-cp.c (propagate_constants_accross_call): Bail out early if
16404         there are no parameter descriptors.
16406 2014-02-24  Andrey Belevantsev  <abel@ispras.ru>
16408         PR rtl-optimization/60268
16409         * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
16410         initialization to ...
16411         (sched_rgn_init): ... here.
16412         (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
16414 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
16416         * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
16417         names.
16419 2014-02-23  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
16421         * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
16422         definition.
16424 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
16426         * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
16427         define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
16429 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
16431         * config/microblaze/predicates.md: Add cmp_op predicate.
16432         * config/microblaze/microblaze.md: Add branch_compare instruction
16433         which uses cmp_op predicate and emits cmp insn before branch.
16434         * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
16435         to microblaze_expand_conditional_branch and consolidate logic.
16436         (microblaze_expand_conditional_branch): emit branch_compare
16437         insn instead of handling cmp op separate from branch insn.
16439 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16441         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
16442         to permit subregs.
16444 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16446         * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
16447         define_insn with define_expand and new define_insn
16448         *altivec_lve<VI_char>x_internal.
16449         (altivec_stve<VI_char>x): Replace define_insn with define_expand
16450         and new define_insn *altivec_stve<VI_char>x_internal.
16451         * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
16452         prototype.
16453         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
16454         lve*x built-ins.
16455         (altivec_expand_stvex_be): New function.
16457 2014-02-22  Joern Rennecke  <joern.rennecke@embecosm.com>
16459         * config/avr/avr.c (avr_can_eliminate): Allow elimination from
16460         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
16461         * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
16462         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
16464 2014-02-21  Vladimir Makarov  <vmakarov@redhat.com>
16466         PR target/60298
16467         * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
16468         instead of emit_move_insn.
16470 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16472         * config/rs6000/altivec.md (altivec_vsumsws): Replace second
16473         vspltw with vsldoi.
16474         (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
16475         gen_altivec_vsumsws.
16477 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16479         * config/rs6000/altivec.md (altivec_lvxl): Rename as
16480         *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
16481         (altivec_lvxl_<mode>): New define_expand incorporating
16482         -maltivec=be semantics where needed.
16483         (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
16484         (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
16485         semantics where needed.
16486         (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
16487         (altivec_stvx_<mode>): New define_expand incorporating
16488         -maltivec=be semantics where needed.
16489         (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
16490         VM2 iterator instead of V4SI.
16491         (altivec_stvxl_<mode>): New define_expand incorporating
16492         -maltivec=be semantics where needed.
16493         * config/rs6000/rs6000-builtin.def: Add new built-in definitions
16494         LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
16495         LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
16496         STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
16497         STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
16498         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
16499         ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
16500         similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
16501         ALTIVEC_BUILTIN_STVXL.
16502         * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
16503         (altivec_expand_stvx_be): Likewise.
16504         * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
16505         (altivec_expand_lvx_be): Likewise.
16506         (altivec_expand_stvx_be): Likewise.
16507         (altivec_expand_builtin): Add cases for
16508         ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
16509         ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
16510         (altivec_init_builtins): Add definitions for
16511         __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
16512         __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
16514 2014-02-21  Catherine Moore  <clm@codesourcery.com>
16516         * doc/invoke.texi (mvirt, mno-virt): Document.
16517         * config/mips/mips.opt (mvirt): New option.
16518         * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
16520 2014-02-21  Richard Biener  <rguenther@suse.de>
16522         PR tree-optimization/60276
16523         * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
16524         (STMT_VINFO_MIN_NEG_DIST): New macro.
16525         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
16526         STMT_VINFO_MIN_NEG_DIST.
16527         * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
16528         made for negative dependence distances still hold.
16530 2014-02-21  Richard Biener  <rguenther@suse.de>
16532         PR middle-end/60291
16533         * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
16534         DECL_INITIAL for globals not in the current function context.
16536 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
16538         PR tree-optimization/56490
16539         * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
16540         * tree-ssa-uninit.c: Include params.h.
16541         (compute_control_dep_chain): Add num_calls argument, return false
16542         if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
16543         num_calls to recursive call.
16544         (find_predicates): Change dep_chain into normal array,
16545         cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
16546         variable and adjust compute_control_dep_chain caller.
16547         (find_def_preds): Likewise.
16549 2014-02-21  Thomas Schwinge  <thomas@codesourcery.com>
16551         * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
16552         <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
16554 2014-02-21  Nick Clifton  <nickc@redhat.com>
16556         * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
16557         (pushhi1): Likewise.
16558         (popqi1): Add mode to pre_dec.
16559         (pophi1): Likewise.
16561 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
16563         * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
16564         mode for mask of V8SFmode permutation.
16566 2014-02-20  Richard Henderson  <rth@redhat.com>
16568         PR c++/60272
16569         * builtins.c (expand_builtin_atomic_compare_exchange): Always make
16570         a new pseudo for OLDVAL.
16572 2014-02-20  Jakub Jelinek  <jakub@redhat.com>
16574         PR target/57896
16575         * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
16576         gen_reg_rtx if d->testing_p.
16577         (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
16578         if d->testing_p and we will certainly return true.
16579         (expand_vec_perm_even_odd_1): Likewise.  Don't call gen_reg_rtx
16580         if d->testing_p.
16582 2014-02-20  Uros Bizjak  <ubizjak@gmail.com>
16584         * emit-rtl.c (gen_reg_rtx): Assert that
16585         crtl->emit.regno_pointer_align_length is non-zero.
16587 2014-02-20  Richard Henderson  <rth@redhat.com>
16589         PR c++/60272
16590         * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
16591         on failure the store back into EXPECT.
16593 2014-02-20  Chung-Lin Tang  <cltang@codesourcery.com>
16594             Sandra Loosemore  <sandra@codesourcery.com>
16596         * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
16597         * config/nios2/nios2.c (nios2_function_profiler): Add
16598         -fPIC (flag_pic == 2) support.
16599         (nios2_handle_custom_fpu_cfg): Fix warning parameter.
16600         (nios2_large_offset_p): New function.
16601         (nios2_unspec_reloc_p): Move up position, update to use
16602         nios2_large_offset_p.
16603         (nios2_unspec_address): Remove function.
16604         (nios2_unspec_offset): New function.
16605         (nios2_large_got_address): New function.
16606         (nios2_got_address): Add large offset support.
16607         (nios2_legitimize_tls_address): Update usage of removed and new
16608         functions.
16609         (nios2_symbol_binds_local_p): New function.
16610         (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
16611         (nios2_legitimize_address): Update to use nios2_large_offset_p.
16612         (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
16613         (nios2_print_operand): Merge H/L processing, add hiadj/lo
16614         processing for (const (unspec ...)).
16615         (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
16617 2014-02-20  Richard Biener  <rguenther@suse.de>
16619         * tree-cfg.c (replace_uses_by): Mark altered BBs before
16620         doing the substitution.
16621         (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
16623 2014-02-20  Martin Jambor  <mjambor@suse.cz>
16625         PR ipa/55260
16626         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
16627         info when checking whether lattices are bottom.
16629 2014-02-20  Richard Biener  <rguenther@suse.de>
16631         PR middle-end/60221
16632         * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
16633         regions at -O0.
16635 2014-02-20  Jan Hubicka  <hubicka@ucw.cz>
16637         PR ipa/58555
16638         * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
16639         parameter specifying the scaling.
16640         (inline_call): Update.
16641         (want_inline_recursively): Guard division by zero.
16642         (recursive_inlining): Update.
16643         * ipa-inline.h (clone_inlined_nodes): Update.
16645 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
16647         PR target/60204
16648         * config/i386/i386.c (classify_argument): Pass structures of size
16649         64 bytes or less in register.
16651 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
16652             Kirill Yukhin  <kirill.yukhin@intel.com>
16654         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
16655         (_mm_rcp28_round_ss): Ditto.
16656         (_mm_rsqrt28_round_sd): Ditto.
16657         (_mm_rsqrt28_round_ss): Ditto.
16658         * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
16659         (_mm_rcp14_round_ss): Ditto.
16660         (_mm_rsqrt14_round_sd): Ditto.
16661         (_mm_rsqrt14_round_ss): Ditto.
16662         * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
16663         the first input operand, get rid of match_dup.
16664         (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
16665         attribute to sse.
16666         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
16667         Ditto.
16668         (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
16669         operand as the first input operand, set type attribute.
16670         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
16671         Set type attribute.
16672         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
16673         operand as the first input operand, set type attribute.
16675 2014-02-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16677         * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
16678         bit of zero.
16680 2014-02-19  H.J. Lu  <hongjiu.lu@intel.com>
16682         PR target/60207
16683         * config/i386/i386.c (construct_container): Remove TFmode check
16684         for X86_64_INTEGER_CLASS.
16686 2014-02-19  Uros Bizjak  <ubizjak@gmail.com>
16688         PR target/59794
16689         * config/i386/i386.c (type_natural_mode): Warn for ABI changes
16690         only when -Wpsabi is enabled.
16692 2014-02-19  Michael Hudson-Doyle  <michael.hudson@linaro.org>
16694          PR target/59799
16695         * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
16696         passing arrays in registers are the same as for structs, so remove the
16697         special case for them.
16699 2014-02-19  Eric Botcazou  <ebotcazou@adacore.com>
16701         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
16702         destination type, extract only the valid bits if the source type is not
16703         integral and has a different mode.
16705 2014-02-19  Richard Biener  <rguenther@suse.de>
16707         PR ipa/60243
16708         * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
16709         for all calls.
16711 2014-02-19  Richard Biener  <rguenther@suse.de>
16713         PR ipa/60243
16714         * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
16715         (ipa_modify_call_arguments): Emit an argument load explicitely and
16716         preserve virtual SSA form there and for the replacement call.
16717         Do not update SSA form nor free dominance info.
16719 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
16721         * ipa.c (function_and_variable_visibility): Also clear WEAK
16722         flag when disolving COMDAT_GROUP.
16724 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
16726         * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
16727         * ipa-prop.c (ipa_set_jf_known_type): Return early when
16728         not devirtualizing.
16729         (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
16730         do more sanity checks.
16731         (detect_type_change): Return true when giving up early.
16732         (compute_complex_assign_jump_func): Fix type parameter of
16733         ipa_set_ancestor_jf.
16734         (compute_complex_ancestor_jump_func): Likewise.
16735         (update_jump_functions_after_inlining): Fix updating of
16736         ancestor function.
16737         * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
16739 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
16741         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
16742         inline clones when edge disappears.
16744 2014-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
16746         PR target/60203
16747         * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
16748         Split 64-bit moves into 2 patterns.  Do not allow the use of
16749         direct move for TDmode in little endian, since the decimal value
16750         has little endian bytes within a word, but the 64-bit pieces are
16751         ordered in a big endian fashion, and normal subreg's of TDmode are
16752         not allowed.
16753         (mov<mode>_64bit_dm): Likewise.
16754         (movtd_64bit_nodm): Likewise.
16756 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
16758         PR tree-optimization/60174
16759         * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
16760         statement of an SSA_NAME that occurs in an abnormal PHI node.
16762 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
16764         PR sanitizer/60142
16765         * final.c (SEEN_BB): Remove.
16766         (SEEN_NOTE, SEEN_EMITTED): Renumber.
16767         (final_scan_insn): Don't force_source_line on second
16768         NOTE_INSN_BASIC_BLOCK.
16770 2014-02-18  Uros Bizjak  <ubizjak@gmail.com>
16772         PR target/60205
16773         * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
16774         * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
16775         (type_natural_mode): Warn ABI change when %zmm register is not
16776         available for AVX512F vector value passing.
16778 2014-02-18  Kai Tietz  <ktietz@redhat.com>
16780         PR target/60193
16781         * config/i386/i386.c (ix86_expand_prologue): Use value in
16782         rax register as displacement when restoring %r10 or %rax.
16783         Fix wrong offset when restoring both registers.
16785 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
16787         * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
16788         assertion with conditional return.
16790 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
16791             Uros Bizjak  <ubizjak@gmail.com>
16793         PR driver/60233
16794         * config/i386/driver-i386.c (host_detect_local_cpu): If
16795         YMM state is not saved by the OS, also clear has_f16c.  Move
16796         CPUID 0x80000001 handling before YMM state saving checking.
16798 2014-02-18  Andrey Belevantsev  <abel@ispras.ru>
16800         PR rtl-optimization/58960
16801         * haifa-sched.c (alloc_global_sched_pressure_data): New,
16802         factored out from ...
16803         (sched_init): ... here.
16804         (free_global_sched_pressure_data): New, factored out from ...
16805         (sched_finish): ... here.
16806         * sched-int.h (free_global_sched_pressure_data): Declare.
16807         * sched-rgn.c (nr_regions_initial): New static global.
16808         (haifa_find_rgns): Initialize it.
16809         (schedule_region): Disable sched-pressure for the newly
16810         generated regions.
16812 2014-02-17  Richard Biener  <rguenther@suse.de>
16814         * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
16815         release SSA defs of pattern stmts.
16817 2014-02-17  Richard Biener  <rguenther@suse.de>
16819         * tree-inline.c (expand_call_inline): Release the virtual
16820         operand defined by the call we are about to inline.
16822 2014-02-17  Richard Biener  <rguenther@suse.de>
16824         * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
16826 2014-02-17  Kirill Yukhin  <kirill.yukhin@intel.com>
16827             Ilya Tocar  <ilya.tocar@intel.com>
16829         * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
16830         arguments order in builtin.
16831         (_mm512_permutexvar_epi64): Ditto.
16832         (_mm512_mask_permutexvar_epi64): Ditto
16833         (_mm512_maskz_permutexvar_epi32): Ditto
16834         (_mm512_permutexvar_epi32): Ditto
16835         (_mm512_mask_permutexvar_epi32): Ditto
16837 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16839         * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
16840         (p8_vmrgow): Likewise.
16842 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16844         * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
16845         endian targets.
16847 2014-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
16849         PR target/60203
16850         * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
16851         (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
16852         into 64-bit and 32-bit moves.  On 64-bit moves, add support for
16853         using direct move instructions on ISA 2.07.  Also adjust
16854         instruction length for 64-bit.
16855         (mov<mode>_64bit, TFmode/TDmode): Likewise.
16856         (mov<mode>_32bit, TFmode/TDmode): Likewise.
16858 2014-02-15  Alan Modra  <amodra@gmail.com>
16860         PR target/58675
16861         PR target/57935
16862         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
16863         find_replacement on parts of insn rtl that might be reloaded.
16865 2014-02-15  Richard Biener  <rguenther@suse.de>
16867         PR tree-optimization/60183
16868         * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
16869         (tree_ssa_phiprop): Calculate and free post-dominators.
16871 2014-02-14  Jeff Law  <law@redhat.com>
16873         PR rtl-optimization/60131
16874         * ree.c (get_extended_src_reg): New function.
16875         (combine_reaching_defs): Use it rather than assuming location of REG.
16876         (find_and_remove_re): Verify first operand of extension is
16877         a REG before adding the insns to the copy list.
16879 2014-02-14  Roland McGrath  <mcgrathr@google.com>
16881         * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
16882         * configure: Regenerated.
16883         * config.in: Regenerated.
16884         * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
16885         instead of ASM_SHORT.
16887 2014-02-14  Vladimir Makarov  <vmakarov@redhat.com>
16888             Richard Earnshaw  <rearnsha@arm.com>
16890         PR rtl-optimization/59535
16891         * lra-constraints.c (process_alt_operands): Encourage alternative
16892         when unassigned pseudo class is superset of the alternative class.
16893         (inherit_reload_reg): Don't inherit when optimizing for code size.
16894         * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
16895         returning CORE_REGS for anything but Thumb1 and BASE_REGS for
16896         modes not less than 4 for Thumb1.
16898 2014-02-14  Kyle McMartin  <kyle@redhat.com>
16900         PR pch/60010
16901         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
16903 2014-02-14  Richard Biener  <rguenther@suse.de>
16905         * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
16906         (get_frame_arg): Drop the assert with langhook types_compatible_p.
16907         Do not strip INDIRECT_REFs.
16909 2014-02-14  Richard Biener  <rguenther@suse.de>
16911         PR lto/60179
16912         * lto-streamer-out.c (DFS_write_tree_body): Do not follow
16913         DECL_FUNCTION_SPECIFIC_TARGET.
16914         (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
16915         * tree-streamer-out.c (pack_ts_target_option): Remove.
16916         (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
16917         (write_ts_function_decl_tree_pointers): Do not stream
16918         DECL_FUNCTION_SPECIFIC_TARGET.
16919         * tree-streamer-in.c (unpack_ts_target_option): Remove.
16920         (unpack_value_fields): Do not stream TS_TARGET_OPTION.
16921         (lto_input_ts_function_decl_tree_pointers): Do not stream
16922         DECL_FUNCTION_SPECIFIC_TARGET.
16924 2014-02-14  Jakub Jelinek  <jakub@redhat.com>
16926         * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
16927         (get_initial_def_for_induction, vectorizable_induction): Ignore
16928         debug stmts when looking for exit_phi.
16929         (vectorizable_live_operation): Fix up condition.
16931 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
16933         * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
16934         nreverse() because it changes the content of original tree list.
16936 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
16938         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
16939         * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
16941 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
16943         * config/nds32/nds32.c (nds32_naked_function_p): Follow the
16944         GNU coding standards.
16946 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
16948         PR debug/60152
16949         * dwarf2out.c (gen_subprogram_die): Don't call
16950         add_calling_convention_attribute if subr_die is old_die.
16952 2014-02-13  Sharad Singhai  <singhai@google.com>
16954         * doc/optinfo.texi: Fix order of nodes.
16956 2014-02-13  Uros Bizjak  <ubizjak@gmail.com>
16958         * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
16959         operands[2], not operands[3].
16961 2014-02-13  Richard Biener  <rguenther@suse.de>
16963         PR bootstrap/59878
16964         * doc/install.texi (ISL): Update recommended version to 0.12.2,
16965         mention the possibility of an in-tree build.
16966         (CLooG): Update recommended version to 0.18.1, mention the
16967         possibility of an in-tree build and clarify that the ISL
16968         bundled with CLooG does not work.
16970 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
16972         PR target/43546
16973         * expr.c (compress_float_constant): If x is a hard register,
16974         extend into a pseudo and then move to x.
16976 2014-02-13  Dominik Vogt  <vogt@linux.vnet.ibm.com>
16978         * config/s390/s390.c (s390_asm_output_function_label): Fix crash
16979         caused by bad second argument to warning_at() with -mhotpatch and
16980         nested functions (e.g. with gfortran).
16982 2014-02-13  Richard Sandiford  <rdsandiford@googlemail.com>
16984         * opts.c (option_name): Remove "enabled by default" rider.
16986 2014-02-12  John David Anglin  <danglin@gcc.gnu.org>
16988         * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
16990 2014-02-12  H.J. Lu  <hongjiu.lu@intel.com>
16991             Uros Bizjak  <ubizjak@gmail.com>
16993         PR target/60151
16994         * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
16995         * configure: Regenerated.
16997 2014-02-12  Richard Biener  <rguenther@suse.de>
16999         * vec.c (vec_prefix::calculate_allocation): Move as
17000         inline variant to vec.h.
17001         (vec_prefix::calculate_allocation_1): New out-of-line version.
17002         * vec.h (vec_prefix::calculate_allocation_1): Declare.
17003         (vec_prefix::m_has_auto_buf): Rename to ...
17004         (vec_prefix::m_using_auto_storage): ... this.
17005         (vec_prefix::calculate_allocation): Inline the easy cases
17006         and dispatch to calculate_allocation_1 which doesn't need the
17007         prefix address.
17008         (va_heap::reserve): Use gcc_checking_assert.
17009         (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
17010         m_using_auto_storage.
17011         (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
17012         member and adjust.
17013         (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
17014         (vec<T, va_heap, vl_ptr>::release): Avoid casting.
17015         (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
17017 2014-02-12  Richard Biener  <rguenther@suse.de>
17019         * gcse.c (compute_transp): break from loop over canon_modify_mem_list
17020         when we found a dependence.
17022 2014-02-12  Thomas Schwinge  <thomas@codesourcery.com>
17024         * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
17025         common code...
17026         (maybe_fold_stmt): ... into this new function.
17027         * omp-low.c (lower_omp): Update comment.
17029         * omp-low.c (lower_omp_target): Add clobber for sizes array, after
17030         last use.
17032         * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
17033         dereference.
17035 2014-02-12  James Greenhalgh  <james.greenhalgh@arm.com>
17037         * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
17038         identifiers in comments.
17039         (cortexa53_extra_costs): Likewise.
17040         * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
17041         (cortexa7_extra_costs): Likewise.
17042         (cortexa12_extra_costs): Likewise.
17043         (cortexa15_extra_costs): Likewise.
17044         (v7m_extra_costs): Likewise.
17046 2014-02-12  Richard Biener  <rguenther@suse.de>
17048         PR middle-end/60092
17049         * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
17050         of posix_memalign being successful.
17051         (lower_stmt): Restrict lowering of posix_memalign to when
17052         -ftree-bit-ccp is enabled.
17054 2014-02-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
17056         * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
17057         arg_loc.
17058         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
17060 2014-02-12  Eric Botcazou  <ebotcazou@adacore.com>
17062         PR rtl-optimization/60116
17063         * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
17064         other_insn once the combination has been validated.
17066 2014-02-11  Jan Hubicka  <hubicka@ucw.cz>
17068         PR lto/59468
17069         * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
17070         and wrapper.
17071         * ipa-devirt.c: Include demangle.h
17072         (odr_violation_reported): New static variable.
17073         (add_type_duplicate): Update odr_violations.
17074         (maybe_record_node): Add completep parameter; update it.
17075         (record_target_from_binfo): Add COMPLETEP parameter;
17076         update it as needed.
17077         (possible_polymorphic_call_targets_1): Likewise.
17078         (struct polymorphic_call_target_d): Add nonconstruction_targets;
17079         rename FINAL to COMPLETE.
17080         (record_targets_from_bases): Sanity check we found the binfo;
17081         fix COMPLETEP updating.
17082         (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
17083         parameter, fix computing of COMPLETEP.
17084         (dump_possible_polymorphic_call_targets): Imrove readability of dump;
17085         at LTO time do demangling.
17086         (ipa_devirt): Use nonconstruction_targets; Improve dumps.
17087         * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
17088         parameter.
17089         (gimple_get_virt_method_for_binfo): Likewise.
17090         * gimple-fold.h (gimple_get_virt_method_for_binfo,
17091         gimple_get_virt_method_for_vtable): Update prototypes.
17093 2014-02-11  Vladimir Makarov  <vmakarov@redhat.com>
17095         PR target/49008
17096         * genautomata.c (add_presence_absence): Fix typo with
17097         {final_}presence_list.
17099 2014-02-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
17101         PR target/60137
17102         * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
17103         for VSX/Altivec vectors that land in GPR registers.
17105 2014-02-11  Richard Henderson  <rth@redhat.com>
17106             Jakub Jelinek  <jakub@redhat.com>
17108         PR debug/59776
17109         * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
17110         around drhs if type conversion to lacc->type is not useless.
17112 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17114         * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
17115         tuning struct.
17116         (cortex-a57.cortex-a53): Likewise.
17117         * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
17119 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17121         * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
17122         arm_restrict_it.
17124 2014-02-11  Renlin Li  <Renlin.Li@arm.com>
17126         * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
17127         add_options_for_arm_vfp3.
17129 2014-02-11  Jeff Law  <law@redhat.com>
17131         PR middle-end/54041
17132         * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
17133         object with an undesirable mode.
17135 2014-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17137         PR libgomp/60107
17138         * config/i386/sol2-9.h: New file.
17139         * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
17140         *-*-solaris2.9*): Use it.
17142 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
17144         * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
17145         * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
17147 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
17149         * config/microblaze/microblaze.c: Extend mcpu version format
17151 2014-02-10  David Holsgrove  <david.holsgrove@xilinx.com>
17153         * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
17155 2014-02-10  Richard Henderson  <rth@redhat.com>
17157         PR target/59927
17158         * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
17159         * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
17160         ms-abi vs -mno-accumulate-outgoing-args.
17161         (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
17162         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
17163         respect to ms-abi.
17165 2014-02-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17167         PR middle-end/60080
17168         * cfgexpand.c (expand_asm_operands): Attach source location to
17169         ASM_INPUT rtx objects.
17170         * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
17172 2014-02-10  Nick Clifton  <nickc@redhat.com>
17174         * config/mn10300/mn10300.c (popcount): New function.
17175         (mn10300_expand_prologue): Include saved registers in stack usage
17176         count.
17178 2014-02-10  Jeff Law  <law@redhat.com>
17180         PR middle-end/52306
17181         * reload1.c (emit_input_reload_insns): Do not create invalid RTL
17182         when changing the SET_DEST of a prior insn to avoid an input reload.
17184 2014-02-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17186         * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
17187         big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
17188         -mcall-openbsd, or -mcall-linux.
17189         (CC1_ENDIAN_BIG_SPEC): Remove.
17190         (CC1_ENDIAN_LITTLE_SPEC): Remove.
17191         (CC1_ENDIAN_DEFAULT_SPEC): Remove.
17192         (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
17193         (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
17194         and %cc1_endian_default.
17195         * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
17197 2014-02-10  Richard Biener  <rguenther@suse.de>
17199         PR tree-optimization/60115
17200         * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
17201         MEM_REF handling.  Properly verify that the accesses are not
17202         out of the objects bound.
17204 2014-02-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17206         * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
17207         coretex to cortex.
17209 2014-02-10  Eric Botcazou  <ebotcazou@adacore.com>
17211         * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
17212         proper constants and fix formatting.
17213         (possible_polymorphic_call_targets): Fix formatting.
17215 2014-02-10  Kirill Yukhin  <kirill.yukhin@intel.com>
17216             Ilya Tocar  <ilya.tocar@intel.com>
17218         * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
17219         (_mm512_loadu_epi32): Renamed into...
17220         (_mm512_loadu_si512): This.
17221         (_mm512_storeu_epi32): Renamed into...
17222         (_mm512_storeu_si512): This.
17223         (_mm512_maskz_ceil_ps): Removed.
17224         (_mm512_maskz_ceil_pd): Ditto.
17225         (_mm512_maskz_floor_ps): Ditto.
17226         (_mm512_maskz_floor_pd): Ditto.
17227         (_mm512_floor_round_ps): Ditto.
17228         (_mm512_floor_round_pd): Ditto.
17229         (_mm512_ceil_round_ps): Ditto.
17230         (_mm512_ceil_round_pd): Ditto.
17231         (_mm512_mask_floor_round_ps): Ditto.
17232         (_mm512_mask_floor_round_pd): Ditto.
17233         (_mm512_mask_ceil_round_ps): Ditto.
17234         (_mm512_mask_ceil_round_pd): Ditto.
17235         (_mm512_maskz_floor_round_ps): Ditto.
17236         (_mm512_maskz_floor_round_pd): Ditto.
17237         (_mm512_maskz_ceil_round_ps): Ditto.
17238         (_mm512_maskz_ceil_round_pd): Ditto.
17239         (_mm512_expand_pd): Ditto.
17240         (_mm512_expand_ps): Ditto.
17241         * config/i386/i386.c (ix86_builtins): Remove
17242         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
17243         (bdesc_args): Ditto.
17244         * config/i386/predicates.md (const1256_operand): New.
17245         (const_1_to_2_operand): Ditto.
17246         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
17247         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
17248         (*avx512pf_gatherpf<mode>sf): Ditto.
17249         (avx512pf_gatherpf<mode>df): Ditto.
17250         (*avx512pf_gatherpf<mode>df_mask): Ditto.
17251         (*avx512pf_gatherpf<mode>df): Ditto.
17252         (avx512pf_scatterpf<mode>sf): Ditto.
17253         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
17254         (*avx512pf_scatterpf<mode>sf): Ditto.
17255         (avx512pf_scatterpf<mode>df): Ditto.
17256         (*avx512pf_scatterpf<mode>df_mask): Ditto.
17257         (*avx512pf_scatterpf<mode>df): Ditto.
17258         (avx512f_expand<mode>): Removed.
17259         (<shift_insn><mode>3<mask_name>): Change predicate type.
17261 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
17263         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
17264         not at the end of datarefs vector use ordered_remove to avoid
17265         reordering datarefs vector.
17267         PR c/59984
17268         * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
17269         mark local addressable non-static vars as GOVD_PRIVATE
17270         instead of GOVD_LOCAL.
17271         * omp-low.c (lower_omp_for): Move gimple_bind_vars
17272         and BLOCK_VARS of gimple_bind_block to new_stmt rather
17273         than copying them.
17275         PR middle-end/60092
17276         * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
17277         if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
17278         assume_aligned or alloc_align attributes.
17279         (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
17280         arguments.  Handle also assume_aligned and alloc_align attributes.
17281         (evaluate_stmt): Adjust bit_value_assume_aligned caller.  Handle
17282         calls to functions with assume_aligned or alloc_align attributes.
17283         * doc/extend.texi: Document assume_aligned and alloc_align attributes.
17285 2014-02-08  Terry Guo  <terry.guo@arm.com>
17287         * doc/invoke.texi: Document ARM -march=armv7e-m.
17289 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
17291         * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
17292         flag on __cilkrts_rethrow builtin.
17294         PR ipa/60026
17295         * ipa-cp.c (determine_versionability): Fail at -O0
17296         or __attribute__((optimize (0))) or -fno-ipa-cp functions.
17297         * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
17299         Revert:
17300         2014-02-04  Jakub Jelinek  <jakub@redhat.com>
17302         PR ipa/60026
17303         * tree-inline.c (copy_forbidden): Fail for
17304         __attribute__((optimize (0))) functions.
17306 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
17308         * varpool.c: Include pointer-set.h.
17309         (varpool_remove_unreferenced_decls): Variables in other partitions
17310         will not be output; be however careful to not lose information
17311         about partitioning.
17313 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
17315         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
17316         lookup in the vtable constructor.
17318 2014-02-07  Jeff Law  <law@redhat.com>
17320         PR target/40977
17321         * config/m68k/m68k.md (ashldi_extsi): Turn into a
17322         define_insn_and_split.
17324         * ipa-inline.c (inline_small_functions): Fix typos.
17326 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
17328         * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
17329         (s390_can_use_return_insn): Declare.
17330         * config/s390/s390.h (EPILOGUE_USES): Define.
17331         * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
17332         instructions.
17333         (s390_chunkify_start): Handle return JUMP_LABELs.
17334         (s390_early_mach): Emit a main_pool instruction on the entry edge.
17335         (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
17336         (s390_can_use_return_insn): New functions.
17337         (s390_fix_long_loop_prediction): Handle conditional returns.
17338         (TARGET_SET_UP_BY_PROLOGUE): Define.
17339         * config/s390/s390.md (ANY_RETURN): New code iterator.
17340         (*creturn, *csimple_return, return, simple_return): New patterns.
17342 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
17344         * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
17345         notes to each restore.  Also add REG_CFA_DEF_CFA when restoring %r15.
17346         (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P.  Update the
17347         REG_CFA_RESTORE list when deciding not to restore a register.
17349 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
17351         * config/s390/s390.c: Include tree-pass.h and context.h.
17352         (s390_early_mach): New function, split out from...
17353         (s390_emit_prologue): ...here.
17354         (pass_data_s390_early_mach): New pass structure.
17355         (pass_s390_early_mach): New class.
17356         (s390_option_override): Create and register early_mach pass.
17357         Move to end of file.
17359 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
17361         * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
17362         to match for the exit block.
17364 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17366         * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
17367         ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
17368         Reject misaligned operands.
17370 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17372         * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
17374 2014-02-07  Richard Biener  <rguenther@suse.de>
17376         PR middle-end/60092
17377         * gimple-low.c (lower_builtin_posix_memalign): New function.
17378         (lower_stmt): Call it to lower posix_memalign in a way
17379         to make alignment info accessible.
17381 2014-02-07  Jakub Jelinek  <jakub@redhat.com>
17383         PR c++/60082
17384         * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
17385         __builtin_setjmp_receiver.
17387 2014-02-07  Richard Biener  <rguenther@suse.de>
17389         PR middle-end/60092
17390         * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
17391         * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
17392         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
17393         Handle BUILT_IN_POSIX_MEMALIGN.
17394         (find_func_clobbers): Likewise.
17395         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
17396         (call_may_clobber_ref_p_1): Likewise.
17398 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
17400         PR ipa/59918
17401         * ipa-devirt.c (record_target_from_binfo): Remove overactive
17402         sanity check.
17404 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
17406         PR ipa/59469
17407         * lto-cgraph.c (lto_output_node): Use
17408         symtab_get_symbol_partitioning_class.
17409         (lto_output_varpool_node): likewise.
17410         (symtab_get_symbol_partitioning_class): Move here from
17411         lto/lto-partition.c
17412         * cgraph.h (symbol_partitioning_class): Likewise.
17413         (symtab_get_symbol_partitioning_class): Declare.
17415 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
17417         * ggc.h (ggc_internal_cleared_alloc): New macro.
17418         * vec.h (vec_safe_copy): Handle memory stats.
17419         * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
17420         * target-globals.c (save_target_globals): Likewise.
17422 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
17424         PR target/60077
17425         * expr.c (emit_move_resolve_push): Export; be bit more selective
17426         on when to clear alias set.
17427         * expr.h (emit_move_resolve_push): Declare.
17428         * function.h (struct function): Add tail_call_marked.
17429         * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
17430         * config/i386/i386-protos.h (ix86_expand_push): Remove.
17431         * config/i386/i386.md (TImode move expander): De not call
17432         ix86_expand_push.
17433         (FP push expanders): Preserve memory attributes.
17434         * config/i386/sse.md (push<mode>1): Remove.
17435         * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
17436         (ix86_expand_push): Remove.
17437         * config/i386/mmx.md (push<mode>1): Remove.
17439 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
17441         PR rtl-optimization/60030
17442         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
17443         lopart with paradoxical subreg before shifting it up by hprec.
17445 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17447         * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
17448         Remove extra newline at end of file.
17449         * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
17450         (arm_issue_rate): Handle cortexa57.
17451         * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
17452         (cortex-a57.cortex-a53): Likewise.
17454 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
17456         PR target/59575
17457         * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
17458         don't record in REG_FRAME_RELATED_EXPR registers not set in that
17459         bitmask.
17460         (arm_expand_prologue): Adjust all callers.
17461         (arm_unwind_emit_sequence): Allow saved, but not important for unwind
17462         info, registers also at the lowest numbered registers side.  Use
17463         gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
17464         XEXP.
17466         PR debug/59992
17467         * var-tracking.c (adjust_mems): Before adding a SET to
17468         amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
17470 2014-02-06  Alan Modra  <amodra@gmail.com>
17472         PR target/60032
17473         * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
17474         change SDmode to DDmode when lra_in_progress.
17476 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
17478         PR middle-end/59150
17479         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
17480         free_data_ref on the dr first, and before goto again also set dr
17481         to the next dr.  For simd_lane_access, free old datarefs[i] before
17482         overwriting it.  For get_vectype_for_scalar_type failure, don't
17483         free_data_ref if simd_lane_access.
17485         * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
17487         PR target/60062
17488         * tree.h (opts_for_fn): New inline function.
17489         (opt_for_fn): Define.
17490         * config/i386/i386.c (ix86_function_regparm): Use
17491         opt_for_fn (decl, optimize) instead of optimize.
17493 2014-02-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
17495         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
17496         for SYMBOL_REF in large memory model.
17498 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17500         * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
17501         and crypto support.
17502         (cortex-a57): Likewise.
17503         (cortex-a57.cortex-a53): Likewise.
17505 2014-02-06  Yury Gribov  <y.gribov@samsung.com>
17506             Kugan Vivekanandarajah  <kuganv@linaro.org>
17508         * config/arm/arm.c (arm_vector_alignment_reachable): Check
17509         unaligned_access.
17510         * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
17512 2014-02-06  Richard Biener  <rguenther@suse.de>
17514         * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
17515         set_loop_copy and initialize_original_copy_tables.
17517 2014-02-06  Alex Velenko  <Alex.Velenko@arm.com>
17519         * config/aarch64/aarch64-simd.md
17520         (aarch64_ashr_simddi): Change QI to SI.
17522 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
17523             Jakub Jelinek  <jakub@redhat.com>
17525         PR middle-end/60013
17526         * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
17527         of the dataflow.
17529 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17531         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
17532         CODE_FOR_altivec_vpku[hw]um to
17533         CODE_FOR_altivec_vpku[hw]um_direct.
17534         * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
17535         UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
17536         (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
17537         UNSPEC_VUNPACK_LO_SIGN_DIRECT.
17539 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17541         * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
17542         generation for -maltivec=be.
17543         (altivec_vsumsws): Simplify redundant test.
17545 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17547         * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
17548         (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
17549         (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
17550         (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
17551         gen_altivec_vpkuwum.
17552         (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
17553         BYTES_BIG_ENDIAN.
17554         (altivec_vpks<VI_char>ss): Likewise.
17555         (altivec_vpks<VI_char>us): Likewise.
17556         (altivec_vpku<VI_char>us): Likewise.
17557         (altivec_vpku<VI_char>um): Likewise.
17558         (altivec_vpku<VI_char>um_direct): New (copy of
17559         altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
17560         internal use).
17561         (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
17562         target is little endian and -maltivec=be is not specified.
17563         (*altivec_vupkhs<VU_char>_direct): New (copy of
17564         altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
17565         (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
17566         target is little endian and -maltivec=be is not specified.
17567         (*altivec_vupkls<VU_char>_direct): New (copy of
17568         altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
17569         (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
17570         little endian and -maltivec=be is not specified.
17571         (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
17572         little endian and -maltivec=be is not specified.
17574 2014-02-05  Richard Henderson  <rth@redhat.com>
17576         PR debug/52727
17577         * combine-stack-adj.c: Revert r206943.
17578         * sched-int.h (struct deps_desc): Add last_args_size.
17579         * sched-deps.c (init_deps): Initialize it.
17580         (sched_analyze_insn): Add OUTPUT dependencies between insns that
17581         contain REG_ARGS_SIZE notes.
17583 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
17585         * lto-cgraph.c (asm_nodes_output): Make global.
17586         * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
17587         * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
17588         (driver_handle_option): Handle OPT_fwpa.
17590 2014-02-05  Jakub Jelinek  <jakub@redhat.com>
17592         PR ipa/59947
17593         * ipa-devirt.c (possible_polymorphic_call_targets): Fix
17594         a comment typo and formatting issue.  If odr_hash hasn't been
17595         created, return vNULL and set *completep to false.
17597         PR middle-end/57499
17598         * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
17599         bb with no successors.
17601 2014-02-05  James Greenhalgh  <james.greenhalgh@arm.com>
17603         PR target/59718
17604         * doc/invoke.texi (-march): Clarify documentation for ARM.
17605         (-mtune): Likewise.
17606         (-mcpu): Likewise.
17608 2014-02-05  Richard Biener  <rguenther@suse.de>
17610         * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
17611         when not vectorizing because of too many alias checks.
17612         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
17613         Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
17615 2014-02-05  Nick Clifton  <nickc@redhat.com>
17617         * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
17618         accept extended registers in any mode when compiling for the MN10300.
17620 2014-02-05  Yury Gribov  <y.gribov@samsung.com>
17622         * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
17623         * ipa-inline.c (report_inline_failed_reason): Handle mismatched
17624         sanitization attributes.
17625         (can_inline_edge_p): Likewise.
17626         (sanitize_attrs_match_for_inline_p): New function.
17628 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
17630         * ipa-prop.c (detect_type_change): Shor circuit testing of
17631         type changes on THIS pointer.
17633 2014-02-04  John David Anglin  <danglin@gcc.gnu.org>
17635         PR target/59777
17636         * config/pa/pa.c (legitimize_tls_address): Return original address
17637         if not passed a SYMBOL_REF rtx.
17638         (hppa_legitimize_address): Call legitimize_tls_address for all TLS
17639         addresses.
17640         (pa_emit_move_sequence): Simplify TLS source operands.
17641         (pa_legitimate_constant_p): Reject all TLS constants.
17642         * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
17643         (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
17645 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
17647         * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
17648         groups when we know they are controlled by LTO.
17649         * varasm.c (default_binds_local_p_1): If object is in other partition,
17650         it will be resolved locally.
17652 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17654         * config/host-linux.c (linux_gt_pch_use_address): Don't
17655         use SSIZE_MAX because it is not always defined.
17657 2014-02-04  Vladimir Makarov  <vmakarov@redhat.com>
17659         PR bootstrap/59913
17660         * lra-constraints.c (need_for_split_p): Use more 3 reloads as
17661         threshold for pseudo splitting.
17662         (update_ebb_live_info): Process call argument hard registers and
17663         hard registers from insn definition too.
17664         (max_small_class_regs_num): New constant.
17665         (inherit_in_ebb): Update live hard regs through EBBs.  Update
17666         reloads_num only for small register classes.  Don't split for
17667         outputs of jumps.
17669 2014-02-04  Markus Trippelsdorf  <markus@trippelsdorf.de>
17671         PR ipa/60058
17672         * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
17673         is non-null.
17675 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
17677         * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
17678         visibility is safe.
17680 2014-02-04  Marek Polacek  <polacek@redhat.com>
17682         * gdbinit.in (pel): Define.
17684 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17686         * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
17687         behavior.
17689 2014-02-04  Richard Biener  <rguenther@suse.de>
17691         PR lto/59723
17692         * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
17693         in function context local.
17694         (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
17695         * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
17696         similar to LTO_imported_decl_ref.
17698 2014-02-04  Jakub Jelinek  <jakub@redhat.com>
17700         PR tree-optimization/60002
17701         * cgraphclones.c (build_function_decl_skip_args): Clear
17702         DECL_LANG_SPECIFIC.
17704         PR tree-optimization/60023
17705         * tree-if-conv.c (predicate_mem_writes): Pass true instead of
17706         false to gsi_replace.
17707         * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
17708         has been in some EH region and vec_stmt could throw, add
17709         vec_stmt into the same EH region.
17710         * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
17711         has no lhs, ignore it.
17712         * internal-fn.c (expand_MASK_LOAD): Likewise.
17714         PR ipa/60026
17715         * tree-inline.c (copy_forbidden): Fail for
17716         __attribute__((optimize (0))) functions.
17718         PR other/58712
17719         * omp-low.c (simd_clone_struct_copy): If from->inbranch
17720         is set, copy one less argument.
17721         (expand_simd_clones): Don't subtract clone_info->inbranch
17722         from simd_clone_struct_alloc argument.
17724         PR rtl-optimization/57915
17725         * recog.c (simplify_while_replacing): If all unary/binary/relational
17726         operation arguments are constant, attempt to simplify those.
17728         PR middle-end/59261
17729         * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
17730         if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
17732 2014-02-04  Richard Biener  <rguenther@suse.de>
17734         PR tree-optimization/60012
17735         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
17736         TBAA disambiguation to all DDRs.
17738 2014-02-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17740         PR target/59788
17741         * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
17742         (LINK_SPEC): Use it for -shared, -shared-libgcc.
17744 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
17746         PR ipa/59882
17747         * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
17749 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
17751         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
17752         * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
17754 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
17756         PR ipa/59831
17757         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
17758         to figure out targets of polymorphic calls with known decl.
17759         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
17760         * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
17761         * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
17762         (get_polymorphic_call_info): ... here.
17763         (get_polymorphic_call_info_from_invariant): New function.
17765 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
17767         * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
17768         lookup via vtable pointer; check for type consistency
17769         and turn inconsitent facts into UNREACHABLE.
17770         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
17771         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
17772         type inconsistent querries; return UNREACHABLE instead.
17774 2014-02-03  Richard Henderson  <rth@twiddle.net>
17776         PR tree-opt/59924
17777         * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
17778         already processed this node.
17779         (normalize_one_pred_1): Pass along mark_set.
17780         (normalize_one_pred): Create and destroy a pointer_set_t.
17781         (normalize_one_pred_chain): Likewise.
17783 2014-02-03  Laurent Aflonsi  <laurent.alfonsi@st.com>
17785         PR gcov-profile/58602
17786         * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
17788 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
17790         PR ipa/59831
17791         * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
17792         -fno-devirtualize; try to devirtualize by the knowledge of
17793         virtual table pointer given by aggregate propagation.
17794         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
17795         (ipa_print_node_jump_functions): Dump also offset that
17796         is relevant for polymorphic calls.
17797         (determine_known_aggregate_parts): Add arg_type parameter; use it
17798         instead of determining the type from pointer type.
17799         (ipa_compute_jump_functions_for_edge): Update call of
17800         determine_known_aggregate_parts.
17801         * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
17802         (gimple_get_virt_method_for_binfo): ... here; simplify using
17803         vtable_pointer_value_to_vtable.
17804         * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
17805         * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
17806         to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
17807         (vtable_pointer_value_to_vtable): Break out from ...; handle also
17808         POINTER_PLUS_EXPR.
17809         (vtable_pointer_value_to_binfo): ... here.
17810         * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
17812 2014-02-03  Teresa Johnson  <tejohnson@google.com>
17814         * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
17815         redef of outer loop index variable.
17817 2014-02-03  Marc Glisse  <marc.glisse@inria.fr>
17819         PR c++/53017
17820         PR c++/59211
17821         * doc/extend.texi (Function Attributes): Typo.
17823 2014-02-03  Cong Hou  <congh@google.com>
17825         PR tree-optimization/60000
17826         * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
17827         if the vectorized statement is a store.  A store statement can only
17828         appear at the end of pattern statements.
17830 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
17832         * config/i386/i386.c (flag_opts): Add -mlong-double-128.
17833         (ix86_option_override_internal): Default long double to 64-bit for
17834         32-bit Bionic and to 128-bit for 64-bit Bionic.
17836         * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
17837         TARGET_LONG_DOUBLE_128 is true.
17838         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
17840         * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
17841         (mlong-double-64): Negate -mlong-double-128.
17842         (mlong-double-128): New option.
17844         * config/i386/i386-c.c (ix86_target_macros): Define
17845         __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
17847         * doc/invoke.texi: Document -mlong-double-128.
17849 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
17851         PR rtl-optimization/60024
17852         * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
17854 2014-02-03  Markus Trippelsdorf  <markus@trippelsdorf.de>
17856         * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
17858 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
17860         PR rtl-optimization/57662
17861         * sel-sched.c (code_motion_path_driver): Do not mark already not
17862         existing blocks in the visiting bitmap.
17864 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
17866         * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
17867         on the insn being emitted.
17869 2014-02-03  James Greenhalgh  <james.greenhalgh@arm.com>
17870             Will Deacon  <will.deacon@arm.com>
17872         * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
17874 2014-02-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17876         * config/arm/arm-tables.opt: Regenerate.
17878 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17880         * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
17881         for vector types other than V16QImode.
17882         * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
17883         define_expand, and call altivec_expand_vec_perm_le when producing
17884         code with little endian element order.
17885         (*altivec_vperm_<mode>_internal): New insn having previous
17886         behavior of altivec_vperm_<mode>.
17887         (altivec_vperm_<mode>_uns): Change to a define_expand, and call
17888         altivec_expand_vec_perm_le when producing code with little endian
17889         element order.
17890         (*altivec_vperm_<mode>_uns_internal): New insn having previous
17891         behavior of altivec_vperm_<mode>_uns.
17893 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17895         * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
17896         (altivec_vsumsws): Add handling for -maltivec=be with a little
17897         endian target.
17898         (altivec_vsumsws_direct): New.
17899         (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
17900         gen_altivec_vsumsws.
17902 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
17904         * ipa-devirt.c (subbinfo_with_vtable_at_offset,
17905         vtable_pointer_value_to_binfo): New functions.
17906         * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
17907         * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
17909 2014-02-02  Sandra Loosemore  <sandra@codesourcery.com>
17911         * config/nios2/nios2.md (load_got_register): Initialize GOT
17912         pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
17913         * config/nios2/nios2.c (nios2_function_profiler): Likewise.
17915 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
17917         * ipa-prop.c (update_jump_functions_after_inlining): When type is not
17918         preserverd by passthrough, do not propagate the type.
17920 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
17922         * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
17923         (mips_atomic_assign_expand_fenv): New function.
17924         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
17926 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
17928         * doc/extend.texi (__builtin_mips_get_fcsr): Document.
17929         (__builtin_mips_set_fcsr): Likewise.
17930         * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
17931         MIPS_USI_FTYPE_VOID.
17932         * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
17933         (mips16_expand_set_fcsr): Likewise.
17934         * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
17935         (mips16_set_fcsr_stub): Likewise.
17936         (mips16_get_fcsr_one_only_stub): New class.
17937         (mips16_set_fcsr_one_only_stub): Likewise.
17938         (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
17939         (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
17940         (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
17941         (hard_float): New availability predicate.
17942         (mips_builtins): Add get_fcsr and set_fcsr.
17943         (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
17944         * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
17945         (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
17946         (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
17947         (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
17948         patterns.
17950 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
17952         * config/mips/mips.c (mips_one_only_stub): New class.
17953         (mips_need_mips16_rdhwr_p): Replace with...
17954         (mips16_rdhwr_stub): ...this new variable.
17955         (mips16_stub_call_address): New function.
17956         (mips16_rdhwr_one_only_stub): New class.
17957         (mips_expand_thread_pointer): Use mips16_stub_call_address.
17958         (mips_output_mips16_rdhwr): Delete.
17959         (mips_finish_stub): New function.
17960         (mips_code_end): Use it to handle rdhwr stubs.
17962 2014-02-02  Uros Bizjak  <ubizjak@gmail.com>
17964         PR target/60017
17965         * config/i386/i386.c (classify_argument): Fix handling of bit_offset
17966         when calculating size of integer atomic types.
17968 2014-02-02  H.J. Lu  <hongjiu.lu@intel.com>
17970         * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
17972 2014-02-01  Jakub Jelinek  <jakub@redhat.com>
17974         PR tree-optimization/60003
17975         * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
17976         * profile.c (branch_prob): Use gimple_call_builtin_p
17977         to check for BUILT_IN_SETJMP_RECEIVER.
17978         * tree-inline.c (copy_bb): Call notice_special_calls.
17980 2014-01-31  Vladimir Makarov  <vmakarov@redhat.com>
17982         PR bootstrap/59985
17983         * lra-constraints.c (process_alt_operands): Update reload_sum only
17984         on the first pass.
17986 2014-01-31  Richard Henderson  <rth@redhat.com>
17988         PR middle-end/60004
17989         * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
17990         until after else_eh is processed.
17992 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
17994         * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
17995         (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
17996         (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
17997         in smmintrin.h, remove them.
17998         (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
17999         * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
18000         * config/i386/i386.md (ROUND_SAE): Fix value.
18001         * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
18002         (const48_operand): New.
18003         * config/i386/subst.md (round), (round_expand): Use
18004         const_4_or_8_to_11_operand.
18005         (round_saeonly), (round_saeonly_expand): Use const48_operand.
18007 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
18009         * config/i386/constraints.md (Yk): Swap meaning with k.
18010         * config/i386/i386.md (movhi_internal): Change Yk to k.
18011         (movqi_internal): Ditto.
18012         (*k<logic><mode>): Ditto.
18013         (*andhi_1): Ditto.
18014         (*andqi_1): Ditto.
18015         (kandn<mode>): Ditto.
18016         (*<code>hi_1): Ditto.
18017         (*<code>qi_1): Ditto.
18018         (kxnor<mode>): Ditto.
18019         (kortestzhi): Ditto.
18020         (kortestchi): Ditto.
18021         (kunpckhi): Ditto.
18022         (*one_cmplhi2_1): Ditto.
18023         (*one_cmplqi2_1): Ditto.
18024         * config/i386/sse.md (): Change k to Yk.
18025         (avx512f_load<mode>_mask): Ditto.
18026         (avx512f_blendm<mode>): Ditto.
18027         (avx512f_store<mode>_mask): Ditto.
18028         (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
18029         (avx512f_storedqu<mode>_mask): Ditto.
18030         (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
18031         Ditto.
18032         (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
18033         (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
18034         (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
18035         (avx512f_maskcmp<mode>3): Ditto.
18036         (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
18037         (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
18038         (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
18039         (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
18040         (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
18041         (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
18042         (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
18043         (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
18044         (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
18045         (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
18046         (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
18047         (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
18048         (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
18049         (vec_extract_lo_<mode>_maskm): Ditto.
18050         (vec_extract_hi_<mode>_maskm): Ditto.
18051         (avx512f_vternlog<mode>_mask): Ditto.
18052         (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
18053         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
18054         (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
18055         (avx512f_<code>v8div16qi2_mask): Ditto.
18056         (avx512f_<code>v8div16qi2_mask_store): Ditto.
18057         (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
18058         (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
18059         (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
18060         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
18061         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
18062         (*avx512pf_gatherpf<mode>df_mask): Ditto.
18063         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
18064         (*avx512pf_scatterpf<mode>df_mask): Ditto.
18065         (avx512cd_maskb_vec_dupv8di): Ditto.
18066         (avx512cd_maskw_vec_dupv16si): Ditto.
18067         (avx512f_vpermi2var<mode>3_maskz): Ditto.
18068         (avx512f_vpermi2var<mode>3_mask): Ditto.
18069         (avx512f_vpermi2var<mode>3_mask): Ditto.
18070         (avx512f_vpermt2var<mode>3_maskz): Ditto.
18071         (*avx512f_gathersi<mode>): Ditto.
18072         (*avx512f_gathersi<mode>_2): Ditto.
18073         (*avx512f_gatherdi<mode>): Ditto.
18074         (*avx512f_gatherdi<mode>_2): Ditto.
18075         (*avx512f_scattersi<mode>): Ditto.
18076         (*avx512f_scatterdi<mode>): Ditto.
18077         (avx512f_compress<mode>_mask): Ditto.
18078         (avx512f_compressstore<mode>_mask): Ditto.
18079         (avx512f_expand<mode>_mask): Ditto.
18080         * config/i386/subst.md (mask): Change k to Yk.
18081         (mask_scalar_merge): Ditto.
18082         (sd): Ditto.
18084 2014-01-31  Marc Glisse  <marc.glisse@inria.fr>
18086         * doc/extend.texi (Vector Extensions): Document ?: in C++.
18088 2014-01-31  Richard Biener  <rguenther@suse.de>
18090         PR middle-end/59990
18091         * builtins.c (fold_builtin_memory_op): Make sure to not
18092         use a floating-point mode or a boolean or enumeral type for
18093         the copy operation.
18095 2014-01-30  DJ Delorie  <dj@redhat.com>
18097         * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
18098         * config/msp430/msp430.md (msp430_refsym_need_exit): New.
18099         * config/msp430/msp430.c (msp430_expand_epilogue): Call it
18100         whenever main() has an epilogue.
18102 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18104         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
18105         unused variable "field".
18106         * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
18107         (vsx_mergeh_<mode>): Likewise.
18108         * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
18109         (altivec_vmrghh): Likewise.
18110         (altivec_vmrghw): Likewise.
18111         (altivec_vmrglb): Likewise.
18112         (altivec_vmrglh): Likewise.
18113         (altivec_vmrglw): Likewise.
18114         (altivec_vspltb): Add missing uses.
18115         (altivec_vsplth): Likewise.
18116         (altivec_vspltw): Likewise.
18117         (altivec_vspltsf): Likewise.
18119 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
18121         PR target/59923
18122         * ifcvt.c (cond_exec_process_insns): Don't conditionalize
18123         frame related instructions.
18125 2014-01-30  Vladimir Makarov  <vmakarov@redhat.com>
18127         PR rtl-optimization/59959
18128         * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
18129         any reload of register whose subreg is invalid.
18131 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
18133         * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
18134         * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
18135         Add missing return type - void.
18137 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18139         * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
18140         gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
18141         remove element index adjustment for endian (now handled in vsx.md
18142         and altivec.md).
18143         (altivec_expand_vec_perm_const): Use
18144         gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
18145         * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
18146         (vsx_xxspltw_<mode>): Adjust element index for little endian.
18147         * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
18148         define_expand and a new define_insn *altivec_vspltb_internal;
18149         adjust for -maltivec=be on a little endian target.
18150         (altivec_vspltb_direct): New.
18151         (altivec_vsplth): Divide into a define_expand and a new
18152         define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
18153         little endian target.
18154         (altivec_vsplth_direct): New.
18155         (altivec_vspltw): Divide into a define_expand and a new
18156         define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
18157         little endian target.
18158         (altivec_vspltw_direct): New.
18159         (altivec_vspltsf): Divide into a define_expand and a new
18160         define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
18161         a little endian target.
18163 2014-01-30  Richard Biener  <rguenther@suse.de>
18165         PR tree-optimization/59993
18166         * tree-ssa-forwprop.c (associate_pointerplus): Check we
18167         can propagate form the earlier stmt and avoid the transform
18168         when the intermediate result is needed.
18170 2014-01-30  Alangi Derick  <alangiderick@gmail.com>
18172         * README.Portability: Fix typo.
18174 2014-01-30  David Holsgrove  <david.holsgrove@xilinx.com>
18176         * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
18177         comparison_operator with ordered_comparison_operator.
18179 2014-01-30  Nick Clifton  <nickc@redhat.com>
18181         * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
18182         Rename to mn10300_store_multiple_regs.
18183         * config/mn10300/mn10300.c: Likewise.
18184         * config/mn10300/mn10300.md (store_movm): Fix typo: call
18185         store_multiple_regs.
18186         * config/mn10300/predicates.md (mn10300_store_multiple_operation):
18187         Call mn10300_store_multiple_regs.
18189 2014-01-30  Nick Clifton  <nickc@redhat.com>
18190             DJ Delorie  <dj@redhat.com>
18192         * config/rl78/rl78.c (register_sizes): Make the "upper half" of
18193         %fp 2 to keep registers after it properly word-aligned.
18194         (rl78_alloc_physical_registers_umul): Handle the case where both
18195         input operands are the same.
18197 2014-01-30  Richard Biener  <rguenther@suse.de>
18199         PR tree-optimization/59903
18200         * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
18201         check properly.
18203 2014-01-30  Jason Merrill  <jason@redhat.com>
18205         PR c++/59633
18206         * tree.c (walk_type_fields): Handle VECTOR_TYPE.
18208         PR c++/59645
18209         * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
18211 2014-01-30  Richard Biener  <rguenther@suse.de>
18213         PR tree-optimization/59951
18214         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
18216 2014-01-30  Savin Zlobec  <savin.zlobec@gmail.com>
18218         PR target/59784
18219         * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
18220         SFmode to DFmode case.
18222 2014-01-29  DJ Delorie  <dj@redhat.com>
18224         * config/msp430/msp430.opt (-minrt): New.
18225         * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
18226         if -minrt given.
18227         (ENDFILE_SPEC): Likewise.
18229 2014-01-29  Jan Hubicka  <hubicka@ucw.cz>
18231         * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
18232         (estimate_function_body_sizes): Use it.
18234 2014-01-29  Paolo Carlini  <paolo.carlini@oracle.com>
18236         PR c++/58561
18237         * dwarf2out.c (is_cxx_auto): New.
18238         (is_base_type): Use it.
18239         (gen_type_die_with_usage): Likewise.
18241 2014-01-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18243         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const):  Use
18244         CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
18245         * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
18246         -maltivec=be with LE targets.
18247         (vsx_mergeh_<mode>): Likewise.
18248         * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
18249         (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
18250         (altivec_vmrghb): Replace with define_expand and new
18251         *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
18252         (altivec_vmrghb_direct): New define_insn.
18253         (altivec_vmrghh): Replace with define_expand and new
18254         *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
18255         (altivec_vmrghh_direct): New define_insn.
18256         (altivec_vmrghw): Replace with define_expand and new
18257         *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
18258         (altivec_vmrghw_direct): New define_insn.
18259         (*altivec_vmrghsf): Adjust for endianness.
18260         (altivec_vmrglb): Replace with define_expand and new
18261         *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
18262         (altivec_vmrglb_direct): New define_insn.
18263         (altivec_vmrglh): Replace with define_expand and new
18264         *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
18265         (altivec_vmrglh_direct): New define_insn.
18266         (altivec_vmrglw): Replace with define_expand and new
18267         *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
18268         (altivec_vmrglw_direct): New define_insn.
18269         (*altivec_vmrglsf): Adjust for endianness.
18270         (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
18271         (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
18272         (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
18273         (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
18274         (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
18275         (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
18276         (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
18277         (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
18279 2014-01-29  Marcus Shawcroft  <marcus.shawcroft@arm.com>
18281         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
18282         (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
18283         whitespace.
18285 2014-01-29  Richard Biener  <rguenther@suse.de>
18287         PR tree-optimization/58742
18288         * tree-ssa-forwprop.c (associate_pointerplus): Rename to
18289         associate_pointerplus_align.
18290         (associate_pointerplus_diff): New function.
18291         (associate_pointerplus): Likewise.  Call associate_pointerplus_align
18292         and associate_pointerplus_diff.
18294 2014-01-29  Richard Biener  <rguenther@suse.de>
18296         * lto-streamer.h (LTO_major_version): Bump to 3.
18297         (LTO_minor_version): Reset to 0.
18299 2014-01-29  Renlin Li  <Renlin.Li@arm.com>
18301         * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
18302         * config/arm/arm.c (FL_FOR_ARCH7VE): New.
18303         (arm_file_start): Generate correct asm header for armv7ve.
18304         * config/arm/bpabi.h: Add multilib support for armv7ve.
18305         * config/arm/driver-arm.c: Change the architectures of cortex-a7
18306         and cortex-a15 to armv7ve.
18307         * config/arm/t-aprofile: Add multilib support for armv7ve.
18308         * doc/invoke.texi: Document -march=armv7ve.
18310 2014-01-29  Richard Biener  <rguenther@suse.de>
18312         PR tree-optimization/58742
18313         * tree-ssa-forwprop.c (associate_plusminus): Return true
18314         if we changed sth, defer EH cleanup to ...
18315         (ssa_forward_propagate_and_combine): ... here.  Call simplify_mult.
18316         (simplify_mult): New function.
18318 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
18320         PR middle-end/59917
18321         PR tree-optimization/59920
18322         * tree.c (build_common_builtin_nodes): Remove
18323         __builtin_setjmp_dispatcher initialization.
18324         * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
18325         * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
18326         instead of gsi_after_labels + manually skipping debug stmts.
18327         Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
18328         ignore bbs with IFN_ABNORMAL_DISPATCHER.
18329         * tree-inline.c (copy_edges_for_bb): Remove
18330         can_make_abnormal_goto argument, instead add abnormal_goto_dest
18331         argument.  Ignore computed_goto_p stmts.  Don't call
18332         make_abnormal_goto_edges.  If a call might need abnormal edges
18333         for non-local gotos, see if it already has an edge to
18334         IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
18335         with true argument, don't do anything then, otherwise add
18336         EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
18337         (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
18338         caller.
18339         * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
18340         (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
18341         (lower_stmt): Don't set data->calls_builtin_setjmp.
18342         (lower_builtin_setjmp): Adjust comment.
18343         * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
18344         * tree-cfg.c (found_computed_goto): Remove.
18345         (factor_computed_gotos): Remove.
18346         (make_goto_expr_edges): Return bool, true for computed gotos.
18347         Don't call make_abnormal_goto_edges.
18348         (build_gimple_cfg): Don't set found_computed_goto, don't call
18349         factor_computed_gotos.
18350         (computed_goto_p): No longer static.
18351         (make_blocks): Don't set found_computed_goto.
18352         (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
18353         (make_edges): If make_goto_expr_edges returns true, push bb
18354         into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
18355         instead of calling make_abnormal_goto_edges push bb into ab_edge_call
18356         vector.  Record mapping between bbs and OpenMP regions if there
18357         are any, adjust make_gimple_omp_edges caller.  Call
18358         handle_abnormal_edges.
18359         (make_abnormal_goto_edges): Remove.
18360         * tree-cfg.h (make_abnormal_goto_edges): Remove.
18361         (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
18362         * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
18363         * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
18364         * internal-fn.def (ABNORMAL_DISPATCHER): New.
18365         * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
18366         filling *region also set *region_idx to (*region)->entry->index.
18368         PR other/58712
18369         * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
18370         For REGs set ORIGINAL_REGNO.
18372 2014-01-29  Bingfeng Mei  <bmei@broadcom.com>
18374         * doc/md.texi: Mention that a target shouldn't implement
18375         vec_widen_(s|u)mul_even/odd pair if it is less efficient
18376         than hi/lo pair.
18378 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
18380         PR tree-optimization/59594
18381         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
18382         a copy of the datarefs vector rather than the vector itself.
18384 2014-01-28  Jason Merrill  <jason@redhat.com>
18386         PR c++/53756
18387         * dwarf2out.c (auto_die): New static.
18388         (gen_type_die_with_usage): Handle C++1y 'auto'.
18389         (gen_subprogram_die): If in-class DIE had 'auto', emit type again
18390         on definition.
18392 2014-01-28  H.J. Lu  <hongjiu.lu@intel.com>
18394         PR target/59672
18395         * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
18396         (SPEC_X32): Likewise.
18397         (SPEC_64): Likewise.
18398         * config/i386/i386.c (ix86_option_override_internal): Turn off
18399         OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
18400         for TARGET_16BIT.
18401         (x86_file_start): Output .code16gcc for TARGET_16BIT.
18402         * config/i386/i386.h (TARGET_16BIT): New macro.
18403         (TARGET_16BIT_P): Likewise.
18404         * config/i386/i386.opt: Add m16.
18405         * doc/invoke.texi: Document -m16.
18407 2014-01-28  Jakub Jelinek  <jakub@redhat.com>
18409         PR preprocessor/59935
18410         * input.c (location_get_source_line): Bail out on when line number
18411         is zero, and test the return value of lookup_or_add_file_to_cache_tab.
18413 2014-01-28  Richard Biener  <rguenther@suse.de>
18415         PR tree-optimization/58742
18416         * tree-ssa-forwprop.c (associate_plusminus): Handle
18417         pointer subtraction of the form (T)(P + A) - (T)P.
18419 2014-01-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18421         * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
18422         at const_int_cost.
18424 2014-01-28  Richard Biener  <rguenther@suse.de>
18426         Revert
18427         2014-01-28  Richard Biener  <rguenther@suse.de>
18429         PR rtl-optimization/45364
18430         PR rtl-optimization/59890
18431         * var-tracking.c (local_get_addr_clear_given_value): Handle
18432         already cleared slot.
18433         (val_reset): Handle not allocated local_get_addr_cache.
18434         (vt_find_locations): Use post-order on the inverted CFG.
18436 2014-01-28  Richard Biener  <rguenther@suse.de>
18438         * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
18440 2014-01-28  Richard Biener  <rguenther@suse.de>
18442         PR rtl-optimization/45364
18443         PR rtl-optimization/59890
18444         * var-tracking.c (local_get_addr_clear_given_value): Handle
18445         already cleared slot.
18446         (val_reset): Handle not allocated local_get_addr_cache.
18447         (vt_find_locations): Use post-order on the inverted CFG.
18449 2014-01-28  Alan Modra  <amodra@gmail.com>
18451         * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
18452         * configure.ac <recursive call for build != host>: Define
18453         GENERATOR_FILE.  Comment.  Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
18454         and LD_FOR_BUILD too.
18455         * configure: Regenerate.
18457 2014-01-27  Allan Sandfeld Jensen  <sandfeld@kde.org>
18459         * config/i386/i386.c (get_builtin_code_for_version): Separate
18460         Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
18461         Broadwell from Haswell.
18463 2014-01-27  Steve Ellcey  <sellcey@mips.com>
18465         * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
18466         Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
18467         * config/mips/mips.c (mips_option_override): Change setting
18468         of TARGET_DSP.
18469         * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
18470         * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
18471         Change from Mask to Var.
18473 2014-01-27  Jeff Law  <law@redhat.com>
18475         * ipa-inline.c (inline_small_functions): Fix typo.
18477 2014-01-27  Ilya Tocar  <ilya.tocar@intel.com>
18479         * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
18480         (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
18481         (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
18482         (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
18483         (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
18484         (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
18485         (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
18486         (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
18487         (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
18488         (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
18489         (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
18490         (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
18491         (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
18492         (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
18493         (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
18494         (_mm512_storeu_epi64): Ditto.
18495         (_mm512_cmpge_epi32_mask): Ditto.
18496         (_mm512_cmpge_epu32_mask): Ditto.
18497         (_mm512_cmpge_epi64_mask): Ditto.
18498         (_mm512_cmpge_epu64_mask): Ditto.
18499         (_mm512_cmple_epi32_mask): Ditto.
18500         (_mm512_cmple_epu32_mask): Ditto.
18501         (_mm512_cmple_epi64_mask): Ditto.
18502         (_mm512_cmple_epu64_mask): Ditto.
18503         (_mm512_cmplt_epi32_mask): Ditto.
18504         (_mm512_cmplt_epu32_mask): Ditto.
18505         (_mm512_cmplt_epi64_mask): Ditto.
18506         (_mm512_cmplt_epu64_mask): Ditto.
18507         (_mm512_cmpneq_epi32_mask): Ditto.
18508         (_mm512_cmpneq_epu32_mask): Ditto.
18509         (_mm512_cmpneq_epi64_mask): Ditto.
18510         (_mm512_cmpneq_epu64_mask): Ditto.
18511         (_mm512_expand_pd): Ditto.
18512         (_mm512_expand_ps): Ditto.
18513         * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
18514         VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
18515         VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
18516         * config/i386/i386.c (ix86_builtins): Add
18517         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
18518         IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
18519         IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
18520         IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
18521         IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
18522         IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
18523         IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
18524         IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
18525         IX86_BUILTIN_PMOVUSQW512_MEM.
18526         (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
18527         __builtin_ia32_pmovsqd512mem_mask,
18528         __builtin_ia32_pmovqd512mem_mask,
18529         __builtin_ia32_pmovusqw512mem_mask,
18530         __builtin_ia32_pmovsqw512mem_mask,
18531         __builtin_ia32_pmovqw512mem_mask,
18532         __builtin_ia32_pmovusdw512mem_mask,
18533         __builtin_ia32_pmovsdw512mem_mask,
18534         __builtin_ia32_pmovdw512mem_mask,
18535         __builtin_ia32_pmovqb512mem_mask,
18536         __builtin_ia32_pmovusqb512mem_mask,
18537         __builtin_ia32_pmovsqb512mem_mask,
18538         __builtin_ia32_pmovusdb512mem_mask,
18539         __builtin_ia32_pmovsdb512mem_mask,
18540         __builtin_ia32_pmovdb512mem_mask.
18541         (bdesc_args): Add __builtin_ia32_expanddf512,
18542         __builtin_ia32_expandsf512.
18543         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
18544         VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
18545         VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
18546         * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
18547         (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
18548         (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
18549         (avx512f_<code>v8div16qi2_mask_store): This.
18550         (avx512f_expand<mode>): New.
18552 2014-01-27  Kirill Yukhin  <kirill.yukhin@intel.com>
18554         * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
18555         New.
18556         (_mm512_mask_prefetch_i64gather_pd): Ditto.
18557         (_mm512_prefetch_i32scatter_pd): Ditto.
18558         (_mm512_mask_prefetch_i32scatter_pd): Ditto.
18559         (_mm512_prefetch_i64scatter_pd): Ditto.
18560         (_mm512_mask_prefetch_i64scatter_pd): Ditto.
18561         (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
18562         (_mm512_mask_prefetch_i64gather_ps): Ditto.
18563         (_mm512_prefetch_i32scatter_ps): Ditto.
18564         (_mm512_mask_prefetch_i32scatter_ps): Ditto.
18565         (_mm512_prefetch_i64scatter_ps): Ditto.
18566         (_mm512_mask_prefetch_i64scatter_ps): Ditto.
18567         * config/i386/i386-builtin-types.def: Define
18568         VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
18569         and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
18570         * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
18571         IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
18572         IX86_BUILTIN_SCATTERPFQPD.
18573         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
18574         __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
18575         __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
18576         __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
18577         __builtin_ia32_scatterpfqps.
18578         (ix86_expand_builtin): Expand new built-ins.
18579         * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
18580         fix memory access data type.
18581         (*avx512pf_gatherpf<mode>_mask): Ditto.
18582         (*avx512pf_gatherpf<mode>): Ditto.
18583         (avx512pf_scatterpf<mode>): Ditto.
18584         (*avx512pf_scatterpf<mode>_mask): Ditto.
18585         (*avx512pf_scatterpf<mode>): Ditto.
18586         (GATHER_SCATTER_SF_MEM_MODE): New.
18587         (avx512pf_gatherpf<mode>df): Ditto.
18588         (*avx512pf_gatherpf<mode>df_mask): Ditto.
18589         (*avx512pf_scatterpf<mode>df): Ditto.
18591 2014-01-27  Jakub Jelinek  <jakub@redhat.com>
18593         PR bootstrap/59934
18594         * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
18595         know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
18596         reached.
18598 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
18600         * common/config/arm/arm-common.c
18601         (arm_rewrite_mcpu): Handle multiple names.
18602         * config/arm/arm.h
18603         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
18605 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
18607         * gimple-builder.h (create_gimple_tmp): Delete.
18609 2014-01-27  Christian Bruel  <christian.bruel@st.com>
18611         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
18612         words comparisons.
18614 2014-01-26  John David Anglin  <danglin@gcc.gnu.org>
18616         * config/pa/pa.md (call): Generate indirect long calls to non-local
18617         functions when outputing 32-bit code.
18618         (call_value): Likewise except for special call to buggy powf function.
18620         * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
18621         portable runtime and PIC indirect calls.
18622         (pa_output_indirect_call): Remove unnecessary nop from portable runtime
18623         and PIC call sequences.  Use ldo instead of blr to set return register
18624         in PIC call sequence.
18626 2014-01-25  Walter Lee  <walt@tilera.com>
18628         * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
18629         avoid clobbering a live register.
18631 2014-01-25  Walter Lee  <walt@tilera.com>
18633         * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
18634         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
18635         * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
18636         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
18638 2014-01-25  Walter Lee  <walt@tilera.com>
18640         * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
18641         arguments on even registers.
18642         (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
18643         STACK_BOUNDARY.
18644         * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
18645         (BIGGEST_ALIGNMENT): Ditto.
18646         (BIGGEST_FIELD_ALIGNMENT): Ditto.
18648 2014-01-25  Walter Lee  <walt@tilera.com>
18650         * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
18651         insns before bundling.
18652         * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
18654 2014-01-25  Walter Lee  <walt@tilera.com>
18656         * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
18657         PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
18658         * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
18660 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
18662         * config/mips/constraints.md (kl): Delete.
18663         * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
18664         define expands, using...
18665         (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
18666         instructions for MIPS16.
18667         (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
18668         non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
18670 2014-01-25  Walter Lee  <walt@tilera.com>
18672         * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
18673         (clzdi2): Ditto.
18674         (ffsdi2): Ditto.
18676 2014-01-25  Walter Lee  <walt@tilera.com>
18678         * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
18679         (TARGET_EXPAND_TO_RTL_HOOK): Define.
18681 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
18683         * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
18684         Handle XOR.
18686 2014-01-25  Jakub Jelinek  <jakub@redhat.com>
18688         * print-rtl.c (in_call_function_usage): New var.
18689         (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
18690         EXPR_LIST mode as mode and not as reg note name.
18692         PR middle-end/59561
18693         * cfgloopmanip.c (copy_loop_info): If
18694         loop->warned_aggressive_loop_optimizations, make sure
18695         the flag is set in target loop too.
18697 2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
18699         * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
18700         flag_cilkplus.
18701         * builtins.def: Likewise.
18702         * cilk.h (fn_contains_cilk_spawn_p): Likewise.
18703         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
18704         * ira.c (ira_setup_eliminable_regset): Likewise.
18705         * omp-low.c (gate_expand_omp): Likewise.
18706         (execute_lower_omp): Likewise.
18707         (diagnose_sb_0): Likewise.
18708         (gate_diagnose_omp_blocks): Likewise.
18709         (simd_clone_clauses_extract): Likewise.
18710         (gate): Likewise.
18712 2014-01-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18714         * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
18715         correction for little endian...
18716         * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
18717         here.
18719 2014-01-24  Jeff Law  <law@redhat.com>
18721         PR tree-optimization/59919
18722         * tree-vrp.c (find_assert_locations_1): Do not register asserts
18723         for non-returning calls.
18725 2014-01-24  James Greenhalgh  <james.greenhalgh@arm.com>
18727         * common/config/aarch64/aarch64-common.c
18728         (aarch64_rewrite_mcpu): Handle multiple names.
18729         * config/aarch64/aarch64.h
18730         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
18732 2014-01-24  Dodji Seketeli  <dodji@redhat.com>
18734         * input.c (add_file_to_cache_tab): Handle the case where fopen
18735         returns NULL.
18737 2014-01-23  H.J. Lu  <hongjiu.lu@intel.com>
18739         PR target/59929
18740         * config/i386/i386.md (pushsf splitter): Get stack adjustment
18741         from push operand if code of push isn't PRE_DEC.
18743 2014-01-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
18745         PR target/59909
18746         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
18747         -mquad-memory-atomic.  Update -mquad-memory documentation to say
18748         it is only used for non-atomic loads/stores.
18750         * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
18751         -mquad-memory or -mquad-memory-atomic switches.
18753         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
18754         -mquad-memory-atomic to ISA 2.07 support.
18756         * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
18757         to separate support of normal quad word memory operations (ldq, stq)
18758         from the atomic quad word memory operations.
18760         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
18761         support to separate non-atomic quad word operations from atomic
18762         quad word operations.  Disable non-atomic quad word operations in
18763         little endian mode so that we don't have to swap words after the
18764         load and before the store.
18765         (quad_load_store_p): Add comment about atomic quad word support.
18766         (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
18767         options printed with -mdebug=reg.
18769         * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
18770         -mquad-memory-atomic as the test for whether we have quad word
18771         atomic instructions.
18772         (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
18773         or -mp8-vector are used, allow byte/half-word atomic operations.
18775         * config/rs6000/sync.md (load_lockedti): Insure that the address
18776         is a proper indexed or indirect address for the lqarx instruction.
18777         On little endian systems, swap the hi/lo registers after the lqarx
18778         instruction.
18779         (load_lockedpti): Use indexed_or_indirect_operand predicate to
18780         insure the address is valid for the lqarx instruction.
18781         (store_conditionalti): Insure that the address is a proper indexed
18782         or indirect address for the stqcrx. instruction.  On little endian
18783         systems, swap the hi/lo registers before doing the stqcrx.
18784         instruction.
18785         (store_conditionalpti): Use indexed_or_indirect_operand predicate to
18786         insure the address is valid for the stqcrx. instruction.
18788         * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
18789         Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
18790         type of quad memory support is available.
18792 2014-01-23  Vladimir Makarov  <vmakarov@redhat.com>
18794         PR regression/59915
18795         * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
18796         there is a danger of looping.
18798 2014-01-23  Pat Haugen  <pthaugen@us.ibm.com>
18800         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
18801         force flag_ira_loop_pressure if set via command line.
18803 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
18805         * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
18806         (ashr_simd): New builtin handling DI mode.
18807         * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
18808         (aarch64_sshr_simddi): New match pattern.
18809         * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
18810         (vshrd_n_s64): Likewise.
18811         * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
18813 2014-01-23  Nick Clifton  <nickc@redhat.com>
18815         * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
18816         (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
18817         favour of mcu specific scripts.
18818         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
18819         430x multilibs.
18821 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
18822             Alex Velenko  <Alex.Velenko@arm.com>
18824         * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
18825         (vaddv_s16): Likewise.
18826         (vaddv_s32): Likewise.
18827         (vaddv_u8): Likewise.
18828         (vaddv_u16): Likewise.
18829         (vaddv_u32): Likewise.
18830         (vaddvq_s8): Likewise.
18831         (vaddvq_s16): Likewise.
18832         (vaddvq_s32): Likewise.
18833         (vaddvq_s64): Likewise.
18834         (vaddvq_u8): Likewise.
18835         (vaddvq_u16): Likewise.
18836         (vaddvq_u32): Likewise.
18837         (vaddvq_u64): Likewise.
18838         (vaddv_f32): Likewise.
18839         (vaddvq_f32): Likewise.
18840         (vaddvq_f64): Likewise.
18841         (vmaxv_f32): Likewise.
18842         (vmaxv_s8): Likewise.
18843         (vmaxv_s16): Likewise.
18844         (vmaxv_s32): Likewise.
18845         (vmaxv_u8): Likewise.
18846         (vmaxv_u16): Likewise.
18847         (vmaxv_u32): Likewise.
18848         (vmaxvq_f32): Likewise.
18849         (vmaxvq_f64): Likewise.
18850         (vmaxvq_s8): Likewise.
18851         (vmaxvq_s16): Likewise.
18852         (vmaxvq_s32): Likewise.
18853         (vmaxvq_u8): Likewise.
18854         (vmaxvq_u16): Likewise.
18855         (vmaxvq_u32): Likewise.
18856         (vmaxnmv_f32): Likewise.
18857         (vmaxnmvq_f32): Likewise.
18858         (vmaxnmvq_f64): Likewise.
18859         (vminv_f32): Likewise.
18860         (vminv_s8): Likewise.
18861         (vminv_s16): Likewise.
18862         (vminv_s32): Likewise.
18863         (vminv_u8): Likewise.
18864         (vminv_u16): Likewise.
18865         (vminv_u32): Likewise.
18866         (vminvq_f32): Likewise.
18867         (vminvq_f64): Likewise.
18868         (vminvq_s8): Likewise.
18869         (vminvq_s16): Likewise.
18870         (vminvq_s32): Likewise.
18871         (vminvq_u8): Likewise.
18872         (vminvq_u16): Likewise.
18873         (vminvq_u32): Likewise.
18874         (vminnmv_f32): Likewise.
18875         (vminnmvq_f32): Likewise.
18876         (vminnmvq_f64): Likewise.
18878 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
18880         * config/aarch64/aarch64-simd.md
18881         (aarch64_dup_lane<mode>): Correct lane number on big-endian.
18882         (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
18883         (*aarch64_mul3_elt<mode>): Likewise.
18884         (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
18885         (*aarch64_mul3_elt_to_64v2df): Likewise.
18886         (*aarch64_mla_elt<mode>): Likewise.
18887         (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
18888         (*aarch64_mls_elt<mode>): Likewise.
18889         (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
18890         (*aarch64_fma4_elt<mode>): Likewise.
18891         (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
18892         (*aarch64_fma4_elt_to_64v2df): Likewise.
18893         (*aarch64_fnma4_elt<mode>): Likewise.
18894         (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
18895         (*aarch64_fnma4_elt_to_64v2df): Likewise.
18896         (aarch64_sq<r>dmulh_lane<mode>): Likewise.
18897         (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
18898         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
18899         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
18900         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
18901         (aarch64_sqdmull_lane<mode>_internal): Likewise.
18902         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
18904 2013-01-23  Alex Velenko  <Alex.Velenko@arm.com>
18906         * config/aarch64/aarch64-simd.md
18907         (aarch64_be_checked_get_lane<mode>): New define_expand.
18908         * config/aarch64/aarch64-simd-builtins.def
18909         (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
18910         New builtin definition.
18911         * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
18912         Use new safe be builtin.
18914 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
18916         * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
18917         New define_insn.
18918         (aarch64_be_st1<mode>): Likewise.
18919         (aarch_ld1<VALL:mode>): Define_expand modified.
18920         (aarch_st1<VALL:mode>): Likewise.
18921         * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
18922         (UNSPEC_ST1): Likewise.
18924 2014-01-23  David Holsgrove  <david.holsgrove@xilinx.com>
18926         * config/microblaze/microblaze.md: Add trap insn and attribute
18928 2014-01-23  Dodji Seketeli  <dodji@redhat.com>
18930         PR preprocessor/58580
18931         * input.h (location_get_source_line): Take an additional line_size
18932         parameter.
18933         (void diagnostics_file_cache_fini): Declare new function.
18934         * input.c (struct fcache): New type.
18935         (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
18936         New static constants.
18937         (diagnostic_file_cache_init, total_lines_num)
18938         (lookup_file_in_cache_tab, evicted_cache_tab_entry)
18939         (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
18940         (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
18941         (get_next_line, read_next_line, goto_next_line, read_line_num):
18942         New static function definitions.
18943         (diagnostic_file_cache_fini): New function.
18944         (location_get_source_line): Take an additional output line_len
18945         parameter.  Re-write using lookup_or_add_file_to_cache_tab and
18946         read_line_num.
18947         * diagnostic.c (diagnostic_finish): Call
18948         diagnostic_file_cache_fini.
18949         (adjust_line): Take an additional input parameter for the length
18950         of the line, rather than calculating it with strlen.
18951         (diagnostic_show_locus): Adjust the use of
18952         location_get_source_line and adjust_line with respect to their new
18953         signature.  While displaying a line now, do not stop at the first
18954         null byte.  Rather, display the zero byte as a space and keep
18955         going until we reach the size of the line.
18956         * Makefile.in: Add vec.o to OBJS-libcommon
18958 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
18959             Ilya Tocar  <ilya.tocar@intel.com>
18961         * config/i386/avx512fintrin.h (_mm512_kmov): New.
18962         * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
18963         (__builtin_ia32_kmov16): Ditto.
18964         * config/i386/i386.md (UNSPEC_KMOV): New.
18965         (kmovw): Ditto.
18967 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
18969         * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
18970         (_mm512_storeu_si512): Ditto.
18972 2014-01-23  Richard Sandiford  <rdsandiford@googlemail.com>
18974         PR target/52125
18975         * rtl.h (get_referenced_operands): Declare.
18976         * recog.c (get_referenced_operands): New function.
18977         * config/mips/mips.c (mips_reorg_process_insns): Check which asm
18978         operands have been referenced when recording LO_SUM references.
18980 2014-01-22  David Holsgrove  <david.holsgrove@xilinx.com>
18982         * config/microblaze/microblaze.md: Correct bswaphi2 insn.
18984 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
18986         * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
18987         Enable for generic and recent AMD targets.
18989 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
18991         * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
18992         ARG_SIZE note when adjustment was eliminated.
18994 2014-01-22  Jeff Law  <law@redhat.com>
18996         PR tree-optimization/59597
18997         * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
18998         in file.  Accept new argument REGISTERING and use it to modify
18999         dump output appropriately.
19000         (register_jump_thread): Corresponding changes.
19001         (mark_threaded_blocks): Reinstate code to cancel unprofitable
19002         thread paths involving joiner blocks.  Add code to dump cancelled
19003         jump threading paths.
19005 2014-01-22  Vladimir Makarov  <vmakarov@redhat.com>
19007         PR rtl-optimization/59477
19008         * lra-constraints.c (inherit_in_ebb): Process call for living hard
19009         regs.  Update reloads_num and potential_reload_hard_regs for all insns.
19011 2014-01-22  Tom Tromey  <tromey@redhat.com>
19013         * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
19014         PARAMS.
19015         * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
19017 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
19019         PR rtl-optimization/59896
19020         * lra-constraints.c (process_alt_operands): Check unused note for
19021         matched operands of insn with no output reloads.
19023 2014-01-21  Richard Sandiford  <rdsandiford@googlemail.com>
19025         * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
19026         (mips_move_from_gpr_cost): Likewise.
19028 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
19030         PR rtl-optimization/59858
19031         * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
19032         ira_class_hard_regs_num.
19033         (process_alt_operands): Increase reject for dying matched operand.
19035 2014-01-21  Jakub Jelinek  <jakub@redhat.com>
19037         PR target/59003
19038         * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
19039         smaller than size, perform several stores or loads and stores
19040         at dst + count - size to store or copy all of size bytes, rather
19041         than just last modesize bytes.
19043 2014-01-20  DJ Delorie  <dj@redhat.com>
19045         * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
19046         that CLOBBERs are REGs before propogating their values.
19048 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
19050         PR middle-end/59789
19051         * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
19052         (cgraph_inline_failed_type): New function.
19053         * cgraph.h (DEFCIFCODE): Add type.
19054         (cgraph_inline_failed_type_t): New enum.
19055         (cgraph_inline_failed_type): New prototype.
19056         * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
19057         FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
19058         FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
19059         LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
19060         MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
19061         RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
19062         OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
19063         INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
19064         Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
19065         FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
19066         EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
19067         OPTIMIZATION_MISMATCH.
19068         * tree-inline.c (expand_call_inline): Emit errors during
19069         early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
19071 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
19073         PR target/59685
19074         * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
19075         mode attribute in insn output.
19077 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
19079         * output.h (output_constant): Delete.
19080         * varasm.c (output_constant): Make private.
19082 2014-01-20  Alex Velenko  <Alex.Velenko@arm.com>
19084         * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
19086 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
19088         PR middle-end/59860
19089         * tree.h (fold_builtin_strcat): New prototype.
19090         * builtins.c (fold_builtin_strcat): No longer static.  Add len
19091         argument, if non-NULL, don't call c_strlen.  Optimize
19092         directly into __builtin_memcpy instead of __builtin_strcpy.
19093         (fold_builtin_2): Adjust fold_builtin_strcat caller.
19094         * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
19096 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
19098         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
19099         for SImode_address_operand operands, having only a REG argument.
19101 2014-01-20  Marcus Shawcroft  <marcus.shawcroft@arm.com>
19103         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
19104         loader name using mbig-endian.
19105         (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
19107 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
19109         * doc/invoke.texi (-march): Clarify documentation for AArch64.
19110         (-mtune): Likewise.
19111         (-mcpu): Likewise.
19113 2014-01-20  Tejas Belagod  <tejas.belagod@arm.com>
19115         * config/aarch64/aarch64-protos.h
19116         (aarch64_cannot_change_mode_class_ptr): Declare.
19117         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
19118         aarch64_cannot_change_mode_class_ptr): New.
19119         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
19120         backend hook aarch64_cannot_change_mode_class.
19122 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
19124         * common/config/aarch64/aarch64-common.c
19125         (aarch64_handle_option): Don't handle any option order logic here.
19126         * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
19127         selected_cpu, warn on architecture version mismatch.
19128         (aarch64_override_options): Fix parsing order for option strings.
19130 2014-01-20  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
19131             Iain Sandoe  <iain@codesourcery.com>
19133         PR bootstrap/59496
19134         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
19135         warning.  Amend comment to reflect current functionality.
19137 2014-01-20  Richard Biener  <rguenther@suse.de>
19139         PR middle-end/59860
19140         * builtins.c (fold_builtin_strcat): Remove case better handled
19141         by tree-ssa-strlen.c.
19143 2014-01-20  Alan Lawrence  <alan.lawrence@arm.com>
19145         * config/aarch64/aarch64.opt
19146         (mcpu, march, mtune): Make case-insensitive.
19148 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
19150         PR target/59880
19151         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
19152         if operands[1] is a REG or ZERO_EXTEND of a REG.
19154 2014-01-19  Jan Hubicka  <hubicka@ucw.cz>
19156         * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
19158 2014-01-19  John David Anglin  <danglin@gcc.gnu.org>
19160         * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
19161         long non-pic millicode calls.
19163 2014-01-19  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
19165         * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
19167 2014-01-19  Kito Cheng  <kito@0xlab.org>
19169         * builtins.c (expand_movstr): Check movstr expand done or fail.
19171 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
19172             H.J. Lu  <hongjiu.lu@intel.com>
19174         PR target/59379
19175         * config/i386/i386.md (*lea<mode>): Zero-extend return register
19176         to DImode for zero-extended addresses.
19178 2014-01-19  Jakub Jelinek  <jakub@redhat.com>
19180         PR rtl-optimization/57763
19181         * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
19182         on the new indirect jump_insn and increment LABEL_NUSES (label).
19184 2014-01-18  H.J. Lu  <hongjiu.lu@intel.com>
19186         PR bootstrap/59580
19187         PR bootstrap/59583
19188         * config.gcc (x86_archs): New variable.
19189         (x86_64_archs): Likewise.
19190         (x86_cpus): Likewise.
19191         Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
19192         --with-arch/--with-cpu= options.
19193         Support --with-arch=/--with-cpu={nehalem,westmere,
19194         sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
19196 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
19198         * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
19199         and PROCESSOR_ATHLON to simplify code.  Move "memory" calculation.
19201 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
19203         * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
19205 2014-01-18  Jakub Jelinek  <jakub@redhat.com>
19207         PR target/58944
19208         * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
19209         clear cpp_get_options (parse_in)->warn_unused_macros for
19210         ix86_target_macros_internal with cpp_define.
19212 2014-01-18  Richard Sandiford  <rdsandiford@googlemail.com>
19214         * jump.c (delete_related_insns): Keep (use (insn))s.
19215         * reorg.c (redundant_insn): Check for barriers too.
19217 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
19219         * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
19221 2014-01-17  John David Anglin  <danglin@gcc.gnu.org>
19223         * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
19224         call to $$dyncall when TARGET_LONG_CALLS is true.
19226 2014-01-17  Jeff Law  <law@redhat.com>
19228         * ree.c (combine_set_extension): Temporarily disable test for
19229         changing number of hard registers.
19231 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
19233         PR middle-end/58125
19234         * ipa-inline-analysis.c (inline_free_summary):
19235         Do not free summary of aliases.
19237 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
19239         PR middle-end/59706
19240         * gimplify.c (gimplify_expr): Use create_tmp_var
19241         instead of create_tmp_var_raw.  If cond doesn't have
19242         integral type, don't add the IFN_ANNOTATE builtin at all.
19244 2014-01-17  Martin Jambor  <mjambor@suse.cz>
19246         PR ipa/59736
19247         * ipa-cp.c (prev_edge_clone): New variable.
19248         (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
19249         Also resize prev_edge_clone vector.
19250         (ipcp_edge_duplication_hook): Also update prev_edge_clone.
19251         (ipcp_edge_removal_hook): New function.
19252         (ipcp_driver): Register ipcp_edge_removal_hook.
19254 2014-01-17  Andrew Pinski  <apinski@cavium.com>
19255             Steve Ellcey  <sellcey@mips.com>
19257         PR target/59462
19258         * config/mips/mips.c (mips_print_operand): Check operand mode instead
19259         of operator mode.
19261 2014-01-17  Jeff Law  <law@redhat.com>
19263         PR middle-end/57904
19264         * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
19265         so that pass_ccp runs first.
19267 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
19269         * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
19270         (ix86_adjust_cost): Use !TARGET_XXX.
19271         (do_reorder_for_imul): Likewise.
19272         (swap_top_of_ready_list): Likewise.
19273         (ix86_sched_reorder): Likewise.
19275 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
19277         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
19278         PROCESSOR_INTEL.  Treat like PROCESSOR_GENERIC.
19279         * config/i386/i386.c (intel_memcpy): New.  Duplicate slm_memcpy.
19280         (intel_memset): New.  Duplicate slm_memset.
19281         (intel_cost): New.  Duplicate slm_cost.
19282         (m_INTEL): New macro.
19283         (processor_target_table): Add "intel".
19284         (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
19285         with PROCESSOR_INTEL for "intel".
19286         (ix86_lea_outperforms): Support PROCESSOR_INTEL.  Duplicate
19287         PROCESSOR_SILVERMONT.
19288         (ix86_issue_rate): Likewise.
19289         (ix86_adjust_cost): Likewise.
19290         (ia32_multipass_dfa_lookahead): Likewise.
19291         (swap_top_of_ready_list): Likewise.
19292         (ix86_sched_reorder): Likewise.
19293         (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
19294         instead of TARGET_OPT_AGU.
19295         * config/i386/i386.h (TARGET_INTEL): New.
19296         (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
19297         (processor_type): Add PROCESSOR_INTEL.
19298         * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
19299         Add X86_TUNE_AVOID_LEA_FOR_ADDR.
19301 2014-01-17  Marek Polacek  <polacek@redhat.com>
19303         PR c/58346
19304         * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
19305         size is zero.
19307 2014-01-17  Richard Biener  <rguenther@suse.de>
19309         PR tree-optimization/46590
19310         * opts.c (default_options_table): Add entries for
19311         OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
19312         all enabled at -O1 but not for -Og.
19313         * common.opt (fbranch-count-reg): Remove Init(1).
19314         (fmove-loop-invariants): Likewise.
19315         (ftree-pta): Likewise.
19317 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
19319         * config/i386/i386.c (ix86_data_alignment): For compatibility with
19320         (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
19321         decls to at least the GCC 4.8 used alignments.
19323         PR fortran/59440
19324         * tree-nested.c (convert_nonlocal_reference_stmt,
19325         convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
19326         of GIMPLE_BIND stmts, adjust associated decls.
19328 2014-01-17  Richard Biener  <rguenther@suse.de>
19330         PR tree-optimization/46590
19331         * vec.h (vec<>::bseach): New member function implementing
19332         binary search according to C89 bsearch.
19333         (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
19334         * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
19335         bitmap pointer again.  Make accesses_in_loop a flat array.
19336         (mem_ref_obstack): New global.
19337         (outermost_indep_loop): Adjust for mem_ref->stored changes.
19338         (mark_ref_stored): Likewise.
19339         (ref_indep_loop_p_2): Likewise.
19340         (set_ref_stored_in_loop): New helper function.
19341         (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
19342         (memref_free): Adjust.
19343         (record_mem_ref_loc): Simplify.
19344         (gather_mem_refs_stmt): Adjust.
19345         (sort_locs_in_loop_postorder_cmp): New function.
19346         (analyze_memory_references): Sort accesses_in_loop after
19347         loop postorder number.
19348         (find_ref_loc_in_loop_cmp): New function.
19349         (for_all_locs_in_loop): Find relevant cluster of locs in
19350         accesses_in_loop and iterate without recursion.
19351         (execute_sm): Avoid uninit warning.
19352         (struct ref_always_accessed): Simplify.
19353         (ref_always_accessed::operator ()): Likewise.
19354         (ref_always_accessed_p): Likewise.
19355         (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
19356         loop postorder numbers here.
19357         (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
19358         numbers.
19360 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
19362         PR c++/57945
19363         * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
19364         on decls for which assemble_alias has been called.
19366 2014-01-17  Nick Clifton  <nickc@redhat.com>
19368         * config/msp430/msp430.opt: (mcpu): New option.
19369         * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
19370         (msp430_option_override): Parse target_cpu.  If the MCU name
19371         matches a generic string, clear target_mcu.
19372         (msp430_attr): Allow numeric interrupt values up to 63.
19373         (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
19374         * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
19375         option.
19376         * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
19377         Add mcpu matches.
19378         * config/msp430/msp430.md (popm): Use %J rather than %I.
19379         (addsi3): Use msp430_nonimmediate_operand for operand 2.
19380         (addhi_cy_i): Use immediate_operand for operand 2.
19381         * doc/invoke.texi: Document -mcpu option.
19383 2014-01-17  Richard Biener  <rguenther@suse.de>
19385         PR rtl-optimization/38518
19386         * df.h (df_analyze_loop): Declare.
19387         * df-core.c: Include cfgloop.h.
19388         (df_analyze_1): Split out main part of df_analyze.
19389         (df_analyze): Adjust.
19390         (loop_inverted_post_order_compute): New function.
19391         (loop_post_order_compute): Likewise.
19392         (df_analyze_loop): New function avoiding whole-function
19393         postorder computes.
19394         * loop-invariant.c (find_defs): Use df_analyze_loop.
19395         (find_invariants): Adjust.
19396         * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
19398 2014-01-17  Zhenqiang Chen  <zhenqiang.chen@arm.com>
19400         * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
19401         (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
19403 2014-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
19405         * ipa-ref.c (ipa_remove_stmt_references): Fix references
19406         traversal when removing references.
19408 2014-01-16  Jan Hubicka  <hubicka@ucw.cz>
19410         PR ipa/59775
19411         * tree.c (get_binfo_at_offset): Look harder for virtual bases.
19413 2014-01-16  Bernd Schmidt  <bernds@codesourcery.com>
19415         PR middle-end/56791
19416         * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
19417         pushing a reload for an autoinc when we had previously reloaded an
19418         inner part of the address.
19420 2014-01-16  Jakub Jelinek  <jakub@redhat.com>
19422         * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
19423         field.
19424         (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
19425         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
19426         when not giving up or versioning for alias only because of
19427         loop->safelen.
19428         (vect_analyze_data_ref_dependences): Set to true.
19429         * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
19430         is a GIMPLE_PHI.
19431         (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
19432         LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
19433         to the condition.
19435         PR middle-end/58344
19436         * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
19438         PR target/59839
19439         * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
19440         operand 0 predicate for gathers, use a new pseudo as subtarget.
19442 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
19444         PR middle-end/59609
19445         * lra-constraints.c (process_alt_operands): Add printing debug info.
19446         Check absence of input/output reloads for matched operands too.
19448 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
19450         PR rtl-optimization/59835
19451         * ira.c (ira_init_register_move_cost): Increase cost for
19452         impossible modes.
19454 2014-01-16  Alan Lawrence  <alan.lawrence@arm.com>
19456         * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
19458 2014-01-16  Richard Earnshaw  <rearnsha@arm.com>
19460         PR target/59780
19461         * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
19462         non-register objects.  Use gen_(high/low)part more consistently.
19463         Fix assertions.
19465 2014-01-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
19467         PR target/59844
19468         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
19469         endian support, remove tests for WORDS_BIG_ENDIAN.
19470         (p8_mfvsrd_3_<mode>): Likewise.
19471         (reload_gpr_from_vsx<mode>): Likewise.
19472         (reload_gpr_from_vsxsf): Likewise.
19473         (p8_mfvsrd_4_disf): Likewise.
19475 2014-01-16  Richard Biener  <rguenther@suse.de>
19477         PR rtl-optimization/46590
19478         * lcm.c (compute_antinout_edge): Use postorder iteration.
19479         (compute_laterin): Use inverted postorder iteration.
19481 2014-01-16  Nick Clifton  <nickc@redhat.com>
19483         PR middle-end/28865
19484         * varasm.c (output_constant): Return the number of bytes actually
19485         emitted.
19486         (output_constructor_array_range): Update the field size with the
19487         number of bytes emitted by output_constant.
19488         (output_constructor_regular_field): Likewise.  Also do not
19489         complain if the total number of bytes emitted is now greater
19490         than the expected fieldpos.
19491         * output.h (output_constant): Update prototype and descriptive comment.
19493 2014-01-16  Marek Polacek  <polacek@redhat.com>
19495         PR middle-end/59827
19496         * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
19497         it is error_mark_node.
19499 2014-01-15  Uros Bizjak  <ubizjak@gmail.com>
19501         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
19502         VALID_AVX256_REG_OR_OI_MODE.
19504 2014-01-15  Pat Haugen  <pthaugen@us.ibm.com>
19506         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
19507         current procedure should be profiled.
19509 2014-01-15  Andrew Pinski  <apinski@cavium.com>
19511         * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
19512         of moving from/to the STACK_REG register class.
19514 2014-01-15  Richard Henderson  <rth@redhat.com>
19516         PR debug/54694
19517         * reginfo.c (global_regs_decl): Globalize.
19518         * rtl.h (global_regs_decl): Declare.
19519         * ira.c (do_reload): Diagnose frame_pointer_needed and it
19520         reserved via global_regs.
19522 2014-01-15  Teresa Johnson  <tejohnson@google.com>
19524         * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
19526 2014-01-15  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
19528         * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
19529         and vmulosh rather than call gen_vec_widen_smult_*.
19530         (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
19531         than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
19532         (vec_widen_smult_even_v16qi): Likewise.
19533         (vec_widen_umult_even_v8hi): Likewise.
19534         (vec_widen_smult_even_v8hi): Likewise.
19535         (vec_widen_umult_odd_v16qi): Likewise.
19536         (vec_widen_smult_odd_v16qi): Likewise.
19537         (vec_widen_umult_odd_v8hi): Likewise.
19538         (vec_widen_smult_odd_v8hi): Likewise.
19539         (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
19540         vmuloub rather than call gen_vec_widen_umult_*.
19541         (vec_widen_umult_lo_v16qi): Likewise.
19542         (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
19543         vmulosb rather than call gen_vec_widen_smult_*.
19544         (vec_widen_smult_lo_v16qi): Likewise.
19545         (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
19546         rather than call gen_vec_widen_umult_*.
19547         (vec_widen_umult_lo_v8hi): Likewise.
19548         (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
19549         rather than call gen_vec_widen_smult_*.
19550         (vec_widen_smult_lo_v8hi): Likewise.
19552 2014-01-15  Jeff Law  <law@redhat.com>
19554         PR tree-optimization/59747
19555         * ree.c (find_and_remove_re): Properly handle case where a second
19556         eliminated extension requires widening a copy created for elimination
19557         of a prior extension.
19558         (combine_set_extension): Ensure that the number of hard regs needed
19559         for a destination register does not change when we widen it.
19561 2014-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
19563         * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
19564         (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
19565         (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
19566         (arm*-*-rtems*): Use t-rtems from existing tmake_file.
19567         (avr-*-rtems*): Likewise.
19568         (bfin*-rtems*): Likewise.
19569         (moxie-*-rtems*): Likewise.
19570         (h8300-*-rtems*): Likewise.
19571         (i[34567]86-*-rtems*): Likewise.
19572         (lm32-*-rtems*): Likewise.
19573         (m32r-*-rtems*): Likewise.
19574         (m68k-*-rtems*): Likewise.
19575         (microblaze*-*-rtems*): Likewise.
19576         (mips*-*-rtems*): Likewise.
19577         (powerpc-*-rtems*): Likewise.
19578         (sh-*-rtems*): Likewise.
19579         (sparc-*-rtems*): Likewise.
19580         (sparc64-*-rtems*): Likewise.
19581         (v850-*-rtems*): Likewise.
19582         (m32c-*-rtems*): Likewise.
19584 2014-01-15  Vladimir Makarov  <vmakarov@redhat.com>
19586         PR rtl-optimization/59511
19587         * ira.c (ira_init_register_move_cost): Use memory costs for some
19588         cases of register move cost calculations.
19589         * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
19590         instead of BB frequency.
19591         * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
19592         * lra-assigns.c (find_hard_regno_for): Ditto.
19594 2014-01-15  Richard Biener  <rguenther@suse.de>
19596         PR tree-optimization/59822
19597         * tree-vect-stmts.c (hoist_defs_of_uses): New function.
19598         (vectorizable_load): Use it to hoist defs of uses of invariant
19599         loads out of the loop.
19601 2014-01-15  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
19602             Kugan Vivekanandarajah  <kuganv@linaro.org>
19604         PR target/59695
19605         * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
19606         truncation.
19608 2014-01-15  Richard Biener  <rguenther@suse.de>
19610         PR rtl-optimization/59802
19611         * lcm.c (compute_available): Use inverted postorder to seed
19612         the initial worklist.
19614 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19616         PR target/59803
19617         * config/s390/s390.c (s390_preferred_reload_class): Don't return
19618         ADDR_REGS for invalid symrefs in non-PIC code.
19620 2014-01-15  Jakub Jelinek  <jakub@redhat.com>
19622         PR other/58712
19623         * builtins.c (determine_block_size): Initialize *probable_max_size
19624         even if len_rtx is CONST_INT.
19626 2014-01-14  Andrew Pinski  <apinski@cavium.com>
19628         * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
19629         * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
19630         (cortexa53_tunings): Likewise.
19631         (aarch64_sched_issue_rate): New function.
19632         (TARGET_SCHED_ISSUE_RATE): Define.
19634 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
19636         * ira-costs.c (find_costs_and_classes): Add missed
19637         ira_init_register_move_cost_if_necessary.
19639 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
19641         PR target/59787
19642         * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
19644 2014-01-14  H.J. Lu  <hongjiu.lu@intel.com>
19646         PR target/59794
19647         * config/i386/i386.c (type_natural_mode): Add a bool parameter
19648         to indicate if type is used for function return value.  Warn ABI
19649         change if the vector mode isn't available for function return value.
19650         (ix86_function_arg_advance): Pass false to type_natural_mode.
19651         (ix86_function_arg): Likewise.
19652         (ix86_gimplify_va_arg): Likewise.
19653         (function_arg_32): Don't warn ABI change.
19654         (ix86_function_value): Pass true to type_natural_mode.
19655         (ix86_return_in_memory): Likewise.
19656         (ix86_struct_value_rtx): Removed.
19657         (TARGET_STRUCT_VALUE_RTX): Likewise.
19659 2014-01-14  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
19661         * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
19662         converting a conditional jump into a conditional return.
19664 2014-01-14  Richard Biener  <rguenther@suse.de>
19666         PR tree-optimization/58921
19667         PR tree-optimization/59006
19668         * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
19669         hoisting invariant stmts.
19670         * tree-vect-stmts.c (vectorizable_load): Insert the splat of
19671         invariant loads on the preheader edge if possible.
19673 2014-01-14  Joey Ye  <joey.ye@arm.com>
19675         * doc/plugin.texi (Building GCC plugins): Update to C++.
19677 2014-01-14  Kirill Yukhin  <kirill.yukhin@intel.com>
19679         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
19680         (_mm_rcp28_round_ss): Ditto.
19681         (_mm_rsqrt28_round_sd): Ditto.
19682         (_mm_rsqrt28_round_ss): Ditto.
19683         (_mm_rcp28_sd): Ditto.
19684         (_mm_rcp28_ss): Ditto.
19685         (_mm_rsqrt28_sd): Ditto.
19686         (_mm_rsqrt28_ss): Ditto.
19687         * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
19688         * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
19689         * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
19690         (IX86_BUILTIN_RCP28SD): Ditto.
19691         (IX86_BUILTIN_RCP28SS): Ditto.
19692         (IX86_BUILTIN_RSQRT28SD): Ditto.
19693         (IX86_BUILTIN_RSQRT28SS): Ditto.
19694         (bdesc_special_args): Define __builtin_ia32_movntdqa512,
19695         __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
19696         __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
19697         (ix86_expand_special_args_builtin): Expand new FTYPE.
19698         * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
19699         (srcp14<mode>): Make insn unary.
19700         (avx512f_vmscalef<mode><round_name>): Use substed predicate.
19701         (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
19702         (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
19703         (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
19704         (avx512er_exp2<mode><mask_name><round_saeonly_name>):
19705         Fix rounding: make it SAE only.
19706         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
19707         Ditto.
19708         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
19709         Ditto.
19710         (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
19711         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
19712         (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
19713         * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
19714         (round_saeonly_mask_scalar_operand4): Ditto.
19715         (round_saeonly_mask_scalar_op3): Ditto.
19716         (round_saeonly_mask_scalar_op4): Ditto.
19718 2014-01-13  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19720         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
19721         Implement -maltivec=be for vec_insert and vec_extract.
19723 2014-01-10  DJ Delorie  <dj@redhat.com>
19725         * config/msp430/msp430.md (call_internal): Don't allow memory
19726         references with SP as the base register.
19727         (call_value_internal): Likewise.
19728         * config/msp430/constraints.md (Yc): New.  For memory references
19729         that don't use SP as a base register.
19731         * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
19732         "an integer without a # prefix"
19733         * config/msp430/msp430.md (epilogue_helper): Use it.
19735 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
19737         PR target/59617
19738         * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
19739         AVX512F gather builtins.
19740         * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
19741         on gather decls with INTEGER_TYPE masktype.
19742         (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
19743         directly into the builtin rather than hoisting it before loop.
19745         PR tree-optimization/59387
19746         * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
19747         (scev_const_prop): If folded_casts and type has undefined overflow,
19748         use force_gimple_operand instead of force_gimple_operand_gsi and
19749         for each added stmt if it is assign with
19750         arith_code_with_undefined_signed_overflow, call
19751         rewrite_to_defined_overflow.
19752         * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
19753         gimple-fold.h instead.
19754         (arith_code_with_undefined_signed_overflow,
19755         rewrite_to_defined_overflow): Moved to ...
19756         * gimple-fold.c (arith_code_with_undefined_signed_overflow,
19757         rewrite_to_defined_overflow): ... here.  No longer static.
19758         Include gimplify-me.h.
19759         * gimple-fold.h (arith_code_with_undefined_signed_overflow,
19760         rewrite_to_defined_overflow): New prototypes.
19762 2014-01-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19764         * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
19766 2014-01-13  Eric Botcazou  <ebotcazou@adacore.com>
19768         * builtins.c (get_object_alignment_2): Minor tweak.
19769         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
19771 2014-01-13  Christian Bruel  <christian.bruel@st.com>
19773         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
19774         optimized non constant lengths.
19776 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
19778         PR libgomp/59194
19779         * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
19780         load as __atomic_load_N if possible.
19782 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
19784         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
19785         target parameter.
19786         (rs6000_expand_builtin): Adjust call.
19788 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
19790         PR target/58115
19791         * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
19792         * config/rs6000/rs6000.c: Include target-globals.h.
19793         (rs6000_set_current_function): Instead of doing target_reinit
19794         unconditionally, use save_target_globals_default_opts and
19795         restore_target_globals.
19797         * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
19798         FPSCR.
19799         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
19800         (rs6000_expand_builtin): Handle mffs and mtfsf.
19801         (rs6000_init_builtins): Define mffs and mtfsf.
19802         * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
19803         (rs6000_mffs): New pattern.
19804         (rs6000_mtfsf): New pattern.
19806 2014-01-11  Bin Cheng  <bin.cheng@arm.com>
19808         * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
19809         Start narrowing with START.  Apply candidate-use pair
19810         and check overall cost in narrowing.
19811         (iv_ca_prune): Pass new argument.
19813 2014-01-10  Jeff Law  <law@redhat.com>
19815         PR middle-end/59743
19816         * ree.c (combine_reaching_defs): Ensure the defining statement
19817         occurs before the extension when optimizing extensions with
19818         different source and destination hard registers.
19820 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
19822         PR ipa/58585
19823         * ipa-devirt.c (build_type_inheritance_graph): Also add types of
19824         vtables into the type inheritance graph.
19826 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
19828         PR rtl-optimization/59754
19829         * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
19830         modes in the REGNO != REGNO case.
19832 2014-01-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19834         * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
19836 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
19838         PR tree-optimization/59745
19839         * tree-predcom.c (tree_predictive_commoning_loop): Call
19840         free_affine_expand_cache if giving up because components is NULL.
19842         * target-globals.c (save_target_globals): Allocate < 4KB structs using
19843         GC in payload of target_globals struct instead of allocating them on
19844         the heap and the larger structs separately using GC.
19845         * target-globals.h (struct target_globals): Make regs, hard_regs,
19846         reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
19847         of GTY((skip)) and change type to void *.
19848         (reset_target_globals): Cast loads from those fields to corresponding
19849         types.
19851 2014-01-10  Steve Ellcey  <sellcey@mips.com>
19853         PR plugins/59335
19854         * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
19855         gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
19856         tree-ssanames.h, print-tree.h, varasm.h, and context.h.
19858 2014-01-10  Richard Earnshaw  <rearnsha@arm.com>
19860         PR target/59744
19861         * aarch64-modes.def (CC_Zmode): New flags mode.
19862         * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
19863         represents an equality.
19864         (aarch64_get_condition_code): Handle CC_Zmode.
19865         * aarch64.md (compare_neg<mode>): Restrict to equality operations.
19867 2014-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19869         * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
19870         extraction in good case.
19872 2014-01-10  Richard Biener  <rguenther@suse.de>
19874         PR tree-optimization/59374
19875         * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
19876         checking after SLP discovery.  Mark stmts not participating
19877         in any SLP instance properly.
19879 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19881         * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
19882         when handling a SET rtx.
19884 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19886         * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
19887         (cortex-a57): Likewise.
19888         (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
19890 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19892         * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
19893         non-iwmmxt builtins.
19895 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
19897         PR ipa/58252
19898         PR ipa/59226
19899         * ipa-devirt.c record_target_from_binfo): Take as argument
19900         stack of binfos and lookup matching one for virtual inheritance.
19901         (possible_polymorphic_call_targets_1): Update.
19903 2014-01-10  Huacai Chen  <chenhc@lemote.com>
19905         * config/mips/driver-native.c (host_detect_local_cpu): Handle new
19906         kernel strings for Loongson-2E/2F/3A.
19908 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
19910         PR middle-end/59670
19911         * tree-vect-data-refs.c (vect_analyze_data_refs): Check
19912         is_gimple_call before calling gimple_call_internal_p.
19914 2014-01-09  Steve Ellcey  <sellcey@mips.com>
19916         * Makefile.in (TREE_FLOW_H): Remove.
19917         (TREE_SSA_H): Add file names from tree-flow.h.
19918         * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
19919         * tree.h: Remove tree-flow.h reference.
19920         * hash-table.h: Remove tree-flow.h reference.
19921         * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
19922         reference with tree-ssa-loop.h.
19924 2014-01-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19926         * doc/invoke.texi: Add -maltivec={be,le} options, and document
19927         default element-order behavior for -maltivec.
19928         * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
19929         * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
19930         that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
19931         when targeting big endian, at least for now.
19932         * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
19934 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
19936         PR middle-end/47735
19937         * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
19938         var satisfies use_register_for_decl, just take into account type
19939         alignment, rather than decl alignment.
19941         PR tree-optimization/59622
19942         * gimple-fold.c (gimple_fold_call): Fix a typo in message.  For
19943         __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
19944         __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
19945         Don't devirtualize for inplace at all.  For targets.length () == 1,
19946         if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
19948 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
19950         * config/i386/i386.md (cpu): Remove the unused btver1.
19952 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
19954         * gdbasan.in: Put a breakpoint on __sanitizer::Report.
19956 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
19958         PR target/58115
19959         * tree-core.h (struct target_globals): New forward declaration.
19960         (struct tree_target_option): Add globals field.
19961         * tree.h (TREE_TARGET_GLOBALS): Define.
19962         (prepare_target_option_nodes_for_pch): New prototype.
19963         * target-globals.h (struct target_globals): Define even if
19964         !SWITCHABLE_TARGET.
19965         * tree.c (prepare_target_option_node_for_pch,
19966         prepare_target_option_nodes_for_pch): New functions.
19967         * config/i386/i386.h (SWITCHABLE_TARGET): Define.
19968         * config/i386/i386.c: Include target-globals.h.
19969         (ix86_set_current_function): Instead of doing target_reinit
19970         unconditionally, use save_target_globals_default_opts and
19971         restore_target_globals.
19973 2014-01-09  Richard Biener  <rguenther@suse.de>
19975         PR tree-optimization/59715
19976         * tree-cfg.h (split_critical_edges): Declare.
19977         * tree-cfg.c (split_critical_edges): Export.
19978         * tree-ssa-sink.c (execute_sink_code): Split critical edges.
19980 2014-01-09  Max Ostapenko  <m.ostapenko@partner.samsung.com>
19982         * cfgexpand.c (expand_stack_vars): Optionally disable
19983         asan stack protection.
19984         (expand_used_vars): Likewise.
19985         (partition_stack_vars): Likewise.
19986         * asan.c (asan_emit_stack_protection): Optionally disable
19987         after return stack usage.
19988         (instrument_derefs): Optionally disable memory access instrumentation.
19989         (instrument_builtin_call): Likewise.
19990         (instrument_strlen_call): Likewise.
19991         (asan_protect_global): Optionally disable global variables protection.
19992         * doc/invoke.texi: Added doc for new options.
19993         * params.def: Added new options.
19994         * params.h: Likewise.
19996 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
19998         PR rtl-optimization/59724
19999         * ifcvt.c (cond_exec_process_if_block): Don't call
20000         flow_find_head_matching_sequence with 0 longest_match.
20001         * cfgcleanup.c (flow_find_head_matching_sequence): Count even
20002         non-active insns if !stop_after.
20003         (try_head_merge_bb): Revert 2014-01-07 changes.
20005 2014-01-08  Jeff Law  <law@redhat.com>
20007         * ree.c (get_sub_rtx): New function, extracted from...
20008         (merge_def_and_ext): Here.
20009         (combine_reaching_defs): Use get_sub_rtx.
20011 2014-01-08  Eric Botcazou  <ebotcazou@adacore.com>
20013         * cgraph.h (varpool_variable_node): Do not choke on null node.
20015 2014-01-08  Catherine Moore  <clm@codesourcery.com>
20017         * config/mips/mips.md (simple_return): Attempt to use JRC
20018         for microMIPS.
20019         * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
20021 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
20023         PR rtl-optimization/59137
20024         * reorg.c (steal_delay_list_from_target): Call update_block for
20025         elided insns.
20026         (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
20028 2014-01-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20030         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
20031         two duplicate entries.
20033 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
20035         Revert:
20036         2012-10-07  Richard Sandiford  <rdsandiford@googlemail.com>
20038         * config/mips/mips.c (mips_truncated_op_cost): New function.
20039         (mips_rtx_costs): Adjust test for BADDU.
20040         * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
20042         2012-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
20044         * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
20045         (*baddu_si): ...this new pattern.
20047 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
20049         PR ipa/59722
20050         * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
20052 2014-01-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>
20054         PR middle-end/57748
20055         * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
20056         inner_reference_p.
20057         (expand_expr, expand_normal): Adjust.
20058         * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
20059         inner_reference_p. Use inner_reference_p to expand inner references.
20060         (store_expr): Adjust.
20061         * cfgexpand.c (expand_call_stmt): Adjust.
20063 2014-01-08  Rong Xu  <xur@google.com>
20065         * gcov-io.c (gcov_var): Move from gcov-io.h.
20066         (gcov_position): Ditto.
20067         (gcov_is_error): Ditto.
20068         (gcov_rewrite): Ditto.
20069         * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
20070         only part to libgcc/libgcov.h.
20072 2014-01-08  Marek Polacek  <polacek@redhat.com>
20074         PR middle-end/59669
20075         * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
20077 2014-01-08  Marek Polacek  <polacek@redhat.com>
20079         PR sanitizer/59667
20080         * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
20082 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
20084         PR rtl-optimization/59649
20085         * stor-layout.c (get_mode_bounds): For BImode return
20086         0 and STORE_FLAG_VALUE.
20088 2014-01-08  Richard Biener  <rguenther@suse.de>
20090         PR middle-end/59630
20091         * gimple.h (is_gimple_builtin_call): Remove.
20092         (gimple_builtin_call_types_compatible_p): New.
20093         (gimple_call_builtin_p): New overload.
20094         * gimple.c (is_gimple_builtin_call): Remove.
20095         (validate_call): Rename to ...
20096         (gimple_builtin_call_types_compatible_p): ... this and export.  Also
20097         check return types.
20098         (validate_type): New static function.
20099         (gimple_call_builtin_p): New overload and adjust.
20100         * gimple-fold.c (gimple_fold_builtin): Fold the return value.
20101         (gimple_fold_call): Likewise.  Use gimple_call_builtin_p.
20102         (gimple_fold_stmt_to_constant_1): Likewise.
20103         * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
20105 2014-01-08  Richard Biener  <rguenther@suse.de>
20107         PR middle-end/59471
20108         * gimplify.c (gimplify_expr): Gimplify register-register type
20109         VIEW_CONVERT_EXPRs to separate stmts.
20111 2014-01-07  Jeff Law  <law@redhat.com>
20113         PR middle-end/53623
20114         * ree.c (combine_set_extension): Handle case where source
20115         and destination registers in an extension insn are different.
20116         (combine_reaching_defs): Allow source and destination registers
20117         in extension to be different under limited circumstances.
20118         (add_removable_extension): Remove restriction that the
20119         source and destination registers in the extension are the same.
20120         (find_and_remove_re): Emit a copy from the extension's
20121         destination to its source after the defining insn if
20122         the source and destination registers are different.
20124         PR middle-end/59285
20125         * ifcvt.c (merge_if_block): If we are merging a block with more than
20126         one successor with a block with no successors, remove any BARRIER
20127         after the second block.
20129 2014-01-07  Dan Xio Qiang  <ziyan01@163.com>
20131         * hw-doloop.c (reorg_loops): Release the bitmap obstack.
20133 2014-01-07  John David Anglin  <danglin@gcc.gnu.org>
20135         PR target/59652
20136         * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
20137         for 14-bit register offsets when INT14_OK_STRICT is false.
20139 2014-01-07  Roland Stigge  <stigge@antcom.de>
20140             Michael Meissner  <meissner@linux.vnet.ibm.com>
20142         PR 57386/target
20143         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
20144         Only check TFmode for SPE constants.  Don't check TImode or TDmode.
20146 2014-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
20148         * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
20149         -mcpu.
20151 2014-01-07  Yufeng Zhang  <yufeng.zhang@arm.com>
20153         * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
20154         with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
20155         rtx is const0_rtx or not.
20157 2014-01-07  Richard Sandiford  <rdsandiford@googlemail.com>
20159         PR target/58115
20160         * target-globals.c (save_target_globals): Remove this_fn_optab
20161         handling.
20162         * toplev.c: Include optabs.h.
20163         (target_reinit): Temporarily restore the global options if another
20164         set of options are in force.
20166 2014-01-07  Jakub Jelinek  <jakub@redhat.com>
20168         PR rtl-optimization/58668
20169         * cfgcleanup.c (flow_find_cross_jump): Don't count
20170         any jumps if dir_p is NULL.  Remove p1 variable, use active_insn_p
20171         to determine what is counted.
20172         (flow_find_head_matching_sequence): Use active_insn_p to determine
20173         what is counted.
20174         (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
20175         counting change.
20176         * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
20177         determine what is counted.
20179         PR tree-optimization/59643
20180         * tree-predcom.c (split_data_refs_to_components): If one dr is
20181         read and one write, determine_offset fails and the write isn't
20182         in the bad component, just put the read into the bad component.
20184 2014-01-07  Mike Stump  <mikestump@comcast.net>
20185             Jakub Jelinek  <jakub@redhat.com>
20187         PR pch/59436
20188         * tree-core.h (struct tree_optimization_option): Change optabs
20189         type from unsigned char * to void *.
20190         * optabs.c (init_tree_optimization_optabs): Adjust
20191         TREE_OPTIMIZATION_OPTABS initialization.
20193 2014-01-06  Jakub Jelinek  <jakub@redhat.com>
20195         PR target/59644
20196         * config/i386/i386.h (struct machine_function): Add
20197         no_drap_save_restore field.
20198         * config/i386/i386.c (ix86_save_reg): Use
20199         !cfun->machine->no_drap_save_restore instead of
20200         crtl->stack_realign_needed.
20201         (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
20202         this function clears frame_pointer_needed.  Set
20203         cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
20204         and DRAP reg is needed.
20206 2014-01-06  Marek Polacek  <polacek@redhat.com>
20208         PR c/57773
20209         * doc/implement-c.texi: Mention that other integer types are
20210         permitted as bit-field types in strictly conforming mode.
20212 2014-01-06  Felix Yang  <fei.yang0953@gmail.com>
20214         * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
20215         is newly allocated.
20217 2014-01-06  Richard Earnshaw  <rearnsha@arm.com>
20219         * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
20221 2014-01-06  Martin Jambor  <mjambor@suse.cz>
20223         PR ipa/59008
20224         * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
20225         to int.
20226         * ipa-prop.c (ipa_print_node_params): Fix indentation.
20228 2014-01-06  Eric Botcazou  <ebotcazou@adacore.com>
20230         PR debug/59350
20231         PR debug/59510
20232         * var-tracking.c (add_stores): Preserve the value of the source even if
20233         we don't record the store.
20235 2014-01-06  Terry Guo  <terry.guo@arm.com>
20237         * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
20239 2014-01-05  Iain Sandoe  <iain@codesourcery.com>
20241         PR bootstrap/59541
20242         * config/darwin.c (darwin_function_section): Adjust return values to
20243         correspond to optimisation changes made in r206070.
20245 2014-01-05  Uros Bizjak  <ubizjak@gmail.com>
20247         * config/i386/i386.c (ix86_data_alignment): Calculate max_align
20248         from prefetch_block tune setting.
20249         (nocona_cost): Correct size of prefetch block to 64.
20251 2014-01-04  Eric Botcazou  <ebotcazou@adacore.com>
20253         * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
20254         (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
20255         used to save the static chain register in the computation of the offset
20256         from which the FP registers need to be restored.
20258 2014-01-04  Jakub Jelinek  <jakub@redhat.com>
20260         PR tree-optimization/59519
20261         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
20262         ICE if get_current_def (current_new_name) is already non-NULL, as long
20263         as it is a phi result of some other phi in *new_exit_bb that has
20264         the same argument.
20266         * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
20267         or vmovdqu* for misaligned_operand.
20268         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
20269         <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
20270         * config/i386/i386.c (ix86_expand_special_args_builtin): Set
20271         aligned_mem for AVX512F masked aligned load and store builtins and for
20272         non-temporal moves.
20274 2014-01-03  Bingfeng Mei  <bmei@broadcom.com>
20276         PR tree-optimization/59651
20277         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
20278         Address range for negative step should be added by TYPE_SIZE_UNIT.
20280 2014-01-03  Andreas Schwab  <schwab@linux-m68k.org>
20282         * config/m68k/m68k.c (handle_move_double): Handle pushes with
20283         overlapping registers also for registers other than the stack pointer.
20285 2014-01-03  Marek Polacek  <polacek@redhat.com>
20287         PR other/59661
20288         * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
20289         __builtin_FILE.
20291 2014-01-03  Jakub Jelinek  <jakub@redhat.com>
20293         PR target/59625
20294         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
20295         asm goto as jump.
20297         * config/i386/i386.md (MODE_SIZE): New mode attribute.
20298         (push splitter): Use <P:MODE_SIZE> instead of
20299         GET_MODE_SIZE (<P:MODE>mode).
20300         (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
20301         (mov -1, reg peephole2): Likewise.
20302         * config/i386/sse.md (*mov<mode>_internal,
20303         <sse>_storeu<ssemodesuffix><avxsizesuffix>,
20304         <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
20305         *<code><mode>3, *andnot<mode>3<mask_name>,
20306         <mask_codefor><code><mode>3<mask_name>): Likewise.
20307         * config/i386/subst.md (mask_mode512bit_condition,
20308         sd_mask_mode512bit_condition): Likewise.
20310 2014-01-02  Xinliang David Li  <davidxl@google.com>
20312         PR tree-optimization/59303
20313         * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
20314         (dump_predicates): Better output format.
20315         (pred_equal_p): New function.
20316         (is_neq_relop_p): Ditto.
20317         (is_neq_zero_form_p): Ditto.
20318         (pred_expr_equal_p): Ditto.
20319         (pred_neg_p): Ditto.
20320         (simplify_pred): Ditto.
20321         (simplify_preds_2): Ditto.
20322         (simplify_preds_3): Ditto.
20323         (simplify_preds_4): Ditto.
20324         (simplify_preds): Ditto.
20325         (push_pred): Ditto.
20326         (push_to_worklist): Ditto.
20327         (get_pred_info_from_cmp): Ditto.
20328         (is_degenerated_phi): Ditto.
20329         (normalize_one_pred_1): Ditto.
20330         (normalize_one_pred): Ditto.
20331         (normalize_one_pred_chain): Ditto.
20332         (normalize_preds): Ditto.
20333         (normalize_cond_1): Remove function.
20334         (normalize_cond): Ditto.
20335         (is_gcond_subset_of): Ditto.
20336         (is_subset_of_any): Ditto.
20337         (is_or_set_subset_of): Ditto.
20338         (is_and_set_subset_of): Ditto.
20339         (is_norm_cond_subset_of): Ditto.
20340         (pred_chain_length_cmp): Ditto.
20341         (convert_control_dep_chain_into_preds): Type change.
20342         (find_predicates): Ditto.
20343         (find_def_preds): Ditto.
20344         (destroy_predicates_vecs): Ditto.
20345         (find_matching_predicates_in_rest_chains): Ditto.
20346         (use_pred_not_overlap_with_undef_path_pred): Ditto.
20347         (is_pred_expr_subset): Ditto.
20348         (is_pred_chain_subset_of): Ditto.
20349         (is_included_in): Ditto.
20350         (is_superset_of): Ditto.
20352 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
20354         Update copyright years.
20356 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
20358         * common/config/arc/arc-common.c, config/arc/arc-modes.def,
20359         config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
20360         config/arc/arc.md, config/arc/arc.opt,
20361         config/arm/arm_neon_builtins.def, config/arm/crypto.def,
20362         config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
20363         config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
20364         config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
20365         config/linux-protos.h, config/linux.c, config/winnt-c.c,
20366         diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
20367         vtable-verify.c, vtable-verify.h: Use the standard form for the
20368         copyright notice.
20370 2014-01-02  Tobias Burnus  <burnus@net-b.de>
20372         * gcc.c (process_command): Update copyright notice dates.
20373         * gcov-dump.c: Ditto.
20374         * gcov.c: Ditto.
20375         * doc/cpp.texi: Bump @copying's copyright year.
20376         * doc/cppinternals.texi: Ditto.
20377         * doc/gcc.texi: Ditto.
20378         * doc/gccint.texi: Ditto.
20379         * doc/gcov.texi: Ditto.
20380         * doc/install.texi: Ditto.
20381         * doc/invoke.texi: Ditto.
20383 2014-01-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
20385         * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
20387 2014-01-01  Jakub Jelinek  <jakub@redhat.com>
20389         * config/i386/sse.md (*mov<mode>_internal): Guard
20390         EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
20392         PR rtl-optimization/59647
20393         * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
20394         new_rtx into UNSIGNED_FLOAT rtxes.
20396 Copyright (C) 2014 Free Software Foundation, Inc.
20398 Copying and distribution of this file, with or without modification,
20399 are permitted in any medium without royalty provided the copyright
20400 notice and this notice are preserved.