2014-10-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
[official-gcc.git] / gcc / ChangeLog
blob896e77f7ecfb201b15d8d692b9953d9840d96ca7
1 2014-10-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3         * doc/invoke.texi (Options to Request or Suppress Warnings):
4         Explain options precedence.
5         (Wtrampolines): Do not indent paragraph.
7 2014-10-18  John David Anglin  <danglin@gcc.gnu.org>
9         * doc/invoke.texi: Update documentation of hppa -mjump-in-delay option.
10         * config/pa/pa-protos.h (pa_following_call): Delete declaration.
11         (pa_jump_in_call_delay): Likewise.
12         * config/pa/pa.c (pa_option_override): Remove jump in call delay
13         override.
14         (pa_output_millicode_call): Remove support for jump in call delay.
15         (pa_output_call): Likewise.
16         (pa_jump_in_call_delay): Delete.
17         (pa_following_call): Likewise.
18         * config/pa/pa.md (in_call_delay): Remove jump in delay check.
19         (uncond_branch): Remove following call check from attribute length.
21 2014-10-18  Oleg Endo  <olegendo@gcc.gnu.org>
23         PR target/53513
24         * config/sh/sh-modes.def (PSI): Remove.
25         * config/sh/sh-protos.h (get_fpscr_rtx): Remove.
26         * config/sh/sh.c (fpscr_rtx, get_fpscr_rtx): Remove.
27         (sh_reorg): Remove commented out FPSCR code.
28         (fpscr_set_from_mem): Use SImode instead of PSImode.  Emit lds_fpscr
29         insn instead of move insn.
30         (sh_hard_regno_mode_ok): Return SImode for FPSCR.
31         (sh_legitimate_address_p, sh_legitimize_reload_address): Remove PSImode
32         handling.
33         (sh_emit_mode_set): Emit lds_fpscr and sts_fpscr insns.
34         (sh1_builtin_p): Uncomment.
35         (SH_BLTIN_UV 25, SH_BLTIN_VU 26): New macros.
36         (bdesc): Add __builtin_sh_get_fpscr and __builtin_sh_set_fpscr.
37         * config/sh/sh/predicates.md (fpscr_operand): Simplify.
38         (fpscr_movsrc_operand, fpscr_movdst_operand): New predicates.
39         (general_movsrc_operand, general_movdst_operand): Disallow
40         fpscr_operand.
41         * config/sh/sh.md (FPSCR_FR): New constant.
42         (push_fpscr): Emit sts_fpscr insn.
43         (pop_fpscr): Emit lds_fpscr_insn.
44         (movsi_ie): Disallow FPSCR operands.
45         (fpu_switch, unnamed related split, extend_psi_si,
46         truncate_si_psi): Remove insns.
47         (lds_fpscr, sts_fpscr): New insns.
48         (toggle_sz, toggle_pr): Use SImode for FPSCR_REG instead of PSImode.
50 2014-10-17  Eric Botcazou  <ebotcazou@adacore.com>
52         * ipa-inline-transform.c (master_clone_with_noninline_clones_p): New.
53         (clone_inlined_nodes): Do not overwrite the clone if above predicate
54         returns true.
56 2014-10-17  Ilya Tocar  <ilya.tocar@intel.com>
58         * config/i386/i386.c (MAX_VECT_LEN): Move earlier.
59         (expand_vec_perm_d): Ditto.
60         (ix86_expand_vec_perm_vpermi2): Handle V8HImode, V16HImode, V32HImode,
61         V32HImode, V4SImode, V8SImode, V4SFmode, V8SFmode, V2DImode, V4DImode,
62         V4DFmode.
63         (ix86_expand_vec_perm): Update call to ix86_expand_vec_perm_vpermi2.
64         (ix86_expand_sse_unpack): Handle V64QImode.
65         (expand_vec_perm_blend): Update conditions for TARGET, handle
66         V8DFmode, V16SFmode, V32HImode, V64QImode, V16SImode, V8DImode.
67         (expand_vec_perm_pshufb): Handle V64QImode.
68         (expand_vec_perm_1): Handle V64QImode, V32HImode, V16SImode, V16SFmode,
69         V8DFmode, V8DImode, V4DFmode, V2DFmode, V8SFmode, V4SFmode.
70         (ix86_expand_vec_perm_const_1): Call  ix86_expand_vec_perm_vpermi2.
71         (ix86_vectorize_vec_perm_const_ok): Handle V32HImode, V64QImode.
72         (ix86_expand_vecop_qihi): Handle V64QImode.
73         * config/i386/sse.md (define_mode_iterator VI1_AVX512): New.
74         (define_mode_iterator VEC_PERM_AVX2): Add V32HI.
75         (define_mode_iterator VEC_PERM_CONST): Add V32HI.
76         (define_insn "<ssse3_avx2>_pshufb<mode>3<mask_name>"): Add masking.
77         (mul<mode>3): Use VI1_AVX512.
78         (<sse2_avx2>_packsswb): Ditto.
79         (<sse2_avx2>_packuswb): Ditto.
80         (<ssse3_avx2>_pshufb<mode>3): Ditto.
81         (<shift_insn><mode>3): Ditto.
83 2014-10-17  Kirill Yukhin  <kirill.yukhin@intel.com>
85         * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Refactor
86         conditions to fix bootstrap.
88 2014-10-17  Andrew MacLeod  <amacleod@redhat.com>
90         gcc-plugin.h:  Add tm.h and flattened includes from function.h.
92 2014-10-17  Alexander Ivchenko  <alexander.ivchenko@intel.com>
93             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
94             Anna Tikhonova  <anna.tikhonova@intel.com>
95             Ilya Tocar  <ilya.tocar@intel.com>
96             Andrey Turetskiy  <andrey.turetskiy@intel.com>
97             Ilya Verbin  <ilya.verbin@intel.com>
98             Kirill Yukhin  <kirill.yukhin@intel.com>
99             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
101         * config/i386/i386.c (ix86_expand_vector_init_duplicate): Handle V64QI
102         and V32HI modes, update V8HI, V16QI, V32QI modes handling.
103         (ix86_expand_vector_init_general): Handle V64QI and V32HI modes.
104         * config/i386/sse.md (define_mode_iterator VI48F_512): Rename to ...
105         (define_mode_iterator VF48_I1248): ... this. Extend to AVX-512 modes.
106         (define_expand "vec_init<mode>"): Use VF48_I1248.
108 2014-10-17  Alexander Ivchenko  <alexander.ivchenko@intel.com>
109             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
110             Anna Tikhonova  <anna.tikhonova@intel.com>
111             Ilya Tocar  <ilya.tocar@intel.com>
112             Andrey Turetskiy  <andrey.turetskiy@intel.com>
113             Ilya Verbin  <ilya.verbin@intel.com>
114             Kirill Yukhin  <kirill.yukhin@intel.com>
115             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
117         * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Extend
118         expand_sse2_mulvxdi3.
120 2014-10-17  Richard Biener  <rguenther@suse.de>
122         * fold-const.c (fold_comparison): Remove redundant constant
123         folding and operand swapping.
124         (fold_binary_loc): Do comparison operand swapping here.
125         (fold_ternary_loc): Canonicalize operand order for
126         commutative ternary operations.
127         * tree.c (commutative_ternary_tree_code): Add DOT_PROD_EXPR
128         and FMA_EXPR.
130 2014-10-17  Jakub Jelinek  <jakub@redhat.com>
132         PR tree-optimization/63464
133         * gimple.h (gimple_seq_discard): New prototype.
134         * gimple.c: Include stringpool.h and tree-ssanames.h.
135         (gimple_seq_discard): New function.
136         * optabs.h (lshift_cheap_p): New prototype.
137         * optabs.c (lshift_cheap_p): New function, moved from...
138         * tree-switch-conversion.c (lshift_cheap_p): ... here.
139         * tree-ssa-reassoc.c: Include gimplify.h and optabs.h.
140         (reassoc_branch_fixups): New variable.
141         (update_range_test): Add otherrangep and seq arguments.
142         Unshare exp.  If otherrange is NULL, use for other ranges
143         array of pointers pointed by otherrangep instead.
144         Emit seq before gimplified statements for tem.
145         (optimize_range_tests_diff): Adjust update_range_test
146         caller.
147         (optimize_range_tests_xor): Likewise.  Fix up comment.
148         (extract_bit_test_mask, optimize_range_tests_to_bit_test): New
149         functions.
150         (optimize_range_tests): Adjust update_range_test caller.
151         Call optimize_range_tests_to_bit_test.
152         (branch_fixup): New function.
153         (execute_reassoc): Call branch_fixup.
155         PR tree-optimization/63302
156         * tree-ssa-reassoc.c (optimize_range_tests_xor,
157         optimize_range_tests_diff): Use !integer_pow2p () instead of
158         tree_log2 () < 0.
160 2014-10-17  Martin Liska  <mliska@suse.cz>
162         * ipa-icf.c (sem_function::merge): Local flags are set to false
163         to enforce equal calling convention to be used.
164         * opts.c (common_handle_option): Indentation fix.
166 2014-10-17  Marc Glisse  <marc.glisse@inria.fr>
168         * tree-into-ssa.c (is_old_name): Replace "new" with "old".
170 2014-10-17  Tom de Vries  <tom@codesourcery.com>
172         PR rtl-optimization/61605
173         * regcprop.c (copyprop_hardreg_forward_1): Use
174         regs_invalidated_by_this_call instead of regs_invalidated_by_call.
176 2014-10-17  Tom de Vries  <tom@codesourcery.com>
178         PR rtl-optimization/61605
179         * regcprop.c (copyprop_hardreg_forward_1): Add copy_p and noop_p.  Don't
180         notice stores for noops.  Don't regard noops as copies.
182 2014-10-17  Uros Bizjak  <ubizjak@gmail.com>
184         * config/i386/cpuid.h (__cpuid): Remove definitions that handle %ebx
185         register in a special way.
186         (__cpuid_count): Ditto.
187         * config/i386/driver-i386.h: Protect with
188         "#if defined(__GNUC__) && (__GNUC__ >= 5 || !defined(__PIC__))".
189         (host_detect_local_cpu): Mention that GCC with non-fixed %ebx
190         is required to compile the function.
192 2014-10-16  DJ Delorie  <dj@redhat.com>
194         * flag-types.h (sanitize_code): Don't assume targets have 32-bit
195         integers.
197         * config/rs6000/rs6000-c.c (rid_int128): New.
198         (rs6000_macro_to_expand): Use instead of RID_INT128.
200 2014-10-16  Andrew MacLeod  <amacleod@redhat.com>
202         * function.h: Flatten file.  Remove includes, adjust prototypes to 
203         reflect only what is in function.h.
204         (enum direction, struct args_size, struct locate_and_pad_arg_data,
205         ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE, ARGS_SIZE_RTX): Relocate
206         from expr.h.
207         (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Relocate from rtl.h.
208         (optimize_function_for_size_p, optimize_function_for_speed_p): Move
209         prototypes to predict.h.
210         (init_varasm_status): Move prototype to varasm.h.
211         * expr.h: Adjust include files.
212         (enum direction, struct args_size, struct locate_and_pad_arg_data,
213         ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE, ARGS_SIZE_RTX): Move
214         to function.h.
215         (locate_and_pad_parm): Move prototype to function.h.
216         * rtl.h: (assign_stack_local, ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD,
217         assign_stack_local_1, assign_stack_temp, assign_stack_temp_for_type,
218         assign_temp, reposition_prologue_and_epilogue_notes,
219         prologue_epilogue_contains, sibcall_epilogue_contains,
220         update_temp_slot_address, maybe_copy_prologue_epilogue_insn,
221         set_return_jump_label): Move prototypes to function.h.
222         * predict.h (optimize_function_for_size_p,
223         optimize_function_for_speed_p): Relocate prototypes from function.h.
224         * shrink-wrap.h (emit_return_into_block, active_insn_between,
225         convert_jumps_to_returns, emit_return_for_exit): Move prototypes to
226         function.h.
227         * varasm.h (init_varasm_status): Relocate prototype from function.h.
228         * genattrtab.c (write_header): Add predict.h to include list.
229         * genconditions.c (write_header): Add predict.h to include list.
230         * genemit.c (main): Adjust header file includes.
231         * gengtype.c (ifiles): Add flattened function.h header files.
232         * genoutput.c (output_prologue): Add predict.h to include list.
233         * genpreds.c (write_insn_preds_c): Adjust header file includes.
234         * genrecog.c (write_header): Add flattened function.h header files.
235         * alias.c: Adjust include files.
236         * auto-inc-dec.c: Likewise.
237         * basic-block.h: Likewise.
238         * bb-reorder.c: Likewise.
239         * bt-load.c: Likewise.
240         * builtins.c: Likewise.
241         * caller-save.c: Likewise.
242         * calls.c: Likewise.
243         * cfgbuild.c: Likewise.
244         * cfgcleanup.c: Likewise.
245         * cfgexpand.c: Likewise.
246         * cfgloop.c: Likewise.
247         * cfgloop.h: Likewise.
248         * cfgrtl.c: Likewise.
249         * cgraph.h: Likewise.
250         * cgraphclones.c: Likewise.
251         * cgraphunit.c: Likewise.
252         * combine-stack-adj.c: Likewise.
253         * combine.c: Likewise.
254         * coverage.c: Likewise.
255         * cprop.c: Likewise.
256         * cse.c: Likewise.
257         * cselib.c: Likewise.
258         * dbxout.c: Likewise.
259         * ddg.c: Likewise.
260         * df-core.c: Likewise.
261         * df-problems.c: Likewise.
262         * df-scan.c: Likewise.
263         * dojump.c: Likewise.
264         * dwarf2cfi.c: Likewise.
265         * dwarf2out.c: Likewise.
266         * emit-rtl.c: Likewise.
267         * except.c: Likewise.
268         * explow.c: Likewise.
269         * expr.c: Likewise.
270         * final.c: Likewise.
271         * function.c: Likewise.
272         * gcse.c: Likewise.
273         * gimple-fold.c: Likewise.
274         * gimple-low.c: Likewise.
275         * gimple-streamer.h: Likewise.
276         * haifa-sched.c: Likewise.
277         * ifcvt.c: Likewise.
278         * ira.c: Likewise.
279         * jump.c: Likewise.
280         * lcm.c: Likewise.
281         * loop-invariant.c: Likewise.
282         * lra-assigns.c: Likewise.
283         * lra-coalesce.c: Likewise.
284         * lra-constraints.c: Likewise.
285         * lra-eliminations.c: Likewise.
286         * lra-lives.c: Likewise.
287         * lra-spills.c: Likewise.
288         * lra.c: Likewise.
289         * lto-cgraph.c: Likewise.
290         * lto-section-in.c: Likewise.
291         * lto-section-out.c: Likewise.
292         * lto-streamer-in.c: Likewise.
293         * lto-streamer-out.c: Likewise.
294         * mode-switching.c: Likewise.
295         * modulo-sched.c: Likewise.
296         * omp-low.c: Likewise.
297         * optabs.c: Likewise.
298         * passes.c: Likewise.
299         * postreload-gcse.c: Likewise.
300         * postreload.c: Likewise.
301         * predict.c: Likewise.
302         * profile.c: Likewise.
303         * recog.c: Likewise.
304         * ree.c: Likewise.
305         * reg-stack.c: Likewise.
306         * regcprop.c: Likewise.
307         * reginfo.c: Likewise.
308         * regrename.c: Likewise.
309         * reload.c: Likewise.
310         * reload1.c: Likewise.
311         * reorg.c: Likewise.
312         * resource.c: Likewise.
313         * rtlanal.c: Likewise.
314         * sched-deps.c: Likewise.
315         * sched-ebb.c: Likewise.
316         * sched-rgn.c: Likewise.
317         * sel-sched-dump.c: Likewise.
318         * sel-sched-ir.c: Likewise.
319         * sel-sched.c: Likewise.
320         * shrink-wrap.c: Likewise.
321         * simplify-rtx.c: Likewise.
322         * statistics.c: Likewise.
323         * stmt.c: Likewise.
324         * stor-layout.c: Likewise.
325         * store-motion.c: Likewise.
326         * symtab.c: Likewise.
327         * targhooks.c: Likewise.
328         * toplev.c: Likewise.
329         * trans-mem.c: Likewise.
330         * tree-cfg.c: Likewise.
331         * tree-cfgcleanup.c: Likewise.
332         * tree-dfa.c: Likewise.
333         * tree-eh.c: Likewise.
334         * tree-inline.c: Likewise.
335         * tree-into-ssa.c: Likewise.
336         * tree-nested.c: Likewise.
337         * tree-nrv.c: Likewise.
338         * tree-profile.c: Likewise.
339         * tree-ssa-alias.c: Likewise.
340         * tree-ssa-ccp.c: Likewise.
341         * tree-ssa-copy.c: Likewise.
342         * tree-ssa-copyrename.c: Likewise.
343         * tree-ssa-dom.c: Likewise.
344         * tree-ssa-operands.c: Likewise.
345         * tree-ssa-propagate.c: Likewise.
346         * tree-ssa-structalias.c: Likewise.
347         * tree-ssa-tail-merge.c: Likewise.
348         * tree-ssa-threadedge.c: Likewise.
349         * tree-ssa-threadupdate.c: Likewise.
350         * tree-ssa-uncprop.c: Likewise.
351         * tree-ssa-uninit.c: Likewise.
352         * tree-ssa.c: Likewise.
353         * tree-stdarg.c: Likewise.
354         * tree-tailcall.c: Likewise.
355         * tree.c: Likewise.
356         * tsan.c: Likewise.
357         * valtrack.c: Likewise.
358         * varasm.c: Likewise.
359         * vmsdbgout.c: Likewise.
360         * web.c: Likewise.
361         * config/aarch64/aarch64.c: Add flattened includes from function.h.
362         * config/alpha/alpha.c: Likewise.
363         * config/arc/arc.c: Likewise.
364         * config/arm/arm.c: Likewise.
365         * config/avr/avr-log.c: Likewise.
366         * config/avr/avr.c: Likewise.
367         * config/bfin/bfin.c: Likewise.
368         * config/c6x/c6x.c: Likewise.
369         * config/cr16/cr16.c: Likewise.
370         * config/cris/cris.c: Likewise.
371         * config/darwin.c: Likewise.
372         * config/epiphany/epiphany.c: Likewise.
373         * config/epiphany/mode-switch-use.c: Likewise.
374         * config/epiphany/resolve-sw-modes.c: Likewise.
375         * config/fr30/fr30.c: Likewise.
376         * config/frv/frv.c: Likewise.
377         * config/h8300/h8300.c: Likewise.
378         * config/i386/i386.c: Likewise.
379         * config/ia64/ia64.c: Likewise.
380         * config/iq2000/iq2000.c: Likewise.
381         * config/lm32/lm32.c: Likewise.
382         * config/m32c/m32c.c: Likewise.
383         * config/m32r/m32r.c: Likewise.
384         * config/m68k/m68k.c: Likewise.
385         * config/mcore/mcore.c: Likewise.
386         * config/mep/mep-pragma.c: Likewise.
387         * config/mep/mep.c: Likewise.
388         * config/microblaze/microblaze.c: Likewise.
389         * config/mips/mips.c: Likewise.
390         * config/mmix/mmix.c: Likewise.
391         * config/mn10300/mn10300.c: Likewise.
392         * config/moxie/moxie.c: Likewise.
393         * config/msp430/msp430.c: Likewise.
394         * config/nds32/nds32-cost.c: Likewise.
395         * config/nds32/nds32-fp-as-gp.c: Likewise.
396         * config/nds32/nds32-intrinsic.c: Likewise.
397         * config/nds32/nds32-isr.c: Likewise.
398         * config/nds32/nds32-md-auxiliary.c: Likewise.
399         * config/nds32/nds32-memory-manipulation.c: Likewise.
400         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
401         * config/nds32/nds32-predicates.c: Likewise.
402         * config/nds32/nds32.c: Likewise.
403         * config/nios2/nios2.c: Likewise.
404         * config/pa/pa.c: Likewise.
405         * config/pdp11/pdp11.c: Likewise.
406         * config/rl78/rl78.c: Likewise.
407         * config/rs6000/rs6000.c: Likewise.
408         * config/rx/rx.c: Likewise.
409         * config/s390/s390.c: Likewise.
410         * config/score/score.c: Likewise.
411         * config/sh/sh.c: Likewise.
412         * config/sparc/sparc.c: Likewise.
413         * config/spu/spu.c: Likewise.
414         * config/stormy16/stormy16.c: Likewise.
415         * config/tilegx/tilegx.c: Likewise.
416         * config/tilepro/tilepro.c: Likewise.
417         * config/v850/v850.c: Likewise.
418         * config/vax/vax.c: Likewise.
419         * config/xtensa/xtensa.c: Likewise.
421 2014-10-16  Richard Earnshaw  <rearnsha@arm.com>
423         * config/aarch64/aarch64.c (aarch64_legitimize_address): New function.
424         (TARGET_LEGITIMIZE_ADDRESS): Redefine.
426 2014-10-16  Oleg Endo  <olegendo@gcc.gnu.org>
428         * config/sh/sh-protos.h (fldi_ok): Remove.
429         * config/sh/sh.c (fldi_ok): Likewise.
430         (sh_secondary_reload): Don't use fldi_ok.
431         * config/sh/constraints.md (G constraint, H constraint): Don't use
432         fldi_ok.
434 2014-10-16  Martin Liska  <mliska@suse.cz>
436         * ipa-icf.c (sem_item_optimizer::process_cong_reduction):
437         Cast to unsigned long.
438         (sem_item_optimizer::dump_cong_classes): Likewise.
440 2014-10-16  Tom de Vries  <tom@codesourcery.com>
442         * tree-into-ssa.c (update_ssa): Assert that there's no ssa use operand
443         with SSA_NAME_IN_FREELIST.
445 2014-10-16  Richard Biener  <rguenther@suse.de>
447         PR middle-end/63554
448         * builtins.c (fold_builtin_4): Do not call fold_builtin_strncat_chk.
449         (fold_builtin_strncat_chk): Move ...
450         * gimple-fold.c (gimple_fold_builtin_strncat_chk): ... here.
451         (gimple_fold_builtin): Call gimple_fold_builtin_strncat_chk.
453 2014-10-16  Oleg Endo  <olegendo@gcc.gnu.org>
455         PR target/59401
456         * config/sh/sh.h (CALL_REALLY_USED_REGISTERS): Expand macro and set
457         GBR to 0.
459 2014-10-16  Alexander Ivchenko  <alexander.ivchenko@intel.com>
460             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
461             Anna Tikhonova  <anna.tikhonova@intel.com>
462             Ilya Tocar  <ilya.tocar@intel.com>
463             Andrey Turetskiy  <andrey.turetskiy@intel.com>
464             Ilya Verbin  <ilya.verbin@intel.com>
465             Kirill Yukhin  <kirill.yukhin@intel.com>
466             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
468         * config/i386/i386.c (ix86_expand_mul_widen_hilo): Handle V32HI, V16SI,
469         V64QI modes.
471 2014-10-16  Alexander Ivchenko  <alexander.ivchenko@intel.com>
472             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
473             Anna Tikhonova  <anna.tikhonova@intel.com>
474             Ilya Tocar  <ilya.tocar@intel.com>
475             Andrey Turetskiy  <andrey.turetskiy@intel.com>
476             Ilya Verbin  <ilya.verbin@intel.com>
477             Kirill Yukhin  <kirill.yukhin@intel.com>
478             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
480         * config/i386/i386.c (ix86_expand_vector_set): Handle V8DF, V8DI, V16SF,
481         V16SI, V32HI, V64QI modes.
483 2014-10-16  Oleg Endo  <olegendo@gcc.gnu.org>
485         PR target/53513
486         * config/sh/sh-protos.h (emit_sf_insn, emit_df_insn, expand_sf_unop,
487         expand_sf_binop, expand_df_unop, expand_df_binop): Remove.
489         * config/sh/sh.c (sh_emit_set_t_insn): Adjust generated insn pattern
490         to match fp insn patterns.
491         (calc_live_regs): Add FPSCR_MODES_REG and FPSCR_STAT_REG to the ignore
492         list.
493         (emit_sf_insn, emit_df_insn, expand_sf_unop, expand_sf_binop,
494         expand_df_unop, expand_df_binop): Remove.
495         (sh_conditional_register_usage): Mark FPSCR_MODES_REG and
496         FPSCR_STAT_REG as not call clobbered.
497         (sh_emit_mode_set): Emit fpscr store-modify-load sequence instead of
498         invoking fpscr_set_from_mem.
500         * config/sh/sh.h (MAX_REGISTER_NAME_LENGTH): Increase to 6.
501         (SH_REGISTER_NAMES_INITIALIZER): Add names for FPSCR_MODES_REG and
502         FPSCR_STAT_REG.
503         (REGISTER_NAMES): Adjust.
504         (SPECIAL_REGISTER_P): Add FPSCR_MODES_REG and FPSCR_STAT_REG.
505         (FIRST_PSEUDO_REGISTER): Increase to 156.
506         (DWARF_FRAME_REGISTERS): Define as 153 to keep the original value.
507         (FIXED_REGISTERS, CALL_USED_REGISTERS): Add FPSCR_MODES_REG and
508         FPSCR_STAT_REG.
509         (REG_CLASS_CONTENTS): Adjust ALL_REGS bit mask to include
510         FPSCR_MODES_REG and FPSCR_STAT_REG.
511         (REG_ALLOC_ORDER): Add FPSCR_MODES_REG and FPSCR_STAT_REG.
513         * config/sh/sh.md (FPSCR_MODES_REG, FPSCR_STAT_REG, FPSCR_PR,
514         FPSCR_SZ): Add new constants.
515         (UNSPECV_FPSCR_MODES, UNSPECV_FPSCR_STAT): Add new unspecv constants.
517         (movpsi): Use TARGET_FPU_ANY condition, invoke gen_fpu_switch.
518         (fpu_switch): Add use and set of FPSCR_STAT_REG and FPSCR_MODES_REG.
519         Use TARGET_FPU_ANY condition.
520         (fpu_switch peephole2): Remove.
521         (fpu_switch split): Use simple_mem_operand to capture the mem and
522         adjust split implementation.
523         (extend_psi_si, truncate_si_psi): New insns.
524         (toggle_sz, toggle_pr): Use FPSCR_SZ, FPSCR_PR constants.  Add
525         set of FPSCR_MODES_REG.
527         (push_e, push_4, pop_e, pop_4, movdf_i4, reload_indf__frn, movsf_ie,
528         reload_insf__frn, force_mode_for_call, calli, calli_tbr_rel,
529         calli_pcrel, call_pcrel, call_compact, call_compact_rettramp,
530         call_valuei, call_valuei_tbr_rel, call_valuei_pcrel, call_value_pcrel,
531         call_value_compact, call_value_compact_rettramp, call,
532         call_pop_compact, call_pop_compact_rettramp, call_value, sibcalli,
533         sibcalli_pcrel, sibcalli_thunk, sibcall_pcrel, sibcall_compact,
534         sibcall, sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
535         sibcall_value_compact, sibcall_value, call_value_pop_compact,
536         call_value_pop_compact_rettramp, various unnamed splits):
537         Replace use of FPSCR_REG with use of FPSCR_MODES_REG.  Adjust gen_*
538         function uses.
540         (floatsisf2_i4, *floatsisf2_ie): Merge into floatsisf2_i4.
541         (fix_truncsfsi2_i4, *fixsfsi): Merge into fix_truncsfsi2_i4.
542         (cmpgtsf_t, cmpgtsf_t_i4): Merge into cmpgtsf_t.
543         (cmpeqsf_t, cmpeqsf_t_i4): Merge into cmpeqsf_t.
544         (ieee_ccmpeqsf_t, *ieee_ccmpeqsf_t_4): Merge into ieee_ccmpeqsf_t.
546         (udivsi3_i4, divsi3_i4, addsf3_i, subsf3_i, mulsf3_i, fmasf4_i,
547         *fmasf4, divsf3_i, floatsisf2_i4, fix_truncsfsi2_i4, cmpgtsf_t,
548         cmpeqsf_t, ieee_ccmpeqsf_t, sqrtsf2_i, rsqrtsf2, fsca, adddf3_i,
549         subdf3_i, muldf3_i, divdf3_i, floatsidf2_i, fix_truncdfsi2_i,
550         cmpgtdf_t, cmpeqdf_t, *ieee_ccmpeqdf_t, sqrtdf2_i, extendsfdf2_i4,
551         truncdfsf2_i4): Replace use of FPSCR_REG with clobber of FPSCR_STAT_REG
552         and use of FPSCR_MODES_REG.  Adjust gen_* function uses.
554 2014-10-16  Martin Liska  <mliska@suse.cz>
555             Jan Hubicka  <hubicka@ucw.cz>
557         * Makefile.in: New object files included.
558         * cgraph.c (cgraph_node::dump): New cgraph_node flag icf_merged
559         is printed.
560         (verify_edge_corresponds_to_fndecl): More sensitive verification
561         of nodes that are merged by IPA ICF.
562         * cgraph.h (cgraph_node::num_references): New function.
563         * cgraphunit.c (cgraph_node::expand_thunk): White space fixed.
564         * common.opt: New options ipa-icf, ipa-icf-functions and
565         ipa-icf-variables introduced.
566         * doc/invoke.texi: Documentation of new options introduced.
567         * ipa-icf-gimple.c: New file.
568         * ipa-icf-gimple.h: New file.
569         * ipa-icf.c: New file.
570         * ipa-icf.h: New file.
571         * lto-cgraph.c (lto_output_node): Streaming of icf_merged flag added.
572         (input_overwrite_node): Likewise.
573         * lto-section-in.c: New icf section added.
574         * lto-streamer.h (enum lto_section_type): Likewise.
575         * opts.c (common_handle_option): New option added.
576         * passes.def: New pass included.
577         * timevar.def: Time variable for IPA ICF added.
578         * tree-pass.h: New IPA ICF pass entry point added.
580 2014-10-16  Richard Biener  <rguenther@suse.de>
582         PR tree-optimization/63168
583         * tree-cfg.c (gimple_can_merge_blocks_p): Only protect
584         latches if after merging they are no longer simple.
585         * cfghooks.c (merge_blocks): Handle merging a latch block
586         into another block.
588 2014-10-16  Alexander Ivchenko  <alexander.ivchenko@intel.com>
589             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
590             Anna Tikhonova  <anna.tikhonova@intel.com>
591             Ilya Tocar  <ilya.tocar@intel.com>
592             Andrey Turetskiy  <andrey.turetskiy@intel.com>
593             Ilya Verbin  <ilya.verbin@intel.com>
594             Kirill Yukhin  <kirill.yukhin@intel.com>
595             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
597         * config/i386/sse.md
598         (define_expand "floatuns<sseintvecmodelower><mode>2"): Extend to
599         support AVX-512VL instructions.
601 2014-10-16  DJ Delorie  <dj@redhat.com>
603         * tree-core.h: Fix comment to not assume pointers are multiples of
604         bytes.
606 2014-10-15  Tom Tromey  <tromey@redhat.com>
608         * timevar.h (class auto_timevar): New class.
610 2014-10-15  Uros Bizjak  <ubizjak@gmail.com>
612         PR go/59432
613         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
614         Remove the second alternative.
615         (regprefix): Remove mode attribute.
616         (atomic_compare_and_swap<mode>): Do not fixup operand 2.
617         * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): Remove.
619         Revert:
620         2013-11-05  Ian Lance Taylor  <iant@google.com>
622         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
623         If possible, add .cfi directives to record change to bx.
624         * config/i386/i386.c (ix86_emit_cfi): New function.
625         * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
627 2014-10-15  Jan Hubicka  <hubicka@ucw.cz>
629         PR lto/62026
630         * cgraphclones.c (duplicate_thunk_for_node): Get body to have args
631         to duplicate.
632         * lto-streamer-out.c (lto_output): Handle correctly thunks that was born
633         at WPA time.
635 2014-10-15  Vladimir Makarov  <vmakarov@redhat.com>
637         PR rtl-optimization/63448
638         * lra-int.h (LRA_MAX_CONSTRAINT_ITERATION_NUMBER): Remove.
639         (LRA_MAX_ASSIGNMENT_ITERATION_NUMBER): New.
640         (LRA_MAX_INHERITANCE_PASSES): Use it.
641         (lra_constraint_iter_after_spill): Remove.
642         (lra_assignment_iter): New.
643         (lra_assignment_iter_after_spill): New.
644         * lra-assigns.c (lra_assignment_iter): New.
645         (lra_assignment_iter_after_spill): New.
646         (former_reload_pseudo_spill_p): New.
647         (spill_for): Set up former_reload_pseudo_spill_p.
648         (setup_live_pseudos_and_spill_after_risky): Ditto.
649         (assign_by_spills): Ditto.
650         (lra_assign): Increment lra_assignment_iter.  Print the iteration
651         number.  Reset former_reload_pseudo_spill_p.  Check
652         lra_assignment_iter_after_spill.
653         * lra.c (lra): Remove lra_constraint_iter_after_spill.  Initialize
654         lra_assignment_iter and lra_assignment_iter_after_spill.
655         * lra-constraints.c (lra_constraint_iter_after_spill): Remove.
656         (lra_constraints): Remove code with
657         lra_assignment_iter_after_spill.
659 2014-10-15  Teresa Johnson  <tejohnson@google.com>
661         PR bootstrap/63432
662         * tree-ssa-threadupdate.c (recompute_probabilities): Better
663         overflow checking.
665 2014-10-15  Renlin Li <renlin.li@arm.com>
667         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
668         __ARM_BIG_ENDIAN, __ARM_SIZEOF_MINIMAL_ENUM. Add __ARM_64BIT_STATE,
669         __ARM_ARCH_ISA_A64, __ARM_FEATURE_CLZ, __ARM_FEATURE_IDIV,
670         __ARM_FEATURE_UNALIGNED, __ARM_PCS_AAPCS64, __ARM_SIZEOF_WCHAR_T.
672 2014-10-15  Richard Biener  <rguenther@suse.de>
674         * gimple-fold.c (gimple_fold_call): Properly keep virtual
675         SSA form up-to-date when devirtualizing a call to
676         __builtin_unreachable and avoid fixing up EH info here.
678 2014-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
679             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
680             Anna Tikhonova  <anna.tikhonova@intel.com>
681             Ilya Tocar  <ilya.tocar@intel.com>
682             Andrey Turetskiy  <andrey.turetskiy@intel.com>
683             Ilya Verbin  <ilya.verbin@intel.com>
684             Kirill Yukhin  <kirill.yukhin@intel.com>
685             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
687         * config/i386/sse.md (define_mode_iterator VI_AVX2): Extend
688         to support AVX-512BW.
689         (define_mode_iterator VI124_AVX2_48_AVX512F): Remove.
690         (define_expand "<plusminus_insn><mode>3"): Remove masking support.
691         (define_insn "*<plusminus_insn><mode>3"): Ditto.
692         (define_expand "<plusminus_insn><VI48_AVX512VL:mode>3_mask"): New.
693         (define_expand "<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
694         (define_insn "*<plusminus_insn><VI48_AVX512VL:mode>3_mask"): Ditto.
695         (define_insn "*<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
696         (define_expand "<sse2_avx2>_andnot<mode>3"): Remove masking support.
697         (define_insn "*andnot<mode>3"): Ditto.
698         (define_expand "<sse2_avx2>_andnot<VI48_AVX512VL:mode>3_mask"): New.
699         (define_expand "<sse2_avx2>_andnot<VI12_AVX512VL:mode>3_mask"): Ditto.
700         (define_insn "*andnot<VI48_AVX512VL:mode>3<mask_name>"): Ditto.
701         (define_insn "*andnot<VI12_AVX512VL:mode>3<mask_name>"): Ditto.
702         (define_insn "*abs<mode>2"): Remove masking support.
703         (define_insn "abs<VI48_AVX512VL:mode>2_mask"): New.
704         (define_insn "abs<VI12_AVX512VL:mode>2_mask"): Ditto.
705         (define_expand "abs<mode>2"): Use VI_AVX2 mode iterator.
707 2014-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
708             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
709             Anna Tikhonova  <anna.tikhonova@intel.com>
710             Ilya Tocar  <ilya.tocar@intel.com>
711             Andrey Turetskiy  <andrey.turetskiy@intel.com>
712             Ilya Verbin  <ilya.verbin@intel.com>
713             Kirill Yukhin  <kirill.yukhin@intel.com>
714             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
716         * config/i386/predicates.md (define_predicate "constm1_operand"): New.
717         * config/i386/sse.md
718         (define_c_enum "unspec"): Add UNSPEC_CVTINT2MASK.
719         (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI12_AVX512VL:mode>"): New.
720         (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI48_AVX512VL:mode>"): Ditto.
721         (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
722         (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
723         (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
724         (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
726 2014-10-15  Renlin Li <renlin.li@arm.com>
728         * config/aarch64/aarch64.h (ARM_DEFAULT_PCS, arm_pcs_variant): Delete.
730 2014-10-15  Jakub Jelinek  <jakub@redhat.com>
732         * tree-ssa-reassoc.c (optimize_range_tests_diff): Perform
733         MINUS_EXPR in unsigned type to avoid undefined behavior.
735 2014-10-15  Eric Botcazou  <ebotcazou@adacore.com>
737         * stor-layout.c (self_referential_size): Do not promote arguments.
739 2014-10-15  Marek Polacek  <polacek@redhat.com>
741         * doc/invoke.texi: Update to reflect that GNU11 is the default
742         mode for C.
743         * c-common.h (c_language_kind): Update comment.
745 2014-10-15  Richard Biener  <rguenther@suse.de>
747         * hash-table.c: Include bconfig.h if building for the host.
748         * hash-table.h: Do not include ggc.h on the host but just declare
749         a few ggc allocation templates.
751 2014-10-15  Joern Rennecke  <joern.rennecke@embecosm.com>
752             Jeff Law  <law@redhat.com>
754         * caller-save.c (replace_reg_with_saved_mem): If saved_mode covers
755         multiple hard registers, use smaller mode derived from MODE.
757 2014-10-15  Andreas Schwab  <schwab@suse.de>
759         * explow.c (convert_memory_address_addr_space_1): Mark in_const
760         as ATTRIBUTE_UNUSED.
762 2014-10-14  Jan Hubicka  <hubicka@ucw.cz>
764         * loop-unroll.c: (decide_unrolling_and_peeling): Rename to
765         (decide_unrolling): ... this one.
766         (peel_loops_completely): Remove.
767         (decide_peel_simple): Remove.
768         (decide_peel_once_rolling): Remove.
769         (decide_peel_completely): Remove.
770         (peel_loop_simple): Remove.
771         (peel_loop_completely): Remove.
772         (unroll_and_peel_loops): Rename to ...
773         (unroll_loops): ... this one; handle only unrolling.
774         * cfgloop.h (lpt_dec): Remove LPT_PEEL_COMPLETELY and
775         LPT_PEEL_SIMPLE.
776         (UAP_PEEL): Remove.
777         (unroll_and_peel_loops): Remove.
778         (unroll_loops): New.
779         * passes.def: Replace
780         pass_rtl_unroll_and_peel_loops by pass_rtl_unroll_loops.
781         * loop-init.c (gate_rtl_unroll_and_peel_loops,
782         rtl_unroll_and_peel_loops): Rename to ...
783         (gate_rtl_unroll_loops, rtl_unroll_loops): ... these; update.
784         (pass_rtl_unroll_and_peel_loops): Rename to ...
785         (pass_rtl_unroll_loops): ... this one.
786         * tree-pass.h (make_pass_rtl_unroll_and_peel_loops): Remove.
787         (make_pass_rtl_unroll_loops): New.
788         * tree-ssa-loop-ivcanon.c: (estimated_peeled_sequence_size, try_peel_loop): New.
789         (canonicalize_loop_induction_variables): Update.
791 2014-10-14  Max Filippov  <jcmvbkbc@gmail.com>
793         * config/xtensa/xtensa.h (TARGET_HARD_FLOAT_POSTINC): new macro.
794         * config/xtensa/xtensa.md (*lsiu, *ssiu): add dependency on
795         !TARGET_HARD_FLOAT_POSTINC.
796         (*lsip, *ssip): new instructions.
798 2014-10-14  Max Filippov  <jcmvbkbc@gmail.com>
800         * config/xtensa/xtensa.md (divsf3, *recipsf2, sqrtsf2, *rsqrtsf2):
801         remove.
803 2014-10-14  Andrew Pinski  <apinski@cavium.com>
805         * explow.c (convert_memory_address_addr_space): Rename to ...
806         (convert_memory_address_addr_space_1): This.  Add in_const argument.
807         Inside a CONST RTL, permute the conversion and addition of constant
808         for zero and sign extended pointers.
809         (convert_memory_address_addr_space): New function.
811 2014-10-14  Andrew Pinski  <apinski@cavium.com>
813         Revert:
814         2011-08-19  H.J. Lu  <hongjiu.lu@intel.com>
816         PR middle-end/49721
817         * explow.c (convert_memory_address_addr_space): Also permute the
818         conversion and addition of constant for zero-extend.
820 2014-10-14  DJ Delorie  <dj@redhat.com>
822         * config/msp430/msp430-modes.def (PSI): Add.
824         * config/msp430/msp430-protos.h (msp430_hard_regno_nregs_has_padding): New.
825         (msp430_hard_regno_nregs_with_padding): New.
826         * config/msp430/msp430.c (msp430_scalar_mode_supported_p): New.
827         (msp430_hard_regno_nregs_has_padding): New.
828         (msp430_hard_regno_nregs_with_padding): New.
829         (msp430_unwind_word_mode): Use PSImode instead of SImode.
830         (msp430_addr_space_legitimate_address_p): New.
831         (msp430_asm_integer): New.
832         (msp430_init_dwarf_reg_sizes_extra): New.
833         (msp430_print_operand): Use X suffix for PSImode even in small model.
834         * config/msp430/msp430.h (POINTER_SIZE): Use 20 bits, not 32.
835         (PTR_SIZE): ...but 4 bytes for EH.
836         (SIZE_TYPE): Use __int20.
837         (PTRDIFF_TYPE): Likewise.
838         (INCOMING_FRAME_SP_OFFSET): Adjust.
839         * config/msp430/msp430.md (movqi_topbyte): New.
840         (movpsi): Use fixed suffixes.
841         (movsipsi2): Enable for 430X, not large model.
842         (extendhipsi2): Likewise.
843         (zero_extendhisi2): Likewise.
844         (zero_extendhisipsi2): Likewise.
845         (extend_and_shift1_hipsi2): Likewise.
846         (extendpsisi2): Likewise.
847         (*bitbranch<mode>4_z): Fix suffix logic.
849 2014-10-14  Eric Botcazou  <ebotcazou@adacore.com>
851         PR ada/62019
852         * tree-eh.c (tree_could_trap) <FUNCTION_DECL>: Revamp and really
853         do not choke on null node.
854         <VAR_DECL>: Likewise.
856 2014-10-14  DJ Delorie  <dj@redhat.com>
858         * machmode.h (int_n_data_t): New.
859         (int_n_enabled_p): New.
860         (int_n_data): New.
861         * tree.c (int_n_enabled_p): New.
862         (int_n_trees): New.
863         (make_or_reuse_type): Check for all __intN types, not just
864         __int128.
865         (build_common_tree_nodes): Likewise.  Also fill in integer_typs[]
866         entries.
867         * tree.h (int128_integer_type_node): Remove.
868         (int128_unsigned_type_node): Remove.
869         (int_n_trees_t): New.
870         (int_n_enabled_p): New.
871         (int_n_trees): New.
872         * toplev.c (standard_type_bitsize): New.
873         (do_compile): Check which __intN types are enabled for the current
874         run.
875         * builtin-types.def (BT_INT128): Remove.
876         (BT_UINT128): Remove.
877         * machmode.def: Add macro to create __int128 for all targets.
878         * stor-layout.c (mode_for_size): Support __intN types.
879         (smallest_mode_for_size): Likewise.
880         (initialize_sizetypes): Support __intN types.
881         * genmodes.c (struct mode_data): Add int_n field.
882         (blank_mode): Likewise.
883         (INT_N): New.
884         (make_int_n): New.
885         (emit_insn_modes_h): Count __intN entries and define
886         NUM_INT_N_ENTS.
887         (emit_mode_int_n): New.
888         (emit_insn_modes_c): Call it.
889         * gimple.c (gimple_signed_or_unsigned_type): Check for all __intN
890         types, not just __int128.
891         * tree-core.h (integer_type_kind): Remove __int128-specific
892         entries, reserve spots for __intN entries.
894         * config/msp430/msp430-modes.def (PSI): Add.
896 2014-10-14  Kito Cheng  <kito@0xlab.org>
898         * ira.c: Fix typo in comment.
899         * ira.h: Ditto.
900         * ira-build.c: Ditto.
901         * ira-color.c: Ditto.
902         * ira-emit.c: Ditto.
903         * ira-int.h: Ditto.
904         * ira-lives.c: Ditto.
906 2014-10-14  Uros Bizjak  <ubizjak@gmail.com>
908         PR rtl-optimization/63475
909         * alias.c (true_dependence_1): Always use get_addr to extract
910         true address operands from x_addr and mem_addr.  Use extracted
911         address operands to check for references with alignment ANDs.
912         Use extracted address operands with find_base_term and
913         base_alias_check. For noncanonicalized operands call canon_rtx with
914         extracted address operand.
915         (write_dependence_1): Ditto.
916         (may_alias_p): Ditto.  Remove unused calls to canon_rtx.
918 2014-10-14  Evgeny Stupachenko  <evstupac@gmail.com>
920         PR target/63534
921         * config/i386/i386.c (ix86_expand_split_stack_prologue): Make
922         __morestack local.
924 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
925             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
926             Anna Tikhonova  <anna.tikhonova@intel.com>
927             Ilya Tocar  <ilya.tocar@intel.com>
928             Andrey Turetskiy  <andrey.turetskiy@intel.com>
929             Ilya Verbin  <ilya.verbin@intel.com>
930             Kirill Yukhin  <kirill.yukhin@intel.com>
931             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
933         * config/i386/i386.c
934         (ix86_expand_sse_movcc): Handle V64QI and V32HI mode.
935         (ix86_expand_int_vcond): Ditto.
937 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
938             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
939             Anna Tikhonova  <anna.tikhonova@intel.com>
940             Ilya Tocar  <ilya.tocar@intel.com>
941             Andrey Turetskiy  <andrey.turetskiy@intel.com>
942             Ilya Verbin  <ilya.verbin@intel.com>
943             Kirill Yukhin  <kirill.yukhin@intel.com>
944             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
946         * config/i386/i386.c
947         (emit_reduc_half): Handle V64QI and V32HI mode.
948         * config/i386/sse.md
949         (define_mode_iterator VI_AVX512BW): New.
950         (define_expand "reduc_<code>_<mode>"): Use VI512_48F_12BW.
952 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
953             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
954             Anna Tikhonova  <anna.tikhonova@intel.com>
955             Ilya Tocar  <ilya.tocar@intel.com>
956             Andrey Turetskiy  <andrey.turetskiy@intel.com>
957             Ilya Verbin  <ilya.verbin@intel.com>
958             Kirill Yukhin  <kirill.yukhin@intel.com>
959             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
961         * config/i386/sse.md
962         (define_mode_iterator REDUC_SMINMAX_MODE): Add V64QI and V32HI modes.
964 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
965             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
966             Anna Tikhonova  <anna.tikhonova@intel.com>
967             Ilya Tocar  <ilya.tocar@intel.com>
968             Andrey Turetskiy  <andrey.turetskiy@intel.com>
969             Ilya Verbin  <ilya.verbin@intel.com>
970             Kirill Yukhin  <kirill.yukhin@intel.com>
971             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
973         * config/i386/i386.c
974         (ix86_expand_vector_logical_operator): Handle V16SF and V8DF modes.
975         * config/i386/sse.md
976         (define_mode_iterator VI): Add V64QI and V32HI modes.
978 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
979             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
980             Anna Tikhonova  <anna.tikhonova@intel.com>
981             Ilya Tocar  <ilya.tocar@intel.com>
982             Andrey Turetskiy  <andrey.turetskiy@intel.com>
983             Ilya Verbin  <ilya.verbin@intel.com>
984             Kirill Yukhin  <kirill.yukhin@intel.com>
985             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
987         * config/i386/sse.md (define_mode_attr avx2_avx512f): Remove.
989 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
990             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
991             Anna Tikhonova  <anna.tikhonova@intel.com>
992             Ilya Tocar  <ilya.tocar@intel.com>
993             Andrey Turetskiy  <andrey.turetskiy@intel.com>
994             Ilya Verbin  <ilya.verbin@intel.com>
995             Kirill Yukhin  <kirill.yukhin@intel.com>
996             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
998         * config/i386/sse.md
999         (define_insn "*sse4_1_<code><mode>3<mask_name>"): Add masking.
1000         (define_insn "*sse4_1_<code><mode>3<mask_name>"): Ditto.
1002 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1003             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1004             Anna Tikhonova  <anna.tikhonova@intel.com>
1005             Ilya Tocar  <ilya.tocar@intel.com>
1006             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1007             Ilya Verbin  <ilya.verbin@intel.com>
1008             Kirill Yukhin  <kirill.yukhin@intel.com>
1009             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1011         * config/i386/sse.md
1012         (define_insn "avx512bw_umulhrswv32hi3<mask_name>"): New.
1013         (define_expand "<ssse3_avx2>_pmulhrsw<mode>3_mask"): Ditto.
1015 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1016             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1017             Anna Tikhonova  <anna.tikhonova@intel.com>
1018             Ilya Tocar  <ilya.tocar@intel.com>
1019             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1020             Ilya Verbin  <ilya.verbin@intel.com>
1021             Kirill Yukhin  <kirill.yukhin@intel.com>
1022             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1024         * config/i386/sse.md
1025         (define_c_enum "unspec"): Add UNSPEC_PMADDWD512.
1026         (define_mode_iterator VI2_AVX2): Add V32HI mode.
1027         (define_expand "mul<mode>3<mask_name>"): Add masking.
1028         (define_insn "*mul<mode>3<mask_name>"): Ditto.
1029         (define_expand "<s>mul<mode>3_highpart<mask_name>"): Ditto.
1030         (define_insn "*<s>mul<mode>3_highpart<mask_name>"): Ditto.
1031         (define_insn "avx512bw_pmaddwd512<mode><mask_name>"): New.
1032         (define_mode_attr SDOT_PMADD_SUF): Ditto.
1033         (define_expand "sdot_prod<mode>"): Add <SDOT_PMADD_SUF>.
1034         (define_insn "<sse2_avx2>_packssdw<mask_name>"): Add masking.
1035         (define_insn "*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>"): Ditto.
1036         (define_insn "avx2_packusdw"): Delete.
1037         (define_insn "sse4_1_packusdw"): Ditto.
1038         (define_insn "<sse4_1_avx2>_packusdw<mask_name>"): New.
1040 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1041             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1042             Anna Tikhonova  <anna.tikhonova@intel.com>
1043             Ilya Tocar  <ilya.tocar@intel.com>
1044             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1045             Ilya Verbin  <ilya.verbin@intel.com>
1046             Kirill Yukhin  <kirill.yukhin@intel.com>
1047             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1049         * config/i386/sse.md
1050         (define_insn "vec_dup<mode>"): Update constraints.
1052 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1053             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1054             Anna Tikhonova  <anna.tikhonova@intel.com>
1055             Ilya Tocar  <ilya.tocar@intel.com>
1056             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1057             Ilya Verbin  <ilya.verbin@intel.com>
1058             Kirill Yukhin  <kirill.yukhin@intel.com>
1059             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1061         * config/i386/sse.md
1062         (define_mode_iterator SSESCALARMODE): Add V4TI mode.
1063         (define_insn "<ssse3_avx2>_palignr<mode>_mask"): New.
1064         (define_insn "<ssse3_avx2>_palignr<mode>"): Add EVEX version.
1066 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1067             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1068             Anna Tikhonova  <anna.tikhonova@intel.com>
1069             Ilya Tocar  <ilya.tocar@intel.com>
1070             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1071             Ilya Verbin  <ilya.verbin@intel.com>
1072             Kirill Yukhin  <kirill.yukhin@intel.com>
1073             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1075         * config/i386/sse.md
1076         (define_expand "mul<mode>3<mask_name>"): Add masking.
1078 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1079             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1080             Anna Tikhonova  <anna.tikhonova@intel.com>
1081             Ilya Tocar  <ilya.tocar@intel.com>
1082             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1083             Ilya Verbin  <ilya.verbin@intel.com>
1084             Kirill Yukhin  <kirill.yukhin@intel.com>
1085             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1087         * config/i386/sse.md
1088         (define_insn "<sse2_avx2>_packsswb<mask_name>"): Add masking.
1089         (define_insn "<sse2_avx2>_packuswb<mask_name>"): Ditto.
1091 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1092             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1093             Anna Tikhonova  <anna.tikhonova@intel.com>
1094             Ilya Tocar  <ilya.tocar@intel.com>
1095             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1096             Ilya Verbin  <ilya.verbin@intel.com>
1097             Kirill Yukhin  <kirill.yukhin@intel.com>
1098             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1100         * config/i386/sse.md
1101         (define_c_enum "unspec"): Add UNSPEC_DBPSADBW, UNSPEC_PMADDUBSW512.
1102         (define_insn "avx512bw_pmaddubsw512<mode><mask_name>"): New.
1103         (define_insn "<mask_codefor>avx512bw_dbpsadbw<mode><mask_name>"):
1104         Ditto.
1106 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1107             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1108             Anna Tikhonova  <anna.tikhonova@intel.com>
1109             Ilya Tocar  <ilya.tocar@intel.com>
1110             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1111             Ilya Verbin  <ilya.verbin@intel.com>
1112             Kirill Yukhin  <kirill.yukhin@intel.com>
1113             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1115         * config/i386/sse.md
1116         (define_insn "<sse>_andnot<VF_128_256:mode>3<mask_name>"): Add masking,
1117         use VF_128_256 mode iterator and update assembler emit code.
1118         (define_insn "<sse>_andnot<VF_512:mode>3<mask_name>"): New.
1119         (define_expand "<any_logic:code><VF_128_256:mode>3<mask_name>"):
1120         Add masking, use VF_128_256 mode iterator.
1121         (define_expand "<any_logic:code><VF_512:mode>3<mask_name>"): New.
1122         (define_insn "*<any_logic:code><VF_128_256:mode>3<mask_name>"):
1123         Add masking, use VF_128_256 mode iterator and update assembler emit
1124         code.
1125         (define_insn "*<any_logic:code><VF_512:mode>3<mask_name>"): New.
1126         (define_mode_attr avx512flogicsuff): Delete.
1127         (define_insn "avx512f_<logic><mode>"): Ditto.
1128         (define_insn "*andnot<mode>3<mask_name>"): Update MODE_XI, MODE_OI,
1129         MODE_TI.
1130         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
1132 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1133             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1134             Anna Tikhonova  <anna.tikhonova@intel.com>
1135             Ilya Tocar  <ilya.tocar@intel.com>
1136             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1137             Ilya Verbin  <ilya.verbin@intel.com>
1138             Kirill Yukhin  <kirill.yukhin@intel.com>
1139             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1141         * config/i386/sse.md
1142         (define_mode_iterator VI128_128 [V16QI V8HI V2DI]): Delete.
1143         (define_expand "vashr<mode>3<mask_name>"): Add masking,
1144         use VI12_128 mode iterator.
1145         (define_expand "ashrv2di3<mask_name>"): New.
1147 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1148             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1149             Anna Tikhonova  <anna.tikhonova@intel.com>
1150             Ilya Tocar  <ilya.tocar@intel.com>
1151             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1152             Ilya Verbin  <ilya.verbin@intel.com>
1153             Kirill Yukhin  <kirill.yukhin@intel.com>
1154             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1156         * config/i386/i386.c
1157         (ix86_expand_args_builtin): Handle CODE_FOR_avx512vl_cmpv4di3_mask,
1158         CODE_FOR_avx512vl_cmpv8si3_mask, CODE_FOR_avx512vl_ucmpv4di3_mask,
1159         CODE_FOR_avx512vl_ucmpv8si3_mask, CODE_FOR_avx512vl_cmpv2di3_mask,
1160         CODE_FOR_avx512vl_cmpv4si3_mask, CODE_FOR_avx512vl_ucmpv2di3_mask,
1161         CODE_FOR_avx512vl_ucmpv4si3_mask.
1162         * config/i386/sse.md
1163         (define_insn "avx512f_ucmp<mode>3<mask_scalar_merge_name>"): Delete.
1164         "<avx512>_ucmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name>"):New.
1165         (define_insn
1166         "<avx512>_ucmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name>"):Ditto.
1167         (define_expand "<avx512>_eq<mode>3<mask_scalar_merge_name>"): Ditto.
1168         (define_insn "<avx512>_eq<mode>3<mask_scalar_merge_name>_1"): Ditto.
1169         (define_insn "<avx512>_gt<mode>3<mask_scalar_merge_name>"): Ditto.
1170         (define_insn "<avx512>_testm<mode>3<mask_scalar_merge_name>"): Ditto.
1171         (define_insn "<avx512>_testnm<mode>3<mask_scalar_merge_name>"): Ditto.
1173 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1174             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1175             Anna Tikhonova  <anna.tikhonova@intel.com>
1176             Ilya Tocar  <ilya.tocar@intel.com>
1177             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1178             Ilya Verbin  <ilya.verbin@intel.com>
1179             Kirill Yukhin  <kirill.yukhin@intel.com>
1180             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1182         * config/i386/sse.md
1183         (define_expand "vec_widen_umult_even_v8si<mask_name>"): Add masking.
1184         (define_insn "*vec_widen_umult_even_v8si<mask_name>"): Ditto.
1185         (define_expand "vec_widen_umult_even_v4si<mask_name>"): Ditto.
1186         (define_insn "*vec_widen_umult_even_v4si<mask_name>"): Ditto.
1187         (define_expand "vec_widen_smult_even_v8si<mask_name>"): Ditto.
1188         (define_insn "*vec_widen_smult_even_v8si<mask_name>"): Ditto.
1189         (define_expand "sse4_1_mulv2siv2di3<mask_name>"): Ditto.
1190         (define_insn "*sse4_1_mulv2siv2di3<mask_name>"): Ditto.
1191         (define_insn "avx512dq_mul<mode>3<mask_name>"): New.
1193 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1194             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1195             Anna Tikhonova  <anna.tikhonova@intel.com>
1196             Ilya Tocar  <ilya.tocar@intel.com>
1197             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1198             Ilya Verbin  <ilya.verbin@intel.com>
1199             Kirill Yukhin  <kirill.yukhin@intel.com>
1200             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1202         * config/i386/sse.md
1203         (define_insn "avx512f_blendm<mode>"): Delete.
1204         (define_insn "<avx512>_blendm<VI48_AVX512VL:mode>"): New.
1205         (define_insn "<avx512>_blendm<VI12_AVX512VL:mode>"): Ditto..
1206         (define_mode_attr cmp_imm_predicate): Add V8SF, V4DF, V8SI, V4DI, V4SF,
1207         V2DF, V4SI, V2DI, V32HI, V64QI, V16HI, V32QI, V8HI, V16QI modes.
1208         (define_insn
1209         "avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>"):
1210         Remove.
1211         (define_insn
1212         "<avx512>_cmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
1213         New.
1214         (define_insn
1215         "<avx512>_cmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
1216         Ditto.
1217         (define_insn "<mask_codefor>avx512f_vec_dup<mode><mask_name>"): Delete.
1218         (define_insn "<avx512>_vec_dup<V48_AVX512VL:mode><mask_name>"): New.
1219         (define_insn "<avx512>_vec_dup<V12_AVX512VL:mode><mask_name>"): Ditto.
1220         (define_insn "<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>"):
1221         Delete.
1222         (define_insn
1223         "<mask_codefor><avx512>_vec_dup_gpr<VI48_AVX512VL:mode><mask_name>"):
1224         New.
1225         (define_insn
1226         "<mask_codefor><avx512>_vec_dup_gpr<VI12_AVX512VL:mode><mask_name>"):
1227         Ditto.
1228         (define_insn·"<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>"):
1229         Delete.
1230         (define_insn
1231         "<mask_codefor><avx512>_vec_dup_mem<VI48_AVX512VL:mode><mask_name>"):
1232         New.
1233         (define_insn
1234         "<mask_codefor><avx512>_vec_dup_mem<VI12_AVX512VL:mode><mask_name>"):
1235         Ditto.
1237 2014-10-14  Richard Biener  <rguenther@suse.de>
1239         PR tree-optimization/63512
1240         * tree-ssa-pre.c (create_expression_by_pieces): Mark stmts
1241         modified.
1243 2014-10-14  Oleg Endo  <olegendo@gcc.gnu.org>
1245         PR target/63260
1246         * config/sh/sh.md (negsf2, negsf2_i, negdf2, negdf2_i, abssf2,
1247         abssf2_i, absdf2, absdf2_i): Remove fp_mode attribute.  Remove use
1248         of FPSCR.
1249         (negsf2_i): Rename to *negsf2_i.
1250         (abssf2_i): Rename to *abssf2_i.
1251         (negdf2_i): Rename to *negdf2_i.
1252         (absdf2_i): Rename to *absdf2_i.
1254 2014-10-14  Felix Yang  <felix.yang@huawei.com>
1255             Jeff Law  <law@redhat.com>
1257         * ira.c (struct equivalence): Change member "is_arg_equivalence" and
1258         "replace" into boolean bitfields; turn member "loop_depth" into a short
1259         integer; add new member "no_equiv" and "reserved".
1260         (no_equiv): Set no_equiv of struct equivalence if register is marked
1261         as having no known equivalence.
1262         (update_equiv_regs): Check all definitions for a multiple-set
1263         register to make sure that the RHS have the same value.
1265 2014-10-13  Richard Henderson  <rth@redhat.com>
1267         * combine-stack-adj.c (no_unhandled_cfa): New.
1268         (maybe_merge_cfa_adjust): New.
1269         (combine_stack_adjustments_for_block): Use them.
1271 2014-10-13  Aldy Hernandez  <aldyh@redhat.com>
1273         * Makefile.in (TAGS): Tag ../include files.
1275 2014-10-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1277         * config/rs6000/rs6000.h (DBX_REGISTER_NUMBER): Pass format argument
1278         to rs6000_dbx_register_number.
1279         (DWARF_FRAME_REGNUM): Redefine as identity map.
1280         (DWARF2_FRAME_REG_OUT): Call rs6000_dbx_register_number.
1281         * config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Update.
1282         * config/rs6000/rs6000.c (rs6000_dbx_register_number): Add format
1283         argument to handle .debug_frame and .eh_frame directly.  Always
1284         translate SPE high register numbers.  Add special treatment for CR,
1285         but only in .debug_frame.  Respect RS6000_USE_DWARF_NUMBERING.
1287         * config/rs6000/sysv.h (DBX_REGISTER_NUMBER): Do not undefine.
1288         * config/rs6000/freebsd.h (DBX_REGISTER_NUMBER): Remove.
1289         (RS6000_USE_DWARF_NUMBERING): Define.
1290         * config/rs6000/freebsd64.h (DBX_REGISTER_NUMBER): Remove.
1291         (RS6000_USE_DWARF_NUMBERING): Define.
1292         * config/rs6000/netbsd.h (DBX_REGISTER_NUMBER): Remove.
1293         (RS6000_USE_DWARF_NUMBERING): Define.
1294         * config/rs6000/lynx.h (DBX_REGISTER_NUMBER): Remove.
1295         (RS6000_USE_DWARF_NUMBERING): Define.
1296         * config/rs6000/aix.h (RS6000_USE_DWARF_NUMBERING): Define.
1297         * config/rs6000/darwin.h (RS6000_USE_DWARF_NUMBERING): Define.
1299 2014-10-13  Evgeny Stupachenko  <evstupac@gmail.com>
1301         * config/i386/i386.c (ix86_address_cost): Lower cost for
1302         when address contains GOT register.
1304 2014-10-13  Ilya Enkovich  <ilya.enkovich@intel.com>
1305             Vladimir Makarov  <vmakarov@redhat.com>
1307         PR target/8340
1308         PR middle-end/47602
1309         PR rtl-optimization/55458
1310         * config/i386/i386.c (ix86_use_pseudo_pic_reg): New.
1311         (ix86_init_pic_reg): New.
1312         (ix86_select_alt_pic_regnum): Add check on pseudo register.
1313         (ix86_save_reg): Likewise.
1314         (ix86_expand_prologue): Remove PIC register initialization
1315         now performed in ix86_init_pic_reg.
1316         (ix86_output_function_epilogue): Add check on pseudo register.
1317         (set_pic_reg_ever_alive): New.
1318         (legitimize_pic_address): Replace df_set_regs_ever_live with new
1319         set_pic_reg_ever_alive.
1320         (legitimize_tls_address): Likewise.
1321         (ix86_pic_register_p): New check.
1322         (ix86_delegitimize_address): Add check on pseudo register.
1323         (ix86_expand_call): Insert move from pseudo PIC register to ABI
1324         defined REAL_PIC_OFFSET_TABLE_REGNUM.
1325         (TARGET_INIT_PIC_REG): New.
1326         (TARGET_USE_PSEUDO_PIC_REG): New.
1327         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Return INVALID_REGNUM
1328         if pic_offset_table_rtx exists.
1329         * doc/tm.texi.in (TARGET_USE_PSEUDO_PIC_REG, TARGET_INIT_PIC_REG):
1330         Document.
1331         * doc/tm.texi: Regenerate.
1332         * function.c (assign_parms): Generate pseudo register for PIC.
1333         * init-regs.c (initialize_uninitialized_regs): Ignor pseudo PIC
1334         register.
1335         * ira-color.c (color_pass): Add check on pseudo register.
1336         * ira-emit.c (change_loop): Don't create copies for PIC pseudo
1337         register.
1338         * ira.c (split_live_ranges_for_shrink_wrap): Add check on pseudo
1339         register.
1340         (ira): Add target specific PIC register initialization.
1341         (do_reload): Keep PIC pseudo register.
1342         * lra-assigns.c (spill_for): Add checks on pseudo register.
1343         * lra-constraints.c (contains_symbol_ref_p): New.
1344         (lra_constraints): Enable lra risky transformations when PIC is pseudo
1345         register.
1346         * shrink-wrap.c (try_shrink_wrapping): Add check on pseudo register.
1347         * target.def (use_pseudo_pic_reg): New.
1348         (init_pic_reg): New.
1350 2014-10-13  Evgeny Stupachenko  <evstupac@gmail.com>
1352         * config/i386/x86-tune.def (X86_TUNE_SSE_PARTIAL_REG_DEPENDENCY):
1353         Remove m_SILVERMONT and m_INTEL from the tune.
1355 2014-10-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1357         PR libfortran/63471
1358         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
1359         when _HPUX_SOURCE is defined.
1361 2014-10-13  Jan Hubicka  <hubicka@ucw.cz>
1363         PR tree-optimization/62127
1364         * tree.c (remap_type_1): When remapping array, remap
1365         also its type.
1367 2014-10-13  Christophe Lyon  <christophe.lyon@linaro.org>
1369         * Makefile.in: (check-%): Update comment, as RUNTESTFLAGS no
1370         longer impact parallelization.
1372 2014-10-13  Jan Hubicka  <hubicka@ucw.cz>
1374         PR bootstrap/63496
1375         * ipa-polymorphic-call.c (extr_type_from_vtbl_ptr_store): Fix pasto.
1377 2014-10-13  Marat Zakirov  <m.zakirov@samsung.com>
1379         * asan.c (instrument_derefs): BIT_FIELD_REF added.
1381 2014-10-13  Richard Biener  <rguenther@suse.de>
1383         PR tree-optimization/63419
1384         * gimple-fold.h (gimple_convert): New function.
1385         * gimple-fold.c (gimple_convert): Likewise.
1386         * tree-ssa-pre.c (create_expression_by_pieces): Use gimple_convert
1387         to split out required conversions early.
1389 2014-10-13  Richard Sandiford  <richard.sandiford@arm.com>
1391         * rtlanal.c (generic_subrtx_iterator <T>::add_subrtxes_to_queue):
1392         Add the parts of an insn in reverse order, with the pattern at
1393         the top of the queue.  Detect when we're iterating over a SEQUENCE
1394         pattern and in that case just consider patterns of subinstructions.
1396 2014-10-12  Oleg Endo  <olegendo@gcc.gnu.org>
1398         PR target/59401
1399         * config/sh/sh-protos (sh_find_equiv_gbr_addr): Use rtx_insn* instead
1400         of rtx.
1401         * config/sh/sh.c (sh_find_equiv_gbr_addr): Use def chains instead of
1402         insn walking.
1403         (sh_find_equiv_gbr_addr): Do nothing if input mem is already a GBR
1404         address.  Use def chains to handle GBR clobbering call insns.
1406 2014-10-12  Trevor Saunders  <tsaunders@mozilla.com>
1408         * asan.c, cfgloop.c, cfgloop.h, cgraph.c, cgraph.h,
1409         config/darwin.c, config/m32c/m32c.c, config/mep/mep.c,
1410         config/mips/mips.c, config/rs6000/rs6000.c, dwarf2out.c,
1411         function.c, function.h, gimple-ssa.h, libfuncs.h, optabs.c,
1412         output.h, rtl.h, sese.c, symtab.c, tree-cfg.c, tree-dfa.c,
1413         tree-ssa.c, varasm.c: Use hash-table instead of hashtab.
1414         * doc/gty.texi (for_user): Document new option.
1415         * gengtype.c (create_user_defined_type): Don't try to get a struct for
1416         char.
1417         (walk_type): Don't error out on for_user option.
1418         (write_func_for_structure): Emit user marking routines if requested by
1419         for_user option.
1420         (write_local_func_for_structure): Likewise.
1421         (main): Mark types with for_user option as used.
1422         * ggc.h (gt_pch_nx): Add overload for unsigned int.
1423         * hash-map.h (hash_map::hash_entry::pch_nx_helper): AddOverloads.
1424         * hash-table.h (ggc_hasher): New struct.
1425         (hash_table::create_ggc): New function.
1426         (gt_pch_nx): New overload for hash_table.
1428 2014-10-11  Oleg Endo  <olegendo@gcc.gnu.org>
1430         * config/sh/sh.h (TARGET_SH4A_ARCH): Remove macro.
1431         * config/sh/sh.h: Replace uses of TARGET_SH4A_ARCH with TARGET_SH4A.
1432         * config/sh/sh.c: Likewise.
1433         * config/sh/sh-mem.cc: Likewise.
1434         * config/sh/sh.md: Likewise.
1435         * config/sh/predicates.md: Likewise.
1436         * config/sh/sync.md: Likewise.
1438 2014-10-11  Martin Liska  <mliska@suse.cz>
1440         PR middle-end/63376
1441         * cgraphunit.c (symbol_table::process_new_functions): Missing call
1442         for call_cgraph_insertion_hooks added.
1444 2014-10-10  Jakub Jelinek  <jakub@redhat.com>
1446         PR c/63495
1447         * stor-layout.c (min_align_of_type): Don't decrease alignment
1448         through BIGGEST_FIELD_ALIGNMENT or ADJUST_FIELD_ALIGN if
1449         TYPE_USER_ALIGN is set.
1451 2014-10-10  Uros Bizjak  <ubizjak@gmail.com>
1453         PR rtl-optimization/63483
1454         * alias.c (true_dependence_1): Do not exit early for MEM_READONLY_P
1455         references when alignment ANDs are involved.
1456         (write_dependence_p): Ditto.
1457         (may_alias_p): Ditto.
1459 2014-10-10  Marek Polacek  <polacek@redhat.com>
1461         * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_OBJECT_SIZE.
1462         * doc/invoke.texi: Document -fsanitize=object-size.
1463         * flag-types.h (enum sanitize_code): Add SANITIZE_OBJECT_SIZE and
1464         or it into SANITIZE_UNDEFINED.
1465         * gimple-fold.c (gimple_fold_call): Optimize IFN_UBSAN_OBJECT_SIZE.
1466         * internal-fn.c (expand_UBSAN_OBJECT_SIZE): New function.
1467         * internal-fn.def (UBSAN_OBJECT_SIZE): Define.
1468         * opts.c (common_handle_option): Handle -fsanitize=object-size.
1469         * ubsan.c: Include tree-object-size.h.
1470         (ubsan_type_descriptor): Call tree_to_uhwi instead of tree_to_shwi. 
1471         (ubsan_expand_bounds_ifn): Use false instead of 0.
1472         (ubsan_expand_objsize_ifn): New function.
1473         (instrument_object_size): New function.
1474         (pass_ubsan::execute): Add object size instrumentation.
1475         * ubsan.h (ubsan_expand_objsize_ifn): Declare.
1477 2014-10-10  Richard Henderson  <rth@redhat.com>
1479         PR target/63404
1480         * shrink-wrap.c (move_insn_for_shrink_wrap): Don't use single_set.
1481         Restrict the set of expressions we're willing to move.
1483 2014-10-10  Jeff Law  <law@redhat.com>
1485         * ira.c (struct equivalence): Promote INIT_INSNs field to
1486         an rtx_insn_list.  Add comments.
1487         (no_equiv): Promote LIST to an rtx_insn_list.  Update
1488         testing for and creating the special marker.  Use methods
1489         to extract the insn and next pointers.  Promote INSN to an
1490         rtx_insn.
1491         (update_equiv_regs): Update test for special marker in the
1492         INIT_INSNs list.
1494 2014-10-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1496         * configure.ac: Add --enable-fix-cortex-a53-835769 option.
1497         * configure: Regenerate.
1498         * config/aarch64/aarch64.c (aarch64_override_options): Handle
1499         TARGET_FIX_ERR_A53_835769_DEFAULT.
1500         * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): Set Init
1501         value to 2.
1502         * doc/install.texi (aarch64*-*-*): Document 
1503         new --enable-fix-cortex-a53-835769 option.
1505 2014-10-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1506             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1508         * config/aarch64/aarch64.h (FINAL_PRESCAN_INSN): Define.
1509         (ADJUST_INSN_LENGTH): Define.
1510         * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): New option.
1511         * config/aarch64/aarch64.c (is_mem_p): New function.
1512         (is_memory_op): Likewise.
1513         (aarch64_prev_real_insn): Likewise.
1514         (is_madd_op): Likewise.
1515         (dep_between_memop_and_curr): Likewise.
1516         (aarch64_madd_needs_nop): Likewise.
1517         (aarch64_final_prescan_insn): Likewise.
1518         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-835769
1519         and -mno-fix-cortex-a53-835769 options.
1521 2014-10-10  Jakub Jelinek  <jakub@redhat.com>
1523         PR tree-optimization/63464
1524         * tree-switch-conversion.c (struct case_bit_test): Remove
1525         hi and lo fields, add wide_int mask field.
1526         (emit_case_bit_tests): Add MAXVAL argument, rewrite uses of
1527         hi/lo fields into wide_int mask operations, optimize by pretending
1528         minval to be 0 if maxval is small enough.
1529         (process_switch): Adjust caller.
1531 2014-10-10  Richard Biener  <rguenther@suse.de>
1533         PR tree-optimization/63379
1534         * tree-vect-slp.c (vect_get_constant_vectors): Do not compute
1535         a neutral operand for min/max when it is not a reduction chain.
1537 2014-10-10  Richard Biener  <rguenther@suse.de>
1539         PR tree-optimization/63476
1540         * tree-ssa-pre.c (struct bb_bitmap_sets): Add vop_on_exit member.
1541         (BB_LIVE_VOP_ON_EXIT): New define.
1542         (create_expression_by_pieces): Assign VUSEs to stmts.
1543         (compute_avail): Track BB_LIVE_VOP_ON_EXIT.
1544         (pass_pre::execute): Assert virtual SSA form is up-to-date
1545         after insertion.
1547 2014-10-10  Eric Botcazou  <ebotcazou@adacore.com>
1549         * lra-assigns.c (assign_by_spills): Error out on spill failure.
1551 2014-10-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
1553         * pa-polymorphic-call.c (check_stmt_for_type_change): Move
1554         assertion.
1556 2014-10-09  Richard Biener  <rguenther@suse.de>
1558         PR tree-optimization/63380
1559         * tree-ssa-tail-merge.c (stmt_local_def): Exclude stmts that
1560         may trap.
1562 2014-10-09  Joern Rennecke  <joern.rennecke@embecosm.com>
1564         * config/avr/avr.opt (mmcu=): Change to have a string value.
1565         (mn-flash=, mskip-bug, march=, mrmw): New options.
1566         (HeaderInclude): New.
1567         (mmcu=): Remove Var / Init clauses.
1568         * config/avr/avr.h (DRIVER_SELF_SPECS): Translate -mmcu into a
1569         -specs option.
1570         (SYMBOL_FLAG_IO, SYMBOL_FLAG_ADDRESS): Define.
1571         (ASM_OUTPUT_ALIGNED_BSS): Use avr_asm_asm_output_aligned_bss.
1572         (SYMBOL_FLAG_IO_LOW): Define.
1573         (avr_device_to_as, avr_device_to_ld): Don't declare.
1574         (avr_device_to_data_start, avr_device_to_startfiles): Likewise.
1575         (avr_device_to_devicelib, avr_device_to_sp8): Likewise.
1576         (EXTRA_SPEC_FUNCTIONS): Don't define.
1577         (ASM_SPEC): Translate -arch= option to -mmcu= option.
1578         (LINK_SPEC): Translate -arch= option to -m= option.
1579         Don't use device_to_ld / device_to_data_start.
1580         (STARTFILE_SPEC): Now empty.
1581         (ASM_SPEC): Add -%{mrelax: --mlink-relax}.
1582         * config/avr/gen-avr-mmcu-specs.c: New file.
1583         * config/avr/t-avr (gen-avr-mmcu-specs$(build_exeext)): New rule.
1584         (s-device-specs): Likewise.
1585         (GCC_PASSES): Add s-device-specs.
1586         (install-driver): Depend on install-device-specs.
1587         (install-device-specs): New rule.
1588         * config/avr/avr.c (avr_option_override): Look up mcu arch by
1589         avr_arch_index and provide fallback initialization for avr_n_flash.
1590         (varasm.h): #include.
1591         (avr_print_operand) <i>: Allow SYMBOL_REF with SYMBOL_FLAG_IO;
1592         (avr_handle_addr_attribute, avr_eval_addr_attrib): New functions.
1593         (avr_attribute_table): Add "io", "address" and "io_low".
1594         (avr_asm_output_aligned_decl_common): Change type of decl to tree.
1595         Add special handling for symbols with "io" and/or "address" attributes.
1596         (avr_asm_asm_output_aligned_bss): New function.
1597         (avr_encode_section_info): Set SYMBOL_FLAG_IO and SYMBOL_FLAG_ADDRESS
1598         as appropriate.  Handle io_low attribute.
1599         (avr_out_sbxx_branch): Handle symbolic io addresses.
1600         (avr_xload_libgcc_p, avr_nonconst_pointer_addrspace): Use
1601         avr_n_flash instead of avr_current_device->n_flash.
1602         (avr_pgm_check_var_decl, avr_insert_attributes): Likewise.
1603         (avr_emit_movmemhi): Likewise.
1604         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Likewise.
1605         Use TARGET_RMW instead of avr_current_device->dev_attributes.
1606         Don't define avr_current_device->macro (that's the specfile's job).
1607         Use TARGET_SKIP_BUG instead of avr_current_device->errata_skip.
1608         * config/avr/avr.c (avr_2word_insn_p): Likewise.
1609         * config/avr/avr.md (*cpse.ne): Likewise.
1610         (mov<mode>): Use avr_eval_addr_attrib.
1611         (cbi): Change constraint for low_io_address_operand operand to "i".
1612         (sbi, sbix_branch, sbix_branch_bit7, insv.io, insv.not.io): Likewise.
1613         * config/avr/predicates.md (io_address_operand):
1614         Allow SYMBOL_REF with SYMBOL_FLAG_IO.
1615         (low_io_address_operand): Allow SYMBOL_REF with SYMBOL_FLAG_IO_LOW.
1616         * config/avr/avr-protos.h (avr_asm_output_aligned_decl_common):
1617         Update prototype.
1618         (avr_eval_addr_attrib, avr_asm_asm_output_aligned_bss): Prototype.
1619         * config/avr/genmultilib.awk: Use -march=.
1620         Remove Multilib matches processing.
1621         * config/avr/t-multilib, config/avr/avr-tables.opt: Regenerate.
1622         * config/avr/avr-arch.h: Add double include guard.
1623         (avr_mcu_t) <library_name>: Update comment.
1624         * config/avr/driver-avr.c (avr_device_to_as): Delete.
1625         (avr_device_to_ld, avr_device_to_data_start): Likewise.
1626         (avr_device_to_startfiles, avr_device_to_devicelib): Likewise.
1627         (avr_device_to_sp8): Likewise.
1628         * config/avr/genopt.sh:  Instead avr_mcu, emit an Enum for avr_arch.
1630         * doc/extend.texi (io, address): Document new AVR variable attributes.
1631         (io_low): Likewise.
1633 2014-10-09  Marek Polacek  <polacek@redhat.com>
1635         * doc/invoke.texi: Document -fsanitize=bool and -fsanitize=enum.
1637 2014-10-08  Richard Biener  <rguenther@suse.de>
1639         PR tree-optimization/61969
1640         * tree-nrv.c (pass_nrv::execute): Properly test for automatic
1641         variables.
1643 2014-10-09  Richard Biener  <rguenther@suse.de>
1645         PR tree-optimization/63445
1646         * tree-vrp.c (simplify_cond_using_ranges): Only warn about
1647         overflow for non-equality compares.
1649 2014-10-09  Uros Bizjak  <ubizjak@gmail.com>
1651         PR rtl-optimization/57003
1652         * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
1653         also check CALL_INSN_FUNCTION_USAGE for clobbers again after
1654         killing regs_invalidated_by_call.
1656 2014-10-08  Teresa Johnson  <tejohnson@google.com>
1658         PR bootstrap/63432.
1659         * tree-ssa-threadupdate.c (estimated_freqs_path): New function.
1660         (ssa_fix_duplicate_block_edges): Invoke it.
1661         (mark_threaded_blocks): Make two passes to avoid ordering dependences.
1663 2014-10-08  Oleg Endo  <olegendo@gcc.gnu.org>
1665         PR target/52941
1666         * config/sh/sync.md (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
1667         atomic_fetch_<fetchop_name>si_hard,
1668         atomic_fetch_<fetchop_name><mode>_hard, atomic_fetch_nandsi_hard,
1669         atomic_fetch_nand<mode>_hard, atomic_<fetchop_name>_fetchsi_hard,
1670         atomic_<fetchop_name>_fetch<mode>_hard, atomic_nand_fetchsi_hard,
1671         atomic_nand_fetch<mode>_hard): Add missing set of T_REG.
1673 2014-10-08  Rong Xu  <xur@google.com>
1675         * gcov-tool.c (profile_overlap): New driver function
1676         to compute profile overlap. 
1677         (print_overlap_usage_message): New.
1678         (overlap_usage): New.
1679         (do_overlap): New.
1680         (print_usage): Add calls to overlap function.
1681         (main): Ditto.
1682         * doc/gcov-tool.texi: Add documentation.
1684 2014-10-08  Steve Ellcey  <sellcey@mips.com>
1686         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Change
1687         LINUX64_DRIVER_SELF_SPECS to LINUX_DRIVER_SELF_SPECS
1689 2014-10-08  Jan Hubicka  <hubicka@ucw.cz>
1691         * ipa-polymorphic-call.c (extr_type_from_vtbl_store): Do better
1692         pattern matching of MEM_REF.
1693         (check_stmt_for_type_change): Update.
1695 2014-10-08  Steve Ellcey  <sellcey@mips.com>
1697         * config/mips/linux64.h: Remove.
1698         * config/mips/gnu-user64.h: Remove.
1699         * gcc.config (mips*-*-*): Remove references to linux64.h and
1700         gnu-user64.h
1701         * config/mips/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): Replace
1702         with modified version from gnu-user64.h.
1703         (LINUX_DRIVER_SELF_SPECS): Update parts from gnu-user64.h.
1704         (LOCAL_LABEL_PREFIX): Copy from gnu-user64.h.
1705         * config/mips/linux.h (GNU_USER_LINK_EMULATION32): Copy from
1706         linux64.h.
1707         (GNU_USER_LINK_EMULATION64): Ditto.
1708         (GNU_USER_LINK_EMULATIONN32): Ditto.
1709         (GLIBC_DYNAMIC_LINKER32): Ditto.
1710         (GLIBC_DYNAMIC_LINKER64): Ditto.
1711         (GLIBC_DYNAMIC_LINKERN32): Ditto.
1712         (UCLIBC_DYNAMIC_LINKER32): Ditto.
1713         (UCLIBC_DYNAMIC_LINKER64): Ditto.
1714         (UCLIBC_DYNAMIC_LINKERN32): Ditto.
1715         (BIONIC_DYNAMIC_LINKERN32): Ditto.
1716         (GNU_USER_DYNAMIC_LINKERN32): Ditto.
1717         (GLIBC_DYNAMIC_LINKER): Delete.
1718         (UCLIBC_DYNAMIC_LINKER): Delete.
1720 2014-10-08  Joern Rennecke  <joern.rennecke@embecosm.com>
1721             Richard Biener  <rguenther@suse.de>
1723         * cfgexpand.c (expand_debug_expr) <TARGET_MEM_REF>:
1724         Get address space from operand 0 (BASE).
1726 2014-10-07  Iain Sandoe  <iain@codesourcery.com>
1728         PR target/61387
1729         * config/i386/i386.c (x86_output_mi_thunk): Fix darwin fallout.
1731 2014-10-07  Aldy Hernandez  <aldyh@redhat.com>
1733         * dwarf2out.c: Remove current_function_has_inlines.
1734         (gen_subprogram_die): Same.
1735         (gen_inlined_subroutine_die): Same.
1737 2014-10-07  Ilya Tocar  <ilya.tocar@intel.com>
1739         * config/i386/adxintrin.h (_subborrow_u64): Use long long for param
1740         type.
1741         (_addcarry_u64): Ditto.
1742         (_addcarryx_u64): Ditto.
1744 2014-10-07  Eric Botcazou  <ebotcazou@adacore.com>
1746         * cgraph.h (cgraph_node::get_fun): Declare.
1747         * cgraph.c (cgraph_node::get_fun): New method.
1748         * ipa-inline.c (can_inline_edge_p): Use it.
1750 2014-10-07  Eric Botcazou  <ebotcazou@adacore.com>
1752         * lto-opts.c (lto_write_options): Handle -fmath-errno, -fsigned-zeros
1753         and -ftrapping-math.
1754         * lto-wrapper.c (merge_and_complain): Likewise.
1755         (run_gcc): Likewise.
1757 2014-10-06  Rong Xu  <xur@google.com>
1759         * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): New param.
1760         * tree-profile.c: (params.h): New include.
1761         (init_ic_make_global_vars): Make __gcov_indirect_call_topn_callee
1762         and __gcov_indirect_call_topn_counters for
1763         indirect_call_topn_profile.
1764         (gimple_init_edge_profiler): New decls for
1765         __gcov_indirect_call_topn_profiler.
1766         (gimple_gen_ic_profiler): Generate the correct profiler call.
1767         (gimple_gen_ic_func_profiler): Fix format.
1768         * value-prof.c (params.h): New include.
1769         (dump_histogram_value): Hanlde indirect_call_topn counters.
1770         (stream_in_histogram_value): Ditto.
1771         (gimple_indirect_call_to_profile): Use indirect_call_topn
1772         profile when PARAM_INDIR_CALL_TOPN_PROFILE is set.
1773         (gimple_find_values_to_profile): Hanlde indirect_call_topn
1774         counters.
1775         * value-prof.h (enum hist_type): Histrogram type for
1776         indirect_call_topn counters.
1777         * profile.c (instrument_values): Instrument
1778         indirect_call_topn counters.
1780 2014-10-06  Rong Xu  <xur@google.com>
1782         * Makefile.in: Fix dependence.
1783         * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV): Add
1784         indirect call topn profiler.
1785         * gcov-io.h: Ditto.
1787 2014-10-06  Eric Botcazou  <ebotcazou@adacore.com>
1789         * calls.c (expand_call): Do not use the target as the return slot if
1790         it is not sufficiently aligned.
1792 2014-10-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1794         * config/rs6000/rs6000.c (analyze_swaps commentary): Add
1795         discussion of permutes and why we don't handle them.
1797 2014-10-06  Eric Botcazou  <ebotcazou@adacore.com>
1799         * config/sparc/predicates.md (int_register_operand): Delete.
1801 2014-10-06  Eric Botcazou  <ebotcazou@adacore.com>
1803         * dwarf2cfi.c (create_pseudo_cfg): Fix trace numbering.
1805 2014-10-06  Jakub Jelinek  <jakub@redhat.com>
1807         * ubsan.h (ubsan_get_source_location): New prototype.
1808         * ubsan.c (ubsan_source_location_type): New variable.
1809         Function renamed to ...
1810         (ubsan_get_source_location_type): ... this.  Cache
1811         return value in ubsan_source_location_type variable.
1812         (ubsan_source_location, ubsan_create_data): Use
1813         ubsan_get_source_location_type instead of
1814         ubsan_source_location_type.
1815         * asan.c (asan_protect_global): Don't protect globals
1816         with ubsan_get_source_location_type () type.
1817         (asan_add_global): Provide global decl location info
1818         if possible.
1820 2014-10-04  Jan Hubicka  <hubicka@ucw.cz>
1822         * ipa-prop.c (try_make_edge_direct_virtual_call): Remove overactive
1823         sanity check.
1825 2014-10-04  Jan Hubicka  <hubicka@ucw.cz>
1827         * ipa-polymorphic-call.c (possible_placement_new): Fix condition
1828         on size.
1829         (ipa_polymorphic_call_context::restrict_to_inner_type): Do not walk
1830         into vptr pointer.
1831         (ipa_polymorphic_call_context::dump): Fix formating.
1832         (walk_ssa_copies): Add logic avoiding loops; update uses.
1833         * ipa-prop.c (ipa_analyze_call_uses): Compute vptr_changed.
1835 2014-10-02  Mark Wielaard  <mjw@redhat.com>
1837         PR debug/63239
1838         * dwarf2out.c (gen_subprogram_die): When a member function is
1839         explicitly deleted then add a DW_AT_GNU_deleted attribute.
1840         * langhooks.h (struct lang_hooks_for_decls): Add
1841         function_decl_deleted_p langhook.
1842         * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Define.
1843         (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_DELETED_P.
1845 2014-10-04  Jan Hubicka  <hubicka@ucw.cz>
1847         * ipa-polymorphic-call.c (walk_ssa_copies): Recognize
1848         NULL pointer checks.
1849         (ipa_polymorphic_call_context::get_dynamic_type): Return true
1850         if type doesn't change.
1851         * cgraph.h (cgraph_indirect_call_info): New flag.
1852         * cgraph.c (cgraph_node::create_indirect_edge): Initialize it.
1853         (cgraph_node::dump): Dump it.
1854         * ipa-prop.c (ipa_analyze_call_uses):  Ignore return valud
1855         of context.get_dynamic_type.
1856         (ipa_make_edge_direct_to_target): Do not speculate
1857         edge that is already speuclative.
1858         (try_make_edge_direct_virtual_call): Use VPTR_CHANGED; Do not
1859         speculate to __builtin_unreachable
1860         (ipa_write_indirect_edge_info, ipa_read_indirect_edge_info): Stream
1861         vptr_changed.
1862         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use vptr_changed.
1864 2014-10-04  Jan Hubicka  <hubicka@ucw.cz>
1866         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Call
1867         get_dynamic_type; drop TODO.
1868         * ipa-polymorphic-call.c
1869         (ipa_polymorphic_call_context::get_dynamic_type): Be ready
1870         for otr_type to be unknown.
1872 2014-10-04  Trevor Saunders  <tsaunders@mozilla.com>
1874         * common/config/score/score-common.c: Remove.
1875         * config.gcc: Remove support for score-*.
1876         * config/score/constraints.md: Remove.
1877         * config/score/elf.h: Remove.
1878         * config/score/predicates.md: Remove.
1879         * config/score/score-conv.h: Remove.
1880         * config/score/score-generic.md: Remove.
1881         * config/score/score-modes.def: Remove.
1882         * config/score/score-protos.h: Remove.
1883         * config/score/score.c: Remove.
1884         * config/score/score.h: Remove.
1885         * config/score/score.md: Remove.
1886         * config/score/score.opt: Remove.
1887         * doc/md.texi: Don't document score-*.
1889 2014-10-04  Trevor Saunders  <tsaunders@mozilla.com>
1891         PR pch/63429
1892         * genconditions.c: Directly include ggc.h before rtl.h.
1894 2014-10-03  Jan Hubicka  <hubicka@ucw.cz>
1896         * ipa-polymorphic-call.c
1897         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Fix
1898         code determining speculative type.
1899         (ipa_polymorphic_call_context::combine_with): Fix speculation merge.
1901 2014-10-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1903         * altivec.md (altivec_lvsl): New define_expand.
1904         (altivec_lvsl_direct): Rename define_insn from altivec_lvsl.
1905         (altivec_lvsr): New define_expand.
1906         (altivec_lvsr_direct): Rename define_insn from altivec_lvsr.
1907         * rs6000.c (rs6000_expand_builtin): Change to use
1908         altivec_lvs[lr]_direct; remove commented-out code.
1910 2014-10-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1912         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
1913         Issue a warning message when vec_lvsl or vec_lvsr is used with a
1914         little endian target.
1916 2014-10-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1918         * tree-pretty-print.c (dump_location): Make it extern. Dump also
1919         the column.
1920         * tree-pretty-print.h (dump_location): Declare.
1921         * gimple-pretty-print.c (dump_gimple_phi): Use dump_location.
1922         (pp_gimple_stmt_1): Likewise.
1923         (dump_implicit_edges): Likewise.
1924         * gimplify.c (gimplify_call_expr): Use LOCATION_FILE and
1925         LOCATION_LINE.
1928 2014-10-03  David Malcolm  <dmalcolm@redhat.com>
1930         * gcc.c (driver::global_initializations): Remove "const" so
1931         that GCC_DRIVER_HOST_INITIALIZATION can modify decoded_options
1932         and decoded_options_count.
1934 2014-10-03  Maciej W. Rozycki  <macro@codesourcery.com>
1936         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Remove
1937         macro.
1938         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Handle
1939         TARGET_E500_DOUBLE case here.
1941 2014-10-03  Marc Glisse  <marc.glisse@inria.fr>
1943         PR c++/54427
1944         PR c++/57198
1945         PR c++/58845
1946         * doc/extend.texi (Vector Extensions): Document &&, ||, ! in C++.
1948 2014-10-03  Jan Hubicka  <hubicka@ucw.cz>
1950         * cgraph.h (struct indirect_call_info): Add IN_POLYMORPHIC_CDTOR
1951         * lto-cgraph.c (lto_output_edge, input_edge): Stream
1952         in_polymorphic_cdtor
1953         * cgraph.c (symbol_table::create_edge): Compute in_polymorphic_cdtor.
1954         (cgraph_edge::make_speculative): Copy in_polymorphic_cdtor.
1955         * cgraphclones.c (cgraph_edge::clone): Likewise.
1956         * ipa-prop.c (update_jump_functions_after_inlining,
1957         try_make_edge_direct_virtual_call): Pass in_polymorphic_cdtor
1958         to possible_dynamic_type_change.
1959         (decl_maybe_in_construction_p): Allow empty OUTER_TYPE and BASE.
1960         (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
1961         IN_POLY_CDOTR argument.
1963         * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Be ready
1964         for BASE and OUTER_TYPE being NULL.
1965         (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
1966         in_poly_cdtor parameter.
1968 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
1970         * config/i386/i386.c (ix86_expand_vec_perm_vpermi2): Fix up formatting.
1971         (ix86_expand_vec_perm): Only call ix86_expand_vec_perm_vpermi2 if
1972         TARGET_AVX512F.
1973         (expand_vec_perm_1): Likewise.
1975 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
1976             Uros Bizjak  <ubizjak@gmail.com>
1978         PR tree-optimization/61403
1979         * config/i386/i386.c (expand_vec_perm_palignr): Fix a spelling
1980         error in comment.  Also optimize 256-bit vectors for AVX2
1981         or AVX (floating vectors only), provided the first permutation
1982         can be performed in one insn.
1984 2014-10-03  David Malcolm  <dmalcolm@redhat.com>
1986         * gcc.c (class driver): New class.
1987         (main): Reimplement in terms of driver::main, moving most of the
1988         locals to be locals within individual methods of class driver.
1989         The remaining locals "explicit_link_files", "decoded_options" and
1990         "decoded_options_count" are used by multiple driver:: methods, and
1991         so become member data.  Doing so isolates the argc/argv reads and
1992         writes.  Replace "goto out" with a special exit code from
1993         new method driver::prepare_infiles.  Split out the old
1994         implementation of main into the following...
1995         (driver::main): New function, corresponding to the old "main"
1996         implementation.
1997         (driver::set_progname): New function, taken from the old
1998         "main" implementation.
1999         (driver::expand_at_files): Likewise.
2000         (driver::decode_argv): Likewise.
2001         (driver::global_initializations): Likewise.
2002         (driver::build_multilib_strings): Likewise.
2003         (driver::set_up_specs): Likewise.
2004         (driver::putenv_COLLECT_GCC): Likewise.
2005         (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Likewise.
2006         (driver::handle_unrecognized_options): Likewise.
2007         (driver::maybe_print_and_exit): Likewise.
2008         (driver::prepare_infiles): Likewise.
2009         (driver::do_spec_on_infiles): Likewise.
2010         (driver::maybe_run_linker): Likewise.
2011         (driver::final_actions): Likewise.
2012         (driver::get_exit_code): Likewise.
2014 2014-10-03  Yury Gribov  <y.gribov@samsung.com>
2016         * asan.c (asan_finish_file): Disable __asan_init calls for KASan;
2017         don't emit empty ctors.
2019 2014-10-03  Eric Botcazou  <ebotcazou@adacore.com>
2021         * convert.c (convert_to_integer): Do not introduce useless conversions
2022         between integral types.
2024 2014-10-03  David Sherwood  <david.sherwood@arm.com>
2026         * ira-int.h (ira_allocno): Mark hard_regno as signed.
2028 2014-10-03  Ilya Enkovich  <ilya.enkovich@intel.com>
2030         * lra-constraints.c (inherit_in_ebb): Handle calls with
2031         multiple return values.
2032         * caller-save.c (save_call_clobbered_regs): Likewise.
2034 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
2036         * tree-vect-data-refs.c (vect_permute_load_chain,
2037         vect_shift_permute_load_chain): Fix a typo in temporary var names,
2038         suffle3 to shuffle3.
2040         PR libgomp/61200
2041         * omp-low.c (taskreg_contexts): New variable.
2042         (scan_omp_parallel): Push newly created context into taskreg_contexts
2043         vector and move record layout code to finish_taskreg_scan.
2044         (scan_omp_task): Likewise.
2045         (finish_taskreg_scan): New function.
2046         (execute_lower_omp): Call finish_taskreg_scan on all taskreg_contexts
2047         vector elements and release it.
2049         PR target/62128
2050         * config/i386/i386.c (expand_vec_perm_palignr): If op1, op0 order
2051         of palignr arguments can't be used due to min 0 or max - min
2052         too high, try also op0, op1 order of palignr arguments.
2054 2014-10-02  Jan Hubicka  <hubicka@ucw.cz>
2056         * cgraph.h (ipa_polymorphic_call_context):
2057         Turn bools into bitfields; add DYNAMIC; make MAKE_SPECULATIVE
2058         private, add POSSIBLE_DYNAMIC_TYPE_CHANGE.
2059         * ipa-polymorphic-call.c
2060         (ipa_polymorphic_call_context::restrict_to_inner_class): Allow accesses
2061         past end of dynamic types.
2062         (ipa_polymorphic_call_context::stream_out,
2063         speculative_outer_type): Stream dynamic flag.
2064         (ipa_polymorphic_call_context::set_by_decl): Clear DYNAMIC.
2065         (ipa_polymorphic_call_context::ipa_polymorphic_call_context):
2066         Clear DYNAMIC.
2067         (ipa_polymorphic_call_context::get_dynamic_type): Use DYNAMIC;
2068         set it.
2069         (ipa_polymorphic_call_context::combine_with): Propagate dynamic.
2070         * ipa-prop.c (update_jump_functions_after_inlining,
2071         try_make_edge_direct_virtual_call): Use possible_dynamic_type_change.
2073 2014-10-02  Teresa Johnson  <tejohnson@google.com>
2075         * tree-ssa-threadupdate.c (freqs_to_counts_path): Scale frequencies
2076         up when synthesizing counts to avoid rounding errors.
2078 2014-10-02  Teresa Johnson  <tejohnson@google.com>
2080         PR middle-end/63422
2081         * tree-ssa-threadupdate.c (freqs_to_counts_path): Remove
2082         asserts to handle incoming insanities.
2084 2014-10-02  Martin Jambor  <mjambor@suse.cz>
2086         PR tree-optimization/63375
2087         * tree-sra.c (build_access_from_expr_1): Disqualify volatile
2088         references.
2090 2014-10-02  Olivier Hainque  <hainque@adacore.com>
2092         * Makefile.in (CROSS): Define, to @CROSS.
2094 2014-10-02  Jakub Jelinek  <jakub@redhat.com>
2096         PR target/62128
2097         * config/i386/i386.c (expand_vec_perm_1): Try expand_vec_perm_palignr
2098         if it expands to a single insn only.
2099         (expand_vec_perm_palignr): Add SINGLE_INSN_ONLY_P argument.  If true,
2100         fail unless in_order is true.  Add forward declaration.
2101         (expand_vec_perm_vperm2f128): Fix up comment about which permutation
2102         is useful for one_operand_p.
2103         (ix86_expand_vec_perm_const_1): Adjust expand_vec_perm_palignr caller.
2105 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
2107         * cgraphclones.c (build_function_type_skip_args): Do not make new
2108         type variant of old.
2110 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
2112         * ipa-prop.h (ipa_get_controlled_uses): Add hack to avoid ICE
2113         when speculation is added.
2114         (ipa_edge_args): Add polymorphic_call_contexts.
2115         (ipa_get_ith_polymorhic_call_context): New accesor.
2116         (ipa_make_edge_direct_to_target): Add SPECULATIVE parameter.
2117         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Print contexts.
2118         (ipa_compute_jump_functions_for_edge): Compute contexts.
2119         (update_jump_functions_after_inlining): Update contexts.
2120         (ipa_make_edge_direct_to_target): Add SPECULATIVE argument;
2121         update dumping; add speculative edge creation.
2122         (try_make_edge_direct_virtual_call): Add CTX_PTR parameter; handle
2123         context updating.
2124         (update_indirect_edges_after_inlining): Pass down context.
2125         (ipa_edge_duplication_hook): Duplicate contexts.
2126         (ipa_write_node_info): Stream out contexts.
2127         (ipa_read_node_info): Stream in contexts.
2128         * ipa-devirt.c (type_all_derivations_known_p): Avoid ICE on non-ODR
2129         types.
2130         (try_speculative_devirtualization): New function.
2131         * ipa-utils.h (try_speculative_devirtualization): Declare.
2133 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
2135         * ipa.c (walk_polymorphic_call_targets): Avoid ICE when
2136         dumping during WPA.
2138 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
2140         * ipa-prop.c (ipa_modify_formal_parameters): Do not merge
2141         type variants.
2143 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
2145         * ipa-polymorphic-call.c
2146         (ipa_polymorphic_call_context::restrict_to_inner_class):
2147         Rename EXPECTED_TYPE to OTR_TYPE; Validate speculation late;
2148         use speculation_consistent_p to do so; Add CONSDER_BASES
2149         and CONSIDER_PLACEMENT_NEW parameters.
2150         (contains_type_p): Add CONSDER_PLACEMENT_NEW and CONSIDER_BASES;
2151         short circuit obvious cases.
2152         (ipa_polymorphic_call_context::dump): Improve formatting.
2153         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Use
2154         combine_speculation_with to record speculations; Do not ICE when
2155         object is located in pointer type decl; do not ICE for methods
2156         of UNION_TYPE; do not record nonpolymorphic types.
2157         (ipa_polymorphic_call_context::speculation_consistent_p): New method.
2158         (ipa_polymorphic_call_context::combine_speculation_with): New method.
2159         (ipa_polymorphic_call_context::combine_with): New method.
2160         (ipa_polymorphic_call_context::make_speculative): Move here; use
2161         combine speculation.
2162         * cgraph.h (ipa_polymorphic_call_context): Update
2163         restrict_to_inner_class prototype; add offset_by, make_speculative,
2164         combine_with, useless_p, combine_speculation_with and
2165         speculation_consistent_p methods.
2166         (ipa_polymorphic_call_context::offset_by): New method.
2167         (ipa_polymorphic_call_context::useless_p): New method.
2169 2014-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
2171         PR rtl-optimization/62151
2172         * combine.c (can_combine_p): Allow the destination register of INSN
2173         to be clobbered in I3.
2174         (subst): Do not substitute into clobbers of registers.
2176 2014-10-01  Jakub Jelinek  <jakub@redhat.com>
2178         PR debug/63342
2179         * dwarf2out.c (loc_list_from_tree): Handle MEM_REF with non-zero
2180         offset, TARGET_MEM_REF and SSA_NAME.
2182         * config/i386/i386.c (expand_vec_perm_palignr): Handle
2183         256-bit vectors for TARGET_AVX2.
2185         * config/i386/i386.c (expand_vec_perm_vperm2f128): Canonicalize
2186         dfirst permutation.
2188         PR target/63428
2189         * config/i386/i386.c (expand_vec_perm_pshufb): Fix up rperm[0]
2190         argument to avx2_permv2ti.
2192 2014-10-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2194         * config/arm/arm.md (*store_minmaxsi): Disable for arm_restrict_it.
2196 2014-09-30  Uros Bizjak  <ubizjak@gmail.com>
2198         * config/i386/i386.md (fmodxf3): Enable for flag_finite_math_only only.
2199         (fmod<mode>3): Ditto.
2200         (fpremxf4_i387): Ditto.
2201         (reminderxf3): Ditto.
2202         (reminder<mode>3): Ditto.
2203         (fprem1xf4_i387): Ditto.
2205 2014-09-30  Teresa Johnson  <tejohnson@google.com>
2207         * tree-ssa-threadupdate.c (struct ssa_local_info_t): New
2208         duplicate_blocks bitmap.
2209         (remove_ctrl_stmt_and_useless_edges): Ditto.
2210         (create_block_for_threading): Ditto.
2211         (compute_path_counts): New function.
2212         (update_profile): Ditto.
2213         (recompute_probabilities): Ditto.
2214         (update_joiner_offpath_counts): Ditto.
2215         (freqs_to_counts_path): Ditto.
2216         (clear_counts_path): Ditto.
2217         (ssa_fix_duplicate_block_edges): Update profile info.
2218         (ssa_create_duplicates): Pass new parameter.
2219         (ssa_redirect_edges): Remove old profile update.
2220         (thread_block_1): New duplicate_blocks bitmap,
2221         remove old profile update.
2222         (thread_single_edge): Pass new parameter.
2224 2014-09-30  Ilya Tocar  <ilya.tocar@intel.com>
2226         PR middle-end/62120
2227         * varasm.c (decode_reg_name_and_count): Check availability for
2228         registers from ADDITIONAL_REGISTER_NAMES.
2230 2014-09-30  David Malcolm  <dmalcolm@redhat.com>
2232         PR plugins/63410
2233         * Makefile.in (PRETTY_PRINT_H): Add wide-int-print.h.
2234         (PLUGIN_HEADERS): Add pass-instances.def.
2236 2014-09-30  James Greenhalgh  <james.greenhalgh@arm.com>
2238         * config/aarch64/aarch64-simd-builtins.def (sqdmull_laneq): Expand
2239         iterator.
2240         * config/aarch64/aarch64-simd.md
2241         (aarch64_sqdmull_laneq<mode>): Expand iterator.
2242         * config/aarch64/arm_neon.h (vqdmullh_laneq_s16): New.
2243         (vqdmulls_lane_s32): Fix return type.
2244         (vqdmulls_laneq_s32): New.
2246 2014-09-30  Jakub Jelinek  <jakub@redhat.com>
2248         PR inline-asm/63282
2249         * ifcvt.c (dead_or_predicable): Don't call redirect_jump_1
2250         or invert_jump_1 if jump isn't any_condjump_p.
2252 2014-09-30  Terry Guo  <terry.guo@arm.com>
2254         * config/arm/arm-cores.def (cortex-m7): New core name.
2255         * config/arm/arm-fpus.def (fpv5-sp-d16): New fpu name.
2256         (fpv5-d16): Ditto.
2257         * config/arm/arm-tables.opt: Regenerated.
2258         * config/arm/arm-tune.md: Regenerated.
2259         * config/arm/arm.h (TARGET_VFP5): New macro.
2260         * config/arm/bpabi.h (BE8_LINK_SPEC): Include cortex-m7.
2261         * config/arm/vfp.md (<vrint_pattern><SDF:mode>2,
2262         smax<mode>3, smin<mode>3): Enabled for FPU FPv5.
2263         * doc/invoke.texi: Document new cpu and fpu names.
2265 2014-09-30  Jiong Wang  <jiong.wang@arm.com>
2267         * shrink-wrap.c (move_insn_for_shrink_wrap): Check "can_throw_internal"
2268         before sinking insn.
2270 2014-09-30  David Sherwood  <david.sherwood@arm.com>
2272         * ira-int.h (ira_allocno): Add "wmode" field.
2273         * ira-build.c (create_insn_allocnos): Add new "parent" function
2274         parameter.
2275         * ira-conflicts.c (ira_build_conflicts): Add conflicts for registers
2276         that cannot be accessed in wmode.
2278 2014-09-30  Markus Trippelsdorf  <markus@trippelsdorf.de>
2280         * data-streamer.c (bp_unpack_var_len_int): Avoid signed
2281         integer overflow.
2283 2014-09-29  Andi Kleen  <ak@linux.intel.com>
2285         * opts.c (print_filtered_help): Print --param min/max/default
2286         with -Q.
2288 2014-09-29  Kaz Kojima  <kkojima@gcc.gnu.org>
2290         * config/sh/sh.md: Use define_c_enum for "unspec" and "unspecv".
2292 2014-09-29  Eric Botcazou  <ebotcazou@adacore.com>
2294         * tree-vrp.c (get_single_symbol): New function.
2295         (build_symbolic_expr): Likewise.
2296         (symbolic_range_based_on_p): New predicate.
2297         (extract_range_from_binary_expr_1): Deal with single-symbolic ranges
2298         for PLUS and MINUS.  Do not drop symbolic ranges at the end.
2299         (extract_range_from_binary_expr): Try harder for PLUS and MINUS if
2300         operand is symbolic and based on the other operand.
2302 2014-09-29  Chen Gang  <gang.chen.5i5j@gmail.com>
2304         * config/microblaze/microblaze.md (call_internal1): Use VOID
2305         instead of SI to fix "((void (*)(void)) 0)()" issue
2307 2014-09-29  Nick Clifton  <nickc@redhat.com>
2309         * config/msp430/msp430.c (msp430_expand_prologue): Return a
2310         CLOBBER rtx for naked functions.
2311         (msp430_expand_epilogue): Likewise.
2312         (msp430_use_f5_series_hwmult): Cache result.
2313         (use_32bit_hwmult): Cache result.
2314         (msp430_no_hwmult): New function.
2315         (msp430_output_labelref): Use it.
2317 2014-09-29  Jakub Jelinek  <jakub@redhat.com>
2319         PR middle-end/63247
2320         * omp-low.c (lower_omp_target): For OMP_CLAUSE_MAP_POINTER
2321         of ARRAY_TYPE, if not OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION
2322         use the alignment of avar rather than ovar.
2324 2014-09-28  John David Anglin  <danglin@gcc.gnu.org>
2326         * config/pa/pa.c (pa_output_function_epilogue): Only update
2327         last_address when a nonnote insn is found.
2329 2014-09-26  Jan Hubicka  <hubicka@ucw.cz>
2331         PR ipa/60665
2332         * ipa-devirt.c (possible_polymorphic_call_targets): Silence clang warning.
2334 2014-09-26  Jan Hubicka  <hubicka@ucw.cz>
2336         PR ipa/62121
2337         * ipa-polymorphic-call.c (ipa_polymorphic_call_context::restrict_to_inner_class):
2338         fix pasto in checking array size.
2340 2014-09-26  Jan Hubicka  <hubicka@ucw.cz>
2342         PR middle-end/35545
2343         * passes.def (pass_tracer): Move before last dominator pass.
2345 2014-09-26  Thomas Schwinge  <thomas@codesourcery.com>
2347         * gcc.c (try_generate_repro): Remove argument "prog".  Change all
2348         users.
2349         (run_attempt): Handle errors of "pex_run" invocation.
2351 2014-09-26  Christophe Lyon  <christophe.lyon@linaro.org>
2353         * config/aarch64/aarch64-linux.h (ASAN_CC1_SPEC): Define.
2354         (CC1_SPEC): Define.
2355         * config/aarch64/aarch64.c (aarch64_asan_shadow_offset): New function.
2356         (TARGET_ASAN_SHADOW_OFFSET): Define.
2358 2014-09-26  Martin Liska  <mliska@suse.cz>
2360         * cgraph.c (cgraph_node::release_body): New argument keep_arguments
2361         introduced.
2362         * cgraph.h: Likewise.
2363         * cgraphunit.c (cgraph_node::create_wrapper): Usage of new argument introduced.
2364         * ipa-utils.h (polymorphic_type_binfo_p): Safe check for binfos created by Java.
2365         * tree-ssa-alias.c (ao_ref_base_alias_set): Static function transformed to global.
2366         * tree-ssa-alias.h: Likewise.
2368 2014-09-26  Jakub Jelinek  <jakub@redhat.com>
2369             Max Ostapenko  <m.ostapenko@partner.samsung.com>
2371         * common.opt: New option.
2372         * doc/invoke.texi: Describe new option.
2373         * gcc.c (execute): Don't free first string early, but at the end
2374         of the function.  Call retry_ice if compiler exited with
2375         ICE_EXIT_CODE.
2376         (main): Factor out common code.
2377         (print_configuration): New function.
2378         (files_equal_p): Likewise.
2379         (check_repro): Likewise.
2380         (run_attempt): Likewise.
2381         (do_report_bug): Likewise.
2382         (append_text): Likewise.
2383         (try_generate_repro): Likewise
2385 2014-09-25  Andi Kleen  <ak@linux.intel.com>
2387         * config/i386/i386.c (x86_print_call_or_nop): New function.
2388         (x86_function_profiler): Support -mnop-mcount and
2389         -mrecord-mcount.
2390         * config/i386/i386.opt (-mnop-mcount, -mrecord-mcount): Add
2391         * doc/invoke.texi: Document -mnop-mcount, -mrecord-mcount.
2393 2014-09-25  Jan Hubicka  <hubicka@ucw.cz>
2395         * ipa-prop.c (ipa_intraprocedural_devirtualization): Remove.
2396         * ipa-prop.h (ipa_intraprocedural_devirtualization): Remove.
2397         * tree-ssa-prop.c (eliminate_dom_walker::before_dom_children):
2398         Remove.
2400 2014-09-25  Jan Hubicka  <hubicka@ucw.cz>
2402         * ipa-utils.h (subbinfo_with_vtable_at_offset, type_all_derivations_known_p,
2403         type_known_to_have_no_deriavations_p, types_must_be_same_for_odr,
2404         types_odr_comparable): Declare.
2405         (polymorphic_type_binfo_p): Move here from ipa-devirt.c
2406         * ipa-polymorphic-call.c: New file.
2407         (contains_polymorphic_type_p, possible_placement_new,
2408         ipa_polymorphic_call_context::restrict_to_inner_class,
2409         contains_type_p, decl_maybe_in_construction_p,
2410         ipa_polymorphic_call_context::stream_out,
2411         ipa_polymorphic_call_context::debug,
2412         ipa_polymorphic_call_context::stream_in,
2413         ipa_polymorphic_call_context::set_by_decl,
2414         ipa_polymorphic_call_context::set_by_invariant,
2415         walk_ssa_copies,
2416         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
2417         type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
2418         extr_type_from_vtbl_ptr_store, record_known_type
2419         check_stmt_for_type_change,
2420         ipa_polymorphic_call_context::get_dynamic_type): Move here from
2421         ipa-devirt.c
2422         * ipa-devirt.c: No longer include data-streamer.h, lto-streamer.h
2423         and streamer-hooks.h
2424         (contains_polymorphic_type_p, possible_placement_new,
2425         ipa_polymorphic_call_context::restrict_to_inner_class,
2426         contains_type_p, decl_maybe_in_construction_p,
2427         ipa_polymorphic_call_context::stream_out,
2428         ipa_polymorphic_call_context::debug,
2429         ipa_polymorphic_call_context::stream_in,
2430         ipa_polymorphic_call_context::set_by_decl,
2431         ipa_polymorphic_call_context::set_by_invariant,
2432         walk_ssa_copies,
2433         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
2434         type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
2435         extr_type_from_vtbl_ptr_store, record_known_type
2436         check_stmt_for_type_change,
2437         ipa_polymorphic_call_context::get_dynamic_type): Move to
2438         ipa-polymorphic-call.c
2439         (type_all_derivations_known_p, types_odr_comparable,
2440         types_must_be_same_for_odr): Export.
2441         (type_known_to_have_no_deriavations_p): New function.
2442         * Makefile.in: Add ipa-polymorphic-call.c
2444 2014-09-25  Jan Hubicka  <hubicka@ucw.cz>
2446         * ipa-devirt.c (polymorphic_call_target_d): Add SPECULATIVE; reorder
2447         for better storage.
2448         (polymorphic_call_target_hasher::hash): Hash SPECULATIVE.
2449         (possible_polymorphic_call_targets): Instead of computing both
2450         speculative and non-speculative answers, do just one at a time.
2451         Replace NONSPECULATIVE_TARGETSP parameter with SPECULATIVE flag.
2452         (dump_targets): Break out from ...
2453         (dump_possible_polymorphic_call_targets): ... here; dump both speculative
2454         and non-speculative lists.
2455         (ipa_devirt): Update for new possible_polymorphic_call_targets API.
2456         * ipa-utils.h (possible_polymorphic_call_targets): Update.
2458 2014-09-25  Uros Bizjak  <ubizjak@gmail.com>
2460         PR rtl-optimization/63348
2461         * emit-rtl.c (try_split): Do not emit extra barrier.
2463 2014-09-25  James Greenhalgh  <james.greenhalgh@arm.com>
2465         * config/aarch64/aarch64-protos.h (aarch64_simd_const_bounds): Delete.
2466         * config/aarch64/aarch64-simd.md (aarch64_<sur>q<r>shl<mode>): Use
2467         new predicates.
2468         (aarch64_<sur>shll2_n<mode>): Likewise.
2469         (aarch64_<sur>shr_n<mode>): Likewise.
2470         (aarch64_<sur>sra_n<mode>: Likewise.
2471         (aarch64_<sur>s<lr>i_n<mode>): Likewise.
2472         (aarch64_<sur>qshl<u>_n<mode>): Likewise.
2473         * config/aarch64/aarch64.c (aarch64_simd_const_bounds): Delete.
2474         * config/aarch64/iterators.md (ve_mode): New.
2475         (offsetlr): Remap to infix text for use in new predicates.
2476         * config/aarch64/predicates.md (aarch64_simd_shift_imm_qi): New.
2477         (aarch64_simd_shift_imm_hi): Likewise.
2478         (aarch64_simd_shift_imm_si): Likewise.
2479         (aarch64_simd_shift_imm_di): Likewise.
2480         (aarch64_simd_shift_imm_offset_qi): Likewise.
2481         (aarch64_simd_shift_imm_offset_hi): Likewise.
2482         (aarch64_simd_shift_imm_offset_si): Likewise.
2483         (aarch64_simd_shift_imm_offset_di): Likewise.
2484         (aarch64_simd_shift_imm_bitsize_qi): Likewise.
2485         (aarch64_simd_shift_imm_bitsize_hi): Likewise.
2486         (aarch64_simd_shift_imm_bitsize_si): Likewise.
2487         (aarch64_simd_shift_imm_bitsize_di): Likewise.
2489 2014-09-25  Jiong Wang  <jiong.wang@arm.com>
2491         * shrink-wrap.c (move_insn_for_shrink_wrap): Initialize the live-in of
2492         new created BB as the intersection of live-in from "old_dest" and
2493         live-out from "bb".
2495 2014-09-25  Felix Yang  <felix.yang@huawei.com>
2497         * lra.c (lra_set_insn_recog_data): Fix typo in comment.
2498         * genautomata.c (merge_states): Ditto.
2500 2014-09-25  Oleg Endo  <olegendo@gcc.gnu.org>
2502         PR target/62218
2503         * config/sh/sync.md (atomic_test_and_set_soft_imask): Fix typo
2504         in instruction sequence.
2506 2014-09-25  Nick Clifton  <nickc@redhat.com>
2508         PR target/62218
2509         * config/sh/sync.md (atomic_fetch_nand<mode>_soft_imask): Fix typo
2510         in instruction sequence.
2512 2014-09-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2514         PR target/63335
2515         * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin):
2516         Exclude VSX_BUILTIN_XVCMPGEDP_P from special handling.
2518 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2519             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2520             Anna Tikhonova  <anna.tikhonova@intel.com>
2521             Ilya Tocar  <ilya.tocar@intel.com>
2522             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2523             Ilya Verbin  <ilya.verbin@intel.com>
2524             Kirill Yukhin  <kirill.yukhin@intel.com>
2525             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2527         * config/i386/sse.md
2528         (define_expand "<avx2_avx512f>_perm<mode>"): Rename to ...
2529         (define_expand "<avx2_avx512>_perm<mode>"): ... this.
2530         (define_expand "avx512f_perm<mode>_mask"): Rename to ...
2531         (define_expand "<avx512>_perm<mode>_mask"): ... this.
2532         Use VI8F_256_512 mode iterator.
2533         (define_insn "<avx2_avx512f>_perm<mode>_1<mask_name>"): Rename to ...
2534         (define_insn "<avx2_avx512bw>_perm<mode>_1<mask_name>"): ... this.
2536 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2537             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2538             Anna Tikhonova  <anna.tikhonova@intel.com>
2539             Ilya Tocar  <ilya.tocar@intel.com>
2540             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2541             Ilya Verbin  <ilya.verbin@intel.com>
2542             Kirill Yukhin  <kirill.yukhin@intel.com>
2543             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2545         * config/i386/sse.md
2546         (define_insn "avx_movshdup256<mask_name>"): Add masking.
2547         (define_insn "sse3_movshdup<mask_name>"): Ditto.
2548         (define_insn "avx_movsldup256<mask_name>"): Ditto.
2549         (define_insn "sse3_movsldup<mask_name>"): Ditto.
2550         (define_insn "vec_dupv2df<mask_name>"): Ditto.
2551         (define_insn "*vec_concatv2df"): Add EVEX version.
2553 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2554             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2555             Anna Tikhonova  <anna.tikhonova@intel.com>
2556             Ilya Tocar  <ilya.tocar@intel.com>
2557             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2558             Ilya Verbin  <ilya.verbin@intel.com>
2559             Kirill Yukhin  <kirill.yukhin@intel.com>
2560             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2562         * config/i386/sse.md
2563         (define_insn "vec_set<mode>_0"): Add EVEX version.
2565 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2566             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2567             Anna Tikhonova  <anna.tikhonova@intel.com>
2568             Ilya Tocar  <ilya.tocar@intel.com>
2569             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2570             Ilya Verbin  <ilya.verbin@intel.com>
2571             Kirill Yukhin  <kirill.yukhin@intel.com>
2572             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2574         * config/i386/sse.md
2575         (define_insn
2576         "<fixsuffix>fix_trunc<mode><sselongvecmodelower>2<mask_name><round_saeonly_name>"):
2577         New.
2578         (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
2579         (define_insn "ufix_trunc<mode><sseintvecmodelower>2<mask_name>"): Ditto.
2580         (define_insn "sse2_cvtss2sd<round_saeonly_name>"): Change
2581         "nonimmediate_operand" to "<round_saeonly_nimm_predicate>".
2582         (define_insn "avx_cvtpd2ps256<mask_name>"): Add masking.
2583         (define_expand "sse2_cvtpd2ps_mask): New.
2584         (define_insn "*sse2_cvtpd2ps<mask_name>"): Add masking.
2585         (define_insn "sse2_cvtps2pd<mask_name>"): Add masking.
2587 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2588             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2589             Anna Tikhonova  <anna.tikhonova@intel.com>
2590             Ilya Tocar  <ilya.tocar@intel.com>
2591             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2592             Ilya Verbin  <ilya.verbin@intel.com>
2593             Kirill Yukhin  <kirill.yukhin@intel.com>
2594             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2596         * config/i386/i386.c
2597         (avx512f_ufix_notruncv8dfv8si_mask_round): Rename to ...
2598         (ufix_notruncv8dfv8si2_mask_round): ... this.
2599         * config/i386/sse.md
2600         (define_insn "avx512f_cvtdq2pd512_2): Update TARGET check.
2601         (define_insn "avx_cvtdq2pd256_2"): Add EVEX version.
2602         (define_insn "sse2_cvtdq2pd<mask_name>"): Add masking.
2603         (define_insn "avx_cvtpd2dq256<mask_name>"): Ditto.
2604         (define_expand "sse2_cvtpd2dq"): Delete.
2605         (define_insn "sse2_cvtpd2dq<mask_name>"): Add masking and
2606         make 2nd operand const0 vector.
2607         (define_insn "avx512f_ufix_notruncv8dfv8si<mask_name><round_name>"):
2608         Delete.
2609         (define_mode_attr pd2udqsuff): New.
2610         (define_insn
2611         "ufix_notrunc<mode><si2dfmodelower>2<mask_name><round_name>"): Ditto.
2612         (define_insn "ufix_notruncv2dfv2si2<mask_name>"): Ditto.
2613         (define_insn "*avx_cvttpd2dq256_2"): Delete.
2614         (define_expand "sse2_cvttpd2dq"): Ditto.
2615         (define_insn "sse2_cvttpd2dq<mask_name>"): Add masking and
2616         make 2nd operand const0 vector.
2618 2014-09-25  Jakub Jelinek  <jakub@redhat.com>
2620         PR tree-optimization/63341
2621         * tree-vectorizer.h (vect_create_data_ref_ptr,
2622         vect_create_addr_base_for_vector_ref): Add another tree argument
2623         defaulting to NULL_TREE.
2624         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add byte_offset
2625         argument, pass it down to vect_create_addr_base_for_vector_ref.
2626         (vect_create_addr_base_for_vector_ref): Add byte_offset argument,
2627         add that to base_offset too if non-NULL.
2628         * tree-vect-stmts.c (vectorizable_load): Add byte_offset variable,
2629         for dr_explicit_realign_optimized set it to vector byte size
2630         - 1 instead of setting offset, pass byte_offset down to
2631         vect_create_data_ref_ptr.
2633 2014-09-24  Jan Hubicka  <hubicka@ucw.cz>
2635         * ipa-devirt.c (possible_polymorphic_call_targets): Remove
2636         forgotten debug output; canonicalize querries more wtih LTO.
2638 2014-09-24  Jan Hubicka  <hubicka@ucw.cz>
2640         * cgraph.h (class ipa_polymorphic_call_context): Move here from
2641         ipa-utils.h; add stream_int and stream_out methods.
2642         (cgraph_indirect_call_info): Remove SPECILATIVE_OFFSET,
2643         OUTER_TYPE, SPECULATIVE_OUTER_TYPE, MAYBE_IN_CONSTRUCTION
2644         MAYBE_DERIVED_TYPE and SPECULATIEVE_MAYBE_DERIVED_TYPE;
2645         add CONTEXT.
2646         (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
2647         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
2648         ipa_polymorphic_call_context::clear_speculation,
2649         ipa_polymorphic_call_context::clear_outer_type): Move here from
2650         ipa-utils.h
2651         * ipa-utils.h (class ipa_polymorphic_call_context): Move to cgraph.h
2652         (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
2653         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
2654         ipa_polymorphic_call_context::clear_speculation,
2655         ipa_polymorphic_call_context::clear_outer_type): Likewise.
2656         * ipa-devirt.c: Include data-streamer.h, lto-streamer.h and
2657         streamer-hooks.h
2658         (ipa_polymorphic_call_context::stream_out): New method.
2659         (ipa_polymorphic_call_context::stream_in): New method.
2660         (noncall_stmt_may_be_vtbl_ptr_store): Add forgotten static.
2661         * ipa-prop.c (ipa_analyze_indirect_call_uses): Do not care about
2662         OUTER_TYPE.
2663         (ipa_analyze_call_uses): Simplify.
2664         (update_indirect_edges_after_inlining): Do not care about outer_type.
2665         (ipa_write_indirect_edge_info): Update.
2666         (ipa_write_indirect_edge_info): Likewise.
2667         * cgraph.c (cgraph_node::create_indirect_edge): Simplify.
2668         (dump_edge_flags): Break out from ...
2669         (cgraph_node::dump): ... here; dump indirect edges.
2671 2014-09-24  Jan Hubicka  <hubicka@ucw.cz>
2673         * ipa-utils.h (polymorphic_call_context): Add
2674         metdhos dump, debug and clear_outer_type.
2675         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
2676         (ipa_polymorphic_call_context::clear_outer_type): New method.
2677         * ipa-prop.c (ipa_analyze_call_uses): Do not overwrite offset.
2678         * ipa-devirt.c (types_odr_comparable): New function.
2679         (types_must_be_same_for_odr): New function.
2680         (odr_subtypes_equivalent_p): Simplify.
2681         (possible_placement_new): Break out from ...
2682         (ipa_polymorphic_call_context::restrict_to_inner_type): ... here;
2683         be more cuatious about returning false in cases the context may be
2684         valid in derived type or via placement new.
2685         (contains_type_p): Clear maybe_derived_type
2686         (ipa_polymorphic_call_context::dump): New method.
2687         (ipa_polymorphic_call_context::debug): New method.
2688         (ipa_polymorphic_call_context::set_by_decl): Cleanup comment.
2689         (ipa_polymorphic_call_context::set_by_invariant): Simplify.
2690         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
2691         (possible_polymorphic_call_targets): Trust context.restrict_to_inner_class
2692         to suceed on all valid cases; remove confused sanity check.
2693         (dump_possible_polymorphic_call_targets): Simplify.
2695 2014-09-24  Aldy Hernandez  <aldyh@redhat.com>
2697         * cgraph.h, dbxout.c, dwarfout2.c, gimple-fold.c,
2698         lto-streamer-out.c, print-tree.c, symtab.c, tree-inline.c,
2699         tree-streamer-in.c, tree-streamer-out.c, tree.c, tree.h,
2700         varpool.c: Rename all instances of DECL_ABSTRACT to
2701         DECL_ABSTRACT_P.
2703 2014-09-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2705         * config/rs6000/rs6000.c (insn_is_swappable_p): Don't provide
2706         special handling for stores whose SET_SRC is an UNSPEC (such as
2707         UNSPEC_STVE).
2709 2014-09-24  Jiong Wang  <jiong.wang@arm.com>
2711         * shrink-wrap.c (move_insn_for_shrink_wrap): Add further check when
2712         !REG_P (src) to release more instruction sink opportunities.
2714 2014-09-24  Wilco Dijkstra  <wilco.dijkstra@arm.com>
2716         * config/aarch64/aarch64.c (aarch64_register_move_cost): Add register
2717         move costs for 128-bit types.
2719 2014-09-24  Martin Jambor  <mjambor@suse.cz>
2721         * ipa-prop.c (ipa_edge_duplication_hook): Update controlled_use_count
2722         when duplicating a PASS_THROUGH jump function when creating a
2723         speculative edge.
2725 2014-09-24  Marek Polacek  <polacek@redhat.com>
2727         PR c/61405
2728         PR c/53874
2729         * asan.c (maybe_instrument_call): Add default case.
2730         * ipa-pure-const.c (special_builtin_state): Likewise.
2731         * predict.c (expr_expected_value_1): Likewise.
2732         * lto-streamer-out.c (write_symbol): Initialize variable.
2734 2014-09-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2736         * config/aarch64/arm_neon.h (vmuld_lane_f64): Use macro for getting
2737         the lane.
2738         (vmuld_laneq_f64): Likewise.
2739         (vmuls_lane_f32): Likewise.
2740         (vmuls_laneq_f32): Likewise.
2742 2014-09-24  Kirill Yukhin  <kirill.yukhin@intel.com>
2744         PR bootstrap/63235
2745         * varpool.c (varpool_node::add): Pass decl attributes
2746         to lookup_attribute.
2748 2014-09-24  Jakub Jelinek  <jakub@redhat.com>
2750         PR sanitizer/63316
2751         * asan.c (asan_expand_check_ifn): Fix up align >= 8 optimization.
2753 2014-09-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2755         PR tree-optimization/63266
2756         * tree-ssa-math-opts.c (struct symbolic_number): Add comment about
2757         marker for unknown byte value.
2758         (MARKER_MASK): New macro.
2759         (MARKER_BYTE_UNKNOWN): New macro.
2760         (HEAD_MARKER): New macro.
2761         (do_shift_rotate): Mark bytes with unknown values due to sign
2762         extension when doing an arithmetic right shift. Replace hardcoded
2763         mask for marker by new MARKER_MASK macro.
2764         (find_bswap_or_nop_1): Likewise and adjust ORing of two symbolic
2765         numbers accordingly.
2767 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2768             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2769             Anna Tikhonova  <anna.tikhonova@intel.com>
2770             Ilya Tocar  <ilya.tocar@intel.com>
2771             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2772             Ilya Verbin  <ilya.verbin@intel.com>
2773             Kirill Yukhin  <kirill.yukhin@intel.com>
2774             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2776         * config/i386/sse.md
2777         (define_insn
2778         "<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode><mask_name>"):
2779         Add masking.
2780         (define_insn "fix_truncv8sfv8si2<mask_name>"): Ditto.
2781         (define_insn "fix_truncv4sfv4si2<mask_name>"): Ditto.
2783 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2784             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2785             Anna Tikhonova  <anna.tikhonova@intel.com>
2786             Ilya Tocar  <ilya.tocar@intel.com>
2787             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2788             Ilya Verbin  <ilya.verbin@intel.com>
2789             Kirill Yukhin  <kirill.yukhin@intel.com>
2790             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2792         * config/i386/sse.md
2793         (define_c_enum "unspec"): Add UNSPEC_PSHUFHW, UNSPEC_PSHUFLW.
2794         (define_insn "<mask_codefor>avx512bw_pshuflwv32hi<mask_name>"): New.
2795         (define_expand "avx512vl_pshuflwv3_mask"): Ditto.
2796         (define_insn "avx2_pshuflw_1<mask_name>"): Add masking.
2797         (define_expand "avx512vl_pshuflw_mask"): New.
2798         (define_insn "sse2_pshuflw_1<mask_name>"): Add masking.
2799         (define_insn "<mask_codefor>avx512bw_pshufhwv32hi<mask_name>"): New.
2800         (define_expand "avx512vl_pshufhwv3_mask"): Ditto.
2801         (define_insn "avx2_pshufhw_1<mask_name>"): Add masking.
2802         (define_expand "avx512vl_pshufhw_mask"): New.
2803         (define_insn "sse2_pshufhw_1<mask_name>"): Add masking.
2805 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2806             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2807             Anna Tikhonova  <anna.tikhonova@intel.com>
2808             Ilya Tocar  <ilya.tocar@intel.com>
2809             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2810             Ilya Verbin  <ilya.verbin@intel.com>
2811             Kirill Yukhin  <kirill.yukhin@intel.com>
2812             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2814         * config/i386/i386.c
2815         (ix86_expand_args_builtin): Handle CODE_FOR_sse2_shufpd,
2816         CODE_FOR_sse2_sse2_shufpd_mask, CODE_FOR_sse2_avx512dq_shuf_f64x2_mask,
2817         CODE_FOR_sse2_avx512dq_shuf_i64x2_mask,
2818         CODE_FOR_sse2_avx512vl_shuf_i32x4_mask and
2819         CODE_FOR_sse2_avx512vl_shuf_f32x4_mask.
2820         * config/i386/sse.md
2821         (define_expand "avx512dq_shuf_<shuffletype>64x2_mask"): New.
2822         (define_insn
2823         "<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>"): Ditto.
2824         (define_expand "avx512vl_shuf_<shuffletype>32x4_mask"): Ditto.
2825         (define_insn
2826         "<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>"): Ditto.
2827         (define_expand "avx512vl_pshufdv3_mask"): Ditto.
2828         (define_insn "avx2_pshufd_1<mask_name>"): Add masking.
2829         (define_expand "avx512vl_pshufd_mask"): New.
2830         (define_insn "sse2_pshufd_1<mask_name>"): Add masking.
2832 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2833             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2834             Anna Tikhonova  <anna.tikhonova@intel.com>
2835             Ilya Tocar  <ilya.tocar@intel.com>
2836             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2837             Ilya Verbin  <ilya.verbin@intel.com>
2838             Kirill Yukhin  <kirill.yukhin@intel.com>
2839             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2841         * config/i386/i386.c
2842         (CODE_FOR_avx2_extracti128): Rename to ...
2843         (CODE_FOR_avx_vextractf128v4di): this.
2844         (CODE_FOR_avx2_inserti128): Rename to ...
2845         (CODE_FOR_avx_vinsertf128v4di): this.
2846         (ix86_expand_args_builtin): Handle CODE_FOR_avx_vinsertf128v4di,
2847         CODE_FOR_avx_vextractf128v4di.
2848         (ix86_expand_args_builtin): Handle CODE_FOR_avx512dq_vinsertf32x8_mask,
2849         CODE_FOR_avx512dq_vinserti32x8_mask, CODE_FOR_avx512vl_vinsertv4df,
2850         CODE_FOR_avx512vl_vinsertv4di, CODE_FOR_avx512vl_vinsertv8sf,
2851         CODE_FOR_avx512vl_vinsertv8si.
2852         * config/i386/sse.md
2853         (define_expand
2854         "<extract_type>_vinsert<shuffletype><extract_suf>_mask"): Use
2855         AVX512_VEC mode iterator.
2856         (define_insn
2857         "<mask_codefor><extract_type>_vinsert<shuffletype><extract_suf>_1<mask_name>"):
2858         Ditto.
2859         (define_expand
2860         "<extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask"): Use
2861         AVX512_VEC_2 mode iterator.
2862         (define_insn "vec_set_lo_<mode><mask_name>"): New.
2863         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
2864         (define_expand "avx512vl_vinsert<mode>"): Ditto.
2865         (define_insn "avx2_vec_set_lo_v4di"): Delete.
2866         (define_insn "avx2_vec_set_hi_v4di"): Ditto.
2867         (define_insn "vec_set_lo_<mode><mask_name>"): Add masking.
2868         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
2869         (define_insn "vec_set_lo_<mode><mask_name>"): Ditto.
2870         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
2871         (define_expand "avx2_extracti128"): Delete.
2872         (define_expand "avx2_inserti128"): Ditto.
2874 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2875             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2876             Anna Tikhonova  <anna.tikhonova@intel.com>
2877             Ilya Tocar  <ilya.tocar@intel.com>
2878             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2879             Ilya Verbin  <ilya.verbin@intel.com>
2880             Kirill Yukhin  <kirill.yukhin@intel.com>
2881             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2883         * config/i386/sse.md
2884         (define_insn "avx2_<code>v16qiv16hi2<mask_name>"): Add masking.
2885         (define_insn "avx512bw_<code>v32qiv32hi2<mask_name>"): New.
2886         (define_insn "sse4_1_<code>v8qiv8hi2<mask_name>"): Add masking.
2887         (define_insn "avx2_<code>v8qiv8si2<mask_name>"): Ditto.
2888         (define_insn "sse4_1_<code>v4qiv4si2<mask_name>"): Ditto.
2889         (define_insn "avx2_<code>v8hiv8si2<mask_name>"): Ditto.
2890         (define_insn "sse4_1_<code>v4hiv4si2<mask_name>"): Ditto.
2891         (define_insn "avx2_<code>v4qiv4di2<mask_name>"): Ditto.
2892         (define_insn "sse4_1_<code>v2qiv2di2<mask_name>"): Ditto.
2893         (define_insn "avx2_<code>v4hiv4di2<mask_name>"): Ditto.
2894         (define_insn "sse4_1_<code>v2hiv2di2<mask_name>"): Ditto.
2895         (define_insn "avx2_<code>v4siv4di2<mask_name>"): Ditto.
2896         (define_insn "sse4_1_<code>v2siv2di2<mask_name>"): Ditto.
2898 2014-09-24  Zhenqiang Chen  <zhenqiang.chen@arm.com>
2900         PR rtl-optimization/63210
2901         * ira-color.c (assign_hard_reg): Ignore conflict cost if the
2902         HARD_REGNO is not available for CONFLICT_A.
2904 2014-09-23  Andi Kleen  <ak@linux.intel.com>
2906         * cgraph.h (symtab_node): Add no_reorder attribute.
2907         (symbol_table::output_asm_statements): Remove.
2908         * cgraphclones.c (cgraph_node::create_clone): Copy no_reorder.
2909         (cgraph_node::create_version_clone): Dito.
2910         (symbol_table::output_asm_statements): Remove.
2911         * trans-mem.c (ipa_tm_create_version_alias): Dito.
2912         * cgraphunit.c (varpool_node::finalize_decl): Check no_reorder.
2913         (output_in_order): Add no_reorder flag. Only handle no_reorder
2914         nodes when set.
2915         (symbol_table::compile): Add separate pass for no_reorder nodes.
2916         (process_common_attributes): Set no_reorder flag in symtab node.
2917         Add node argument.
2918         (process_function_and_variable_attributes): Pass symtab nodes to
2919         process_common_attributes.
2920         * doc/extend.texi (no_reorder): Document no_reorder attribute.
2921         * lto-cgraph.c (lto_output_node): Serialize no_reorder.
2922         (lto_output_varpool_node): Dito.
2923         (input_overwrite_node): Dito.
2924         (input_varpool_node): Dito.
2925         * varpool.c (varpool_node::add): Set no_reorder attribute.
2926         (symbol_table::remove_unreferenced_decls): Handle no_reorder.
2927         (symbol_table::output_variables): Dito.
2928         * symtab.c (symtab_node::dump_base): Print no_reorder.
2930 2014-09-23  Jiong Wang  <jiong.wang@arm.com>
2932         * shrink-wrap.c (try_shrink_wrapping): Check PIC_OFFSET_TABLE_REGNUM not
2933         be INVALID_REGNUM.
2935 2014-09-23  Thomas Schwinge  <thomas@codesourcery.com>
2937         * configure: Regenerate.
2939 2014-09-23  Alan Lawrence  <alan.lawrence@arm.com>
2941         * combine.c (simplify_shift_const_1): Allow commuting (ashiftrt (xor))
2942         when result_mode == shift_mode.
2944 2014-09-23  Kostya Serebryany  <kcc@google.com>
2946         Update to match the changed asan API.
2947         * asan.c (asan_global_struct): Update the __asan_global definition
2948         to match the new API.
2949         (asan_add_global): Ditto.
2950         * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v3
2951         to __asan_init_v4.
2953 2014-09-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
2955         * config/rs6000/rs6000.md (f32_vsx): New mode attributes to
2956         refine the constraints used on 32/64-bit floating point moves.
2957         (f32_av): Likewise.
2958         (f64_vsx): Likewise.
2959         (f64_dm): Likewise.
2960         (f64_av): Likewise.
2961         (BOOL_REGS_OUTPUT): Use wt constraint for TImode instead of wa.
2962         (BOOL_REGS_OP1): Likewise.
2963         (BOOL_REGS_OP2): Likewise.
2964         (BOOL_REGS_UNARY): Likewise.
2965         (mov<mode>_hardfloat, SFmode/SDmode): Tighten down constraints for
2966         32/64-bit floating point moves.  Do not use wa, instead use ww/ws
2967         for moves involving VSX registers.  Do not use constraints that
2968         target VSX registers for decimal types.
2969         (mov<mode>_hardfloat32, DFmode/DDmode): Likewise.
2970         (mov<mode>_hardfloat64, DFmode/DDmode): Likewise.
2972 2014-09-23  Jan Hubicka  <hubicka@ucw.cz>
2974         * tree.h (int_bit_position): Turn into inline function;
2975         implement using wide int.
2976         * tree.c (int_bit_position): Remove.
2978 2014-09-23  Richard Sandiford  <richard.sandiford@arm.com>
2980         PR bootstrap/63280
2981         * target-globals.c (target_globals::~target_globals): Fix location
2982         of ira_int destruction.
2984 2014-09-23  Renlin Li  <renlin.li@arm.com>
2986         * config/aarch64/aarch64.md (return): New.
2987         (simple_return): Likewise.
2988         * config/aarch64/aarch64.c (aarch64_use_return_insn_p): New.
2989         * config/aarch64/aarch64-protos.h (aarch64_use_return_insn_p): New.
2991 2014-09-23  Wilco Dijkstra  <wdijkstr@arm.com>
2993         * common/config/aarch64/aarch64-common.c:
2994         (default_options aarch_option_optimization_table):
2995         Default to -fsched-pressure.
2997 2014-09-23  Ilya Enkovich  <ilya.enkovich@intel.com>
2999         * cfgcleanup.c (try_optimize_cfg): Do not remove label
3000         with LABEL_PRESERVE_P flag set.
3002 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3003             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3004             Anna Tikhonova  <anna.tikhonova@intel.com>
3005             Ilya Tocar  <ilya.tocar@intel.com>
3006             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3007             Ilya Verbin  <ilya.verbin@intel.com>
3008             Kirill Yukhin  <kirill.yukhin@intel.com>
3009             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3011         * config/i386/sse.md
3012         (define_expand "avx_shufpd256<mask_expand4_name>"): Add masking.
3013         (define_insn "avx_shufpd256_1<mask_name>"): Ditto.
3014         (define_expand "sse2_shufpd<mask_expand4_name>"): Ditto.
3015         (define_insn "sse2_shufpd_v2df_mask"): New.
3017 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3018             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3019             Anna Tikhonova  <anna.tikhonova@intel.com>
3020             Ilya Tocar  <ilya.tocar@intel.com>
3021             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3022             Ilya Verbin  <ilya.verbin@intel.com>
3023             Kirill Yukhin  <kirill.yukhin@intel.com>
3024             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3026         * config/i386/sse.md
3027         (define_expand "avx_shufps256<mask_expand4_name>"): Add masking.
3028         (define_insn "avx_shufps256_1<mask_name>"): Ditto.
3029         (define_expand "sse_shufps<mask_expand4_name>"): Ditto.
3030         (define_insn "sse_shufps_v4sf_mask"): New.
3032 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3033             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3034             Anna Tikhonova  <anna.tikhonova@intel.com>
3035             Ilya Tocar  <ilya.tocar@intel.com>
3036             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3037             Ilya Verbin  <ilya.verbin@intel.com>
3038             Kirill Yukhin  <kirill.yukhin@intel.com>
3039             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3041         * config/i386/sse.md
3042         (define_insn "avx_unpckhps256<mask_name>"): Add masking.
3043         (define_insn "vec_interleave_highv4sf<mask_name>"): Ditto.
3044         (define_insn "avx_unpcklps256<mask_name>"): Ditto.
3045         (define_insn "unpcklps128_mask"): New.
3047 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3048             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3049             Anna Tikhonova  <anna.tikhonova@intel.com>
3050             Ilya Tocar  <ilya.tocar@intel.com>
3051             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3052             Ilya Verbin  <ilya.verbin@intel.com>
3053             Kirill Yukhin  <kirill.yukhin@intel.com>
3054             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3056         * config/i386/sse.md
3057         (define_insn "avx_unpckhpd256<mask_name>"): Add masking.
3058         (define_insn "avx512vl_unpckhpd128_mask"): New.
3059         (define_expand "avx_movddup256<mask_name>"): Add masking.
3060         (define_expand "avx_unpcklpd256<mask_name>"): Ditto.
3061         (define_insn "*avx_unpcklpd256<mask_name>"): Ditto.
3062         (define_insn "avx512vl_unpcklpd128_mask"): New.
3064 2014-09-22  Joseph Myers  <joseph@codesourcery.com>
3066         * doc/tm.texi.in (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3067         * doc/tm.texi: Regenerate.
3068         * system.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Poison.
3069         * config/alpha/alpha.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3070         * config/i386/i386-interix.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
3071         Remove.
3072         * config/i386/i386.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3073         * config/i386/rtemself.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3074         * config/ia64/ia64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3075         * config/m68k/m68k.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3076         * config/m68k/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
3077         Remove.
3078         * config/mips/mips.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3079         * config/mips/n32-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3080         * config/msp430/msp430.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3081         * config/rl78/rl78.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3082         * config/rs6000/rs6000.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3083         * config/rx/rx.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3084         * config/s390/s390.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3085         * config/sparc/freebsd.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3086         * config/sparc/linux.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3087         * config/sparc/linux64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3088         * config/sparc/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
3089         Remove.
3091 2014-09-22  Jan Hubicka  <hubicka@ucw.cz>
3093         * tree-ssa-ccp.c (prop_value_d): Rename to ...
3094         (ccp_prop_value_t): ... this one to avoid ODR violation; update uses.
3095         * ipa-prop.c (struct type_change_info): Rename to ...
3096         (prop_type_change_info): ... this; update uses.
3097         * ggc-page.c (globals): Rename to ...
3098         (static struct ggc_globals): ... this; update uses.
3099         * tree-ssa-loop-im.c (mem_ref): Rename to ...
3100         (im_mem_ref): ... this; update uses.
3101         * ggc-common.c (loc_descriptor): Rename to ...
3102         (ggc_loc_descriptor): ... this; update uses.
3103         * lra-eliminations.c (elim_table): Rename to ...
3104         (lra_elim_table): ... this; update uses.
3105         * bitmap.c (output_info): Rename to ...
3106         (bitmap_output_info): ... this; update uses.
3107         * gcse.c (expr): Rename to ...
3108         (gcse_expr) ... this; update uses.
3109         (occr): Rename to ...
3110         (gcse_occr): .. this; update uses.
3111         * tree-ssa-copy.c (prop_value_d): Rename to ...
3112         (prop_value_t): ... this.
3113         * predict.c (block_info_def): Rename to ...
3114         (block_info): ... this; update uses.
3115         (edge_info_def): Rename to ...
3116         (edge_info): ... this; update uses.
3117         * profile.c (bb_info): Rename to ...
3118         (bb_profile_info): ... this; update uses.
3119         * alloc-pool.c (output_info): Rename to ...
3120         (pool_output_info): ... this; update uses.
3121         * ipa-cp.c (topo_info): Rename to ..
3122         (ipa_topo_info): ... this; update uses.
3123         * tree-nrv.c (nrv_data): Rename to ...
3124         (nrv_data_t): ... this; update uses.
3125         * ipa-split.c (bb_info): Rename to ...
3126         (split_bb_info): ... this one.
3127         * profile.h (edge_info): Rename to ...
3128         (edge_profile_info): ... this one; update uses.
3129         * dse.c (bb_info): Rename to ...
3130         (dse_bb_info): ... this one; update uses.
3131         * cprop.c (occr): Rename to ...
3132         (cprop_occr): ... this one; update uses.
3133         (expr): Rename to ...
3134         (cprop_expr): ... this one; update uses.
3136 2014-09-22  Jason Merrill  <jason@redhat.com>
3138         * Makefile.in (check-parallel-%): Add @.
3140 2014-09-22  James Greenhalgh  <james.greenhalgh@arm.com>
3142         * config/aarch64/geniterators.sh: New.
3143         * config/aarch64/iterators.md (VDQF_DF): New.
3144         * config/aarch64/t-aarch64: Generate aarch64-builtin-iterators.h.
3145         * config/aarch64/aarch64-builtins.c (BUILTIN_*) Remove.
3147 2014-09-22  Peter A. Bigot  <pab@pabigot.com>
3149         * config/msp430/msp430.h (LIB_SPEC): Remove automatic addition of
3150         -lnosys when -msim absent.
3152 2014-09-22  Alan Lawrence  <alan.lawrence@arm.com>
3154         * fold-const.c (tree_swap_operands_p): Strip only sign-preserving NOPs.
3156 2014-09-22  Richard Biener  <rguenther@suse.de>
3158         * gimplify.c (gimplify_init_constructor): Do not leave
3159         non-GIMPLE vector constructors around.
3160         * tree-cfg.c (verify_gimple_assign_single): Verify that
3161         CONSTRUCTORs have gimple elements.
3163 2014-09-22  Jakub Jelinek  <jakub@redhat.com>
3165         PR debug/63328
3166         * omp-low.c (ipa_simd_modify_stmt_ops): For debug stmts
3167         insert a debug source bind stmt setting DEBUG_EXPR_DECL
3168         instead of a normal gimple assignment stmt.
3170 2014-09-22  James Greenhalgh  <james.greenhalgh@arm.com>
3172         * config/bfin/bfin.md: Fix use of constraints in define_split.
3174 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
3176         * config/i386/i386.c (ix86_cannot_change_mode_class): Remove
3177         GET_MODE_SIZE (to) < GET_MODE_SIZE (from) test.
3179 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
3181         * hard-reg-set.h: Include hash-table.h.
3182         (target_hard_regs): Add a finalize method and a x_simplifiable_subregs
3183         field.
3184         * target-globals.c (target_globals::~target_globals): Call
3185         hard_regs->finalize.
3186         * rtl.h (subreg_shape): New structure.
3187         (shape_of_subreg): New function.
3188         (simplifiable_subregs): Declare.
3189         * reginfo.c (simplifiable_subreg): New structure.
3190         (simplifiable_subregs_hasher): Likewise.
3191         (simplifiable_subregs): New function.
3192         (invalid_mode_changes): Delete.
3193         (alid_mode_changes, valid_mode_changes_obstack): New variables.
3194         (record_subregs_of_mode): Remove subregs_of_mode parameter.
3195         Record valid mode changes in valid_mode_changes.
3196         (find_subregs_of_mode): Remove subregs_of_mode parameter.
3197         Update calls to record_subregs_of_mode.
3198         (init_subregs_of_mode): Remove invalid_mode_changes and bitmap
3199         handling.  Initialize new variables.  Update call to
3200         find_subregs_of_mode.
3201         (invalid_mode_change_p): Check new variables instead of
3202         invalid_mode_changes.
3203         (finish_subregs_of_mode): Finalize new variables instead of
3204         invalid_mode_changes.
3205         (target_hard_regs::finalize): New function.
3206         * ira-costs.c (print_allocno_costs): Call invalid_mode_change_p
3207         even when CLASS_CANNOT_CHANGE_MODE is undefined.
3209 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
3211         * combine.c (subst): Use simplify_subreg_regno rather than
3212         REG_CANNOT_CHANGE_MODE_P to detect invalid mode changes.
3214 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
3216         * rtl.h (subreg_info): Expand commentary
3217         * rtlanal.c (subreg_get_info): Likewise.
3219 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
3221         * hard-reg-set.h (COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
3222         (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
3223         (IOR_COMPL_HARD_REG_SET): Allow the "from" set to be constant.
3225 2014-09-22  Zhenqiang Chen  <zhenqiang.chen@arm.com>
3227         * config/arm/arm.c: #include "tm-constrs.h"
3228         (thumb1_size_rtx_costs): Adjust rtx costs.
3230 2014-09-22  Hans-Peter Nilsson  <hp@axis.com>
3232         * configure.ac (target_header_dir): Move block defining
3233         this to before the block setting inhibit_libc.
3234         (inhibit_libc): When considering $with_headers, just
3235         check it it's explicitly "no".  If not, also check if
3236         $target_header_dir/stdio.h is present.  If not, set
3237         inhibit_libc=true.
3238         * configure: Regenerate.
3240 2014-09-21  Patrick Oppenlander  <pattyo.lists@gmail.com>
3242         * config/rs6000/t-spe (MULTILIB_EXCEPTIONS): Allow isel without SPE.
3244 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
3246         * config/rs6000/rs6000.md (div<mode>3): Fix comment.  Use a different
3247         insn for divides by integer powers of two.
3248         (div<mode>3_sra, *div<mode>3_sra_dot, *div<mode>3_sra_dot2): New.
3249         (mod<mode>3): Fix formatting.
3250         (three anonymous define_insn and two define_split): Delete.
3252 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
3254         * config/rs6000/rs6000.md (ashr<mode>3, *ashr<mode>3, *ashrsi3_64,
3255         *ashr<mode>3_dot, *ashr<mode>3_dot2): Clobber CA_REGNO.
3256         (floatdisf2_internal2): Ditto.
3257         (ashrdi3_no_power): Ditto.  Fix formatting.
3259 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
3261         * config/rs6000/rs6000.md (ctz<mode>2, ffs<mode>2, popcount<mode>2,
3262         popcntb<mode>2, popcntd<mode>2, parity<mode>2, parity<mode>2_cmpb):
3263         Tidy.
3265 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
3267         * config/rs6000/rs6000.md (strlensi): Don't use subsi3 with a
3268         constant, use addsi3 directly.
3269         (three anonymous define_insn, two define_split): Delete.
3270         (sub<mode>3): Move.  Do not allow constant second operand.
3271         Generate different insn for constant first operand.
3272         (*subf<mode>3, *subf<mode>3_dot, *subf<mode>3_dot2): New.
3273         (subf<mode>3_imm): New.
3274         (ctz<mode>2, ffs<mode>2): Clobber CA_REGNO where required.
3275         (*plus_ltu<mode>): Only handle registers.
3276         (*plus_ltu<mode>_1): New.  Handle integer third operand.
3277         (*plus_gtu<mode>): Only handle registers.
3278         (*plus_gtu<mode>_1): New.  Handle integer third operand.
3280 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
3282         * config/rs6000/rs6000.md (iorxor): New code_iterator.
3283         (iorxor): New code_attr.
3284         (IORXOR): New code_attr.
3285         (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): Delete.
3286         (ior<mode>3, xor<mode>3): Delete.
3287         (<iorxor><mode>3): New.
3288         (splitter for "big" integer ior, xor): New.
3289         (*bool<mode>3): Move.  Also handle AND.
3290         (*bool<mode>3_dot, *bool<mode>3_dot2): Also handle AND.
3291         (splitter for "big" integer ior, xor): Delete.
3293 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
3295         * config/rs6000/rs6000.md (*neg<mode>2_internal): Delete.
3296         (two anonymous define_insn and two define_split): Delete.
3297         (*neg<mode>2, *neg<mode>2_dot, *neg<mode>2_dot2): New.
3299 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
3301         * config/rs6000/rs6000.md (*one_cmpl<mode>2): Generate "not" insn.
3302         (two anonymous define_insn and two define_split): Delete.
3303         (*one_cmpl<mode>2_dot, *one_cmpl<mode>2_dot2): New.
3305 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
3307         * config/rs6000/rs6000.c (rs6000_rtx_costs) <NE>: New.
3309 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
3311         * config/rs6000/predicates.md (ca_operand): Allow subregs.
3312         (input_operand): Do not allow ca_operand.
3313         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): For the
3314         carry bit, allow SImode and Pmode.
3315         (rs6000_init_hard_regno_mode_ok): Make the carry bit class NO_REGS.
3317 2014-09-21  Uros Bizjak  <ubizjak@gmail.com>
3319         * config/i386/i386.c (ix86_expand_call): Generate MS->SYSV extra
3320         clobbered registers using clobber_reg.  Remove UNSPEC decoration.
3321         * config/i386/i386.md (unspec) <UNSPEC_MS_TO_SYSV_CALL>: Remove.
3322         (*call_rex64_ms_sysv): Remove.
3323         (*call_value_rex64_ms_sysv): Ditto.
3324         * config/i386/predicates.md (call_rex64_ms_sysv_operation): Remove.
3326 2014-09-20  Joern Rennecke  <joern.rennecke@embecosm.com>
3328         * config/epiphany/epiphany.md (sub_f_add_imm): Change constraint of
3329         operand 3 to "CnL".
3331 2014-09-20  Andreas Schwab  <schwab@suse.de>
3333         * config/ia64/ia64.md: Remove constraints from define_split
3334         patterns.
3336 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
3338         * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
3339         (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
3340         possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
3341         (get_dynamic_type): Remove.
3342         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
3343         (clear_speculation): Bring to ipa-deivrt.h
3344         (get_class_context): Rename to ...
3345         (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
3346         (contains_type_p): Update.
3347         (get_dynamic_type): Rename to ...
3348         ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
3349         (possible_polymorphic_call_targets): UPdate.
3350         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
3351         * ipa-prop.c (ipa_analyze_call_uses): Update.
3353 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
3355         * ipa-visibility.c (varpool_node::externally_visible_p): Do not
3356         privatize dynamic TLS variables.
3358 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
3360         * diagnostic.c (warning_n): New function.
3361         * diagnostic-core.h (warning_n): Declare.
3362         * ipa-devirt.c (ipa_devirt): Handle singulars correctly;
3363         output dynamic counts when available.
3365 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
3367         PR tree-optimization/63255
3368         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering
3369         issue in setting body_removed flag.
3371 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
3373         PR c++/61825
3374         * c-family/c-common.c (handle_alias_ifunc_attribute): Check
3375         that visibility change is possible
3376         (handle_weakref_attribute): Likewise.
3377         * cgraph.h (symtab_node): Add method get_create and
3378         field refuse_visibility_changes.
3379         (symtab_node::get_create): New method.
3380         * fold-const.c (tree_single_nonzero_warnv_p): Use get_create.
3381         * varasm.c (mark_weak): Verify that visibility change is
3382         possible.
3384 2014-09-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
3386         * config/rs6000/predicates.md (fusion_gpr_mem_load): Move testing
3387         for base_reg_operand to be common between LO_SUM and PLUS.
3388         (fusion_gpr_mem_combo): New predicate to match a fused address
3389         that combines the addis and memory offset address.
3391         * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Change
3392         calling signature.
3393         (emit_fusion_gpr_load): Likewise.
3395         * config/rs6000/rs6000.c (fusion_gpr_load_p): Change calling
3396         signature to pass each argument separately, rather than
3397         using an operands array.  Rewrite the insns found by peephole2 to
3398         be a single insn, rather than hoping the insns will still be
3399         together when the peephole pass is done.  Drop being called via a
3400         normal peephole.
3401         (emit_fusion_gpr_load): Change calling signature to be called from
3402         the fusion_gpr_load_<mode> insns with a combined memory address
3403         instead of the peephole pass passing the addis and offset
3404         separately.
3406         * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): New unspec for GPR
3407         fusion.
3408         (power8 fusion peephole): Drop support for doing power8 via a
3409         normal peephole that was created by the peephole2 pass.
3410         (power8 fusion peephole2): Create a new insn with the fused
3411         address, so that the fused operation is kept together after
3412         register allocation is done.
3413         (fusion_gpr_load_<mode>): Likewise.
3415 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
3417         PR lto/63286
3418         * tree.c (need_assembler_name_p): Do not mangle variadic types.
3420 2014-09-19  Segher Boessenkool  <segher@kernel.crashing.org>
3422         * recog.c (scratch_operand): Do not simply allow all hard registers:
3423         only allow those that are allocatable.
3425 2014-09-19  Felix Yang  <felix.yang@huawei.com>
3427         * cfgrtl.c ira.c ira-color.c ira-conflicts ira-lives.c: Update
3428         comments and fix spacing to conform to coding style.
3430 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
3432         * genrecog.c (validate_pattern): Allow empty constraints in
3433         a match_scratch.
3435 2014-09-19  Aldy Hernandez  <aldyh@redhat.com>
3437         * dwarf2out.c (decl_ultimate_origin): Update comment.
3438         * tree.c (block_ultimate_origin): Same.
3440 2014-09-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3442         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
3443         Update GCC version name to GCC 5.
3444         (rs6000_function_arg_boundary): Likewise.
3445         (rs6000_function_arg): Likewise.
3447 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
3449         * config/sh/sh.md: Fix use of constraints in define_split.
3451 2014-09-19  Markus Trippelsdorf  <markus@trippelsdorf.de>
3453         PR ipa/61998
3454         * ipa-devirt.c (ipa_devirt): Bail out if odr_types_ptr is NULL.
3456 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
3458         * doc/md.texi (Modifiers): Consistently use "read/write"
3459         nomenclature rather than "input/output".
3460         * genrecog.c (constraints_supported_in_insn_p): New.
3461         (validate_pattern): If needed, also check constraints on
3462         MATCH_SCRATCH operands.
3463         * genoutput.c (validate_insn_alternatives): Catch earlyclobber
3464         operands with no '=' or '+' modifier.
3466 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
3468         * config/aarch64/aarch64.md (stack_protect_test_<mode>): Mark
3469         scratch register as written.
3471 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3473         * config/s390/s390.c (s390_emit_epilogue): Remove bogus
3474         assignment.
3476 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3478         * config/s390/s390.md ("trunctdsd2", "extendsdtd2"): New
3479         expanders.
3481 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3483         PR target/62662
3484         * config/s390/s390.c (s390_emit_epilogue): When doing the return
3485         address load optimization force s390_optimize_prologue to leave it
3486         that way.  Only do the optimization if we already decided to push
3487         r14 into a stack slot.
3489 2014-09-19  Marat Zakirov  <m.zakirov@samsung.com>
3491         * asan.c (build_check_stmt): Alignment arg was added.
3492         (asan_expand_check_ifn): Optimization for alignment >= 8.
3494 2014-09-19  Olivier Hainque  <hainque@adacore.com>
3496         * config/i386/vxworksae.h: Remove obsolete definitions.
3497         (STACK_CHECK_PROTECT): Define.
3498         * config/i386/vx-common.h: Remove.  Merge contents within
3499         config/i386/vxworks.h.
3500         * config.gcc (i?86-vxworks*): Use i386/vxworks.h instead of
3501         i386/vx-common.h.
3503 2014-09-19  Olivier Hainque  <hainque@adacore.com>
3505         * config.gcc (powerpc-wrs-vxworksmils): New configuration.
3506         * config/rs6000/t-vxworksmils: New file.
3507         * config/rs6000/vxworksmils.h: New file.
3509 2014-09-19  Olivier Hainque  <hainque@adacore.com>
3511         * varasm.c (default_section_type_flags): Flag .persistent.bss
3512         sections as SECTION_BSS.
3514 2014-09-19  Nick Clifton  <nickc@redhat.com>
3516         * config/rl78/rl78.c (rl78_expand_epilogue): Generate a USE of the
3517         pop'ed registers so that DCE does not eliminate them.
3519 2014-09-18  Jan Hubicka  <hubicka@ucw.cz>
3521         PR lto/63298
3522         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix thinko in a condition.
3524 2014-09-18  Joseph Myers  <joseph@codesourcery.com>
3526         * system.h (LIBGCC2_TF_CEXT): Poison.
3527         * config/i386/cygming.h (LIBGCC2_TF_CEXT): Remove.
3528         * config/i386/darwin.h (LIBGCC2_TF_CEXT): Likewise.
3529         * config/i386/dragonfly.h (LIBGCC2_TF_CEXT): Likewise.
3530         * config/i386/freebsd.h (LIBGCC2_TF_CEXT): Likewise.
3531         * config/i386/gnu-user-common.h (LIBGCC2_TF_CEXT): Likewise.
3532         * config/i386/openbsdelf.h (LIBGCC2_TF_CEXT): Likewise.
3533         * config/i386/sol2.h (LIBGCC2_TF_CEXT): Likewise.
3534         * config/ia64/ia64.h (LIBGCC2_TF_CEXT): Likewise.
3535         * config/ia64/linux.h (LIBGCC2_TF_CEXT): Likewise.
3537 2014-09-19  Kito Cheng  <kito@0xlab.org>
3539         * except.h: Fix header guard.
3540         * addresses.h: Add missing header guard.
3541         * cfghooks.h: Likewise.
3542         * collect-utils.h: Likewise.
3543         * collect2-aix.h: Likewise.
3544         * conditions.h: Likewise.
3545         * cselib.h: Likewise.
3546         * dwarf2asm.h: Likewise.
3547         * graphds.h: Likewise.
3548         * graphite-scop-detection.h: Likewise.
3549         * gsyms.h: Likewise.
3550         * hw-doloop.h: Likewise.
3551         * incpath.h: Likewise.
3552         * ipa-inline.h: Likewise.
3553         * ipa-ref.h: Likewise.
3554         * ira-int.h: Likewise.
3555         * ira.h: Likewise.
3556         * lra-int.h: Likewise.
3557         * lra.h: Likewise.
3558         * lto-section-names.h: Likewise.
3559         * read-md.h: Likewise.
3560         * reload.h: Likewise.
3561         * rtl-error.h: Likewise.
3562         * sdbout.h: Likewise.
3563         * targhooks.h: Likewise.
3564         * tree-affine.h: Likewise.
3565         * xcoff.h: Likewise.
3566         * xcoffout.h: Likewise.
3568 2014-09-18  Vladimir Makarov  <vmakarov@redhat.com>
3570         PR debug/63285
3571         * haifa-sched.c (schedule_block): Advance cycle at the end of BB
3572         if advance != 0.
3574 2014-09-18  Vladimir Makarov  <vmakarov@redhat.com>
3576         PR target/61360
3577         * lra.c (lra): Call recog_init.
3579 2014-09-18  Jakub Jelinek  <jakub@redhat.com>
3581         PR c++/62017
3582         * asan.c (transform_statements): Don't instrument clobber statements.
3584 2014-09-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3586         * config/arm/neon.md (*movmisalign<mode>_neon_load): Change type
3587         to neon_load1_1reg<q>.
3589 2014-09-17  Jakub Jelinek  <jakub@redhat.com>
3591         PR debug/63284
3592         * tree-cfgcleanup.c (fixup_noreturn_call): Don't split block
3593         if there are only debug stmts after the noreturn call, instead
3594         remove the debug stmts.
3596 2014-09-17  Jan Hubicka  <hubicka@ucw.cz>
3598         * ipa-devirt.c (type_pair, default_hashset_traits): New types.
3599         (odr_types_equivalent_p): Use pair hash.
3600         (odr_subtypes_equivalent_p): Likewise, do structural compare
3601         on ODR types that may be mismatched.
3602         (warn_odr): Support warning when only one field is given.
3603         (odr_types_equivalent_p): Strenghten comparsions made;
3604         support VOIDtype.
3605         (add_type_duplicate): Update VISITED hash set.
3607 2014-09-17  Sebastian Huber  <sebastian.huber@embedded-brains.de>
3609         * config.gcc (*-*-rtems*): Default to 'rtems' thread model.
3610         Enable selection of 'posix' or no thread model.
3612 2014-09-17  Andrew Stubbs  <ams@codesourcery.com>
3614         * config/arm/arm.c (arm_option_override): Reject -mfpu=neon
3615         when architecture is older than ARMv7.
3617 2014-09-16  John David Anglin  <danglin@gcc.gnu.org>
3619         PR target/61853
3620         * config/pa/pa.c (pa_function_value): Directly handle aggregates
3621         that fit exactly in a word or double word.
3623 2014-09-16  Ilya Tocar  <ilya.tocar@intel.com>
3625         * config/i386/driver-i386.c (host_detect_local_cpu): Detect lack of
3626         zmm/k regs support.
3628 2014-09-16  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3629             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3630             Anna Tikhonova  <anna.tikhonova@intel.com>
3631             Ilya Tocar  <ilya.tocar@intel.com>
3632             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3633             Ilya Verbin  <ilya.verbin@intel.com>
3634             Kirill Yukhin  <kirill.yukhin@intel.com>
3635             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3637         * config/i386/i386.c
3638         (ix86_expand_vector_extract): Handle V32HI and V64QI modes.
3639         * config/i386/sse.md
3640         (define_mode_iterator VI48F_256): New.
3641         (define_mode_attr extract_type): Ditto.
3642         (define_mode_attr extract_suf): Ditto.
3643         (define_mode_iterator AVX512_VEC): Ditto.
3644         (define_expand
3645         "<extract_type>_vextract<shuffletype><extract_suf>_mask"): Use
3646         AVX512_VEC.
3647         (define_insn "avx512dq_vextract<shuffletype>64x2_1_maskm"): New.
3648         (define_insn
3649         "<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>"):
3650         Ditto.
3651         (define_mode_attr extract_type_2): Ditto.
3652         (define_mode_attr extract_suf_2): Ditto.
3653         (define_mode_iterator AVX512_VEC_2): Ditto.
3654         (define_expand
3655         "<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask"): Use
3656         AVX512_VEC_2 mode iterator.
3657         (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
3658         (define_expand "avx512vl_vextractf128<mode>"): Ditto.
3659         (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
3660         (define_insn "vec_extract_lo_<mode><mask_name>"): New.
3661         (define_split for V16FI mode): Ditto.
3662         (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
3663         (define_insn "vec_extract_lo_<mode><mask_name>"): New.
3664         (define_split for VI8F_256 mode): Ditto.
3665         (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
3666         (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
3667         (define_insn "vec_extract_lo_<mode><mask_name>"): New.
3668         (define_split for VI4F_256 mode): Ditto.
3669         (define_insn "vec_extract_lo_<mode>_maskm"): Ditto.
3670         (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
3671         (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
3672         (define_mode_iterator VEC_EXTRACT_MODE): Add V64QI and V32HI modes.
3673         (define_insn "vcvtph2ps<mask_name>"): Fix pattern condition.
3674         (define_insn "avx512f_vextract<shuffletype>32x4_1_maskm"): Ditto.
3675         (define_insn "<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>"):
3676         Update `type' attribute, remove explicit `memory' attribute calculation.
3678 2014-09-16  Kito Cheng  <kito@0xlab.org>
3680         * ira.c (ira): Don't initialize ira_spilled_reg_stack_slots and
3681         ira_spilled_reg_stack_slots_num if using lra.
3682         (do_reload): Remove release ira_spilled_reg_stack_slots part.
3683         * ira-color.c (ira_sort_regnos_for_alter_reg): Add assertion to
3684         make sure not using lra.
3685         (ira_reuse_stack_slot): Likewise.
3686         (ira_mark_new_stack_slot): Likewise.
3688 2014-09-15  Andi Kleen  <ak@linux.intel.com>
3690         * function.c (allocate_struct_function): Force
3691         DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT to one when
3692         profiling is disabled.
3694 2014-09-15  Trevor Saunders  <tsaunders@mozilla.com>
3696         * cfgrtl.c, combine.c, config/arc/arc.c, config/mcore/mcore.c,
3697         config/rs6000/rs6000.c, config/sh/sh.c, cprop.c, dwarf2out.c,
3698         emit-rtl.c, final.c, function.c, gcse.c, jump.c, reg-stack.c,
3699         reload1.c, reorg.c, resource.c, sel-sched-ir.c: Replace INSN_DELETED_P
3700         macro with statically checked member functions.
3701         * rtl.h (rtx_insn::deleted): New method.
3702         (rtx_insn::set_deleted): Likewise.
3703         (rtx_insn::set_undeleted): Likewise.
3704         (INSN_DELETED_P): Remove.
3706 2014-09-15  Trevor Saunders  <tsaunders@mozilla.com>
3708         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Assign the
3709         result of emit_jump_insn_before to a new variable.
3710         * jump.c (mark_jump_label): Change the type of insn to rtx_insn *.
3711         (mark_jump_label_1): Likewise.
3712         (mark_jump_label_asm): Likewise.
3713         * reload1.c (gen_reload): Change type of tem to rtx_insn *.
3714         * rtl.h (mark_jump_label): Adjust.
3716 2014-09-15  Jakub Jelinek  <jakub@redhat.com>
3718         * Makefile.in (dg_target_exps): Remove.
3719         (check_gcc_parallelize): Change to just an upper bound number.
3720         (check-%-subtargets): Always print the non-parallelized goals.
3721         (check_p_vars, check_p_comma, check_p_subwork): Remove.
3722         (check_p_count, check_p_numbers0, check_p_numbers1, check_p_numbers2,
3723         check_p_numbers3, check_p_numbers4, check_p_numbers5,
3724         check_p_numbers6): New variables.
3725         (check_p_numbers): Set to sequence from 1 to 9999.
3726         (check_p_subdirs): Set to sequence from 1 to minimum of
3727         $(check_p_count) and either GCC_TEST_PARALLEL_SLOTS env var if set,
3728         or 128.
3729         (check-%, check-parallel-%): Rewritten so that for parallelized
3730         testing each job runs all the *.exp files, with
3731         GCC_RUNTEST_PARALLELIZE_DIR set in environment.
3733 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
3735         * config/arc/arc-protos.h (arc_attr_type): Strengthen param from
3736         rtx to rtx_insn *.
3737         (arc_sets_cc_p): Likewise.
3738         * config/arc/arc.c (arc_print_operand): Use methods of
3739         "final_sequence" for clarity, and to enable strengthening of
3740         locals "jump" and "delay" from rtx to rtx_insn *.
3741         (arc_adjust_insn_length): Strengthen local "prev" from rtx to
3742         rtx_insn *; use method of rtx_sequence for typesafety.
3743         (arc_get_insn_variants): Use insn method of rtx_sequence for
3744         typesafety.
3745         (arc_pad_return): Likewise.
3746         (arc_attr_type): Strengthen param from rtx to rtx_insn *.
3747         (arc_sets_cc_p): Likewise.  Also, convert a GET_CODE check to a
3748         dyn_cast to rtx_sequence *, using insn method for typesafety.
3749         * config/arc/arc.h (ADJUST_INSN_LENGTH): Add checked casts to
3750         rtx_sequence * and use insn method when invoking get_attr_length.
3751         * config/bfin/bfin.c (type_for_anomaly): Strengthen param from rtx
3752         to rtx_insn *.  Replace a GET_CODE check with a dyn_cast to
3753         rtx_sequence *, introducing a local "seq", using its insn method
3754         from typesafety and clarity.
3755         (add_sched_insns_for_speculation): Strengthen local "next" from
3756         rtx to rtx_insn *.
3757         * config/c6x/c6x.c (get_insn_side): Likewise for param "insn".
3758         (predicate_insn): Likewise.
3759         * config/cris/cris-protos.h (cris_notice_update_cc): Likewise for
3760         second param.
3761         * config/cris/cris.c (cris_notice_update_cc): Likewise.
3762         * config/epiphany/epiphany-protos.h
3763         (extern void epiphany_insert_mode_switch_use): Likewise for param
3764         "insn".
3765         (get_attr_sched_use_fpu): Likewise for param.
3766         * config/epiphany/epiphany.c (epiphany_insert_mode_switch_use):
3767         Likewise for param "insn".
3768         * config/epiphany/mode-switch-use.c (insert_uses): Likewise for
3769         param "insn" of "target_insert_mode_switch_use" callback.
3770         * config/frv/frv.c (frv_insn_unit): Likewise for param "insn".
3771         (frv_issues_to_branch_unit_p): Likewise.
3772         (frv_pack_insn_p): Likewise.
3773         (frv_compare_insns): Strengthen locals "insn1" and "insn2" from
3774         const rtx * (i.e. mutable rtx_def * const *) to
3775         rtx_insn * const *.
3776         * config/i386/i386-protos.h (standard_sse_constant_opcode):
3777         Strengthen first param from rtx to rtx_insn *.
3778         (output_fix_trunc): Likewise.
3779         * config/i386/i386.c (standard_sse_constant_opcode): Likewise.
3780         (output_fix_trunc): Likewise.
3781         (core2i7_first_cycle_multipass_filter_ready_try): Likewise for
3782         local "insn".
3783         (min_insn_size): Likewise for param "insn".
3784         (get_mem_group): Likewise.
3785         (is_cmp): Likewise.
3786         (get_insn_path): Likewise.
3787         (get_insn_group): Likewise.
3788         (count_num_restricted): Likewise.
3789         (fits_dispatch_window): Likewise.
3790         (add_insn_window): Likewise.
3791         (add_to_dispatch_window): Likewise.
3792         (debug_insn_dispatch_info_file): Likewise.
3793         * config/m32c/m32c-protos.h (m32c_output_compare): Likewise for
3794         first param.
3795         * config/m32c/m32c.c (m32c_compare_redundant): Likewise for param
3796         "cmp" and local "prev".
3797         (m32c_output_compare): Likewise for param "insn".
3798         * config/m32r/predicates.md (define_predicate "small_insn_p"): Add
3799         a checked cast to rtx_insn * on "op" after we know it's an INSN_P.
3800         (define_predicate "large_insn_p"): Likewise.
3801         * config/m68k/m68k-protos.h (m68k_sched_attr_size): Strengthen
3802         param from rtx to rtx_insn *.
3803         (attr_op_mem m68k_sched_attr_op_mem): Likewise.
3804         * config/m68k/m68k.c (sched_get_attr_size_int): Likewise.
3805         (m68k_sched_attr_size): Likewise.
3806         (sched_get_opxy_mem_type): Likewise for param "insn".
3807         (m68k_sched_attr_op_mem): Likewise.
3808         (sched_mem_operand_p): Likewise.
3809         * config/mep/mep-protos.h (mep_multi_slot): Likewise for param.
3810         * config/mep/mep.c (mep_multi_slot): Likewise.
3811         * config/mips/mips-protos.h (mips_output_sync_loop): Likewise for
3812         first param.
3813         (mips_sync_loop_insns): Likewise.
3814         * config/mips/mips.c (mips_print_operand_punctuation): Use insn
3815         method of "final_sequence" for typesafety.
3816         (mips_process_sync_loop): Strengthen param "insn" from rtx to
3817         rtx_insn *.
3818         (mips_output_sync_loop): Likewise.
3819         (mips_sync_loop_insns): Likewise.
3820         (mips_74k_agen_init): Likewise.
3821         (mips_sched_init): Use NULL rather than NULL_RTX when working with
3822         insns.
3823         * config/nds32/nds32-fp-as-gp.c (nds32_symbol_load_store_p):
3824         Strengthen param "insn" from rtx to rtx_insn *.
3825         * config/nds32/nds32.c (nds32_target_alignment): Likewise for
3826         local "insn".
3827         * config/pa/pa-protos.h (pa_insn_refs_are_delayed): Likewise for
3828         param.
3829         * config/pa/pa.c (pa_output_function_epilogue): Likewise for local
3830         "insn".  Use method of rtx_sequence for typesafety.
3831         (branch_to_delay_slot_p): Strengthen param "insn" from rtx to
3832         rtx_insn *.
3833         (branch_needs_nop_p): Likewise.
3834         (use_skip_p): Likewise.
3835         (pa_insn_refs_are_delayed): Likewise.
3836         * config/rl78/rl78.c (rl78_propogate_register_origins): Likewise
3837         for locals "insn", "ninsn".
3838         * config/rs6000/rs6000.c (is_microcoded_insn): Likewise for param
3839         "insn".
3840         (is_cracked_insn): Likewise.
3841         (is_branch_slot_insn): Likewise.
3842         (is_nonpipeline_insn): Likewise.
3843         (insn_terminates_group_p): Likewise.
3844         (insn_must_be_first_in_group): Likewise.
3845         (insn_must_be_last_in_group): Likewise.
3846         (force_new_group): Likewise for param "next_insn".
3847         * config/s390/s390.c (s390_get_sched_attrmask): Likewise for param
3848         "insn".
3849         (s390_sched_score): Likewise.
3850         * config/sh/sh-protos.h (output_branch): Likewise for param 2.
3851         (rtx sfunc_uses_reg): Likewise for sole param.
3852         * config/sh/sh.c (sh_print_operand): Use insn method of
3853         final_sequence for typesafety.
3854         (output_branch): Strengthen param "insn" from rtx to rtx_insn *.
3855         Use insn method of final_sequence for typesafety.
3856         (sfunc_uses_reg): Strengthen param "insn" from rtx to rtx_insn *.
3857         * config/sparc/sparc-protos.h (eligible_for_call_delay): Likewise
3858         for param.
3859         (eligible_for_return_delay): Likewise.
3860         (eligible_for_sibcall_delay): Likewise.
3861         * config/sparc/sparc.c (eligible_for_call_delay): Likewise.
3862         (eligible_for_return_delay): Likewise.
3863         (eligible_for_sibcall_delay): Likewise.
3864         * config/stormy16/stormy16-protos.h
3865         (xstormy16_output_cbranch_hi): Likewise for final param.
3866         (xstormy16_output_cbranch_si): Likewise.
3867         * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi): LIkewise.
3868         (xstormy16_output_cbranch_si): Likewise.
3869         * config/v850/v850-protos.h (notice_update_cc): Likewise.
3870         * config/v850/v850.c (notice_update_cc): Likewise.
3872         * final.c (get_attr_length_1): Strengthen param "insn" and param
3873         of "fallback_fn" from rtx to rtx_insn *, eliminating a checked cast.
3874         (get_attr_length): Strengthen param "insn" from rtx to rtx_insn *.
3875         (get_attr_min_length): Likewise.
3876         (shorten_branches): Likewise for signature of locals "length_fun"
3877         and "inner_length_fun".  Introduce local rtx_sequence * "seqn"
3878         from a checked cast and use its methods for clarity and to enable
3879         strengthening local "inner_insn" from rtx to rtx_insn *.
3880         * genattr.c (gen_attr): When writing out the prototypes of the
3881         various generated "get_attr_" functions, strengthen the params of
3882         the non-const functions from rtx to rtx_insn *.
3883         Similarly, strengthen the params of insn_default_length,
3884         insn_min_length, insn_variable_length_p, insn_current_length.
3885         (main): Similarly, strengthen the param of num_delay_slots,
3886         internal_dfa_insn_code, insn_default_latency, bypass_p,
3887         insn_latency, min_issue_delay, print_reservation,
3888         insn_has_dfa_reservation_p and of the "internal_dfa_insn_code" and
3889         "insn_default_latency" callbacks.  Rename hook_int_rtx_unreachable
3890         to hook_int_rtx_insn_unreachable.
3891         * genattrtab.c (write_attr_get): When writing out the generated
3892         "get_attr_" functions, strengthen the param "insn" from rtx to
3893         rtx_insn *, eliminating a checked cast.
3894         (make_automaton_attrs): When writing out prototypes of
3895         "internal_dfa_insn_code_", "insn_default_latency_" functions
3896         and the "internal_dfa_insn_code" and "insn_default_latency"
3897         callbacks, strengthen their params from rtx to rtx_insn *
3898         * genautomata.c (output_internal_insn_code_evaluation): When
3899         writing out code, add a checked cast from rtx to rtx_insn * when
3900         invoking DFA_INSN_CODE_FUNC_NAME aka dfa_insn_code.
3901         (output_dfa_insn_code_func): Strengthen param of generated
3902         function "dfa_insn_code_enlarge" from rtx to rtx_insn *.
3903         (output_trans_func): Likewise for generated function
3904         "state_transition".
3905         (output_internal_insn_latency_func): When writing out generated
3906         function "internal_insn_latency", rename params from "insn" and
3907         "insn2" to "insn_or_const0" and "insn2_or_const0".  Reintroduce
3908         locals "insn" and "insn2" as rtx_insn * with checked casts once
3909         we've proven that we're not dealing with const0_rtx.
3910         (output_insn_latency_func):  Strengthen param of generated
3911         function "insn_latency" from rtx to rtx_insn *.
3912         (output_print_reservation_func): Likewise for generated function
3913         "print_reservation".
3914         (output_insn_has_dfa_reservation_p): Likewise for generated
3915         function "insn_has_dfa_reservation_p".
3916         * hooks.c (hook_int_rtx_unreachable): Rename to...
3917         (hook_int_rtx_insn_unreachable): ...this, and strengthen param
3918         from rtx to rtx_insn *.
3919         * hooks.h (hook_int_rtx_unreachable): Likewise.
3920         (extern int hook_int_rtx_insn_unreachable): Likewise.
3921         * output.h (get_attr_length): Strengthen param from rtx to rtx_insn *.
3922         (get_attr_min_length): Likewise.
3923         * recog.c (get_enabled_alternatives): Likewise.
3924         * recog.h (alternative_mask get_enabled_alternatives): Likewise.
3925         * reorg.c (find_end_label): Introduce local rtx "pat" and
3926         strengthen local "insn" from rtx to rtx_insn *.
3927         (redundant_insn): Use insn method of "seq" rather than element for
3928         typesafety; strengthen local "control" from rtx to rtx_insn *.
3929         * resource.c (mark_referenced_resources): Add checked cast to
3930         rtx_insn * within INSN/JUMP_INSN case.
3931         (mark_set_resources): Likewise.
3932         * sel-sched.c (estimate_insn_cost): Strengthen param "insn" from
3933         rtx to rtx_insn *.
3935 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
3937         * config/rs6000/rs6000.c (rs6000_loop_align_max_skip): Strengthen
3938         param "label" from rtx to rtx_insn *.
3939         * config/rx/rx.c (rx_max_skip_for_label): Likewise for param "lab"
3940         and local "op".
3941         * doc/tm.texi (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Autogenerated changes.
3942         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Likewise.
3943         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
3944         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
3945         * final.c (default_label_align_after_barrier_max_skip): Strengthen
3946         param from rtx to rtx_insn *.
3947         (default_loop_align_max_skip): Likewise.
3948         (default_label_align_max_skip): Likewise.
3949         (default_jump_align_max_skip): Likewise.
3950         * target.def (label_align_after_barrier_max_skip): Likewise.
3951         (loop_align_max_skip): Likewise.
3952         (label_align_max_skip): Likewise.
3953         (jump_align_max_skip): Likewise.
3954         * targhooks.h (default_label_align_after_barrier_max_skip):
3955         Likewise.
3956         (default_loop_align_max_skip): Likewise.
3957         (default_label_align_max_skip): Likewise.
3958         (default_jump_align_max_skip): Likewise.
3960 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
3962         * config/arc/arc.c (arc_can_follow_jump): Strengthen both params
3963         from const_rtx to const rtx_insn *.  Update union members from rtx
3964         to rtx_insn *.
3965         * doc/tm.texi (TARGET_CAN_FOLLOW_JUMP): Autogenerated change.
3966         * hooks.c (hook_bool_const_rtx_const_rtx_true): Rename to...
3967         (hook_bool_const_rtx_insn_const_rtx_insn_true): ...this, and
3968         strengthen both params from const_rtx to const rtx_insn *.
3969         * hooks.h (hook_bool_const_rtx_const_rtx_true): Likewise.
3970         (hook_bool_const_rtx_insn_const_rtx_insn_true): Likewise.
3971         * reorg.c (follow_jumps): Strengthen param "jump" from rtx to
3972         rtx_insn *.
3973         * target.def (can_follow_jump): Strengthen both params from
3974         const_rtx to const rtx_insn *, and update default implementation
3975         from hook_bool_const_rtx_const_rtx_true to
3976         hook_bool_const_rtx_insn_const_rtx_insn_true.
3978 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
3980         * sched-deps.c (deps_start_bb): Strengthen param "head" and local
3981         "insn" from rtx to rtx_insn *.
3982         * sched-int.h (deps_start_bb): Likewise for 2nd param.
3984 2014-09-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3985             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3986             Anna Tikhonova  <anna.tikhonova@intel.com>
3987             Ilya Tocar  <ilya.tocar@intel.com>
3988             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3989             Ilya Verbin  <ilya.verbin@intel.com>
3990             Kirill Yukhin  <kirill.yukhin@intel.com>
3991             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3993         * config/i386/sse.md
3994         (define_insn "vcvtph2ps<mask_name>"): Add masking.
3995         (define_insn "*vcvtph2ps_load<mask_name>"): Ditto.
3996         (define_insn "vcvtph2ps256<mask_name>"): Ditto.
3997         (define_expand "vcvtps2ph_mask"): New.
3998         (define_insn "*vcvtps2ph<mask_name>"): Add masking.
3999         (define_insn "*vcvtps2ph_store<mask_name>"): Ditto.
4000         (define_insn "vcvtps2ph256<mask_name>"): Ditto.
4002 2014-09-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4003             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4004             Anna Tikhonova  <anna.tikhonova@intel.com>
4005             Ilya Tocar  <ilya.tocar@intel.com>
4006             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4007             Ilya Verbin  <ilya.verbin@intel.com>
4008             Kirill Yukhin  <kirill.yukhin@intel.com>
4009             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4011         * config/i386/sse.md (define_mode_iterator VI248_AVX512BW_AVX512VL):
4012         New.
4013         (define_mode_iterator VI24_AVX512BW_1): Ditto.
4014         (define_insn "<mask_codefor>ashr<mode>3<mask_name>"): Ditto.
4015         (define_insn "<mask_codefor>ashrv2di3<mask_name>"): Ditto.
4016         (define_insn "ashr<VI248_AVX512BW_AVX512VL:mode>3<mask_name>"): Enable
4017         also for TARGET_AVX512VL.
4018         (define_expand "ashrv2di3"): Update to enable TARGET_AVX512VL.
4020 2014-09-15  Markus Trippelsdorf  <markus@trippelsdorf.de>
4022         * doc/install.texi (Options specification): add
4023         --disable-libsanitizer item.
4025 2014-09-14  James Clarke  <jrtc27@jrtc27.com>
4026             Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
4028         PR target/61407
4029         * config/darwin-c.c (version_as_macro): Added extra 0 for OS X 10.10
4030         and above.
4031         * config/darwin-driver.c (darwin_find_version_from_kernel): Removed
4032         kernel version check to avoid incrementing it after every major OS X
4033         release.
4034         (darwin_default_min_version): Avoid static memory buffer.
4036 2014-09-13  Jan Hubicka  <hubicka@ucw.cz>
4038         * tree.c (need_assembler_name_p): Store C++ type mangling only
4039         for aggregates.
4041 2014-09-13  Marek Polacek  <polacek@redhat.com>
4043         * tree.c (protected_set_expr_location): Don't check whether T is
4044         non-null here.
4046 2014-09-12  DJ Delorie  <dj@redhat.com>
4048         * config/msp430/msp430.md (extendhipsi2): Use 20-bit form of RLAM/RRAM.
4049         (extend_and_shift1_hipsi2): Likewise.
4050         (extend_and_shift2_hipsi2): Likewise.
4052 2014-09-12  David Malcolm  <dmalcolm@redhat.com>
4054         * config/alpha/alpha.c (alpha_ra_ever_killed): Replace NULL_RTX
4055         with NULL when dealing with an insn.
4056         * config/sh/sh.c (sh_reorg): Strengthen local "last_float_move"
4057         from rtx to rtx_insn *.
4058         * rtl.h (reg_set_between_p): Strengthen params 2 and 3 from
4059         const_rtx to const rtx_insn *.
4060         * rtlanal.c (reg_set_between_p): Likewise, removing a checked cast.
4062 2014-09-12  Trevor Saunders  <tsaunders@mozilla.com>
4064         * hash-table.h (gt_pch_nx): Don't call gt_pch_note_object within an
4065         assert.
4067 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
4069         * target.def (libgcc_floating_mode_supported_p): New hook.
4070         * targhooks.c (default_libgcc_floating_mode_supported_p): New
4071         function.
4072         * targhooks.h (default_libgcc_floating_mode_supported_p): Declare.
4073         * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE, LIBGCC2_HAS_XF_MODE)
4074         (LIBGCC2_HAS_TF_MODE): Remove.
4075         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): New @hook.
4076         * doc/tm.texi: Regenerate.
4077         * genmodes.c (emit_insn_modes_h): Define HAVE_%smode for each
4078         machine mode.
4079         * system.h (LIBGCC2_HAS_SF_MODE, LIBGCC2_HAS_DF_MODE)
4080         (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE): Poison.
4081         * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE): Remove.
4082         * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE): Remove.
4083         * config/i386/djgpp.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4084         * config/i386/dragonfly.h (LIBGCC2_HAS_TF_MODE): Remove.
4085         * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE): Remove.
4086         * config/i386/gnu-user-common.h (LIBGCC2_HAS_TF_MODE): Remove.
4087         * config/i386/i386-interix.h (IX86_NO_LIBGCC_TFMODE): Define.
4088         * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p): New
4089         function.
4090         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
4091         * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4092         * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4093         * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4094         * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4095         * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4096         * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4097         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE): Remove.
4098         * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Define.
4099         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Remove.
4100         * config/i386/vx-common.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4101         * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Define.
4102         * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Define.
4103         * config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE):
4104         Remove.
4105         * config/ia64/ia64.c (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P):
4106         New macro.
4107         (ia64_libgcc_floating_mode_supported_p): New function.
4108         * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): Remove.
4109         * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
4110         (IA64_NO_LIBGCC_TFMODE): Define.
4111         * config/msp430/msp430.h (LIBGCC2_HAS_DF_MODE): Remove.
4112         * config/pdp11/pdp11.c (TARGET_SCALAR_MODE_SUPPORTED_P): New
4113         macro.
4114         (pdp11_scalar_mode_supported_p): New function.
4115         * config/rl78/rl78.h (LIBGCC2_HAS_DF_MODE): Remove.
4116         * config/rx/rx.h (LIBGCC2_HAS_DF_MODE): Remove.
4118 2014-09-12  Richard Biener  <rguenther@suse.de>
4120         PR middle-end/63237
4121         * gimple-fold.c (get_maxval_strlen): Gimplify string length.
4123 2014-09-12  Marc Glisse  <marc.glisse@inria.fr>
4125         * tree.c (integer_each_onep): New function.
4126         * tree.h (integer_each_onep): Declare it.
4127         * fold-const.c (fold_binary_loc): Use it for ~A + 1 to -A and
4128         -A - 1 to ~A.  Disable (X & 1) ^ 1, (X ^ 1) & 1 and ~X & 1 to
4129         (X & 1) == 0 for vector and complex.
4131 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
4133         * gcc/config/aarch64/aarch64.c (cortexa57_regmove_cost): New cost table
4134         for A57.
4135         (cortexa53_regmove_cost): New cost table for A53.  Increase GP2FP/FP2GP
4136         cost to spilling from integer to FP registers.
4138 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
4140         * config/aarch64/aarch64.c (aarch64_register_move_cost): Fix Q register
4141         move handling.
4142         (generic_regmove_cost): Undo raised FP2FP move cost as Q register moves
4143         are now handled correctly.
4145 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
4147         * config/aarch64/aarch64.c (aarch64_register_move_cost): Add cost
4148         handling of CALLER_SAVE_REGS and POINTER_REGS.
4150 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
4152         * gcc/ree.c (combine_reaching_defs): Ensure inserted copy don't change
4153         the number of hard registers.
4155 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4156             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4157             Anna Tikhonova  <anna.tikhonova@intel.com>
4158             Ilya Tocar  <ilya.tocar@intel.com>
4159             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4160             Ilya Verbin  <ilya.verbin@intel.com>
4161             Kirill Yukhin  <kirill.yukhin@intel.com>
4162             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4164         * config/i386/sse.md
4165         (define_mode_iterator VI48_AVX512VL): New.
4166         (define_expand "<avx512>_vternlog<mode>_maskz"): Rename from
4167         "avx512f_vternlog<mode>_maskz" and update mode iterator.
4168         (define_insn "<avx512>_vternlog<mode><sd_maskz_name>"): Rename
4169         from "avx512f_vternlog<mode><sd_maskz_name>" and update mode iterator.
4170         (define_insn "<avx512>_vternlog<mode>_mask"): Rename from
4171         "avx512f_vternlog<mode>_mask" and update mode iterator.
4172         (define_insn "<mask_codefor><avx512>_align<mode><mask_name>"): Rename
4173         from "<mask_codefor>avx512f_align<mode><mask_name>" and update mode
4174         iterator.
4175         (define_insn "<avx512>_<rotate>v<mode><mask_name>"): Rename from
4176         "avx512f_<rotate>v<mode><mask_name>" and update mode iterator.
4177         (define_insn "<avx512>_<rotate><mode><mask_name>"): Rename from
4178         "avx512f_<rotate><mode><mask_name>" and update mode iterator.
4179         (define_insn "clz<mode>2<mask_name>"): Use VI48_AVX512VL mode iterator.
4180         (define_insn "<mask_codefor>conflict<mode><mask_name>"): Ditto.
4182 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4183             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4184             Anna Tikhonova  <anna.tikhonova@intel.com>
4185             Ilya Tocar  <ilya.tocar@intel.com>
4186             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4187             Ilya Verbin  <ilya.verbin@intel.com>
4188             Kirill Yukhin  <kirill.yukhin@intel.com>
4189             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4191         * config/i386/sse.md (VI128_256): Delete.
4192         (define_mode_iterator VI124_256): New.
4193         (define_mode_iterator VI124_256_AVX512F_AVX512BW): Ditto.
4194         (define_expand "<code><mode>3<mask_name><round_name>"): Delete.
4195         (define_expand "<code><VI124_256_AVX512F_AVX512BW:mode>3"): New.
4196         (define_insn "*avx2_<code><VI124_256:mode>3"): Rename from
4197         "*avx2_<code><mode>3<mask_name><round_name>" and update mode iterator.
4198         (define_expand "<code><VI48_AVX512VL:mode>3_mask"): New.
4199         (define_insn "*avx512bw_<code><VI48_AVX512VL:mode>3<mask_name>"): Ditto.
4200         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Update mode
4201         iterator.
4202         (define_expand "<code><VI8_AVX2:mode>3"): Update pettern generation
4203         in presence of AVX-512.
4205 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4206             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4207             Anna Tikhonova  <anna.tikhonova@intel.com>
4208             Ilya Tocar  <ilya.tocar@intel.com>
4209             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4210             Ilya Verbin  <ilya.verbin@intel.com>
4211             Kirill Yukhin  <kirill.yukhin@intel.com>
4212             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4214         * config/i386/sse.md
4215         (define_expand "<avx512>_gathersi<mode>"): Rename from
4216         "avx512f_gathersi<mode>".
4217         (define_insn "*avx512f_gathersi<mode>"): Use VI48F.
4218         (define_insn "*avx512f_gathersi<mode>_2"): Ditto.
4219         (define_expand "<avx512>_gatherdi<mode>"): Rename from
4220         "avx512f_gatherdi<mode>".
4221         (define_insn "*avx512f_gatherdi<mode>"): Use VI48F.
4222         (define_insn "*avx512f_gatherdi<mode>_2"): Use VI48F, add 128/256-bit
4223         wide versions.
4224         (define_expand "<avx512>_scattersi<mode>"): Rename from
4225         "avx512f_scattersi<mode>".
4226         (define_insn "*avx512f_scattersi<mode>"): Use VI48F.
4227         (define_expand "<avx512>_scatterdi<mode>"): Rename from
4228         "avx512f_scatterdi<mode>".
4229         (define_insn "*avx512f_scatterdi<mode>"): Use VI48F.
4231 2014-09-12  Richard Sandiford  <richard.sandiford@arm.com>
4233         * ira.h (ira_finish_once): Delete.
4234         * ira-int.h (target_ira_int::~target_ira_int): Declare.
4235         (target_ira_int::free_ira_costs): Likewise.
4236         (target_ira_int::free_register_move_costs): Likewise.
4237         (ira_finish_costs_once): Delete.
4238         * ira.c (free_register_move_costs): Replace with...
4239         (target_ira_int::free_register_move_costs): ...this new function.
4240         (target_ira_int::~target_ira_int): Define.
4241         (ira_init): Call free_register_move_costs as a member function rather
4242         than a global function.
4243         (ira_finish_once): Delete.
4244         * ira-costs.c (free_ira_costs): Replace with...
4245         (target_ira_int::free_ira_costs): ...this new function.
4246         (ira_init_costs): Call free_ira_costs as a member function rather
4247         than a global function.
4248         (ira_finish_costs_once): Delete.
4249         * target-globals.c (target_globals::~target_globals): Call the
4250         target_ira_int destructor.
4251         * toplev.c: Include lra.h.
4252         (finalize): Call lra_finish_once rather than ira_finish_once.
4254 2014-09-11  Jan Hubicka  <hubicka@ucw.cz>
4256         * common.opt (flto-odr-type-merging): New flag.
4257         * ipa-deivrt.c (hash_type_name): Use ODR names for hasing if availale.
4258         (types_same_for_odr): Likewise.
4259         (odr_subtypes_equivalent_p): Likewise.
4260         (add_type_duplicate): Do not walk type variants.
4261         (register_odr_type): New function.
4262         * ipa-utils.h (register_odr_type): Declare.
4263         (odr_type_p): New function.
4264         * langhooks.c (lhd_set_decl_assembler_name): Do not compute
4265         TYPE_DECLs
4266         * doc/invoke.texi (-flto-odr-type-merging): Document.
4267         * tree.c (need_assembler_name_p): Compute ODR names when asked
4268         for it.
4269         * tree.h (DECL_ASSEMBLER_NAME): Update comment.
4271 2014-09-11  H.J. Lu  <hongjiu.lu@intel.com>
4273         PR target/63228
4274         * config/i386/i386.c (ix86_option_override_internal): Also turn
4275         off OPTION_MASK_ABI_X32 for -m16.
4277 2014-09-11  Segher Boessenkool  <segher@kernel.crashing.org>
4279         * config/rs6000/rs6000.md (rs6000_mftb_<mode>): Use mode iterator
4280         GPR instead of P.
4282 2014-09-11  Marc Glisse  <marc.glisse@inria.fr>
4284         PR target/58757
4285         * ginclude/float.h (FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
4286         Directly forward to __*_DENORM_MIN__.
4288 2014-09-11  David Malcolm  <dmalcolm@redhat.com>
4290         * rtl.h (LABEL_REF_LABEL): New macro.
4292         * alias.c (rtx_equal_for_memref_p): Use LABEL_REF_LABEL in place
4293         of XEXP (, 0), where we know that we have a LABEL_REF.
4294         * cfgbuild.c (make_edges): Likewise.
4295         (purge_dead_tablejump_edges): Likewise.
4296         * cfgexpand.c (convert_debug_memory_address): Likewise.
4297         * cfgrtl.c (patch_jump_insn): Likewise.
4298         * combine.c (distribute_notes): Likewise.
4299         * cse.c (hash_rtx_cb): Likewise.
4300         (exp_equiv_p): Likewise.
4301         (fold_rtx): Likewise.
4302         (check_for_label_ref): Likewise.
4303         * cselib.c (rtx_equal_for_cselib_1): Likewise.
4304         (cselib_hash_rtx): Likewise.
4305         * emit-rtl.c (mark_label_nuses): Likewise.
4306         * explow.c (convert_memory_address_addr_space): Likewise.
4307         * final.c (output_asm_label): Likewise.
4308         (output_addr_const): Likewise.
4309         * gcse.c (add_label_notes): Likewise.
4310         * genconfig.c (walk_insn_part): Likewise.
4311         * genrecog.c (validate_pattern): Likewise.
4312         * ifcvt.c (cond_exec_get_condition): Likewise.
4313         (noce_emit_store_flag): Likewise.
4314         (noce_get_alt_condition): Likewise.
4315         (noce_get_condition): Likewise.
4316         * jump.c (maybe_propagate_label_ref): Likewise.
4317         (mark_jump_label_1): Likewise.
4318         (redirect_exp_1): Likewise.
4319         (rtx_renumbered_equal_p): Likewise.
4320         * lra-constraints.c (operands_match_p): Likewise.
4321         * reload.c (operands_match_p): Likewise.
4322         (find_reloads): Likewise.
4323         * reload1.c (set_label_offsets): Likewise.
4324         * reorg.c (get_branch_condition): Likewise.
4325         * rtl.c (rtx_equal_p_cb): Likewise.
4326         (rtx_equal_p): Likewise.
4327         * rtlanal.c (reg_mentioned_p): Likewise.
4328         (rtx_referenced_p): Likewise.
4329         (get_condition): Likewise.
4330         * sched-vis.c (print_value): Likewise.
4331         * varasm.c (const_hash_1): Likewise.
4332         (compare_constant): Likewise.
4333         (const_rtx_hash_1): Likewise.
4334         (output_constant_pool_1): Likewise.
4336 2014-09-11  Segher Boessenkool  <segher@kernel.crashing.org>
4338         * config/rs6000/htm.md (tabort, tabortdc, tabortdci, tabortwc,
4339         tabortwci, tbegin, tcheck, tend, trechkpt, treclaim, tsr): Use xor
4340         instead of minus.
4341         * config/rs6000/vector.md (cr6_test_for_zero_reverse,
4342         cr6_test_for_lt_reverse): Ditto.
4344 2014-09-11  Paolo Carlini  <paolo.carlini@oracle.com>
4346         PR c++/61489
4347         * doc/invoke.texi ([-Wmissing-field-initializers]): Update.
4349 2014-09-11  Alan Lawrence  <alan.lawrence@arm.com>
4351         * config/aarch64/aarch64-builtins.c (aarch64_types_unop_su_qualifiers,
4352         TYPES_REINTERP_SU, aarch64_types_unop_sp_qualifiers, TYPE_REINTERP_SP,
4353         aarch64_types_unop_us_qualifiers, TYPES_REINTERP_US,
4354         aarch64_types_unop_ps_qualifiers, TYPES_REINTERP_PS, BUILTIN_VD):
4355         Delete.
4357         (aarch64_fold_builtin): Remove all reinterpret cases.
4359         * config/aarch64/aarch64-protos.h (aarch64_simd_reinterpret): Delete.
4361         * config/aarch64/aarch64-simd-builtins.def (reinterpret*) : Delete.
4363         * config/aarch64/aarch64-simd.md (aarch64_reinterpretv8qi<mode>,
4364         aarch64_reinterpretv4hi<mode>, aarch64_reinterpretv2si<mode>,
4365         aarch64_reinterpretv2sf<mode>, aarch64_reinterpretdi<mode>,
4366         aarch64_reinterpretv1df<mode>, aarch64_reinterpretv16qi<mode>,
4367         aarch64_reinterpretv8hi<mode>, aarch64_reinterpretv4si<mode>,
4368         aarch64_reinterpretv4sf<mode>, aarch64_reinterpretv2di<mode>,
4369         aarch64_reinterpretv2df<mode>): Delete.
4371         * config/aarch64/aarch64.c (aarch64_simd_reinterpret): Delete.
4373         * config/aarch64/arm_neon.h (vreinterpret_p8_f64,
4374         vreinterpret_p16_f64, vreinterpret_f32_f64, vreinterpret_f64_f32,
4375         vreinterpret_f64_p8, vreinterpret_f64_p16, vreinterpret_f64_s8,
4376         vreinterpret_f64_s16, vreinterpret_f64_s32, vreinterpret_f64_u8,
4377         vreinterpret_f64_u16, vreinterpret_f64_u32, vreinterpret_s64_f64,
4378         vreinterpret_u64_f64, vreinterpret_s8_f64, vreinterpret_s16_f64,
4379         vreinterpret_s32_f64, vreinterpret_u8_f64, vreinterpret_u16_f64,
4380         vreinterpret_u32_f64): Use cast.
4382         * config/aarch64/iterators.md (VD_RE): Delete.
4384 2014-09-11  Alan Lawrence  <alan.lawrence@arm.com>
4386         * config/aarch64/arm_neon.h (aarch64_vset_lane_any): New (*2).
4387         (vset_lane_f32, vset_lane_f64, vset_lane_p8, vset_lane_p16,
4388         vset_lane_s8, vset_lane_s16, vset_lane_s32, vset_lane_s64,
4389         vset_lane_u8, vset_lane_u16, vset_lane_u32, vset_lane_u64,
4390         vsetq_lane_f32, vsetq_lane_f64, vsetq_lane_p8, vsetq_lane_p16,
4391         vsetq_lane_s8, vsetq_lane_s16, vsetq_lane_s32, vsetq_lane_s64,
4392         vsetq_lane_u8, vsetq_lane_u16, vsetq_lane_u32, vsetq_lane_u64):
4393         Replace inline assembler with __aarch64_vset_lane_any.
4395 2014-09-11  James Greenhalgh  <james.greenhalgh@arm.com>
4397         * config/aarch64/arm_neon.h (vmull_high_lane_s16): Fix argument
4398         types.
4399         (vmull_high_lane_s32): Likewise.
4400         (vmull_high_lane_u16): Likewise.
4401         (vmull_high_lane_u32): Likewise.
4403 2014-09-11  Jason Merrill  <jason@redhat.com>
4405         PR c++/58678
4406         * ipa-devirt.c (ipa_devirt): Don't check DECL_COMDAT.
4408 2014-09-11  Georg-Johann Lay  <avr@gjlay.de>
4410         PR target/63223
4411         * config/avr/avr.md (*tablejump.3byte-pc): New insn.
4412         (*tablejump): Restrict to !AVR_HAVE_EIJMP_EICALL.  Add void clobber.
4413         (casesi): Expand to *tablejump.3byte-pc if AVR_HAVE_EIJMP_EICALL.
4415 2014-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4416             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4417             Anna Tikhonova  <anna.tikhonova@intel.com>
4418             Ilya Tocar  <ilya.tocar@intel.com>
4419             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4420             Ilya Verbin  <ilya.verbin@intel.com>
4421             Kirill Yukhin  <kirill.yukhin@intel.com>
4422             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4424         * config/i386/sse.md
4425         (define_expand "<avx512>_vpermi2var<VI48F:mode>3_maskz"): Rename from
4426         "avx512f_vpermi2var<mode>3_maskz" and update mode iterator.
4427         (define_expand "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_maskz"):
4428         New.
4429         (define_insn "<avx512>_vpermi2var<VI48F:mode>3<sd_maskz_name>"): Rename
4430         from "avx512f_vpermi2var<mode>3<sd_maskz_name>" and update mode
4431         iterator.
4432         (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
4433         New.
4434         (define_insn "<avx512>_vpermi2var<VI48F:mode>3_mask"): Rename from
4435         "avx512f_vpermi2var<mode>3_mask" and update mode iterator.
4436         (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_mask"): New.
4437         (define_expand "<avx512>_vpermt2var<VI48F:mode>3_maskz"): Rename from
4438         "avx512f_vpermt2var<mode>3_maskz" and update mode iterator.
4439         (define_expand "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_maskz"): New.
4440         (define_insn "<avx512>_vpermt2var<VI48F:mode>3<sd_maskz_name>"): Rename
4441         from "avx512f_vpermt2var<mode>3<sd_maskz_name>" and update mode
4442         iterator.
4443         (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
4444         New.
4445         (define_insn "<avx512>_vpermt2var<VI48F:mode>3_mask"): Rename from
4446         "avx512f_vpermt2var<mode>3_mask" and update mode iterator.
4447         (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_mask"): New.
4449 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
4451         * varpool.c (varpool_node::ctor_useable_for_folding_p): Do not try
4452         to access removed nodes.
4454 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
4456         PR tree-optimization/63186
4457         * ipa-split.c (test_nonssa_use): Skip nonforced labels.
4458         (mark_nonssa_use): Likewise.
4459         (verify_non_ssa_vars): Verify all header blocks for label
4460         definitions.
4462 2014-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4463             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4464             Anna Tikhonova  <anna.tikhonova@intel.com>
4465             Ilya Tocar  <ilya.tocar@intel.com>
4466             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4467             Ilya Verbin  <ilya.verbin@intel.com>
4468             Kirill Yukhin  <kirill.yukhin@intel.com>
4469             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4471         * config/i386/sse.md
4472         (define_mode_attr avx2_avx512): Rename from avx2_avx512bw.
4473         (define_mode_iterator VI48F_256_512): Extend to AVX-512VL.
4474         (define_insn "<avx2_avx512>_permvar<mode><mask_name>"): Rename from
4475         "<avx2_avx512f>_permvar<mode><mask_name>".
4476         (define_insn "<avx512>_permvar<mode><mask_name>"): New.
4477         (define_insn "<avx2_avx512>_ashrv<VI48_AVX512F_AVX512VL:mode><mask_name>"):
4478         Rename from "<avx2_avx512f>_ashrv<mode><mask_name>".
4479         (define_insn "<avx2_avx512>_ashrv<VI2_AVX512VL:mode><mask_name>"):
4480         Ditto.
4481         (define_insn "<avx2_avx512>_<shift_insn>v<VI48_AVX512F:mode><mask_name>"):
4482         Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
4483         (define_insn "<avx2_avx512>_<shift_insn>v<VI2_AVX512VL:mode><mask_name>"):
4484         Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
4486 2014-09-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
4488         * config/rs6000/vsx.md (vsx_fmav4sf4): Use correct constraints for
4489         V2DF, V4SF, DF, and DI modes.
4490         (vsx_fmav2df2): Likewise.
4491         (vsx_float_fix_<mode>2): Likewise.
4492         (vsx_reduc_<VEC_reduc_name>_v2df_scalar): Likewise.
4494 2014-09-10  Xinliang David Li  <davidxl@google.com>
4496         PR target/63209
4497         * config/arm/arm.md (movcond_addsi): Handle case where source
4498         and target operands are the same.
4500 2014-09-10  David Malcolm  <dmalcolm@redhat.com>
4502         * final.c (this_is_asm_operands): Strengthen this variable from
4503         rtx to const rtx_insn *.
4504         * output.h (this_is_asm_operands): Likewise.
4505         * rtl-error.c (location_for_asm): Strengthen param "insn" from
4506         const_rtx to const rtx_insn *.
4507         (diagnostic_for_asm): Likewise.
4508         * rtl-error.h (error_for_asm): Likewise.
4509         (warning_for_asm): Likewise.
4511 2014-09-10  David Malcolm  <dmalcolm@redhat.com>
4513         * genextract.c (print_header): When writing out insn_extract to
4514         insn-extract.c, strengthen the param "insn" from rtx to rtx_insn *.
4515         * recog.h (insn_extract): Strengthen the param from rtx to
4516         rtx_insn *.
4518 2014-09-10  Mike Stump  <mikestump@comcast.net>
4520         * doc/install.texi (Prerequisites): Note Tcl 8.6 bug fixed in
4521         8.6.1.
4523 2014-09-10  Martin Jambor  <mjambor@suse.cz>
4525         * cgraphunit.c (expand_thunk): If not expanding, set analyzed flag.
4526         (analyze): Do not set analyze flag if expand_thunk returns false;.
4527         (create_wrapper): Likewise.
4528         * cgraphclones.c (duplicate_thunk_for_node): Likewise.
4530 2014-09-10  Martin Jambor  <mjambor@suse.cz>
4532         PR ipa/61654
4533         * cgraphclones.c (duplicate_thunk_for_node): Copy arguments of the
4534         new decl properly.  Analyze the new thunk if it is expanded.
4536 2014-09-10  Andreas Schwab  <schwab@suse.de>
4538         * coretypes.h (struct _dont_use_rtx_insn_here_, rtx_insn)
4539         [USED_FOR_TARGET]: Define.
4541 2014-09-10  Matthew Fortune  <matthew.fortune@imgtec.com>
4543         * config/mips/mips.c (mips_secondary_reload_class): Handle
4544         regno < 0 case.
4546 2014-09-10  Robert Suchanek   <robert.suchanek@imgtec.com>
4548         * lra-lives.c (process_bb_lives): Replace assignment with bitwise OR
4549         assignment.
4551 2014-09-10  Jakub Jelinek  <jakub@redhat.com>
4553         * flag-types.h (enum sanitize_code): Add SANITIZE_NONNULL_ATTRIBUTE
4554         and SANITIZE_RETURNS_NONNULL_ATTRIBUTE, or them into SANITIZE_UNDEFINED.
4555         * opts.c (common_handle_option): Handle SANITIZE_NONNULL_ATTRIBUTE and
4556         SANITIZE_RETURNS_NONNULL_ATTRIBUTE and disable
4557         flag_delete_null_pointer_checks for them.
4558         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
4559         BUILT_IN_UBSAN_HANDLE_NONNULL_ARG_ABORT,
4560         BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN,
4561         BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_ABORT): New.
4562         * ubsan.c (instrument_bool_enum_load): Set *gsi back to
4563         stmt's iterator.
4564         (instrument_nonnull_arg, instrument_nonnull_return): New functions.
4565         (pass_ubsan::gate): Return true even for SANITIZE_NONNULL_ATTRIBUTE
4566         or SANITIZE_RETURNS_NONNULL_ATTRIBUTE.
4567         (pass_ubsan::execute): Call instrument_nonnull_{arg,return}.
4568         * doc/invoke.texi (-fsanitize=nonnull-attribute,
4569         -fsanitize=returns-nonnull-attribute): Document.
4571         * ubsan.h (struct ubsan_mismatch_data): Removed.
4572         (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
4573         * ubsan.c (ubsan_source_location): For unknown locations,
4574         pass { NULL, 0, 0 } instead of { "<unknown>", x, y }.
4575         (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
4576         Allow more than one location and arbitrary extra arguments passed
4577         in ... instead of through MISMATCH pointer.
4578         (ubsan_instrument_unreachable, ubsan_expand_bounds_ifn,
4579         ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
4580         instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
4581         callers.
4583 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4584             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4585             Anna Tikhonova  <anna.tikhonova@intel.com>
4586             Ilya Tocar  <ilya.tocar@intel.com>
4587             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4588             Ilya Verbin  <ilya.verbin@intel.com>
4589             Kirill Yukhin  <kirill.yukhin@intel.com>
4590             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4592         * config/i386/sse.md
4593         (define_mode_iterator VI48F): New.
4594         (define_insn "<avx512>_compress<mode>_mask"): Rename from
4595         "avx512f_compress<mode>_mask" and update mode iterator.
4596         (define_insn "<avx512>_compressstore<mode>_mask"): Rename from
4597         "avx512f_compressstore<mode>_mask" and update mode iterator.
4598         (define_expand "<avx512>_expand<mode>_maskz"): Rename from
4599         "avx512f_expand<mode>_maskz" and update mode iterator.
4600         (define_insn "<avx512>_expand<mode>_mask"): Rename from
4601         "avx512f_expand<mode>_mask" and update mode iterator.
4603 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4604             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4605             Anna Tikhonova  <anna.tikhonova@intel.com>
4606             Ilya Tocar  <ilya.tocar@intel.com>
4607             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4608             Ilya Verbin  <ilya.verbin@intel.com>
4609             Kirill Yukhin  <kirill.yukhin@intel.com>
4610             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4612         * config/i386/i386.c
4613         (ix86_expand_args_builtin): Handle avx512dq_rangepv8df_mask_round,
4614         avx512dq_rangepv16sf_mask_round, avx512dq_rangepv4df_mask,
4615         avx512dq_rangepv8sf_mask, avx512dq_rangepv2df_mask,
4616         avx512dq_rangepv4sf_mask.
4617         * config/i386/sse.md
4618         (define_c_enum "unspec"): Add UNSPEC_REDUCE, UNSPEC_FPCLASS,
4619         UNSPEC_RANGE.
4620         (define_insn "<mask_codefor>reducep<mode><mask_name>"): New.
4621         (define_insn "reduces<mode>"): Ditto.
4622         (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
4623         Ditto.
4624         (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Ditto.
4625         (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Ditto.
4626         (define_insn "avx512dq_vmfpclass<mode>"): Ditto..
4628 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4629             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4630             Anna Tikhonova  <anna.tikhonova@intel.com>
4631             Ilya Tocar  <ilya.tocar@intel.com>
4632             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4633             Ilya Verbin  <ilya.verbin@intel.com>
4634             Kirill Yukhin  <kirill.yukhin@intel.com>
4635             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4637         * config/i386/i386.c
4638         (avx512f_vgetmantv2df_round): Rename from "avx512f_getmantv2df_round".
4639         (avx512f_vgetmantv4sf_round): Rename from "avx512f_vgetmantv4sf_round".
4640         (ix86_expand_args_builtin): Handle avx512vl_getmantv8sf_mask,
4641         avx512vl_getmantv4df_mask, avx512vl_getmantv4sf_mask,
4642         avx512vl_getmantv2df_mask.
4643         (ix86_expand_round_builtin): Handle avx512f_vgetmantv2df_round,
4644         avx512f_vgetmantv4sf_round.
4645         * config/i386/sse.md
4646         (define_insn "<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask"):
4647         Rename from "avx512f_storeu<ssemodesuffix>512_mask" and update
4648         mode iterator.
4649         (define_insn "<mask_codefor>rcp14<mode><mask_name>"): Use VF_AVX512VL.
4650         (define_insn "<mask_codefor>rsqrt14<mode><mask_name>"): Ditto.
4651         (define_insn "<avx512>_scalef<mode><mask_name><round_name>"): Rename
4652         from "avx512f_scalef<mode><mask_name><round_name>" and update mode
4653         iterator..
4654         (define_insn "<avx512>_getexp<mode><mask_name><round_saeonly_name>"):
4655         Rename from "avx512f_getexp<mode><mask_name><round_saeonly_name>" and
4656         update mode iterator.
4657         (define_expand
4658         "<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>"): Rename from
4659         "avx512f_fixupimm<mode>_maskz<round_saeonly_expand_name>" and update
4660         mode iterator.
4661         (define_insn
4662         "<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>"): Rename
4663         from "avx512f_fixupimm<mode><sd_maskz_name><round_saeonly_name>" and
4664         update mode iterator.
4665         (define_insn "<avx512>_fixupimm<mode>_mask<round_saeonly_name>"): Rename
4666         from "avx512f_fixupimm<mode>_mask<round_saeonly_name>" and update mode
4667         iterator..
4668         (define_insn
4669         "<avx512>_rndscale<mode><mask_name><round_saeonly_name>"): rename from
4670         "avx512f_rndscale<mode><mask_name><round_saeonly_name>" and update
4671         mode iterator..
4672         (define_insn "<avx512>_getmant<mode><mask_name><round_saeonly_name>"):
4673         Rename from "avx512f_getmant<mode><mask_name><round_saeonly_name>" and
4674         update mode iterator.
4675         (define_insn "avx512f_vgetmant<mode><round_saeonly_name>"): Rename from
4676         "avx512f_getmant<mode><round_saeonly_name>".
4678 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
4680         PR ipa/63166
4681         * ipa-prop.c (compute_known_type_jump_func): Fix conditional.
4683 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4684             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4685             Anna Tikhonova  <anna.tikhonova@intel.com>
4686             Ilya Tocar  <ilya.tocar@intel.com>
4687             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4688             Ilya Verbin  <ilya.verbin@intel.com>
4689             Kirill Yukhin  <kirill.yukhin@intel.com>
4690             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4692         * config/i386/sse.md (define_mode_iterator VF_AVX512VL): New.
4693         (define_mode_iterator FMAMODEM): Allow 128/256bit EVEX version.
4694         (define_mode_iterator FMAMODE_AVX512): New.
4695         (define_mode_iterator FMAMODE): Remove conditions.
4696         (define_expand "fma4i_fmadd_<mode>"): Use FMAMODE_AVX512 mode iterator.
4697         (define_expand "<avx512>_fmadd_<mode>_maskz<round_expand_name>"): Rename
4698         from "<avx512>_fmadd_<mode>_maskz<round_expand_name>" and use VF_AVX512VL
4699         mode iterator.
4700         (define_mode_iterator FMAMODE_NOVF512): Remove.
4701         (define_insn "*fma_fmadd_<mode>"): Rename from
4702         "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>" and use
4703         FMAMODE mode iterator.
4704         (define_mode_iterator VF_SF_AVX512VL): New.
4705         (define_insn "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>"):
4706         Use VF_SF_AVX512VL mode iterator.
4707         (define_insn "<avx512>_fmadd_<mode>_mask<round_name>"): Rename from
4708         "avx512f_fmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
4709         iterator.
4710         (define_insn "<avx512>_fmadd_<mode>_mask3<round_name>"): Rename from
4711         "avx512f_fmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
4712         iterator.
4713         (define_insn "*fma_fmsub_<mode>"): Rename from
4714         "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>" and use
4715         FMAMODE mode iterator.
4716         (define_insn "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>"):
4717         Use VF_SF_AVX512VL mode iterator.
4718         (define_insn "<avx512>_fmsub_<mode>_mask<round_name>"): Rename from
4719         "avx512f_fmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
4720         iterator.
4721         (define_insn "<avx512>_fmsub_<mode>_mask3<round_name>"): Rename from
4722         "avx512f_fmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
4723         iterator.
4724         (define_insn "*fma_fnmadd_<mode>"): Rename from
4725         "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>" and
4726         use FMAMODE mode iterator.
4727         (define_insn "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>"):
4728         Use VF_SF_AVX512VL mode iterator.
4729         (define_insn "<avx512>_fnmadd_<mode>_mask<round_name>"): Rename from
4730         "avx512f_fnmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
4731         iterator.
4732         (define_insn "<avx512>_fnmadd_<mode>_mask3<round_name>"): Rename from
4733         "avx512f_fnmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
4734         iterator.
4735         (define_insn "*fma_fnmsub_<mode>"): Rename from
4736         "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>" and use
4737         FMAMODE mode iterator.
4738         (define_insn "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>"):
4739         Use VF_SF_AVX512VL mode iterator.
4740         (define_insn "<avx512>_fnmsub_<mode>_mask<round_name>"): Rename from
4741         "avx512f_fnmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
4742         iterator.
4743         (define_insn "<avx512>_fnmsub_<mode>_mask3<round_name>"): Rename from
4744         "avx512f_fnmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
4745         iterator.
4746         (define_expand "<avx512>_fmaddsub_<mode>_maskz<round_expand_name>"):
4747         Rename from "avx512f_fmaddsub_<mode>_maskz<round_expand_name>" and
4748         use VF_AVX512VL mode iterator.
4749         (define_insn "*fma_fmaddsub_<mode>"): Rename from
4750         "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>" and
4751         remove subst usage.
4752         (define_insn "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>"):
4753         Use VF_SF_AVX512VL mode iterator.
4754         (define_insn "<avx512>_fmaddsub_<mode>_mask<round_name>"): Rename from
4755         "avx512f_fmaddsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
4756         iterator.
4757         (define_insn "<avx512>_fmaddsub_<mode>_mask3<round_name>"): Rename from
4758         "avx512f_fmaddsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
4759         iterator.
4760         (define_insn "*fma_fmsubadd_<mode>"): Rename from
4761         "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>" and
4762         remove usage of subst.
4763         (define_insn "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>"):
4764         Use VF_SF_AVX512VL mode iterator.
4765         (define_insn "<avx512>_fmsubadd_<mode>_mask<round_name>"): Rename from
4766         "avx512f_fmsubadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
4767         iterator.
4768         (define_insn "<avx512>_fmsubadd_<mode>_mask3<round_name>"): Rename from
4769         "avx512f_fmsubadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
4770         iterator.
4772 2014-09-10  Kugan Vivekanandarajah  <kuganv@linaro.org>
4774         Revert r213751:
4775         * calls.c (precompute_arguments): Check
4776          promoted_for_signed_and_unsigned_p and set the promoted mode.
4777         (promoted_for_signed_and_unsigned_p): New function.
4778         (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
4779         and set the promoted mode.
4780         * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
4781         * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
4782         SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
4784 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4786         * opth-gen.awk: Generate mapping from cpp message reasons to the
4787         options that enable them.
4788         * doc/options.texi (CppReason): Document.
4790 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4792         * doc/invoke.texi (Wnormalized=): Update.
4794 2014-09-09  Segher Boessenkool  <segher@kernel.crashing.org>
4796         PR target/63195
4797         * config/rs6000/rs6000.md (*bool<mode>3): Allow only register
4798         operands.  Split off the constant operand alternative to ...
4799         (*bool<mode>3_imm): New.
4801 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
4803         * rtl.h (single_set_2): Strengthen first param from const_rtx to
4804         const rtx_insn *, and move prototype to above...
4805         (single_set): ...this.  Convert this from a macro to an inline
4806         function, enforcing the requirement that the param is a const
4807         rtx_insn *.
4808         (find_args_size_adjust): Strengthen param from rtx to rtx_insn *.
4810         * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
4811         Strengthen both params from rtx to rtx_insn *.
4812         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
4813         Likewise; introduce locals "producer_set", "consumer_set", using
4814         them in place of "producer" and "consumer" when dealing with SET
4815         rather than insn.
4816         * config/avr/avr.c (avr_out_plus): Add checked cast to rtx_insn *
4817         when invoking single_set in region guarded by INSN_P.
4818         (avr_out_bitop): Likewise.
4819         (_reg_unused_after): Introduce local rtx_sequence * "seq" in
4820         region guarded by GET_CODE check, using methods to strengthen
4821         local "this_insn" from rtx to rtx_insn *, and for clarity.
4822         * config/avr/avr.md (define_insn_and_split "xload8<mode>_A"):
4823         Strengthen local "insn" from rtx to rtx_insn *.
4824         (define_insn_and_split "xload<mode>_A"): Likewise.
4825         * config/bfin/bfin.c (trapping_loads_p): Likewise for param
4826         "insn".
4827         (find_load): Likewise for return type.
4828         (workaround_speculation): Likewise for both locals named
4829         "load_insn".
4830         * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise for
4831         local "cc0_user".
4832         * config/cris/cris.md (define_peephole2 ; moversideqi): Likewise
4833         for local "prev".
4834         * config/h8300/h8300-protos.h (notice_update_cc): Likewise for
4835         param 2.
4836         * config/h8300/h8300.c (notice_update_cc): Likewise.
4837         * config/i386/i386.c (ix86_flags_dependent): Likewise for params
4838         "insn" and "dep_insn".
4839         (exact_store_load_dependency): Likewise for both params.
4840         (ix86_macro_fusion_pair_p): Eliminate local named "single_set"
4841         since this now clashes with inline function.  Instead, delay
4842         calling single_set until the point where its needed, and then
4843         assign the result to "compare_set" and rework the conditional that
4844         follows.
4845         * config/ia64/ia64.md (define_expand "tablejump"): Strengthen
4846         local "last" from rtx to rtx_insn *.
4847         * config/mips/mips-protos.h (mips_load_store_insns): Likewise for
4848         second param.
4849         (mips_store_data_bypass_p): Likewise for both params.
4850         * config/mips/mips.c (mips_load_store_insns): Likewise for second
4851         param.
4852         (mips_store_data_bypass_p): Likewise for both params.
4853         (mips_orphaned_high_part_p): Likewise for param "insn".
4854         * config/mn10300/mn10300.c (extract_bundle): Likewise.
4855         (mn10300_bundle_liw): Likewise for locals "r", "insn1", "insn2".
4856         Introduce local rtx "insn2_pat".
4857         * config/rl78/rl78.c (move_elim_pass): Likewise for locals "insn",
4858         "ninsn".
4859         (rl78_remove_unused_sets): Likewise for locals "insn", "ninsn".
4860         Introduce local rtx "set", using it in place of "insn" for the
4861         result of single_set.  This appears to fix a bug, since the call
4862         to find_regno_note on a SET does nothing.
4863         * config/rs6000/rs6000.c (set_to_load_agen): Strengthen both
4864         params from rtx to rtx_insn *.
4865         (set_to_load_agen): Likewise.
4866         * config/s390/s390.c (s390_label_align): Likewise for local
4867         "prev_insn".  Introduce new rtx locals "set" and "src", using
4868         them in place of "prev_insn" for the results of single_set
4869         and SET_SRC respectively.
4870         (s390_swap_cmp): Strengthen local "jump" from rtx to rtx_insn *.
4871         Introduce new rtx local "set" using in place of "jump" for the
4872         result of single_set.  Use SET_SRC (set) rather than plain
4873         XEXP (set, 1).
4874         * config/sh/sh.c (noncall_uses_reg): Strengthen param 2from
4875         rtx to rtx_insn *.
4876         (noncall_uses_reg): Likewise.
4877         (reg_unused_after): Introduce local rtx_sequence * "seq" in region
4878         guarded by GET_CODE check, using its methods for clarity, and to
4879         enable strengthening local "this_insn" from rtx to rtx_insn *.
4880         * config/sh/sh.md (define_expand "mulhisi3"): Strengthen local
4881         "insn" from rtx to rtx_insn *.
4882         (define_expand "umulhisi3"): Likewise.
4883         (define_expand "smulsi3_highpart"): Likewise.
4884         (define_expand "umulsi3_highpart"): Likewise.
4885         * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
4886         local "after".  Replace GET_CODE check with a dyn_cast,
4887         introducing new local rtx_sequence * "seq", using insn method for
4888         typesafety.
4890         * dwarf2cfi.c (dwarf2out_frame_debug): Strengthen param "insn"
4891         from rtx to rtx_insn *.  Introduce local rtx "pat", using it in
4892         place of "insn" once we're dealing with patterns rather than the
4893         input insn.
4894         (scan_insn_after): Strengthen param "insn" from rtx to rtx_insn *.
4895         (scan_trace): Likewise for local "elt", updating lookups within
4896         sequence to use insn method rather than element method.
4897         * expr.c (find_args_size_adjust): Strengthen param "insn" from rtx
4898         to rtx_insn *.
4899         * gcse.c (gcse_emit_move_after): Likewise for local "new_rtx".
4900         * ifcvt.c (noce_try_abs): Likewise for local "insn".
4901         * ira.c (fix_reg_equiv_init): Add checked cast to rtx_insn * when
4902         invoking single_set.
4903         * lra-constraints.c (insn_rhs_dead_pseudo_p): Strengthen param
4904         "insn" from rtx to rtx_insn *.
4905         (skip_usage_debug_insns): Likewise for return type, adding a
4906         checked cast.
4907         (check_secondary_memory_needed_p): Likewise for local "insn".
4908         (inherit_reload_reg): Likewise.
4909         * modulo-sched.c (sms_schedule): Likewise for local "count_init".
4910         * recog.c (peep2_attempt): Likewise for local "old_insn", adding
4911         checked casts.
4912         (store_data_bypass_p): Likewise for both params.
4913         (if_test_bypass_p): Likewise.
4914         * recog.h (store_data_bypass_p): Likewise for both params.
4915         (if_test_bypass_p): Likewise.
4916         * reload.c (find_equiv_reg): Likewise for local "where".
4917         * reorg.c (delete_jump): Likewise for param "insn".
4918         * rtlanal.c (single_set_2): Strenghen param "insn" from const_rtx
4919         to const rtx_insn *.
4920         * store-motion.c (replace_store_insn): Likewise for param "del".
4921         (delete_store): Strengthen local "i" from rtx to rtx_insn_list *,
4922         and use its methods for clarity, and to strengthen local "del"
4923         from rtx to rtx_insn *.
4924         (build_store_vectors): Use insn method of "st" when calling
4925         replace_store_insn for typesafety and clarity.
4927 2014-09-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4929         * config/rs6000/rs6000.c (rtx_is_swappable_p): Add
4930         UNSPEC_VSX_CVDPSPN as an unswappable operand, and add commentary
4931         on how to make it legal in future.
4933 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
4935         * caller-save.c (rtx saveinsn): Strengthen this variable from rtx
4936         to rtx_insn *.
4937         (restinsn): Likewise.
4938         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
4939         Likewise for param.
4940         * config/aarch64/aarch64.c (aarch64_simd_attr_length_move):
4941         Likewise.
4942         * config/arc/arc-protos.h (arc_adjust_insn_length): Likewise for
4943         first param.
4944         (arc_hazard): Likewise for both params.
4945         * config/arc/arc.c (arc600_corereg_hazard): Likewise, adding
4946         checked casts to rtx_sequence * and uses of the insn method for
4947         type-safety.
4948         (arc_hazard): Strengthen both params from rtx to rtx_insn *.
4949         (arc_adjust_insn_length): Likewise for param "insn".
4950         (struct insn_length_parameters_s): Likewise for first param of
4951         "get_variants" callback field.
4952         (arc_get_insn_variants): Likewise for first param and local
4953         "inner".  Replace a check of GET_CODE with a dyn_cast to
4954         rtx_sequence *, using methods for type-safety and clarity.
4955         * config/arc/arc.h (ADJUST_INSN_LENGTH): Use casts to
4956         rtx_sequence * and uses of the insn method for type-safety when
4957         invoking arc_adjust_insn_length.
4958         * config/arm/arm-protos.h (arm_attr_length_move_neon): Likewise
4959         for param.
4960         (arm_address_offset_is_imm): Likewise.
4961         (struct tune_params): Likewise for params 1 and 3 of the
4962         "sched_adjust_cost" callback field.
4963         * config/arm/arm.c (cortex_a9_sched_adjust_cost): Likewise for
4964         params 1 and 3 ("insn" and "dep").
4965         (xscale_sched_adjust_cost): Likewise.
4966         (fa726te_sched_adjust_cost): Likewise.
4967         (cortexa7_older_only): Likewise for param "insn".
4968         (cortexa7_younger): Likewise.
4969         (arm_attr_length_move_neon): Likewise.
4970         (arm_address_offset_is_imm): Likewise.
4971         * config/avr/avr-protos.h (avr_notice_update_cc): Likewise.
4972         * config/avr/avr.c (avr_notice_update_cc): Likewise.
4973         * config/bfin/bfin.c (hwloop_pattern_reg): Likewise.
4974         (workaround_speculation): Likewise for local "last_condjump".
4975         * config/c6x/c6x.c (shadow_p): Likewise for param "insn".
4976         (shadow_or_blockage_p): Likewise.
4977         (get_unit_reqs): Likewise.
4978         (get_unit_operand_masks): Likewise.
4979         (c6x_registers_update): Likewise.
4980         (returning_call_p): Likewise.
4981         (can_use_callp): Likewise.
4982         (convert_to_callp): Likewise.
4983         (find_last_same_clock): Likwise for local "t".
4984         (reorg_split_calls): Likewise for local "shadow".
4985         (hwloop_pattern_reg): Likewise for param "insn".
4986         * config/frv/frv-protos.h (frv_final_prescan_insn): Likewise.
4987         * config/frv/frv.c (frv_final_prescan_insn): Likewise.
4988         (frv_extract_membar): Likewise.
4989         (frv_optimize_membar_local): Strengthen param "last_membar" from
4990         rtx * to rtx_insn **.
4991         (frv_optimize_membar_global): Strengthen param "membar" from rtx
4992         to rtx_insn *.
4993         (frv_optimize_membar): Strengthen local "last_membar" from rtx *
4994         to rtx_insn **.
4995         * config/ia64/ia64-protos.h (ia64_st_address_bypass_p): Strengthen
4996         both params from rtx to rtx_insn *.
4997         (ia64_ld_address_bypass_p): Likewise.
4998         * config/ia64/ia64.c (ia64_safe_itanium_class): Likewise for param
4999         "insn".
5000         (ia64_safe_type): Likewise.
5001         (group_barrier_needed): Likewise.
5002         (safe_group_barrier_needed): Likewise.
5003         (ia64_single_set): Likewise.
5004         (is_load_p): Likewise.
5005         (record_memory_reference): Likewise.
5006         (get_mode_no_for_insn): Likewise.
5007         (important_for_bundling_p): Likewise.
5008         (unknown_for_bundling_p): Likewise.
5009         (ia64_st_address_bypass_p): Likewise for both params.
5010         (ia64_ld_address_bypass_p): Likewise.
5011         (expand_vselect): Introduce new local rtx_insn * "insn", using it
5012         in place of rtx "x" after the emit_insn call.
5013         * config/i386/i386-protos.h (x86_extended_QIreg_mentioned_p):
5014         Strengthen param from rtx to rtx_insn *.
5015         (ix86_agi_dependent): Likewise for both params.
5016         (ix86_attr_length_immediate_default): Likewise for param 1.
5017         (ix86_attr_length_address_default): Likewise for param.
5018         (ix86_attr_length_vex_default): Likewise for param 1.
5019         * config/i386/i386.c (ix86_attr_length_immediate_default):
5020         Likewise for param "insn".
5021         (ix86_attr_length_address_default): Likewise.
5022         (ix86_attr_length_vex_default): Likewise.
5023         (ix86_agi_dependent): Likewise for both params.
5024         (x86_extended_QIreg_mentioned_p): Likewise for param "insn".
5025         (vselect_insn): Likewise for this variable.
5026         * config/m68k/m68k-protos.h (m68k_sched_attr_opx_type): Likewise
5027         for param 1.
5028         (m68k_sched_attr_opy_type): Likewise.
5029         * config/m68k/m68k.c (sched_get_operand): Likewise.
5030         (sched_attr_op_type): Likewise.
5031         (m68k_sched_attr_opx_type): Likewise.
5032         (m68k_sched_attr_opy_type): Likewise.
5033         (sched_get_reg_operand): Likewise.
5034         (sched_get_mem_operand): Likewise.
5035         (m68k_sched_address_bypass_p): Likewise for both params.
5036         (sched_get_indexed_address_scale): Likewise.
5037         (m68k_sched_indexed_address_bypass_p): Likewise.
5038         * config/m68k/m68k.h (m68k_sched_address_bypass_p): Likewise.
5039         (m68k_sched_indexed_address_bypass_p): Likewise.
5040         * config/mep/mep.c (mep_jmp_return_reorg): Strengthen locals
5041         "label", "ret" from rtx to rtx_insn *, adding a checked cast and
5042         removing another.
5043         * config/mips/mips-protos.h (mips_linked_madd_p): Strengthen both
5044         params from rtx to rtx_insn *.
5045         (mips_fmadd_bypass): Likewise.
5046         * config/mips/mips.c (mips_fmadd_bypass): Likewise.
5047         (mips_linked_madd_p): Likewise.
5048         (mips_macc_chains_last_hilo): Likewise for this variable.
5049         (mips_macc_chains_record): Likewise for param.
5050         (vr4130_last_insn): Likewise for this variable.
5051         (vr4130_swap_insns_p): Likewise for both params.
5052         (mips_ls2_variable_issue): Likewise for param.
5053         (mips_need_noat_wrapper_p): Likewise for param "insn".
5054         (mips_expand_vselect): Add a new local rtx_insn * "insn", using it
5055         in place of "x" after the emit_insn.
5056         * config/pa/pa-protos.h (pa_fpstore_bypass_p): Strengthen both
5057         params from rtx to rtx_insn *.
5058         * config/pa/pa.c (pa_fpstore_bypass_p): Likewise.
5059         (pa_combine_instructions): Introduce local "par" for result of
5060         gen_rtx_PARALLEL, moving decl and usage of new_rtx for after call
5061         to make_insn_raw.
5062         (pa_can_combine_p): Strengthen param "new_rtx" from rtx to rtx_insn *.
5063         * config/rl78/rl78.c (insn_ok_now): Likewise for param "insn".
5064         (rl78_alloc_physical_registers_op1): Likewise.
5065         (rl78_alloc_physical_registers_op2): Likewise.
5066         (rl78_alloc_physical_registers_ro1): Likewise.
5067         (rl78_alloc_physical_registers_cmp): Likewise.
5068         (rl78_alloc_physical_registers_umul): Likewise.
5069         (rl78_alloc_address_registers_macax): Likewise.
5070         (rl78_alloc_physical_registers): Likewise for locals "insn", "curr".
5071         * config/s390/predicates.md (execute_operation): Likewise for
5072         local "insn".
5073         * config/s390/s390-protos.h (s390_agen_dep_p): Likewise for both
5074         params.
5075         * config/s390/s390.c (s390_safe_attr_type): Likewise for param.
5076         (addr_generation_dependency_p): Likewise for param "insn".
5077         (s390_agen_dep_p): Likewise for both params.
5078         (s390_fpload_toreg): Likewise for param "insn".
5079         * config/sh/sh-protos.h (sh_loop_align): Likewise for param.
5080         * config/sh/sh.c (sh_loop_align): Likewise for param and local
5081         "next".
5082         * config/sh/sh.md (define_peephole2): Likewise for local "insn2".
5083         * config/sh/sh_treg_combine.cc
5084         (sh_treg_combine::make_inv_ccreg_insn): Likewise for return type
5085         and local "i".
5086         (sh_treg_combine::try_eliminate_cstores): Likewise for local "i".
5087         * config/stormy16/stormy16.c (combine_bnp): Likewise for locals
5088         "and_insn", "load", "shift".
5089         * config/tilegx/tilegx.c (match_pcrel_step2): Likewise for param
5090         "insn".
5091         * final.c (final_scan_insn): Introduce local rtx_insn * "other"
5092         for XEXP (note, 0) of the REG_CC_SETTER note.
5093         (cleanup_subreg_operands): Strengthen param "insn" from rtx to
5094         rtx_insn *, eliminating a checked cast made redundant by this.
5095         * gcse.c (process_insert_insn): Strengthen local "insn" from rtx
5096         to rtx_insn *.
5097         * genattr.c (main): When writing out the prototype to
5098         const_num_delay_slots, strengthen the param from rtx to
5099         rtx_insn *.
5100         * genattrtab.c (write_const_num_delay_slots): Likewise when
5101         writing out the implementation of const_num_delay_slots.
5102         * hw-doloop.h (struct hw_doloop_hooks): Strengthen the param
5103         "insn" of callback field "end_pattern_reg" from rtx to rtx_insn *.
5104         * ifcvt.c (noce_emit_store_flag): Eliminate local rtx "tmp" in
5105         favor of new rtx locals "src" and "set" and new local rtx_insn *
5106         "insn" and "seq".
5107         (noce_emit_move_insn): Strengthen locals "seq" and "insn" from rtx
5108         to rtx_insn *.
5109         (noce_emit_cmove): Eliminate local rtx "tmp" in favor of new rtx
5110         locals "cond", "if_then_else", "set" and new rtx_insn * locals
5111         "insn" and "seq".
5112         (noce_try_cmove_arith): Strengthen locals "insn_a" and "insn_b",
5113         "last" from rtx to rtx_insn *.  Likewise for a local "tmp",
5114         renaming to "tmp_insn".  Eliminate the other local rtx "tmp" from
5115         the top-level scope, replacing with new more tightly-scoped rtx
5116         locals "reg", "pat", "mem" and rtx_insn * "insn", "copy_of_a",
5117         "new_insn", "copy_of_insn_b", and make local rtx "set" more
5118         tightly-scoped.
5119         * ira-int.h (ira_setup_alts): Strengthen param "insn" from rtx to
5120         rtx_insn *.
5121         * ira.c (setup_prohibited_mode_move_regs): Likewise for local
5122         "move_insn".
5123         (ira_setup_alts): Likewise for param "insn".
5124         * lra-constraints.c (emit_inc): Likewise for local "add_insn".
5125         * lra.c (emit_add3_insn): Split local rtx "insn" in two, an rtx
5126         and an rtx_insn *.
5127         (lra_emit_add): Eliminate top-level local rtx "insn" in favor of
5128         new more-tightly scoped rtx locals "add3_insn", "insn",
5129         "add2_insn" and rtx_insn * "move_insn".
5130         * postreload-gcse.c (eliminate_partially_redundant_load): Add
5131         checked cast on result of gen_move_insn when invoking
5132         extract_insn.
5133         * recog.c (insn_invalid_p): Strengthen param "insn" from rtx to
5134         rtx_insn *.
5135         (verify_changes): Add a checked cast on "object" when invoking
5136         insn_invalid_p.
5137         (extract_insn_cached): Strengthen param "insn" from rtx to
5138         rtx_insn *.
5139         (extract_constrain_insn_cached): Likewise.
5140         (extract_insn): Likewise.
5141         * recog.h (insn_invalid_p): Likewise for param 1.
5142         (recog_memoized): Likewise for param.
5143         (extract_insn): Likewise.
5144         (extract_constrain_insn_cached): Likewise.
5145         (extract_insn_cached): Likewise.
5146         * reload.c (can_reload_into): Likewise for local "test_insn".
5147         * reload.h (cleanup_subreg_operands): Likewise for param.
5148         * reload1.c (emit_insn_if_valid_for_reload): Rename param from
5149         "insn" to "pat", reintroducing "insn" as an rtx_insn * on the
5150         result of emit_insn.  Remove a checked cast made redundant by this
5151         change.
5152         * sel-sched-ir.c (sel_insn_rtx_cost): Strengthen param "insn" from
5153         rtx to rtx_insn *.
5154         * sel-sched.c (get_reg_class): Likewise.
5156 2014-09-09  Marcus Shawcroft  <marcus.shawcroft@arm.com>
5157         Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5159          * config/aarch64/aarch64-elf-raw.h (ENDFILE_SPEC): Add crtfastmath.o.
5160          * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_MATH_ENDFILE_SPEC):
5161         Define.
5162         (ENDFILE_SPEC): Define and use GNU_USER_TARGET_MATH_ENDFILE_SPEC.
5164 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
5166         * rtl.h (INSN_LOCATION): Strengthen param from const_rtx to
5167         const rtx_insn *, and from rtx to rtx_insn * for the other
5168         overloaded variant.
5169         (RTL_LOCATION): Add a checked cast to rtx_insn * when invoking
5170         INSN_LOCATION, since we know INSN_P holds.
5171         (insn_line): Strengthen param from const_rtx to const rtx_insn *.
5172         (insn_file): Likewise.
5173         (insn_scope): Likewise.
5174         (insn_location): Likewise.
5176         * config/mips/mips.c (mips16_gp_pseudo_reg): Strengthen local
5177         "insn" from rtx to rtx_insn *, introducing a new local rtx "set"
5178         for the result of gen_load_const_gp.
5179         * config/rs6000/rs6000-protos.h (output_call): Strengthen first
5180         param from rtx to rtx_insn *.
5181         * config/rs6000/rs6000.c (output_call): Likewise.
5182         * dwarf2out.c (dwarf2out_var_location): Likewise for local "prev",
5183         introducing a checked cast to rtx_sequence * and use of the insn
5184         method.
5185         * emit-rtl.c (emit_copy_of_insn_after): Strengthen both params
5186         from rtx to rtx_insn *.
5187         (insn_scope): Strengthen param from const_rtx to const rtx_insn *.
5188         (insn_line): Likewise.
5189         (insn_file): Likewise.
5190         (insn_location): Likewise.
5191         * emit-rtl.h (emit_copy_of_insn_after): Strengthen both params
5192         from rtx to rtx_insn *.
5193         * print-rtl.c (print_rtx): Introduce local "in_insn" via a checked
5194         cast, using it for calls to INSN_HAS_LOCATION and insn_location.
5195         * recog.c (peep2_attempt): Introduce local rtx_insn * "peepinsn"
5196         via a checked cast.
5197         * reorg.c (relax_delay_slots): Strengthen locals named "after"
5198         from rtx to rtx_insn *; use methods of "pat" for type-safety.
5200 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
5202         * combine.c (try_combine): Eliminate checked cast on result of
5203         gen_rtx_INSN.
5204         * emit-rtl.c (gen_rtx_INSN): New function, improving over the prior
5205         autogenerated one by strengthening the return type and params 2 and 3
5206         from rtx to rtx_insn *, and by naming the params.
5207         * gengenrtl.c (special_rtx): Add INSN to those that are
5208         special-cased.
5209         * rtl.h (gen_rtx_INSN): New prototype.
5211 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
5213         * ira.c (ira_update_equiv_info_by_shuffle_insn): Use NULL rather
5214         than NULL_RTX.
5215         (no_equiv): Likewise.
5216         (update_equiv_regs): Likewise.
5217         (setup_reg_equiv): Likewise.  Strengthen locals "elem",
5218         "prev_elem", "next_elem" from rtx to rtx_insn_list *, and "insn"
5219         from rtx to rtx_insn *.  Use methods of "elem" for typesafety and
5220         clarity.
5221         * ira.h (struct ira_reg_equiv_s): Strengthen field "init_insns"
5222         from rtx to rtx_insn_list *.
5223         * lra-assigns.c (spill_for): Strengthen local "x" from rtx to
5224         rtx_insn_list * and use methods for clarity and typesafety.
5225         * lra-constraints.c (contains_deleted_insn_p): Likewise for param
5226         "list".
5227         (init_insn_rhs_dead_pseudo_p): Likewise for local "insns".  Remove
5228         redundant check on INSN_P (insns): this cannot hold, as "insns" is
5229         an INSN_LIST, not an insn.
5230         (reverse_equiv_p): Strengthen local "insns" from rtx to
5231         rtx_insn_list * and use methods for clarity and typesafety.
5232         (contains_reloaded_insn_p): Likewise for local "list".
5234 2014-09-09  Jiong Wang  <jiong.wang@arm.com>
5236         * config/arm/arm.c (NEON_COPYSIGNF): New enum.
5237         (arm_init_neon_builtins): Support NEON_COPYSIGNF.
5238         (arm_builtin_vectorized_function): Likewise.
5239         * config/arm/arm_neon_builtins.def: New macro for copysignf.
5240         * config/arm/neon.md (neon_copysignf<mode>): New pattern for vector copysignf.
5242 2014-09-09  Richard Sandiford  <richard.sandiford@arm.com>
5244         * bb-reorder.h (default_target_bb_reorder): Remove redundant GTY.
5245         * builtins.h (default_target_builtins): Likewise.
5246         * gcse.h (default_target_gcse): Likewise.
5247         * target-globals.h (target_globals): Add a destructor.  Convert
5248         void-pointer fields back to their real type and change from
5249         GTY((atomic)) to GTY((skip)).
5250         (restore_target_globals): Remove casts accordingly.
5251         * target-globals.c (save_target_globals): Use XCNEW rather than
5252         ggc_internal_cleared_alloc to allocate non-GC structures.
5253         Use ggc_cleared_alloc to allocate the target_globals structure
5254         itself.
5255         (target_globals::~target_globals): Define.
5257 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5259         * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use vldm
5260         mnemonic instead of fldmfdd.
5261         * config/arm/arm.c (vfp_output_fstmd): Rename to...
5262         (vfp_output_vstmd): ... This.  Convert output to UAL syntax.
5263         Output vpush when address register is SP.
5264         * config/arm/arm-protos.h (vfp_output_fstmd): Rename to...
5265         (vfp_output_vstmd): ... This.
5266         * config/arm/vfp.md (push_multi_vfp): Update call to
5267         vfp_output_vstmd.
5269 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5271         * config/arm/vfp.md (*movcc_vfp): Use UAL syntax.
5273 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5275         * config/arm/vfp.md (*sqrtsf2_vfp): Use UAL assembly syntax.
5276         (*sqrtdf2_vfp): Likewise.
5277         (*cmpsf_vfp): Likewise.
5278         (*cmpsf_trap_vfp): Likewise.
5279         (*cmpdf_vfp): Likewise.
5280         (*cmpdf_trap_vfp): Likewise.
5282 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5284         * config/arm/vfp.md (*extendsfdf2_vfp): Use UAL assembly syntax.
5285         (*truncdfsf2_vfp): Likewise.
5286         (*truncsisf2_vfp): Likewise.
5287         (*truncsidf2_vfp): Likewise.
5288         (fixuns_truncsfsi2): Likewise.
5289         (fixuns_truncdfsi2): Likewise.
5290         (*floatsisf2_vfp): Likewise.
5291         (*floatsidf2_vfp): Likewise.
5292         (floatunssisf2): Likewise.
5293         (floatunssidf2): Likewise.
5295 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5297         * config/arm/vfp.md (*mulsf3_vfp): Use UAL assembly syntax.
5298         (*muldf3_vfp): Likewise.
5299         (*mulsf3negsf_vfp): Likewise.
5300         (*muldf3negdf_vfp): Likewise.
5301         (*mulsf3addsf_vfp): Likewise.
5302         (*muldf3adddf_vfp): Likewise.
5303         (*mulsf3subsf_vfp): Likewise.
5304         (*muldf3subdf_vfp): Likewise.
5305         (*mulsf3negsfaddsf_vfp): Likewise.
5306         (*fmuldf3negdfadddf_vfp): Likewise.
5307         (*mulsf3negsfsubsf_vfp): Likewise.
5308         (*muldf3negdfsubdf_vfp): Likewise.
5310 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5312         * config/arm/vfp.md (*abssf2_vfp): Use UAL assembly syntax.
5313         (*absdf2_vfp): Likewise.
5314         (*negsf2_vfp): Likewise.
5315         (*negdf2_vfp): Likewise.
5316         (*addsf3_vfp): Likewise.
5317         (*adddf3_vfp): Likewise.
5318         (*subsf3_vfp): Likewise.
5319         (*subdf3_vfp): Likewise.
5320         (*divsf3_vfp): Likewise.
5321         (*divdf3_vfp): Likewise.
5323 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5325         * config/arm/arm.c (output_move_vfp): Use UAL syntax for load/store
5326         multiple.
5327         (arm_print_operand): Don't convert real values to decimal
5328         representation in default case.
5329         (fp_immediate_constant): Delete.
5330         * config/arm/arm-protos.h (fp_immediate_constant): Likewise.
5331         * config/arm/vfp.md (*arm_movsi_vfp): Convert to VFP moves to UAL
5332         syntax.
5333         (*thumb2_movsi_vfp): Likewise.
5334         (*movdi_vfp): Likewise.
5335         (*movdi_vfp_cortexa8): Likewise.
5336         (*movhf_vfp_neon): Likewise.
5337         (*movhf_vfp): Likewise.
5338         (*movsf_vfp): Likewise.
5339         (*thumb2_movsf_vfp): Likewise.
5340         (*movdf_vfp): Likewise.
5341         (*thumb2_movdf_vfp): Likewise.
5342         (*movsfcc_vfp): Likewise.
5343         (*thumb2_movsfcc_vfp): Likewise.
5344         (*movdfcc_vfp): Likewise.
5345         (*thumb2_movdfcc_vfp): Likewise.
5347 2014-09-09  James Greenhalgh  <james.greenhalgh@arm.com>
5349         * doc/invoke.texi (-march): Use GNU/Linux rather than Linux.
5350         (-mtune): Likewise.
5351         (-mcpu): Likewise.
5353 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5355         PR target/61749
5356         * config/aarch64/aarch64-builtins.c (aarch64_types_quadop_qualifiers):
5357         Use qualifier_immediate for last operand.  Rename to...
5358         (aarch64_types_ternop_lane_qualifiers): ... This.
5359         (TYPES_QUADOP): Rename to...
5360         (TYPES_TERNOP_LANE): ... This.
5361         (aarch64_simd_expand_args): Return const0_rtx when encountering user
5362         error.  Change return of 0 to return of NULL_RTX.
5363         (aarch64_crc32_expand_builtin): Likewise.
5364         (aarch64_expand_builtin): Return NULL_RTX instead of 0.
5365         ICE when expanding unknown builtin.
5366         * config/aarch64/aarch64-simd-builtins.def (sqdmlal_lane): Use
5367         TERNOP_LANE qualifiers.
5368         (sqdmlsl_lane): Likewise.
5369         (sqdmlal_laneq): Likewise.
5370         (sqdmlsl_laneq): Likewise.
5371         (sqdmlal2_lane): Likewise.
5372         (sqdmlsl2_lane): Likewise.
5373         (sqdmlal2_laneq): Likewise.
5374         (sqdmlsl2_laneq): Likewise.
5376 2014-09-09  Nick Clifton  <nickc@redhat.com>
5378         * doc/invoke.texi (Optimization Options): Add missing @gol to the
5379         end of a line.
5380         (S/390 and zSeries Options): Remove superfluous word from the
5381         description of the -mhotpatch option.
5383 2014-09-09  Zhenqiang Chen  <zhenqiang.chen@arm.com>
5385         * shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED.
5386         * ira.c: #include "shrink-wrap.h"
5387         (split_live_ranges_for_shrink_wrap): Use SHRINK_WRAPPING_ENABLED.
5388         * ifcvt.c: #include "shrink-wrap.h"
5389         (dead_or_predicable): Use SHRINK_WRAPPING_ENABLED.
5391 2014-09-08  Trevor Saunders  <tsaunders@mozilla.com>
5393         * common/config/picochip/picochip-common.c: Remove.
5394         * config.gcc: Remove support for picochip.
5395         * config/picochip/constraints.md: Remove.
5396         * config/picochip/dfa_space.md: Remove.
5397         * config/picochip/dfa_speed.md: Remove.
5398         * config/picochip/picochip-protos.h: Remove.
5399         * config/picochip/picochip.c: Remove.
5400         * config/picochip/picochip.h: Remove.
5401         * config/picochip/picochip.md: Remove.
5402         * config/picochip/picochip.opt: Remove.
5403         * config/picochip/predicates.md: Remove.
5404         * config/picochip/t-picochip: Remove.
5405         * doc/md.texi: Don't document picochi.
5407 2014-09-08  David Malcolm  <dmalcolm@redhat.com>
5409         * basic-block.h (control_flow_insn_p): Strengthen param from
5410         const_rtx to const rtx_insn *.
5411         * cfgbuild.c (control_flow_insn_p): Likewise.
5413 2014-09-08  David Malcolm  <dmalcolm@redhat.com>
5415         * gcse.c (modify_mem_list): Strengthen this variable from
5416         vec<rtx> * to vec<rtx_insn *> *.
5417         (vec_rtx_heap): Strengthen this typedef from vec<rtx> to
5418         vec<rtx_insn *>.
5419         (load_killed_in_block_p): Strengthen local "list" from vec<rtx> to
5420         vec<rtx_insn *>, and local "setter" from rtx to rtx_insn *.
5421         (record_last_mem_set_info): Strengthen param "insn" from rtx to
5422         rtx_insn *.
5423         (record_last_set_info): Likewise for local "last_set_insn".
5425 2014-09-08  DJ Delorie  <dj@redhat.com>
5427         * doc/invoke.texi (MSP430 Options): Add -minrt.
5429 2014-09-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5431         * config/rs6000/rs6000.c (special_handling_values):  Add SH_SPLAT.
5432         (rtx_is_swappable_p): Convert UNSPEC cascading ||s to a switch
5433         statement; allow optimization of UNSPEC_VSPLT_DIRECT with special
5434         handling SH_SPLAT.
5435         (adjust_extract): Fix test for VEC_DUPLICATE case; fix adjustment
5436         of extracted lane.
5437         (adjust_splat): New function.
5438         (handle_special_swappables): Call adjust_splat for SH_SPLAT.
5439         (dump_swap_insn_table): Add case for SH_SPLAT.
5441 2014-09-08  Richard Biener  <rguenther@suse.de>
5443         PR ipa/63196
5444         * tree-inline.c (copy_loops): The source loop header should
5445         always be non-NULL.
5446         (tree_function_versioning): If loops need fixup after removing
5447         unreachable blocks fix them.
5448         * omp-low.c (simd_clone_adjust): Do not add incr block to
5449         loop under construction.
5451 2014-09-08  Alan Lawrence  <alan.lawrence@arm.com>
5453         * config/aarch64/aarch64-builtins.c
5454         (aarch64_types_cmtst_qualifiers, TYPES_TST): Remove as unused.
5456 2014-09-08  Joseph Myers  <joseph@codesourcery.com>
5458         * config/i386/cygming.h (TF_SIZE): Remove.
5459         * config/i386/darwin.h (TF_SIZE): Remove.
5460         * config/i386/dragonfly.h (TF_SIZE): Remove.
5461         * config/i386/freebsd.h (TF_SIZE): Remove.
5462         * config/i386/gnu-user-common.h (TF_SIZE): Remove.
5463         * config/i386/openbsdelf.h (TF_SIZE): Remove.
5464         * config/i386/sol2.h (TF_SIZE): Remove.
5465         * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Remove.
5466         * config/ia64/linux.h (TF_SIZE): Remove.
5467         * doc/tm.texi.in (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Remove.
5468         * doc/tm.texi: Regenerate.
5469         * system.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Poison.
5471 2014-09-08  Joseph Myers  <joseph@codesourcery.com>
5473         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
5474         Remove.
5475         * doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
5476         Remove.
5477         * doc/tm.texi: Regenerate.
5478         * system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
5479         Poison.
5480         * config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
5481         * config/cris/cris.h (__make_dp): Remove.
5483 2014-09-08  Richard Biener  <rguenther@suse.de>
5485         PR bootstrap/63204
5486         * cfgloop.c (mark_loop_for_removal): Track former header
5487         unconditionally.
5488         * cfgloop.h (struct loop): Add former_header member unconditionally.
5489         * loop-init.c (fix_loop_structure): Enable bogus loop removal
5490         diagnostic unconditionally.
5492 2014-09-07 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
5494         PR target/63190
5495         * config/aarch64/aarch64.md (stack_protect_test_<mode>) Add register
5496         constraint for operand0 and remove write only modifier from operand3.
5498 2014-09-07  Richard Sandiford  <richard.sandiford@arm.com>
5500         PR rtl-optimization/62208
5501         * simplify-rtx.c (simplify_relational_operation_1): Use CONST0_RTX
5502         rather than const0_rtx in eq/ne-xor simplifications.
5504 2014-09-06  Joern Rennecke  <joern.rennecke@embecosm.com>
5506         * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
5507         (arc_output_mi_thunk): Likewise.
5509         * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
5510         arguments to silence bogus warning.
5512 2014-09-06  Richard Sandiford  <richard.sandiford@arm.com>
5514         PR middle-end/63171
5515         * rtlanal.c (tls_referenced_p): Don't skip constant subrtxes.
5517 2014-09-06  Tom de Vries  <tom@codesourcery.com>
5519         * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
5520         IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
5521         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
5523 2014-09-05  Dominique Dhumieres  <dominiq@lps.ens.fr>
5525         PR target/63188
5526         * config/darwin.h (INIT_SECTION_ASM_OP): Define to "".
5527         * config/pa/pa64-hpux.h (INIT_SECTION_ASM_OP): Likewise.
5529 2014-09-05  Easwaran Raman  <eraman@google.com>
5531         PR rtl-optimization/62146
5532         * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
5533         hoisted instruction unconditional.
5535 2014-09-05  Segher Boessenkool  <segher@kernel.crashing.org>
5537         PR target/63187
5538         * config/rs6000/rs6000.md (*and<mode>3_imm_dot, *and<mode>3_imm_dot2):
5539         Do not allow any_mask_operand for operands[2].
5540         (*and<mode>3_imm_mask_dot, *and<mode>3_imm_mask_dot2): New.
5542 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
5544         * config/arc/arc.c (arc_print_operand): Use insn method of
5545         final_sequence for type-safety.
5546         * config/bfin/bfin.c (bfin_hardware_loop): Strengthen param
5547         "insn" from rtx to rtx_insn *.
5548         * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
5549         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
5550         Likewise for locals "branch", "label".
5551         * config/h8300/h8300.c (same_cmp_preceding_p): Likewise for
5552         locals "i1", "i2".  Use NULL rather than NULL_RTX in comparisons.
5553         (same_cmp_following_p): Likewise for locals "i2", "i3".
5554         * config/sh/sh_optimize_sett_clrt.cc
5555         (sh_optimize_sett_clrt::sh_cbranch_ccreg_value): Likewise for
5556         param "cbranch_insn".
5557         * function.c (convert_jumps_to_returns): Likewis for local "jump".
5558         * ifcvt.c (cond_exec_get_condition): Likewise for param "jump".
5559         * jump.c (simplejump_p): Strengthen param "insn" from const_rtx to
5560         const rtx_insn *.
5561         (condjump_p): Likewise.
5562         (condjump_in_parallel_p): Likewise.
5563         (pc_set): Likewise.
5564         (any_uncondjump_p): Likewise.
5565         (any_condjump_p): Likewise.
5566         (condjump_label): Likewise.
5567         (returnjump_p): Strengthen param "insn" from rtx to
5568         const rtx_insn *.
5569         (onlyjump_p): Strengthen param "insn" from const_rtx to
5570         const rtx_insn *.
5571         (jump_to_label_p): Likewise.
5572         (invert_jump_1): Strengthen param "jump" from rtx to rtx_insn *.
5573         (invert_jump): Likewise.
5574         * reorg.c (simplejump_or_return_p): Add checked cast when calling
5575         simplejump_p.
5576         (get_jump_flags): Strengthen param "insn" from rtx to
5577         const rtx_insn *.
5578         (get_branch_condition): Likewise.
5579         (condition_dominates_p): Likewise.
5580         (make_return_insns): Move declaration of local "pat" earlier, to
5581         after we've handled NONJUMP_INSN_P and non-sequences, using its
5582         methods to simplify the code and for type-safety.
5583         * rtl.h (find_constant_src): Strengthen param from const_rtx to
5584         const rtx_insn *.
5585         (jump_to_label_p): Strengthen param from rtx to const rtx_insn *.
5586         (condjump_p): Strengthen param from const_rtx to
5587         const rtx_insn *.
5588         (any_condjump_p): Likewise.
5589         (any_uncondjump_p): Likewise.
5590         (pc_set): Likewise.
5591         (condjump_label): Likewise.
5592         (simplejump_p): Likewise.
5593         (returnjump_p): Likewise.
5594         (onlyjump_p): Likewise.
5595         (invert_jump_1): Strengthen param 1 from rtx to rtx_insn *.
5596         (invert_jump): Likewise.
5597         (condjump_in_parallel_p): Strengthen param from const_rtx to
5598         const rtx_insn *.
5599         * rtlanal.c (find_constant_src): Strengthen param from const_rtx
5600         to const rtx_insn *.
5601         * sel-sched-ir.c (fallthru_bb_of_jump): Strengthen param from rtx
5602         to const rtx_insn *.
5603         * sel-sched-ir.h (fallthru_bb_of_jump): Likewise.
5605 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
5607         * reorg.c (relax_delay_slots): Move declaration of "trial_seq"
5608         above the conditional, and convert the check on GET_CODE to a
5609         dyn_cast, so that "trial_seq" is available as an rtx_sequence * in
5610         the conditional.  Simplify the conditional by using methods of
5611         "trial_seq".
5613 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
5615         * haifa-sched.c (check_clobbered_conditions): Strengthen local
5616         "link" from rtx to rtx_insn_list *, and use its methods for
5617         clarity and type-safety.
5618         (toggle_cancelled_flags): Likewise.
5619         (restore_last_backtrack_point): Likewise.
5620         (queue_to_ready): Use insn method of "link" in one place.
5621         (schedule_block): Strengthen local "link" from rtx to
5622         rtx_insn_list *, and use its methods for clarity and type-safety.
5624 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
5626         * sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
5627         param "insn" from const_rtx to const rtx_insn *.
5628         (sched_get_reverse_condition_uncached): Likewise.
5629         (sched_get_condition_with_rev): Likewise.
5630         (sched_has_condition_p): Likewise.
5631         (sched_insns_conditions_mutex_p): Likewise for both params.
5632         (sched_insn_is_legitimate_for_speculation_p): Likewise for param
5633         "insn"; conver use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
5634         (setup_insn_reg_uses): Move local "list" to be more tightly
5635         scoped, strengthening it from an rtx to an rtx_insn_list *.  Use
5636         its methods for clarity and type-safety.
5637         (sched_analyze_1): Strengthen local "pending" from rtx to
5638         rtx_insn_list *, and local "pending_mem" from rtx to
5639         rtx_expr_list *.  Use methods of each for clarity and type-safety.
5640         (sched_analyze_2): Likewise.
5641         (sched_analyze_insn): Likewise.
5643         * sched-int.h (sched_get_reverse_condition_uncached): Strengthen
5644         param from const_rtx to const rtx_insn *.
5645         (sched_insns_conditions_mutex_p): Likewise for both params.
5646         (sched_insn_is_legitimate_for_speculation_p): Likewise for first
5647         param.
5649         * system.h (CONST_CAST_RTX_INSN): New macro.
5651 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
5653         * recog.c (peep2_attempt): Strengthen return type from rtx to
5654         rtx_insn *.
5655         (peep2_update_life): Likewise for params "last", "prev", removing
5656         a checked cast made redundant by this.
5657         (peephole2_optimize): Likewise for local "last".
5659 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
5661         * basic-block.h (set_block_for_insn): Eliminate this macro in
5662         favor of...
5663         * rtl.h (set_block_for_insn): New inline function, imposing the
5664         requirement that the "insn" param is an rtx_insn *.
5666 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
5668         * caller-save.c (setup_save_areas): Strengthen local "insn" from
5669         rtx to rtx_insn *.
5670         * final.c (get_call_reg_set_usage): Likewise for first param,
5671         eliminating a checked cast.
5672         * regs.h (get_call_reg_set_usage): Likewise for first param.
5673         * resource.c (mark_set_resources): Introduce local rtx_call_insn *
5674         "call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
5675         cast, replacing references to "x" with "call_insn" where
5676         appropriate.
5677         (mark_target_live_regs): Strengthen local "real_insn" from rtx to
5678         rtx_insn *, adding a checked cast.
5680 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
5682         * output.h (final_scan_insn): Strengthen first param from rtx to
5683         rtx_insn *.
5685         * final.c (final_scan_insn): Likewise, renaming it back from
5686         "uncast_insn" to "insn", eliminating the checked cast.
5688         * config/h8300/h8300.md (define_insn "jump"): Replace local rtx
5689         "vec" with an rtx_sequence * "seq", taking a copy of
5690         "final_sequence", and using methods of "seq" for clarity, and for
5691         type-safety in the calls to final_scan_insn.
5692         * config/mips/mips.c (mips_output_conditional_branch): Use methods
5693         of "final_sequence" for clarity, and for type-safety in the call to
5694         final_scan_insn.
5695         * config/sh/sh.c (print_slot): Strengthen param from rtx to
5696         rtx_sequence * and rename from "insn" to "seq".
5698 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
5700         * jump.c (delete_related_insns): Introduce a new local "table" by
5701         replacing JUMP_TABLE_DATA_P with a dyn_cast, then use the
5702         get_labels method of "table" to simplify access to the labels in
5703         the jump table.
5705 2014-09-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5707         * config/arm/cortex-a53.md (cortex_a53_fpalu): Add f_rints, f_rintd,
5708         f_minmaxs, f_minmaxd types.
5710 2014-09-05  Richard Biener  <rguenther@suse.de>
5712         * cfgloop.c (mark_loop_for_removal): Record former header
5713         when ENABLE_CHECKING.
5714         * cfgloop.h (strut loop): Add former_header member when
5715         ENABLE_CHECKING.
5716         * loop-init.c (fix_loop_structure): Sanity check loops
5717         marked for removal if they re-appeared.
5719 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
5721         * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
5722         uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
5724         (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
5725         vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
5726         vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
5727         vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
5728         vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
5729         vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
5730         vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
5731         vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
5732         vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
5733         vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
5734         vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
5735         vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
5736         vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
5737         vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
5738         vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
5739         vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
5740         vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
5741         vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
5742         vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
5743         vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
5744         with int{32,16,8}_t.
5746 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
5748         * config/aarch64/arm_neon.h (__GET_HIGH): New macro.
5749         (vget_high_f32, vget_high_f64, vget_high_p8, vget_high_p16,
5750         vget_high_s8, vget_high_s16, vget_high_s32, vget_high_s64,
5751         vget_high_u8, vget_high_u16, vget_high_u32, vget_high_u64):
5752         Remove temporary __asm__ and reimplement.
5754 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
5756         * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Remove code
5757         handling cmge, cmgt, cmeq, cmtst.
5759         * config/aarch64/aarch64-simd-builtins.def (cmeq, cmge, cmgt, cmle,
5760         cmlt, cmgeu, cmgtu, cmtst): Remove.
5762         * config/aarch64/arm_neon.h (vceq_*, vceqq_*, vceqz_*, vceqzq_*,
5763         vcge_*, vcgeq_*, vcgez_*, vcgezq_*, vcgt_*, vcgtq_*, vcgtz_*,
5764         vcgtzq_*, vcle_*, vcleq_*, vclez_*, vclezq_*, vclt_*, vcltq_*,
5765         vcltz_*, vcltzq_*, vtst_*, vtstq_*): Use gcc vector extensions.
5767 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
5769         * config/aarch64/aarch64-builtins.c (aarch64_types_cmtst_qualifiers,
5770         TYPES_TST): Define.
5771         (aarch64_fold_builtin): Update pattern for cmtst.
5773         * config/aarch64/aarch64-protos.h (aarch64_const_vec_all_same_int_p):
5774         Declare.
5776         * config/aarch64/aarch64-simd-builtins.def (cmtst): Update qualifiers.
5778         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>):
5779         Switch operands, separate out more cases, refactor.
5781         (aarch64_cmtst<mode>): Rewrite pattern to match (plus ... -1).
5783         * config/aarch64.c (aarch64_const_vec_all_same_int_p): Take single
5784         argument; rename old version to...
5785         (aarch64_const_vec_all_same_in_range_p): ...this.
5786         (aarch64_print_operand, aarch64_simd_shift_imm_p): Follow renaming.
5788         * config/aarch64/predicates.md (aarch64_simd_imm_minus_one): Define.
5790 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
5792         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
5793         Remove qualifier_const_pointer, update comment.
5795 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
5797         * config/aarch64/aarch64.md (adddi3_aarch64): set type to neon_add.
5799 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
5801         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Replace
5802         varargs with pointer parameter.
5803         (aarch64_simd_expand_builtin): pass pointer into previous.
5805 2014-09-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5807         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add alu_ext,
5808         alus_ext.
5810 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
5812         * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
5813         * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
5814         * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
5815         Replace temporary asm with call to builtin.
5816         (vrbit_p8, vrbitq_p8): New functions.
5818 2014-09-05  Richard Biener  <rguenther@suse.de>
5820         * cfgloop.c (mark_loop_for_removal): New function.
5821         * cfgloop.h (mark_loop_for_removal): Declare.
5822         * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
5823         (merge_blocks): Likewise.
5824         (duplicate_block): Likewise.
5825         * except.c (sjlj_emit_dispatch_table): Likewise.
5826         * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
5827         * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
5828         (thread_through_loop_header): Likewise.
5830 2014-09-05  Richard Biener  <rguenther@suse.de>
5832         PR middle-end/63148
5833         * fold-const.c (try_move_mult_to_index): Remove.
5834         (fold_binary_loc): Do not call it.
5835         * tree-data-ref.c (dr_analyze_indices): Strip conversions
5836         from the base object again.
5838 2014-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
5840         * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
5841         DImode.
5843 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
5845         PR target/55701
5846         * config/arm/arm.md (setmem): New pattern.
5847         * config/arm/arm-protos.h (struct tune_params): New fields.
5848         (arm_gen_setmem): New prototype.
5849         * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
5850         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
5851         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
5852         (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
5853         (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
5854         (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
5855         (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
5856         (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
5857         (arm_const_inline_cost): New function.
5858         (arm_block_set_max_insns): New function.
5859         (arm_block_set_non_vect_profit_p): New function.
5860         (arm_block_set_vect_profit_p): New function.
5861         (arm_block_set_unaligned_vect): New function.
5862         (arm_block_set_aligned_vect): New function.
5863         (arm_block_set_unaligned_non_vect): New function.
5864         (arm_block_set_aligned_non_vect): New function.
5865         (arm_block_set_vect, arm_gen_setmem): New functions.
5867 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
5869         * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
5871 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
5873         * config/arm/arm.c (output_move_neon): Handle REG explicitly.
5875 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
5877         * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
5878         an rtx.
5879         * valtrack.h: Adjust.
5881 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
5883         * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
5884         an rtx.
5885         (emit_jump_insn_before_noloc): Likewise.
5886         (emit_call_insn_before_noloc): Likewise.
5887         (emit_label_before): Likewise.
5888         (emit_label_after): Likewise.
5889         (emit_insn_before_setloc): Likewise.
5890         (emit_jump_insn_before_setloc): Likewise.
5891         (emit_call_insn_before_setloc): Likewise.
5892         (emit_call_insn_before): Likewise.
5893         * rtl.h: Adjust.
5895 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
5897         * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
5898         rtx_insn *, eliminating a checked cast.
5900 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
5902         * rtl.h (modified_between_p): Strengthen params 2 and 3 from
5903         const_rtx to const rtx_insn *.
5904         * rtlanal.c (modified_between_p): Likewise, eliminating a checked
5905         cast.
5907 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
5909         * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
5910         fixup_args_size_notes.
5911         * expr.c (fixup_args_size_notes): Strengthen first two params from
5912         rtx to rtx_insn *, eliminating a checked cast.
5913         * rtl.h (fixup_args_size_notes): Strengthen first two params from
5914         rtx to rtx_insn *.
5916 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
5918         * haifa-sched.c (get_ready_element): Strengthen return type from
5919         rtx to rtx_insn *.
5920         * sched-int.h (get_ready_element): Likewise.
5922 2014-09-04  Segher Boessenkool  <segher@kernel.crashing.org>
5924         PR target/63165
5925         * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
5926         indexed_or_indirect_operand instead of memory_operand.
5927         (floatsi<mode>2_lfiwzx_mem): Ditto.
5929 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
5931         * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
5932         config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
5933         ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
5935 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
5937         * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
5938         rtx.
5939         (get_last_nonnote_insn): Likewise.
5940         (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
5941         * resource.c (find_basic_block): Likewise.
5942         * rtl.h: Adjust.
5943         * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
5944         const_rtx.
5946 2014-09-04  David Malcolm  <dmalcolm@redhat.com>
5948         * genattr.c (main): Within the prototype of insn_latency written
5949         out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
5950         * genautomata.c (output_internal_maximal_insn_latency_func):
5951         Within the implementation of insn_latency written out to
5952         insn-automata.c, strengthen both params from rtx to rtx_insn *,
5953         eliminating a pair of checked casts.
5955 2014-09-04  David Malcolm  <dmalcolm@redhat.com>
5957         * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
5958         rtx_insn *.
5960         * rtl.h (eh_returnjump_p): Likewise.
5962 2014-09-04  Aldy Hernandez  <aldyh@redhat.com>
5964         * Makefile.in (TAGS): Handle constructs in timevar.def.
5966 2014-09-04  Guozhi Wei  <carrot@google.com>
5968         PR target/62040
5969         * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
5970         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
5971         it into two patterns.
5972         (move_lo_quad_internal_be_<mode>): Likewise.
5974 2014-09-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5976         * doc/options.texi: Document that Var and Init are required if CPP
5977         is given.
5978         * optc-gen.awk: Require Var and Init if CPP is given.
5979         * common.opt (Wpedantic): Use Init.
5981 2014-09-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5983         * config/rs6000/rs6000.c (special_handling_values): Add
5984         SH_EXTRACT.
5985         (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
5986         wrapped in a VEC_DUPLICATE, representing an extract.  Mark these
5987         as swappable with special handling SH_EXTRACT.  Remove
5988         UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
5989         optimization.
5990         (adjust_extract): New function.
5991         (handle_special_swappables): Add default to case statement; add
5992         case for SH_EXTRACT that calls adjust_extract.
5993         (dump_swap_insn_table): Handle SH_EXTRACT.
5995 2014-09-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5997         * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
5998         selection of 0th memory doubleword, regardless of endianness.
6000 2014-09-04  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
6002         * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
6004 2014-09-04  Alan Modra  <amodra@gmail.com>
6006         PR debug/60655
6007         * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
6008         can't be output.
6010 2014-09-03  Matthew Fortune  <matthew.fortune@imgtec.com>
6012         * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
6013         * targhooks.c (default_dwarf_frame_reg_mode): New function.
6014         * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
6015         * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
6016         * doc/tm.texi: Regenerate.
6017         * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
6018         selection logic to default_dwarf_frame_reg_mode.
6020 2014-09-03  Marek Polacek  <polacek@redhat.com>
6022         * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
6023         by -Wall.
6025 2014-09-03  Richard Sandiford  <richard.sandiford@arm.com>
6027         * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
6028         the automodified register.
6030 2014-09-03  Richard Sandiford  <richard.sandiford@arm.com>
6032         * output.h (get_some_local_dynamic_name): Declare.
6033         * final.c (some_local_dynamic_name): New variable.
6034         (get_some_local_dynamic_name): New function.
6035         (final_end_function): Clear some_local_dynamic_name.
6036         * config/alpha/alpha.c (machine_function): Remove some_ld_name.
6037         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
6038         (print_operand): Report an error if '%&' is used inappropriately.
6039         * config/i386/i386.c (get_some_local_dynamic_name): Delete.
6040         (get_some_local_dynamic_name_1): Delete.
6041         * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
6042         (rs6000_get_some_local_dynamic_name): Delete.
6043         (rs6000_get_some_local_dynamic_name_1): Delete.
6044         (print_operand): Report an error if '%&' is used inappropriately.
6045         * config/s390/s390.c (machine_function): Remove some_ld_name.
6046         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
6047         (print_operand): Assert that get_some_local_dynamic_name is nonnull.
6048         * config/sparc/sparc.c: Include rtl-iter.h.
6049         (machine_function): Remove some_ld_name.
6050         (sparc_print_operand): Report an error if '%&' is used inappropriately.
6051         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
6053 2014-09-03  Richard Henderson  <rth@redhat.com>
6055         * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
6056         (aarch64_popwb_pair_reg): Remove.
6057         (aarch64_set_frame_expr): Remove.
6058         (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
6059         the restore ops performed by the insns generated.
6060         (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
6061         insn.  Perform the calls_eh_return addition later; do not attempt to
6062         preserve the CFA in that case.  Don't use aarch64_set_frame_expr.
6063         (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
6064         special markup at all.  Load cfun->machine->frame.hard_fp_offset
6065         into a local variable.
6066         (aarch64_frame_pointer_required): Don't check calls_alloca.
6068 2014-09-03  Richard Biener  <rguenther@suse.de>
6070         * opts.c (default_options_optimization): Adjust
6071         max-combine-insns to 2 for -Og.
6073 2014-09-03  Martin Jambor  <mjambor@suse.cz>
6075         PR ipa/62015
6076         * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
6077         pass-trough jump functions correctly.
6079 2014-09-03  Martin Jambor  <mjambor@suse.cz>
6081         PR ipa/61986
6082         * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
6083         created replacements in ascending order of offsets.
6084         (known_aggs_to_agg_replacement_list): Likewise.
6086 2014-09-03  Martin Liska  <mliska@suse.cz>
6088         * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
6089         is set to set uninitialized value for vnresult.
6091 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
6093         * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
6094         for TARGET_MUST_PASS_IN_STACK.
6096 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
6098         * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
6099         for TARGET_ARG_PARTIAL_BYTES.
6101 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
6103         * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
6104         instructions for varargs implementation.
6105         (nds32_expand_epilogue): Emit stack adjustment instructions for
6106         varargs implementation.
6108 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
6110         * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
6111         optimization detection.
6113 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
6115         * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
6116         arguments.
6117         (nds32_function_arg_advance): Deal with nameless arguments.
6118         * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
6119         (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
6120         (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
6122 2014-09-03  Richard Biener  <rguenther@suse.de>
6124         * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
6125         (struct bb_bitmap_sets): Remove deferred member.
6126         (BB_DEFERRED): Remove.
6127         (defer_or_phi_translate_block): Remove.
6128         (compute_antic_aux): Remove deferring of blocks, assert
6129         proper iteration order.
6130         (compute_antic): Do not set BB_DEFERRED.
6131         (eliminate): Allocate el_avail of proper size initially.
6133 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
6135         * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
6136         according to the value of crtl->args.pretend_args_size.
6138 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
6140         * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
6141         varargs information.
6143 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
6145         * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
6146         implementation for TARGET_SETUP_INCOMING_VARARGS.
6147         (nds32_strict_argument_naming): Refine comment.
6148         * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
6149         Define for future implementation.
6151 2014-09-03  Ilya Tocar  <ilya.tocar@intel.com>
6153         * config/i386/adxintrin.h (_subborrow_u32): New.
6154         (_addcarry_u32): Ditto.
6155         (_subborrow_u64): Ditto.
6156         (_addcarry_u64): Ditto.
6157         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
6158         IX86_BUILTIN_SBB64.
6159         (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
6160         __builtin_ia32_sbb_u64
6162 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
6164         * config/nds32/nds32.c (nds32_function_arg): Define and rename some
6165         GPR-specific stuff.
6166         (nds32_function_arg_advance): Likewise.
6167         (nds32_init_cumulative_args): Likewise.
6168         * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
6169         (NDS32_FIRST_GPR_REGNUM): Define.
6170         (NDS32_LAST_GPR_REGNUM): Define.
6171         (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
6172         (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
6173         (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
6174         (machine_function): Use GRP-specific stuff.
6176 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
6178         * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
6179         (nds32_expand_epilogue): Likewise.
6180         (nds32_expand_prologue_v3push): Likewise.
6181         (nds32_expand_epilogue_v3pop): Likewise.
6183 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
6185         * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
6186         v3push/v3pop for variadic function.
6187         * config/nds32/nds32.md (prologue, epilogue): Likewise.
6189 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
6191         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
6192         Check rtx for varargs implementation.
6193         (nds32_output_stack_pop): Likewise.
6194         * config/nds32/nds32-protos.h: Have a rtx argument for
6195         nds32_output_stack_push and nds32_output_stack_pop.
6196         * config/nds32/nds32.md: Likewise.
6198 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
6200         * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
6201         to check if FUNC is an interrupt service routine.
6202         * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
6204 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
6206         * config/nds32/nds32.h (machine_function): Add some fields for variadic
6207         arguments implementation.
6209 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
6211         * config/nds32/nds32-predicates.c
6212         (nds32_valid_stack_push_pop): Rename to ...
6213         (nds32_valid_stack_push_pop_p): ... this.
6214         * config/nds32/nds32-protos.h: Likewise.
6215         * config/nds32/predicates.md: Likewise.
6217 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
6219         * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
6220         (nds32_emit_stack_v3push): ... this.
6221         (nds32_gen_stack_v3pop): Rename to ...
6222         (nds32_emit_stack_v3pop): ... this and consider CFA restore
6223         information.
6225 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
6227         * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
6228         (nds32_emit_stack_push_multiple): ... this.
6229         (nds32_gen_stack_pop_multiple): Rename to ...
6230         (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
6231         information.
6233 2014-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6235         PR target/61078
6236         * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
6237         and add a second splitter to handle the remaining cases.
6239 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
6241         * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
6243 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
6245         * cfgexpand.c (label_rtx_for_bb): Change type to
6246         hash_map<basic_block, rtx_code_label *> *.
6247         (expand_gimple_basic_block): Adjust.
6248         (pass_expand::execute): Likewise.
6250 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
6252         * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
6253         config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
6254         config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
6255         config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
6256         config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
6257         config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
6258         stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
6259         of rtx.
6261 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
6263         * alloc-pool.c: Include coretypes.h.
6264         * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
6265         function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
6266         hash_set instead of htab.
6267         * ggc-page.c (in_gc): New variable.
6268         (ggc_free): Do nothing if a collection is taking place.
6269         (ggc_collect): Set in_gc appropriately.
6270         * ggc.h (gt_ggc_mx(const char *)): New function.
6271         (gt_pch_nx(const char *)): Likewise.
6272         (gt_ggc_mx(int)): Likewise.
6273         (gt_pch_nx(int)): Likewise.
6274         * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
6275         (hash_map::hash_entry::pch_nx): Likewise.
6276         (hash_map::hash_entry::pch_nx_helper): Likewise.
6277 (hash_map::hash_map): Adjust.
6278 (hash_map::create_ggc): New function.
6279 (gt_ggc_mx): Likewise.
6280 (gt_pch_nx): Likewise.
6281         * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
6282 (default_hashset_traits::pch_nx): Likewise.
6283 (hash_set::hash_entry::ggc_mx): Likewise.
6284 (hash_set::hash_entry::pch_nx): Likewise.
6285 (hash_set::hash_entry::pch_nx_helper): Likewise.
6286 (hash_set::hash_set): Adjust.
6287 (hash_set::create_ggc): New function.
6288 (hash_set::elements): Likewise.
6289 (gt_ggc_mx): Likewise.
6290 (gt_pch_nx): Likewise.
6291         * hash-table.h (hash_table::hash_table): Adjust.
6292 (hash_table::m_ggc): New member.
6293         (hash_table::~hash_table): Adjust.
6294         (hash_table::expand): Likewise.
6295         (hash_table::empty): Likewise.
6296 (gt_ggc_mx): New function.
6297         (hashtab_entry_note_pointers): Likewise.
6298 (gt_pch_nx): Likewise.
6300 2014-09-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6302         * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE):  New
6303         built-in definition.
6304         (XVCVUXDDP_SCALE): Likewise.
6305         (XVCVDPSXDS_SCALE): Likewise.
6306         (XVCVDPUXDS_SCALE): Likewise.
6307         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins):  Add
6308         entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
6309         VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
6310         VSX_BUILTIN_XVCVDPUXDS_SCALE.
6311         * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
6312         prototype.
6313         * config/rs6000/rs6000.c (real.h): New include.
6314         (rs6000_scale_v2df): New function.
6315         * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
6316         (UNSPEC_VSX_XVCVUXDDP): Likewise.
6317         (UNSPEC_VSX_XVCVDPSXDS): Likewise.
6318         (UNSPEC_VSX_XVCVDPUXDS): Likewise.
6319         (vsx_xvcvsxddp_scale): New define_expand.
6320         (vsx_xvcvsxddp): New define_insn.
6321         (vsx_xvcvuxddp_scale): New define_expand.
6322         (vsx_xvcvuxddp): New define_insn.
6323         (vsx_xvcvdpsxds_scale): New define_expand.
6324         (vsx_xvcvdpsxds): New define_insn.
6325         (vsx_xvcvdpuxds_scale): New define_expand.
6326         (vsx_xvcvdpuxds): New define_insn.
6327         * doc/extend.texi (vec_ctf): Add new prototypes.
6328         (vec_cts): Likewise.
6329         (vec_ctu): Likewise.
6330         (vec_splat): Likewise.
6331         (vec_div): Likewise.
6332         (vec_mul): Likewise.
6334 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6336         PR target/62275
6337         * config/arm/neon.md
6338         (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
6339         <v_cmp_result>): New pattern.
6340         * config/arm/iterators.md (NEON_VCVT): New int iterator.
6341         * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
6342         vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
6343         vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
6344         * config/arm/arm.c (arm_builtin_vectorized_function): Handle
6345         BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
6347 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6349         PR target/62275
6350         * config/arm/iterators.md (FIXUORS): New code iterator.
6351         (VCVT): New int iterator.
6352         (su_optab): New code attribute.
6353         (su): Likewise.
6354         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
6356 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6358         * config/aarch64/predicates.md (aarch64_comparison_operation):
6359         New special predicate.
6360         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
6361         aarch64_comparison_operation instead of matching an operator.
6362         Update operand numbers.
6363         (csinc3<mode>_insn): Likewise.
6364         (*csinv3<mode>_insn): Likewise.
6365         (*csneg3<mode>_insn): Likewise.
6366         (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
6367         * config/aarch64/aarch64.c (aarch64_get_condition_code):
6368         Return -1 instead of aborting on invalid condition codes.
6369         (aarch64_print_operand): Update aarch64_get_condition_code callsites
6370         to assert that the returned condition code is valid.
6371         * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
6373 2014-09-02  Aldy Hernandez  <aldyh@redhat.com>
6375         * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
6376         tree.def, and gimple.def
6378 2014-09-02  Jakub Jelinek  <jakub@redhat.com>
6379             Balaji V. Iyer  <balaji.v.iyer@intel.com>
6380             Igor Zamyatin  <igor.zamyatin@intel.com>
6382         * cilk-builtins.def (__cilkrts_cilk_for_32): New.
6383         (__cilkrts_cilk_for_64): Likewise.
6384         * cilk-common.c (declare_cilk_for_builtin): New function.
6385         (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
6386         __cilkrts_cilk_for_64 bultins.
6387         * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
6388         CILK_TI_F_LOOP_64.
6389         (cilk_for_32_fndecl): New define.
6390         (cilk_for_64_fndecl): Likewise.
6391         * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
6392         GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
6393         * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
6394         GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
6395         GF_OMP_FOR_COMBINED_INTO.
6396         * gimplify.c (gimplify_scan_omp_clauses): Added
6397         OMP_CLAUSE__CILK_FOR_COUNT_ case.
6398         (gimplify_adjust_omp_clauses): Ditto.
6399         (gimplify_omp_for): Added CILK_FOR case.
6400         (gimplify_expr): Ditto.
6401         * omp-low.c: Include cilk.h.
6402         (extract_omp_for_data): Set appropriate kind for
6403         GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
6404         (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
6405         (create_omp_child_function_name): Added second argument to handle
6406         cilk_for case.
6407         (cilk_for_check_loop_diff_type): New function.
6408         (expand_cilk_for_call): Likewise.
6409         (expand_cilk_for): Likewise.
6410         (create_omp_child_function): Set cilk_for_count; handle the cases when
6411         it is true; call create_omp_child_function_name with second argument.
6412         (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
6413         (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
6414         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
6415         * tree-nested.c (convert_nonlocal_omp_clauses): Added
6416         OMP_CLAUSE__CILK_FOR_COUNT_ case.
6417         (convert_local_omp_clauses): Ditto.
6418         * tree-pretty-print.c (dump_omp_clause): Added
6419         OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
6420         (dump_generic_node): Added CILK_FOR case.
6421         * tree.c (omp_clause_num_ops): New element
6422         OMP_CLAUSE__CILK_FOR_COUNT_ (1).
6423         (omp_clause_code_name): New element _Cilk_for_count_.
6424         (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
6425         * tree.def: Add tree code for CILK_FOR.
6427 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
6429         * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
6430         (ppc403-compare): Add "exts with dot" case.
6431         * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
6432         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
6433         * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
6434         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
6435         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
6436         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
6437         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
6438         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
6439         cell-cmp-microcoded): Similarly.
6440         * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
6441         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
6442         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
6443         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
6444         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
6445         * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
6446         * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
6447         * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
6448         (power6-compare): Add "exts with dot" case.
6449         * config/rs6000/power7.md (power7-integer, power7-compare): As before.
6450         * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
6451         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
6453         * config/rs6000/predicates.md (lwa_operand): Don't allow memory
6454         if avoiding Cell microcode.
6455         * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
6456         (is_cracked_insn): Ditto.
6457         (insn_must_be_first_in_group): Ditto.
6458         * config/rs6000/rs6000.md (dot): Adjust comment.
6459         (cell_micro): Handle exts+dot.
6460         (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
6461         *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
6462         extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
6463         (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
6464         extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
6465         *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
6466         *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
6468 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
6470         * config/rs6000/rs6000.md (QHSI): Delete.
6471         (EXTQI, EXTHI, EXTSI): New mode iterators.
6472         (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
6473         *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
6474         *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
6475         9 anonymous instructions, and 8 splitters): Delete.
6476         (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
6477         *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
6478         *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
6479         zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
6480         *zero_extendsi<mode>2_dot2): New.
6482 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
6484         * config/rs6000/rs6000.md (any_extend): New code iterator.
6485         (u, su): New code attributes.
6486         (dmode, DMODE): New mode attributes.
6487         (<su>mul<mode>3_highpart): New.
6488         (*<su>mul<mode>3_highpart): New.
6489         (<su>mulsi3_highpart_le): New.
6490         (<su>muldi3_highpart_le): New.
6491         (<su>mulsi3_highpart_64): New.
6492         (<u>mul<mode><dmode>3): New.
6493         (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
6494         splitters): Delete.
6495         (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
6496         splitters): Delete.
6498 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
6500         * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
6501         *mulsi3_internal2, and two splitters): Delete.
6502         (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
6503         Delete.
6504         (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
6506 2014-09-02  Richard Biener  <rguenther@suse.de>
6508         PR tree-optimization/62695
6509         * tree-ssa-structalias.c (find_func_clobbers): Add missing
6510         vector truncate.
6512 2014-09-01  Oleg Endo  <olegendo@gcc.gnu.org>
6514         PR target/62312
6515         * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
6517 2014-09-01  Andi Kleen  <ak@linux.intel.com>
6519         * file-find.c (add_prefix_begin): Add.
6520         (do_add_prefix): Rename from add_prefix with first argument.
6521         (add_prefix): Add new wrapper.
6522         * file-find.h (add_prefix_begin): Add.
6523         * gcc-ar.c (main): Support -B option.
6525 2014-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
6527         * genemit.c: Include dumpfile.h.
6528         (gen_split): Print name of splitter function to dump file.
6530 2014-09-01  Richard Biener  <rguenther@suse.de>
6532         * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
6533         Use stack auto_vecs for constraint expressions.
6534         (find_func_aliases_for_call): Likewise.
6535         (find_func_aliases): Likewise.
6536         (find_func_clobbers): Likewise.
6538 2014-09-01  Richard Biener  <rguenther@suse.de>
6540         * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
6541         operands vector in most cases.  Remove redundant code.
6543 2014-09-01  Olivier Hainque  <hainque@adacore.com>
6545         * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
6546         $WIND_BASE instead of designating a harcoded arbitrary home dir.
6547         (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
6549 2014-09-01  Richard Biener  <rguenther@suse.de>
6551         * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
6552         copy_reference_ops_from_call, vn_nary_op_compute_hash,
6553         vn_reference_compute_hash, vn_reference_insert): Remove.
6554         (vn_reference_lookup_call): New function.
6555         * tree-ssa-sccvn.c (vn_reference_compute_hash,
6556         copy_reference_ops_from_ref, copy_reference_ops_from_call,
6557         vn_reference_insert, vn_nary_op_compute_hash): Make static.
6558         (create_reference_ops_from_call): Remove.
6559         (vn_reference_lookup_3): Properly update shared_lookup_references.
6560         (vn_reference_lookup_pieces): Assert that we updated
6561         shared_lookup_references properly.
6562         (vn_reference_lookup): Likewise.
6563         (vn_reference_lookup_call): New function.
6564         (visit_reference_op_call): Use it.  Avoid re-building the
6565         reference ops.
6566         (visit_reference_op_load): Remove redundant lookup.
6567         (visit_reference_op_store): Perform special tail-merging work
6568         only when possibly doing tail-merging.
6569         (visit_use): Likewise.
6570         * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
6572 2014-09-01  Jakub Jelinek  <jakub@redhat.com>
6574         PR target/62025
6575         * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
6576         returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
6577         (find_inc): Revert 2014-08-13 change.
6579 2014-09-01  Marek Polacek  <polacek@redhat.com>
6581         PR middle-end/61903
6582         * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
6583         Change the type of V to unsigned HOST_WIDE_INT.
6585 2014-09-01  Thomas Preud'homme  <thomas.preudhomme@arm.com>
6587         * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
6588         the size of byte markers.
6589         (do_shift_rotate): Fix confusion between host, target and marker byte
6590         size.
6591         (verify_symbolic_number_p): Likewise.
6592         (find_bswap_or_nop_1): Likewise.
6593         (find_bswap_or_nop): Likewise.
6595 2014-09-01  Olivier Hainque  <hainque@adacore.com>
6597         * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
6598         INSTALL_SCRIPT and INSTALL_PROGRAM as well.
6600 2014-09-01  Jakub Jelinek  <jakub@redhat.com>
6602         * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
6603         * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
6604         (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
6606 2014-09-01  Yury Gribov  <y.gribov@samsung.com>
6608         PR sanitizer/61897
6609         PR sanitizer/62140
6610         * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
6611         (build_check_stmt): Likewise.
6612         (instrument_strlen_call): Likewise.
6613         (asan_expand_check_ifn): Likewise and fix types.
6614         (maybe_cast_to_ptrmode): New function.
6616 2014-09-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
6618         * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
6620 2014-08-31  Gerald Pfeifer  <gerald@pfeifer.com>
6622         * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
6624 2014-08-30  John David Anglin  <danglin@gcc.gnu.org>
6626         * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
6627         prefix to function labels when generating fast indirect calls.
6629 2014-08-30  David Malcolm  <dmalcolm@redhat.com>
6631         PR bootstrap/62304
6633         * gcc/reorg.c (skip_consecutive_labels): Convert return type and
6634         param back from rtx_insn * to rtx.  Rename param from "label" to
6635         "label_or_return", reintroducing "label" as an rtx_insn * after
6636         we've ensured it's not a RETURN.
6637         (first_active_target_insn): Likewise for return type and param;
6638         add a checked cast to rtx_insn * once we've ensured "insn" is not
6639         a RETURN.
6640         (steal_delay_list_from_target): Convert param "pnew_thread" back
6641         from rtx_insn ** to rtx *.  Replace use of JUMP_LABEL_AS_INSN
6642         with JUMP_LABEL.
6643         (own_thread_p): Convert param "thread" back from an rtx_insn * to
6644         an rtx.  Introduce local rtx_insn * "thread_insn" with a checked
6645         cast once we've established we're not dealing with a RETURN,
6646         renaming subsequent uses of "thread" to "thread_insn".
6647         (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
6648         to JUMP_LABEL.
6649         (follow_jumps): Convert return type and param "label" from
6650         rtx_insn * back to rtx.  Move initialization of "value" to after
6651         the handling for ANY_RETURN_P, adding a checked cast there to
6652         rtx_insn *.  Convert local rtx_insn * "this_label" to an rtx and
6653         rename to "this_label_or_return", reintroducing "this_label" as
6654         an rtx_insn * once we've handled the case where it could be an
6655         ANY_RETURN_P.
6656         (fill_slots_from_thread): Rename param "thread" to
6657         "thread_or_return", converting from an rtx_insn * back to an rtx.
6658         Reintroduce name "thread" as an rtx_insn * local with a checked
6659         cast once we've handled the case of it being an ANY_RETURN_P.
6660         Convert local "new_thread" from an rtx_insn * back to an rtx.
6661         Add a checked cast when assigning to "trial" from "new_thread".
6662         Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL.  Add a
6663         checked cast to rtx_insn * from "new_thread" when invoking
6664         get_label_before.
6665         (fill_eager_delay_slots): Convert locals "target_label",
6666         "insn_at_target" from rtx_insn * back to rtx.
6667         Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
6668         (relax_delay_slots): Convert locals "trial", "target_label" from
6669         rtx_insn * back to rtx.  Convert uses of JUMP_LABEL_AS_INSN back
6670         to JUMP_LABEL.  Add a checked cast to rtx_insn * on "trial" when
6671         invoking update_block.
6672         (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
6673         JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
6675         * resource.h (mark_target_live_regs): Undo erroneous conversion
6676         of second param of r214693, converting it back from rtx_insn * to
6677         rtx, since it could be a RETURN.
6679         * resource.c (find_dead_or_set_registers): Similarly, convert
6680         param "jump_target" back from an rtx_insn ** to an rtx *, as we
6681         could be writing back a RETURN.  Rename local rtx_insn * "next" to
6682         "next_insn", and introduce "lab_or_return" as a local rtx,
6683         handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
6684         (mark_target_live_regs): Undo erroneous conversion
6685         of second param of r214693, converting it back from rtx_insn * to
6686         rtx, since it could be a RETURN.  Rename it from "target" to
6687         "target_maybe_return", reintroducing the name "target" as a local
6688         rtx_insn * with a checked cast, after we've handled the case of
6689         ANY_RETURN_P.
6691 2014-08-29  DJ Delorie  <dj@redhat.com>
6693         * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
6694         pointer size up to a power of two.
6695         * defaults.h (DWARF2_ADDR_SIZE): Round up.
6696         (POINTER_SIZE_UNITS): New, rounded up value.
6697         * dwarf2asm.c (size_of_encoded_value): Use it.
6698         (dw2_output_indirect_constant_1): Likewise.
6699         * expmed.c (init_expmed_one_conv): We now know the sizes of
6700         partial int modes.
6701         * loop-iv.c (iv_number_of_iterations): Use precision, not size.
6702         * optabs.c (expand_float): Use precision, not size.
6703         (expand_fix): Likewise.
6704         * simplify-rtx (simplify_unary_operation_1): Likewise.
6705         * tree-dfa.c (get_ref_base_and_extent): Likewise.
6706         * varasm.c (assemble_addr_to_section): Round up pointer sizes.
6707         (default_assemble_integer) Likewise.
6708         (dump_tm_clone_pairs): Likewise.
6709         * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
6710         * var-tracking.c (adjust_mems): Allow partial-int modes also.
6711         (prepare_call_arguments): Likewise.
6712         * stor-layout.c (finalize_type_size): Preserve precision.
6713         (layout_type): Use precision, not size.
6715         * expr.c (convert_move): If the target has an explicit converter,
6716         use it.
6718 2014-08-29  David Malcolm  <dmalcolm@redhat.com>
6720         * gdbinit.in: Skip various inline functions in rtl.h when
6721         stepping.
6723 2014-08-29  Richard Sandiford  <richard.sandiford@arm.com>
6725         PR bootstrap/62301
6726         * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
6728 2014-08-29  Richard Biener  <rguenther@suse.de>
6730         PR tree-optimization/62291
6731         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
6732         exactly the vector size needed and use quick_push.
6733         (phi_translate_1): Adjust comment.
6734         (valid_in_sets): Remove block argument and remove pointless
6735         checking of NAMEs.
6736         (dependent_clean): Adjust for removal of block argument.
6737         (clean): Likewise.
6738         (compute_antic_aux): Likewise.
6739         (compute_partial_antic_aux): Likewise.
6741 2014-08-29  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6742             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6743             Anna Tikhonova  <anna.tikhonova@intel.com>
6744             Ilya Tocar  <ilya.tocar@intel.com>
6745             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6746             Ilya Verbin  <ilya.verbin@intel.com>
6747             Kirill Yukhin  <kirill.yukhin@intel.com>
6748             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6750         * config/i386/sse.md
6751         (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
6752         (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
6753         (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
6754         (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
6756 2014-08-29  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6757             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6758             Anna Tikhonova  <anna.tikhonova@intel.com>
6759             Ilya Tocar  <ilya.tocar@intel.com>
6760             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6761             Ilya Verbin  <ilya.verbin@intel.com>
6762             Kirill Yukhin  <kirill.yukhin@intel.com>
6763             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6765         * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
6766         * config/i386/sse.md
6767         (define_mode_iterator VI4_128_8_256): New.
6768         (define_mode_iterator VI2_128_4_256): Ditto.
6769         (define_mode_iterator PMOV_DST_MODE): Rename into
6770         (define_mode_iterator PMOV_DST_MODE_1): this.
6771         (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
6772         Use PMOV_DST_MODE_1 mode iterator.
6773         (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
6774         Ditto.
6775         (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
6776         Ditto.
6777         (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
6778         (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
6779         (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
6780         (define_mode_iterator PMOV_DST_MODE_2): New.
6781         (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
6782         (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
6783         (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
6784         Ditto.
6785         (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
6786         (define_mode_attr pmov_dst_3): Ditto.
6787         (define_mode_attr pmov_dst_zeroed_3): Ditto.
6788         (define_mode_attr pmov_suff_3): Ditto.
6789         (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
6790         (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
6791         (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
6792         (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
6793         (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
6794         (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
6795         (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
6796         (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
6797         (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
6798         (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
6799         (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
6800         (define_mode_attr pmov_dst_4): Ditto.
6801         (define_mode_attr pmov_dst_zeroed_4): Ditto.
6802         (define_mode_attr pmov_suff_4): Ditto.
6803         (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
6804         (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
6805         (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
6806         (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
6807         (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
6808         (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
6809         (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
6810         (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
6811         (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
6812         (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
6813         (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
6815 2014-08-29  Richard Biener  <rguenther@suse.de>
6817         * tree-cfg.c (verify_gimple_assign_unary): Do not allow
6818         NON_LVALUE_EXPR in gimple.
6820 2014-08-29  Richard Biener  <rguenther@suse.de>
6822         PR middle-end/62292
6823         * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
6824         from previous refactoring.
6825         (gimple_fold_builtin_strncpy): Likewise.
6827 2014-08-29  David Malcolm  <dmalcolm@redhat.com>
6829         PR bootstrap/62300
6830         * function.c (assign_parm_setup_reg): Remove erroneous checked
6831         cast to rtx_insn * on result of gen_extend_insn in favor of
6832         introducing a new local rtx "pat".
6834 2014-08-29  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
6836         * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
6837         to silence warning.
6838         * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
6840 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
6842         * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
6843         (next_insn): Likewise.
6844         * emit-rtl.c (next_insn): Likewise.
6845         (previous_insn): Likewise.
6846         * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
6847         "insn" and "next" from rtx to rtx_insn *.
6848         * config/picochip/picochip.c (picochip_reorg): Likewise for locals
6849         "insn", "insn1", "vliw_start",  "prologue_end_note",
6850         "last_insn_in_packet".
6852 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
6854         * shrink-wrap.h (active_insn_between): Strengthen both params from
6855         rtx to rtx_insn *.
6856         * function.c (active_insn_between): Likewise.
6858 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
6860         * genattr.c (main): When writing out insn-attr.h, strengthen param
6861         of dfa_clear_single_insn_cache from rtx to rtx_insn *.
6862         * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
6863         writing out the definition of dfa_clear_single_insn_cache to the
6864         generated insn-automata.c
6866 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
6868         * resource.h (clear_hashed_info_for_insn): Strengthen param from
6869         rtx to rtx_insn *.
6870         (incr_ticks_for_insn): Likewise.
6871         (init_resource_info): Likewise.
6873         * resource.c (init_resource_info): Likewise.
6874         (clear_hashed_info_for_insn): Likewise.
6875         (incr_ticks_for_insn): Likewise.
6877         * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
6878         rtx to rtx_insn *.
6879         (steal_delay_list_from_target): Use methods of "seq".
6880         (try_merge_delay_insns): Use methods of "merged_insns".
6881         (update_block): Strengthen param "insn" from rtx to rtx_insn *.
6882         (reorg_redirect_jump): Likewise for param "jump".
6884 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
6886         * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
6887         rtx to rtx_insn *.
6888         * config/s390/s390.c (s390_split_branches): Eliminate top-level
6889         local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
6890         "set_insn".
6891         (s390_mainpool_finish): In three places, split out a local rtx
6892         "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
6893         "insn".  Strengthen local "pool_end" from rtx to rtx_code_label *
6894          and split another local rtx "insn" out into rtx "pat" and
6895         rtx_insn * "insn".
6896         * config/sh/sh.c (output_branchy_insn): Rather than working
6897         directly on operands[9], introduce local rtx_code_label *
6898         variables named "lab" in two places, working on them, and then
6899         assigning them to operands[9], so that the intervening operations
6900         are known by the type system to be on insns.
6902 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
6904         * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
6905         const rtx_insn *.
6907         * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
6908         in invocation of INSN_HAS_LOCATION.
6910 2014-08-28  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6912         * config/rs6000/altivec.h (vec_xl): New #define.
6913         (vec_xst): Likewise.
6914         * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
6915         (XXSPLTD_V2DI): Likewise.
6916         (DIV_V2DI): Likewise.
6917         (UDIV_V2DI): Likewise.
6918         (MUL_V2DI): Likewise.
6919         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
6920         entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
6921         VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
6922         VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
6923         * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
6924         (UNSPEC_VSX_DIVSD): Likewise.
6925         (UNSPEC_VSX_DIVUD): Likewise.
6926         (UNSPEC_VSX_MULSD): Likewise.
6927         (vsx_mul_v2di): New insn-and-split.
6928         (vsx_div_v2di): Likewise.
6929         (vsx_udiv_v2di): Likewise.
6930         (vsx_xxspltd_<mode>): New insn.
6932 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
6934         * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
6935         NEXT_INSN.
6936         (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
6937         (NEXT_INSN): Likewise.
6938         (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
6939         (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
6940         const rtx_insn *.
6941         (no_labels_between_p): Likewise for both params.
6943         * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
6944         cast when using NEXT_INSN on operands[2].
6945         * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
6946         "insn" from rtx to rtx_insn *, adding a checked cast.
6947         (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
6948         rtx_insn *.
6949         * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
6950         for third param.
6951         (arc_text_label): Likewise for param "insn".
6952         * config/arc/arc.c (arc_expand_epilogue): Likewise for local
6953         "insn".
6954         (arc_ccfsm_record_condition): Likewise for param "jump".
6955         (arc_text_label): Likewise for local "label".
6956         * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
6957         Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
6958         a method for typesafety.  Add a checked cast.
6959         * config/arc/constraints.md (Clb): Add a checked cast when getting
6960         the CODE_LABEL from a LABEL_REF.
6961         * config/arm/arm.c (require_pic_register): Strengthen locals
6962         "seq", "insn" from rtx to rtx_insn *.
6963         (create_fix_barrier): Likewise for locals "selected", "next".
6964         (thumb1_reorg): Likewise for locals "prev", "insn".
6965         (arm_expand_prologue): Likewise for local "last".
6966         (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
6967         operands[0].
6968         (thumb2_output_casesi): Likewise for operands[2].
6969         * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
6970         strengthen local "insn" from rtx to rtx_insn *.
6971         * config/bfin/bfin.c (find_next_insn_start): Likewise for return
6972         type and param "insn".
6973         (find_prev_insn_start): Likewise.
6974         (hwloop_optimize): Likewise for locals "insn", "last_insn",
6975         "prev".
6976         (gen_one_bundle): Likewise for loal "t".
6977         (find_load): Likewise for param "insn".
6978         (workaround_speculation): Likewise for locals "insn", "next",
6979         "target", "next_tgt".
6980         * config/c6x/c6x.c (assign_reservations): Likewise for both params
6981         and for locals "insn", "within", "last".
6982         (count_unit_reqs): Likewise for params "head", "tail" and local
6983         "insn".
6984         (try_rename_operands): Likewise for params "head", "tail".
6985         (reshuffle_units): Likewise for locals "head", "tail", "insn".
6986         (struct c6x_sched_context): Likewise for fields
6987         "last_scheduled_insn", "last_scheduled_iter0".
6988         (init_sched_state): Replace NULL_RTX with NULL.
6989         (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
6990         to rtx_insn *.
6991         (undo_split_delayed_nonbranch): Likewise for param and for local
6992         "prev".
6993         (conditionalize_after_sched): Likewise for local "insn".
6994         (bb_earliest_end_cycle): Likewise.
6995         (filter_insns_above): Likewise for locals "insn", "next".
6996         (hwloop_optimize): Remove redundant checked cast.
6997         (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
6998         * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
6999         NULL_RTX with NULL.
7000         (cris_simple_epilogue): Likewise.
7001         (cris_expand_prologue): Likewise.
7002         (cris_expand_epilogue): Likewise.
7003         * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
7004         local "insn" from rtx to rtx_insn *.
7005         (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
7006         (struct frv_packet_group): Likewise for the elements within array
7007         fields "insns", "sorted", and for field "nop".
7008         (frv_packet): Likewise for the elements within array field
7009         "insns".
7010         (frv_add_insn_to_packet): Likewise for param "insn".
7011         (frv_insert_nop_in_packet): Likewise for param "insn" and local
7012         "last".
7013         (frv_for_each_packet): Likewise for locals "insn", "next_insn".
7014         (frv_sort_insn_group_1): Likewise for local "insn".
7015         (frv_optimize_membar_local): Likewise.
7016         (frv_align_label): Likewise for locals "x", "last", "barrier",
7017         "label".
7018         * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
7019         local.
7020         (ia64_sched_init): Likewise for local "insn".
7021         (scheduled_good_insn): Likewise for param "last".
7022         (struct _ia64_sched_context): Likewise for field
7023         "last_scheduled_insn".
7024         (ia64_init_sched_context): Replace NULL_RTX with NULL.
7025         (struct bundle_state): Likewise for field "insn".
7026         (issue_nops_and_insn): Likewise for param "insn".
7027         (get_next_important_insn): Likewise for return type and both
7028         params.
7029         (ia64_add_bundle_selector_before): Likewise for param "insn".
7030         (bundling): Likewise for params "prev_head_insn", "tail" and
7031         locals "insn", "next_insn", "b".  Eliminate top-level local rtx
7032         "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
7033         * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
7034         Strengthen final param from rtx to rtx_insn *.
7035         (iq2000_move_1word): Likewise for second param.
7036         * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
7037         param "cur_insn" and local "next_insn".
7038         (iq2000_move_1word): Likewise for param "insn".
7039         * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
7040         casts when using NEXT_INSN on operands[1].
7041         * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
7042         "insn" from rtx to rtx_insn *.
7043         * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
7044         "x", introducing local rtx_insn * "insn" for when working with the
7045         CODE_LABEL of the LABEL_REF.
7046         (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
7047         rtx_insn *.
7048         * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
7049         param.
7050         * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
7051         type.
7052         (conditionalize_block): Likewise for return type and param.
7053         (mcore_is_dead): Likewise for param "first" and local "insn".
7054         (emit_new_cond_insn): Likewise for return type.
7055         (conditionalize_block): Likewise for return type, param, and
7056         locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
7057         "newinsn".
7058         (conditionalize_optimization): Likewise for local "insn".
7059         * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
7060         using NEXT_INSN.
7061         * config/microblaze/microblaze.md: Add checked casts when using
7062         NEXT_INSN.
7063         * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
7064         rtx "insn" in favor of various more tightly-scoped rtx "insn" and
7065         and rtx_insn * "insn".
7066         * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
7067         checked cast when using NEXT_INSN on operands[2].
7068         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
7069         local "insn" from rtx to rtx_insn *.
7070         * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
7071         Likewise.
7072         * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
7073         Add a checked cast when using NEXT_INSN on operands[1].
7074         * config/pa/pa-protos.h (pa_following_call): Strengthen param from
7075         rtx to rtx_insn *.
7076         (pa_output_cbranch): Likewise for final param.
7077         (pa_output_lbranch): Likewise for second param.
7078         (pa_output_bb): Likewise for third param.
7079         (pa_output_bvb): Likewise.
7080         (pa_output_dbra): Likewise for second param.
7081         (pa_output_movb): Likewise.
7082         (pa_output_parallel_movb): Likewise.
7083         (pa_output_parallel_addb): Likewise.
7084         (pa_output_millicode_call): Likewise for first param.
7085         (pa_output_mul_insn): Likewise for second param.
7086         (pa_output_div_insn): Likewise for third param.
7087         (pa_output_mod_insn): Likewise for second param.
7088         (pa_jump_in_call_delay): Likewise for param.
7089         * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
7090         (pa_output_div_insn): Likewise.
7091         (pa_output_mod_insn): Likewise.
7092         (pa_output_cbranch): Likewise.
7093         (pa_output_lbranch): Likewise.
7094         (pa_output_bb): Likewise.
7095         (pa_output_bvb): Likewise.
7096         (pa_output_dbra): Likewise.
7097         (pa_output_movb): Likewise.
7098         (pa_output_millicode_call): Likewise; use method of rtx_sequence *
7099         to simplify and for typesafety.
7100         (pa_output_call): Use method of rtx_sequence *.
7101         (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
7102         (pa_jump_in_call_delay): Likewise.
7103         (pa_output_parallel_movb): Likewise.
7104         (pa_output_parallel_addb): Likewise.
7105         (pa_following_call): Likewise.
7106         (pa_combine_instructions): Likewise for locals "anchor",
7107         "floater".
7108         (pa_can_combine_p): Likewise for params "anchor", "floater" and
7109         locals "start", "end".
7110         * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
7111         param "insn" and local "local_insn".
7112         (picochip_final_prescan_insn): Likewise for local "local_insn".
7113         * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
7114         local "insn".
7115         (uses_TOC): Likewise.
7116         * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
7117         (s390_mainpool_finish): Eliminate top-level local rtx "insn",
7118         splitting out to more tightly-scoped locals, 3 as rtx and one as
7119         rtx_insn *.
7120         (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
7121         to rtx_insn *.
7122         (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
7123         where needed.
7124         * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
7125         to rtx_insn *.
7126         (fixup_addr_diff_vecs): Likewise.
7127         (reg_unused_after): Likewise for param 2.
7128         (sh_can_redirect_branch): Likewise for both params.
7129         (check_use_sfunc_addr): Likewise for param 1.
7130         * config/sh/sh.c (fixup_mova): Likewise for local "worker".
7131         (find_barrier): Likewise for local "last_got".
7132         (gen_block_redirect): Likewise for return type, param "jump" and
7133         locals "prev", "scan", "next", "insn".
7134         (struct far_branch): Likewise for fields "near_label",
7135         "insert_place", "far_label".
7136         (gen_far_branch): Likewise for local "jump".
7137         (fixup_addr_diff_vecs): Likewise for param "first" and locals
7138         "insn", "prev".
7139         (barrier_align): Likewise for param and for locals "prev", "x".
7140         Introduce local rtx_sequence * "prev_seq" and use insn method for
7141         typesafety and clarity.
7142         (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
7143         (get_dest_uid): Likewise for local "dest".
7144         (split_branches): Likewise for locals "next", "beyond", "label",
7145         "block", "far_label".  Add checked casts when assigning to
7146         bp->far_label and "far_label".
7147         (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
7148         (sequence_insn_p): Likewise.
7149         (mark_constant_pool_use): Likewise for locals "insn", "lab".  Add a
7150         more loop-scoped rtx "insn" when walking LABEL_REFS.
7151         (sh_can_redirect_branch): Strengthen both params from rtx to
7152         rtx_insn *.
7153         (check_use_sfunc_addr): Likewise for param "insn".  Introduce a
7154         new local rtx_sequence * "seq" via a dyn_cast, and use a method
7155         for clarity and typesafety.
7156         * config/sh/sh.md (define_expand "epilogue"): Strengthen local
7157         "insn" from rtx to rtx_insn *.
7158         (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
7159         when using NEXT_INSN on the CODE_LABEL in operands[2].
7160         (define_insn "casesi_worker_2"): Likewise.
7161         (define_insn "casesi_shift_media"): Likewise.
7162         (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
7163         operands[3].
7164         * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
7165         Strengthen field "insn" from rtx to rtx_insn *.
7166         (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
7167         (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
7168         param "start_insn" and local "start_insn".
7169         * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
7170         field "insn".
7171         (find_set_of_reg_bb): Likewise for param "insn".
7172         (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
7173         (trace_reg_uses): Likewise for param "start_insn".
7174         (sh_treg_combine::cbranch_trace): Likewise for field
7175         "cbranch_insn".
7176         (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
7177         param "insn".
7178         (sh_treg_combine::record_set_of_reg): Likewise for param
7179         "start_insn" and local "i".
7180         (sh_treg_combine::can_remove_cstore): Likewise for local
7181         "prev_insn".
7182         (sh_treg_combine::try_optimize_cbranch): Likewise for param
7183         "insn".
7184         (sh_treg_combine::execute): Likewise for local "i".
7185         * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
7186         param.
7187         (sparc_check_64): Likewise for second param.
7188         * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
7189         locals "insn", "next".  Introduce local rtx_sequence * "seq" via a
7190         dyn_cast, using its insn method for typesafety and clarity.
7191         (empty_delay_slot): Strengthen param "insn" from rtx to
7192         rtx_insn *.
7193         (set_extends): Likewise.
7194         (sparc_check_64): Likewise.
7195         * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
7196         for locals "seq", "last_insn".
7197         (combine_bnp): Likewise for param "insn".
7198         (xstormy16_reorg): Likewise for local "insn".
7199         * config/v850/v850.c (substitute_ep_register): Likewise for params
7200         "first_insn", "last_insn" and local "insn".
7201         (v850_reorg): Likewise for fields "first_insn", "last_insn" within
7202         elements of "regs" array, and local "insn".
7203         * except.c (emit_note_eh_region_end): Likewise for param "insn".
7204         * final.c (final_sequence): Strengthen this global from rtx to
7205         rtx_sequence *.
7206         (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
7207         rtx_insn *.
7208         (final_scan_insn): Update assignment to "final_sequence" to be
7209         from "seq", the cast version of "body", for type-safety.
7210         * function.c (assign_parm_setup_reg): Strengthen locals "insn",
7211         "insns" from rtx to rtx_insn *.
7212         (thread_prologue_and_epilogue_insns): Likewise for local "seq".
7213         * genattr.c (main): When writing out generated insn-attr.h,
7214         strengthen params 1 and 3 of eligible_for_delay,
7215         eligible_for_annul_true, eligible_for_annul_false from rtx to
7216         rtx_insn *.
7217         * genattrtab.c (write_eligible_delay): Likewise when writing out
7218         generated insn-attrtab.c; also local "insn" the generated
7219         functions.
7220         * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
7221         to rtx_insn *.
7222         * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
7223         "start_label" from rtx to rtx_insn *.
7224         * ira.c (decrease_live_ranges_number): Likewise for local "p".
7225         (ira_update_equiv_info_by_shuffle_insn): Likewise for param
7226         "insns" and local "insn".
7227         (validate_equiv_mem): Likewise for param "start" and local "insn".
7228         (memref_used_between_p): Likewise for params "start", "end" and
7229         local "insn".
7230         * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
7231         final param.
7232         * loop-doloop.c (doloop_optimize): Within region guarded by
7233         INSN_P (doloop_pat), introduce a new local rtx_insn *
7234         "doloop_insn" via a checked cast, and use it for typesafety,
7235         eventually writing the value back into doloop_pat.
7236         * output.h (final_sequence): Strengthen this global from rtx to
7237         rtx_sequence *.
7238         * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
7239         reintroducing "insn" as an rtx_insn * via a checked cast.
7240         Strengthen param "attempt" and local "new_insn"from rtx to
7241         rtx_insn *.
7242         (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
7243         to rtx_insn *.
7244         * ree.c (emit_note_eh_region_end): Likewise for local "insn".
7245         * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
7246         "p" in favor of more tightly-scoped replacements, sometimes rtx
7247         and sometimes rtx_insn *, as appropriate.
7248         (delete_output_reload): Eliminate top-level rtx "i1", splitting
7249         into two loop-scoped locals, one an rtx, the other an rtx_insn *.
7250         * reorg.c (delete_scheduled_jump): Add checked cast.  Strengthen
7251         local "trial" from rtx to rtx_insn *.
7252         (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
7253         rtx to rtx_insn *.  Strenghten local "pat" from rtx to
7254         rtx_sequence * and use methods for clarity and typesafety.
7255         (redirect_with_delay_list_safe_p): Strengthen param "jump" from
7256         rtx to rtx_insn *.  Strenghten local "li" from rtx to
7257         rtx_insn_list * and use its methods for clarity and typesafety.
7258         (steal_delay_list_from_target): Strengthen param "insn" from rtx
7259         to rtx_insn *.
7260         (steal_delay_list_from_fallthrough): Likewise.
7261         (try_merge_delay_insns): Likewise for param "thread" and locals
7262         "trial", "next_trial", "delay_insn".
7263         (redundant_insn): Likewise for param "target" and local "trial".
7264         (own_thread_p): Likewise for param "thread" and locals
7265         "active_insn", "insn".
7266         (get_label_before): Likewise for param "insn".
7267         (fill_simple_delay_slots): Likewise for local "new_label"; use
7268         JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
7269         (label_before_next_insn): Strengthen return type and local "insn"
7270         from rtx to rtx_insn *.
7271         (relax_delay_slots): Likewise for locals "other", "tmp".
7272         (make_return_insns): Likewise for param "first" and locals "insn",
7273         "jump_insn", "prev".  Move declaration of "pat" to its assignment
7274         and strengthen from rtx to rtx_sequence *.  Use its methods for
7275         clarity and typesafety.
7276         * rtlanal.c (no_labels_between_p): Strengthen params from
7277         const_rtx to const rtx_insn *.  Strengthen local "p" from rtx to
7278         rtx_insn *.
7279         (reg_used_between_p): Strengthen params "from_insn", "to_insn"
7280         from const_rtx to const rtx_insn *.
7281         (reg_set_between_p): Rename param "from_insn" to
7282         "uncast_from_insn", and reintroduce "from_insn" as a
7283         const rtx_insn * via a checked cast.
7284         (modified_between_p): Likewise for param "start" as "uncast_start".
7285         (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
7286         * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
7287         "tmp", head" from rtx to rtx_insn *.
7288         (recompute_rev_top_order): Likewise for local "insn".
7289         * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
7290         * store-motion.c (build_store_vectors): Likewise for local "insn".
7291         Strengthen local "st" from rtx to rtx_insn_list * and use methods
7292         for clarity and typesafety.
7293         * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
7294         rtx to rtx_insn *.
7295         (computation_cost): Likewise for local "seq".
7296         (get_address_cost): Likewise.
7298 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
7300         * rtl.h (tablejump_p): Strengthen first param from const_rtx to
7301         const rtx_insn *.
7302         (label_is_jump_target_p): Likewise for second param.
7304         * rtlanal.c (tablejump_p): Likewise for param "insn".
7305         (label_is_jump_target_p): Likewise for param "jump_insn".
7307 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
7309         * rtl.h (find_first_parameter_load): Strengthen return type and
7310         both params from rtx to rtx_insn *.
7311         * rtlanal.c (find_first_parameter_load): Strengthen return type,
7312         both params and locals "before", "first_set" from rtx to
7313         rtx_insn *.  Remove now-redundant cast.
7314         * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
7316 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
7318         * rtl.h (find_last_value): Delete.
7319         * rtlanal.c (find_last_value): Delete.
7321 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
7323         * cfgexpand.c (pass_expand::execute): Strengthen local "after"
7324         from rtx to rtx_insn *.
7325         * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
7326         rtx "note" with new local rtx_insn * "new_head" when calculating
7327         head insn of new basic block.
7328         * combine.c (combine_split_insns): Strengthen return type and local
7329         "ret" from rtx to rtx_insn *.
7330         (likely_spilled_retval_p): Likewise for locals "use" and "p".
7331         (try_combine): Eliminate local "m_split", splitting into new
7332         locals "m_split_insn" and "m_split_pat".
7333         (find_split_point): Strengthen local "seq" from rtx into
7334         rtx_insn *.
7335         * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
7336         locals "label", "branch".
7337         * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
7338         for local "insn".
7339         (define_expand "umulsi3_highpart"): Likewise for local "insn".
7340         * dse.c (note_add_store_info): Likewise for fields "first",
7341         "current".
7342         (note_add_store): Likewise for local "insn".
7343         (emit_inc_dec_insn_before): Likewise for locals "insn",
7344         "new_insn", "cur".
7345         (find_shift_sequence): Likewise for locals "shift_seq", "insn".
7346         (replace_read): Likewise for locals "insns", "this_insn".
7347         * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
7348         (notice_eh_throw): Likewise for param "insn".
7349         (before_next_cfi_note): Likewise for return type, param, and local
7350         "prev".
7351         (connect_traces): Likewise for local "note".
7352         * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
7353         (verify_rtl_sharing): Likewise.
7354         (unshare_all_rtl_in_chain): Likewise for param "insn".
7355         (get_first_nonnote_insn): Likewise for local "insn".
7356         (get_last_nonnote_insn): Likewise.  Introduce local rtx_sequence *
7357         "seq" and use its methods to clarify things.
7358         (next_insn): Strengthen return type from rtx to rtx_insn *.
7359         Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
7360         local rtx_insn * using a checked cast, dropping a checked cast
7361         made redundant by this change.  Use a cast to and method of
7362         rtx_sequence to clarify the code.
7363         (previous_insn): Rename param "insn" to "uncast_insn" and
7364         reintroduce "insn" as a local rtx_insn * using a checked cast,
7365         dropping a checked cast made redundant by this change.  Use a cast
7366         to and method of rtx_sequence to clarify the code.
7367         (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
7368         reintroduce "insn" as a local rtx_insn * using a checked cast,
7369         dropping a checked cast made redundant by this change.
7370         (next_nonnote_insn_bb): Likewise.
7371         (prev_nonnote_insn): Likewise.
7372         (prev_nonnote_insn_bb): Likewise.
7373         (next_nondebug_insn): Likewise.
7374         (prev_nondebug_insn): Likewise.
7375         (next_nonnote_nondebug_insn): Likewise.
7376         (prev_nonnote_nondebug_insn): Likewise.
7377         (next_real_insn): Likewise.
7378         (prev_real_insn): Likewise.
7379         (next_active_insn): Likewise.
7380         (prev_active_insn): Likewise.
7381         (next_cc0_user): Likewise.  Use rtx_sequence and a method for
7382         clarity.
7383         (prev_cc0_setter): Likewise.
7384         (try_split): Rename param "trial" to "uncast_trial" and
7385         reintroduce "insn" as a local rtx_insn * using a checked cast,
7386         dropping checked casts made redundant by this change.
7387         Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
7388         rtx to rtx_insn *.
7389         (remove_insn): Rename param "insn" to "uncast_insn" and
7390         reintroduce "insn" as a local rtx_insn * using a checked cast.
7391         (emit_pattern_after_setloc): Likewise for param "after", as
7392         "uncast_after".
7393         (emit_pattern_after): Likewise.  Strengthen local "prev" from
7394         rtx to rtx_insn *.
7395         (emit_pattern_before_setloc): Rename param "before" to
7396         "uncast_before" and reintroduce "before" as a local rtx_insn *
7397         using a checked cast.  Strengthen locals "first", "last" from
7398         rtx to rtx_insn *.
7399         (emit_pattern_before): Likewise rename/cast param "before" to
7400         "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
7401         * except.c (copy_reg_eh_region_note_forward): Strengthen param
7402         "first" and local "insn" from rtx to rtx_insn *.
7403         (copy_reg_eh_region_note_backward): Likewise for param "last"
7404         and local "insn".
7405         * expr.c (fixup_args_size_notes): Rename param "last" to
7406         "uncast_last" and reintroduce "last" as a local rtx_insn *
7407         using a checked cast.  Strengthen local "insn" from rtx to
7408         rtx_insn *.
7409         * function.c (set_insn_locations): Strengthen param "insn" from
7410         rtx to rtx_insn *.
7411         (record_insns): Likewise for param "insns" and local "tmp".
7412         (active_insn_between): Rename param "tail" to
7413         "uncast_tail" and reintroduce "tail" as a local rtx_insn *
7414         using a checked cast.
7415         (thread_prologue_and_epilogue_insns): Split out top-level local
7416         rtx "seq" into three different rtx_insn * locals.  Strengthen
7417         local "prologue_seq" from rtx to rtx_insn *.
7418         * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
7419         from rtx to rtx_insn *.
7420         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
7421         (priority): Likewise for locals "prev_first", "twin".
7422         (setup_insn_max_reg_pressure): Likewise for param "after".
7423         (sched_setup_bb_reg_pressure_info): Likewise.
7424         (no_real_insns_p): Strengthen params from const_rtx to
7425         const rtx_insn *.
7426         (schedule_block): Strengthen local "next_tail" from rtx to
7427         rtx_insn *.
7428         * ifcvt.c (find_active_insn_before): Strengthen return type and
7429         param "insn" from rtx to rtx_insn *.
7430         (find_active_insn_after): Likewise.
7431         (cond_exec_process_insns): Likewise for param "start" and local "insn".
7432         (cond_exec_process_if_block): Likewise for locals "then_start",
7433         "then_end", "else_start", "else_end", "insn", "start", "end", "from".
7434         (noce_process_if_block): Likewise for local "jump".
7435         (merge_if_block): Likewise for two locals named "end".
7436         (cond_exec_find_if_block): Likewise for local "last_insn".
7437         * jump.c (delete_related_insns): Rename param "insn" to
7438         "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
7439         checked cast.  Strengthen local "p" from rtx to rtx_insn *.
7440         * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
7441         NULL.
7442         (split_reg): Likewise.
7443         * lra.c (lra_process_new_insns): Likewise.
7444         * modulo-sched.c (permute_partial_schedule): Strengthen param
7445         "last" from rtx to rtx_insn *.
7446         * optabs.c (add_equal_note): Likewise for param "insns" and local
7447         "last_insn".
7448         (expand_binop_directly): Add checked casts to rtx_insn * within
7449         NEXT_INSN (pat) uses.
7450         (expand_unop_direct): Likewise.
7451         (maybe_emit_unop_insn): Likewise.
7452         * recog.c (peep2_attempt): Strengthen locals "last",
7453         "before_try", "x" from rtx to rtx_insn *.
7454         * reorg.c (optimize_skip): Strengthen return type and local
7455         "delay_list" from rtx to rtx_insn_list *.  Strengthen param "insn"
7456         and locals "trial", "next_trial" from rtx to rtx_insn *.
7457         * resource.c (next_insn_no_annul): Strengthen return type and
7458         param "insn" from rtx to rtx_insn *.  Use a cast to and method of
7459         rtx_sequence to clarify the code.
7460         (mark_referenced_resources): Add a checked cast to rtx_insn *
7461         within PREV_INSN (x).
7462         (find_dead_or_set_registers): Strengthen return type, param
7463         "target", locals "insn", "next", "jump_insn", "this_jump_insn"
7464         from rtx to rtx_insn *.  Strengthen param "jump_target" from rtx *
7465         to rtx_insn **.
7466         (mark_target_live_regs): Strengthen params "insns" and "target",
7467         locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
7468         to rtx_insn *.  Use cast to and method of rtx_sequence to clarify
7469         the code.
7470         * resource.h (mark_target_live_regs): Strengthen params 1 and 2
7471         from rtx to rtx_insn *.
7472         * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
7473         from rtx to rtx_insn *.
7474         (copy_reg_eh_region_note_backward): Likewise.
7475         (unshare_all_rtl_in_chain): Likewise for sole param.
7476         (dump_rtl_slim): Strengthen second and third params from const_rtx
7477         to const rtx_insn *.
7478         * sched-deps.c (sched_free_deps): Strengthen params "head" and
7479         "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
7480         * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
7481         "next_tail" from rtx to rtx_insn *.
7482         (begin_move_insn): Likewise for local "next".
7483         * sched-int.h (sched_free_deps): Likewise for first and second
7484         params.
7485         (no_real_insns_p): Strengthen both params from const_rtx to
7486         const rtx_insn *.
7487         (sched_setup_bb_reg_pressure_info): Strengthen second params from
7488         rtx to rtx_insn *.
7489         * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
7490         "next_tail".
7491         * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
7492         and locals "insn", "tail" from const_rtx to const rtx_insn *.
7493         (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
7494         rtx_insn *.
7495         (debug_rtl_slim): Strengthen params "first" and "last" from
7496         const_rtx to const rtx_insn *.
7497         * shrink-wrap.c (try_shrink_wrapping): Strengthen param
7498         "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
7499         (convert_to_simple_return): Likewise for param "returnjump".
7500         * shrink-wrap.h (try_shrink_wrapping): Likewise for param
7501         "prologue_seq".
7502         (convert_to_simple_return): Likewise for param "returnjump".
7503         * valtrack.c (propagate_for_debug): Likewise for params
7504         "insn", "last".
7505         * valtrack.h (propagate_for_debug): Likewise for second param.
7507 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
7509         * output.h (insn_current_reference_address): Strengthen param
7510         from rtx to rtx_insn *.
7511         * final.c (insn_current_reference_address): Likewise.
7513 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
7515         * basic-block.h (inside_basic_block_p): Strengthen param from
7516         const_rtx to const rtx_insn *.
7517         * cfgbuild.c (inside_basic_block_p): Likewise.
7519 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
7521         * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
7522         rtx_insn *.
7523         (get_trace_info): Likewise for param "insn".
7524         (save_point_p): Likewise.
7525         (maybe_record_trace_start): Likewise for both params.
7526         (maybe_record_trace_start_abnormal): Likewise.
7527         (create_trace_edges): Likewise for sole param and for three of the
7528         locals named "lab".
7529         (scan_trace): Strengthen local "prev", "insn", "control" from rtx
7530         to rtx_insn *, and update a call to pat->element to pat->insn.
7532 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
7534         * function.h (struct expr_status): Convert field "x_forced_labels"
7535         from rtx_expr_list * to rtx_insn_list *.
7537         * cfgbuild.c (make_edges): Convert local "x" from an
7538         rtx_expr_list * to an rtx_insn_list *, replacing use of
7539         "element" method with "insn" method.
7540         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
7541         * except.c (sjlj_emit_dispatch_table): Replace use of
7542         gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
7543         forced_labels.
7544         * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
7545         rtx_expr_list * to an rtx_insn_list *, replacing use of
7546         "element" method with "insn" method.
7547         * reload1.c (set_initial_label_offsets): Likewise for local "x".
7548         * stmt.c (label_rtx): Strengthen local "ref" from rtx to
7549         rtx_insn *, adding a checked cast.  Replace use of
7550         gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
7551         forced_labels.
7552         (expand_label): Likewise for local "label_r".
7554 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
7556         * function.h (struct rtl_data): Convert field
7557         "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
7558         rtx_insn_list *.
7559         * rtl.h (remove_node_from_insn_list): New prototype.
7561         * builtins.c (expand_builtin): When prepending to
7562         nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
7563         gen_rtx_EXPR_LIST.
7564         * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
7565         to rtx_insn_list *, and use its "insn" method rather than
7566         "element" method.
7567         * cfgrtl.c (delete_insn): Use new function
7568         remove_node_from_insn_list rather than
7569         remove_node_from_expr_list.
7570         (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
7571         to rtx_insn_list *, and use its "insn" method rather than
7572         "element" method.
7573         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
7574         * reload1.c (set_initial_label_offsets): Likewise for local "x".
7575         * rtlanal.c (remove_node_from_insn_list): New function, adapted
7576         from remove_node_from_expr_list.
7577         * stmt.c (expand_label): When prepending to
7578         nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
7579         gen_rtx_EXPR_LIST.
7581 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
7583         * function.h (struct rtl_data): Strengthen fields "x_return_label"
7584         and "x_naked_return_label" from rtx to rtx_code_label *.
7586 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
7588         * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
7589         (SET_NEXT_INSN): Likewise.
7590         (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
7592         * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
7593         rtx * to rtx_insn **.  Introduce a new local rtx "seq", using it
7594         to split out the SEQUENCE from local "bundle", strengthening the
7595         latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
7596         Strengthen locals "t" and "insn" from rtx to rtx_insn *.
7597         (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
7598         and the type of the elements of the "slot" array from rtx to
7599         rtx_insn *.
7600         (reorg_split_calls): Likewise for locals "insn" and "next", and
7601         the type of the elements of the "slot" array.
7603         * config/frv/frv.c (frv_nops): Likewise for the elements of this
7604         array.
7605         (frv_function_prologue): Likewise for locals "insn", "next",
7606         "last_call".
7607         (frv_register_nop): Introduce a local "nop_insn" to be the
7608         rtx_insn * containing rtx "nop".
7610         * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
7611         used as an insn and sometimes as a pattern, so rename it to
7612         "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
7613         using it where dealing with the core insn.
7615         * config/picochip/picochip.c (reorder_var_tracking_notes):
7616         Strengthen locals "insn", "next", "last_insn", "queue",
7617         "next_queue", "prev" from rtx to rtx_insn *.
7619         * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
7620         the second param is an rtx_insn ** rather than an rtx **.
7621         (link_insn_into_chain): Strengthen locals "seq" and "sequence"
7622         from rtx to rtx_sequence *, and introduce local named "sequence",
7623         using methods of rtx_sequence to clarify the code.
7624         (remove_insn): Introduce local rtx_sequence * named "sequence" and
7625         use its methods.
7626         (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
7627         Rename param "after" to "uncast_after", reintroducing "after" as a
7628         local rtx_insn * with a checked cast.
7629         (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
7630         reintroducing "after" as a local rtx_insn * with a checked cast.
7631         Strengthen local "last" from rtx to rtx_insn * and remove the
7632         now-redundant checked casts.
7633         (copy_delay_slot_insn): Strengthen return type and param from rtx
7634         to rtx_insn *.
7636         * haifa-sched.c (reemit_notes): Strengthen params "insn" and
7637         "last" from rtx to rtx_insn *.
7639 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
7641         * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
7642         param from rtx to rtx_insn *.
7644         * emit-rtl.c (copy_delay_slot_insn): Likewise.
7646         * reorg.c (skip_consecutive_labels): Strengthen return type, param
7647         and local "insn" from rtx to rtx_insn *.
7648         (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
7649         (unfilled_slots_next): Likewise.
7650         (function_return_label): Strengthen from rtx to rtx_code_label *.
7651         (function_simple_return_label): Likewise.
7652         (first_active_target_insn): Strengthen return type and param from
7653         rtx to rtx_insn *.
7654         (find_end_label): Strengthen return type from rtx to
7655         rtx_code_label *; strengthen locals as appropriate.
7656         (emit_delay_sequence): Strengthen return type, param "insn" and
7657         local "seq_insn" from rtx to rtx_insn *.  Strengthen param "list"
7658         and local "li" from rtx to rtx_insn_list *, using methods of
7659         rtx_insn_list for clarity and typesafety.
7660         (add_to_delay_list): Strengthen return type and param "insn" from
7661         rtx to rtx_insn *.  Strengthen param "delay_list" from rtx to
7662         rtx_insn_list * and use methods of rtx_insn_list.
7663         (delete_from_delay_slot): Strengthen return type, param "insn",
7664         locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
7665         Strengthen local "seq" from rtx to rtx_sequence *, and local
7666         "delay_list" from rtx to rtx_insn_list *, using methods of
7667         rtx_sequence for clarity and type-safety.
7668         (delete_scheduled_jump): Add checked cast when invoking
7669         delete_from_delay_slot.  Strengthen local "trial" from rtx to
7670         rtx_insn *.
7671         (optimize_skip): Strengthen return type and local "delay_list"
7672         from rtx to rtx_insn_list *.  Strengthen local "trial" from rtx to
7673         rtx_insn *.
7674         (steal_delay_list_from_target): Strengthen return type, param
7675         "delay_list" and local "new_delay_list" from rtx to
7676         rtx_insn_list *.  Strengthen param "seq" from rtx to
7677         rtx_sequence *.  Strengthen param "pnew_thread" from rtx * to
7678         rtx_insn **.
7679         Split out local "temp" into multiple more-tightly scoped locals:
7680         sometimes an rtx_insn_list *, and once a rtx_insn *.  Use methods
7681         of rtx_insn_list and rtx_sequence for clarity and typesafety.
7682         Strengthen locals named "trial" from rtx to rtx_insn *.
7683         (steal_delay_list_from_fallthrough): Strengthen return type and
7684         param "delay_list" from rtx to rtx_insn_list *.  Strengthen param
7685         "seq" from rtx to rtx_sequence *.  Use methods of rtx_sequence.
7686         Strengthen local "trial" from rtx to rtx_insn *.
7687         (try_merge_delay_insns): Strength local "merged_insns" from rtx
7688         to rtx_insn_list * and use its methods.  Strengthen local "pat"
7689         from rtx to rtx_sequence * and use its methods.  Strengthen locals
7690         "dtrial" and "new_rtx" from rtx to rtx_insn *.
7691         (get_label_before): Strengthen return type and local "label" from
7692         rtx to rtx_insn *.
7693         (fill_simple_delay_slots): Likewise for locals "insn", "trial",
7694         "next_trial", "next", prev".  Strengthen local "delay_list" from
7695         rtx to rtx_insn_list *  Strengthen local "tmp" from rtx * to
7696         rtx_insn **.
7697         (follow_jumps): Strengthen return type, param "label" and locals
7698         "insn", "next", "value", "this_label" from rtx to rtx_insn *.
7699         (fill_slots_from_thread): Strengthen return type, param
7700         "delay_list" from rtx to rtx_insn_list *.  Strengthen params
7701         "insn", "thread", "opposite_thread" and locals "new_thread",
7702         "trial", "temp", "ninsn" from rtx to rtx_insn *.  Introduce local
7703         "sequence" from a checked cast to rtx_sequence so that we can call
7704         steal_delay_list_from_target and steal_delay_list_from_fallthrough
7705         with an rtx_sequence *.
7706         (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
7707         "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
7708         Strengthen local "delay_list" from rtx to rtx_insn_list *.
7709         (relax_delay_slots): Strengthen param "first" and locals "insn",
7710         "next", "trial", "delay_insn", "target_label" from rtx to
7711         rtx_insn *.  Strengthen local "pat" from rtx to rtx_sequence *.
7712         Introduce a local "trial_seq" for PATTERN (trial) of type
7713         rtx_sequence *, in both cases using methods of rtx_sequence.
7714         (dbr_schedule): Strengthen param "first" and locals "insn",
7715         "next", "epilogue_insn" from rtx to rtx_insn *.
7717 2014-08-28  Richard Biener  <rguenther@suse.de>
7719         PR tree-optimization/62283
7720         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
7721         Do not peel loops for alignment where the vector loop likely
7722         doesn't run at least VF times.
7724 2014-08-28  Bin Cheng  <bin.cheng@arm.com>
7726         * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
7727         important_candidates.  Consider all important candidates if
7728         IVS doesn't give any result.  Remove check on ivs->upto.
7729         (try_add_cand_for): Call iv_ca_add_use only once.
7731 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7732             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
7733             Anna Tikhonova  <anna.tikhonova@intel.com>
7734             Ilya Tocar  <ilya.tocar@intel.com>
7735             Andrey Turetskiy  <andrey.turetskiy@intel.com>
7736             Ilya Verbin  <ilya.verbin@intel.com>
7737             Kirill Yukhin  <kirill.yukhin@intel.com>
7738             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
7740         (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
7741         (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
7742         masking.
7743         (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
7744         (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
7745         (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
7746         (define_insn "*mul<mode>3"): Add EVEX version.
7748 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7749             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
7750             Anna Tikhonova  <anna.tikhonova@intel.com>
7751             Ilya Tocar  <ilya.tocar@intel.com>
7752             Andrey Turetskiy  <andrey.turetskiy@intel.com>
7753             Ilya Verbin  <ilya.verbin@intel.com>
7754             Kirill Yukhin  <kirill.yukhin@intel.com>
7755             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
7757         * config/i386/sse.md
7758         (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
7759         (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
7760         (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
7761         (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
7762         (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
7763         (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
7764         (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
7765         (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
7766         (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
7767         (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
7768         (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
7769         (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
7770         (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
7771         (define_insn "vec_interleave_highv16qi<mask_name>"): New.
7772         (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
7773         (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
7775 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7776             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
7777             Anna Tikhonova  <anna.tikhonova@intel.com>
7778             Ilya Tocar  <ilya.tocar@intel.com>
7779             Andrey Turetskiy  <andrey.turetskiy@intel.com>
7780             Ilya Verbin  <ilya.verbin@intel.com>
7781             Kirill Yukhin  <kirill.yukhin@intel.com>
7782             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
7784         * config/i386/sse.md
7785         (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
7786         (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
7787         (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
7789 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7790             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
7791             Anna Tikhonova  <anna.tikhonova@intel.com>
7792             Ilya Tocar  <ilya.tocar@intel.com>
7793             Andrey Turetskiy  <andrey.turetskiy@intel.com>
7794             Ilya Verbin  <ilya.verbin@intel.com>
7795             Kirill Yukhin  <kirill.yukhin@intel.com>
7796             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
7798         * config/i386/sse.md
7799         (define_mode_iterator VI128_256): New.
7800         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
7802 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7803             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
7804             Anna Tikhonova  <anna.tikhonova@intel.com>
7805             Ilya Tocar  <ilya.tocar@intel.com>
7806             Andrey Turetskiy  <andrey.turetskiy@intel.com>
7807             Ilya Verbin  <ilya.verbin@intel.com>
7808             Kirill Yukhin  <kirill.yukhin@intel.com>
7809             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
7811         * config/i386/sse.md
7812         (define_mode_iterator VI8_256_512): New.
7813         (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
7814         Ditto.
7815         (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
7816         (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
7817         Ditto.
7818         (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
7820 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7822         * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx.  Remove the
7823         pointer to the cumulative reloc value and return the value for
7824         this reloc instead.
7825         (compute_reloc_for_rtx): Take a const_rtx.  Call
7826         compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
7827         avoiding any recursion.  Use FOR_EACH_SUBRTX rather than
7828         for_each_rtx for the CONST case.
7830 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7832         * varasm.c (mark_constant): Replace this for_each_rtx callback with...
7833         (mark_constants_in_pattern): ...this new function to iterate over
7834         all the subrtxes.
7835         (mark_constants): Update accordingly.
7837 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7839         * varasm.c: Include rtl-iter.h.
7840         (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
7841         Remove the pointer to the cumulative hashval_t and just return
7842         the hash for this rtx instead.  Remove recursive CONST_VECTOR case.
7843         (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
7844         Accumulate the hashval_ts here instead of const_rtx_hash_1.
7846 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7848         * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
7849         Give real type of data parameter.  Remove return value.
7850         (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
7851         to iterate over subrtxes.
7853 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7855         * var-tracking.c (use_narrower_mode_test): Turn from being a
7856         for_each_rtx callback to being a function that examines each
7857         subrtx itself.
7858         (adjust_mems): Update accordingly.
7860 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7862         * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
7863         callback to being a function that examines each subrtx itself.
7864         Remove handling of null rtxes.
7865         (add_uses): Update accordingly.
7867 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7869         * var-tracking.c: Include rtl-iter.h.
7870         (rtx_debug_expr_p): Turn from being a for_each_rtx callback
7871         to being a function that examines each subrtx itself.
7872         (use_type): Update accordingly.
7874 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7876         * store-motion.c: Include rtl-iter.h.
7877         (extract_mentioned_regs_1): Delete.
7878         (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
7879         for_each_rtx to iterate over subrtxes.
7881 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7883         * sel-sched.c: Include rtl-iter.h
7884         (count_occurrences_1): Delete.
7885         (count_occurrences_equiv): Turn rtxes into const_rtxes.
7886         Use FOR_EACH_SUBRTX rather than for_each_rtx.
7888 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7890         * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
7891         * rtlanal.c (tls_referenced_p_1): Delete.
7892         (tls_referenced_p): Take a const_rtx rather than an rtx.
7893         Use FOR_EACH_SUBRTX rather than for_each_rtx.
7895 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7897         * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
7898         (for_each_inc_dec): Take an rtx rather than an rtx *.
7899         * cselib.c (cselib_record_autoinc_cb): Update accordingly.
7900         (cselib_record_sets): Likewise.
7901         * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
7902         (check_for_inc_dec): Likewise.
7903         * rtlanal.c (for_each_inc_dec_ops): Delete.
7904         (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
7905         rather than a pointer to the memory address.  Replace
7906         for_each_inc_dec_ops argument with separate function and data
7907         arguments.  Abort on non-autoinc addresses.
7908         (for_each_inc_dec_find_mem): Delete.
7909         (for_each_inc_dec): Take an rtx rather than an rtx *.  Use
7910         FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
7912 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7914         * rtl.h (find_all_hard_regs): Declare.
7915         * rtlanal.c (find_all_hard_regs): New function.
7916         (record_hard_reg_uses_1): Delete.
7917         (record_hard_reg_uses): Use find_all_hard_regs.
7919 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7921         * rtl.h (replace_label_data): Delete.
7922         (replace_label): Take the old label, new label and update-nuses flag
7923         as direct arguments.  Return void.
7924         * cfgcleanup.c (outgoing_edges_match): Update accordingly.
7925         * rtlanal.c (replace_label): Update interface as above.  Handle
7926         JUMP_TABLE_DATA as a special case.  Handle JUMPs outside the
7927         iterator.  Use FOR_EACH_SUBRTX_PTR.
7929 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7931         * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
7932         with const_rtx parameters.
7933         * varasm.c (get_pool_constant): Likewise.
7934         * rtlanal.c (rtx_referenced_p_1): Delete.
7935         (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
7936         Assert that the rtx we're looking for is nonnull.  Allow searches
7937         for constant pool SYMBOL_REFs.
7939 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7941         * reload1.c: Include rtl-iter.h.
7942         (note_reg_elim_costly): Turn from being a for_each_rtx callback
7943         to being a function that examines each subrtx itself.
7944         (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
7946 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7948         * regcprop.c (cprop_find_used_regs_1): Delete.
7949         (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
7951 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7953         * regcprop.c: Include rtl-iter.h.
7954         (kill_value): Take a const_rtx.
7955         (kill_autoinc_value): Turn from being a for_each_rtx callback
7956         to being a function that examines each subrtx itself.
7957         (copyprop_hardreg_forward_1): Update accordingly.
7959 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7961         * reg-stack.c: Include rtl-iter.h.
7962         (subst_stack_regs_in_debug_insn): Delete.
7963         (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
7964         instead of for_each_rtx.
7966 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7968         * lower-subreg.c (find_decomposable_subregs): Turn from being
7969         a for_each_rtx callback to being a function that examines each
7970         subrtx itself.  Remove handling of null rtxes.
7971         (decompose_multiword_subregs): Update accordingly.
7973 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7975         * lower-subreg.c (adjust_decomposed_uses): Delete.
7976         (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
7977         Remove handling of null rtxes.
7979 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7981         * lower-subreg.c: Include rtl-iter.h.
7982         (resolve_subreg_use): Turn from being a for_each_rtx callback
7983         to being a function that examines each subrtx itself.  Remove
7984         handling of null rtxes.
7985         (resolve_reg_notes, resolve_simple_move): Update accordingly.
7986         (decompose_multiword_subregs): Likewise.
7988 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7990         * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
7991         to being a function that examines each subrtx itself.
7992         (simplify_using_condition, simplify_using_initial_values): Update
7993         accordingly.
7995 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7997         * loop-iv.c: Include rtl-iter.h.
7998         (find_single_def_src): New function.
7999         (replace_single_def_regs): Turn from being a for_each_rtx callback
8000         to being a function that examines each subrtx itself.
8001         (replace_in_expr, simplify_using_initial_values): Update accordingly.
8003 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8005         * jump.c (eh_returnjump_p_1): Delete.
8006         (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
8007         Remove handling of null rtxes.
8009 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8011         * jump.c: Include rtl-iter.h.
8012         (returnjump_p_1): Delete.
8013         (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
8014         Remove handling of null rtxes.
8016 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8018         * ira.c: Include rtl-iter.h.
8019         (set_paradoxical_subreg): Turn from being a for_each_rtx callback
8020         to being a function that examines each subrtx itself.  Remove
8021         handling of null rtxes.
8022         (update_equiv_regs): Update call accordingly.
8024 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8026         * fwprop.c: Include rtl-iter.h.
8027         (varying_mem_p): Turn from being a for_each_rtx callback to being
8028         a function that examines each subrtx itself.
8029         (propagate_rtx): Update accordingly.
8031 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8033         * function.c: Include rtl-iter.h
8034         (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
8035         callback to being a function that examines each subrtx itself.
8036         Return the changed flag.
8037         (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
8038         (instantiate_virtual_regs): Update calls accordingly.
8040 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8042         * final.c: Include rtl-iter.h.
8043         (mark_symbol_ref_as_used): Delete.
8044         (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
8045         for_each_rtx.
8047 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8049         * emit-rtl.c: Include rtl-iter.h.
8050         (find_auto_inc): Turn from being a for_each_rtx callback to being
8051         a function that examines each subrtx itself.  Assume the first operand
8052         to an RTX_AUTOINC is the automodified register.
8053         (try_split): Update call accordingly.
8055 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8057         * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
8058         Return a bool, inverting the result so that 0/false means "not ok".
8059         Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
8060         subrtxes of a CONST.
8061         (mem_loc_descriptor, add_const_value_attribute)
8062         (resolve_addr_in_expr): Update calls accordingly.
8064 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8066         * dwarf2out.c: Include rtl-iter.h.
8067         (const_ok_for_output_1): Take the rtx instead of a pointer to it.
8068         Remove unused data parameter.  Return a bool, inverting the result
8069         so that 0/false means "not ok".
8070         (const_ok_for_output): Update accordingly.  Use FOR_EACH_SUBRTX_VAR
8071         instead of for_each_rtx.
8073 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8075         * dse.c: Include rtl-iter.h.
8076         (check_mem_read_rtx): Change void * parameter to real type.
8077         Remove return value.
8078         (check_mem_read_use): Fix comment.  Use FOR_EACH_SUBRTX_PTR instead of
8079         for_each_rtx.  Don't handle null rtxes.
8081 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8083         * df-problems.c: Include rtl-iter.h.
8084         (find_memory): Turn from being a for_each_rtx callback to being
8085         a function that examines each subrtx itself.  Continue to look for
8086         volatile references even after a nonvolatile one has been found.
8087         (can_move_insns_across): Update calls accordingly.
8089 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8091         * ddg.c (walk_mems_2, walk_mems_1): Delete.
8092         (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
8093         to iterate over subrtxes.  Return a bool rather than an int.
8095 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8097         * ddg.c: Include rtl-iter.h.
8098         (mark_mem_use_1): Rename to...
8099         (mark_mem_use): ...deleting old mark_mem_use.  Use FOR_EACH_SUBRTX
8100         instead of for_each_rtx.
8101         (mem_read_insn_p): Update accordingly.
8103 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8105         * cse.c (change_cc_mode_args): Delete.
8106         (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
8107         a function that examines each subrtx itself.  Take the fields of
8108         change_cc_mode_args as argument and return void.
8109         (cse_change_cc_mode_insn): Update calls accordingly.
8111 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8113         * cse.c (is_dead_reg): Change argument to const_rtx.
8114         (dead_debug_insn_data): Delete.
8115         (is_dead_debug_insn): Expand commentary.  Turn from being a
8116         for_each_rtx callback to being a function that examines
8117         each subrtx itself.  Take the fields of dead_debug_insn_data
8118         as argument.
8119         (delete_trivially_dead_insns): Update call accordingly.
8121 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8123         * cse.c (check_for_label_ref): Move earlier in file.  Turn from
8124         being a for_each_rtx callback to being a function that examines
8125         each subrtx itself.
8126         (cse_extended_basic_block): Update call accordingly.
8128 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8130         * cse.c (check_dependence_data): Delete.
8131         (check_dependence): Change from being a for_each_rtx callback to being
8132         a function that examines all subrtxes itself.  Don't handle null rtxes.
8133         (invalidate): Update call accordingly.
8135 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8137         * cse.c: Include rtl-iter.h.
8138         (approx_reg_cost_1): Delete.
8139         (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
8140         Don't handle null rtxes.
8142 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8144         * cfgcleanup.c: Include rtl-iter.h.
8145         (mentions_nonequal_regs): Turn from being a for_each_rtx callback
8146         to being a function that examines each subrtx itself.
8147         (thread_jump): Update accordingly.
8149 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8151         * combine-stack-adj.c: Include rtl-iter.h.
8152         (record_stack_refs_data): Delete.
8153         (record_stack_refs): Turn from being a for_each_rtx callback
8154         to being a function that examines each subrtx itself.
8155         Take a pointer to the reflist.  Invert sense of return value
8156         so that true means success and false means failure.  Don't
8157         handle null rtxes.
8158         (combine_stack_adjustments_for_block): Update accordingly.
8160 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8162         * combine.c (record_truncated_value): Turn from being a for_each_rtx
8163         callback to a function that takes an rtx and returns a bool
8164         (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
8165         for_each_rtx.
8167 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8169         * combine.c: Include rtl-iter.h.
8170         (unmentioned_reg_p_1): Delete.
8171         (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
8172         Don't handle null rtxes.
8174 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8176         * calls.c: Include rtl-iter.h.
8177         (internal_arg_pointer_based_exp_1): Delete.
8178         (internal_arg_pointer_based_exp): Take a const_rtx.
8179         Use FOR_EACH_SUBRTX to iterate over subrtxes.
8181 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8183         * caller-save.c: Include rtl-iter.h.
8184         (add_used_regs_1): Delete.
8185         (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
8186         to iterate over subrtxes.  Assert that any remaining pseudos
8187         have been spilled.
8189 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8191         * bt-load.c: Include rtl-iter.h.
8192         (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
8193         (find_btr_use): Move further up file.  Use FOR_EACH_SUBRTX_PTR
8194         to iterate over subrtxes.
8195         (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
8196         find_btr_use rather than btr_referenced_p.
8198 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8200         * alias.c: Include rtl-iter.h.
8201         (refs_newer_value_cb): Delete.
8202         (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
8204 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8206         * rtl-iter.h: New file.
8207         * rtlanal.c: Include it.
8208         (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
8209         (generic_subrtx_iterator <T>::add_single_to_queue)
8210         (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
8211         (generic_subrtx_iterator <T>::free_array): New functions.
8212         (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
8213         (generic_subrtx_iterator <const_rtx_accessor>)
8214         (generic_subrtx_iterator <rtx_var_accessor>
8215         (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
8216         (setup_reg_subrtx_bounds): New function.
8217         (init_rtlanal): Call it.
8219 2014-08-27  Kaz Kojima  <kkojima@gcc.gnu.org>
8221         PR target/62261
8222         * config/sh/sh.md (ashlsi3): Handle negative shift count for
8223         TARGET_SHMEDIA.
8224         (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
8226 2014-08-27  Richard Sandiford  <rdsandiford@googlemail.com>
8228         * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
8230 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
8232         * rtl.h (JUMP_LABEL_AS_INSN): New.
8234 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
8236         * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
8237         rtx_expr_list **.
8238         (alloc_EXPR_LIST): Strengthen return type from rtx to
8239         rtx_expr_list *.
8240         (remove_free_EXPR_LIST_node): Likewise for param.
8241         * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
8242         from rtx to rtx_expr_list *.
8243         * sched-int.h (struct deps_desc): Strengthen fields
8244         "pending_read_mems" and "pending_write_mems" from rtx to
8245         rtx_expr_list *.
8247         * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
8248         rtx to rtx_expr_list *.
8249         * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
8250         (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
8251         rtx_expr_list **.
8252         (remove_free_EXPR_LIST_node): Likewise.  Strengthen local "node"
8253         from rtx to rtx_expr_list *.
8254         * loop-iv.c (simplify_using_initial_values): Strengthen local
8255         "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
8256         "pnote_next" from rtx * to rtx_expr_list **.
8257         * sched-deps.c (remove_from_both_dependence_lists):  Strengthen
8258         param "exprp" from rtx * to rtx_expr_list **.
8259         (add_insn_mem_dependence): Strengthen local "mem_list" from
8260         rtx * to rtx_expr_list **.  Strengthen local "mem_node" from rtx
8261         to rtx_expr_list *.
8262         * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
8263         and local "new_mems" from rtx to rtx_expr_list *.  Strengthen
8264         param "old_mems_p" from rtx * to rtx_expr_list **.
8265         * var-tracking.c (struct adjust_mem_data): Strengthen field
8266         "side_effects" from rtx to rtx_expr_list *.
8267         (adjust_insn): Replace NULL_RTX with NULL when assigning to
8268         rtx_expr_list *.
8269         (prepare_call_arguments): Likewise.
8271 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
8273         * function.h (struct rtl_data): Strengthen field
8274         "x_stack_slot_list" from rtx to rtx_expr_list *.
8276         * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
8277         when assigning to stack_slot_list.
8279 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
8281         * function.h (struct rtl_data): Strengthen field
8282         x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
8283         * rtl.h (remove_node_from_expr_list): Strengthen second param from
8284         rtx * to rtx_expr_list **.
8286         * cfgbuild.c (make_edges): In loop over
8287         nonlocal_goto_handler_labels, strengthen local "x" from rtx to
8288         rtx_expr_list *, and use methods of the latter class to clarify
8289         the code.
8290         * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
8291         rtx_expr_list *, and use methods of the latter class to clarify
8292         the code.
8293         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
8294         * reload1.c (set_initial_label_offsets): Likewise for local "x".
8295         * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
8296         from rtx * to rtx_expr_list **.  Strengthen local "temp" from rtx
8297         to rtx_expr_list *.  Use methods of the latter class to clarify
8298         the code.
8300 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
8302         * function.h (struct expr_status): Strengthen field
8303         "x_forced_labels" from rtx to rtx_expr_list *.
8305         * cfgbuild.c (make_edges): Split local "x" into two locals,
8306         strengthening one from rtx to rtx_expr_list *, and using methods
8307         of said class.
8308         * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
8309         loop over forced_labels, introduce strengthen it from rtx to
8310         rtx_expr_list *, using methods to clarify the code.
8311         * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
8312         to rtx_expr_list *, using methods of said class to clarify the
8313         code.
8314         * reload1.c (set_initial_label_offsets): Split local "x" into two
8315         per-loop variables, strengthening the first from rtx to
8316         rtx_expr_list * and using methods.
8318 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
8320         * coretypes.h (class rtx_expr_list): Add forward declaration.
8321         * emit-rtl.c (gen_rtx_EXPR_LIST): New.
8322         * gengenrtl.c (special_rtx): Add EXPR_LIST.
8323         * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
8324         invariant: GET_CODE (X) == EXPR_LIST.
8325         (is_a_helper <rtx_expr_list *>::test): New.
8326         (rtx_expr_list::next): New.
8327         (rtx_expr_list::element): New.
8328         (gen_rtx_EXPR_LIST): New.
8330 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
8332         * varasm.c (mark_constants): Convert a GET_CODE check into a
8333         dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
8334         Use methods of rtx_sequence to clarify the code.
8336 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
8338         * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
8339         local "seq" via a checked cast, and use methods of rtx_sequence
8340         to simplify the code.
8342 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
8344         * resource.c (mark_referenced_resources): Strengthen local
8345         "sequence" from rtx to rtx_sequence *, adding a checked cast, and
8346         using methods of rtx_sequence to clarify the code.
8347         (find_dead_or_set_registers): Within the switch statement, convert
8348         a GET_CODE check to a dyn_cast, introducing local "seq".  Within
8349         the JUMP_P handling, introduce another local "seq", adding a
8350         checked cast to rtx_sequence *.  In both cases, use methods of
8351         rtx_sequence to clarify the code.
8352         (mark_set_resources): Within SEQUENCE case, introduce local "seq"
8353         via a checked cast, and use methods of rtx_sequence to simplify
8354         the code.
8356 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
8358         * reorg.c (redundant_insn): In two places in the function, replace
8359         a check of GET_CODE with a dyn_cast, introducing local "seq", and
8360         usings methods of rtx_sequence to clarify the code.
8362 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
8364         * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
8365         local "seq" with a checked cast, and use methods of rtx_sequence
8366         to clarify the code.
8368 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
8370         * function.c (contains): Introduce local "seq" for PATTERN (insn),
8371         with a checked cast, in the region for where we know it's a
8372         SEQUENCE.  Use methods of rtx_sequence.
8374 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
8376         * final.c (get_attr_length_1): Replace GET_CODE check with a
8377         dyn_cast, introducing local "seq" and the use of methods of
8378         rtx_sequence.
8379         (shorten_branches): Likewise, introducing local "body_seq".
8380         Strengthen local "inner_insn" from rtx to rtx_insn *.
8381         (reemit_insn_block_notes): Replace GET_CODE check with a
8382         dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
8383         Use methods of rtx_sequence.
8384         (final_scan_insn): Likewise, introducing local "seq" for when
8385         "body" is known to be a SEQUENCE, using its methods.
8387 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
8389         * except.c (can_throw_external): Strengthen local "seq" from rtx
8390         to rtx_sequence *.  Use methods of rtx_sequence.
8391         (insn_nothrow_p): Likewise.
8393 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
8395         * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
8396         dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
8397         Use methods of rtx_sequence.
8398         (scan_trace): Likewise for local "pat".
8400 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
8402         * coretypes.h (class rtx_sequence): Add forward declaration.
8403         * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
8404         invariant: GET_CODE (X) == SEQUENCE.
8405         (is_a_helper <rtx_sequence *>::test): New.
8406         (is_a_helper <const rtx_sequence *>::test): New.
8407         (rtx_sequence::len): New.
8408         (rtx_sequence::element): New.
8409         (rtx_sequence::insn): New.
8411 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
8413         * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
8414         rtx_insn_list **.
8415         (alloc_INSN_LIST): Strengthen return type from rtx to
8416         rtx_insn_list *.
8417         (copy_INSN_LIST): Likewise for return type and param.
8418         (concat_INSN_LIST): Likewise for both params and return type.
8419         (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
8420         rtx_insn *.  Strengthen second param from rtx * to rtx_insn_list **.
8421         (remove_free_INSN_LIST_node): Strenghten return type from rtx to
8422         rtx_insn *.  Strengthen param from rtx * to rtx_insn_list **.
8424         * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
8425         "implicit_sets", "control_uses", "clobbers" from rtx to
8426         rtx_insn_list *.
8427         (struct deps_desc): Likewise for fields "pending_read_insns",
8428         "pending_write_insns", "pending_jump_insns",
8429         "last_pending_memory_flush", "last_function_call",
8430         "last_function_call_may_noreturn", "sched_before_next_call",
8431         "sched_before_next_jump".
8432         (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
8433         (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
8435         * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
8436         from rtx to rtx_insn_list *.
8437         (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
8438         rtx_insn_list *.
8440         * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
8441         to rtx_insn_list **.
8442         (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
8443         rtx_insn_list *.
8444         (queue_insn): Likewise for local "link".
8445         (struct haifa_saved_data): Strengthen field "insn_queue" from
8446         rtx * to rtx_insn_list **.
8447         (save_backtrack_point): Update allocation of save->insn_queue to
8448         reflect the strengthening of elements from rtx to rtx_insn_list *.
8449         (queue_to_ready): Strengthen local "link" from rtx to
8450         rtx_insn_list *; use methods "next" and "insn" when traversing the
8451         list.
8452         (early_queue_to_ready): Likewise for locals "link", "next_link",
8453         "prev_link".
8454         (schedule_block): Update allocation of insn_queue to reflect the
8455         strengthening of elements from rtx to rtx_insn_list *.  Strengthen
8456         local "link" from rtx to rtx_insn_list *, and use methods when
8457         working it.
8458         (add_to_speculative_block): Strengthen locals "twins" and
8459         "next_node" from rtx to rtx_insn_list *, and use methods when
8460         working with them.  Strengthen local "twin" from rtx to
8461         rtx_insn *, eliminating a checked cast.
8462         (fix_recovery_deps): Strengthen locals "ready_list" and "link"
8463         from rtx to rtx_insn_list *, and use methods when working with
8464         them.
8466         * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
8467         from rtx to rtx_insn_list *, adding a checked cast.
8468         (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
8469         rtx_insn_list **.
8470         (copy_INSN_LIST): Strengthen return type and locals "new_queue",
8471         "newlink" from rtx to rtx_insn_list *.  Strengthen local
8472         "pqueue" from rtx * to rtx_insn_list **.  Strengthen local "x"
8473         from rtx to rtx_insn *.
8474         (concat_INSN_LIST): Strengthen return type and local "new_rtx",
8475         from rtx to rtx_insn_list *.  Use methods of the latter class.
8476         (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
8477         rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
8478         (remove_free_INSN_LIST_node): Strengthen return type and local
8479         "elem" from rtx to rtx_insn *.  Strenghten param "listp" from
8480         rtx * to rtx_insn_list **.  Strengthen local "node" from rtx to
8481         rtx_insn_list *, using "insn" method.
8483         * sched-deps.c (add_dependence_list):  Strengthen param "list"
8484         from rtx to rtx_insn_list *, and use methods when working with it.
8485         (add_dependence_list_and_free):  Strengthen param "listp" from
8486         rtx * to rtx_insn_list **.
8487         (remove_from_dependence_list): Strenghten param "listp" from rtx *
8488         to rtx_insn_list **, and use methods when working with *listp.
8489         (remove_from_both_dependence_lists): Strengthen param "listp" from
8490         rtx * to rtx_insn_list **
8491         (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
8492         to rtx_insn_list **.  Eliminate local "link", in favor of two new
8493         locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
8494         respectively.
8495         (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
8496         by introducing local "cond_deps".
8497         (remove_from_deps): Strengthen param "insn" from rtx to
8498         rtx_insn *.
8500         * sched-rgn.c (concat_insn_mem_list): Strengthen param
8501         "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
8502         Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
8503         Use methods of rtx_insn_list.
8505         * store-motion.c (struct st_expr): Strengthen fields
8506         "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
8507         (st_expr_entry): Replace NULL_RTX with NULL when dealing with
8508         rtx_insn_list *.
8509         (find_moveable_store): Split out "tmp" into multiple more-tightly
8510         scoped locals.  Use methods of rtx_insn_list *.
8511         (compute_store_table): Strengthen local "tmp" from rtx to
8512         rtx_insn *.  Use methods of rtx_insn_list *.
8514 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
8516         * coretypes.h (class rtx_insn_list): Add forward declaration.
8517         * rtl.h (class rtx_insn_list): New subclass of rtx_def
8518         (is_a_helper <rtx_insn_list *>::test): New.
8519         (rtx_insn_list::next): New.
8520         (rtx_insn_list::insn): New.
8521         (gen_rtx_INSN_LIST): Add prototype.
8522         * emit-rtl.c (gen_rtx_INSN_LIST): New.
8523         * gengenrtl.c (special_rtx): Add INSN_LIST.
8525 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
8527         * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
8528         "prev" from rtx to rtx_insn *.
8530 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
8532         * rtl.h (INSN_UID): Convert from a macro to a pair of inline
8533         functions.  Require merely an rtx for now, not an rtx_insn *.
8534         (BLOCK_FOR_INSN): Likewise.
8535         (INSN_LOCATION): Likewise.
8536         (INSN_HAS_LOCATION): Convert from a macro to an inline function.
8538 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
8540         * rtl.h (PATTERN): Convert this macro into a pair of inline
8541         functions, for now, requiring const_rtx and rtx.
8543 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
8545         * target.def (unwind_emit): Strengthen param "insn" from rtx to
8546         rtx_insn *.
8547         (final_postscan_insn): Likewise.
8548         (adjust_cost): Likewise.
8549         (adjust_priority): Likewise.
8550         (variable_issue): Likewise.
8551         (macro_fusion_pair_p): Likewise.
8552         (dfa_post_cycle_insn): Likewise.
8553         (first_cycle_multipass_dfa_lookahead_guard): Likewise.
8554         (first_cycle_multipass_issue): Likewise.
8555         (dfa_new_cycle): Likewise.
8556         (adjust_cost_2): Likewise for params "insn" and "dep_insn".
8557         (speculate_insn): Likewise for param "insn".
8558         (gen_spec_check): Likewise for params "insn" and "label".
8559         (get_insn_spec_ds): Likewise for param "insn".
8560         (get_insn_checked_ds): Likewise.
8561         (dispatch_do): Likewise.
8562         (dispatch): Likewise.
8563         (cannot_copy_insn_p): Likewise.
8564         (invalid_within_doloop): Likewise.
8565         (legitimate_combined_insn): Likewise.
8566         (needed): Likewise.
8567         (after): Likewise.
8569         * doc/tm.texi: Automatically updated to reflect changes to
8570         target.def.
8572         * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
8573         working with insn.
8574         (schedule_block): Likewise.
8575         (sched_init): Likewise.
8576         (sched_speculate_insn): Strengthen param "insn" from rtx to
8577         rtx_insn *.
8578         (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
8579         working with insn.
8580         * hooks.c (hook_bool_rtx_true): Rename to...
8581         hook_bool_rtx_insn_true): ...this, and strengthen first param from
8582         rtx to rtx_insn *.
8583         (hook_constcharptr_const_rtx_null): Rename to...
8584         (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
8585         first param from const_rtx to const rtx_insn *.
8586         (hook_bool_rtx_int_false): Rename to...
8587         (hook_bool_rtx_insn_int_false): ...this, and strengthen first
8588         param from rtx to rtx_insn *.
8589         (hook_void_rtx_int): Rename to...
8590         (hook_void_rtx_insn_int): ...this, and strengthen first param from
8591         rtx to rtx_insn *.
8593         * hooks.h (hook_bool_rtx_true): Rename to...
8594         (hook_bool_rtx_insn_true): ...this, and strengthen first param from
8595         rtx to rtx_insn *.
8596         (hook_bool_rtx_int_false): Rename to...
8597         (hook_bool_rtx_insn_int_false): ...this, and strengthen first
8598         param from rtx to rtx_insn *.
8599         (hook_void_rtx_int): Rename to...
8600         (hook_void_rtx_insn_int): ...this, and strengthen first param from
8601         rtx to rtx_insn *.
8602         (hook_constcharptr_const_rtx_null): Rename to...
8603         (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
8604         first param from const_rtx to const rtx_insn *.
8606         * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
8607         and local "prev" from rtx to rtx_insn *.
8609         * sched-int.h (sched_speculate_insn): Strengthen first param from
8610         rtx to rtx_insn *.
8612         * sel-sched.c (create_speculation_check): Likewise for local "label".
8613         * targhooks.c (default_invalid_within_doloop): Strengthen param
8614         "insn" from const_rtx to const rtx_insn *.
8615         * targhooks.h (default_invalid_within_doloop): Strengthen param
8616         from const_rtx to const rtx_insn *.
8618         * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
8619         (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
8621         * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
8622         "insn".
8623         (arc_invalid_within_doloop): Likewise, with const.
8625         * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
8626         (arm_cannot_copy_insn_p): Likewise for param "insn".
8627         (arm_unwind_emit): Likewise.
8629         * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
8630         "dep_insn".
8632         * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
8633         (c6x_variable_issue): Likewise.  Removed now-redundant checked
8634         cast.
8635         (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
8637         * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
8638         Likewise for param "insn".
8639         (epiphany_mode_after): Likewise.
8640         * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
8641         params "insn", "dep_insn".
8642         (epiphany_mode_needed): Likewise for param "insn".
8643         (epiphany_mode_after): Likewise.
8645         * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
8646         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
8647         (ix86_avx_u128_mode_needed): Likewise.
8648         (ix86_i387_mode_needed): Likewise.
8649         (ix86_mode_needed): Likewise.
8650         (ix86_avx_u128_mode_after): Likewise.
8651         (ix86_mode_after): Likewise.
8652         (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
8653         (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
8654         (ix86_adjust_priority): Likewise for param "insn".
8655         (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
8656         (do_dispatch): Likewise.
8657         (has_dispatch): Likewise.
8658         * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
8660         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
8661         reflect renaming of default hook implementation from
8662         hook_constcharptr_const_rtx_null to
8663         hook_constcharptr_const_rtx_insn_null.
8664         (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
8665         rtx to rtx_insn *.
8666         (ia64_variable_issue): Likewise for param "insn".
8667         (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
8668         (ia64_dfa_new_cycle): Likewise.
8669         (ia64_get_insn_spec_ds): Likewise.
8670         (ia64_get_insn_checked_ds): Likewise.
8671         (ia64_speculate_insn): Likewise.
8672         (ia64_gen_spec_check): Likewise for params "insn", "label".
8673         (ia64_asm_unwind_emit): Likewise for param "insn".
8675         * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
8677         * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
8678         "insn", "def_insn".
8679         (m68k_sched_variable_issue): Likewise for param "insn".
8681         * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
8682         "def_insn".
8684         * config/microblaze/microblaze.c (microblaze_adjust_cost):
8685         Likewise for params "insn", "dep".
8687         * config/mips/mips.c (mips_adjust_cost): Likewise.
8688         (mips_variable_issue): Likewise for param "insn".
8689         (mips_final_postscan_insn): Likewise.
8691         * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
8692         for params "insn", "dep".
8694         * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
8695         "dep_insn".
8696         (pa_adjust_priority): Likewise for param "insn".
8698         * config/picochip/picochip.c (picochip_sched_adjust_cost):
8699         Likewise for params "insn", "dep_insn".
8701         * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
8702         param "insn".
8703         (rs6000_variable_issue): Likewise.
8704         (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
8705         (rs6000_debug_adjust_cost): Likewise.
8706         (rs6000_adjust_priority): Likewise for param "insn".
8707         (rs6000_use_sched_lookahead_guard): Likewise.
8708         (get_next_active_insn): Likewise for return type and both params.
8709         (redefine_groups): Likewise for params "prev_head_insn", "tail"
8710         and locals "insn", "next_insn".
8711         (pad_groups): Likewise.
8713         * config/s390/s390.c (s390_adjust_priority): Likewise for param
8714         "insn".
8715         (s390_cannot_copy_insn_p): Likewise.
8716         (s390_sched_variable_issue): Likewise for third param, eliminating
8717         checked cast.
8718         (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
8719         default hook implementation from hook_constcharptr_const_rtx_null
8720         to hook_constcharptr_const_rtx_insn_null.
8722         * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
8723         from rtx to rtx_insn *.
8724         (sh_adjust_cost): Likewise for params "insn", "dep_insn".
8725         (sh_variable_issue): Likewise for param "insn".
8726         (sh_dfa_new_cycle): Likewise.
8727         (sh_mode_needed): Likewise.
8728         (sh_mode_after): Likewise.
8730         * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
8731         params "insn", "dep_insn".
8732         (hypersparc_adjust_cost): Likewise.
8733         (sparc_adjust_cost): Likewise.
8735         * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
8736         param, eliminated checked cast.
8737         (spu_sched_adjust_cost): Likewise for first and third params.
8739         * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
8740         params "insn" and "dep_insn" from rtx to rtx_insn *.
8742         * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
8744 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
8746         * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
8747         (set_is_load_p): ...this, updating to work on a SET pattern rather
8748         than an insn.
8749         (is_store_insn): Rename to...
8750         (set_is_store_p): ...this, updating to work on a SET pattern
8751         rather than an insn.
8752         (mn10300_adjust_sched_cost): Move call to get_attr_timings from
8753         top of function to where it is needed.  Rewrite the bogus
8754         condition that checks for "insn" and "dep" being PARALLEL to
8755         instead use single_set, introducing locals "insn_set" and
8756         "dep_set".  Given that we only ever returned "cost" for a non-pair
8757         of SETs, bail out early if we don't have a pair of SET.
8758         Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
8759         use the new locals "insn_set" and "dep_set", and update calls to
8760         is_load_insn and is_store_insn to be calls to set_is_load_p and
8761         set_is_store_p.
8763 2014-08-27  Guozhi Wei  <carrot@google.com>
8765         PR target/62262
8766         * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
8767         amount before using it.
8769 2014-08-27  Richard Biener  <rguenther@suse.de>
8771         * gimple-fold.c (get_maxval_strlen): Add overload wrapping
8772         get_maxval_strlen inside a more useful API.
8773         (gimple_fold_builtin_with_strlen): Remove and fold into ...
8774         (gimple_fold_builtin): ... caller.
8775         (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
8776         gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
8777         gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
8778         gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
8779         gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
8780         gimple_fold_builtin_sprintf): Adjust to compute maxval
8781         themselves.
8783 2014-08-27  Yvan Roux  <yvan.roux@linaro.org>
8785         PR other/62248
8786         * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
8788 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8789             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8790             Anna Tikhonova  <anna.tikhonova@intel.com>
8791             Ilya Tocar  <ilya.tocar@intel.com>
8792             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8793             Ilya Verbin  <ilya.verbin@intel.com>
8794             Kirill Yukhin  <kirill.yukhin@intel.com>
8795             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8797         * config/i386/sse.md
8798         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
8799         Use `concat_tg_mode' attribute to determine asm register size.
8801 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8802             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8803             Anna Tikhonova  <anna.tikhonova@intel.com>
8804             Ilya Tocar  <ilya.tocar@intel.com>
8805             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8806             Ilya Verbin  <ilya.verbin@intel.com>
8807             Kirill Yukhin  <kirill.yukhin@intel.com>
8808             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8810         * config/i386/sse.md
8811         (define_mode_iterator VI48_AVX512VL): New.
8812         (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
8813         (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
8814         (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
8815         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
8816         with VI1): Change mode iterator.
8817         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
8818         with VI_ULOADSTORE_BW_AVX512VL): New.
8819         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
8820         with VI_ULOADSTORE_F_AVX512VL): Ditto.
8821         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
8822         with VI1): Change mode iterator.
8823         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
8824         with VI_ULOADSTORE_BW_AVX512VL): New.
8825         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
8826         with VI_ULOADSTORE_F_AVX512VL): Ditto.
8827         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
8828         with VI1): Change mode iterator.
8829         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
8830         with VI_ULOADSTORE_BW_AVX512VL): New.
8831         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
8832         with VI_ULOADSTORE_BW_AVX512VL): Ditto.
8833         (define_insn "avx512f_storedqu<mode>_mask"): Delete.
8834         (define_insn "<avx512>_storedqu<mode>_mask" with
8835         VI48_AVX512VL): New.
8836         (define_insn "<avx512>_storedqu<mode>_mask" with
8837         VI12_AVX512VL): Ditto.
8839 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8840             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8841             Anna Tikhonova  <anna.tikhonova@intel.com>
8842             Ilya Tocar  <ilya.tocar@intel.com>
8843             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8844             Ilya Verbin  <ilya.verbin@intel.com>
8845             Kirill Yukhin  <kirill.yukhin@intel.com>
8846             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8848         * config/i386/sse.md
8849         (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
8850         (define_mode_iterator VI48_AVX512BW): New.
8851         (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
8852         (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
8853         with VI48_AVX2_48_AVX512F): New.
8854         (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
8855         with VI2_AVX512VL): Ditto.
8857 2014-08-27  Richard Biener  <rguenther@suse.de>
8859         PR middle-end/62239
8860         * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
8861         (fold_builtin_3): Do not fold strcat_chk here.
8862         * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
8863         from builtins.c.
8864         (gimple_fold_builtin): Fold strcat_chk here.
8866 2014-08-26  Aldy Hernandez  <aldyh@redhat.com>
8868         * dwarf2out.h (dwarf2out_decl): Remove prototype.
8869         * dwarf2out.c (dwarf2out_decl): Make static.
8871 2014-08-26  Joel Sherrill <joel.sherrill@oarcorp.com>
8873         * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
8875 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
8877         * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
8878         from rtx to rtx_insn *.
8879         (cselib_lookup_from_insn): Likewise for final param.
8880         (cselib_subst_to_values_from_insn): Likewise.
8881         (cselib_add_permanent_equiv): Likewise.
8883         * cselib.c (cselib_current_insn): Likewise for this variable.
8884         (cselib_subst_to_values_from_insn): Likewise for param "insn".
8885         (cselib_lookup_from_insn): Likewise.
8886         (cselib_add_permanent_equiv): Likewise for param "insn" and local
8887         "save_cselib_current_insn".
8888         (cselib_process_insn): Replace use of NULL_RTX with NULL.
8890         * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
8891         from rtx to rtx_insn *.
8893 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
8895         * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
8896         rtx_insn *.
8898 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
8900         * df.h (df_dump_insn_problem_function): Strengthen first param of
8901         this callback from const_rtx to const rtx_insn *.
8902         (struct df_insn_info): Strengthen field "insn" from rtx to
8903         rtx_insn *.
8904         (DF_REF_INSN): Eliminate this function, reinstating the older
8905         macro definition.
8906         (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
8907         (df_reg_defined): Likewise.
8908         (df_find_use): Likewise.
8909         (df_reg_used): Likewise.
8910         (df_dump_insn_top): Strengthen param 1 from const_rtx to
8911         const rtx_insn *.
8912         (df_dump_insn_bottom): Likewise.
8913         (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
8914         (df_insn_debug_regno): Likewise.
8915         (debug_df_insn): Likewise.
8916         (df_rd_simulate_one_insn): Likewise for param 2.
8917         (df_word_lr_simulate_defs): Likewise for param 1.
8918         (df_word_lr_simulate_uses): Likewise.
8919         (df_md_simulate_one_insn): Likewise for param 2.
8920         (df_simulate_find_noclobber_defs): Likewise for param 1.
8921         (df_simulate_find_defs): Likewise.
8922         (df_simulate_defs): Likewise.
8923         (df_simulate_uses): Likewise.
8924         (df_simulate_one_insn_backwards): Likewise for param 2.
8925         (df_simulate_one_insn_forwards): Likewise.
8926         (df_uses_create): Likewise for param 2.
8927         (df_insn_create_insn_record): Likewise for param 1.
8928         (df_insn_delete): Likewise.
8929         (df_insn_rescan): Likewise.
8930         (df_insn_rescan_debug_internal): Likewise.
8931         (df_insn_change_bb): Likewise.
8932         (df_notes_rescan): Likewise.
8933         * rtl.h (remove_death): Likewise for param 2.
8934         (print_rtl_with_bb): Strengthen param 2 from const_rtx to
8935         const rtx_insn *.
8936         * sched-int.h (reemit_notes): Strengthen param from rtx to
8937         rtx_insn *.
8938         * valtrack.h (propagate_for_debug): Likewise for param 1.
8940         * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
8941         local "tmp_rtx" from const_rtx to const rtx_insn *.
8942         * combine.c (remove_death): Strengthen param "insn" from rtx to
8943         rtx_insn *.
8944         (move_deaths): Likewise for local "where_dead".
8945         * cse.c (delete_trivially_dead_insns): Introduce local
8946         "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
8947         * df-core.c (df_find_def): Strengthen param "insn" from rtx to
8948         rtx_insn *.
8949         (df_reg_defined): Likewise.
8950         (df_find_use): Likewise.
8951         (df_reg_used): Likewise.
8952         (df_dump_insn_problem_data): Strengthen param "insn" from
8953         const_rtx to const rtx_insn *.
8954         (df_dump_insn_top): Likewise.
8955         (df_dump_insn_bottom): Likewise.
8956         (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
8957         (df_insn_debug_regno): Likewise.
8958         (debug_df_insn): Likewise.
8959         (DF_REF_INSN): Delete.
8960         * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
8961         from rtx to rtx_insn *.
8962         (df_chain_insn_top_dump): Strengthen param "insn" from
8963         const_rtx to const rtx_insn *.
8964         (df_chain_insn_bottom_dump): Likewise.
8965         (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
8966         rtx_insn *.
8967         (df_word_lr_simulate_uses): Likewise.
8968         (df_print_note): Likewise.
8969         (df_remove_dead_and_unused_notes): Likewise.
8970         (df_set_unused_notes_for_mw): Likewise.
8971         (df_set_dead_notes_for_mw): Likewise.
8972         (df_create_unused_note): Likewise.
8973         (df_simulate_find_defs): Likewise.
8974         (df_simulate_find_uses): Likewise.
8975         (df_simulate_find_noclobber_defs): Likewise.
8976         (df_simulate_defs): Likewise.
8977         (df_simulate_uses): Likewise.
8978         (df_simulate_one_insn_backwards): Likewise.
8979         (df_simulate_one_insn_forwards): Likewise.
8980         (df_md_simulate_one_insn): Likewise.
8981         * df-scan.c (df_uses_create): Likewise.
8982         (df_insn_create_insn_record): Likewise.
8983         (df_insn_delete): Likewise.
8984         (df_insn_rescan): Likewise.
8985         (df_insn_rescan_debug_internal): Likewise.
8986         (df_insn_change_bb): Likewise.
8987         (df_notes_rescan): Likewise.
8988         (df_refs_add_to_chains): Likewise.
8989         (df_insn_refs_verify): Likewise.
8990         * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
8991         when invoking df_insn_delete.
8992         (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
8993         (set_unique_reg_note): Add checked cast.
8994         * final.c (cleanup_subreg_operands): Likewise.
8995         * gcse.c (update_ld_motion_stores): Likewise, strengthening local
8996         "insn" from rtx to rtx_insn *.
8997         * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
8998         "last" from rtx to rtx_insn *.
8999         * ira-emit.c (change_regs_in_insn): New function.
9000         (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
9001         Invoke change_regs_in_insn rather than change_regs.
9002         * ira.c (update_equiv_regs): Strengthen locals "insn",
9003         "init_insn", "new_insn" from rtx to rtx_insn *.  Invoke
9004         for_each_rtx_in_insn rather than for_each_rtx.
9005         * recog.c (confirm_change_group): Add checked casts.
9006         (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
9007         Add checked cast.
9008         (peep2_fill_buffer): Add checked cast.
9009         * rtlanal.c (remove_note): Likewise.
9010         * valtrack.c (propagate_for_debug): Strengthen param "insn" and
9011         locals "next" "end" from rtx to rtx_insn *.
9013 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
9015         * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
9016         to rtx_insn *.
9017         (struct reg_use_data): Likewise for field "insn".
9018         (insn_cost): Likewise for param.
9019         (real_insn_for_shadow): Likewise for return type and param.
9020         (increase_insn_priority): Likewise for param 1.
9021         (debug_dependencies): Likewise for both params.
9023         * haifa-sched.c (insn_delay): Likewise for param "insn".
9024         (real_insn_for_shadow): Likewise for return type and param "insn".
9025         (update_insn_after_change): Likewise for param "insn".
9026         (recompute_todo_spec): Likewise for param "next" and locals "pro",
9027         "other".
9028         (insn_cost): Likewise for param "insn".
9029         (increase_insn_priority): Likewise.
9030         (calculate_reg_deaths): Likewise.
9031         (setup_insn_reg_pressure_info): Likewise.
9032         (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
9033         (model_index): Strengthen param "insn" from rtx to rtx_insn *.
9034         (model_recompute): Likewise.
9035         (must_restore_pattern_p): Likewise for param "next".
9036         (model_excess_cost): Likewise for param "insn".
9037         (queue_remove): Likewise.
9038         (adjust_priority): Likewise for param "prev".
9039         (update_register_pressure): Likewise for param "insn".
9040         (setup_insn_max_reg_pressure): Likewise for local "insn".
9041         (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
9042         (model_add_to_schedule): Likewise.
9043         (model_reset_queue_indices): Likewise for local "insn".
9044         (unschedule_insns_until): Strengthen local "recompute_vec" from
9045         auto_vec<rtx> to auto_vec<rtx_insn *>.  Strengthen locals "last",
9046         "con" from rtx to rtx_insn *.
9047         (restore_last_backtrack_point): Likewise for both locals "x". Add
9048         checked casts.
9049         (estimate_insn_tick): Likewise for param "insn".
9050         (commit_schedule): Likewise for params "prev_head", "tail" and
9051         local "x".
9052         (verify_shadows): Likewise for locals "i1", "i2".
9053         (dump_insn_stream): Likewise for params "head", "tail" and locals
9054         "next_tail", "insn".
9055         (schedule_block): Likewise for locals "insn", "x".  Add a checked
9056         cast.
9057         (fix_inter_tick): Likewise for params "head", "tail".
9058         (create_check_block_twin): Likewise for local "jump".
9059         (haifa_change_pattern): Likewise for param "insn".
9060         (haifa_speculate_insn): Likewise.
9061         (dump_new_block_header): Likewise for params "head", "tail".
9062         (fix_jump_move): Likewise for param "jump".
9063         (move_block_after_check): Likewise.
9064         (sched_init_insn_luid): Likewise for param "insn".
9065         (sched_init_luids): Likewise for local "insn".
9066         (insn_luid): Likewise for param "insn".
9067         (init_h_i_d): Likewise.
9068         (haifa_init_h_i_d): Likewise for local "insn".
9069         (haifa_init_insn): Likewise for param "insn".
9070         * sched-deps.c (add_dependence): Likewise for local "real_pro",
9071         "other".
9072         (create_insn_reg_use): Likewise for param "insn".
9073         (setup_insn_reg_uses): Likewise.  Add a checked cast.
9074         * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
9075         "tail" from rtx to rtx_insn *.
9076         * sched-rgn.c (void debug_dependencies): Likewise, also for locals
9077         "insn", "next_tail".
9079 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
9081         * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
9082         from rtx to rtx_insn *.
9083         (model_add_to_schedule): Likewise for locals "start", "end",
9084         "iter".
9086 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
9088         * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
9089         rtx_insn *.
9090         * cfgrtl.c (duplicate_insn_chain): Likewise for  params "from",
9091         "to" and locals "insn", "next", "copy".  Remove now-redundant
9092         checked cast.
9094 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
9096         * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
9097         rtx_insn * and param 4 from rtx * to rtx_insn **.
9098         (get_condition): Strengthen param 1 from rtx to rtx_insn * and
9099         param 2 from rtx * to rtx_insn **.
9101         * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
9102         rtx_insn * and final param from rtx * to rtx_insn **.
9104         * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
9105         from rtx to rtx_insn *.
9106         (try_head_merge_bb): Likewise for both locals named "move_upto".
9107         * df-problems.c (can_move_insns_across): Likewise for params
9108         "from", "to", "across_from", "across_to" and locals "insn",
9109         "next", "max_to".  Strengthen param "pmove_upto" from rtx * to
9110         rtx_insn **.
9111         * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
9112         from rtx to rtx_insn *.
9113         (noce_get_alt_condition): Strengthen param "earliest" from rtx *
9114         to rtx_insn **.  Strengthen local "insn" from rtx to rtx_insn *.
9115         (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
9116         rtx_insn *.
9117         (noce_try_abs): Likewise.
9118         (noce_get_condition): Likewise for param "jump".  Strengthen param
9119         "earliest" from rtx * to rtx_insn **.
9120         (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
9121         rtx_insn *.
9122         (find_cond_trap): Likewise.
9123         (dead_or_predicable): Likewise for local "earliest".
9124         * loop-iv.c (check_simple_exit): Likewise for local "at".  Add
9125         checked cast.
9126         * rtlanal.c (canonicalize_condition): Likewise for param "insn"
9127         and local "prev".  Strengthen param "earliest" from rtx * to
9128         rtx_insn **.
9129         (get_condition): Strengthen param "jump" from rtx to rtx_insn *
9130         Strengthen param "earliest" from rtx * to rtx_insn **.
9132 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
9134         * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
9135         "to" and local "insn" from rtx to rtx_insn *.
9137 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
9139         * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
9140         from rtx to rtx_insn *.
9141         (need_nop_to_preserve_insn_bb): Likewise for param "insn".
9142         (code_motion_path_driver): Likewise for local "last_insn".
9143         (simplify_changed_insns): Likewise for local "insn".
9145 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
9147         * rtl.h (push_to_sequence): Strengthen param from rtx to
9148         rtx_insn *.
9149         (push_to_sequence2): Likewise for both params.
9150         (delete_insns_since): Likewise for param.
9151         (reorder_insns_nobb): Likewise for all three params.
9152         (set_new_first_and_last_insn): Likewise for both params.
9154         * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
9155         rtx_insn *.  Remove now-redundant cast.
9156         (set_last_insn): Likewise.
9158         * builtins.c (expand_builtin_return): Strengthen local
9159         "call_fusage" from rtx to rtx_insn *.
9160         * cfgrtl.c (create_basic_block_structure): Likewise for local
9161         "after".
9162         * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
9163         "first", "last" and local "insn".
9164         (delete_insns_since): Likewise for param "from".
9165         (reorder_insns_nobb): Likewise for params "from", "to", "after"
9166         and local "x".
9167         (push_to_sequence): Likewise for param "first" and local "last".
9168         (push_to_sequence2): Likewise for params "first" and "last".
9169         * lra.c (emit_add3_insn): Likewise for local "last".
9170         (lra_emit_add): Likewise.
9171         * lra-constraints.c (base_to_reg): Likewise for locals "insn",
9172         "last_insn".
9173         (process_address_1): Likewise for locals "insn", last".
9174         * modulo-sched.c (ps_first_note): Likewise for return type.
9175         * optabs.c (expand_binop_directly): Likewise for param "last".
9177 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
9179         * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
9180         to rtx_insn*.
9181         * emit-rtl.c (get_last_insn_anywhere): Likewise.
9183 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
9185         * function.h (struct sequence_stack): Strengthen fields "first"
9186         and "last" from rtx to rtx_insn *.
9187         (struct emit_status): Likewise for fields "x_first_insn" and
9188         "x_last_insn".
9190         * emit-rtl.h (get_insns): Remove now-redundant checked cast.
9191         (set_first_insn): Add checked cast.
9192         (get_last_insn): Remove now-redundant checked cast.
9193         (set_last_insn): Add checked cast.
9195         * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
9196         "saved_first" and "saved_last" from rtx to rtx_insn *.
9198 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
9200         * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
9201         (unlink_insn_chain): Strengthen both params from rtx to
9202         rtx_insn *.
9204         * cfgrtl.c (cfg_layout_function_header): Likewise for this
9205         variable.
9206         (unlink_insn_chain): Likewise for params "first" and "last".
9207         Remove now-redundant checked cast.
9208         (record_effective_endpoints): Replace use of NULL_RTX with NULL.
9209         (fixup_reorder_chain): Strengthen local "insn" from rtx to
9210         rtx_insn *.
9211         * emit-rtl.c (link_insn_into_chain): Likewise for all three
9212         params.
9213         (add_insn): Likewise for param "insn" and local "prev".
9214         (add_insn_after_nobb): Likewise for both params and local "next".
9215         (add_insn_before_nobb): Likewise for both params and local "prev".
9216         (add_insn_after): Rename param "after" to "uncast_after",
9217         introducing local "after" with another checked cast.
9218         (add_insn_before): Rename params "insn" and "before", giving them
9219         "uncast_" prefixes, adding the old names back using checked casts.
9220         (emit_note_after): Likewise for param "after".
9221         (emit_note_before): Likewise for param "before".
9222         (emit_label): Add a checked cast.
9224 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
9226         * cselib.h (cselib_record_sets_hook):  Strengthen initial param
9227         "insn" from rtx to rtx_insn *.
9229         * cselib.c (cselib_record_sets_hook): Likewise.
9231         * var-tracking.c (add_with_sets): Likewise, renaming back from
9232         "uncast_insn" to "insn" and eliminating the checked cast from rtx
9233         to rtx_insn *.
9235 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
9237         * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
9238         and "header_" from rtx to rtx_insn *.
9239         (struct basic_block_d): Likewise for field "head_" within "x"
9240         field of union basic_block_il_dependent.
9241         (BB_HEAD): Drop function...
9242         (SET_BB_HEAD): ...and this function in favor of...
9243         (BB_HEAD): ...reinstate macro.
9244         (BB_END): Drop function...
9245         (SET_BB_END): ...and this function in favor of...
9246         (BB_END): ...reinstate macro.
9247         (BB_HEADER): Drop function...
9248         (SET_BB_HEADER): ...and this function in favor of...
9249         (BB_HEADER): ...reinstate macro.
9251         * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
9252         (fix_crossing_unconditional_branches): Likewise.
9253         * caller-save.c (save_call_clobbered_regs): Likewise.
9254         (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
9255         * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
9256         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
9257         (merge_blocks_move_successor_nojumps): Likewise.
9258         (outgoing_edges_match): Update use of for_each_rtx to
9259         for_each_rtx_in_insn.
9260         * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
9261         (expand_gimple_cond): Likewise.
9262         (expand_gimple_tailcall): Likewise.
9263         (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
9264         SET_BB_END.
9265         (construct_exit_block): Drop use of SET_BB_END.
9266         * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
9267         rtx_insn *.
9268         (delete_insn): Rename param "insn" to "uncast_insn", introducing
9269         a new local "insn" with a checked cast to rtx_insn *.  Drop use of
9270         SET_BB_HEAD and SET_BB_END.
9271         (create_basic_block_structure): Drop use of SET_BB_HEAD and
9272         SET_BB_END.
9273         (rtl_delete_block): Drop use of SET_BB_HEAD.
9274         (rtl_split_block): Drop use of SET_BB_END.
9275         (emit_nop_for_unique_locus_between): Likewise.
9276         (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
9277         (block_label): Drop use of SET_BB_HEAD.
9278         (fixup_abnormal_edges): Drop use of SET_BB_END.
9279         (record_effective_endpoints): Drop use of SET_BB_HEADER.
9280         (relink_block_chain): Likewise.
9281         (fixup_reorder_chain): Drop use of SET_BB_END.
9282         (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
9283         (cfg_layout_delete_block): Strengthen local "to" from rtx * to
9284         rtx_insn **.  Drop use of SET_BB_HEADER.
9285         (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
9286         SET_BB_HEAD.
9287         (BB_HEAD): Delete this function.
9288         (SET_BB_HEAD): Likewise.
9289         (BB_END): Likewise.
9290         (SET_BB_END): Likewise.
9291         (BB_HEADER): Likewise.
9292         (SET_BB_HEADER): Likewise.
9293         * emit-rtl.c (add_insn_after):  Rename param "insn" to
9294         "uncast_insn", adding a new local "insn" and a checked cast to
9295         rtx_insn *.  Drop use of SET_BB_END.
9296         (remove_insn): Strengthen locals "next" and "prev" from rtx to
9297         rtx_insn *.  Drop use of SET_BB_HEAD and SET_BB_END.
9298         (reorder_insns): Drop use of SET_BB_END.
9299         (emit_insn_after_1): Strengthen param "first" and locals "last",
9300         "after_after" from rtx to rtx_insn *.  Drop use of SET_BB_END.
9301         (emit_pattern_after_noloc): Add checked cast.
9302         * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
9303         (restore_other_notes): Likewise.
9304         (move_insn): Likewise.
9305         (sched_extend_bb): Likewise.
9306         (fix_jump_move): Likewise.
9307         * ifcvt.c (noce_process_if_block): Likewise.
9308         (dead_or_predicable): Likewise.
9309         * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
9310         * reg-stack.c (change_stack): Drop use of SET_BB_END.
9311         * sel-sched-ir.c (sel_move_insn): Likewise.
9312         * sel-sched.c (move_nop_to_previous_block): Likewise.
9314         * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
9315         SET_BB_END.
9316         * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
9318 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
9320         * basic-block.h (create_basic_block_structure): Strengthen params
9321         1 "head" and 2 "end" from rtx to rtx_insn *.
9322         * cfgrtl.c (create_basic_block_structure): Likewise.
9323         (rtl_create_basic_block): Update casts from void * to rtx to
9324         rtx_insn *, so that we can pass them as rtx_insn * to
9325         create_basic_block_structure.
9326         * sel-sched-ir.c (sel_create_basic_block): Likewise.
9328 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
9330         * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
9331         rtx_insn **.
9332         (check_for_inc_dec): Strengthen param "insn" from rtx to
9333         rtx_insn *.
9335         * cselib.h (cselib_process_insn): Likewise.
9337         * cselib.c (cselib_record_sets): Likewise.
9338         (cselib_process_insn): Likewise.
9340         * dse.c (struct insn_info): Likewise for field "insn".
9341         (check_for_inc_dec_1): Likewise for local "insn".
9342         (check_for_inc_dec): Likewise for param "insn".
9343         (scan_insn): Likewise.
9344         (dse_step1): Likewise for local "insn".
9346         * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
9347         rtx_insn **.  Use for_each_rtx_in_insn rather than for_each_rtx.
9349 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
9351         * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
9352         from rtx to rtx_insn *.
9353         (DEP_PRO): Delete this function and...
9354         (SET_DEP_PRO): ...this function in favor of...
9355         (DEP_PRO): ...reinstate this macro.
9356         (DEP_CON): Delete this function and...
9357         (SET_DEP_CON): ...this function in favor of...
9358         (DEP_CON): ...reinstate this old macro.
9359         (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
9360         (init_dep): Likewise.
9361         (set_priorities): Likewise for both params.
9362         (sd_copy_back_deps): Likewise for params 1 and 2.
9364         * haifa-sched.c (priority): Likewise for param "insn" and local
9365         "next".
9366         (set_priorities): Likewise for params "head" and "tail" and local
9367         "insn".
9368         (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
9369         local "consumer".
9370         (add_to_speculative_block): Add a checked cast.
9371         (create_check_block_twin): Drop use of SET_DEP_CON.
9372         (add_jump_dependencies): Strengthen params "insn" and "jump" from
9373         rtx to rtx_insn *.
9375         * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
9376         Drop use of SET_DEP_PRO
9377         (init_dep): Strengthen params "pro" and "con" from rtx to
9378         rtx_insn *.
9379         (sd_copy_back_deps): Likewise for params "to" and "from".  Drop
9380         use of SET_DEP_CON.
9381         (DEP_PRO): Delete.
9382         (DEP_CON): Delete.
9383         (SET_DEP_PRO): Delete.
9384         (SET_DEP_CON): Delete.
9386 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
9388         * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
9389         from rtx to rtx_insn *.
9390         (VINSN_INSN_RTX): Eliminate rvalue function and...
9391         (SET_VINSN_INSN): ...lvalue function in favor of...
9392         (VINSN_INSN_RTX): reinstate this old macro.
9394         * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
9395         in favor of VINSN_INSN_RTX.
9396         (VINSN_INSN_RTX): Delete this function.
9397         (SET_VINSN_INSN_RTX): Likewise.
9399 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
9401         * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
9402         (BND_TO): Delete this function and...
9403         (SET_BND_TO): ...this functions in favor of...
9404         (BND_TO): ...reinstating this macro.
9405         (struct _fence): Strengthen field "executing_insns" from
9406         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.  Strengthen fields
9407         "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
9408         (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
9409         and param "insn" from rtx to insn_t.
9410         (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
9411         rtx_insn *.
9413         * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
9414         vec<rtx_insn *> .
9415         (rtx_vec_t): Likewise.
9416         (struct sched_deps_info_def): Strengthen param of "start_insn"
9417         callback from rtx to rtx_insn *.  Likewise for param "insn2" of
9418         "note_mem_dep" callback and first param of "note_dep" callback.
9420         * haifa-sched.c (add_to_speculative_block): Strengthen param
9421         "insn" from rtx to rtx_insn *.
9422         (clear_priorities): Likewise.
9423         (calc_priorities): Likewise for local "insn".
9425         * sched-deps.c (haifa_start_insn): Likewise for param "insn".
9426         Remove redundant checked cast.
9427         (haifa_note_mem_dep): Likewise for param "pending_insn".
9428         (haifa_note_dep): Likewise for param "elem".
9429         (note_mem_dep): Likewise for param "e".
9430         (sched_analyze_1): Add checked casts.
9431         (sched_analyze_2): Likewise.
9433         * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
9434         from rtx to rtx_insn *.
9435         (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
9436         from vec<rtx> * to vec<rtx_insn *> *.
9438         * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
9439         scaffolding.
9440         (flist_add): Strengthen param "executing_insns" from
9441         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
9442         (advance_deps_context): Remove now-redundant checked cast.
9443         (init_fences): Replace uses of NULL_RTX with NULL.
9444         (merge_fences): Strengthen params "last_scheduled_insn" and
9445         "sched_next" from rtx to rtx_insn * and "executing_insns" from
9446         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
9447         (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
9448         (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
9449         an instruction, rather than doing double-duty as a pattern.
9450         (return_nop_to_pool): Update for change of insn_t.
9451         (deps_init_id): Remove now-redundant checked cast.
9452         (struct sched_scan_info_def): Strengthen param of "init_insn"
9453         callback from rtx to insn_t.
9454         (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
9455         (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
9456         NULL.
9457         (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
9458         "end" from rtx to rtx_insn *.
9459         (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
9460         (rtx insn_rtx, bool force_unique_p)
9461         (BND_TO): Delete function.
9462         (SET_BND_TO): Delete function.
9464         * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
9465         rtx to rtx_insn *.
9466         (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
9467         (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
9468         rtx to rtx_insn *.
9469         (undo_transformations): Likewise for param "insn".
9470         (update_liveness_on_insn): Likewise.
9471         (compute_live_below_insn): Likewise for param "insn" and local
9472         "succ".
9473         (update_data_sets): Likewise for param "insn".
9474         (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
9475         (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
9476         (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
9477         rtx_insn *.
9478         (move_cond_jump): Likewise for param "insn".
9479         (move_cond_jump): Drop use of SET_BND_TO.
9480         (compute_av_set_on_boundaries): Likewise.
9481         (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
9482         (update_and_record_unavailable_insns): Strengthen local "bb_end"
9483         from rtx to rtx_insn *.
9484         (maybe_emit_renaming_copy): Likewise for param "insn".
9485         (maybe_emit_speculative_check): Likewise.
9486         (handle_emitting_transformations): Likewise.
9487         (remove_insn_from_stream): Likewise.
9488         (code_motion_process_successors): Strengthen local "succ" from rtx
9489         to insn_t.
9491 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
9493         * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
9494         ilist_t, not _xlist_t;
9495         (ILIST_INSN): Define in terms of new union field "insn".
9496         (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
9497         _XLIST_NEXT.
9498         (struct _list_node): Add new field "insn" to the union, of type
9499         insn_t.
9500         (ilist_add): Replace macro with an inline function, requiring an
9501         insn_t.
9502         (ilist_remove): Define this macro directly in terms of
9503         _list_remove, rather than indirectly via _xlist_remove.
9504         (ilist_clear): Likewise, in terms of _list_clear rather than
9505         _xlist_clear.
9506         (ilist_is_in_p): Replace macro with an inline function, requiring
9507         an insn_t.
9508         (_list_iter_cond_insn): New function.
9509         (ilist_iter_remove): Define this macro directly in terms of
9510         _list_iter_remove, rather than indirectly via _xlist_iter_remove.
9511         (ilist_iterator): Define directly in terms of _list_iterator
9512         rather than indirectly through _xlist_iterator.
9513         (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
9514         than in terms of _FOR_EACH_X.
9515         (FOR_EACH_INSN_1): Likewise.
9517 2014-08-26  Joseph Myers  <joseph@codesourcery.com>
9519         PR target/60606
9520         PR target/61330
9521         * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
9522         DECL_HARD_REGISTER and return for invalid register specifications.
9523         * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
9524         DECL_HARD_REGISTER, call expand_one_error_var.
9525         * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
9526         CC_REGNUM with non-MODE_CC modes.
9527         (arm_regno_class): Return NO_REGS for PC_REGNUM.
9529 2014-08-26  Marek Polacek  <polacek@redhat.com>
9531         PR c/61271
9532         * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
9534 2014-08-26  Evandro Menezes <e.menezes@samsung.com>
9536         * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
9537         qi cost; add di cost.
9538         (cortexa57_addrcost_table): Likewise.
9540 2014-08-26  Marek Polacek  <polacek@redhat.com>
9542         PR c/61271
9543         * expr.c (is_aligning_offset): Remove logical not.
9545 2014-08-26  Marek Polacek  <polacek@redhat.com>
9547         PR c/61271
9548         * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
9549         LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
9551 2014-08-26  Richard Biener  <rguenther@suse.de>
9553         PR tree-optimization/62175
9554         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
9555         expand possibly trapping operations.
9557 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
9559         * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
9560         "insn" from rtx to rtx_insn *.
9561         (permute_load): Likewise for param "insn".
9562         (permute_store): Likewise.
9563         (handle_special_swappables): Likewise for local "insn".
9564         (replace_swap_with_copy): Likewise for locals "insn" and
9565         "new_insn".
9566         (rs6000_analyze_swaps): Likewise for local "insn".
9568 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9570         * regrename.h (struct du_chain): Strengthen field "insn" from rtx
9571         to rtx_insn *.
9573 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9575         * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
9576         "note_list" from rtx to rtx_insn *.
9577         (BB_NOTE_LIST): Replace this function and...
9578         (SET_BB_NOTE_LIST): ...this function with...
9579         (BB_NOTE_LIST): ...the former macro implementation.
9581         * sched-int.h (concat_note_lists): Strengthen param "from_end" and
9582         local "from_start" from rtx to rtx_insn *.  Strengthen param
9583         "to_endp" from rtx * to rtx_insn **.
9585         * haifa-sched.c (concat_note_lists): Likewise.
9586         * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
9587         BB_NOTE_LIST.
9588         (sel_restore_notes): Likewise.
9589         (move_bb_info): Likewise.
9590         (BB_NOTE_LIST): Delete this function.
9591         (SET_BB_NOTE_LIST): Delete this function.
9592         * sel-sched.c (create_block_for_bookkeeping): Eliminate
9593         SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
9595 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9597         * target.def (reorder): Strengthen param "ready" of this DEFHOOK
9598         from rtx * to rtx_insn **.
9599         (reorder2): Likewise.
9600         (dependencies_evaluation_hook): Strengthen params "head", "tail"
9601         from rtx to rtx_insn *.
9603         * doc/tm.texi: Update mechanically for above change to target.def.
9605         * sched-int.h (note_list): Strengthen this variable from rtx to
9606         rtx_insn *.
9607         (remove_notes): Likewise for both params.
9608         (restore_other_notes): Likewise for return type and first param.
9609         (struct ready_list): Strengthen field "vec" from rtx * to
9610         rtx_insn **.
9611         (struct dep_replacement): Strenghten field "insn" from rtx to
9612         rtx_insn *.
9613         (struct deps_desc): Likewise for fields "last_debug_insn",
9614         "last_args_size".
9615         (struct haifa_sched_info): Likewise for callback field
9616         "can_schedule_ready_p"'s param, for first param of "new_ready"
9617         callback field, for both params of "rank" callback field, for
9618         first field of "print_insn" callback field (with a const), for
9619         both params of "contributes_to_priority" callback, for param
9620         of "insn_finishes_block_p" callback, for fields "prev_head",
9621         "next_tail", "head", "tail", for first param of "add_remove_insn"
9622         callback, for first param of "begin_schedule_ready" callback, for
9623         both params of "begin_move_insn" callback, and for second param
9624         of "advance_target_bb" callback.
9625         (add_dependence): Likewise for params 1 and 2.
9626         (sched_analyze): Likewise for params 2 and 3.
9627         (deps_analyze_insn): Likewise for param 2.
9628         (ready_element): Likewise for return type.
9629         (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
9630         (try_ready): Strenghten param from rtx to rtx_insn *.
9631         (sched_emit_insn): Likewise for return type.
9632         (record_delay_slot_pair): Likewise for params 1 and 2.
9633         (add_delay_dependencies): Likewise for param.
9634         (contributes_to_priority): Likewise for both params.
9635         (find_modifiable_mems): Likewise.
9637         * config/arm/arm.c (cortexa7_sched_reorder):  Strengthen param
9638         "ready" from rtx * to rtx_insn **.  Strengthen locals "insn",
9639         "first_older_only_insn" from rtx to rtx_insn *.
9640         (arm_sched_reorder):  Strengthen param "ready"  from rtx * to
9641         rtx_insn **.
9643         * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
9644         "last_scheduled_iter0" from rtx to rtx_insn *.
9645         (init_sched_state): Replace use of NULL_RTX with NULL for insn.
9646         (c6x_sched_reorder_1): Strengthen param "ready" and locals
9647         "e_ready", "insnp" from rtx * to rtx_insn **.  Strengthen local
9648         "insn" from rtx to rtx_insn *.
9649         (c6x_sched_reorder): Strengthen param "ready" from rtx * to
9650         rtx_insn **.
9651         (c6x_sched_reorder2): Strengthen param "ready" and locals
9652         "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
9653         "insn" from rtx to rtx_insn *.
9654         (c6x_variable_issue):  Add a checked cast when assigning from insn
9655         to ss.last_scheduled_iter0.
9656         (split_delayed_branch): Strengthen param "insn" and local "i1"
9657         from rtx to rtx_insn *.
9658         (split_delayed_nonbranch): Likewise.
9659         (undo_split_delayed_nonbranch): Likewise for local "insn".
9660         (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
9661         "entry_after", "end_packet", "head_insn", "tail_insn",
9662         "new_insns", "last_insn", "this_iter", "prev_stage_insn".
9663         Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
9664         to rtx_insn **.  Remove now-redundant checked cast on last_insn,
9665         but add a checked cast on loop->start_label.  Consolidate calls to
9666         avoid assigning result of gen_spkernel to "insn", now an
9667         rtx_insn *.
9669         * config/i386/i386.c (do_reorder_for_imul): Strengthen param
9670         "ready" from rtx * to rtx_insn **.  Strengthen local "insn" from
9671         rtx to rtx_insn *.
9672         (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
9673         rtx_insn **.  Strengthen locals "top", "next" from rtx to
9674         rtx_insn *.
9675         (ix86_sched_reorder): Strengthen param "ready" from rtx * to
9676         rtx_insn **.  Strengthen local "insn" from rtx to rtx_insn *.
9677         (add_parameter_dependencies): Strengthen params "call", "head" and
9678         locals "insn", "last", "first_arg" from rtx to rtx_insn *.
9679         (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
9680         (add_dependee_for_func_arg): Likewise for param "arg" and local
9681         "insn".
9682         (ix86_dependencies_evaluation_hook): Likewise for params "head",
9683         "tail" and locals "insn", "first_arg".
9685         * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
9686         for params "head", "tail" and locals "insn", "next", "next_tail".
9687         (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
9688         "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
9689         "insn", "lowest", "highest" from rtx to rtx_insn *.
9690         (ia64_sched_reorder): Strengthen param "ready" from rtx * to
9691         rtx_insn **.
9692         (ia64_sched_reorder2): Likewise.
9694         * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
9695         and local "insn" from rtx to rtx_insn *.  Strengthen param "ready"
9696         from rtx * to rtx_insn **.
9697         (mep_move_ready_insn): Strengthen param "ready" from rtx * to
9698         rtx_insn **.
9699         (mep_print_sched_insn): Strengthen param "insn" from rtx to
9700         rtx_insn *.
9701         (mep_sched_reorder): Strengthen param "ready" from rtx * to
9702         rtx_insn **.  Strengthen locals "core_insn", "cop_insn" from rtx
9703         to rtx_insn *.
9705         * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
9706         from rtx * to rtx_insn **.  Strengthen local "new_head" from rtx
9707         to rtx_insn *.
9708         (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
9709         rtx_insn **.  Strengthen local "temp" from rtx to rtx_insn *.
9710         (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
9711         rtx_insn **.
9712         (vr4130_reorder): Likewise.
9713         (mips_74k_agen_reorder): Likewise.  Strengthen local "insn" from
9714         rtx to rtx_insn *.
9715         (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
9716         rtx_insn **.
9717         (mips_sched_reorder): Likewise.
9718         (mips_sched_reorder2): Likewise.
9720         * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
9722         * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
9723         Strengthen local "tmp" from rtx to rtx_insn *.
9724         (rs6000_sched_reorder2): Likewise.
9726         * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
9727         Likewise.  Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
9728         (s390_sched_reorder): Strengthen param "ready" from rtx * to
9729         rtx_insn **.  Strengthen local "tmp" from rtx to rtx_insn *.
9731         * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
9732         "tmp2" from rtx to rtx_insn *.
9733         (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
9734         Strengthen local "insn" from rtx to rtx_insn *.
9735         (ready_reorder): Strengthen param "ready" from rtx * to
9736         rtx_insn **.  Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
9737         (sh_reorder):  Strengthen param "ready" from rtx * to rtx_insn **.
9738         (sh_reorder2): Likewise.
9740         * config/spu/spu.c (spu_sched_reorder): Likewise.  Strengthen
9741         local "insn" from rtx to rtx_insn *.
9743         * haifa-sched.c (note_list): Strengthen this variable from rtx to
9744         rtx_insn *.
9745         (scheduled_insns): Strengthen this variable from vec<rtx> to
9746         vec<rtx_insn *>.
9747         (set_modulo_params): Likewise for locals "i1", "i2".
9748         (record_delay_slot_pair): Likewise for params "i1", "i2".
9749         (add_delay_dependencies): Likewise for param "insn".
9750         (cond_clobbered_p): Likewise.
9751         (recompute_todo_spec): Likewise for local "prev".
9752         (last_scheduled_insn): Likewise for this variable.
9753         (nonscheduled_insns_begin): Likewise.
9754         (model_set_excess_costs): Strengthen param "insns" from rtx * to
9755         rtx_insn **.
9756         (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
9757         rtx_insn *.
9758         (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
9759         Strengthen local "insn" from rtx to rtx_insn *.
9760         (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
9761         (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
9762         (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
9763         (ready_remove_first): Likewise for return type and local "t".
9764         (ready_element): Likewise for return type.
9765         (ready_remove): Likewise for return type and local "t".
9766         (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
9767         (check_clobbered_conditions): Strengthen local "x" from rtx to
9768         rtx_insn *, adding a checked cast.
9769         (schedule_insn): Likewise for param "insn".
9770         (remove_notes): Likewise for params "head", "tail" and locals
9771         "next_tail", "insn", "next".
9772         (struct haifa_saved_data): Likewise for fields
9773         "last_scheduled_insn", "nonscheduled_insns_begin".
9774         (save_backtrack_point): Update for change to field "vec" of
9775         struct ready_list.
9776         (toggle_cancelled_flags): Strengthen local "first" from rtx * to
9777         rtx_insn **.
9778         (restore_last_backtrack_point): Likewise.  Strengthen local "insn"
9779         from rtx to rtx_insn *
9780         (resolve_dependencies): Strengthen param "insn" from rtx to
9781         rtx_insn *
9782         (restore_other_notes): Likewise for return type, for param "head"
9783         and local "note_head".
9784         (undo_all_replacements): Likewise for local "insn".
9785         (first_nonscheduled_insn): Likewise for return type and local "insn".
9786         (queue_to_ready): Likewise for local "insn", adding checked casts.
9787         (early_queue_to_ready): Likewise for local "insn".
9788         (debug_ready_list_1): Strengthen local "p" from rtx * to
9789         rtx_insn **.
9790         (move_insn): Strengthen param "insn" and local "note" from rtx to
9791         rtx_insn *
9792         (insn_finishes_cycle_p): Likewise for param "insn".
9793         (max_issue): Likewise for local "insn".
9794         (choose_ready): Likewise.  Strengthen param "insn_ptr" from rtx *
9795         to rtx_insn **.
9796         (commit_schedule): Strengthen param "prev_head" and local "insn"
9797         from rtx to rtx_insn *
9798         (prune_ready_list): Likewise for local "insn".
9799         (schedule_block): Likewise for locals "prev_head", "head", "tail",
9800         "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
9801         (set_priorities): Likewise for local "prev_head".
9802         (try_ready): Likewise for param "next".
9803         (fix_tick_ready): Likewise.
9804         (change_queue_index): Likewise.
9805         (sched_extend_ready_list): Update for change to field "vec" of
9806         struct ready_list.
9807         (generate_recovery_code): Strengthen param "insn" from rtx to
9808         rtx_insn *.
9809         (begin_speculative_block): Likewise.
9810         (create_check_block_twin): Likewise for param "insn" and locals
9811         "label", "check", "twin".  Introduce local "check_pat" to avoid
9812         "check" being used as a plain rtx before being used as an insn.
9813         (fix_recovery_deps): Add a checked cast to rtx_insn * when
9814         extracting elements from ready_list.
9815         (sched_remove_insn): Strengthen param "insn" from rtx to
9816         rtx_insn *.
9817         (sched_emit_insn): Likewise for return type.
9818         (ready_remove_first_dispatch): Likewise for return type and local
9819         "insn".
9821         * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
9823         * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
9824         const rtx_insn *.
9826         * sched-deps.c (add_dependence): Strengthen params "con", "pro"
9827         from rtx to rtx_insn *.
9828         (add_dependence_list): Likewise for param "insn".  Add a checked
9829         cast.
9830         (add_dependence_list_and_free): Strengthen param "insn" from rtx
9831         to rtx_insn *.  Strengthen param "list_p" from rtx * to
9832         rtx_insn **.
9833         (chain_to_prev_insn): Strengthen param "insn" and locals
9834         "prec_nonnote", "i" from rtx to rtx_insn *.
9835         (flush_pending_lists): Likewise for param "insn".
9836         (cur_insn): Likewise for this variable.
9837         (haifa_start_insn): Add a checked cast.
9838         (note_dep): Strengthen param "e" from rtx to rtx_insn *.
9839         (sched_analyze_reg): Likewise for param "insn".
9840         (sched_analyze_1): Likewise.
9841         (sched_analyze_2): Likewise.  Add checked casts.
9842         (sched_analyze_insn): Likewise.  Also for local "prev".
9843         (deps_analyze_insn): Likewise for param "insn".
9844         (sched_analyze): Likewise for params "head", "tail" and local "insn".
9845         (add_dependence_1): Likewise for params "insn", "elem".
9846         (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
9847         (parse_add_or_inc): Likewise for param "insn".
9848         (find_inc): Likewise for local "inc_cand".
9849         (find_modifiable_mems): Likewise for params "head", "tail" and
9850         locals "insn", "next_tail".
9852         * sched-ebb.c (init_ready_list): Likewise for local "insn".
9853         (begin_schedule_ready): Likewise for param "insn".
9854         (begin_move_insn): Likewise for params "insn" and "last".
9855         (ebb_print_insn): Strengthen param "insn" from const_rtx to
9856         const rtx_insn *.
9857         (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
9858         (ebb_contributes_to_priority): Likewise for params "next", "insn".
9859         (ebb_add_remove_insn): Likewise for param "insn".
9860         (advance_target_bb): Likewise.
9862         * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
9863         "insn".
9864         (check_live): Likewise for param "insn".
9865         (init_ready_list): Likewise for local "insn".
9866         (can_schedule_ready_p): Likewise for param "insn".
9867         (begin_schedule_ready): Likewise.
9868         (new_ready): Likewise for param "next".
9869         (rgn_print_insn): Likewise for param "insn".
9870         (rgn_rank): Likewise for params "insn1", "insn2".
9871         (contributes_to_priority): Likewise for params "next", "insn".
9872         (rgn_insn_finishes_block_p): Likewise for param "insn".
9873         (add_branch_dependences): Likewise for params "head", "tail" and
9874         locals "insn", "last".
9875         (rgn_add_remove_insn): Likewise for param "insn".
9876         (advance_target_bb): Likewise.
9878         * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
9879         const_rtx to const rtx_insn *.
9881         * sel-sched-dump.h (sel_print_insn): Likewise.
9883         * sel-sched-ir.c (advance_deps_context): Add a checked cast.
9884         (deps_init_id): Likewise.
9886         * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
9887         (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
9888         rtx_insn **.
9890 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9892         * output.h (final_start_function): Strengthen param 1 from rtx to
9893         rtx_insn *.
9895         * final.c (final_start_function): Likewise, renaming back from
9896         "uncast_first" to "first", and dropping the checked cast from rtx
9897         to rtx_insn *.
9899 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9901         * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
9902         * final.c (final): Likewise.  Rename param back from
9903         "uncast_first" to "first" and eliminate the checked cast from rtx
9904         to rtx_insn *.
9906 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9908         * output.h (shorten_branches): Strengthen param from rtx to
9909         rtx_insn *.
9911         * final.c (shorten_branches): Likewise, renaming param back from
9912         "uncast_first" to "first", and dropping the checked cast from rtx
9913         to rtx_insn *.
9915         * genattr.c (gen_attr): Likewise when writing out the prototype of
9916         shorten_branches.
9918 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9920         * sched-int.h (struct haifa_sched_info): Strengthen fields
9921         "prev_head" and "next_tail" from rtx to rtx_insn *.
9923 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9925         * rtl.h (rtx_jump_table_data::get_labels): New method.
9926         * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
9927         with use of the new rtx_jump_table_data::get_labels method.
9928         (purge_dead_tablejump_edges): Strengthen param "table" from rtx
9929         to rtx_jump_table_data *.  Simplify by using get_labels method.
9930         * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
9931         a dyn_cast, introducing local "table", using it to replace
9932         label-lookup logic with a get_labels method call.
9933         (patch_jump_insn): Simplify using get_labels method.
9934         * dwarf2cfi.c (create_trace_edges): Likewise.
9935         * rtlanal.c (label_is_jump_target_p): Likewise.
9937 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9939         * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
9940         to rtx_insn *.
9942         * emit-rtl.c (unshare_all_rtl_1): Likewise.
9943         (unshare_all_rtl_again): Likewise, also for local "p".
9945 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9947         * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
9948         to rtx_insn *.
9949         * cfgrtl.c (delete_insn_and_edges): Likewise.
9951 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9953         * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
9954         from rtx to rtx_insn *.
9956         * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
9958 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9960         * function.c (thread_prologue_and_epilogue_insns): Likewise for
9961         locals "returnjump", "epilogue_end", "insn", "next".
9963         * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
9964         "returnjump" from rtx * to rtx_insn **.
9965         * shrink-wrap.c (get_unconverted_simple_return): Likewise.
9967 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9969         * basic-block.h (struct edge_def). Strengthen "r" within
9970         union edge_def_insns from rtx to rtx_insn *.
9972         * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
9973         from rtx to rtx_insn *.  Strengthen local "insns" from rtx to
9974         rtx_insn *.
9975         * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
9976         from rtx to rtx_insn *.
9977         * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
9978         rtx_insn *.
9979         * postreload-gcse.c (reg_killed_on_edge): Likewise.
9980         (reg_used_on_edge): Likewise.
9981         * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
9982         (gt_pch_nx): New overload for rtx_insn *&.
9983         * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
9984         from rtx to rtx_insn *.
9986 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9988         * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
9989         from rtx to rtx_insn *.
9990         (BB_FOOTER): Replace function with access macro.
9991         (SET_BB_FOOTER): Delete.
9993         * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
9994         with BB_FOOTER.
9995         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
9996         (emit_barrier_after_bb): Likewise.
9997         (record_effective_endpoints): Likewise.
9998         (relink_block_chain): Likewise.
9999         (fixup_fallthru_exit_predecessor): Likewise.
10000         (cfg_layout_duplicate_bb): Likewise.
10001         (cfg_layout_split_block): Likewise.
10002         (cfg_layout_delete_block): Likewise.
10003         (cfg_layout_merge_blocks): Likewise.
10004         (BB_FOOTER): Delete function.
10005         (SET_BB_FOOTER): Delete function.
10006         * combine.c (update_cfg_for_uncondjump): Replace uses of
10007         SET_BB_FOOTER with BB_FOOTER.
10009 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10011         * except.h (struct eh_landing_pad_d): Strengthen field
10012         "landing_pad" from rtx to rtx_code_label *.
10014         * except.c (sjlj_emit_dispatch_table): Likewise for param
10015         "dispatch_label"
10016         (sjlj_build_landing_pads): Likewise for local "dispatch_label".
10018 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10020         * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
10021         first param from rtx to rtx_insn *.
10022         * config/xtensa/xtensa.c (struct machine_function): Likewise for
10023         field "set_frame_ptr_insn".
10024         (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
10025         "csend" from rtx to rtx_code_label *.
10026         (xtensa_expand_atomic): Likewise for local "csloop".
10027         (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
10028         rtx_insn *.
10029         (xtensa_call_tls_desc): Likewise for return type and locals
10030         "call_insn", "insns".
10031         (xtensa_legitimize_tls_address): Likewise for local "insns".
10032         (xtensa_expand_prologue): Likewise for locals "insn", "first".
10034 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10036         * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
10037         first param from rtx to rtx_insn *.
10038         * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
10039         "insn".
10041 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10043         * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
10044         Strengthen param 1 from rtx to rtx_insn *.
10045         (tilepro_output_cbranch): Likewise.
10046         (tilepro_adjust_insn_length): Likewise.
10047         (tilepro_final_prescan_insn): Likewise for sole param.
10049         * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
10050         Likewise for local "last".
10051         (cbranch_predicted_p): Likewise for param "insn".
10052         (tilepro_output_simple_cbranch_with_opcode): Likewise.
10053         (tilepro_output_cbranch_with_opcode): Likewise.
10054         (tilepro_output_cbranch): Likewise.
10055         (frame_emit_load): Likewise for return type and locals "seq",
10056         "insn".
10057         (emit_sp_adjust): Likewise for return type and local "insn".
10058         (tilepro_expand_epilogue): Likewise for locals "last_insn",
10059         "insn".
10060         (tilepro_adjust_insn_length): Likewise for param "insn".
10061         (next_insn_to_bundle): Likewise for return type and params
10062         "r", "end".
10063         (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
10064         (replace_pc_relative_symbol_ref): Likewise for param "insn" and
10065         local "new_insns".
10066         (match_addli_pcrel): Likewise for param "insn".
10067         (replace_addli_pcrel): Likewise.
10068         (match_auli_pcrel): Likewise.
10069         (replace_auli_pcrel): Likewise.
10070         (tilepro_fixup_pcrel_references): Likewise for locals "insn",
10071         "next_insn".
10072         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
10073         "queue", "next_queue", "prev".
10074         (tilepro_asm_output_mi_thunk): Likewise for local "insn".
10075         (tilepro_final_prescan_insn): Likewise for param "insn".
10077 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10079         * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
10080         Strengthen param 1 from rtx to rtx_insn *.
10081         (tilegx_output_cbranch): Likewise.
10082         (tilegx_adjust_insn_length): Likewise.
10083         (tilegx_final_prescan_insn): Likewise for sole param.
10085         * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
10086         or local "last".
10087         (cbranch_predicted_p): Likewise for param "insn".
10088         (tilegx_output_simple_cbranch_with_opcode): Likewise.
10089         (tilegx_output_cbranch_with_opcode): Likewise.
10090         (tilegx_output_cbranch): Likewise.
10091         (frame_emit_load): Likewise for return type.
10092         (set_frame_related_p): Likewise for locals "seq", "insn".
10093         (emit_sp_adjust): Likewise for return type, and for local "insn".
10094         Introduce local "pat" for use in place of "insn" where the latter
10095         isn't an instruction.
10096         (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
10097         from rtx to rtx_insn *.
10098         (tilegx_adjust_insn_length): Likewise for param "insn".
10099         (next_insn_to_bundle): Likewise for return type and params "r" and
10100         "end".
10101         (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
10102         "end".
10103         (replace_insns): Likewise for params "old_insn", "new_insns".
10104         (replace_mov_pcrel_step1): Likewise for param "insn" and local
10105         "new_insns".
10106         (replace_mov_pcrel_step2): Likewise.
10107         (replace_mov_pcrel_step3): Likewise.
10108         (tilegx_fixup_pcrel_references): Likewise for locals "insn",
10109         "next_insn".
10110         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
10111         "queue", "next_queue", "prev".
10112         (tilegx_output_mi_thunk): Likewise for local "insn".
10113         (tilegx_final_prescan_insn): Likewise for param "insn".
10115 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10117         * config/spu/spu.c (frame_emit_store): Strengthen return type from
10118         rtx to rtx_insn *.
10119         (frame_emit_load): Likewise.
10120         (frame_emit_add_imm): Likewise, also for local "insn".
10121         (spu_expand_prologue): Likewise for local "insn".
10122         (struct spu_bb_info): Likewise for field "prop_jump".
10123         (emit_nop_for_insn): Likewise for param "insn" and local
10124         "new_insn".
10125         (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
10126         "hbr_insn".
10127         (spu_emit_branch_hint): Likewise for params "before", "branch" and
10128         locals "hint", "insn".
10129         (get_branch_target): Likewise for param "branch".
10130         (insn_clobbers_hbr): Likewise for param "insn".
10131         (insert_hbrp_for_ilb_runout): Likewise for param "first" and
10132         locals "insn", "before_4", "before_16".
10133         (insert_hbrp): Likewise for local "insn".
10134         (spu_machine_dependent_reorg): Likewise for locals "branch",
10135         "insn", "next", "bbend".
10136         (uses_ls_unit): Likewise for param "insn".
10137         (get_pipe): Likewise.
10138         (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
10139         introducing a checked cast.
10140         (spu_sched_adjust_cost): Likewise for params "insn" and
10141         "dep_insn".
10142         (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
10143         (spu_sms_res_mii): Likewise.
10145 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10147         * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
10148         from rtx to rtx_insn *.
10149         (output_cbranch): Likewise for param 6.
10150         (output_return): Likewise for param 1.
10151         (output_sibcall): Likewise.
10152         (output_v8plus_shift): Likewise.
10153         (output_v8plus_mult): Likewise.
10154         (output_v9branch): Likewise for param 7.
10155         (output_cbcond):  Likewise for param 3.
10157         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
10158         for local "insn".
10159         (sparc_legitimize_pic_address): Likewise.
10160         (sparc_emit_call_insn): Likewise.
10161         (emit_save_or_restore_regs): Likewise.
10162         (emit_window_save): Likewise for return type and local "insn".
10163         (sparc_expand_prologue): Likewise for local "insn".
10164         (sparc_flat_expand_prologue): Likewise.
10165         (output_return): Likewise for param "insn".
10166         (output_sibcall): Likewise for param "insn" and local "delay".
10167         (output_ubranch): Likewise for param "insn".
10168         (output_cbranch): Likewise.
10169         (output_cbcond): Likewise.
10170         (output_v9branch): Likewise.
10171         (output_v8plus_shift): Likewise.
10172         (sparc_output_mi_thunk): Likewise for local "insn".
10173         (get_some_local_dynamic_name): Likewise.
10174         (output_v8plus_mult): Likewise for param "insn".
10176 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10178         * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
10179         from rtx to rtx_insn *.
10180         (output_branchy_insn): Likewise for param 3.
10181         (output_far_jump): Likewise for param 1.
10182         (final_prescan_insn): Likewise.
10183         (sh_insn_length_adjustment): Likewise for sole param.
10185         * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
10186         (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
10187         rtx_code_label *.
10188         (sh_emit_compare_and_set): Likewise for local "lab".
10189         (output_far_jump): Strengthen param "insn" and local "prev" from
10190         rtx to rtx_insn *.
10191         (output_branchy_insn): Likewise for param "insn" and local
10192         "next_insn".
10193         (output_ieee_ccmpeq): Likewise for param "insn".
10194         (struct label_ref_list_d): Strengthen field "label" from rtx to
10195         rtx_code_label *.
10196         (pool_node): Likewise.
10197         (pool_window_label): Likewise for this global.
10198         (add_constant): Likewise for return type and locals "lab", "new_rtx".
10199         (dump_table): Strengthen params "start", "barrier" and local
10200         "scan" from rtx to rtx_insn *.
10201         (broken_move): Likewise for param "insn".
10202         (untangle_mova): Likewise for params "first_mova" and "new_mova".
10203         Strengthen param "first_mova" from rtx * to rtx_insn **.
10204         (mova_p): Likewise for param "insn".
10205         (fixup_mova): Likewise for param "mova".
10206         (find_barrier): Likewise for return type, params "mova" and
10207         "from", and locals "barrier_before_mova", "found_barrier",
10208         "good_barrier", "orig", "last_symoff", "next".  Strengthen local
10209         "label" from rtx to rtx_code_label *.
10210         (sh_loop_align): Strengthen locals "first", "insn", "mova" from
10211         rtx to rtx_insn *.
10212         (sh_reorg): Likewise for locals "link", "scan", "barrier".
10213         (split_branches): Likewise for param "first" and local "insn".
10214         (final_prescan_insn): Likewise for param "insn".
10215         (sequence_insn_p): Likewise for locals "prev", "next".
10216         (sh_insn_length_adjustment): Likewise for param "insn".
10217         (sh_can_redirect_branch): Likewise for local "insn".
10218         (find_r0_life_regions): Likewise for locals "end", "insn".
10219         (sh_output_mi_thunk): Likewise for local "insns".
10221 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10223         * config/score/score.c (score_output_mi_thunk): Strengthen local
10224         "insn" from rtx to rtx_insn *.
10225         (score_prologue): Likewise.
10227 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10229         * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
10230         1 from rtx to rtx_insn *.
10231         (s390_emit_jump): Likewise for return type.
10232         (s390_emit_call): Likewise.
10233         (s390_load_got): Likewise.
10235         * config/s390/s390.c (last_scheduled_insn): Likewise for this
10236         variable.
10237         (s390_match_ccmode): Likewise for param "insn".
10238         (s390_emit_jump): Likewise for return type.
10239         (s390_split_branches): Likewise for local "label".
10240         (struct constant): Strengthen field "label" from rtx to
10241         rtx_code_label *.
10242         (struct constant_pool): Likewise for field "label".  Strengthen
10243         fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
10244         rtx_insn *.
10245         (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
10246         insns.
10247         (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
10248         (s390_end_pool): Likewise.
10249         (s390_dump_pool): Likewise for local "insn".
10250         (s390_mainpool_start): Likewise.
10251         (s390_chunkify_start): Likewise.
10252         (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
10253         with insns.  Strengthen locals "label", "jump", "barrier", "next",
10254         "prev", "vec_insn", "insn" from rtx to rtx_insn *.
10255         (s390_chunkify_finish): Strengthen local "insn" from rtx to
10256         rtx_insn *.
10257         (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
10258         "jump", "label", "next_insn".
10259         (s390_regs_ever_clobbered): Likewise for local "cur_insn".
10260         (s390_optimize_nonescaping_tx): Likewise for locals "insn",
10261         "tbegin_insn".
10262         (s390_load_got): Likewise for return type and local "insns".
10263         (s390_save_gprs_to_fprs): Likewise for local "insn".
10264         (s390_restore_gprs_from_fprs): Likewise.
10265         (pass_s390_early_mach::execute): Likewise.
10266         (s390_emit_prologue): Likewise for local "insns".
10267         (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
10268         rtx_code_label *.
10269         (s390_emit_call): Strengthen return type and local "insn" from
10270         rtx to rtx_insn *.
10271         (s390_emit_tpf_eh_return): Likewise for local "insn".
10272         (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
10273         "next_insn", introducing locals "s_pat", "rpat" to allow this.
10274         (s390_fix_long_loop_prediction): Likewise for param "insn" and
10275         local "cur_insn".
10276         (s390_non_addr_reg_read_p): Likewise for param "insn".
10277         (find_cond_jump): Likewise for return type and param "insn".
10278         (s390_swap_cmp): Likewise for param "insn".
10279         (s390_z10_optimize_cmp): Likewise for param "insn" and locals
10280         "prev_insn", "next_insn".
10281         (s390_reorg): Likewise for locals "insn", "target".
10282         (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
10283         (s390_sched_variable_issue): For now, rename param "insn" to
10284         "uncast_insn", introducing a checked cast.
10285         (s390_sched_init): Replace NULL_RTX with NULL when dealing with
10286         insn.
10287         (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
10288         rtx_insn *.  Use for_each_rtx_in_insn rather than for_each_rtx.
10290 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10292         * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
10293         param from rtx to rtx_insn *.
10294         * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
10296 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10298         * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
10299         4 from rtx to rtx_insn *.
10300         (rs6000_final_prescan_insn): Likewise for first param.
10301         * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
10302         local "insn".
10303         (rs6000_get_some_local_dynamic_name): Likewise.
10304         (output_cbranch): Likewise for param "insn".
10305         (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
10306         (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
10307         (rs6000_emit_allocate_stack): Likewise for local "insn".
10308         (load_cr_save): Likewise.
10309         (restore_saved_cr): Likewise.
10310         (restore_saved_lr): Likewise.
10311         (emit_cfa_restores): Likewise.
10312         (rs6000_output_function_epilogue): Likewise for locals "insn" and
10313         "deleted_debug_label".
10314         (rs6000_output_mi_thunk): Likewise for local "insn".
10315         (rs6000_final_prescan_insn): Likewise for param "insn".
10317 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10319         * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
10320         Strengthen param "insn" from rtx to rtx_insn *.
10321         * config/picochip/picochip.c (picochip_current_prescan_insn):
10322         Likewise for this variable.
10323         (picochip_final_prescan_insn): Likewise for param "insn".
10325 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10327         * config/pa/pa-protos.h (pa_output_call): Strengthen first param
10328         from rtx to rtx_insn *.
10329         (pa_output_indirect_call): Likewise.
10330         (pa_adjust_insn_length): Likewise.
10331         (pa_attr_length_millicode_call): Likewise.
10332         (pa_attr_length_call): Likewise.
10333         (pa_attr_length_indirect_call): Likewise.
10335         * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
10336         "insn".
10337         (pa_attr_length_millicode_call): Likewise.
10338         (pa_attr_length_call): Likewise.
10339         (pa_output_call): Likewise.
10340         (pa_attr_length_indirect_call): Likewise.
10341         (pa_output_indirect_call): Likewise.
10343 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10345         * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
10346         Strengthen first param from rtx to rtx_insn *.
10347         * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
10348         param "insn".
10350 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10352         * config/mips/mips-protos.h (mips_emit_move): Strengthen return
10353         type from rtx to rtx_insn *.
10354         (mips_expand_call): Likewise.
10355         (mips_adjust_insn_length): Likewise for first param.
10356         (mips_output_conditional_branch): Likewise.
10357         (mips_output_order_conditional_branch): Likewise.
10358         (mips_final_prescan_insn): Likewise.
10360         * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
10361         rtx_insn * for the SEQUENCE case.
10362         (SEQ_END): Likewise.
10363         (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
10364         (mips_emit_call_insn): Likewise, also for local "insn".
10365         (mips16_gp_pseudo_reg): Likewise for local "scan".
10366         (mips16_build_call_stub): Likewise for return type and for local
10367         "insn".  Introduce a new local "pattern" so that "insn" can indeed
10368         be an insn.
10369         (mips_expand_call): Strengthen return type and local "insn" from
10370         rtx to rtx_insn *.
10371         (mips_block_move_loop): Strengthen local "label" from rtx to
10372         rtx_code_label *.
10373         (mips_expand_synci_loop): Likewise for locals "label",
10374         "end_label".
10375         (mips_set_frame_expr): Strengthen local "insn" from rtx to
10376         rtx_insn *.
10377         (mips16e_collect_argument_saves): Likewise for locals "insn",
10378         "next".
10379         (mips_find_gp_ref): Likewise for param of callback for "pred"
10380         param, and for local "insn".
10381         (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
10382         (mips_insn_has_flexible_gp_ref_p): Likewise.
10383         (mips_epilogue_emit_cfa_restores): Likewise for return type and
10384         local "insn".
10385         (mips_epilogue_set_cfa): Likewise for local "insn".
10386         (mips_expand_epilogue): Likewise.
10387         (mips_adjust_insn_length): Likewise for param "insn".
10388         (mips_output_conditional_branch): Likewise.
10389         (mips_output_order_conditional_branch): Likewise.
10390         (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
10391         "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
10392         "falu2_turn_enabled_insn".
10393         (mips_builtin_branch_and_move): Strengthen locals "true_label",
10394         "done_label" from rtx to rtx_code_label *.
10395         (struct mips16_constant): Likewise for field "label".
10396         (mips16_add_constant): Likewise for return type.
10397         (mips16_emit_constants_1): Strengthen return type and param "insn"
10398         from rtx to rtx_insn *.
10399         (mips16_emit_constants): Likewise for param "insn".
10400         (mips16_insn_length): Likewise.
10401         (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
10402         to rtx_code_label *.
10403         (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
10404         from rtx to rtx_insn *.
10405         (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
10406         "jump".  Strengthen local "label" from rtx to rtx_code_label *.
10407         (r10k_simplify_address): Strengthen param "insn" and local
10408         "def_insn" from rtx to rtx_insn *.
10409         (r10k_safe_address_p): Strengthen param "insn" from rtx to
10410         rtx_insn *.
10411         (r10k_needs_protection_p_1): Update target type of cast of data
10412         from to rtx to rtx_insn *.
10413         (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
10414         rtx * to rtx_insn **.
10415         (r10k_needs_protection_p): Strengthen param "insn" from rtx to
10416         rtx_insn *.
10417         (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
10418         (mips_call_expr_from_insn): Likewise for param "insn".
10419         (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
10420         (mips_find_pic_call_symbol): Likewise for param "insn".
10421         (mips_annotate_pic_calls): Likewise for local "insn".
10422         (mips_sim_insn): Likewise for this variable.
10423         (struct mips_sim): Likewise for field "insn" within elements of
10424         last_set array.
10425         (mips_sim_wait_reg): Likewise for param "insn".
10426         (mips_sim_wait_regs): Likewise.
10427         (mips_sim_wait_units): Likewise.
10428         (mips_sim_wait_insn): Likewise.
10429         (mips_sim_issue_insn): Likewise.
10430         (mips_sim_finish_insn): Likewise.
10431         (mips_seq_time): Likewise for param "seq" and local "insn".
10432         (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
10433         locals "first", "second".
10434         (vr4130_align_insns): Likewise for locals "insn", "subinsn",
10435         "last", "last2", "next".
10436         (mips_avoid_hazard): Likewise for params "after", "insn".
10437         (mips_reorg_process_insns): Likewise for locals "insn",
10438         "last_insn", "subinsn", "next_insn".
10439         (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
10440         (mips16_split_long_branches): Likewise for locals "insn" "jump",
10441         "jump_sequence".
10442         (mips_output_mi_thunk): Likewise for local "insn".
10443         (mips_final_prescan_insn): Likewise for param "insn".
10445 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10447         * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
10448         Strengthen return type and local "insns" from rtx to rtx_insn *.
10449         (microblaze_legitimize_tls_address): Likewise for local "insns".
10450         (microblaze_block_move_loop): Strengthen local "label" from rtx
10451         to rtx_code_label *.
10452         (microblaze_expand_prologue): Strengthen two locals named "insn"
10453         from rtx to rtx_insn *.
10454         (microblaze_asm_output_mi_thunk): Likewise for local "insn".
10455         (microblaze_expand_divide): Likewise for locals "jump", "cjump",
10456         "insn".  Strengthen locals "div_label", "div_end_label" from rtx
10457         to rtx_code_label *.
10459 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10461         * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
10462         param from rtx to rtx_insn *.
10463         (mep_reuse_lo): Likewise for third param.
10464         (mep_use_post_modify_p): Likewise for first param.
10465         (mep_core_address_length): Likewise.
10466         (mep_cop_address_length): Likewise.
10467         (mep_final_prescan_insn): Likewise.
10468         (mep_store_data_bypass_p): Likewise for both params.
10469         (mep_mul_hilo_bypass_p): Likewise.
10470         (mep_ipipe_ldc_p): Likewise for param.
10472         * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
10473         (mep_rewrite_mult): Likewise.
10474         (mep_rewrite_mulsi3): Likewise.
10475         (mep_rewrite_maddsi3): Likewise.
10476         (mep_reuse_lo_p_1): Likewise.
10477         (mep_reuse_lo_p): Likewise.
10478         (mep_frame_expr): Likewise.
10479         (mep_make_parallel): Likewise for both params.
10480         (mep_use_post_modify_p_1): Likewise for param "set_insn" and
10481         local "insn".
10482         (mep_use_post_modify_p): Likewise for param "insn".
10483         (mep_core_address_length): Likewise.
10484         (mep_cop_address_length): Likewise.
10485         (mep_reg_set_in_function): Likewise for local "insn".
10486         (mep_asm_without_operands_p): Likewise.
10487         (F): Likewise for return type and param "x".
10488         (add_constant): Likewise for local "insn".
10489         (maybe_dead_move): Likewise for return type and local "insn".
10490         (mep_expand_prologue): Likewise for local "insn".
10491         (mep_final_prescan_insn): Likewise for param "insn".
10492         (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
10493         "next", "follow", "x".
10494         (mep_insert_repeat_label_last): Likewise for return type, param
10495         "last_insn", and locals "next", "prev".  Strengthen param "label"
10496         from rtx to rtx_code_label *.
10497         (struct mep_doloop_begin): Strengthen field "insn" from rtx to
10498         rtx_insn *.
10499         (struct mep_doloop_end): Likewise for fields "insn" and
10500         "fallthrough".
10501         (mep_reorg_repeat): Likewise for param "insns" and local "insn".
10502         Strengthen local "repeat_label" from rtx to rtx_code_label *.
10503         (mep_invertable_branch_p): Strengthen param "insn" from rtx to
10504         rtx_insn *.
10505         (mep_invert_branch): Likewise for params "insn" and "after".
10506         (mep_reorg_erepeat): Likewise for param "insns" and locals
10507         "insn", "prev", "new_last", "barrier", "user".  Strengthen local
10508         "l" from rtx to rtx_code_label *.
10509         (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
10510         from rtx to rtx_insn *.
10511         (mep_reorg_addcombine): Likewise for param "insns" and locals
10512         "i", "n".
10513         (add_sp_insn_p): Likewise for param "insn".
10514         (mep_reorg_noframe): Likewise for param "insns" and locals
10515         "start_frame_insn", "end_frame_insn", "next".
10516         (mep_reorg): Likewise for local "insns".
10517         (mep_store_data_bypass_1): Likewise for param "prev".  Add checked
10518         cast.
10519         (mep_store_data_bypass_p): Likewise for params "prev", "insn".
10520         (mep_mul_hilo_bypass_p): Likewise.
10521         (mep_ipipe_ldc_p): Likewise for param "insn".
10522         (mep_make_bundle): Likewise for return type, param "cop" and local
10523         "insn", splitting out the latter into a new local "seq" for when it
10524         is a SEQUENCE rather than an insn.
10525         (core_insn_p): Likewise for param "insn".
10526         (mep_bundle_insns): Likewise for param "insns" and locals "insn",
10527         "last", "first", "note", "prev", "core_insn".
10529 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10531         * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
10532         rtx to rtx_insn *.
10533         (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
10534         (m68k_final_prescan_insn): Likewise for first param.
10536         * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
10537         (m68k_set_frame_related): Likewise for param "insn".
10538         (output_btst): Likewise for param "insn".
10539         (m68k_final_prescan_insn): Likewise.
10540         (m68k_move_to_reg): Likewise for local "insn".
10541         (m68k_call_tls_get_addr): Likewise for local "insns".
10542         (m68k_call_m68k_read_tp): Likewise.
10543         (strict_low_part_peephole_ok): Likewise for param "first_insn".
10544         (m68k_output_mi_thunk): Likewise for local "insn".
10546 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10548         * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
10549         first param from rtx to rtx_insn *.
10550         (iq2000_adjust_insn_length): Likewise.
10551         (iq2000_output_conditional_branch): Likewise.
10552         * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
10553         "insn" and local "nop_insn".
10554         (iq2000_annotate_frame_insn): Likewise for param "insn".
10555         (iq2000_expand_prologue): Likewise for both locals "insn".
10556         (iq2000_adjust_insn_length): Likewise for param "insn".
10557         (iq2000_output_conditional_branch): Likewise.
10559 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10561         * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
10562         "insns" from rtx to rtx_insn *.
10563         (ia64_emit_cond_move): Likewise for locals "insn", "first".
10564         (struct spill_fill_data): Likewise for field "init_after" and for
10565         elements of array field "prev_insn".
10566         (spill_restore_mem): Likewise for locals "insn", "first".
10567         (do_spill): Likewise for local "insn".
10568         (do_restore): Likewise.
10569         (ia64_expand_prologue): Likewise.
10570         (ia64_expand_epilogue): Likewise.
10571         (emit_insn_group_barriers): Likewise for locals "insn",
10572         "last_label".
10573         (emit_all_insn_group_barriers): Likewise for locals "insn",
10574         "last".
10575         (dfa_stop_insn): Likewise for this global.
10576         (dfa_pre_cycle_insn): Likewise.
10577         (ia64_nop): Likewise.
10578         (final_emit_insn_group_barriers): Likewise for locals "insn",
10579         "last".
10580         (emit_predicate_relation_info): Likewise for locals "head", "n",
10581         "insn", "b", "a".
10582         (ia64_reorg): Likewise for local "insn".
10583         (ia64_output_mi_thunk): Likewise.
10584         (expand_vec_perm_interleave_2): Likewise for local "seq".
10586 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10588         * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
10589         param 1 "insn" from rtx to rtx_insn *.
10590         (ix86_use_lea_for_mov): Likewise.
10591         (ix86_avoid_lea_for_addr): Likewise.
10592         (ix86_split_lea_for_addr): Likewise.
10593         (ix86_lea_for_add_ok): Likewise.
10594         (ix86_output_call_insn): Likewise.
10596         * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
10597         (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
10598         (ix86_output_function_epilogue): Likewise for locals "insn",
10599         "deleted_debug_label".
10600         (legitimize_tls_address): Likewise for local "insn".
10601         (get_some_local_dynamic_name): Likewise.
10602         (increase_distance): Likewise for params "prev", "next".
10603         (distance_non_agu_define_in_bb): Likewise for params "insn",
10604         "start" and locals "prev", "next".
10605         (distance_non_agu_define): Likewise for param "insn".
10606         (distance_agu_use_in_bb): Likewise for params "insn", "start" and
10607         locals "next", "prev".
10608         (distance_agu_use): Likewise for param "insn".
10609         (ix86_lea_outperforms): Likewise.
10610         (ix86_ok_to_clobber_flags): Likewise.
10611         (ix86_avoid_lea_for_add): Likewise.
10612         (ix86_use_lea_for_mov): Likewise.
10613         (ix86_avoid_lea_for_addr): Likewise.
10614         (find_nearest_reg_def): Likewise, also for locals "prev", "start".
10615         (ix86_split_lea_for_addr): Likewise for param "insn".
10616         (ix86_lea_for_add_ok): Likewise for param "insn".
10617         (ix86_expand_carry_flag_compare): Likewise for local
10618         "compare_seq".
10619         (ix86_expand_int_movcc): Likewise.
10620         (ix86_output_call_insn): Likewise for param "insn".
10621         (ix86_output_call_insn): Likewise for local "i".
10622         (x86_output_mi_thunk): Introduce local "insn", using it in place
10623         of "tmp" when dealing with insns.
10624         (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
10625         "start".
10626         (ix86_pad_returns): Likewise for locals "ret", "prev".
10627         (ix86_count_insn_bb): Likewise for local "insn".
10628         (ix86_pad_short_function): Likewise for locals "ret", "insn".
10629         (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
10630         (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
10631         (expand_vec_perm_interleave2): Likewise for local "seq".
10632         (expand_vec_perm_vperm2f128_vblend): Likewise.
10633         (ix86_loop_unroll_adjust): Likewise for local "insn".  Convert
10634         call to for_each_rtx with for_each_rtx_in_insn.
10636 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10638         * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
10639         "label" from rtx to rtx_code_label *.
10640         (ix86_expand_prologue): Likewise.
10641         (ix86_expand_split_stack_prologue): Likewise for locals "label",
10642         "varargs_label".
10643         (ix86_split_idivmod): Likewise for locals "end_label" and
10644         "qimode_label".
10645         (ix86_expand_branch): Likewise for local "label2".
10646         (ix86_expand_aligntest): Likewise for return type and local "label".
10647         (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
10648         "top_label".
10649         (expand_movmem_epilogue): Likewise for the various locals named
10650         "label".
10651         (expand_setmem_epilogue): Likewise.
10652         (expand_small_movmem_or_setmem): Likewise for local "label".
10653         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
10654         Strengthen param "done_label" from rtx * to rtx_code_label **.
10655         Strengthen locals "loop_label" and "label" from rtx to
10656         rtx_code_label *.
10657         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
10658         Likewise for locals "loop_label", "label".
10659         (ix86_expand_set_or_movmem): Likewise for locals "label",
10660         "jump_around_label", "hot_label".
10661         (ix86_expand_strlensi_unroll_1): Likewise for locals
10662         "align_2_label", align_3_label", "align_4_label", "end_0_label",
10663         "end_2_label".
10664         (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
10665         (void ix86_emit_i387_log1p): Likewise for locals "label1",
10666         "label2", "jump_label".
10667         (ix86_expand_sse_compare_and_jump): Likewise for return type and
10668         local "label".
10669         (ix86_expand_lfloorceil): Likewise for local "label".
10670         (ix86_expand_rint): Likewise.
10671         (ix86_expand_floorceildf_32): Likewise.
10672         (ix86_expand_floorceil): Likewise.
10673         (ix86_expand_rounddf_32): Likewise.
10674         (ix86_expand_trunc): Likewise.
10675         (ix86_expand_truncdf_32): Likewise.
10676         (ix86_expand_round): Likewise.
10678 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10680         * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
10681         first param from rtx to rtx_insn *.
10682         (h8300_insn_length_from_table): Likewise.
10683         * config/h8300/h8300.c (F): Likewise for return type and param
10684         "x".
10685         (Fpa): Add a checked cast to rtx_insn *.
10686         (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
10687         rtx_insn *.
10688         (final_prescan_insn): Likewise for param "insn".
10689         (h8300_binary_length): Likewise.
10690         (h8300_insn_length_from_table): Likewise.
10692 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10694         * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
10695         Strengthen first param "insn" from rtx to rtx_insn *.
10697         * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
10698         Likewise.
10699         (frame_insn): Likewise for return type.  Introduce local "insn"
10700         for use in place of local "x" for use as an rtx_insn *.
10701         (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
10702         (epiphany_expand_prologue): Likewise for local "insn".
10703         * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
10704         * config/epiphany/resolve-sw-modes.c
10705         (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
10706         "seq".
10708 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10710         * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
10711         param from rtx to rtx_insn *.
10712         (c6x_final_prescan_insn): Likewise for first param.
10714         * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
10715         (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
10716         (c6x_expand_compare): Strengthen local "insns" from rtx to
10717         rtx_insn *.
10718         (c6x_get_unit_specifier): Likewise for param "insn".
10719         (c6x_print_unit_specifier_field): Likewise.
10720         (c6x_final_prescan_insn): Likewise.
10721         (emit_add_sp_const): Likewise for local "insn".
10722         (c6x_expand_prologue): Likewise.
10724 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10726         * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
10727         param 1 from rtx to rtx_insn *.
10728         * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
10729         the various locals named "insn".
10730         (expand_epilogue_reg_restore): Likewise.
10731         (frame_related_constant_load): Likewise.
10732         (add_to_reg): Likewise.
10733         (emit_link_insn): Likewise.
10734         (do_link): Likewise.
10735         (expand_interrupt_handler_prologue): Likewise.
10736         (branch_dest): Likewise for param "branch".
10737         (asm_conditional_branch): Likewise for param "insn".
10738         (gen_one_bundle): Likewise for elements of param "slot" and local
10739         "t".
10740         (bfin_gen_bundles): Likewise for locals "insn", "next" and
10741         elements of local "slot".
10742         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
10743         "queue", "next_queue", "prev".
10744         (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
10745         (add_sched_insns_for_speculation): Likewise for local "insn".
10747 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10749         * config/avr/avr-protos.h (output_movqi): Strengthen first param
10750         from rtx to rtx_insn *.
10751         (output_movhi): Likewise.
10752         (output_movsisf): Likewise.
10753         (avr_out_tstsi): Likewise.
10754         (avr_out_tsthi): Likewise.
10755         (avr_out_tstpsi): Likewise.
10756         (avr_out_compare): Likewise.
10757         (avr_out_compare64): Likewise.
10758         (avr_out_movpsi): Likewise.
10759         (ashlqi3_out): Likewise.
10760         (ashlhi3_out): Likewise.
10761         (ashlsi3_out): Likewise.
10762         (ashrqi3_out): Likewise.
10763         (ashrhi3_out): Likewise.
10764         (ashrsi3_out): Likewise.
10765         (lshrqi3_out): Likewise.
10766         (lshrhi3_out): Likewise.
10767         (lshrsi3_out): Likewise.
10768         (avr_out_ashlpsi3): Likewise.
10769         (avr_out_ashrpsi3): Likewise.
10770         (avr_out_lshrpsi3): Likewise.
10771         (avr_out_fract): Likewise.
10772         (avr_out_sbxx_branch): Likewise.
10773         (avr_out_round): Likewise.
10774         (avr_out_xload): Likewise.
10775         (avr_out_movmem): Likewise.
10776         (adjust_insn_length): Likewise.
10777         (avr_out_lpm): Likewise.
10778         (reg_unused_after): Likewise.
10779         (_reg_unused_after): Likewise.
10780         (avr_jump_mode): Likewise for second param.
10781         (jump_over_one_insn): Likewise for first param.
10782         (avr_final_prescan_insn): Likewise.
10783         (out_shift_with_cnt): Likewise for second param.
10785         * config/avr/avr.c (get_sequence_length): Likewise for param
10786         "insns" and local "insn".
10787         (emit_push_byte): Likewise for local "insn".
10788         (emit_push_sfr): Likewise.
10789         (avr_prologue_setup_frame): Likewise for locals "insn",
10790         "fp_plus_insns", "sp_plus_insns".
10791         (avr_expand_epilogue): Likewise for local "fp_plus_insns",
10792         "sp_plus_insns".
10793         (avr_jump_mode): Likewise for param "insn".
10794         (avr_final_prescan_insn): Likewise.
10795         (avr_find_unused_d_reg): Likewise.
10796         (avr_out_lpm_no_lpmx): Likewise.
10797         (avr_out_lpm): Likewise.
10798         (avr_out_xload): Likewise.
10799         (output_movqi): Likewise.
10800         (output_movhi): Likewise.
10801         (out_movqi_r_mr): Likewise.
10802         (out_movhi_r_mr): Likewise.
10803         (out_movsi_r_mr): Likewise.
10804         (out_movsi_mr_r): Likewise.
10805         (output_movsisf): Likewise.
10806         (avr_out_load_psi): Likewise.
10807         (avr_out_store_psi): Likewise.
10808         (avr_out_movpsi): Likewise.
10809         (out_movqi_mr_r): Likewise.
10810         (avr_out_movhi_mr_r_xmega): Likewise.
10811         (out_movhi_mr_r): Likewise.
10812         (compare_condition): Likewise for param "insn" and local "next".
10813         (compare_sign_p): Likewise for param "insn".
10814         (compare_diff_p): Likewise.
10815         (compare_eq_p): Likewise.
10816         (avr_out_compare): Likewise.
10817         (avr_out_compare64): Likewise.
10818         (avr_out_tsthi): Likewise.
10819         (avr_out_tstpsi): Likewise.
10820         (avr_out_tstsi): Likewise.
10821         (out_shift_with_cnt): Likewise.
10822         (ashlqi3_out): Likewise.
10823         (ashlhi3_out): Likewise.
10824         (avr_out_ashlpsi3): Likewise.
10825         (ashlsi3_out): Likewise.
10826         (ashrqi3_out): Likewise.
10827         (ashrhi3_out): Likewise.
10828         (avr_out_ashrpsi3): Likewise.
10829         (ashrsi3_out): Likewise.
10830         (lshrqi3_out): Likewise.
10831         (lshrhi3_out): Likewise.
10832         (avr_out_lshrpsi3): Likewise.
10833         (lshrsi3_out): Likewise.
10834         (avr_out_fract): Likewise.
10835         (avr_out_round): Likewise.
10836         (avr_adjust_insn_length): Likewise.
10837         (reg_unused_after): Likewise.
10838         (_reg_unused_after): Likewise.
10839         (avr_compare_pattern): Likewise.
10840         (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
10841         and locals "branch1", "branch2", "insn2", "jump".
10842         (avr_reorg): Likewise for local "insn".
10843         (avr_2word_insn_p): Likewise for param "insn".
10844         (jump_over_one_insn_p): Likewise.
10845         (avr_out_sbxx_branch): Likewise.
10846         (avr_out_movmem): Likewise.
10848 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10850         * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
10851         param from rtx to rtx_insn *.
10852         (thumb1_final_prescan_insn): Likewise.
10853         (thumb2_final_prescan_insn): Likewise.
10855         * config/arm/arm.c (emit_set_insn): Strengthen return type from
10856         rtx to rtx_insn *.
10857         (struct minipool_node): Likewise for field "insn".
10858         (dump_minipool): Likewise for param "scan".
10859         (create_fix_barrier): Likewise for local "from".  Strengthen local
10860         "label" from rtx to rtx_code_label *.
10861         (push_minipool_barrier): Strengthen param "insn" from rtx to
10862         rtx_insn *.
10863         (push_minipool_fix): Likewise.
10864         (note_invalid_constants): Likewise.
10865         (thumb2_reorg): Likewise for local "insn".
10866         (arm_reorg): Likewise.
10867         (thumb2_final_prescan_insn): Likewise for param
10868         "insn" and local "first_insn".
10869         (arm_final_prescan_insn): Likewise for param "insn" and locals
10870         "start_insn", "this_insn".
10871         (arm_debugger_arg_offset): Likewise for param "insn".
10872         (thumb1_emit_multi_reg_push): Likewise for return type and local
10873         "insn".
10874         (thumb1_final_prescan_insn): Likewise for param "insn".
10875         (thumb_far_jump_used_p): Likewise for local "insn".
10876         (thumb1_expand_prologue): Likewise.
10877         (arm_expand_epilogue_apcs_frame): Likewise.
10878         (arm_expand_epilogue): Likewise for locals "insn", "tmp".
10879         (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
10880         from rtx to rtx_code_label *.
10881         (arm_split_atomic_op): Likewise for local "label".
10882         (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
10884 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10886         * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
10887         first param from rtx to rtx_insn *.
10888         (arc_verify_short): Likewise.
10889         (arc_short_long): Likewise.
10890         (arc_need_delay): Likewise.
10892         * config/arc/arc.c (struct arc_ccfsm): Likewise for field
10893         "target_insn".
10894         (arc_ccfsm_advance): Likewise for param "insn" and locals
10895         "start_insn", "this_insn".
10896         (arc_ccfsm_record_condition): Likewise for local "seq_insn".
10897         (arc_ccfsm_post_advance): Likewise for param "insn".
10898         (arc_next_active_insn): Likewise for return type and param "insn".
10899         Convert NULL_RTX to NULL as appropriate.  Add a checked cast.
10900         (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
10901         (output_short_suffix): Likewise for local "insn".
10902         (arc_final_prescan_insn): Likewise for param "insn".  Remove
10903         now-redundant checked cast.
10904         (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
10905         "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
10906         rtx_insn *.  Add a checked cast.  Introduce local "lc_set_insn"
10907         for use where lc_set became an insn.
10908         (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
10909         rtx to rtx_insn *.
10910         (arc_get_insn_variants): Likewise for local "prev".
10911         (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
10912         "next".
10913         (arc_predicate_delay_insns): Likewise for local "insn".
10914         (arc_pad_return): Likewise for local "prev".  For now, add a
10915         checked cast when extracting the insn from "final_sequence".
10916         (arc_short_long): Likewise for param "insn".
10917         (arc_need_delay): Likewise for param "insn" and local "next".
10918         (arc_label_align): Likewise for locals "prev", "next".
10920 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10922         * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
10923         "insn" from rtx to rtx_insn *.
10924         (alpha_gp_save_rtx): Likewise for local "seq".
10925         (alpha_instantiate_decls): Likewise for local "top".
10926         (get_some_local_dynamic_name): Likewise for local "insn".
10927         (alpha_does_function_need_gp): Likewise.
10928         (set_frame_related_p): Likewise for return type and for locals
10929         "seq" and "insn".
10930         (emit_frame_store_1): Likewise for local "insn".
10931         (alpha_expand_prologue): Likewise for locals "insn", "seq".
10932         (alpha_end_function): Likewise for local "insn".
10933         (alpha_output_mi_thunk_osf): Likewise.
10934         (alphaev4_insn_pipe): Likewise for param "insn".
10935         (alphaev5_insn_pipe): Likewise.
10936         (alphaev4_next_group): Likewise for return type and param 1
10937         "insn".
10938         (alphaev5_next_group): Likewise.
10939         (alpha_align_insns_1): Likewise for return type and param 1 of
10940         callback param "next_group", and for locals "i", "next", "prev",
10941         "where", "where2", "insn".
10943 2014-08-25  Bernd Schmidt  <bernds@codesourcery.com>
10945         * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
10946         rather than modifying the stmt.
10948 2014-08-25  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
10950         * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
10951         cgraph_state conversion.
10953 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10955         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
10956         Strengthen local "insns" from rtx to rtx_insn *.
10957         (aarch64_set_frame_expr): Likewise for local "insn".
10958         (aarch64_save_or_restore_fprs): Likewise.
10959         (aarch64_save_or_restore_callee_save_registers): Likewise.
10960         (aarch64_expand_prologue): Likewise.
10961         (aarch64_expand_epilogue): Likewise.
10962         (aarch64_output_mi_thunk): Likewise.
10963         (aarch64_split_compare_and_swap): Strengthen locals "label1" and
10964         "label2" from rtx to rtx_code_label *.
10965         (aarch64_split_atomic_op): Likewise for local "label".
10967 2014-08-25  Martin Liska  <mliska@suse.cz>
10969         * cgraph.h (symtab_node):
10970         (bool needed_p (void)): created from decide_is_symbol_needed
10971         (bool referred_to_p (void)): created from referred_to_p
10972         (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
10973         * cgraph.h (cgraph_node):
10974         (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
10975         (void expand (void)): created from expand_function
10976         (static void finalize_function (tree, bool)): created from cgraph_finalize_function
10977         (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
10978         (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
10979         (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
10980         * cgraph.h (varpool_node):
10981         (static void add (tree decl): created from varpool_add_new_variable
10982         * cgraph.h (cgraph_edge):
10983         void remove (void);
10984         (void remove_caller (void)): created from cgraph_edge_remove_caller
10985         (void remove_callee (void)): created from cgraph_edge_remove_callee
10986         (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
10987           created from cgraph_set_call_stmt
10988         (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
10989         (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
10990         (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
10991           gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
10992         (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
10993           created from cgraph_speculative_call_info
10994         (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
10995           int freq_scale, bool update_original)): created from cgraph_clone_edge
10996         (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
10997         (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
10998         (bool recursive_p (void)): created from cgraph_edge_recursive_p
10999         (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
11000         (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
11001         (static void rebuild_references (void)): created from cgraph_rebuild_references
11002         * cgraph.h (symbol_table):
11003         (create_reference): renamed from add_reference
11004         (maybe_create_reference): renamed from maybe_add_reference
11005         (void register_symbol (symtab_node *node)): new function
11006         (void clear_asm_symbols (void)): new function
11007         (void unregister (symtab_node *node)): new function
11008         (void release_symbol (cgraph_node *node, int uid)): new function
11009         (cgraph_node * allocate_cgraph_symbol (void)): new function
11010         (void initialize (void)): created from cgraph_init
11011         (symtab_node *first_symbol (void)):new function
11012         (asm_node *first_asm_symbol (void)):new function
11013         (symtab_node *first_defined_symbol (void)):new function
11014         (varpool_node *first_variable (void)):new function
11015         (varpool_node *next_variable (varpool_node *node)):new function
11016         (varpool_node *first_static_initializer (void)):new function
11017         (varpool_node *next_static_initializer (varpool_node *node)):new function
11018         (varpool_node *first_defined_variable (void)):new function
11019         (varpool_node *next_defined_variable (varpool_node *node)):new function
11020         (cgraph_node *first_defined_function (void)):new function
11021         (cgraph_node *next_defined_function (cgraph_node *node)):new function
11022         (cgraph_node *first_function (void)):new function
11023         (cgraph_node *next_function (cgraph_node *node)):new function
11024         (cgraph_node *first_function_with_gimple_body (void)):new function
11025         (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
11026         (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
11027           created from symtab_remove_unreachable_nodes
11028         (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
11029         (void process_new_functions (void)): created from cgraph_process_new_functions
11030         (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
11031         (bool output_variables (void)): created from varpool_node::output_variables
11032         (void output_asm_statements (void)): created from output_asm_statements
11033         (void finalize_compilation_unit (void)): created from finalize_compilation_unit
11034         (void compile (void)): created from compile
11035         (void output_weakrefs (void)): created from output_weakrefs
11036         (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
11037         (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
11038           gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
11039         (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
11040         (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
11041           created from cgraph_next_function_with_gimple_body
11042         (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
11043           created from cgraph_remove_edge_removal_hook
11044         (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
11045           created from cgraph_add_node_removal_hook
11046         (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
11047           created from cgraph_remove_node_removal_hook
11048         (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
11049           created from varpool_add_node_removal_hook
11050         (void remove_varpool_removal_hook (varpool_node_hook_list *)):
11051           created from varpool_remove_node_removal_hook
11052         (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
11053           created from cgraph_add_function_insertion_hook
11054         (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
11055           created from cgraph_remove_function_insertion_hook
11056         (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
11057           created from varpool_add_variable_insertion_hook
11058         (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
11059           created from varpool_remove_variable_insertion_hook
11060         (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
11061           created from cgraph_add_edge_duplication_hook
11062         (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
11063           created from cgraph_remove_edge_duplication_hook
11064         (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
11065           created from cgraph_add_node_duplication_hook
11066         (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
11067           created from cgraph_remove_node_duplication_hook
11068         (void call_edge_removal_hooks (cgraph_edge *e)):
11069           created from cgraph_call_edge_removal_hooks
11070         (void call_cgraph_insertion_hooks (cgraph_node *node)):
11071           created from call_function_insertion_hooks
11072         (void call_cgraph_removal_hooks (cgraph_node *node)):
11073           created from cgraph_call_node_removal_hooks
11074         (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
11075           created from cgraph_node::call_duplication_hooks
11076         (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
11077           created from cgraph_call_edge_duplication_hooks
11078         (void call_varpool_removal_hooks (varpool_node *node)):
11079           created from varpool_call_node_removal_hooks
11080         (void call_varpool_insertion_hooks (varpool_node *node)):
11081           created from varpool_call_variable_insertion_hooks
11082         (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
11083           created from insert_to_assembler_name_hash
11084         (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
11085           created from unlink_from_assembler_name_hash
11086         (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
11087           created from symtab_prevail_in_asm_name_hash
11088         (void symtab_initialize_asm_name_hash (void)):
11089           created from symtab_initialize_asm_name_hash
11090         (void change_decl_assembler_name (tree decl, tree name)):
11091           created from change_decl_assembler_name
11092         (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
11093         (static hashval_t decl_assembler_name_hash (const_tree asmname)):
11094           created from decl_assembler_name_hash
11095         (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
11096           created from decl_assembler_name_equal
11097         (static hashval_t hash_node_by_assembler_name (const void *p)):
11098           created from hash_node_by_assembler_name
11099         (static int eq_assembler_name (const void *p1, const void *p2)):
11100           created from eq_assembler_name
11102 2014-08-25  Marek Polacek  <polacek@redhat.com>
11104         * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
11106 2014-08-25  Petr Murzin  <petr.murzin@intel.com>
11108         * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
11109         (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
11110         SWI1248_AVX512BW mode iterator.
11112 2014-08-25  Kaz Kojima  <kkojima@gcc.gnu.org>
11114         PR target/62111
11115         * config/sh/predicates.md (general_extend_operand): Disable
11116         TRUNCATE before reload completes.
11118 2014-08-24  Gerald Pfeifer  <gerald@pfeifer.com>
11120         * doc/invoke.texi (Optimize Options): Fix markup in two cases.
11122 2014-08-24  Oleg Endo  <olegendo@gcc.gnu.org>
11124         PR target/61996
11125         * config/sh/sh.opt (musermode): Allow negative form.
11126         * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
11127         targets that don't support it.
11128         * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
11129         Document -mno-usermode option.
11131 2014-08-24  Kito Cheng  <kito@0xlab.org>
11133         * system.h (CALLER_SAVE_PROFITABLE): Poison.
11134         * regs.h (CALLER_SAVE_PROFITABLE): Remove.
11135         * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
11136         * doc/tm.texi: Regenerate.
11138 2014-08-24  Kito Cheng  <kito@0xlab.org>
11140         * ira.c: Fix typo in comment.
11142 2014-08-23  Edward Smith-Rowland  <3dw4rd@verizon.net>
11144         * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
11145         Deprecate c++1y. Change language to reflect greater confidence in C++14.
11147 2014-08-23  John David Anglin  <danglin@gcc.gnu.org>
11149         PR target/62038
11150         * config/pa/pa.c (pa_output_function_epilogue): Don't set
11151         last_address when the current function is a thunk.
11152         (pa_asm_output_mi_thunk): When we don't have named sections or they
11153         are not being used, check that thunk can reach the stub table with a
11154         short branch.
11156 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
11158         * web.c (union_match_dups): Strengthen param "insn" from rtx to
11159         rtx_insn *.
11160         (pass_web::execute): Likewise for local "insn".
11162 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
11164         * var-tracking.c (struct micro_operation_def): Strengthen field
11165         "insn" from rtx to rtx_insn *.
11166         (struct emit_note_data_def): Likewise.
11167         (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
11168         (vt_stack_adjustments): Likewise for local "insn".
11169         (adjust_insn): Likewise for param "insn".
11170         (val_store): Likewise.
11171         (val_resolve): Likewise.
11172         (struct count_use_info): Likewise for field "insn".
11173         (log_op_type): Likewise for param "insn".
11174         (reverse_op): Likewise.
11175         (prepare_call_arguments): Likewise.
11176         (add_with_sets):  The initial param takes an insn, but we can't
11177         yet strengthen it from rtx to rtx_insn * since it's used as a
11178         cselib_record_sets_hook callback.  For now rename initial param
11179         from "insn" to "uncast_insn", and introduce a local "insn" of
11180         the stronger rtx_insn * type, with a checked cast.
11181         (compute_bb_dataflow): Strengthen local "insn" from rtx to
11182         rtx_insn *.
11183         (emit_note_insn_var_location): Likewise.
11184         (emit_notes_for_changes): Likewise.
11185         (emit_notes_for_differences): Likewise.
11186         (next_non_note_insn_var_location): Likewise for return type and
11187         for param "insn".
11188         (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
11189         (vt_initialize): Likewise for local "insn".
11190         (delete_debug_insns): Likewise for locals "insn" and "next".
11192 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
11194         * varasm.c (mark_constants): Strengthen param "insn" from rtx to
11195         rtx_insn *.
11196         (mark_constant_pool): Likewise for local "insn".
11198 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
11200         * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
11201         rtx to rtx_insn *.
11202         (dead_debug_promote_uses): Likewise.
11203         (dead_debug_insert_temp): Likewise.
11205 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
11207         * store-motion.c (store_killed_in_insn): Strengthen param "insn"
11208         from const_rtx to const rtx_insn *.
11209         (store_killed_after): Likewise.  Strengthen locals "last", "act"
11210         from rtx to rtx_insn *.
11211         (store_killed_before): Strengthen param "insn" from const_rtx to
11212         const rtx_insn *.  Strengthen local "first" from rtx to rtx_insn *.
11213         (find_moveable_store): Strengthen param "insn" from rtx to
11214         rtx_insn *.
11215         (compute_store_table): Likewise for local "insn".
11216         (insert_insn_start_basic_block): Likewise for param "insn" and
11217         locals "prev", "before", "insn".
11218         (insert_store): For now, add a checked cast to rtx_insn * on the
11219         result of gen_move_insn.
11220         (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
11221         to rtx_insn *.
11222         (replace_store_insn): Likewise.  For now, add a checked cast to
11223         rtx_insn * on the result of gen_move_insn.
11225 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11227         * stmt.c (expand_case): Strengthen local "before_case" from rtx to
11228         rtx_insn *.
11229         (expand_sjlj_dispatch_table): Likewise.
11231 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11233         * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
11234         "insn" from rtx to rtx_insn *.
11236 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11238         * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
11239         "insn" from rtx to rtx_insn *.
11240         (dup_block_and_redirect): Likewise for param 3 "before".
11242         * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
11243         from rtx to rtx_insn *.
11244         (move_insn_for_shrink_wrap): Likewise.
11245         (prepare_shrink_wrap): Likewise for locals "insn", "curr".
11246         (dup_block_and_redirect): Likewise for param "before" and local
11247         "insn".
11248         (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
11249         "end".
11250         (convert_to_simple_return): Likewise for local "start".
11252         * config/i386/i386.c (ix86_finalize_stack_realign_flags):
11253         Strengthen local "insn" from rtx to rtx_insn *, for use when
11254         invoking requires_stack_frame_p.
11256 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11258         * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
11259         rtx_insn *.
11260         (speculate_expr): Likewise for locals "orig_insn_rtx",
11261         "spec_insn_rtx".
11262         (eq_transformed_insns): Likewise for locals "i1", "i2".
11263         (check_for_new_jump): Likewise for return type and local "end".
11264         (find_new_jump): Likewise for return type and local "jump".
11265         (sel_split_edge): Likewise for local "jump".
11266         (sel_create_recovery_block): Likewise.
11267         (sel_redirect_edge_and_branch_force): Likewise.
11268         (sel_redirect_edge_and_branch): Likewise.
11270 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11272         * sel-sched.c (substitute_reg_in_expr): Strengthen local
11273         "new_insn" from rtx to rtx_insn *.
11274         (create_insn_rtx_with_rhs): Likewise for return type and for local
11275         "insn_rtx".
11276         (create_insn_rtx_with_lhs): Likewise.
11277         (create_speculation_check): Likewise for local "insn_rtx".
11278         (implicit_clobber_conflict_p): Likewise for local "insn".
11279         (get_expr_cost): Likewise.
11280         (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
11281         (move_cond_jump): Likewise for locals "next", "prev", "link",
11282         "head", "from", "to".
11284 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11286         * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
11287         "next" from rtx to rtx_insn *.
11288         (find_conditional_protection): Likewise for local "next".
11289         (is_conditionally_protected): Likewise for local "insn1".
11290         (is_pfree): Likewise for locals "insn1", "insn2".
11292 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11294         * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
11295         from rtx to rtx_insn *.
11297         * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
11298         locals "insn1", "insn2" from rtx to rtx_insn *.
11299         (add_deps_for_risky_insns): Likewise for params "head", "tail" and
11300         locals "insn", "prev", "last_jump", "next_tail".
11301         (schedule_ebb): Likewise for params "head", "tail".
11302         (schedule_ebbs): Likewise for locals "tail", "head".
11304         * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
11305         to rtx_insn on "last_insn" in one of the invocations of
11306         schedule_ebb.
11308 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11310         * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
11311         "elem", "insn" from rtx to rtx_insn *.
11312         (change_spec_dep_to_hard): Likewise.
11313         (get_back_and_forw_lists): Likewise for local "con".
11314         (sd_add_dep): Likewise for locals "elem", "insn".
11315         (sd_resolve_dep): Likewise for locals "pro", "con".
11316         (sd_unresolve_dep): Likewise.
11317         (sd_delete_dep): Likewise.
11318         (chain_to_prev_insn): Likewise for local "pro".
11319         (find_inc): Likewise for locals "pro", "con".
11321 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11323         * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
11324         to rtx_insn *.
11325         (reg_set_between_p): Strengthen local "insn" from const_rtx to
11326         const rtx_insn *.
11327         (modified_between_p): Strengthen local "insn" from rtx to
11328         rtx_insn *.
11329         (remove_reg_equal_equiv_notes_for_regno): Likewise.
11330         (keep_with_call_p): Strengthen local "i2" from const_rtx to
11331         const rtx_insn *.
11333 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11335         * resource.c (next_insn_no_annul): Strengthen local "next" from
11336         rtx to rtx_insn *.
11337         (mark_referenced_resources): Likewise for local "insn".
11339 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11341         * reload.h (struct insn_chain): Strengthen field "insn" from rtx
11342         to rtx_insn *.
11343         (find_reloads): Likewise for param 1.
11344         (subst_reloads): Likewise for sole param.
11345         (find_equiv_reg): Likwise for param 2.
11346         (regno_clobbered_p): Likwise for param 2.
11347         (reload): Likewise for param 1.
11349         * caller-save.c (save_call_clobbered_regs): Strengthen local
11350         "insn" from rtx to rtx_insn *.
11351         (insert_one_insn): Likewise for local "insn".
11353         * reload.c (this_insn): Likewise for this global.
11354         (find_reloads): Likewise for param "insn".
11355         (find_reloads_toplev): Likewise.
11356         (find_reloads_address): Likewise.
11357         (subst_reg_equivs): Likewise.
11358         (update_auto_inc_notes): Likewise.
11359         (find_reloads_address_1): Likewise.
11360         (find_reloads_subreg_address): Likewise.
11361         (subst_reloads): Likewise.
11362         (find_equiv_reg): Likewise, also for local "p".
11363         (regno_clobbered_p): Likewise for param "insn".
11365         * reload1.c (reg_reloaded_insn): Likewise for the elements of this
11366         array.
11367         (spill_reg_store): Likewise for the elements of this array.
11368         (remove_init_insns): Likewise for local "equiv_insn".
11369         (will_delete_init_insn_p): Likewise for param "insn".
11370         (reload): Likewise for param ""first" and local "insn".
11371         (calculate_needs_all_insns): Strengthen local "insn" from rtx to
11372         rtx_insn *.
11373         (calculate_elim_costs_all_insns): Likewise.
11374         (delete_caller_save_insns): Likewise.
11375         (spill_failure): Likewise for param "insn".
11376         (delete_dead_insn): Likewise.
11377         (set_label_offsets): Likewise.
11378         (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
11379         "prev_insn".
11380         (elimination_costs_in_insn): Likewise for param "insn".
11381         (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
11382         when referring to an insn.
11383         (set_initial_label_offsets): Likewise.
11384         (set_offsets_for_label): Strengthen param "insn" from rtx to
11385         rtx_insn *.
11386         (init_eliminable_invariants): Likewise for param "first" and local
11387         "insn".
11388         (fixup_eh_region_note): Likewise for param "insn".
11389         (reload_as_needed): Likewise for locals "prev", "insn",
11390         "old_next", "old_prev", "next".
11391         (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
11392         "last".
11393         (reload_inheritance_insn): Strengthen elements of this array from
11394         rtx to rtx_insn *.
11395         (failed_reload): Likewise for param "insn".
11396         (choose_reload_regs): Likewise for local "insn".  Replace use of
11397         NULL_RTX with NULL when referring to an insn.
11398         (input_reload_insns): Strengthen elements of this array from rtx
11399         to rtx_insn *.
11400         (other_input_address_reload_insns): Likewise for this global.
11401         (other_input_reload_insns): Likewise for this global.
11402         (input_address_reload_insns): Likwise for the elements of this
11403         array.
11404         (inpaddr_address_reload_insns): Likwise for the elements of this
11405         array.
11406         (output_reload_insns): Likewise for the elements of this array.
11407         (output_address_reload_insns): Likewise for the elements of this
11408         array.
11409         (outaddr_address_reload_insns): Likewise for the elements of this
11410         array.
11411         (operand_reload_insns): Likewise for this global.
11412         (other_operand_reload_insns): Likewise for this global.
11413         (other_output_reload_insns): Likewise for the elements of this
11414         array.
11415         (new_spill_reg_store): Likewise for the elements of this
11416         array.
11417         (emit_input_reload_insns): Likewise for locals "insn", "temp".
11418         Strengthen local "where" from rtx * to rtx_insn **.
11419         (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
11420         from rtx to rtx_insn *.
11421         (do_input_reload): Likewise for local "insn".
11422         (do_output_reload): Likewise for local "insn".
11423         (emit_reload_insns): Likewise for locals "insn" and "store_insn".
11424         (emit_insn_if_valid_for_reload): Likewise for return type and local
11425         "last".  Add checked cast to rtx_insn when returning "insn" since
11426         this has been through emit_insn.
11427         (gen_reload): Strengthen return type and locals "last", "insn", "set"
11428         from rtx to rtx_insn *.  Add checked cast to rtx_insn when
11429         returning "insn" since it's been through
11430         emit_insn_if_valid_for_reload at this point.
11431         (delete_output_reload): Strengthen param "insn" and locals
11432         "output_reload_insn", "i2" from rtx to rtx_insn *.
11433         (delete_address_reloads): Likewise for params "dead_insn",
11434         "current_insn" and locals "prev", "next".
11435         (delete_address_reloads_1): Likewise for params "dead_insn",
11436         "current_insn" and locals "prev", "i2".
11437         (inc_for_reload): Likewise for locals "last", "add_insn".
11438         (add_auto_inc_notes): Strengthen param "insn" from rtx to
11439         rtx_insn *.
11441         * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
11442         param of this duplicate of the prototype from reload.h
11444 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11446         * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
11447         rtx to rtx_insn *.
11448         (regstat_bb_compute_calls_crossed): Likewise.
11450 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11452         * regrename.c (create_new_chain): Strengthen param "insn" from rtx
11453         to rtx_insn *.
11454         (init_rename_info): Replace use of NULL_RTX with NULL when dealing
11455         with an insn.
11456         (regrename_analyze): Strengthen local "insn" from rtx to
11457         rtx_insn *.
11458         (scan_rtx_reg): Likewise for param "insn".
11459         (scan_rtx_address): Likewise.
11460         (scan_rtx): Likewise.
11461         (restore_operands): Likewise.
11462         (record_out_operands): Likewise.
11463         (build_def_use): Likewise for local "insn".  Replace use of
11464         NULL_RTX with NULL when dealing with an insn.
11466 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11468         * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
11469         * reginfo.c (reg_scan): Likewise, also for local "insn".
11470         (reg_scan_mark_refs): Likewise for param "insn".
11471         (init_subregs_of_mode): Likewise for local "insn".
11473 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11475         * regcprop.c (struct queued_debug_insn_change): Strengthen field
11476         "insn" from rtx to rtx_insn *.
11477         (replace_oldest_value_reg): Likewise for param "insn".
11478         (replace_oldest_value_addr): Likewise.
11479         (replace_oldest_value_mem): Likewise.
11480         (apply_debug_insn_changes): Likewise for local "last_insn".
11481         (copyprop_hardreg_forward_1): Likewise for local "insn".
11483 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11485         * reg-stack.c (next_flags_user): Strengthen return type and param
11486         "insn" from rtx to rtx_insn *.
11487         (straighten_stack): Likewise for param "insn".
11488         (check_asm_stack_operands): Likewise.
11489         (remove_regno_note): Likewise.
11490         (emit_pop_insn): Likewise for return type, param "insn", local
11491         "pop_insn".
11492         (emit_swap_insn):  Strengthen param "insn" and locals "i1", "tmp",
11493         "limit" from rtx to rtx_insn *.
11494         (swap_to_top): Likewise for param "insn".
11495         (move_for_stack_reg): Likewise.
11496         (move_nan_for_stack_reg): Likewise.
11497         (swap_rtx_condition): Likewise.
11498         (compare_for_stack_reg): Likewise.
11499         (subst_all_stack_regs_in_debug_insn): Likewise.
11500         (subst_stack_regs_pat): Likewise, and local "insn2".
11501         (subst_asm_stack_regs): Strengthen param "insn" from rtx to
11502         rtx_insn *.
11503         (subst_stack_regs): Likewise.
11504         (change_stack): Likewise.
11505         (convert_regs_1): Likewise for locals "insn", "next".
11507 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11509         * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
11510         rtx_insn *.
11511         (combine_set_extension): Likewise for param "curr_insn".
11512         (transform_ifelse): Likewise for param "def_insn".
11513         (get_defs): Likewise for param "def_insn".  Strengthen param "dest"
11514         from vec<rtx> * to vec<rtx_insn *> *.
11515         (is_cond_copy_insn): Likewise for param "insn".
11516         (struct ext_state): Strengthen the four vec fields from vec<rtx>
11517         to vec<rtx_insn *>.
11518         (make_defs_and_copies_lists): Strengthen param "extend_insn" and
11519         local "def_insn" from rtx to rtx_insn *.
11520         (get_sub_rtx): Likewise for param "def_insn".
11521         (merge_def_and_ext): Likewise.
11522         (combine_reaching_defs): Likewise.
11523         (add_removable_extension): Likewise for param "insn".
11524         (find_removable_extensions): Likewise for local "insn".
11525         (find_and_remove_re): Likewise for locals "curr_insn" and
11526         "def_insn".  Strengthen locals "reinsn_del_list" and
11527         "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
11529 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11531         * recog.c (split_insn): Strengthen param "insn" and locals
11532         "first", "last" from rtx to rtx_insn *.
11533         (split_all_insns): Likewise for locals "insn", "next".
11534         (split_all_insns_noflow): Likewise.
11536 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11538         * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
11539         const rtx_insn *.
11540         (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
11541         (debug_rtx_find): Likewise for param 1 "x".
11543         * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
11544         const_rtx to const rtx_insn *.  Likewise for local "insn".
11545         (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
11546         (debug_rtx_find): Likewise for param 1 "x".
11547         (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
11548         from const_rtx to const rtx_insn * within the appropriate cases of
11549         the switch statement.
11551         * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
11552         Strengthen local "insns" from rtx to rtx_insn * since this is
11553         passed to a call to debug_rtx_list.
11555 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11557         * predict.h (predict_insn_def): Strengthen param "insn" from rtx
11558         to rtx_insn *.
11560         * function.c (stack_protect_epilogue): Add checked cast to
11561         rtx_insn for now when invoking predict_insn_def.
11563         * predict.c (predict_insn): Strengthen param "insn" from rtx to
11564         rtx_insn *.
11565         (predict_insn_def): Likewise.
11566         (rtl_predict_edge): Likewise for local "last_insn".
11567         (can_predict_insn_p): Strengthen param "insn" from const_rtx to
11568         const rtx_insn *.
11569         (combine_predictions_for_insn): Strengthen param "insn" from rtx
11570         to rtx_insn *.
11571         (bb_estimate_probability_locally): Likewise for local "last_insn".
11572         (expensive_function_p): Likewise for local "insn".
11574         * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
11575         local "jmp", since this is used when invoking predict_insn_def.
11577 2014-08-22  Marek Polacek  <polacek@redhat.com>
11579         PR c++/62199
11580         * doc/invoke.texi: Update -Wlogical-not-parentheses description.
11582 2014-08-22  Marek Polacek  <polacek@redhat.com>
11584         PR c/61271
11585         * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
11586         a comparison in parens.
11587         * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
11588         in parens.
11590 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11592         * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
11593         rtx_insn *.
11595         * cprop.c (fis_get_condition): Likewise.
11597         * postreload.c (reload_cse_regs): Likewise for param "first".
11598         (reload_cse_simplify): Likewise for param "insn".
11599         (reload_cse_regs_1): Likewise for local "insn".
11600         (reload_cse_simplify_set): Likewise for param "insn".
11601         (reload_cse_simplify_operands): Likewise.
11602         (struct reg_use): Likewise for field "insn".
11603         (reload_combine_purge_insn_uses): Likewise for param "insn".
11604         (fixup_debug_insns): Likewise for params "from", "to" and local
11605         "insn".
11606         (try_replace_in_use): Likewise for local "use_insn".
11607         (reload_combine_recognize_const_pattern): Likewise for param
11608         "insn" and locals "add_moved_after_insn", "use_insn".
11609         (reload_combine_recognize_pattern): Likewise for param "insn" and
11610         local "prev".
11611         (reload_combine): Likewise for locals "insn", "prev".
11612         (reload_combine_note_use): Likewise for param "insn".
11613         (move2add_use_add2_insn): Likewise.
11614         (move2add_use_add3_insn): Likewise.
11615         (reload_cse_move2add): Likewise, also for local "next".
11616         (move2add_note_store): Likewise for local "insn".
11618 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11620         * postreload-gcse.c (struct occr): Strengthen field "insn" from
11621         rtx to rtx_insn *.
11622         (struct unoccr): Likewise.
11623         (struct modifies_mem): Likewise.
11624         (alloc_mem): Likewise for local "insn".
11625         (insert_expr_in_table): Likewise for param "insn".
11626         (dump_expr_hash_table_entry): Likewise for local "insn".
11627         (oprs_unchanged_p): Likewise for param "insn".
11628         (load_killed_in_block_p): Likewise for local "setter".
11629         (record_last_reg_set_info): Likewise for param "insn".
11630         (record_last_reg_set_info_regno): Likewise.
11631         (record_last_mem_set_info): Likewise.
11632         (record_last_set_info): Likewise for local "last_set_insn".
11633         (record_opr_changes): Likewise for param "insn".
11634         (hash_scan_set): Likewise.
11635         (compute_hash_table): Likewise for local "insn".
11636         (get_avail_load_store_reg): Likewise for param "insn".
11637         (eliminate_partially_redundant_load): Likewise, also for locals
11638         "avail_insn", "next_pred_bb_end".  Replace use of NULL_RTX with
11639         RTX for insns.
11640         (eliminate_partially_redundant_loads): Likewise for local "insn".
11642 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11644         * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
11645         rtx to rtx_insn *.
11646         (expand_binop): Likewise for locals "entry_last", "last", "insns"
11647         (expand_twoval_unop): Likewise for locals entry_last", "last".
11648         (expand_twoval_binop): Likewise.
11649         (expand_twoval_binop_libfunc): Likewise for local "insns".
11650         (widen_leading): Likewise for local "last".
11651         (expand_doubleword_clz): Likewise for local "seq".  Strengthen
11652         locals "hi0_label", "after_label" from rtx to rtx_code_label *.
11653         (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
11654         (expand_parity): Likewise for locals "last" and "seq".
11655         (expand_ffs): Likewise for local "seq".  Strengthen local
11656         "nonzero_label" from rtx to rtx_code_label *.
11657         (expand_absneg_bit): Strengthen local "insns" from rtx to
11658         rtx_insn *.
11659         (expand_unop_direct): Likewise for local "last".
11660         (expand_unop): Likewise for locals "last", "insns".
11661         (expand_abs_nojump): Likewise for local "last".
11662         (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
11663         (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
11664         rtx_insn *.
11665         (expand_copysign_absneg): Strengthen local "label" from rtx to
11666         rtx_code_label *.
11667         (expand_copysign_bit): Strengthen local "insns" from rtx to
11668         rtx_insn *.
11669         (struct no_conflict_data): Likewise for fields "first", "insn".
11670         (emit_libcall_block_1): Likewise for param "insns" and locals
11671         "next", "last", "insn".
11672         (emit_libcall_block): For now, add a checked cast to rtx_insn *
11673         on "insns" when invoking emit_libcall_block_1.  Ultimately we
11674         want to strengthen insns itself.
11675         (prepare_cmp_insn): Strengthen local "last" from rtx to
11676         rtx_insn *.
11677         (emit_cmp_and_jump_insn_1): Likewise for local "insn".
11678         (prepare_float_lib_cmp): Likewise for local "insns".
11679         (emit_conditional_move): Likewise for local "last".
11680         (emit_conditional_add): Likewise.
11681         (have_sub2_insn): Likewise for local "seq".
11682         (expand_float): Likewise for local "insns".  Strengthen locals
11683         "label", "neglabel" from rtx to rtx_code_label *.
11684         (expand_fix): Likewise for locals "last", "insn", "insns" (to
11685         rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
11686         (expand_fixed_convert): Likewise for local "insns" (to
11687         rtx_insn *).
11688         (expand_sfix_optab): Likewise for local "last".
11689         (expand_compare_and_swap_loop): Strengthen local "label" from rtx
11690         to rtx_code_label *.
11691         (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
11692         from rtx to rtx_insn *.
11693         (expand_atomic_fetch_op): Likewise for local "insn".
11694         (maybe_legitimize_operand_same_code): Likewise for local "last".
11695         (maybe_legitimize_operands): Likewise.
11697 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11699         * modulo-sched.c (struct ps_reg_move_info): Strengthen field
11700         "insn" from rtx to rtx_insn *.
11701         (ps_rtl_insn): Likewise for return type.
11702         (doloop_register_get): Likewise for params "head", "tail" and
11703         locals "insn", "first_insn_not_to_check".
11704         (schedule_reg_move): Likewise for local "this_insn".
11705         (schedule_reg_moves): Add a checked cast to rtx_insn * to result
11706         of gen_move_insn for now.
11707         (reset_sched_times): Strengthen local "insn" from rtx to
11708         rtx_insn *.
11709         (permute_partial_schedule): Likewise.
11710         (duplicate_insns_of_cycles): Likewise for local "u_insn".
11711         (dump_insn_location): Likewise for param "insn".
11712         (loop_canon_p): Likewise for local "insn".
11713         (sms_schedule): Likewise.
11714         (print_partial_schedule): Likewise.
11715         (ps_has_conflicts): Likewise.
11717 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11719         * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
11720         "tailp" from rtx * to rtx_insn **.
11722         * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
11723         from rtx to rtx_insn *.
11724         * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
11725         "tailp" from rtx * to rtx_insn **.  Strengthen locals "beg_head",
11726         "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
11727         rtx to rtx_insn *.
11728         * modulo-sched.c (const_iteration_count): Strengthen return type
11729         and locals "insn", "head", "tail" from rtx to rtx_insn *.  Replace
11730         use of NULL_RTX with NULL when working with insns.
11731         (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
11732         to rtx_insn *.
11733         (sms_schedule): Likewise.
11734         * sched-rgn.c (init_ready_list): Likewise, also for locals
11735         "src_head" and "src_next_tail".
11736         (compute_block_dependences): Likewise.
11737         (free_block_dependencies): Likewise.
11738         (debug_rgn_dependencies): Likewise.
11739         (free_rgn_deps): Likewise.
11740         (compute_priorities): Likewise.
11741         (schedule_region): Likewise.
11742         * sel-sched.c (find_ebb_boundaries): Likewise.
11744         * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
11745         "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
11747 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11749         * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
11750         from rtx to rtx_insn *.
11751         (new_seginfo): Likewise for param "insn".
11752         (create_pre_exit): Likewise for locals "last_insn",
11753         "before_return_copy", "return_copy".
11754         (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
11755         "mode_set".
11757 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11759         * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
11760         from rtx to rtx_insn *.
11761         (lra_push_insn): Likewise for 1st param.
11762         (lra_push_insn_and_update_insn_regno_info): Likewise.
11763         (lra_pop_insn): Likewise for return type.
11764         (lra_invalidate_insn_data): Likewise for 1st param.
11765         (lra_set_insn_deleted): Likewise.
11766         (lra_delete_dead_insn): Likewise.
11767         (lra_process_new_insns): Likewise for first 3 params.
11768         (lra_set_insn_recog_data): Likewise for 1st param.
11769         (lra_update_insn_recog_data): Likewise.
11770         (lra_set_used_insn_alternative): Likewise.
11771         (lra_invalidate_insn_regno_info): Likewise.
11772         (lra_update_insn_regno_info): Likewise.
11773         (lra_former_scratch_operand_p): Likewise.
11774         (lra_eliminate_regs_1): Likewise.
11775         (lra_get_insn_recog_data): Likewise.
11777         * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
11778         rtx to rtx_insn *.
11780         * lra-coalesce.c (move_freq_compare_func): Likewise for locals
11781         "mv1" and "mv2".
11782         (substitute_within_insn): New.
11783         (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
11784         rtx_insn *.  Strengthen sorted_moves from rtx * to rxt_insn **.
11785         Replace call to "substitute" with call to substitute_within_insn.
11787         * lra-constraints.c (curr_insn): Strengthen from rtx to
11788         rtx_insn *.
11789         (get_equiv_with_elimination): Likewise for param "insn".
11790         (match_reload): Strengthen params "before" and "after" from rtx *
11791         to rtx_insn **.
11792         (emit_spill_move): Likewise for return type.  Add a checked cast
11793         to rtx_insn * on result of gen_move_insn for now.
11794         (check_and_process_move): Likewise for local "before".  Replace
11795         NULL_RTX with NULL when referring to insns.
11796         (process_addr_reg): Strengthen params "before" and "after" from
11797         rtx * to rtx_insn **.
11798         (insert_move_for_subreg): Likewise.
11799         (simplify_operand_subreg): Strengthen locals "before" and "after"
11800         from rtx to rtx_insn *.
11801         (process_address_1): Strengthen params "before" and "after" from
11802         rtx * to rtx_insn **.  Strengthen locals "insns", "last_insn" from
11803         rtx to rtx_insn *.
11804         (process_address): Strengthen params "before" and "after" from
11805         rtx * to rtx_insn **.
11806         (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
11807         (curr_insn_transform): Strengthen locals "before" and "after"
11808         from rtx to rtx_insn *.  Replace NULL_RTX with NULL when referring
11809         to insns.
11810         (loc_equivalence_callback): Update cast of "data", changing
11811         resulting type from rtx to rtx_insn *.
11812         (substitute_pseudo_within_insn): New.
11813         (inherit_reload_reg): Strengthen param "insn" from rtx to
11814         rtx_insn *; likewise for local "new_insns".  Replace NULL_RTX with
11815         NULL when referring to insns.  Add a checked cast to rtx_insn *
11816         when using usage_insn to invoke lra_update_insn_regno_info.
11817         (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
11818         likewise for locals "restore", "save".  Add checked casts to
11819         rtx_insn * when using usage_insn to invoke
11820         lra_update_insn_regno_info and lra_process_new_insns.  Replace
11821         NULL_RTX with NULL when referring to insns.
11822         (split_if_necessary): Strengthen param "insn" from rtx to
11823         rtx_insn *.
11824         (update_ebb_live_info): Likewise for params "head", "tail" and local
11825         "prev_insn".
11826         (get_last_insertion_point): Likewise for return type and local "insn".
11827         (get_live_on_other_edges): Likewise for local "last".
11828         (inherit_in_ebb): Likewise for params "head", "tail" and locals
11829         "prev_insn", "next_insn", "restore".
11830         (remove_inheritance_pseudos): Likewise for local "prev_insn".
11831         (undo_optional_reloads): Likewise for local "insn".
11833         * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
11834         "insn".
11835         (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
11836         insns.
11837         (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
11838         rtx_insn *.
11839         (spill_pseudos): Likewise for local "insn".
11840         (init_elimination): Likewise.
11841         (process_insn_for_elimination): Likewise for param "insn".
11843         * lra-lives.c (curr_insn): Likewise.;
11845         * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
11846         (remove_pseudos): Likewise for param "insn".
11847         (spill_pseudos): Likewise for local "insn".
11848         (lra_final_code_change): Likewise for locals "insn", "curr".
11850         * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
11851         (lra_set_insn_deleted): Likewise.
11852         (lra_delete_dead_insn): Likewise, and for local "prev".
11853         (new_insn_reg): Likewise for param "insn".
11854         (lra_set_insn_recog_data): Likewise.
11855         (lra_update_insn_recog_data): Likewise.
11856         (lra_set_used_insn_alternative): Likewise.
11857         (get_insn_freq): Likewise.
11858         (invalidate_insn_data_regno_info): Likewise.
11859         (lra_invalidate_insn_regno_info): Likewise.
11860         (lra_update_insn_regno_info): Likewise.
11861         (lra_constraint_insn_stack): Strengthen from vec<rtx> to
11862         vec<rtx_insn *>.
11863         (lra_push_insn_1): Strengthen param "insn" from rtx to
11864         rtx_insn *.
11865         (lra_push_insn): Likewise.
11866         (lra_push_insn_and_update_insn_regno_info): Likewise.
11867         (lra_pop_insn): Likewise for return type and local "insn".
11868         (push_insns): Likewise for params "from", "to", and local "insn".
11869         (setup_sp_offset): Likewise for params "from", "last" and locals
11870         "before", "insn".
11871         (lra_process_new_insns): Likewise for params "insn", "before",
11872         "after" and local "last".
11873         (struct sloc): Likewise for field "insn".
11874         (lra_former_scratch_operand_p): Likewise for param "insn".
11875         (remove_scratches): Likewise for locals "insn", "last".
11876         (check_rtl): Likewise for local "insn".
11877         (add_auto_inc_notes): Likewise for param "insn".
11878         (update_inc_notes): Likewise for local "insn".
11879         (lra): Replace NULL_RTX with NULL when referring to insn.
11881 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11883         * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
11884         to rtx_insn *.
11885         (resolve_reg_notes): Likewise.
11886         (resolve_simple_move): Likewise for return type, param "insn", and
11887         locals "insns", "minsn".
11888         (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
11889         (resolve_use): Likewise.
11890         (resolve_debug): Likewise.
11891         (find_decomposable_shift_zext): Likewise.
11892         (resolve_shift_zext): Likewise for return type, param "insn", and
11893         locals "insns", "in".  Eliminate use of NULL_RTX in favor of NULL.
11894         (decompose_multiword_subregs): Likewise for local "insn",
11895         "orig_insn", "decomposed_shift", "end".
11897 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11899         * basic-block.h (basic_block split_edge_and_insert): Strengthen
11900         param "insns" from rtx to rtx_insn *.
11902         * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
11903         rtx to rtx_insn *.
11904         (struct iv_to_split): Likewise.
11905         (loop_exit_at_end_p): Likewise for local "insn".
11906         (split_edge_and_insert): Likewise for param "insns".
11907         (compare_and_jump_seq): Likewise for return type, param "cinsn",
11908         and locals "seq", "jump".
11909         (unroll_loop_runtime_iterations): Likewise for locals "init_code",
11910         "branch_code"; update invocations of compare_and_jump_seq to
11911         eliminate NULL_RTX in favor of NULL.
11912         (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
11913         rtx to rtx_insn *.
11914         (reset_debug_uses_in_loop): Likewise.
11915         (analyze_insn_to_expand_var): Likewise for param "insn".
11916         (analyze_iv_to_split_insn): Likewise.
11917         (analyze_insns_in_loop): Likewise for local "insn".
11918         (insert_base_initialization): Likewise for param
11919         "insn" and local "seq".
11920         (split_iv): Likewise for param "insn" and local "seq".
11921         (expand_var_during_unrolling): Likewise for param "insn".
11922         (insert_var_expansion_initialization): Likewise for local "seq".
11923         (combine_var_copies_in_loop_exit): Likewise.
11924         (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
11925         "insn".
11926         (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
11927         (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
11928         "next".
11930 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11932         * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
11933         rtx_insn *.
11934         (iv_analyze_result): Likewise.
11935         (iv_analyze_expr): Likewise.
11936         (biv_p): Likewise.
11938         * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
11939         local "def_insn" from rtx to rtx_insn *.
11940         (get_biv_step_1): Likewise for local "insn".
11941         (iv_analyze_expr): Likewise for param "insn".
11942         (iv_analyze_def): Likewise for local "insn".
11943         (iv_analyze_op): Likewise for param "insn".
11944         (iv_analyze): Likewise.
11945         (iv_analyze_result): Likewise.
11946         (biv_p): Likewise.
11947         (suitable_set_for_replacement): Likewise.
11948         (simplify_using_initial_values): Likewise for local "insn".
11949         (iv_number_of_iterations): Likewise for param "insn".
11950         (check_simple_exit): Add checked cast to rtx_insn when invoking
11951         iv_number_of_iterations for now (until get_condition is
11952         strengthened).
11954         * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
11955         "insn" from rtx to rtx_insn *.
11956         (analyze_insns_in_loop): Likewise for local "insn".
11958 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11960         * loop-invariant.c (struct use): Strengthen field "insn" from rtx
11961         to rtx_insn *.
11962         (struct invariant): Likewise.
11963         (hash_invariant_expr_1): Likewise for param "insn".
11964         (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
11965         (find_exits): Likewise for local "insn".
11966         (create_new_invariant): Likewise for param "insn".
11967         (check_dependencies): Likewise.
11968         (find_invariant_insn): Likewise.
11969         (record_uses): Likewise.
11970         (find_invariants_insn): Likewise.
11971         (find_invariants_bb): Likewise for local "insn".
11972         (get_pressure_class_and_nregs): Likewise for param "insn".
11973         (calculate_loop_reg_pressure): Likewise for local "insn".
11975 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11977         * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
11978         to rtx_insn *.
11979         (add_test): Likewise for locals "seq", "jump".
11980         (doloop_modify): Likewise for locals "sequence", "jump_insn".
11982 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11984         * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
11985         rtx_insn *.
11986         (rebuild_jump_labels_chain): Likewise for param "chain".
11988         * cfgexpand.c (pass_expand::execute): Add checked cast to
11989         rtx_insn * when calling rebuild_jump_labels_chain in region where
11990         we know e->insns.r is non-NULL.
11992         * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
11993         rtx_insn *.
11994         (rebuild_jump_labels): Likewise.
11995         (rebuild_jump_labels_chain): Likewise for param "chain".
11996         (cleanup_barriers): Likewise for locals "insn", "next", "prev".
11997         (init_label_info): Likewise for param "f".
11998         (maybe_propagate_label_ref): Likewise for params "jump_insn",
11999         "prev_nonjump_insn".
12000         (mark_all_labels): Likewise for param "f" and locals "insn",
12001         "prev_nonjump_insn".
12003 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12005         * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
12006         from rtx to rtx_insn *insn.
12007         (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
12008         (ira_add_allocno_copy): Likewise.
12009         * ira-build.c (find_allocno_copy): Strengthen param "insn" from
12010         rtx to rtx_insn *.
12011         (ira_create_copy): Likewise.
12012         (ira_add_allocno_copy): Likewise.
12013         (create_bb_allocnos): Likewise for local "insn".
12014         * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
12015         (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
12016         process_regs_for_copy for rtx_insn * param.
12017         (add_insn_allocno_copies): Strengthen param "insn" from rtx to
12018         rtx_insn *insn.  Update NULL_RTX to NULL in invocation of
12019         process_regs_for_copy for rtx_insn * param.
12020         (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
12021         * ira-costs.c (record_reg_classes): Likewise for param "insn".
12022         (record_operand_costs): Likewise.
12023         (scan_one_insn): Likewise for return type, and for param "insn".
12024         (process_bb_for_costs): Likewise for local "insn".
12025         (process_bb_node_for_hard_reg_moves): Likewise.
12026         * ira-emit.c (struct move): Likewise for field "insn".
12027         (create_move): Eliminate use of NULL_RTX when dealing with an
12028         rtx_insn *.
12029         (emit_move_list): Strengthen return type and locals "result",
12030         "insn" from rtx to rtx_insn *insn.
12031         (emit_moves): Likewise for locals "insns", "tmp".
12032         (ira_emit): Likewise for local "insn".
12033         * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
12034         "insn".
12035         (find_call_crossed_cheap_reg): Likewise.
12036         (process_bb_node_lives): Likewise for local "insn".
12037         * ira.c (decrease_live_ranges_number): Likewise.
12038         (compute_regs_asm_clobbered): Likewise.
12039         (build_insn_chain): Likewise.
12040         (find_moveable_pseudos): Likewise, also locals "def_insn",
12041         "use_insn", "x".  Also strengthen local "closest_uses" from rtx *
12042         to rtx_insn **.  Add a checked cast when assigning from
12043         "closest_use" into closest_uses array in a region where we know
12044         it's a non-NULL insn.
12045         (interesting_dest_for_shprep): Strengthen param "insn" from rtx
12046         to rtx_insn *.
12047         (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
12048         "last_interesting_insn", "uin".
12049         (move_unallocated_pseudos): Likewise for locals "def_insn",
12050         "move_insn", "newinsn".
12052 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12054         * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
12055         Strengthen locals "done_label", "do_error" from rtx to
12056         rtx_code_label *.
12057         (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
12058         from rtx to rtx_insn *.  Strengthen local "sub_check from rtx to
12059         rtx_code_label *.
12060         (ubsan_expand_si_overflow_neg_check): Likewise for locals
12061         "done_label", "do_error" to rtx_code_label * and local  "last" to
12062         rtx_insn *.
12063         (ubsan_expand_si_overflow_mul_check): Likewise for locals
12064         "done_label", "do_error", "large_op0", "small_op0_large_op1",
12065         "one_small_one_large", "both_ops_large", "after_hipart_neg",
12066         "after_lopart_neg", "do_overflow", "hipart_different"  to
12067         rtx_code_label * and local  "last" to rtx_insn *.
12069 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12071         * init-regs.c (initialize_uninitialized_regs): Strengthen locals
12072         "insn" and "move_insn" from rtx to rtx_insn *.
12074 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12076         * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
12077         rtx_insn *.
12078         (cheap_bb_rtx_cost_p): Likewise.
12079         (first_active_insn): Likewise for return type and local "insn".
12080         (last_active_insn):  Likewise for return type and locals "insn",
12081         "head".
12082         (struct noce_if_info): Likewise for fields "jump", "insn_a",
12083         "insn_b".
12084         (end_ifcvt_sequence): Likewise for return type and locals "insn",
12085         "seq".
12086         (noce_try_move): Likewise for local "seq".
12087         (noce_try_store_flag): Likewise.
12088         (noce_try_store_flag_constants): Likewise.
12089         (noce_try_addcc): Likewise.
12090         (noce_try_store_flag_mask): Likewise.
12091         (noce_try_cmove): Likewise.
12092         (noce_try_minmax): Likewise.
12093         (noce_try_abs): Likewise.
12094         (noce_try_sign_mask): Likewise.
12095         (noce_try_bitop): Likewise.
12096         (noce_can_store_speculate_p): Likewise for local "insn".
12097         (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
12098         seq".
12099         (check_cond_move_block): Likewise for local "insn".
12100         (cond_move_convert_if_block): Likewise.
12101         (cond_move_process_if_block): Likewise for locals "seq",
12102         "loc_insn".
12103         (noce_find_if_block): Likewise for local "jump".
12104         (merge_if_block): Likewise for local "last".
12105         (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
12106         (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
12107         (block_has_only_trap): Likewise for return type and local "trap".
12108         (find_if_case_1): Likewise for local "jump".
12109         (dead_or_predicable): Likewise for locals "head", "end", "jump",
12110         "insn".
12112 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12114         * hw-doloop.h (struct hwloop_info_d): Strengthen fields
12115         "last_insn", "loop_end" from rtx to rtx_insn *.
12117         * hw-doloop.c (scan_loop): Likewise for local "insn".
12118         (discover_loop): Likewise for param "tail_insn".
12119         (discover_loops): Likewise for local "tail".
12121         * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
12122         cast to rtx_insn * when assigning from an rtx local to a
12123         hwloop_info's "last_insn" field.
12125 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12127         * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
12128         (add_delay_dependencies): Strengthen local "pro" from rtx to
12129         rtx_insn *.
12130         (recompute_todo_spec): Likewise.
12131         (dep_cost_1): Likewise for locals "insn", "used".
12132         (schedule_insn): Likewise for local "dbg".
12133         (schedule_insn): Likewise for locals "pro", "next".
12134         (unschedule_insns_until): Likewise for local "con".
12135         (restore_pattern): Likewise for local "next".
12136         (estimate_insn_tick): Likewise for local "pro".
12137         (resolve_dependencies): Likewise for local "next".
12138         (fix_inter_tick): Likewise.
12139         (fix_tick_ready): Likewise for local "pro".
12140         (add_to_speculative_block): Likewise for locals "check", "twin",
12141         "pro".
12142         (sched_extend_bb): Likewise for locals "end", "insn".
12143         (init_before_recovery): Likewise for local "x".
12144         (sched_create_recovery_block): Likewise for local "barrier".
12145         (create_check_block_twin): Likewise for local "pro".
12146         (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
12147         "consumer".
12148         (unlink_bb_notes): Update for change to type of bb_header.
12149         Strengthen locals "prev", "label", "note", "next" from rtx to
12150         rtx_insn *.
12151         (clear_priorities): Likewise for local "pro".
12153 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12155         * gcse.c (struct occr): Strengthen field "insn" from rtx to
12156         rtx_insn *.
12157         (test_insn): Likewise for this global.
12158         (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
12159         const rtx_insn *.
12160         (oprs_anticipatable_p): Likewise.
12161         (oprs_available_p): Likewise.
12162         (insert_expr_in_table): Strengthen param "insn" from  rtx to
12163         rtx_insn *.
12164         (hash_scan_set): Likewise.
12165         (hash_scan_clobber): Likewise.
12166         (hash_scan_call): Likewise.
12167         (hash_scan_insn): Likewise.
12168         (compute_hash_table_work): Likewise for local "insn".
12169         (process_insert_insn): Likewise for return type and local "pat".
12170         (insert_insn_end_basic_block): Likewise for locals "new_insn",
12171         "pat", "pat_end", "maybe_cc0_setter".
12172         (pre_edge_insert): Likewise for local "insn".
12173         (pre_insert_copy_insn): Likewise for param "insn".
12174         (pre_insert_copies): Likewise for local "insn".
12175         (struct set_data): Likewise for field "insn".
12176         (single_set_gcse): Likewise for param "insn".
12177         (gcse_emit_move_after): Likewise.
12178         (pre_delete): Likewise for local "insn".
12179         (update_bb_reg_pressure): Likewise for param "from" and local
12180         "insn".
12181         (should_hoist_expr_to_dom): Likewise for param "from".
12182         (hoist_code): Likewise for local "insn".
12183         (get_pressure_class_and_nregs): Likewise for param "insn".
12184         (calculate_bb_reg_pressure): Likewise for local "insn".
12185         (compute_ld_motion_mems): Likewise.
12187 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12189         * genpeep.c (main): Rename param back from "uncast_ins1" to
12190         "ins1", strengthening from rtx to rtx_insn *.  Drop now-redundant
12191         checked cast.
12193         * output.h (peephole): Strengthen param from rtx to rtx_insn *.
12195 2014-08-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
12197         PR target/62195
12198         * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
12199         documentation to state it is only for VSX operations.
12201         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
12202         constraint only active if VSX.
12204         * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
12205         wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
12206         (lfiwzx): Likewise.
12208 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12210         * fwprop.c (single_def_use_dom_walker::before_dom_children):
12211         Strengthen local "insn" from rtx to rtx_insn *.
12212         (use_killed_between): Likewise for param "target_insn".
12213         (all_uses_available_at): Likewise for param "target_insn" and
12214         local "next".
12215         (update_df_init): Likewise for params "def_insn", "insn".
12216         (update_df): Likewise for param "insn".
12217         (try_fwprop_subst): Likewise for param "def_insn" and local
12218         "insn".
12219         (free_load_extend): Likewise for param "insn".
12220         (forward_propagate_subreg): Likewise for param "def_insn" and
12221         local "use_insn".
12222         (forward_propagate_asm): Likewise for param "def_insn" and local
12223         "use_insn".
12224         (forward_propagate_and_simplify): Likewise for param "def_insn"
12225         and local "use_insn".
12226         (forward_propagate_into): Likewise for locals "def_insn" and
12227         "use_insn".
12229 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12231         * function.c (emit_initial_value_sets): Strengthen local "seq"
12232         from rtx to rtx_insn *.
12233         (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
12234         local "seq".
12235         (instantiate_virtual_regs): Likewise for local "insn".
12236         (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
12237         (reorder_blocks_1): Likewise for param "insns" and local "insn".
12238         (expand_function_end): Likewise for locals "insn" and "seq".
12239         (epilogue_done): Likewise for local "insn".
12240         (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
12241         "last", "trial".
12242         (reposition_prologue_and_epilogue_notes): Likewise for locals
12243         "insn", "last", "note", "first".
12244         (match_asm_constraints_1): Likewise for param "insn" and local "insns".
12245         (pass_match_asm_constraints::execute): Likewise for local "insn".
12247 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12249         * output.h (final_scan_insn): Strengthen return type from rtx to
12250         rtx_insn *.
12251         (final_forward_branch_p): Likewise for param.
12252         (current_output_insn): Likewise for this global.
12254         * final.c (rtx debug_insn): Likewise for this variable.
12255         (current_output_insn): Likewise.
12256         (get_attr_length_1): Rename param "insn" to "uncast_insn",
12257         adding "insn" back in as an rtx_insn * with a checked cast, so
12258         that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
12259         first param.
12260         (compute_alignments): Strengthen local "label" from rtx to
12261         rtx_insn *.
12262         (shorten_branches): Rename param from "first" to "uncast_first",
12263         introducing a new local rtx_insn * "first" using a checked cast to
12264         effectively strengthen "first" from rtx to rtx_insn * without
12265         affecting the type signature.  Strengthen locals "insn", "seq",
12266         "next", "label" from rtx to rtx_insn *.
12267         (change_scope): Strengthen param "orig_insn" and local "insn" from
12268         rtx to rtx_insn *.
12269         (final_start_function): Rename param from "first" to "uncast_first",
12270         introducing a new local rtx_insn * "first" using a checked cast to
12271         effectively strengthen "first" from rtx to rtx_insn * without
12272         affecting the type signature.  Strengthen local "insn" from rtx to
12273         rtx_insn *.
12274         (dump_basic_block_info): Strengthen param "insn" from rtx to
12275         rtx_insn *.
12276         (final): Rename param from "first" to "uncast_first",
12277         introducing a new local rtx_insn * "first" using a checked cast to
12278         effectively strengthen "first" from rtx to rtx_insn * without
12279         affecting the type signature.  Strengthen locals "insn", "next"
12280         from rtx to rtx_insn *.
12281         (output_alternate_entry_point): Strengthen param "insn" from rtx to
12282         rtx_insn *.
12283         (call_from_call_insn): Strengthen param "insn" from rtx to
12284         rtx_call_insn *.
12285         (final_scan_insn): Rename param from "insn" to "uncast_insn",
12286         introducing a new local rtx_insn * "insn" using a checked cast to
12287         effectively strengthen "insn" from rtx to rtx_insn * without
12288         affecting the type signature.  Strengthen return type and locals
12289         "next", "note", "prev", "new_rtx" from rtx to rtx_insn *.  Remove
12290         now-redundant checked cast to rtx_insn * from both invocations of
12291         debug_hooks->var_location.  Convert CALL_P into a dyn_cast,
12292         introducing a local "call_insn" for use when invoking
12293         call_from_call_insn.
12294         (notice_source_line): Strengthen param "insn" from rtx to
12295         rtx_insn *.
12296         (leaf_function_p): Likewise for local "insn".
12297         (final_forward_branch_p): Likewise.
12298         (leaf_renumber_regs): Likewise for param "first".
12299         (rest_of_clean_state): Likewise for locals "insn" and "next".
12300         (self_recursive_call_p): Likewise for param "insn".
12301         (collect_fn_hard_reg_usage): Likewise for local "insn".
12302         (get_call_fndecl): Likewise for param "insn".
12303         (get_call_cgraph_rtl_info): Likewise.
12304         (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
12305         introducing a new local rtx_insn * "insn" using a checked cast to
12306         effectively strengthen "insn" from rtx to rtx_insn * without
12307         affecting the type signature.
12309         * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
12310         cast when assigning from param "insn" to current_output_insn.
12311         (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
12312         so that we can assign it back to current_output_insn.
12314 2014-08-20  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
12316         * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
12317         atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
12318         atmxt540s and atmxt540sreva devices.
12319         * config/avr/avr-tables.opt: Regenerate.
12320         * config/avr/t-multilib: Regenerate.
12321         * doc/avr-mmcu.texi: Regenerate.
12323 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12325         * expr.c (convert_move): Strengthen local "insns" from rtx to
12326         rtx_insn *.
12327         (emit_block_move_via_loop): Strengthen locals "cmp_label" and
12328         "top_label" from rtx to rtx_code_label *.
12329         (move_block_to_reg): Strengthen local "insn", "last" from rtx to
12330         rtx_insn *.
12331         (emit_single_push_insn): Likewise for locals "prev", "last".
12332         (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
12333         to rtx_code_label *.
12334         (store_constructor): Likewise for locals "loop_start", "loop_end".
12335         (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
12336         rtx_insn *.
12337         (expand_expr_real_2): Likewise.
12338         (expand_expr_real_1): Strengthen local "label" from rtx to
12339         rtx_code_label *.
12341 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12343         * expmed.c (store_bit_field_using_insv): Strengthen local "last"
12344         from rtx to rtx_insn *.
12345         (store_bit_field_1): Likewise.
12346         (extract_bit_field_1): Likewise.
12347         (expand_mult_const): Likewise for local "insns".
12348         (expmed_mult_highpart): Strengthen local "label" from rtx to
12349         rtx_code_label *.
12350         (expand_smod_pow2): Likewise.
12351         (expand_sdiv_pow2): Likewise.
12352         (expand_divmod): Strengthen locals "last", "insn" from rtx to
12353         rtx_insn *.  Strengthen locals "label", "label1", "label2",
12354         "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
12355         (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
12356         (emit_store_flag): Likewise.
12357         (emit_store_flag_force): Strengthen local "label" from rtx to
12358         rtx_code_label *.
12359         (do_cmp_and_jump): Likewise for param "label".
12361 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12363         * explow.c (force_reg): Strengthen local "insn" from rtx to
12364         rtx_insn *.
12365         (adjust_stack_1): Likewise.
12366         (allocate_dynamic_stack_space): Likewise.  Strengthen locals
12367         "final_label", "available_label", "space_available" from rtx to
12368         rtx_code_label *.
12369         (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
12370         (anti_adjust_stack_and_probe): Likewise.
12372 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12374         * except.h (sjlj_emit_function_exit_after): Strengthen param
12375         "after" from rtx to rtx_insn *.  This is only called with
12376         result of get_last_insn (in function.c) so type-change should be
12377         self-contained.
12379         * function.h (struct rtl_eh): Strengthen field "ehr_label" from
12380         rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
12381         to rtx_insn *.  These fields are only used from except.c so this
12382         type-change should be self-contained to this patch.
12384         * except.c (emit_to_new_bb_before): Strengthen param "seq" and
12385         local "last" from rtx to rtx_insn *.
12386         (dw2_build_landing_pads): Likewise for local "seq".
12387         (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
12388         (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
12389         rtx to rtx_code_label *.  Strengthen locals "fn_begin", "seq" from
12390         rtx to rtx_insn *.
12391         (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
12392         to rtx_insn *.
12393         (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
12394         (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
12395         (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
12396         referring to an insn.  Strengthen local "dispatch_label" from
12397         rtx to rtx_code_label *.
12398         (set_nothrow_function_flags): Strengthen local "insn" from rtx to
12399         rtx_insn *.
12400         (expand_eh_return): Strengthen local "around_label" from
12401         rtx to rtx_code_label *.
12402         (convert_to_eh_region_ranges): Strengthen locals "iter",
12403         "last_action_insn", "first_no_action_insn",
12404         "first_no_action_insn_before_switch",
12405         "last_no_action_insn_before_switch", from rtx to rtx_insn *.
12407 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12409         * dwarf2out.c (last_var_location_insn): Strengthen this variable
12410         from rtx to rtx_insn *.
12411         (cached_next_real_insn): Likewise.
12412         (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
12413         working with insns.
12414         (dwarf2out_var_location): Strengthen locals "next_real",
12415         "next_note", "expected_next_loc_note", "last_start", "insn" from
12416         rtx to rtx_insn *.
12418 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12420         * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
12421         from rtx to rtx_insn *.
12422         (create_pseudo_cfg): Likewise for local "insn".
12424 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12426         * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
12427         from rtx to rtx_insn *.
12428         (df_bb_regno_last_def_find): Likewise.
12430         * df-problems.c (df_rd_bb_local_compute): Likewise.
12431         (df_lr_bb_local_compute): Likewise.
12432         (df_live_bb_local_compute): Likewise.
12433         (df_chain_remove_problem): Likewise.
12434         (df_chain_create_bb): Likewise.
12435         (df_word_lr_bb_local_compute): Likewise.
12436         (df_remove_dead_eq_notes): Likewise for param "insn".
12437         (df_note_bb_compute): Likewise for local "insn".
12438         (simulate_backwards_to_point): Likewise.
12439         (df_md_bb_local_compute): Likewise.
12441         * df-scan.c (df_scan_free_bb_info): Likewise.
12442         (df_scan_start_dump): Likewise.
12443         (df_scan_start_block): Likewise.
12444         (df_install_ref_incremental): Likewise for local "insn".
12445         (df_insn_rescan_all): Likewise.
12446         (df_reorganize_refs_by_reg_by_insn): Likewise.
12447         (df_reorganize_refs_by_insn_bb): Likewise.
12448         (df_recompute_luids): Likewise.
12449         (df_bb_refs_record): Likewise.
12450         (df_update_entry_exit_and_calls): Likewise.
12451         (df_bb_verify): Likewise.
12453 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12455         * ddg.h (struct ddg_node): Strengthen fields "insn" and
12456         "first_note" from rtx to rtx_insn *.
12457         (get_node_of_insn): Likewise for param 2 "insn".
12458         (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
12460         * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
12461         rtx_insn *.
12462         (mem_write_insn_p): Likewise.
12463         (mem_access_insn_p): Likewise.
12464         (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
12465         (def_has_ccmode_p): Likewise for param "insn".
12466         (add_cross_iteration_register_deps): Likewise for locals
12467         "def_insn" and "use_insn".
12468         (insns_may_alias_p): Likewise for params "insn1" and "insn2".
12469         (build_intra_loop_deps): Likewise for local "src_insn".
12470         (create_ddg): Strengthen locals "insn" and "first_note" from rtx
12471         to rtx_insn *.
12472         (get_node_of_insn): Likewise for param "insn".
12474 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12476         * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
12477         (deletable_insn_p): Strengthen param "insn" from rtx to
12478         rtx_insn *.  Add checked cast to rtx_call_insn when invoking
12479         find_call_stack_args, since this is guarded by CALL_P (insn).
12480         (marked_insn_p): Strengthen param "insn" from rtx to
12481         rtx_insn *.
12482         (mark_insn): Likewise.  Add checked cast to rtx_call_insn when
12483         invoking find_call_stack_args, since this is guarded by
12484         CALL_P (insn).
12485         (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
12486         rtx_insn *; we know this is an insn since this was called by
12487         mark_nonreg_stores.
12488         (mark_nonreg_stores_2): Likewise.
12489         (mark_nonreg_stores): Strengthen param "insn" from rtx to
12490         rtx_insn *.
12491         (find_call_stack_args): Strengthen param "call_insn" from rtx to
12492         rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
12493         to rtx_insn *.
12494         (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
12495         from rtx to rtx_insn *.
12496         (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
12497         "next", "ref_insn".
12498         (delete_unmarked_insns): Likewise for locals "insn", "next".
12499         (prescan_insns_for_dce): Likewise for locals "insn", "prev".
12500         (mark_reg_dependencies): Likewise for param "insn".
12501         (rest_of_handle_ud_dce): Likewise for local "insn".
12502         (word_dce_process_block): Likewise.
12503         (dce_process_block): Likewise.
12505 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12507         * cse.c (struct qty_table_elem): Strengthen field "const_insn"
12508         from rtx to rtx_insn *.
12509         (struct change_cc_mode_args): Likewise for field "insn".
12510         (this_insn): Strengthen from rtx to rtx_insn *.
12511         (make_new_qty): Replace use of NULL_RTX with NULL when dealing
12512         with insn.
12513         (validate_canon_reg): Strengthen param "insn" from rtx to
12514         rtx_insn *.
12515         (canon_reg): Likewise.
12516         (fold_rtx): Likewise.  Replace use of NULL_RTX with NULL when
12517         dealing with insn.
12518         (record_jump_equiv): Strengthen param "insn" from rtx to
12519         rtx_insn *.
12520         (try_back_substitute_reg): Likewise, also for locals "prev",
12521         "bb_head".
12522         (find_sets_in_insn): Likewise for param "insn".
12523         (canonicalize_insn): Likewise.
12524         (cse_insn): Likewise.  Add a checked cast.
12525         (invalidate_from_clobbers): Likewise for param "insn".
12526         (invalidate_from_sets_and_clobbers): Likewise.
12527         (cse_process_notes_1): Replace use of NULL_RTX with NULL when
12528         dealing with insn.
12529         (cse_prescan_path): Strengthen local "insn" from rtx to
12530         rtx_insn *.
12531         (cse_extended_basic_block): Likewise for locals "insn" and
12532         "prev_insn".
12533         (cse_main): Likewise for param "f".
12534         (check_for_label_ref): Likewise for local "insn".
12535         (set_live_p): Likewise for second param ("insn").
12536         (insn_live_p): Likewise for first param ("insn") and for local
12537         "next".
12538         (cse_change_cc_mode_insn): Likewise for first param "insn".
12539         (cse_change_cc_mode_insns): Likewise for first and second params
12540         "start" and "end".
12541         (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
12542         and "end".
12543         (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
12544         "cc_src_insn".
12546 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12547             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12548             Anna Tikhonova  <anna.tikhonova@intel.com>
12549             Ilya Tocar  <ilya.tocar@intel.com>
12550             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12551             Ilya Verbin  <ilya.verbin@intel.com>
12552             Kirill Yukhin  <kirill.yukhin@intel.com>
12553             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12555         * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
12556         New.
12557         * config/i386/sse.md
12558         (define_mode_iterator VI248_AVX2): Delete.
12559         (define_mode_iterator VI2_AVX2_AVX512BW): New.
12560         (define_mode_iterator VI48_AVX2): Ditto.
12561         (define_insn <shift_insn><mode>3): Delete.
12562         (define_insn "<shift_insn><mode>3<mask_name>" with
12563         VI2_AVX2_AVX512BW): New.
12564         (define_insn "<shift_insn><mode>3<mask_name>" with
12565         VI48_AVX2): Ditto.
12567 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12568             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12569             Anna Tikhonova  <anna.tikhonova@intel.com>
12570             Ilya Tocar  <ilya.tocar@intel.com>
12571             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12572             Ilya Verbin  <ilya.verbin@intel.com>
12573             Kirill Yukhin  <kirill.yukhin@intel.com>
12574             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12576         * config/i386/sse.md
12577         (define_mode_iterator VI4F_BRCST32x2): New.
12578         (define_mode_attr 64x2_mode): Ditto.
12579         (define_mode_attr 32x2mode): Ditto.
12580         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
12581         with VI4F_BRCST32x2): Ditto.
12582         (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
12583         with V16FI mode iterator): Ditto.
12584         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
12585         with V16FI): Ditto.
12586         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
12587         with VI8F_BRCST64x2): Ditto.
12589 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12590             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12591             Anna Tikhonova  <anna.tikhonova@intel.com>
12592             Ilya Tocar  <ilya.tocar@intel.com>
12593             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12594             Ilya Verbin  <ilya.verbin@intel.com>
12595             Kirill Yukhin  <kirill.yukhin@intel.com>
12596             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12598         * config/i386/sse.md
12599         (define_mode_iterator VI8_AVX512VL): New.
12600         (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
12602 2014-08-22  Kirill Yukhin  <kirill.yukhin@intel.com>
12604         * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
12605         (define_mode_iterator V48_AVX512VL): New.
12606         (define_mode_iterator V12_AVX512VL): Ditto.
12607         (define_insn <avx512>_load<mode>_mask): Split into two similar
12608         patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
12609         Refactor output template.
12610         (define_insn "<avx512>_store<mode>_mask"): Ditto.
12612 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12614         * cprop.c (struct occr): Strengthen field "insn" from rtx to
12615         rtx_insn *.
12616         (reg_available_p): Likewise for param "insn".
12617         (insert_set_in_table): Likewise.
12618         (hash_scan_set): Likewise.
12619         (hash_scan_insn): Likewise.
12620         (make_set_regs_unavailable): Likewise.
12621         (compute_hash_table_work): Likewise for local "insn".
12622         (reg_not_set_p): Strengthen param "insn" from const_rtx to
12623         const rtx_insn *.
12624         (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
12625         (try_replace_reg): Likewise.
12626         (find_avail_set): Likewise.
12627         (cprop_jump): Likewise for params "setcc", "jump".
12628         (constprop_register): Likewise for param "insn".
12629         (cprop_insn): Likewise.
12630         (do_local_cprop): Likewise.
12631         (local_cprop_pass): Likewise for local "insn".
12632         (bypass_block): Likewise for params "setcc" and "jump".
12633         (bypass_conditional_jumps): Likewise for locals "setcc" and
12634         "insn".
12635         (one_cprop_pass): Likewise for local "insn".
12637 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12639         * compare-elim.c (struct comparison_use): Strengthen field "insn"
12640         from rtx to rtx_insn *.
12641         (struct comparison): Likewise, also for field "prev_clobber".
12642         (conforming_compare): Likewise for param "insn".
12643         (arithmetic_flags_clobber_p): Likewise.
12644         (find_flags_uses_in_insn): Likewise.
12645         (find_comparison_dom_walker::before_dom_children): Likewise for
12646         locals "insn", "next", "last_clobber".
12647         (try_eliminate_compare): Likewise for locals "insn", "bb_head".
12649 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12651         * combine-stack-adj.c (struct csa_reflist): Strengthen field
12652         "insn" from rtx to rtx_insn *.
12653         (single_set_for_csa): Likewise for param "insn".
12654         (record_one_stack_ref): Likewise.
12655         (try_apply_stack_adjustment): Likewise.
12656         (struct record_stack_refs_data): Likewise for field "insn".
12657         (maybe_move_args_size_note): Likewise for params "last" and "insn".
12658         (prev_active_insn_bb): Likewise for return type and param "insn".
12659         (next_active_insn_bb): Likewise.
12660         (force_move_args_size_note): Likewise for params "prev" and "last"
12661         and locals "test", "next_candidate", "prev_candidate".
12662         (combine_stack_adjustments_for_block): Strengthen locals
12663         "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
12664         rtx_insn *.
12666 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
12668         * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
12669         (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
12670         (subst_insn): Likewise for this variable.
12671         (added_links_insn): Likewise.
12672         (struct insn_link): Likewise for field "insn".
12673         (alloc_insn_link): Likewise for param "insn".
12674         (struct undobuf): Likewise for field "other_insn".
12675         (find_single_use): Likewise for param "insn" and local "next".
12676         (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
12677         (delete_noop_moves): Likewise for locals "insn", "next".
12678         (create_log_links): Likewise for locals "insn", "use_insn".
12679         Strengthen local "next_use" from rtx * to rtx_insn **.
12680         (insn_a_feeds_b): Likewise for params "a", "b".
12681         (combine_instructions): Likewise for param "f" and locals "insn",
12682         "next", "prev", "first", "last_combined_insn", "link", "link1",
12683         "temp".  Replace use of NULL_RTX with NULL when referring to
12684         insns.
12685         (setup_incoming_promotions): Likewise for param "first"
12686         (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
12687         (can_combine_p): Likewise for params "insn", "i3", "pred",
12688         "pred2", "succ", "succ2" and for local "p".
12689         (combinable_i3pat): Likewise for param "i3".
12690         (cant_combine_insn_p): Likewise for param "insn".
12691         (likely_spilled_retval_p): Likewise.
12692         (adjust_for_new_dest): Likewise.
12693         (update_cfg_for_uncondjump): Likewise, also for local "insn".
12694         (try_combine): Likewise for return type and for params "i3", "i2",
12695         "i1", "i0", "last_combined_insn", and for locals "insn",
12696         "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
12697         "i0_insn".  Eliminate local "tem" in favor of new locals
12698         "tem_note" and "tem_insn", the latter being an rtx_insn *.  Add a
12699         checked cast for now to rtx_insn * on the return type of
12700         gen_rtx_INSN.  Replace use of NULL_RTX with NULL when referring to
12701         insns.
12702         (find_split_point): Strengthen param "insn" from rtx to
12703         rtx_insn *.
12704         (simplify_set): Likewise for local "other_insn".
12705         (recog_for_combine): Likewise for param "insn".
12706         (record_value_for_reg): Likewise.
12707         (record_dead_and_set_regs_1): Likewise for local
12708         "record_dead_insn".
12709         (record_dead_and_set_regs): Likewise for param "insn".
12710         (record_promoted_value): Likewise.
12711         (check_promoted_subreg): Likewise.
12712         (get_last_value_validate): Likewise.
12713         (reg_dead_at_p): Likewise.
12714         (move_deaths): Likewise for param "to_insn".
12715         (distribute_notes): Likewise for params "from_insn", "i3", "i2"
12716         and locals "place", "place2", "cc0_setter".  Eliminate local "tem
12717         in favor of new locals "tem_note" and "tem_insn", the latter being
12718         an rtx_insn *.
12719         (distribute_links): Strengthen locals "place", "insn" from rtx to
12720         rtx_insn *.
12722 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
12724         * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
12725         than a const_rtx.
12726         (can_delete_label_p): Require a const rtx_code_label * rather than
12727         a const_rtx.
12728         (delete_insn): Add checked cast to rtx_code_label * when we know
12729         we're dealing with LABEL_P (insn).  Strengthen local "bb_note" from
12730         rtx to rtx_insn *.
12731         (delete_insn_chain): Strengthen locals "prev" and "current" from
12732         rtx to rtx_insn *.  Add a checked cast when assigning from
12733         "finish" (strengthening the params will come later).  Add a
12734         checked cast to rtx_note * in region where we know
12735         NOTE_P (current).
12736         (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
12737         rtx_insn *.
12738         (compute_bb_for_insn): Likewise.
12739         (free_bb_for_insn): Likewise for local "insn".
12740         (compute_bb_for_insn): Likewise.
12741         (update_bb_for_insn_chain): Strengthen params "begin", "end" and
12742         local "insn" from rtx to rtx_insn *
12743         (flow_active_insn_p): Require a const rtx_insn * rather than a
12744         const_rtx.
12745         (contains_no_active_insn_p): Strengthen local "insn" from rtx to
12746         rtx_insn *.
12747         (can_fallthru): Likewise for locals "insn" and "insn2".
12748         (bb_note): Likewise for local "note".
12749         (first_insn_after_basic_block_note): Likewise for local "note" and
12750         for return type.
12751         (rtl_split_block): Likewise for locals "insn" and "next".
12752         (unique_locus_on_edge_between_p): Likewise for locals "insn" and
12753         "end".
12754         (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
12755         "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
12756         "prev", "tmp".
12757         (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
12758         them), "kill_from", "barrier", "new_insn".
12759         (patch_jump_insn): Likewise for params "insn", "old_label".
12760         (redirect_branch_edge): Likewise for locals "old_label", "insn".
12761         (force_nonfallthru_and_redirect): Likewise for locals "insn",
12762         "old_label", "new_label".
12763         (rtl_tidy_fallthru_edge): Likewise for local "q".
12764         (rtl_split_edge): Likewise for locals "before", "last".
12765         (commit_one_edge_insertion): Likewise for locals "before",
12766         "after", "insns", "tmp", "last", adding a checked cast where
12767         currently necessary.
12768         (commit_edge_insertions): Likewise.
12769         (rtl_dump_bb): Likewise for locals "insn", "last".
12770         (print_rtl_with_bb): Likewise for local "x".
12771         (rtl_verify_bb_insns): Likewise for local "x".
12772         (rtl_verify_bb_pointers): Likewise for local "insn".
12773         (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
12774         "head", "end".
12775         (rtl_verify_fallthru): Likewise for local "insn".
12776         (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
12777         (purge_dead_edges): Likewise for local "insn".
12778         (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
12779         (skip_insns_after_block): Likewise for return type and for locals
12780         "insn", "last_insn", "next_head", "prev".
12781         (record_effective_endpoints): Likewise for locals "next_insn",
12782         "insn", "end".
12783         (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
12784         (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
12785         (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
12786         (duplicate_insn_chain): For now, add checked cast from rtx to
12787         rtx_insn * when returning insn.
12788         (cfg_layout_duplicate_bb): Likewise for local "insn".
12789         (cfg_layout_delete_block): Likewise for locals "insn", "next",
12790         "prev", "remaints".
12791         (cfg_layout_merge_blocks): Likewise for local "insn", "last".
12792         (rtl_block_empty_p): Likewise.
12793         (rtl_split_block_before_cond_jump): Likewise for locals "insn",
12794         "split_point", "last".
12795         (rtl_block_ends_with_call_p): Likewise for local "insn".
12796         (need_fake_edge_p): Strengthen param "insn" from const_rtx to
12797         const rtx_insn *.
12798         (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
12799         "split_at_insn" from rtx to rtx_insn *.
12800         (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
12801         (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
12802         to const rtx_insn *.
12803         (rtl_account_profile_record): Likewise.
12805 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
12807         * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
12808         rtx to rtx_insn *.
12809         (average_num_loop_insns): Likewise.
12810         (init_set_costs): Likewise for local "seq".
12811         (seq_cost): Likewise for param "seq", from const_rtx to const
12812         rtx_insn *.
12814 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
12816         * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
12817         rtx to rtx_insn *.
12819 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
12821         * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
12822         "f1" and "f2" from rtx * to rtx_insn **.
12823         (flow_find_head_matching_sequence): Likewise.
12825         * cfgcleanup.c (try_simplify_condjump): Strengthen local
12826         "cbranch_insn" from rtx to rtx_insn *.
12827         (thread_jump): Likewise for local "insn".
12828         (try_forward_edges): Likewise for local "last".
12829         (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
12830         (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
12831         "real_b_end".
12832         (can_replace_by): Likewise for params "i1", "i2".
12833         (old_insns_match_p): Likewise.
12834         (merge_notes): Likewise.
12835         (walk_to_nondebug_insn): Likewise for param "i1".
12836         (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
12837         to rtx_insn **.  Strengthen locals "i1", "i2", "last1", "last2",
12838         "afterlast1", "afterlast2" from rtx to rtx_insn *.
12839         (flow_find_head_matching_sequence): Strengthen params "f1" and
12840         "f2" from rtx * to rtx_insn **.  Strengthen locals "i1", "i2",
12841         "last1", "last2", "beforelast1", "beforelast2" from rtx to
12842         rtx_insn *.
12843         (outgoing_edges_match): Likewise for locals "last1", "last2".
12844         (try_crossjump_to_edge): Likewise for local "insn".
12845         Replace call to for_each_rtx with for_each_rtx_in_insn.
12847         (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
12848         (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
12849         "e0_last", "e_last", "head", "curr", "insn".  Strengthen locals
12850         "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
12851         (try_optimize_cfg): Strengthen local "last" from rtx to
12852         rtx_insn *.
12853         (delete_dead_jumptables): Likewise for locals "insn", "next",
12854         "label".
12856         * ifcvt.c (cond_exec_process_if_block): Likewise for locals
12857         "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
12858         "rtx else_first_tail", to reflect the basic-block.h changes above.
12860 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
12862         * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
12863         rtx_insn *.
12864         (purge_dead_tablejump_edges): Likewise.
12865         (find_bb_boundaries): Likewise for locals "insn", "end",
12866         "flow_transfer_insn".
12868 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
12870         * caller-save.c (save_call_clobbered_regs): Strengthen locals
12871         "ins" and "prev" from rtx to rtx_insn *.
12873 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
12875         * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
12876         rtx_insn *.
12877         (internal_arg_pointer_exp_state): Likewise for field "scan_start".
12878         (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
12879         "scan_start".
12880         (load_register_parameters): Likewise for local "before_arg".
12881         (check_sibcall_argument_overlap): Likewise for param "insn".
12882         (expand_call): Likewise for locals "normal_call_insns",
12883         "tail_call_insns", "insns", "before_call", "after_args",
12884         "before_arg", "last", "prev".  Strengthen one of the "last" from
12885         rtx to rtx_call_insn *.
12886         (fixup_tail_calls): Strengthen local "insn" from rtx to
12887         rtx_insn *.
12888         (emit_library_call_value_1): Likewise for locals "before_call" and
12889         "last".
12891 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
12893         * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
12894         and "last" from rtx to rtx_insn *.
12895         (expand_builtin_nonlocal_goto): Likewise for local "insn".
12896         (expand_builtin_apply): Strengthen local "call_insn" from rtx to
12897         rtx_call_insn *.
12898         (expand_errno_check): Strengthen local "lab" from rtx to
12899         rtx_code_label *.
12900         (expand_builtin_mathfn): Strengthen local "insns" from rtx to
12901         rtx_insn *.
12902         (expand_builtin_mathfn_2): Likewise.
12903         (expand_builtin_mathfn_ternary): Likewise.
12904         (expand_builtin_mathfn_3): Likewise.
12905         (expand_builtin_interclass_mathfn): Likewise for local "last".
12906         (expand_builtin_int_roundingfn): Likewise for local "insns".
12907         (expand_builtin_int_roundingfn_2): Likewise.
12908         (expand_builtin_strlen): Likewise for local "before_strlen".
12909         (expand_builtin_strncmp): Likewise for local "seq".
12910         (expand_builtin_signbit): Likewise for local "last".
12911         (expand_builtin_atomic_compare_exchange): Strengthen local "label"
12912         from rtx to rtx_code_label *.
12913         (expand_stack_restore):  Strengthen local "prev" from rtx to
12914         rtx_insn *.
12916 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
12918         * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
12919         to rtx_insn *.
12920         (struct btr_def_s): Likewise.
12921         (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
12922         const rtx_insn *.
12923         (add_btr_def): Likewise.
12924         (new_btr_user): Likewise.
12925         (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
12926         rtx to rtx_insn *.
12927         (link_btr_uses): Likewise.
12928         (move_btr_def): Likewise for locals "insp", "old_insn",
12929         "new_insn".  Add checked cast to rtx_insn * for now on result of
12930         gen_move_insn.
12931         (can_move_up): Strengthen param "insn" from const_rtx to
12932         const rtx_insn *.
12934 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
12936         * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
12937         rtx_insn *.
12938         (get_uncond_jump_length): Likewise for locals "label", "jump".
12939         (fix_up_crossing_landing_pad): Likewise for locals "new_label",
12940         "jump", "insn".
12941         (add_labels_and_missing_jumps): Likewise for local "new_jump".
12942         (fix_up_fall_thru_edges): Likewise for local "old_jump".
12943         (find_jump_block): Likewise for local "insn".
12944         (fix_crossing_conditional_branches): Likewise for locals
12945         "old_jump", "new_jump".
12946         (fix_crossing_unconditional_branches): Likewise for locals
12947         "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
12948         (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
12950 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
12952         * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
12953         rtx to rtx_insn *.
12954         (struct mem_insn): Likewise for field "insn".
12955         (reg_next_use): Strengthen from rtx * to rtx_insn **.
12956         (reg_next_inc_use): Likewise.
12957         (reg_next_def): Likewise.
12958         (move_dead_notes): Strengthen params "to_insn" and "from_insn"
12959         from rtx to rtx_insn *.
12960         (move_insn_before): Likewise for param "next_insn" and local "insns".
12961         (attempt_change): Likewise for local "mov_insn".
12962         (try_merge): Likewise for param "last_insn".
12963         (get_next_ref): Likewise for return type and local "insn".
12964         Strengthen param "next_array" from rtx * to rtx_insn **.
12965         (parse_add_or_inc): Strengthen param "insn" from rtx to
12966         rtx_insn *.
12967         (find_inc): Likewise for locals "insn" and "other_insn" (three of
12968         the latter).
12969         (merge_in_block): Likewise for locals "insn", "curr",
12970         "other_insn".
12971         (pass_inc_dec::execute): Update allocations of the arrays to
12972         reflect the stronger types.
12974 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
12976         * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
12977         and "jump" from rtx to rtx_insn *.  Strengthen local "top_label"
12978         from rtx to rtx_code_label *.
12980 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
12982         * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
12983         to rtx_insn *.
12985 2014-08-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
12987         * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
12988         generated a warning and prevented bootstrapping the compiler.
12990 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
12992         * rtl.h (delete_related_insns): Strengthen return type from rtx to
12993         rtx_insn *.
12995         * jump.c (delete_related_insns): Likewise, also for locals "next"
12996         and "prev".
12998 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13000         * genautomata.c (output_internal_insn_latency_func): When writing
13001         the function "internal_insn_latency" to insn-automata.c,
13002         strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
13003         allowing the optional guard function of (define_bypass) clauses to
13004         expect a pair of rtx_insn *, rather than a pair of rtx.
13005         (output_insn_latency_func): When writing the function
13006         "insn_latency", add an "uncast_" prefix to params "insn" and
13007         "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
13008         using checked casts from the params, thus enabling the above
13009         change to the generated "internal_insn_latency" function.
13011 2014-08-21  Jan Hubicka  <hubicka@ucw.cz>
13013         PR tree-optimization/62091
13014         * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
13015         handle correctly arrays.
13016         (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
13017         inheritance binfos.
13018         (record_known_type): Walk into inner type.
13019         (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
13020         condition on no type changes.
13022 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13024         * genattrtab.c (write_attr_get): Within the generated get_attr_
13025         functions, rename param "insn" to "uncast_insn" and reintroduce
13026         "insn" as an local rtx_insn * using a checked cast, so that "insn"
13027         is an rtx_insn * within insn-attrtab.c
13029 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13031         * output.h (peephole): Strengthen return type from rtx to
13032         rtx_insn *.
13033         * rtl.h (delete_for_peephole): Likewise for both params.
13034         * genpeep.c (main): In generated "peephole" function, strengthen
13035         return type and local "insn" from rtx to rtx_insn *.  For now,
13036         rename param "ins1" to "uncast_ins1", adding "ins1" back as an
13037         rtx_insn *, with a checked cast.
13038         * jump.c (delete_for_peephole): Strengthen params "from", "to" and
13039         locals "insn", "next", "prev" from rtx to rtx_insn *.
13041 2014-08-21  Marc Glisse  <marc.glisse@inria.fr>
13043         PR tree-optimization/62112
13044         * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
13045         * gimple-iterator.h (gsi_replace): Return bool.
13046         * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
13047         moved from ref_may_alias_global_p.
13048         (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
13049         New overloads.
13050         (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
13051         (stmt_kills_ref_p_1): Rename...
13052         (stmt_kills_ref_p): ... to this.
13053         * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
13054         stmt_kills_ref_p): Declare.
13055         * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
13056         Move the self-assignment case...
13057         (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
13059 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13061         * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
13063         * emit-rtl.c (try_split): Likewise, also for locals "before" and
13064         "after".  For now, don't strengthen param "trial", which requires
13065         adding checked casts when returning it.
13067 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13069         * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
13070         "label" from rtx to rtx_code_label *.  Strengthen param 1 of
13071         "var_location" hook from rtx to rtx_insn *.
13072         (debug_nothing_rtx): Delete in favor of...
13073         (debug_nothing_rtx_code_label): New prototype.
13074         (debug_nothing_rtx_rtx): Delete unused prototype.
13075         (debug_nothing_rtx_insn): New prototype.
13077         * final.c (final_scan_insn): Add checked cast to rtx_insn * when
13078         invoking debug_hooks->var_location (in two places, one in a NOTE
13079         case of a switch statement, the other guarded by a CALL_P
13080         conditional.  Add checked cast to rtx_code_label * when invoking
13081         debug_hooks->label (within CODE_LABEL case of switch statement).
13083         * dbxout.c (dbx_debug_hooks): Update "label" hook from
13084         debug_nothing_rtx to debug_nothing_rtx_code_label.  Update
13085         "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
13086         (xcoff_debug_hooks): Likewise.
13087         * debug.c (do_nothing_debug_hooks): Likewise.
13088         (debug_nothing_rtx): Delete in favor of...
13089         (debug_nothing_rtx_insn): New function.
13090         (debug_nothing_rtx_rtx): Delete unused function.
13091         (debug_nothing_rtx_code_label): New function.
13092         * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
13093         debug_nothing_rtx to debug_nothing_rtx_code_label.
13094         (dwarf2out_var_location): Strengthen param "loc_note" from rtx
13095         to rtx_insn *.
13096         * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
13097         debug_nothing_rtx to debug_nothing_rtx_insn.
13098         (sdbout_label): Strengthen param "insn" from rtx to
13099         rtx_code_label *.
13100         * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
13101         debug_nothing_rtx to debug_nothing_rtx_code_label.  Update
13102         "var_location" hook from debug_nothing_rtx to
13103         debug_nothing_rtx_insn.
13105 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13107         * recog.h (insn_output_fn): Update this function typedef to match
13108         the changes below to the generated output functions, strengthening
13109         the 2nd param from rtx to rtx_insn *.
13111         * final.c (get_insn_template): Add a checked cast to rtx_insn * on
13112         insn when invoking an output function, to match the new signature
13113         of insn_output_fn with a stronger second param.
13115         * genconditions.c (write_header): In the generated code for
13116         gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
13117         to match the other changes in this patch.
13119         * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
13120         the generated "gen_" functions from rtx to rtx_insn * within their
13121         implementations.
13123         * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
13124         the subfunctions within the generated "recog_", "split", "peephole2"
13125         function trees from rtx to rtx_insn *.  For now, the top-level
13126         generated functions ("recog", "split", "peephole2") continue to
13127         take a plain rtx for "insn", to avoid introducing dependencies on
13128         other patches.  Rename this 2nd param from "insn" to
13129         "uncast_insn", and reintroduce "insn" as a local variable of type
13130         rtx_insn *, initialized at the top of the generated function with
13131         a checked cast on "uncast_insn".
13132         (make_insn_sequence): Strengthen the 1st param "curr_insn" of
13133         the generated "gen_" functions from rtx to rtx_insn * within their
13134         prototypes.
13136         * genoutput.c (process_template): Strengthen the 2nd param within
13137         the generated "output_" functions "insn" from rtx to rtx_insn *.
13139 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
13141         * tree-profile.c (tree_profiling): Skip external functions
13142         when doing coverage instrumentation.
13143         * cgraphunit.c (compile): Do not assert that all nodes are reachable.
13145 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13147         * config/rs6000/altivec.h (vec_cpsgn): New #define.
13148         (vec_mergee): Likewise.
13149         (vec_mergeo): Likewise.
13150         (vec_cntlz): Likewise.
13151         * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
13152         entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
13153         VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
13154         VMRGEW, and VMRGOW.
13155         * doc/extend.texi: Document various forms of vec_cpsgn,
13156         vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
13157         vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
13158         vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
13159         vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
13160         vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
13162 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13164         * config/rs6000/rs6000.c (context.h): New include.
13165         (tree-pass.h): Likewise.
13166         (make_pass_analyze_swaps): New decl.
13167         (rs6000_option_override): Register pass_analyze_swaps.
13168         (swap_web_entry): New subsclass of web_entry_base (df.h).
13169         (special_handling_values): New enum.
13170         (union_defs): New function.
13171         (union_uses): Likewise.
13172         (insn_is_load_p): Likewise.
13173         (insn_is_store_p): Likewise.
13174         (insn_is_swap_p): Likewise.
13175         (rtx_is_swappable_p): Likewise.
13176         (insn_is_swappable_p): Likewise.
13177         (chain_purpose): New enum.
13178         (chain_contains_only_swaps): New function.
13179         (mark_swaps_for_removal): Likewise.
13180         (swap_const_vector_halves): Likewise.
13181         (adjust_subreg_index): Likewise.
13182         (permute_load): Likewise.
13183         (permute_store): Likewise.
13184         (handle_special_swappables): Likewise.
13185         (replace_swap_with_copy): Likewise.
13186         (dump_swap_insn_table): Likewise.
13187         (rs6000_analyze_swaps): Likewise.
13188         (pass_data_analyze_swaps): New pass_data.
13189         (pass_analyze_swaps): New rtl_opt_pass.
13190         (make_pass_analyze_swaps): New function.
13191         * config/rs6000/rs6000.opt (moptimize-swaps): New option.
13193 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13195         * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
13196         type from rtx to rtx_insn *.
13197         (create_copy_of_insn_rtx): Likewise.
13198         * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
13199         (create_copy_of_insn_rtx): Likewise, also for local "res".
13201 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13203         * rtl.h (find_first_parameter_load): Strengthen return type from
13204         rtx to rtx_insn *.
13205         * rtlanal.c (find_first_parameter_load): Strengthen return type
13206         from rtx to rtx_insn *.  Add checked cast for now, to postpone
13207         strengthening the params.
13209 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13211         PR fortran/44054
13212         * diagnostic.c: Set default caret.
13213         (diagnostic_show_locus): Use it. Tell pretty-printer that a new
13214         line is needed.
13215         * diagnostic.h (struct diagnostic_context):
13217 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13219         * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
13220         (sel_bb_head): Strengthen return type insn_t (currently just an
13221         rtx) to rtx_insn *.
13222         (sel_bb_end): Likewise.
13224         * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
13225         (sel_bb_head): Strengthen return type and local "head" from
13226         insn_t (currently just an rtx) to rtx_insn *.
13227         (sel_bb_end): Likewise for return type.
13228         (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
13229         working with insn.
13231 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13233         * basic-block.h (get_last_bb_insn): Strengthen return type from
13234         rtx to rtx_insn *.
13235         * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
13236         end".
13238 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13240         PR fortran/44054
13241         * diagnostic.c (default_diagnostic_finalizer): Move caret printing
13242          to here ...
13243         (diagnostic_report_diagnostic): ... from here.
13244         * toplev.c (general_init): Move code to c-family.
13246 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13248         * df.h (web_entry_base): Replace existing struct web_entry with a
13249         new class web_entry_base with only the predecessor member.
13250         (unionfind_root): Remove declaration and move to class member.
13251         (unionfind_union): Remove declaration and move to friend
13252         function.
13253         (union_defs): Remove declaration.
13254         * web.c (web_entry_base::unionfind_root): Modify to be member
13255         function and adjust accessors.
13256         (unionfind_union): Modify to be friend function and adjust
13257         accessors.
13258         (web_entry): New subclass of web_entry_base containing the reg
13259         member.
13260         (union_match_dups): Modify for struct -> class changes.
13261         (union_defs): Likewise.
13262         (entry_register): Likewise.
13263         (pass_web::execute): Likewise.
13265 2014-08-20  Bill Schmidt  <wschmidt@vnet.ibm.com>
13267         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
13268         builtin define __VEC_ELEMENT_REG_ORDER__.
13270 2014-08-20  Martin Jambor  <mjambor@suse.cz>
13271             Wei Mi  <wmi@google.com>
13273         PR ipa/60449
13274         PR middle-end/61776
13275         * tree-ssa-operands.c (update_stmt_operands): Remove
13276         MODIFIED_NORETURN_CALLS.
13277         * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
13278         (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
13279         (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
13280         (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
13281         * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
13282         * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
13283         (gimple_call_set_ctrl_altering): New func.
13284         (gimple_call_ctrl_altering_p): Ditto.
13285         * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
13286         (make_blocks): Use gimple_call_initialize_ctrl_altering.
13287         (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
13288         (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
13289         remove MODIFIED_NORETURN_CALLS.
13291 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
13293         * coverage.c (coverage_compute_profile_id): Return non-0;
13294         also handle symbols with unique name.
13295         (coverage_end_function): Do not skip DECL_EXTERNAL functions.
13297 2014-08-20  Steve Ellcey  <sellcey@mips.com>
13299         PR middle-end/49191
13300         * doc/sourcebuild.texi (non_strict_align): New.
13302 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
13304         * cgraphunit.c (ipa_passes, compile): Reshedule
13305         symtab_remove_unreachable_nodes passes; update comments.
13306         * ipa-inline.c (pass_data_ipa_inline): Do not schedule
13307         TODO_remove_functions before the pass; the functions ought to be
13308         already removed.
13309         * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
13310         TODO_remove_functions.
13311         * passes.c (pass_data_early_local_passes): Do not schedule function
13312         removal.
13313         (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
13315 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13317         PR c/59304
13318         * opts-common.c (set_option): Call diagnostic_classify_diagnostic
13319         before setting the option.
13320         * diagnostic.c (diagnostic_classify_diagnostic): Record
13321         command-line status.
13323 2014-08-20  Richard Biener  <rguenther@suse.de>
13325         PR lto/62190
13326         * tree.c (build_common_tree_nodes): Use make_or_reuse_type
13327         to build uint{16,32,64}_type_node.
13329 2014-08-20  Terry Guo  <terry.guo@arm.com>
13331         * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
13332         with immediate_operand.
13334 2014-08-20  David Malcolm  <dmalcolm@redhat.com>
13336         * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
13337         "insn" from an as_a to a safe_as_a, for the case when "insn" is
13338         NULL.
13340 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13342         PR preprocessor/51303
13343         * incpath.c (remove_duplicates): Use cpp_warning.
13345 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13347         PR c/60975
13348         PR c/53063
13349         * doc/options.texi (CPP): Document it.
13350         * doc/invoke.texi (Wvariadic-macros): Fix documentation.
13351         * optc-gen.awk: Handle CPP.
13352         * opth-gen.awk: Likewise.
13354 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
13356         * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
13357         rtx_insn *.
13358         (duplicate_insn_chain): Likewise.
13359         * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
13360         rtx_insn *, also for locals "prevfirst" and "nextlast".  Add a
13361         checked cast for now (until we can strengthen the params in the
13362         same way).
13363         (duplicate_insn_chain): Likewise.
13365 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
13367         * rtl.h (next_cc0_user): Strengthen return type from rtx to
13368         rtx_insn *.
13369         (prev_cc0_setter): Likewise.
13371         * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
13372         rtx_insn *, adding checked casts for now as necessary.
13373         (prev_cc0_setter): Likewise.
13375 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
13377         * expr.h (emit_move_insn): Strengthen return type from rtx to
13378         rtx_insn *.
13379         (emit_move_insn_1): Likewise.
13380         (emit_move_complex_push): Likewise.
13381         (emit_move_complex_parts): Likewise.
13383         * expr.c (emit_move_via_integer): Strengthen return type from rtx
13384         to rtx_insn *.  Replace use of NULL_RTX with NULL when working
13385         with insns.
13386         (emit_move_complex_push): Strengthen return type from rtx to
13387         rtx_insn *.
13388         (emit_move_complex): Likewise, also for local "ret".
13389         (emit_move_ccmode): Likewise.
13390         (emit_move_multi_word): Likewise for return type and locals
13391         "last_insn", "seq".
13392         (emit_move_insn_1): Likewise for return type and locals "result",
13393         "ret".
13394         (emit_move_insn): Likewise for return type and local "last_insn".
13395         (compress_float_constant): Likewise.
13397 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
13399         * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
13400         from rtx to rtx_insn *.
13402         * rtl.h (emit_insn_before): Likewise.
13403         (emit_insn_before_noloc): Likewise.
13404         (emit_insn_before_setloc): Likewise.
13405         (emit_jump_insn_before): Likewise.
13406         (emit_jump_insn_before_noloc): Likewise.
13407         (emit_jump_insn_before_setloc): Likewise.
13408         (emit_call_insn_before): Likewise.
13409         (emit_call_insn_before_noloc): Likewise.
13410         (emit_call_insn_before_setloc): Likewise.
13411         (emit_debug_insn_before): Likewise.
13412         (emit_debug_insn_before_noloc): Likewise.
13413         (emit_debug_insn_before_setloc): Likewise.
13414         (emit_label_before): Likewise.
13415         (emit_insn_after): Likewise.
13416         (emit_insn_after_noloc): Likewise.
13417         (emit_insn_after_setloc): Likewise.
13418         (emit_jump_insn_after): Likewise.
13419         (emit_jump_insn_after_noloc): Likewise.
13420         (emit_jump_insn_after_setloc): Likewise.
13421         (emit_call_insn_after): Likewise.
13422         (emit_call_insn_after_noloc): Likewise.
13423         (emit_call_insn_after_setloc): Likewise.
13424         (emit_debug_insn_after): Likewise.
13425         (emit_debug_insn_after_noloc): Likewise.
13426         (emit_debug_insn_after_setloc): Likewise.
13427         (emit_label_after): Likewise.
13428         (emit_insn): Likewise.
13429         (emit_debug_insn): Likewise.
13430         (emit_jump_insn): Likewise.
13431         (emit_call_insn): Likewise.
13432         (emit_label): Likewise.
13433         (gen_clobber): Likewise.
13434         (emit_clobber): Likewise.
13435         (gen_use): Likewise.
13436         (emit_use): Likewise.
13437         (emit): Likewise.
13439         (emit_barrier_before): Strengthen return type from rtx to
13440         rtx_barrier *.
13441         (emit_barrier_after): Likewise.
13442         (emit_barrier): Likewise.
13444         * emit-rtl.c (emit_pattern_before_noloc):  Strengthen return type
13445         from rtx to rtx_insn *.  Add checked casts for now when converting
13446         "last" from rtx to rtx_insn *.
13447         (emit_insn_before_noloc): Likewise for return type.
13448         (emit_jump_insn_before_noloc): Likewise.
13449         (emit_call_insn_before_noloc): Likewise.
13450         (emit_debug_insn_before_noloc): Likewise.
13451         (emit_barrier_before): Strengthen return type and local "insn"
13452         from rtx to rtx_barrier *.
13453         (emit_label_before): Strengthen return type from rtx to
13454         rtx_insn *.  Add checked cast for now when returning param
13455         (emit_pattern_after_noloc): Strengthen return type from rtx to
13456         rtx_insn *.  Add checked casts for now when converting "last" from
13457         rtx to rtx_insn *.
13458         (emit_insn_after_noloc): Strengthen return type from rtx to
13459         rtx_insn *.
13460         (emit_jump_insn_after_noloc): Likewise.
13461         (emit_call_insn_after_noloc): Likewise.
13462         (emit_debug_insn_after_noloc): Likewise.
13463         (emit_barrier_after): Strengthen return type from rtx to
13464         rtx_barrier *.
13465         (emit_label_after): Strengthen return type from rtx to rtx_insn *.
13466         Add checked cast for now when converting "label" from rtx to
13467         rtx_insn *.
13468         (emit_pattern_after_setloc): Strengthen return type from rtx to
13469         rtx_insn *.  Add checked casts for now when converting "last" from
13470         rtx to rtx_insn *.
13471         (emit_pattern_after): Strengthen return type from rtx to
13472         rtx_insn *.
13473         (emit_insn_after_setloc): Likewise.
13474         (emit_insn_after): Likewise.
13475         (emit_jump_insn_after_setloc): Likewise.
13476         (emit_jump_insn_after): Likewise.
13477         (emit_call_insn_after_setloc): Likewise.
13478         (emit_call_insn_after): Likewise.
13479         (emit_debug_insn_after_setloc): Likewise.
13480         (emit_debug_insn_after): Likewise.
13481         (emit_pattern_before_setloc): Likewise.  Add checked casts for now
13482         when converting "last" from rtx to rtx_insn *.
13483         (emit_pattern_before): Strengthen return type from rtx to
13484         rtx_insn *.
13485         (emit_insn_before_setloc): Likewise.
13486         (emit_insn_before): Likewise.
13487         (emit_jump_insn_before_setloc): Likewise.
13488         (emit_jump_insn_before): Likewise.
13489         (emit_call_insn_before_setloc): Likewise.
13490         (emit_call_insn_before): Likewise.
13491         (emit_debug_insn_before_setloc): Likewise.
13492         (emit_debug_insn_before): Likewise.
13493         (emit_insn): Strengthen return type and locals "last", "insn",
13494         "next" from rtx to rtx_insn *.  Add checked cast to rtx_insn
13495         within cases where we know we have an insn.
13496         (emit_debug_insn): Likewise.
13497         (emit_jump_insn): Likewise.
13498         (emit_call_insn): Strengthen return type and local "insn" from rtx
13499         to rtx_insn *.
13500         (emit_label): Strengthen return type from rtx to rtx_insn *.  Add
13501         a checked cast to rtx_insn * for now on "label".
13502         (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
13503         (emit_clobber): Strengthen return type from rtx to rtx_insn *.
13504         (emit_use): Likewise.
13505         (gen_use): Likewise, also for local "seq".
13506         (emit): Likewise for return type and local "insn".
13507         (rtx_insn): Likewise for return type and local "new_rtx".
13509         * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
13510         from rtx to rtx_barrier *.
13512         * config/sh/sh.c (output_stack_adjust): Since emit_insn has
13513         changed return type from rtx to rtx_insn *, we must update
13514         "emit_fn" type, and this in turn means updating...
13515         (frame_insn): ...this.  Strengthen return type from rtx to
13516         rtx_insn *.  Introduce a new local "insn" of the appropriate type.
13518 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
13520         * emit-rtl.c (emit_jump_table_data): Strengthen return type from
13521         rtx to rtx_jump_table_data *.  Also for local.
13522         * rtl.h (emit_jump_table_data): Likewise.
13524 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
13526         * basic-block.h (create_basic_block_structure): Strengthen third
13527         param "bb_note" from rtx to rtx_note *.
13528         * rtl.h (emit_note_before): Strengthen return type from rtx to
13529         rtx_note *.
13530         (emit_note_after): Likewise.
13531         (emit_note): Likewise.
13532         (emit_note_copy): Likewise.  Also, strengthen param similarly.
13533         * function.h (struct rtl_data): Strengthen field
13534         "x_stack_check_probe_note" from rtx to rtx_note *.
13536         * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
13537         from rtx to rtx_note *.
13538         * cfgrtl.c (create_basic_block_structure): Strengthen third param
13539         "bb_note" from rtx to rtx_note *.
13540         (duplicate_insn_chain): Likewise for local "last".  Add a checked cast
13541         when calling emit_note_copy.
13542         * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
13543         rtx_note *.
13544         (emit_note_after): Likewise.
13545         (emit_note_before): Likewise.
13546         (emit_note_copy): Likewise.  Also, strengthen param similarly.
13547         (emit_note): Likewise.
13548         * except.c (emit_note_eh_region_end): Likewise for return type.
13549         Strengthen local "next" from rtx to rtx_insn *.
13550         (convert_to_eh_region_ranges): Strengthen local "note"
13551         from rtx to rtx_note *.
13552         * final.c (change_scope): Likewise.
13553         (reemit_insn_block_notes): Likewise, for both locals named "note".
13554         Also, strengthen local "insn" from rtx to rtx_insn *.
13555         * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
13556         rtx to rtx_note *.
13557         * reg-stack.c (compensate_edge): Likewise for local "after". Also,
13558         strengthen local "seq" from rtx to rtx_insn *.
13559         * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
13560         to rtx_note *.
13561         * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
13562         vec<rtx_note *>.
13563         (get_bb_note_from_pool): Strengthen return type from rtx to
13564         rtx_note *.
13565         (sel_create_basic_block): Strengthen local "new_bb_note" from
13566         insn_t to rtx_note *.
13567         * var-tracking.c (emit_note_insn_var_location): Strengthen local
13568         "note" from rtx to rtx_note *.
13569         (emit_notes_in_bb): Likewise.
13571 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
13573         * function.h (struct rtl_data): Strengthen field
13574         "x_parm_birth_insn" from rtx to rtx_insn *.
13575         * function.c (struct assign_parm_data_all): Strengthen fields
13576         "first_conversion_insn" and "last_conversion_insn" from rtx to
13577         rtx_insn *.
13579 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
13581         * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
13582         to rtx_insn *; also for local "var_end_seq".
13583         (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
13584         (maybe_cleanup_end_of_block): Likewise for param "last" and local
13585         "insn".
13586         (expand_gimple_cond): Likewise for locals "last2" and "last".
13587         (mark_transaction_restart_calls): Likewise for local "insn".
13588         (expand_gimple_stmt): Likewise for return type and locals "last"
13589         and "insn".
13590         (expand_gimple_tailcall): Likewise for locals "last2" and "last".
13591         (avoid_complex_debug_insns): Likewise for param "insn".
13592         (expand_debug_locations): Likewise for locals "insn", "last",
13593         "prev_insn" and "insn2".
13594         (expand_gimple_basic_block): Likewise for local "last".
13595         (construct_exit_block): Likewise for locals "head", "end",
13596         "orig_end".
13597         (pass_expand::execute): Likewise for locals "var_seq",
13598         "var_ret_seq", "next".
13600 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
13602         * asan.h (asan_emit_stack_protection): Strengthen return type from
13603         rtx to rtx_insn *.
13604         * asan.c (asan_emit_stack_protection): Likewise.  Add local
13605         "insns" to hold the return value.
13607 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
13609         * basic-block.h (bb_note): Strengthen return type from rtx to
13610         rtx_note *.
13611         * sched-int.h (bb_note): Likewise.
13612         * cfgrtl.c (bb_note): Likewise.  Add a checked cast to rtx_note *.
13614 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
13616         * rtl.h (make_insn_raw): Strengthen return type from rtx to
13617         rtx_insn *.
13619         * emit-rtl.c (make_insn_raw): Strengthen return type and local
13620         "insn" from rtx to rtx_insn *.
13621         (make_debug_insn_raw): Strengthen return type from rtx to
13622         rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
13623         (make_jump_insn_raw):  Strengthen return type from rtx to
13624         rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
13625         (make_call_insn_raw):  Strengthen return type from rtx to
13626         rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
13627         (emit_pattern_before_noloc): Strengthen return type of "make_raw"
13628         callback from rtx to rtx_insn *; likewise for local "insn" and
13629         "next", adding a checked cast to rtx_insn in the relevant cases of
13630         the switch statement.
13631         (emit_pattern_after_noloc): Strengthen return type of "make_raw"
13632         callback from rtx to rtx_insn *.
13633         (emit_pattern_after_setloc): Likewise.
13634         (emit_pattern_after): Likewise.
13635         (emit_pattern_before_setloc): Likewise.
13636         (emit_pattern_before): Likewise.
13638 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
13640         * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
13641         rtx_call_insn *.
13642         * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
13643         accepting an rtx_insn *.
13644         (last_call_insn): Strengthen return type from rtx to
13645         rtx_call_insn *.
13647 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
13649         * rtl.h (delete_trivially_dead_insns): Strengthen initial param
13650         "insns" from rtx to rtx_insn *.
13651         * cse.c (delete_trivially_dead_insns): Likewise, also do it for
13652         locals "insn" and "prev".
13654 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
13656         * rtl.h (tablejump_p): Strengthen third param from rtx * to
13657         rtx_jump_table_data **.
13659         * cfgbuild.c (make_edges): Introduce local "table", using it in
13660         place of "tmp" for jump table data.
13661         (find_bb_boundaries): Strengthen local "table" from rtx to
13662         rtx_jump_table_data *.
13663         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
13664         (outgoing_edges_match): Likewise for locals "table1" and "table2".
13665         (try_crossjump_to_edge): Likewise.
13666         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
13667         "table".
13668         (patch_jump_insn): Introduce local "table", using it in place of
13669         "tmp" for jump table data.
13670         (force_nonfallthru_and_redirect): Introduce local "table", so that
13671         call to tablejump_p can receive an rtx_jump_table_data **.  Update
13672         logic around the call to overwrite "note" appropriately if
13673         tablejump_p returns non-zero.
13674         (get_last_bb_insn): Introduce local "table", using it in place of
13675         "tmp" for jump table data.
13676         * dwarf2cfi.c (create_trace_edges): Likewise.
13678         * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
13679         from rtx to rtx_jump_table_data *.
13680         (create_fix_barrier): Strengthen local "tmp" from rtx to
13681         rtx_jump_table_data *.
13682         (arm_reorg): Likewise for local "table".
13684         * config/s390/s390.c (s390_chunkify_start): Likewise.
13686         * config/spu/spu.c (spu_emit_branch_hint): Likewise.
13688         * jump.c (delete_related_insns): Strengthen local "lab_next" from
13689         rtx to rtx_jump_table_data *.
13691         * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
13692         rtx_jump_table_data **.  Add a checked cast when writing through
13693         the pointer: we know there that local "table" is non-NULL and that
13694         JUMP_TABLE_DATA_P (table) holds.
13695         (label_is_jump_target_p): Introduce local "table", using it in
13696         place of "tmp" for jump table data.
13698 2014-08-19  Marek Polacek  <polacek@redhat.com>
13700         PR c++/62153
13701         * doc/invoke.texi: Document -Wbool-compare.
13703 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
13705         * rtl.h (entry_of_function): Strengthen return type from rtx to
13706         rtx_insn *.
13707         * cfgrtl.c (entry_of_function): Likewise.
13709 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
13711         * emit-rtl.h (get_insns): Strengthen return type from rtx to
13712         rtx_insn *, adding a checked cast for now.
13713         (get_last_insn): Likewise.
13715 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
13717         * rtl.h (gen_label_rtx): Strengthen return type from rtx to
13718         rtx_code_label *.
13720         * emit-rtl.c (gen_label_rtx): Likewise.
13722 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
13724         * rtl.h (previous_insn): Strengthen return type from rtx to
13725         rtx_insn *.
13726         (next_insn): Likewise.
13727         (prev_nonnote_insn): Likewise.
13728         (prev_nonnote_insn_bb): Likewise.
13729         (next_nonnote_insn): Likewise.
13730         (next_nonnote_insn_bb): Likewise.
13731         (prev_nondebug_insn): Likewise.
13732         (next_nondebug_insn): Likewise.
13733         (prev_nonnote_nondebug_insn): Likewise.
13734         (next_nonnote_nondebug_insn): Likewise.
13735         (prev_real_insn): Likewise.
13736         (next_real_insn): Likewise.
13737         (prev_active_insn): Likewise.
13738         (next_active_insn): Likewise.
13740         * emit-rtl.c (next_insn): Strengthen return type from rtx to
13741         rtx_insn *, adding a checked cast.
13742         (previous_insn): Likewise.
13743         (next_nonnote_insn): Likewise.
13744         (next_nonnote_insn_bb): Likewise.
13745         (prev_nonnote_insn): Likewise.
13746         (prev_nonnote_insn_bb): Likewise.
13747         (next_nondebug_insn): Likewise.
13748         (prev_nondebug_insn): Likewise.
13749         (next_nonnote_nondebug_insn): Likewise.
13750         (prev_nonnote_nondebug_insn): Likewise.
13751         (next_real_insn): Likewise.
13752         (prev_real_insn): Likewise.
13753         (next_active_insn): Likewise.
13754         (prev_active_insn): Likewise.
13756         * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
13757         param "stepfunc" so that it returns an rtx_insn * rather than an
13758         rtx, to track the change to prev_nonnote_insn_bb, which is the
13759         only function this is called with.
13760         * config/sh/sh.c (sh_find_set_of_reg): Likewise.
13762 2014-08-19  Jan Hubicka  <hubicka@ucw.cz>
13764         * ipa-visibility.c (update_visibility_by_resolution_info): Fix
13765         assert.
13767 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
13769         * coretypes.h (class rtx_debug_insn): Add forward declaration.
13770         (class rtx_nonjump_insn): Likewise.
13771         (class rtx_jump_insn): Likewise.
13772         (class rtx_call_insn): Likewise.
13773         (class rtx_jump_table_data): Likewise.
13774         (class rtx_barrier): Likewise.
13775         (class rtx_code_label): Likewise.
13776         (class rtx_note): Likewise.
13778         * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
13779         adding the invariant DEBUG_INSN_P (X).
13780         (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
13781         the invariant NONJUMP_INSN_P (X).
13782         (class rtx_jump_insn): New, a subclass of rtx_insn, adding
13783         the invariant JUMP_P (X).
13784         (class rtx_call_insn): New, a subclass of rtx_insn, adding
13785         the invariant CALL_P (X).
13786         (class rtx_jump_table): New, a subclass of rtx_insn, adding the
13787         invariant JUMP_TABLE_DATA_P (X).
13788         (class rtx_barrier): New, a subclass of rtx_insn, adding the
13789         invariant BARRIER_P (X).
13790         (class rtx_code_label): New, a subclass of rtx_insn, adding
13791         the invariant LABEL_P (X).
13792         (class rtx_note): New, a subclass of rtx_insn, adding
13793         the invariant NOTE_P(X).
13794         (is_a_helper <rtx_debug_insn *>::test): New.
13795         (is_a_helper <rtx_nonjump_insn *>::test): New.
13796         (is_a_helper <rtx_jump_insn *>::test): New.
13797         (is_a_helper <rtx_call_insn *>::test): New.
13798         (is_a_helper <rtx_jump_table_data *>::test): New functions,
13799         overloaded for both rtx and rtx_insn *.
13800         (is_a_helper <rtx_barrier *>::test): New.
13801         (is_a_helper <rtx_code_label *>::test): New functions, overloaded
13802         for both rtx and rtx_insn *.
13803         (is_a_helper <rtx_note *>::test): New.
13805 2014-08-19  Marek Polacek  <polacek@redhat.com>
13807         * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
13808         CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
13809         * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
13810         CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
13812 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
13814         * sel-sched-ir.h (BND_TO): insn_t will eventually be an
13815         rtx_insn *.  To help with transition, for now, convert from an
13816         access macro into a pair of functions: BND_TO, returning an
13817         rtx_insn *, and...
13818         (SET_BND_TO): New function, for use where BND_TO is used as an
13819         lvalue.
13821         * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
13822         SET_BND_TO.
13823         (BND_TO): New function, adding a checked cast.
13824         (SET_BND_TO): New function.
13826         * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
13827         SET_BND_TO.
13828         (compute_av_set_on_boundaries): Likewise.
13830 2014-08-19  H.J. Lu  <hongjiu.lu@intel.com>
13832         * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
13833         destination if it is used in source.
13834         (*clz<mode>2_lzcnt_falsedep_1): Likewise.
13835         (*popcount<mode>2_falsedep_1): Likewise.
13837 2014-08-19  H.J. Lu  <hongjiu.lu@intel.com>
13839         PR other/62168
13840         * configure.ac: Set install_gold_as_default to no first.
13841         * configure: Regenerated.
13843 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
13845         * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
13846         "note_list" field will eventually be an rtx_insn *.  To help with
13847         transition, for now, convert from an access macro into a pair of
13848         functions: BB_NOTE_LIST, returning an rtx_insn *, and...
13849         (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
13850         used as an lvalue.
13852         * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
13853         of BB_NOTE_LIST to SET_BB_NOTE_LIST.
13855         * sel-sched-ir.c (init_bb): Likewise.
13856         (sel_restore_notes): Likewise.
13857         (move_bb_info): Likewise.
13858         (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
13859         (SET_BB_NOTE_LIST): New function.
13861 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
13863         * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
13864         field will eventually be an rtx_insn *.  To help with transition,
13865         for now, convert from an access macro into a pair of functions:
13866         VINSN_INSN_RTX, returning an rtx_insn *, and...
13867         (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
13868         is used as an lvalue.
13870         * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
13871         SET_VINSN_INSN_RTX where it's used as an lvalue.
13872         (VINSN_INSN_RTX): New function.
13873         (SET_VINSN_INSN_RTX): New function.
13875 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
13877         * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
13878         eventually be rtx_insn *, but to help with transition, for now,
13879         convert from an access macro into a pair of functions: DEP_PRO
13880         returning an rtx_insn * and...
13881         (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
13882         lvalue, returning an rtx&.
13883         (DEP_CON): Analogous changes to DEP_PRO above.
13884         (SET_DEP_CON): Likewise.
13886         * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
13887         an lvalue to SET_DEP_CON.
13888         * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
13889         (sd_copy_back_deps): Likewise for DEP_CON.
13890         (DEP_PRO): New function, adding a checked cast for now.
13891         (DEP_CON): Likewise.
13892         (SET_DEP_PRO): New function.
13893         (SET_DEP_CON): Likewise.
13895 2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
13897         * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
13898         (extra_options): Add i386/cygwin.opt.
13899         * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
13900         (CPP_SPEC): Accept -pthread.
13901         (LINK_SPEC): Ditto.
13902         (GOMP_SELF_SPECS): Update comment.
13903         * config/i386/cygwin.opt: New file for -pthread flag.
13905 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
13907         * df-core.c (DF_REF_INSN): New, using a checked cast for now.
13908         * df.h (DF_REF_INSN): Convert from a macro to a function, so
13909         that we can return an rtx_insn *.
13911 2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
13913         * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
13914         when building executables, not DLLs.  Add --large-address-aware
13915         under the same conditions.
13916         * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
13917         when building executables, not DLLs.  Add --large-address-aware
13918         under the same conditions when using -m32.
13920         * config/i386/cygwin-stdint.h: Throughout, make type
13921         definitions dependent on target architecture, not host.
13923 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
13925         * rtl.h (PREV_INSN): Convert to an inline function.  Strengthen
13926         the return type from rtx to rtx_insn *,  which will enable various
13927         conversions in followup patches.  For now this is is done by a
13928         checked cast.
13929         (NEXT_INSN): Likewise.
13930         (SET_PREV_INSN): Convert to an inline function.  This is intended
13931         for use as an lvalue, and so returns an rtx& to allow in-place
13932         modification.
13933         (SET_NEXT_INSN): Likewise.
13935 2014-07-08  Mark Wielaard  <mjw@redhat.com>
13937         PR debug/59051
13938         * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
13940 2014-08-19  Marek Polacek  <polacek@redhat.com>
13942         PR c/61271
13943         * cgraphunit.c (handle_alias_pairs): Fix condition.
13945 2014-08-19  Richard Biener  <rguenther@suse.de>
13947         * gimple-fold.c (fold_gimple_assign): Properly build a
13948         null-pointer constant when devirtualizing addresses.
13950 2014-07-07  Mark Wielaard  <mjw@redhat.com>
13952         * dwarf2out.c (decl_quals): New function.
13953         (modified_type_die): Take one cv_quals argument instead of two,
13954         one for const and one for volatile.
13955         (add_type_attribute): Likewise.
13956         (generic_parameter_die): Call add_type_attribute with one modifier
13957         argument.
13958         (base_type_for_mode): Likewise.
13959         (add_bounds_info): Likewise.
13960         (add_subscript_info): Likewise.
13961         (gen_array_type_die): Likewise.
13962         (gen_descr_array_type_die): Likewise.
13963         (gen_entry_point_die): Likewise.
13964         (gen_enumeration_type_die): Likewise.
13965         (gen_formal_parameter_die): Likewise.
13966         (gen_subprogram_die): Likewise.
13967         (gen_variable_die): Likewise.
13968         (gen_const_die): Likewise.
13969         (gen_field_die): Likewise.
13970         (gen_pointer_type_die): Likewise.
13971         (gen_reference_type_die): Likewise.
13972         (gen_ptr_to_mbr_type_die): Likewise.
13973         (gen_inheritance_die): Likewise.
13974         (gen_subroutine_type_die): Likewise.
13975         (gen_typedef_die): Likewise.
13976         (force_type_die): Likewise.
13978 2014-08-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13980         * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
13981         if unset.
13982         * configure: Regenerate.
13984 2014-08-19  Richard Biener  <rguenther@suse.de>
13986         * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
13987         DECL_EXTERNALs in BLOCKs as non-references.
13988         * tree-streamer-out.c (streamer_write_chain): Likewise.
13990 2014-08-19  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13991             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13992             Anna Tikhonova  <anna.tikhonova@intel.com>
13993             Ilya Tocar  <ilya.tocar@intel.com>
13994             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13995             Ilya Verbin  <ilya.verbin@intel.com>
13996             Kirill Yukhin  <kirill.yukhin@intel.com>
13997             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13999         * config/i386/sse.md
14000         (define_mode_iterator VI48_AVX512F): Delete.
14001         (define_mode_iterator VI48_AVX512F_AVX512VL): New.
14002         (define_mode_iterator VI2_AVX512VL): Ditto.
14003         (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
14004         Delete.
14005         (define_insn
14006         ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
14007         New.
14008         (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
14009         (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
14010         (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
14011         with VI48_AVX512F_AVX512VL): New.
14012         (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
14013         with VI2_AVX512VL): Ditto.
14015 2014-08-19  Marek Polacek  <polacek@redhat.com>
14017         * doc/invoke.texi: Document -Wc99-c11-compat.
14019 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14021         * rtl.h (PREV_INSN): Split macro in two: the existing one,
14022         for rvalues, and...
14023         (SET_PREV_INSN): New macro, for use as an lvalue.
14024         (NEXT_INSN, SET_NEXT_INSN): Likewise.
14026         * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
14027         PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
14028         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
14029         (fixup_abnormal_edges): Likewise.
14030         (unlink_insn_chain): Likewise.
14031         (fixup_reorder_chain): Likewise.
14032         (cfg_layout_delete_block): Likewise.
14033         (cfg_layout_merge_blocks): Likewise.
14034         * combine.c (update_cfg_for_uncondjump): Likewise.
14035         * emit-rtl.c (link_insn_into_chain): Likewise.
14036         (remove_insn): Likewise.
14037         (delete_insns_since): Likewise.
14038         (reorder_insns_nobb): Likewise.
14039         (emit_insn_after_1): Likewise.
14040         * final.c (rest_of_clean_state): Likewise.
14041         (final_scan_insn): Likewise.
14042         * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
14043         * haifa-sched.c (concat_note_lists): Likewise.
14044         (remove_notes): Likewise.
14045         (restore_other_notes): Likewise.
14046         (move_insn): Likewise.
14047         (unlink_bb_notes): Likewise.
14048         (restore_bb_notes): Likewise.
14049         * jump.c (delete_for_peephole): Likewise.
14050         * optabs.c (emit_libcall_block_1): Likewise.
14051         * reorg.c (emit_delay_sequence): Likewise.
14052         (fill_simple_delay_slots): Likewise.
14053         * sel-sched-ir.c (sel_move_insn): Likewise.
14054         (sel_remove_insn): Likewise.
14055         (get_bb_note_from_pool): Likewise.
14056         * sel-sched.c (move_nop_to_previous_block): Likewise.
14058         * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
14059         * config/c6x/c6x.c (gen_one_bundle): Likewise.
14060         (c6x_gen_bundles): Likewise.
14061         (hwloop_optimize): Likewise.
14062         * config/frv/frv.c (frv_function_prologue): Likewise.
14063         (frv_register_nop): Likewise.
14064         * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
14065         (ia64_reorg): Likewise.
14066         * config/mep/mep.c (mep_reorg_addcombine): Likewise.
14067         (mep_make_bundle): Likewise.
14068         (mep_bundle_insns): Likewise.
14069         * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
14070         * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
14071         * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
14073 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14075         * basic-block.h (BB_HEAD): Convert to a function.  Strengthen the
14076         return type from rtx to rtx_insn *.
14077         (BB_END): Likewise.
14078         (BB_HEADER): Likewise.
14079         (BB_FOOTER): Likewise.
14080         (SET_BB_HEAD): Convert to a function.
14081         (SET_BB_END): Likewise.
14082         (SET_BB_HEADER): Likewise.
14083         (SET_BB_FOOTER): Likewise.
14085         * cfgrtl.c (BB_HEAD): New function, from macro of same name.
14086         Strengthen the return type from rtx to rtx_insn *.  For now, this
14087         is done by adding a checked cast, but this will eventually
14088         become a field lookup.
14089         (BB_END): Likewise.
14090         (BB_HEADER): Likewise.
14091         (BB_FOOTER): Likewise.
14092         (SET_BB_HEAD): New function, from macro of same name.  This is
14093         intended for use as an lvalue, and so returns an rtx& to allow
14094         in-place modification.
14095         (SET_BB_END): Likewise.
14096         (SET_BB_HEADER): Likewise.
14097         (SET_BB_FOOTER): Likewise.
14099 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
14101         * basic-block.h (BB_HEAD): Split macro in two: the existing one,
14102         for rvalues, and...
14103         (SET_BB_HEAD): New macro, for use as a lvalue.
14104         (BB_END, SET_BB_END): Likewise.
14105         (BB_HEADER, SET_BB_HEADER): Likewise.
14106         (BB_FOOTER, SET_BB_FOOTER): Likewise.
14108         * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
14109         of BB_* macros into SET_BB_* macros.
14110         (fix_crossing_unconditional_branches): Likewise.
14111         * caller-save.c (save_call_clobbered_regs): Likewise.
14112         (insert_one_insn): Likewise.
14113         * cfgbuild.c (find_bb_boundaries): Likewise.
14114         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
14115         (outgoing_edges_match): Likewise.
14116         (try_optimize_cfg): Likewise.
14117         * cfgexpand.c (expand_gimple_cond): Likewise.
14118         (expand_gimple_tailcall): Likewise.
14119         (expand_gimple_basic_block): Likewise.
14120         (construct_exit_block): Likewise.
14121         * cfgrtl.c (delete_insn): Likewise.
14122         (create_basic_block_structure): Likewise.
14123         (rtl_delete_block): Likewise.
14124         (rtl_split_block): Likewise.
14125         (emit_nop_for_unique_locus_between): Likewise.
14126         (rtl_merge_blocks): Likewise.
14127         (block_label): Likewise.
14128         (try_redirect_by_replacing_jump): Likewise.
14129         (emit_barrier_after_bb): Likewise.
14130         (fixup_abnormal_edges): Likewise.
14131         (record_effective_endpoints): Likewise.
14132         (relink_block_chain): Likewise.
14133         (fixup_reorder_chain): Likewise.
14134         (fixup_fallthru_exit_predecessor): Likewise.
14135         (cfg_layout_duplicate_bb): Likewise.
14136         (cfg_layout_split_block): Likewise.
14137         (cfg_layout_delete_block): Likewise.
14138         (cfg_layout_merge_blocks): Likewise.
14139         * combine.c (update_cfg_for_uncondjump): Likewise.
14140         * emit-rtl.c (add_insn_after): Likewise.
14141         (remove_insn): Likewise.
14142         (reorder_insns): Likewise.
14143         (emit_insn_after_1): Likewise.
14144         * haifa-sched.c (get_ebb_head_tail): Likewise.
14145         (restore_other_notes): Likewise.
14146         (move_insn): Likewise.
14147         (sched_extend_bb): Likewise.
14148         (fix_jump_move): Likewise.
14149         * ifcvt.c (noce_process_if_block): Likewise.
14150         (dead_or_predicable): Likewise.
14151         * ira.c (update_equiv_regs): Likewise.
14152         * reg-stack.c (change_stack): Likewise.
14153         * sel-sched-ir.c (sel_move_insn): Likewise.
14154         * sel-sched.c (move_nop_to_previous_block): Likewise.
14156         * config/c6x/c6x.c (hwloop_optimize): Likewise.
14157         * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
14159 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
14161         * rtl.h (for_each_rtx_in_insn): New function.
14162         * rtlanal.c (for_each_rtx_in_insn): Likewise.
14164 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
14166         * coretypes.h (class rtx_insn): Add forward declaration.
14168         * rtl.h: Include is-a.h.
14169         (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
14170         workaround to ensure gengtype knows inheritance is occurring,
14171         whilst continuing to use the pre-existing special-casing for
14172         rtx_def.
14173         (class rtx_insn): New subclass of rtx_def, adding the
14174         invariant that we're dealing with something we can sanely use
14175         INSN_UID, NEXT_INSN, PREV_INSN on.
14176         (is_a_helper <rtx_insn *>::test): New.
14177         (is_a_helper <const rtx_insn *>::test): New.
14179 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
14181         * is-a.h (template<T, U> safe_as_a <U *p>) New function.
14183 2014-08-18  Jan Hubicka  <hubicka@ucw.cz>
14185         * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
14186         comdats as extern.
14188 2014-08-18  Jan Hubicka  <hubicka@ucw.cz>
14190         * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
14191         to BUILT_IN_UNREACHABLE.
14193 2014-08-18  Uros Bizjak  <ubizjak@gmail.com>
14195         PR target/62011
14196         * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
14197         New tune flag.
14198         * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
14199         * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
14200         (ffs<mode>2): Do not expand with tzcnt for
14201         TARGET_AVOID_FALSE_DEP_FOR_BMI.
14202         (ffssi2_no_cmove): Ditto.
14203         (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
14204         (ctz<mode>2): New expander.
14205         (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
14206         (*ctz<mode>2_falsedep): New insn.
14207         (*ctz<mode>2): Rename from ctz<mode>2.
14208         (clz<mode>2_lzcnt): New expander.
14209         (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
14210         (*clz<mode>2_lzcnt_falsedep): New insn.
14211         (*clz<mode>2): Rename from ctz<mode>2.
14212         (popcount<mode>2): New expander.
14213         (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
14214         (*popcount<mode>2_falsedep): New insn.
14215         (*popcount<mode>2): Rename from ctz<mode>2.
14216         (*popcount<mode>2_cmp): Remove.
14217         (*popcountsi2_cmp_zext): Ditto.
14219 2014-08-18  Ajit Agarwal  <ajitkum@xilinx.com>
14221         * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
14222         (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
14223         * config/microblaze/microblaze.h
14224         (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
14226 2014-08-18  H.J. Lu  <hongjiu.lu@intel.com>
14228         PR other/62168
14229         * configure.ac: Set install_gold_as_default to no for
14230          --enable-gold=no.
14231          * configure: Regenerated.
14233 2014-08-18 Roman Gareev  <gareevroman@gmail.com>
14235         * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
14236         * config.in: Add undef of HAVE_isl.
14237         * configure: Regenerate.
14238         * configure.ac: Add definition of HAVE_isl.
14239         * graphite-blocking.c: Add checking of HAVE_isl.
14240         * graphite-dependences.c: Likewise.
14241         * graphite-interchange.c: Likewise.
14242         * graphite-isl-ast-to-gimple.c: Likewise.
14243         * graphite-optimize-isl.c: Likewise.
14244         * graphite-poly.c: Likewise.
14245         * graphite-scop-detection.c: Likewise.
14246         * graphite-sese-to-poly.c: Likewise.
14247         * graphite.c: Likewise.
14248         * toplev.c: Replace the checking of HAVE_cloog with the checking
14249         of HAVE_isl.
14251 2014-08-18  Richard Biener  <rguenther@suse.de>
14253         PR tree-optimization/62090
14254         * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
14255         (fold_builtin_3): Do not fold snprintf.
14256         (fold_builtin_4): Likewise.
14257         * gimple-fold.c (gimple_fold_builtin_snprintf): New function
14258         moved from builtins.c.
14259         (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
14260         (gimple_fold_builtin): Do not fold sprintf here.
14262 2014-08-18  Richard Biener  <rguenther@suse.de>
14264         * gimple-fold.c (maybe_fold_reference): Move re-gimplification
14265         code to ...
14266         (maybe_canonicalize_mem_ref_addr): ... this function.
14267         (fold_stmt_1): Apply it here before all simplification.
14269 2014-08-18  Ilya Enkovich  <ilya.enkovich@intel.com>
14271         PR ipa/61800
14272         * cgraph.h (cgraph_node::create_indirect_edge): Add
14273         compute_indirect_info param.
14274         * cgraph.c (cgraph_node::create_indirect_edge): Compute
14275         indirect_info only when it is required.
14276         * cgraphclones.c (cgraph_clone_edge): Do not recompute
14277         indirect_info fore cloned indirect edge.
14279 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14280             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14281             Anna Tikhonova  <anna.tikhonova@intel.com>
14282             Ilya Tocar  <ilya.tocar@intel.com>
14283             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14284             Ilya Verbin  <ilya.verbin@intel.com>
14285             Kirill Yukhin  <kirill.yukhin@intel.com>
14286             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14288         * config/i386/sse.md
14289         (define_mode_iterator VI8_AVX2_AVX512BW): New.
14290         (define_insn "<sse2_avx2>_psadbw"): Add evex version.
14292 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14293             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14294             Anna Tikhonova  <anna.tikhonova@intel.com>
14295             Ilya Tocar  <ilya.tocar@intel.com>
14296             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14297             Ilya Verbin  <ilya.verbin@intel.com>
14298             Kirill Yukhin  <kirill.yukhin@intel.com>
14299             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14301         * config/i386/sse.md
14302         (define_mode_iterator VF1_AVX512VL): New.
14303         (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
14304         (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
14305         New.
14307 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14308             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14309             Anna Tikhonova  <anna.tikhonova@intel.com>
14310             Ilya Tocar  <ilya.tocar@intel.com>
14311             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14312             Ilya Verbin  <ilya.verbin@intel.com>
14313             Kirill Yukhin  <kirill.yukhin@intel.com>
14314             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14316         * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
14317         * config/i386/i386.md
14318         (define_code_iterator any_float): New.
14319         (define_code_attr floatsuffix): New.
14320         * config/i386/sse.md
14321         (define_mode_iterator VF1_128_256VL): New.
14322         (define_mode_iterator VF2_512_256VL): New.
14323         (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
14324         TARGET check.
14325         (define_insn "ufloatv8siv8df<mask_name>"): Delete.
14326         (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
14327         New.
14328         (define_mode_attr qq2pssuff): New.
14329         (define_mode_attr sselongvecmode): New.
14330         (define_mode_attr sselongvecmodelower): New.
14331         (define_mode_attr sseintvecmode3): New.
14332         (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
14333         New.
14334         (define_insn "*<floatsuffix>floatv2div2sf2"): New.
14335         (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
14336         (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
14337         (define_insn "ufloatv2siv2df2<mask_name>"): New.
14339 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14340             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14341             Anna Tikhonova  <anna.tikhonova@intel.com>
14342             Ilya Tocar  <ilya.tocar@intel.com>
14343             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14344             Ilya Verbin  <ilya.verbin@intel.com>
14345             Kirill Yukhin  <kirill.yukhin@intel.com>
14346             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14348         * config/i386/sse.md
14349         (define_mode_iterator VF2_AVX512VL): New.
14350         (define_mode_attr sseintvecmode2): New.
14351         (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
14352         (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
14353         (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
14354         (define_insn
14355         "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
14356         Ditto.
14357         (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
14358         Ditto.
14359         (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
14360         Ditto.
14362 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14363             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14364             Anna Tikhonova  <anna.tikhonova@intel.com>
14365             Ilya Tocar  <ilya.tocar@intel.com>
14366             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14367             Ilya Verbin  <ilya.verbin@intel.com>
14368             Kirill Yukhin  <kirill.yukhin@intel.com>
14369             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14371         * config/i386/i386.md
14372         (define_insn "*movoi_internal_avx"): Add evex version.
14373         (define_insn "*movti_internal"): Ditto.
14375 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14376             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14377             Anna Tikhonova  <anna.tikhonova@intel.com>
14378             Ilya Tocar  <ilya.tocar@intel.com>
14379             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14380             Ilya Verbin  <ilya.verbin@intel.com>
14381             Kirill Yukhin  <kirill.yukhin@intel.com>
14382             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14384         * config/i386/i386.md
14385         (define_attr "isa"): Add avx512dq, noavx512dq.
14386         (define_attr "enabled"): Ditto.
14387         * config/i386/sse.md
14388         (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
14390 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14391             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14392             Anna Tikhonova  <anna.tikhonova@intel.com>
14393             Ilya Tocar  <ilya.tocar@intel.com>
14394             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14395             Ilya Verbin  <ilya.verbin@intel.com>
14396             Kirill Yukhin  <kirill.yukhin@intel.com>
14397             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14399         * config/i386/i386.c
14400         (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
14401         avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
14402         avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
14403         avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
14404         avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
14405         avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
14406         avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
14407         avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
14408         * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
14409         * config/i386/sse.md
14410         (define_mode_iterator VMOVE): Allow V4TI mode.
14411         (define_mode_iterator V_AVX512VL): New.
14412         (define_mode_iterator V): New handling for AVX512VL.
14413         (define_insn "avx512f_load<mode>_mask"): Delete.
14414         (define_insn "<avx512>_load<mode>_mask"): New.
14415         (define_insn "avx512f_store<mode>_mask"): Delete.
14416         (define_insn "<avx512>_store<mode>_mask"): New.
14419 2014-08-18  Yury Gribov  <y.gribov@samsung.com>
14421         PR sanitizer/62089
14422         * asan.c (instrument_derefs): Fix bitfield check.
14424 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
14426         * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
14427         * config/rs6000/htm.md (ttest): Remove clobber.
14428         * config/rs6000/predicates.md (any_mask_operand): New predicate.
14429         (and_operand): Reformat.
14430         (and_2rld_operand): New predicate.
14431         * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
14432         parameter.
14433         * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
14434         parameter.  Handle AND directly.
14435         (rs6000_split_logical_di): Remove last parameter.
14436         (rs6000_split_logical): Remove last parameter.  Remove obsolete
14437         comment.
14438         * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
14439         (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
14440         (ctz<mode>2, ffs<mode>2): Delete clobber.  Reformat.
14441         (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
14442         *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
14443         and 5 anonymous splitters):  Delete.
14444         (and<mode>3): New expander.
14445         (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
14446         (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
14447         (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
14448         (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
14449         (floatdisf2_internal1): Remove clobbers.
14450         (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
14451         *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
14452         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
14453         (and<mode>3 for BOOL_128): Remove clobber.
14454         (*and<mode>3_internal for BOOL_128): Remove clobber.  Adjust call of
14455         rs6000_split_logical.
14456         (*bool<mode>3_internal for BOOL_128): Adjust call of
14457         rs6000_split_logical.
14458         (*boolc<mode>3_internal1 for BOOL_128,
14459         *boolc<mode>3_internal2 for BOOL_128,
14460         *boolcc<mode>3_internal1 for BOOL_128,
14461         *boolcc<mode>3_internal2 for BOOL_128,
14462         *eqv<mode>3_internal1 for BOOL_128,
14463         *eqv<mode>3_internal2 for BOOL_128,
14464         *one_cmpl<mode>3_internal for BOOL_128): Ditto.
14465         * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
14466         clobber.
14467         (*vec_reload_and_reg_<mptrsize>): Delete.
14469 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
14471         * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
14472         and split, *boolccsi3_internal3 and split): Delete.
14473         (*boolccdi3_internal1, *boolccdi3_internal2 and split,
14474         *boolccdi3_internal3 and split): Delete.
14475         (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
14476         (*eqv<mode>3): Move.  Add TODO comment.  Fix attributes.
14478 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
14480         * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
14481         and split, *boolcsi3_internal3 and split): Delete.
14482         (*boolcdi3_internal1, *boolcdi3_internal2 and split,
14483         *boolcdi3_internal3 and split): Delete.
14484         (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
14486 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
14488         * config/rs6000/rs6000.c (print_operand) <'e'>: New.
14489         <'u'>: Also support printing the low-order 16 bits.
14490         * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
14491         *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
14492         (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
14493         *booldi3_internal3 and split): Delete.
14494         (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
14495         *bool<mode>3_dot2): New.
14496         (two anonymous define_splits for non_logical_cint_operand): Merge.
14498 2014-08-17  Marek Polacek  <polacek@redhat.com>
14499             Manuel López-Ibáñez  <manu@gcc.gnu.org>
14501         PR c/62059
14502         * diagnostic.c (adjust_line): Add gcc_checking_assert.
14503         (diagnostic_show_locus): Don't print caret diagnostic
14504         if a column is larger than the line_width.
14506 2014-08-17 Roman Gareev  <gareevroman@gmail.com>
14508         * common.opt: Make the ISL AST generator to be the main code generator
14509         of Graphite.
14511 2014-08-16  Gerald Pfeifer  <gerald@pfeifer.com>
14513         * wide-int.h (generic_wide_int): Declare as class instead of struct.
14515 2014-08-16  John David Anglin  <danglin@gcc.gnu.org>
14517         PR target/61641
14518         * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
14519         Declare.
14520         * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
14521         (pa_output_addr_vec, pa_output_addr_diff_vec): New.
14522         * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
14523         Define.
14524         * config/pa/pa.md (begin_brtab): Delete insn.
14525         (end_brtab): Likewise.
14527 2014-08-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14529         * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
14531 2014-08-15  Jan Hubicka  <hubicka@ucw.cz>
14533         * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
14534         (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
14535         possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
14536         (get_dynamic_type): Remove.
14537         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
14538         (clear_speculation): Bring to ipa-deivrt.h
14539         (get_class_context): Rename to ...
14540         (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
14541         (contains_type_p): Update.
14542         (get_dynamic_type): Rename to ...
14543         ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
14544         (possible_polymorphic_call_targets): UPdate.
14545         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
14546         * ipa-prop.c (ipa_analyze_call_uses): Update.
14548 2014-08-15  Oleg Endo  <olegendo@gcc.gnu.org>
14550         * doc/invoke.texi (SH options): Document missing processor variant
14551         options.  Remove references to Hitachi.  Undocument deprecated mspace
14552         option.
14554 2014-08-15  Jason Merrill  <jason@redhat.com>
14556         * tree.c (type_hash_canon): Uncomment assert.
14558 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14560         * input.h (in_system_header_at): Add comment.
14562 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14564         PR fortran/44054
14565         * diagnostic.c (build_message_string): Make it extern.
14566         * diagnostic.h (build_message_string): Make it extern.
14568 2014-08-15  Vladimir Makarov  <vmakarov@redhat.com>
14570         * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
14571         load/store from/to non-floating class pseudo.
14573 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14575         * input.c (diagnostic_file_cache_fini): Fix typo in comment.
14577 2014-08-15  Richard Biener  <rguenther@suse.de>
14579         * tree-ssa-structalias.c (readonly_id): Rename to string_id.
14580         (get_constraint_for_ssa_var): Remove dead code.
14581         (get_constraint_for_1): Adjust.
14582         (find_what_var_points_to): Likewise.
14583         (init_base_vars): Likewise.  STRING_CSTs do not contain pointers.
14585 2014-08-15  Ilya Tocar  <tocarip@gmail.com>
14587         PR target/61878
14588         * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
14589         (_mm512_mask_cmpge_epu32_mask): Ditto.
14590         (_mm512_cmpge_epu32_mask): Ditto.
14591         (_mm512_mask_cmpge_epi64_mask): Ditto.
14592         (_mm512_cmpge_epi64_mask): Ditto.
14593         (_mm512_mask_cmpge_epu64_mask): Ditto.
14594         (_mm512_cmpge_epu64_mask): Ditto.
14595         (_mm512_mask_cmple_epi32_mask): Ditto.
14596         (_mm512_cmple_epi32_mask): Ditto.
14597         (_mm512_mask_cmple_epu32_mask): Ditto.
14598         (_mm512_cmple_epu32_mask): Ditto.
14599         (_mm512_mask_cmple_epi64_mask): Ditto.
14600         (_mm512_cmple_epi64_mask): Ditto.
14601         (_mm512_mask_cmple_epu64_mask): Ditto.
14602         (_mm512_cmple_epu64_mask): Ditto.
14603         (_mm512_mask_cmplt_epi32_mask): Ditto.
14604         (_mm512_cmplt_epi32_mask): Ditto.
14605         (_mm512_mask_cmplt_epu32_mask): Ditto.
14606         (_mm512_cmplt_epu32_mask): Ditto.
14607         (_mm512_mask_cmplt_epi64_mask): Ditto.
14608         (_mm512_cmplt_epi64_mask): Ditto.
14609         (_mm512_mask_cmplt_epu64_mask): Ditto.
14610         (_mm512_cmplt_epu64_mask): Ditto.
14611         (_mm512_mask_cmpneq_epi32_mask): Ditto.
14612         (_mm512_mask_cmpneq_epu32_mask): Ditto.
14613         (_mm512_cmpneq_epu32_mask): Ditto.
14614         (_mm512_mask_cmpneq_epi64_mask): Ditto.
14615         (_mm512_cmpneq_epi64_mask): Ditto.
14616         (_mm512_mask_cmpneq_epu64_mask): Ditto.
14617         (_mm512_cmpneq_epu64_mask): Ditto.
14618         (_mm512_castpd_ps): Ditto.
14619         (_mm512_castpd_si512): Ditto.
14620         (_mm512_castps_pd): Ditto.
14621         (_mm512_castps_si512): Ditto.
14622         (_mm512_castsi512_ps): Ditto.
14623         (_mm512_castsi512_pd): Ditto.
14624         (_mm512_castpd512_pd128): Ditto.
14625         (_mm512_castps512_ps128): Ditto.
14626         (_mm512_castsi512_si128): Ditto.
14627         (_mm512_castpd512_pd256): Ditto.
14628         (_mm512_castps512_ps256): Ditto.
14629         (_mm512_castsi512_si256): Ditto.
14630         (_mm512_castpd128_pd512): Ditto.
14631         (_mm512_castps128_ps512): Ditto.
14632         (_mm512_castsi128_si512): Ditto.
14633         (_mm512_castpd256_pd512): Ditto.
14634         (_mm512_castps256_ps512): Ditto.
14635         (_mm512_castsi256_si512): Ditto.
14636         (_mm512_cmpeq_epu32_mask): Ditto.
14637         (_mm512_mask_cmpeq_epu32_mask): Ditto.
14638         (_mm512_mask_cmpeq_epu64_mask): Ditto.
14639         (_mm512_cmpeq_epu64_mask): Ditto.
14640         (_mm512_cmpgt_epu32_mask): Ditto.
14641         (_mm512_mask_cmpgt_epu32_mask): Ditto.
14642         (_mm512_mask_cmpgt_epu64_mask): Ditto.
14643         (_mm512_cmpgt_epu64_mask): Ditto.
14644         * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
14645         V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
14646         * config/i386/i386.c (enum ix86_builtins): Add
14647         IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
14648         IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
14649         IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
14650         (bdesc_args): Add __builtin_ia32_si512_256si,
14651         __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
14652         __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
14653         __builtin_ia32_pd512_pd.
14654         (ix86_expand_args_builtin): Handle new FTYPEs.
14655         * config/i386/sse.md (castmode): Add 512-bit modes.
14656         (AVX512MODE2P): New.
14657         (avx512f_<castmode><avxsizesuffix>_<castmode): New.
14658         (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
14660 2014-08-15  Richard Biener  <rguenther@suse.de>
14662         * fold-const.c (tree_swap_operands_p): Put all constants
14663         last, also strip sign-changing NOPs when considering further
14664         canonicalization.  Canonicalize also when optimizing for size.
14666 2014-08-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14668         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
14669         one_match > zero_match case to just before simple_sequence.
14671 2014-08-15  Richard Biener  <rguenther@suse.de>
14673         * data-streamer.h (streamer_string_index, string_for_index):
14674         Remove.
14675         * data-streamer-out.c (streamer_string_index): Make static.
14676         * data-streamer-in.c (string_for_index): Likewise.
14677         * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
14678         * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
14680 2014-08-15  Richard Biener  <rguenther@suse.de>
14682         PR tree-optimization/62031
14683         * tree-data-ref.c (dr_analyze_indices): Do not set
14684         DR_UNCONSTRAINED_BASE.
14685         (dr_may_alias_p): All indirect accesses have to go the
14686         formerly DR_UNCONSTRAINED_BASE path.
14687         * tree-data-ref.h (struct indices): Remove
14688         unconstrained_base member.
14689         (DR_UNCONSTRAINED_BASE): Remove.
14691 2014-08-15  Jakub Jelinek  <jakub@redhat.com>
14693         PR middle-end/62092
14694         * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
14695         OMP_CLAUSE_SHARED for global vars if the global var is mentioned
14696         in OMP_CLAUSE_MAP in some outer target region.
14698 2014-08-15  Bin Cheng  <bin.cheng@arm.com>
14700         * tree-ssa-loop-ivopts.c (ivopts_data): New field
14701         name_expansion_cache.
14702         (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
14703         (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
14704         (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
14705         (difference_cannot_overflow_p): New parameter.  Use affine
14706         expansion for equality check.
14707         (iv_elimination_compare_lt): Pass new argument.
14709 2014-08-14  DJ Delorie  <dj@redhat.com>
14711         * config/rl78/rl78-real.md (addqi3_real): Allow adding global
14712         variables to the accumulator.
14714         * config/rl78/predicates.md (rl78_near_mem_operand): New.
14715         * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
14716         (movhi_virt_mm): Split out near mem-mem moves to avoid problems
14717         with far-far moves.
14719         * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
14720         * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
14721         (umulqihi3_virt): Likewise.
14722         * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
14723         (umulqihi3_real): Likewise.
14725         * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
14727 2014-08-14  Jan Hubicka  <hubicka@ucw.cz>
14729         PR tree-optimization/62091
14730         * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
14731         function_entry_reached.
14732         (walk_aliased_vdefs): Clear it here.
14733         * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
14735 2014-08-14  Jan Hubicka  <hubicka@ucw.cz>
14737         * ipa-utils.h (compare_virtual_tables): Declare.
14738         * ipa-devirt.c (odr_subtypes_equivalent_p): New function
14740 2014-08-14  Marek Polacek  <polacek@redhat.com>
14742         DR 458
14743         * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
14744         (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
14746 2014-08-14  Tom de Vries  <tom@codesourcery.com>
14748         * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
14750 2014-08-14  Tom de Vries  <tom@codesourcery.com>
14752         PR rtl-optimization/62004
14753         PR rtl-optimization/62030
14754         * ifcvt.c (rtx_interchangeable_p): New function.
14755         (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
14756         * emit-rtl.h (mem_attrs_eq_p): Declare.
14758 2014-08-14  Roman Gareev  <gareevroman@gmail.com>
14760         * graphite-scop-detection.c:
14761         Add inclusion of cp-tree.h.
14762         (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
14763         in case they are pointers to object types
14765 2014-08-14  Richard Biener  <rguenther@suse.de>
14767         * BASE-VER: Change to 5.0.0
14769 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14770             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14771             Anna Tikhonova  <anna.tikhonova@intel.com>
14772             Ilya Tocar  <ilya.tocar@intel.com>
14773             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14774             Ilya Verbin  <ilya.verbin@intel.com>
14775             Kirill Yukhin  <kirill.yukhin@intel.com>
14776             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14778         * config/i386/sse.md (define_mode_attr avx512): New.
14779         (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
14780         V4DI modes.
14781         (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
14782         (define_mode_attr ssse3_avx2): Ditto.
14783         (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
14784         (define_mode_attr avx2_avx512bw): New.
14785         (define_mode_attr ssedoublemodelower): New.
14786         (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
14787         V32HI, V64QI modes.
14788         (define_mode_attr ssebytemode): Allow V8DI modes.
14789         (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
14790         (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
14791         (define_mode_attr ssePSmode2): New.
14792         (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
14793         V16HI, V32HI modes.
14794         (define_mode_attr dbpsadbwmode): New.
14795         (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
14796         V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
14797         (vi8_sse4_1_avx2_avx512): New.
14798         (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
14799         mode attribute.
14800         (define_mode_attr blendbits): Move before its immediate use.
14802 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14803             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14804             Anna Tikhonova  <anna.tikhonova@intel.com>
14805             Ilya Tocar  <ilya.tocar@intel.com>
14806             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14807             Ilya Verbin  <ilya.verbin@intel.com>
14808             Kirill Yukhin  <kirill.yukhin@intel.com>
14809             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14811         * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
14812         * config/i386/subst.md
14813         (define_mode_iterator SUBST_V): Update.
14814         (define_mode_iterator SUBST_A): Ditto.
14815         (define_subst_attr "mask_operand7"): New.
14816         (define_subst_attr "mask_operand10"): New.
14817         (define_subst_attr "mask_operand_arg34") : New.
14818         (define_subst_attr "mask_expand_op3"): New.
14819         (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
14820         (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
14821         (define_subst_attr "mask_avx512vl_condition"): New.
14822         (define_subst_attr "round_mask_operand4"): Ditto.
14823         (define_subst_attr "round_mask_scalar_op3"): Delete.
14824         (define_subst_attr "round_mask_op4"): New.
14825         (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
14826         V16SImode.
14827         (define_subst_attr "round_modev8sf_condition"): New.
14828         (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
14829         <MODE>mode.
14830         (define_subst_attr "round_saeonly_mask_operand4"): New.
14831         (define_subst_attr "round_saeonly_mask_op4"): New.
14832         (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
14833         V8DImode, V16SImode.
14834         (define_subst_attr "round_saeonly_modev8sf_condition"): New.
14835         (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
14836         (define_subst_attr "mask_expand4_args"): New.
14837         (define_subst "mask_expand4"): New.
14839 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14840             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14841             Anna Tikhonova  <anna.tikhonova@intel.com>
14842             Ilya Tocar  <ilya.tocar@intel.com>
14843             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14844             Ilya Verbin  <ilya.verbin@intel.com>
14845             Kirill Yukhin  <kirill.yukhin@intel.com>
14846             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14848         * config/i386/i386.md
14849         (define_attr "isa"): Add avx512bw,noavx512bw.
14850         (define_attr "enabled"): Ditto.
14851         (define_split): Add 32/64-bit mask logic.
14852         (define_insn "*k<logic>qi"): New.
14853         (define_insn "*k<logic>hi"): New.
14854         (define_insn "*anddi_1"): Add mask version.
14855         (define_insn "*andsi_1"): Ditto.
14856         (define_insn "*<code><mode>_1"): Ditto.
14857         (define_insn "*<code>hi_1"): Ditto.
14858         (define_insn "kxnor<mode>"): New.
14859         (define_insn "kunpcksi"): New.
14860         (define_insn "kunpckdi"): New.
14861         (define_insn "*one_cmpl<mode>2_1"): Add mask version.
14862         (define_insn "*one_cmplhi2_1"): Ditto.
14864 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14865             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14866             Anna Tikhonova  <anna.tikhonova@intel.com>
14867             Ilya Tocar  <ilya.tocar@intel.com>
14868             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14869             Ilya Verbin  <ilya.verbin@intel.com>
14870             Kirill Yukhin  <kirill.yukhin@intel.com>
14871             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14873         * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
14874         V32HImode.
14876 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14877             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14878             Anna Tikhonova  <anna.tikhonova@intel.com>
14879             Ilya Tocar  <ilya.tocar@intel.com>
14880             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14881             Ilya Verbin  <ilya.verbin@intel.com>
14882             Kirill Yukhin  <kirill.yukhin@intel.com>
14883             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14885         * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
14886         registers.
14887         (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
14888         (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
14889         xmm/ymm16+ when availble.
14890         * config/i386/i386.h
14891         (HARD_REGNO_NREGS): Add mask regs.
14892         (VALID_AVX512F_REG_MODE): Ditto.
14893         (VALID_AVX512F_REG_MODE) : Define.
14894         (VALID_MASK_AVX512BW_MODE): Ditto.
14895         (reg_class) (MASK_REG_P(X)): Define.
14896         * config/i386/i386.md: Do not split long moves with mask register,
14897         use kmovb if avx512bw is availible.
14898         (movdi_internal): Handle mask registers.
14900 2014-08-14  Richard Biener  <rguenther@suse.de>
14902         PR tree-optimization/62081
14903         * tree-ssa-loop.c (pass_fix_loops): New pass.
14904         (pass_tree_loop::gate):  Do not fixup loops here.
14905         * tree-pass.h (make_pass_fix_loops): Declare.
14906         * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
14908 2014-08-14  Richard Biener  <rguenther@suse.de>
14910         * tree.c (type_hash_lookup, type_hash_add): Merge into ...
14911         (type_hash_canon): ... this and avoid 2nd lookup for the add.
14913 2014-08-14  Richard Biener  <rguenther@suse.de>
14915         PR tree-optimization/62090
14916         * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
14917         (fold_builtin_2): Do not fold sprintf.
14918         (fold_builtin_3): Likewise.
14919         * gimple-fold.c (gimple_fold_builtin_sprintf): New function
14920         moved from builtins.c.
14921         (gimple_fold_builtin): Fold sprintf.
14923 2014-08-14  Richard Biener  <rguenther@suse.de>
14925         PR rtl-optimization/62079
14926         * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
14927         run cleanup_cfg.
14929 2014-08-14  Ilya Enkovich  <ilya.enkovich@intel.com>
14931         * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
14932         current_function_decl.
14934 2014-08-14  Ilya Enkovich  <ilya.enkovich@intel.com>
14936         * cgraph.c (cgraph_node::function_symbol): Fix wrong
14937         cgraph_function_node to cgraph_node::function_symbol
14938         refactoring.
14940 2014-08-14  Zhenqiang Chen  <zhenqiang.chen@arm.com>
14942         * config/arm/arm.c (arm_option_override): Set max_insns_skipped
14943         to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
14945 2014-08-13  Chen Gang  gang.chen.5i5j@gmail.com
14947         * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
14948         warning.
14950 2014-08-13  Roman Gareev  <gareevroman@gmail.com>
14952         * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
14953         generator.
14955 2014-08-12  Jakub Jelinek  <jakub@redhat.com>
14957         PR target/62025
14958         * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
14959         any registers that are used in mem_insn.
14961 2014-08-12  Steve Ellcey  <sellcey@mips.com>
14963         * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
14965 2014-08-12  Steve Ellcey  <sellcey@mips.com>
14967         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
14968         (MULTILIB_DIRNAMES): Ditto.
14969         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
14970         * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
14971         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
14972         * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
14973         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
14974         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
14976 2014-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14978         PR target/61413
14979         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
14980         of __ARM_SIZEOF_WCHAR_T.
14982 2014-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14984         PR target/62098
14985         * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
14986         Remove unnecessary attributes.
14988 2014-08-12  Yury Gribov  <y.gribov@samsung.com>
14990         * internal-fn.c (init_internal_fns): Fix off-by-one.
14992 2014-08-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14993             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14994             Anna Tikhonova  <anna.tikhonova@intel.com>
14995             Ilya Tocar  <ilya.tocar@intel.com>
14996             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14997             Ilya Verbin  <ilya.verbin@intel.com>
14998             Kirill Yukhin  <kirill.yukhin@intel.com>
14999             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15001         * config/i386/i386.c (standard_sse_constant_opcode): Use
15002         vpxord/vpternlog if avx512 is availible.
15004 2014-08-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15006         PR middle-end/62103
15007         * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
15008         bitfields, that is when size doesn't match the size of type or the
15009         size of the constructor.
15011 2014-08-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
15013         * config/rs6000/constraints.md (wh constraint): New constraint,
15014         for FP registers if direct move is available.
15015         (wi constraint): New constraint, for VSX/FP registers that can
15016         handle 64-bit integers.
15017         (wj constraint): New constraint for VSX/FP registers that can
15018         handle 64-bit integers for direct moves.
15019         (wk constraint): New constraint for VSX/FP registers that can
15020         handle 64-bit doubles for direct moves.
15021         (wy constraint): Make documentation match implementation.
15023         * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
15024         scalar_in_vmx_p field to simplify tests of whether SFmode or
15025         DFmode can go in the Altivec registers.
15026         (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
15027         (rs6000_setup_reg_addr_masks): Likewise.
15028         (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
15029         field, and wh/wi/wj/wk constraints.
15030         (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
15031         the wh/wi/wj/wk constraints.
15032         (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
15033         upper registers, prefer VSX registers unless the operation is a
15034         memory operation with REG+OFFSET addressing.
15036         * config/rs6000/vsx.md (VSr mode attribute): Add support for
15037         DImode.  Change SFmode to use ww constraint instead of d to allow
15038         SF registers in the upper registers.
15039         (VSr2): Likewise.
15040         (VSr3): Likewise.
15041         (VSr5): Fix thinko in comment.
15042         (VSa): New mode attribute that is an alternative to wa, that
15043         returns the VSX register class that a mode can go in, but may not
15044         be the preferred register class.
15045         (VS_64dm): New mode attribute for appropriate register classes for
15046         referencing 64-bit elements of vectors for direct moves and normal
15047         moves.
15048         (VS_64reg): Likewise.
15049         (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
15050         register allocator to only registers the data type can handle.
15051         (vsx_le_perm_load_<mode>): Likewise.
15052         (vsx_le_perm_store_<mode>): Likewise.
15053         (vsx_xxpermdi2_le_<mode>): Likewise.
15054         (vsx_xxpermdi4_le_<mode>): Likewise.
15055         (vsx_lxvd2x2_le_<mode>): Likewise.
15056         (vsx_lxvd2x4_le_<mode>): Likewise.
15057         (vsx_stxvd2x2_le_<mode>): Likewise.
15058         (vsx_add<mode>3): Likewise.
15059         (vsx_sub<mode>3): Likewise.
15060         (vsx_mul<mode>3): Likewise.
15061         (vsx_div<mode>3): Likewise.
15062         (vsx_tdiv<mode>3_internal): Likewise.
15063         (vsx_fre<mode>2): Likewise.
15064         (vsx_neg<mode>2): Likewise.
15065         (vsx_abs<mode>2): Likewise.
15066         (vsx_nabs<mode>2): Likewise.
15067         (vsx_smax<mode>3): Likewise.
15068         (vsx_smin<mode>3): Likewise.
15069         (vsx_sqrt<mode>2): Likewise.
15070         (vsx_rsqrte<mode>2): Likewise.
15071         (vsx_tsqrt<mode>2_internal): Likewise.
15072         (vsx_fms<mode>4): Likewise.
15073         (vsx_nfma<mode>4): Likewise.
15074         (vsx_eq<mode>): Likewise.
15075         (vsx_gt<mode>): Likewise.
15076         (vsx_ge<mode>): Likewise.
15077         (vsx_eq<mode>_p): Likewise.
15078         (vsx_gt<mode>_p): Likewise.
15079         (vsx_ge<mode>_p): Likewise.
15080         (vsx_xxsel<mode>): Likewise.
15081         (vsx_xxsel<mode>_uns): Likewise.
15082         (vsx_copysign<mode>3): Likewise.
15083         (vsx_float<VSi><mode>2): Likewise.
15084         (vsx_floatuns<VSi><mode>2): Likewise.
15085         (vsx_fix_trunc<mode><VSi>2): Likewise.
15086         (vsx_fixuns_trunc<mode><VSi>2): Likewise.
15087         (vsx_x<VSv>r<VSs>i): Likewise.
15088         (vsx_x<VSv>r<VSs>ic): Likewise.
15089         (vsx_btrunc<mode>2): Likewise.
15090         (vsx_b2trunc<mode>2): Likewise.
15091         (vsx_floor<mode>2): Likewise.
15092         (vsx_ceil<mode>2): Likewise.
15093         (vsx_<VS_spdp_insn>): Likewise.
15094         (vsx_xscvspdp): Likewise.
15095         (vsx_xvcvspuxds): Likewise.
15096         (vsx_float_fix_<mode>2): Likewise.
15097         (vsx_set_<mode>): Likewise.
15098         (vsx_extract_<mode>_internal1): Likewise.
15099         (vsx_extract_<mode>_internal2): Likewise.
15100         (vsx_extract_<mode>_load): Likewise.
15101         (vsx_extract_<mode>_store): Likewise.
15102         (vsx_splat_<mode>): Likewise.
15103         (vsx_xxspltw_<mode>): Likewise.
15104         (vsx_xxspltw_<mode>_direct): Likewise.
15105         (vsx_xxmrghw_<mode>): Likewise.
15106         (vsx_xxmrglw_<mode>): Likewise.
15107         (vsx_xxsldwi_<mode>): Likewise.
15108         (vsx_xscvdpspn): Tighten constraints to only use register classes
15109         the types use.
15110         (vsx_xscvspdpn): Likewise.
15111         (vsx_xscvdpspn_scalar): Likewise.
15113         * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
15114         wj, and wk constraints.
15115         (GPR_REG_CLASS_P): New helper macro for register classes targeting
15116         general purpose registers.
15118         * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
15119         direct moves.
15120         (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
15121         DImode instead of wm.  Use wk constraint for direct move of DFmode
15122         instead of wm.
15123         (extendsidi2_lfiwax): Likewise.
15124         (lfiwax): Likewise.
15125         (lfiwzx): Likewise.
15126         (movdi_internal64): Likewise.
15128         * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
15129         wk constraints. Make the wy constraint documentation match them
15130         implementation.
15132 2014-08-11  Mircea Namolaru  <mircea.namolaru@inria.fr>
15134         Replacement of isl_int by isl_val
15135         * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
15136         (compute_bounds_for_param): use isl_val instead of isl_int
15137         (compute_bounds_for_loop): likewise
15138         * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
15139         (build_linearized_memory_access): use isl_val instead of isl_int
15140         (pdr_stride_in_loop): likewise
15141         * graphite-optimize-isl.c:
15142         (getPrevectorMap): use isl_val instead of isl_int
15143         * graphite-poly.c:
15144         (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
15145         graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
15146         (extern the_isl_ctx): declare
15147         (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
15148         (extract_affine_gmp): likewise
15149         (wrap): likewise
15150         (build_loop_iteration_domains): likewise
15151         (add_param_constraints): likewise
15153 2014-08-11  Richard Biener  <rguenther@suse.de>
15155         PR tree-optimization/62075
15156         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
15157         handle uses in patterns.
15159 2014-08-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15160             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15161             Anna Tikhonova  <anna.tikhonova@intel.com>
15162             Ilya Tocar  <ilya.tocar@intel.com>
15163             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15164             Ilya Verbin  <ilya.verbin@intel.com>
15165             Kirill Yukhin  <kirill.yukhin@intel.com>
15166             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15168         * common/config/i386/i386-common.c
15169         (OPTION_MASK_ISA_AVX512VL_SET): Define.
15170         (OPTION_MASK_ISA_AVX512F_UNSET): Update.
15171         (ix86_handle_option): Handle OPT_mavx512vl.
15172         * config/i386/cpuid.h (bit_AVX512VL): Define.
15173         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
15174         set -mavx512vl accordingly.
15175         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
15176         OPTION_MASK_ISA_AVX512VL.
15177         * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
15178         (ix86_option_override_internal): Define PTA_AVX512VL, handle
15179         PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
15180         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
15181         * config/i386/i386.h (TARGET_AVX512VL): Define.
15182         (TARGET_AVX512VL_P(x)): Ditto.
15183         * config/i386/i386.opt: Add mavx512vl.
15185 2014-08-11  Felix Yang  <fei.yang0953@gmail.com>
15187         PR tree-optimization/62073
15188         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
15189         a basic block.
15191 2014-08-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15192             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15193             Anna Tikhonova  <anna.tikhonova@intel.com>
15194             Ilya Tocar  <ilya.tocar@intel.com>
15195             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15196             Ilya Verbin  <ilya.verbin@intel.com>
15197             Kirill Yukhin  <kirill.yukhin@intel.com>
15198             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15200         * common/config/i386/i386-common.c
15201         (OPTION_MASK_ISA_AVX512BW_SET) : Define.
15202         (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
15203         (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
15204         (ix86_handle_option): Handle OPT_mavx512bw.
15205         * config/i386/cpuid.h (bit_AVX512BW): Define.
15206         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
15207         set -mavx512bw accordingly.
15208         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
15209         OPTION_MASK_ISA_AVX512BW.
15210         * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
15211         (ix86_option_override_internal): Define PTA_AVX512BW, handle
15212         PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
15213         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
15214         * config/i386/i386.h (TARGET_AVX512BW): Define.
15215         (TARGET_AVX512BW_P(x)): Ditto.
15216         * config/i386/i386.opt: Add mavx512bw.
15218 2014-08-11  Richard Biener  <rguenther@suse.de>
15220         PR tree-optimization/62070
15221         * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
15222         Remove SSA checking.
15224 2014-08-11  Yury Gribov  <y.gribov@samsung.com>
15226         * asan.c (asan_check_flags): New enum.
15227         (build_check_stmt_with_calls): Removed function.
15228         (build_check_stmt): Split inlining logic to
15229         asan_expand_check_ifn.
15230         (instrument_derefs): Rename parameter.
15231         (instrument_mem_region_access): Rename parameter.
15232         (instrument_strlen_call): Likewise.
15233         (asan_expand_check_ifn): New function.
15234         (asan_instrument): Remove old code.
15235         (pass_sanopt::execute): Change handling of
15236         asan-instrumentation-with-call-threshold.
15237         (asan_clear_shadow): Fix formatting.
15238         (asan_function_start): Likewise.
15239         (asan_emit_stack_protection): Likewise.
15240         * doc/invoke.texi (asan-instrumentation-with-call-threshold):
15241         Update description.
15242         * internal-fn.c (expand_ASAN_CHECK): New function.
15243         * internal-fn.def (ASAN_CHECK): New internal function.
15244         * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
15245         Update description.
15246         (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
15247         * tree.c: Small comment fix.
15249 2014-08-11  Yury Gribov  <y.gribov@samsung.com>
15251         * gimple.c (gimple_call_fnspec): Support internal functions.
15252         (gimple_call_return_flags): Use const.
15253         * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
15254         * internal-fn.def: Add fnspec information.
15255         * internal-fn.h (internal_fn_fnspec): New function.
15256         (init_internal_fns): Declare new function.
15257         * internal-fn.c (internal_fn_fnspec_array): New global variable.
15258         (init_internal_fns): New function.
15259         * tree-core.h: Update macro call.
15260         * tree.c (build_common_builtin_nodes): Initialize internal fns.
15262 2014-08-10  Gerald Pfeifer  <gerald@pfeifer.com>
15264         * lto-streamer.h (struct output_block::symbol): Change from
15265         struct symtab_node to plain symtab_node.
15266         (referenced_from_this_partition_p): Change first parameter
15267         from struct symtab_node to plain symtab_node.
15269 2014-08-10  Marek Polacek  <polacek@redhat.com>
15271         PR c/51849
15272         * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
15274 2014-08-09  Jan Hubicka  <hubicka@ucw.cz>
15276         * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
15277         DECL correctly; do not give up on types in static storage.
15279 2014-08-09  Paolo Carlini  <paolo.carlini@oracle.com>
15281         * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
15283 2014-08-09  Roman Gareev  <gareevroman@gmail.com>
15285         * graphite-isl-ast-to-gimple.c:
15286         (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
15288         * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
15290 2014-08-08  Guozhi Wei  <carrot@google.com>
15292         * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
15294 2014-08-08  Cary Coutant  <ccoutant@google.com>
15296         * dwarf2out.c (get_skeleton_type_unit): Remove.
15297         (output_skeleton_debug_sections): Remove skeleton type units.
15298         (output_comdat_type_unit): Likewise.
15299         (dwarf2out_finish): Likewise.
15301 2014-08-07  Yi Yang  <ahyangyi@google.com>
15303         * predict.c (expr_expected_value_1): Remove the redundant assignment.
15305 2014-08-08  Richard Biener  <rguenther@suse.de>
15307         * lto-streamer.h (struct lto_input_block): Make it a class
15308         with a constructor.
15309         (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
15310         (struct lto_function_header, struct lto_simple_header,
15311         struct lto_simple_header_with_strings,
15312         struct lto_decl_header, struct lto_function_header): Make
15313         a simple inheritance hieararchy.  Remove unused fields.
15314         (struct lto_asm_header): Remove.
15315         * lto-streamer-out.c (produce_asm): Adjust.
15316         (lto_output_toplevel_asms): Likewise.
15317         (produce_asm_for_decls): Likewise.
15318         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
15319         * data-streamer-in.c (string_for_index): Likewise.
15320         * ipa-inline-analysis.c (inline_read_section): Likewise.
15321         * ipa-prop.c (ipa_prop_read_section): Likewise.
15322         (read_replacements_section): Likewise.
15323         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
15324         * lto-section-in.c (lto_create_simple_input_block): Likewise.
15325         (lto_destroy_simple_input_block): Likewise.
15326         * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
15327         (lto_input_toplevel_asms): Likewise.
15329 2014-08-08  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15330             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15331             Anna Tikhonova  <anna.tikhonova@intel.com>
15332             Ilya Tocar  <ilya.tocar@intel.com>
15333             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15334             Ilya Verbin  <ilya.verbin@intel.com>
15335             Kirill Yukhin  <kirill.yukhin@intel.com>
15336             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15338         * common/config/i386/i386-common.c
15339         (OPTION_MASK_ISA_AVX512DQ_SET): Define.
15340         (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
15341         (ix86_handle_option): Handle OPT_mavx512dq.
15342         * config/i386/cpuid.h (bit_AVX512DQ): Define.
15343         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
15344         set -mavx512dq accordingly.
15345         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
15346         OPTION_MASK_ISA_AVX512DQ.
15347         * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
15348         (ix86_option_override_internal): Define PTA_AVX512DQ, handle
15349         PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
15350         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
15351         * config/i386/i386.h (TARGET_AVX512DQ): Define.
15352         (TARGET_AVX512DQ_P(x)): Ditto.
15353         * config/i386/i386.opt: Add mavx512dq.
15355 2014-08-08  Richard Biener  <rguenther@suse.de>
15357         * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
15358         target_percent, target_percent_s): Export.
15359         (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
15360         fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
15361         fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
15362         fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
15363         fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
15364         Move to gimple-fold.c.
15365         (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
15366         strcat and strcpy.
15367         (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
15368         mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
15369         (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
15370         memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
15371         (rewrite_call_expr_array): Remove.
15372         (fold_builtin_sprintf_chk): Likewise.
15373         (fold_builtin_snprintf_chk): Likewise.
15374         (fold_builtin_varargs): Remove handling of sprintf_chk,
15375         vsprintf_chk, snprintf_chk and vsnprintf_chk.
15376         (gimple_fold_builtin_sprintf_chk): Remove.
15377         (gimple_fold_builtin_snprintf_chk): Likewise.
15378         (gimple_fold_builtin_varargs): Likewise.
15379         (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
15380         * predict.c (optimize_bb_for_size_p): Handle NULL bb.
15381         * gimple.c (gimple_seq_add_seq_without_update): New function.
15382         * gimple.h (gimple_seq_add_seq_without_update): Declare.
15383         * gimple-fold.c: Include output.h.
15384         (gsi_replace_with_seq_vops): New function, split out from ...
15385         (gimplify_and_update_call_from_tree): ... here.
15386         (replace_call_with_value): New function.
15387         (replace_call_with_call_and_fold): Likewise.
15388         (var_decl_component_p): Moved from builtins.c.
15389         (gimple_fold_builtin_memory_op): Moved from builtins.c
15390         fold_builtin_memory_op and rewritten to GIMPLE.
15391         (gimple_fold_builtin_memset): Likewise.
15392         (gimple_fold_builtin_strcpy): Likewise.
15393         (gimple_fold_builtin_strncpy): Likewise.
15394         (gimple_fold_builtin_strcat): Likewise.
15395         (gimple_fold_builtin_fputs): Likewise.
15396         (gimple_fold_builtin_memory_chk): Likewise.
15397         (gimple_fold_builtin_stxcpy_chk): Likewise.
15398         (gimple_fold_builtin_stxncpy_chk): Likewise.
15399         (gimple_fold_builtin_snprintf_chk): Likewise.
15400         (gimple_fold_builtin_sprintf_chk): Likewise.
15401         (gimple_fold_builtin_strlen): New function.
15402         (gimple_fold_builtin_with_strlen): New function split out from
15403         gimple_fold_builtin.
15404         (gimple_fold_builtin): Change signature and handle
15405         bzero, memset, bcopy, memcpy, mempcpy and memmove folding
15406         here.  Call gimple_fold_builtin_with_strlen.
15407         (gimple_fold_call): Adjust.
15409 2014-08-08  Kugan Vivekanandarajah  <kuganv@linaro.org>
15411         * calls.c (precompute_arguments): Check
15412          promoted_for_signed_and_unsigned_p and set the promoted mode.
15413         (promoted_for_signed_and_unsigned_p): New function.
15414         (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
15415         and set the promoted mode.
15416         * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
15417         * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
15418         SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
15421 2014-08-08  Kugan Vivekanandarajah  <kuganv@linaro.org>
15423         * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
15424         instead of SUBREG_PROMOTED_UNSIGNED_SET.
15425         (expand_call): Likewise.
15426         * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
15427         to get promoted mode.
15428         * combine.c (record_promoted_value): Skip > 0 comparison with
15429         SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
15430         * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
15431         of SUBREG_PROMOTED_UNSIGNED_P.
15432         (convert_modes): Likewise.
15433         (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
15434         Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
15435         (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
15436         SUBREG_PROMOTED_UNSIGNED_SET.
15437         * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
15438         instead of SUBREG_PROMOTED_UNSIGNED_SET.
15439         * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
15440         SUBREG_PROMOTED_SET.
15441         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
15442         SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
15443         * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
15444         of SUBREG_PROMOTED_UNSIGNED_P.
15445         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
15446         (SUBREG_PROMOTED_SET): New define.
15447         (SUBREG_PROMOTED_GET): Likewise.
15448         (SUBREG_PROMOTED_SIGN): Likewise.
15449         (SUBREG_PROMOTED_SIGNED_P): Likewise.
15450         (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
15451         (SUBREG_PROMOTED_UNSIGNED_P): Updated.
15452         * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
15453         instead of SUBREG_PROMOTED_UNSIGNED_GET.
15454         (nonzero_bits1): Skip > 0 comparison with the results as
15455         SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
15456         (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
15457         of !SUBREG_PROMOTED_UNSIGNED_P.
15458         * simplify-rtx.c (simplify_unary_operation_1): Use new
15459         SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
15460         (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
15461         SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
15462         SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
15464 2014-08-07  Jan Hubicka  <hubicka@ucw.cz>
15466         * ipa-devirt.c: Include gimple-pretty-print.h
15467         (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
15468         further tests.
15469         (decl_maybe_in_construction_p): Fix conditional on cdtor check
15470         (get_polymorphic_call_info): Fix return value
15471         (type_change_info): New sturcture based on ipa-prop
15472         variant.
15473         (noncall_stmt_may_be_vtbl_ptr_store): New predicate
15474         based on ipa-prop variant.
15475         (extr_type_from_vtbl_ptr_store): New function
15476         based on ipa-prop variant.
15477         (record_known_type): New function.
15478         (check_stmt_for_type_change): New function.
15479         (get_dynamic_type): New function.
15480         * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
15481         * tree-ssa-pre.c: ipa-utils.h
15482         (eliminate_dom_walker::before_dom_children): Use ipa-devirt
15483         machinery; sanity check with ipa-prop devirtualization.
15484         * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
15485         polymorphic flag.
15487 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
15489         * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
15490         * alias.c, cfgexpand.c, cgraphbuild.c,
15491         config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
15492         config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
15493         config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
15494         config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
15495         config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
15496         config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
15497         config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
15498         dse.c, except.c, gengtype.c, gimple-expr.c,
15499         gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
15500         ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
15501         tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
15502         tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
15503         tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
15504         tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
15505         pointer-set.h.
15506         * pointer-set.c: Remove file.
15507         * pointer-set.h: Remove file.
15509 2014-08-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15511         * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
15512         * config/arm/types.md (f_sels, f_seld): Delete.
15514 2014-08-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15516         * config/aarch64/aarch64.md (absdi2): Set simd attribute.
15517         (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
15518         (aarch64_movdi_<mode>high): Likewise.
15519         (aarch64_mov<mode>high_di): Likewise.
15520         (aarch64_movdi_<mode>low): Likewise.
15521         (aarch64_mov<mode>low_di): Likewise.
15522         (aarch64_movtilow_tilow): Likewise.
15523         Add comment explaining usage of fp,simd attributes and of
15524         TARGET_FLOAT and TARGET_SIMD.
15526 2014-08-07  Ian Bolton  <ian.bolton@arm.com>
15527             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15529         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
15530         Use MOVN when one of the half-words is 0xffff.
15532 2014-08-07  Marat Zakirov  <m.zakirov@samsung.com>
15534         * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
15536 2014-08-07  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
15538         * haifa-sched.c (SCHED_SORT): Delete.  Macro used exactly once.
15539         (enum rfs_decition:RFS_*): New constants wrapped in an enum.
15540         (rfs_str): String corresponding to RFS_* constants.
15541         (rank_for_schedule_stats_t): New typedef.
15542         (rank_for_schedule_stats): New static variable.
15543         (rfs_result): New static function.
15544         (rank_for_schedule): Track statistics for deciding heuristics.
15545         (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
15546         static functions.
15547         (ready_sort): Use them for debug printouts.
15548         (schedule_block): Init statistics state.  Print statistics on
15549         rank_for_schedule decisions.
15551 2014-08-07  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
15553         * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
15555 2014-08-07  Ilya Tocar  <ilya.tocar@intel.com>
15557         * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
15558         constraint.
15560 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
15562         * hash-map.h (default_hashmap_traits): Adjust overloads of hash
15563         function to not conflict.
15564         * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
15565         gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
15566         lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
15567         tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
15568         tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
15569         of pointer_map.
15571 2014-08-07  Marek Polacek  <polacek@redhat.com>
15573         * fold-const.c (fold_binary_loc): Add folding of
15574         (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
15576 2013-08-07  Ilya Enkovich  <ilya.enkovich@intel.com>
15578         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
15579         instead of type size.
15580         (ASM_FINISH_DECLARE_OBJECT): Likewise.
15582 2014-08-07  Marat Zakirov  <m.zakirov@samsung.com>
15584         * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
15585         (*thumb1_movqi_insn): Likewise.
15586         * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
15588 2014-08-07  Tom de Vries  <tom@codesourcery.com>
15590         * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
15591         (glibc_2_11_or_earlier): Remove effective-target keywords.
15593 2014-08-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
15595         * config/arm/arm.c (bdesc_2arg): Fix typo.
15596         (arm_atomic_assign_expand_fenv): Remove The default implementation.
15598 2014-08-07  Zhenqiang Chen  <zhenqiang.chen@arm.com>
15600         * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
15602 2014-08-06  Vladimir Makarov  <vmakarov@redhat.com>
15604         PR debug/61923
15605         * haifa-sched.c (advance_one_cycle): Fix dump.
15606         (schedule_block): Don't advance cycle if we are already at the
15607         beginning of the cycle.
15609 2014-08-06  Martin Jambor  <mjambor@suse.cz>
15611         PR ipa/61393
15612         * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
15614 2014-08-06  Richard Biener  <rguenther@suse.de>
15616         PR lto/62034
15617         * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
15618         SCCs here.
15619         (lto_input_tree): Pop SCCs here.
15621 2014-08-06  Richard Biener  <rguenther@suse.de>
15623         PR tree-optimization/61320
15624         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
15625         handle misaligned loads.
15627 2014-08-06  Alan Lawrence  <alan.lawrence@arm.com>
15629         * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
15630         (aarch64_expand_vec_perm_const): Check for dup before zip.
15632 2014-08-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15634         * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
15635         CONST_INT_P instead of GET_CODE and compare.
15636         (aarch64_select_cc_mode): Likewise.
15637         (aarch64_print_operand): Likewise.
15638         (aarch64_rtx_costs): Likewise.
15639         (aarch64_simd_valid_immediate): Likewise.
15640         (aarch64_simd_check_vect_par_cnst_half): Likewise.
15641         (aarch64_simd_emit_pair_result_insn): Likewise.
15643 2014-08-05  David Malcolm  <dmalcolm@redhat.com>
15645         * gdbhooks.py (find_gcc_source_dir): New helper function.
15646         (class PassNames): New class, locating and parsing passes.def.
15647         (class BreakOnPass): New command "break-on-pass".
15649 2014-08-05  Trevor Saunders  <tsaunders@mozilla.com>
15651         * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
15652         getting olde.
15654 2014-08-05  Richard Biener  <rguenther@suse.de>
15656         PR rtl-optimization/61672
15657         * emit-rtl.h (mem_attrs_eq_p): Declare.
15658         * emit-rtl.c (mem_attrs_eq_p): Export.  Handle NULL mem-attrs.
15659         * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
15660         * cfgcleanup.c (merge_memattrs): Likewise.
15661         Include emit-rtl.h.
15663 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15665         * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
15666         rather than singleton vectors.
15667         (vqdmlsls_lane_s32): Likewise.
15669 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15671         * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
15672         Use VSDQ_HSI mode iterator.
15673         (aarch64_sqrdmulh_laneq<mode>): Likewise.
15674         (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
15675         * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
15676         Use BUILTIN_VDQHS macro.
15677         (sqrdmulh_laneq): Likewise.
15678         * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
15679         (vqdmlals_laneq_s32): Likewise.
15680         (vqdmlslh_laneq_s16): Likewise.
15681         (vqdmlsls_laneq_s32): Likewise.
15682         (vqdmulhh_laneq_s16): Likewise.
15683         (vqdmulhs_laneq_s32): Likewise.
15684         (vqrdmulhh_laneq_s16): Likewise.
15685         (vqrdmulhs_laneq_s32): Likewise.
15687 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15689         * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
15690         (vmuld_laneq_f64): Likewise.
15691         (vmuls_laneq_f32): Likewise.
15692         (vmul_n_f64): Likewise.
15693         (vmuld_lane_f64): Reimplement in C.
15694         (vmuls_lane_f32): Likewise.
15696 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15698         * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
15699         to reservation.
15700         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
15702 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15704         * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
15705         (rbitsi2): Likewise.
15706         (*arm_rev): Set predicable and predicable_short_it attributes.
15708 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15710         * convert.c (convert_to_integer): Guard transformation to lrint by
15711         -fno-math-errno.
15713 2014-08-05  James Greenhalgh  <james.greenhalgh@arm.com>
15715         * config/aarch64/aarch64-builtins.c
15716         (aarch64_simd_builtin_type_mode): Delete.
15717         (v8qi_UP): Remap to V8QImode.
15718         (v4hi_UP): Remap to V4HImode.
15719         (v2si_UP): Remap to V2SImode.
15720         (v2sf_UP): Remap to V2SFmode.
15721         (v1df_UP): Remap to V1DFmode.
15722         (di_UP): Remap to DImode.
15723         (df_UP): Remap to DFmode.
15724         (v16qi_UP):V16QImode.
15725         (v8hi_UP): Remap to V8HImode.
15726         (v4si_UP): Remap to V4SImode.
15727         (v4sf_UP): Remap to V4SFmode.
15728         (v2di_UP): Remap to V2DImode.
15729         (v2df_UP): Remap to V2DFmode.
15730         (ti_UP): Remap to TImode.
15731         (ei_UP): Remap to EImode.
15732         (oi_UP): Remap to OImode.
15733         (ci_UP): Map to CImode.
15734         (xi_UP): Remap to XImode.
15735         (si_UP): Remap to SImode.
15736         (sf_UP): Remap to SFmode.
15737         (hi_UP): Remap to HImode.
15738         (qi_UP): Remap to QImode.
15739         (aarch64_simd_builtin_datum): Make mode a machine_mode.
15740         (VAR1): Build builtin name.
15741         (aarch64_init_simd_builtins): Remove dead code.
15743 2014-08-05  Roman Gareev  <gareevroman@gmail.com>
15745         * graphite-isl-ast-to-gimple.c:
15746         (set_options): New function.
15747         (scop_to_isl_ast): Add calling of set_options.
15749 2014-08-05  Jakub Jelinek  <jakub@redhat.com>
15751         * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
15752         (analyze_iv_to_split_insn): Don't initialize them.
15753         (get_ivts_expr): Removed.
15754         (allocate_basic_variable, insert_base_initialization): Use
15755         SET_SRC instead of *get_ivts_expr.
15756         (split_iv): Use &SET_SRC instead of get_ivts_expr.
15758 2014-08-05  Roman Gareev  <gareevroman@gmail.com>
15760         * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
15761         (translate_isl_ast_for_loop): Add checking of the
15762         flag_loop_parallelize_all.
15763         (ast_build_before_for): New function.
15764         (scop_to_isl_ast): Add checking of the
15765         flag_loop_parallelize_all.
15766         * graphite-dependences.c: Move the defenition of the
15767         scop_get_dependences from graphite-optimize-isl.c to this file.
15768         (apply_schedule_on_deps): Add checking of the ux's emptiness.
15769         (carries_deps): Add checking of the x's value.
15770         * graphite-optimize-isl.c: Move the defenition of the
15771         scop_get_dependences to graphite-dependences.c.
15772         * graphite-poly.h: Add declarations of scop_get_dependences
15773         and carries_deps.
15775 2014-08-04  Rohit  <rohitarulraj@freescale.com>
15777         PR target/60102
15778         * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
15779         names.
15780         (alt_reg_names): Likewise.
15781         (rs6000_dwarf_register_span): For SPE high registers, replace
15782         dwarf register numbers with GCC hard register numbers.
15783         (rs6000_init_dwarf_reg_sizes_extra): Likewise.
15784         (rs6000_dbx_register_number): For SPE high registers, return dwarf
15785         register number for the corresponding GCC hard register number.
15786         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
15787         newly added GCC hard register numbers for SPE high registers.
15788         (DWARF_FRAME_REGISTERS):  Likewise.
15789         (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
15790         (DWARF_FRAME_REGNUM): Likewise.
15791         (FIXED_REGISTERS): Likewise.
15792         (CALL_USED_REGISTERS): Likewise.
15793         (CALL_REALLY_USED_REGISTERS): Likewise.
15794         (REG_ALLOC_ORDER): Likewise.
15795         (enum reg_class): Likewise.
15796         (REG_CLASS_NAMES): Likewise.
15797         (REG_CLASS_CONTENTS): Likewise.
15798         (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
15800 2014-08-04  Richard Biener  <rguenther@suse.de>
15802         * gimple-fold.h (gimple_fold_builtin): Remove.
15803         * gimple-fold.c (gimple_fold_builtin): Make static.
15804         * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
15805         fold_stmt, not gimple_fold_builtin.
15807 2014-08-04  Martin Liska <mliska@suse.cz>
15809         * cgraph.h (csi_end_p): Removed.
15810         (csi_next): Likewise.
15811         (csi_node): Likewise.
15812         (csi_start): Likewise.
15813         (cgraph_node_in_set_p): Likewise.
15814         (cgraph_node_set_size): Likewise.
15815         (vsi_end_p): Likewise.
15816         (vsi_next): Likewise.
15817         (vsi_node): Likewise.
15818         (vsi_start): Likewise.
15819         (varpool_node_set_size): Likewise.
15820         (cgraph_node_set_nonempty_p): Likewise.
15821         (varpool_node_set_nonempty_p): Likewise.
15822         * cgraphunit.c (cgraph_process_new_functions): vec replaces
15823         cgraph_node_set.
15824         * ipa-inline-transform.c: Likewise.
15825         * ipa-utils.c (cgraph_node_set_new): Removed.
15826         (cgraph_node_set_add): Likewise.
15827         (cgraph_node_set_remove): Likewise.
15828         (cgraph_node_set_find): Likewise.
15829         (dump_cgraph_node_set): Likewise.
15830         (debug_cgraph_node_set): Likewise.
15831         (free_cgraph_node_set): Likewise.
15832         (varpool_node_set_new): Likewise.
15833         (varpool_node_set_add): Likewise.
15834         (varpool_node_set_remove): Likewise.
15835         (varpool_node_set_find): Likewise.
15836         (dump_varpool_node_set): Likewise.
15837         (free_varpool_node_set): Likewise.
15838         (debug_varpool_node_set): Likewise.
15839         * tree-emutls.c (struct tls_var_data):
15840         (emutls_index): Removed.
15841         (emutls_decl): Likewise.
15842         (gen_emutls_addr): Function implementation uses newly added
15843         hash_map<varpool_node *, tls_var_data>.
15844         (clear_access_vars): Likewise.
15845         (create_emultls_var): Likewise.
15846         (ipa_lower_emutls): Likewise.
15847         (reset_access): New function.
15849 2014-08-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
15851         * config/i386/i386.c (ix86_option_override_internal): Add
15852         PTA_RDRND and PTA_MOVBE for bdver4.
15854 2014-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15855             James Greenhalgh  <james.greenhalgh@arm.com>
15857         * doc/md.texi (clrsb): Document.
15858         (clz): Change reference to x into operand 1.
15859         (ctz): Likewise.
15860         (popcount): Likewise.
15862 2014-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15864         PR target/61713
15865         * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
15866         move to subtarget in serial version if result is ignored.
15868 2014-08-04  Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15869             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15871         * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
15872         to any two insns.  Update comment.  Rename to sched_macro_fuse_insns.
15873         (sched_analyze_insn): Update use of try_group_insn to
15874         sched_macro_fuse_insns.
15875         * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
15876         arguments that are not conditional jumps.
15878 2014-08-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
15880         * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
15881         family information. Handle BTVER2 cpu with cpuid family value.
15883 2014-08-04  Tom de Vries  <tom@codesourcery.com>
15885         * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
15886         (glibc_2_11_or_earlier): Document effective-target keywords.
15888 2014-08-01  Jan Hubicka  <hubicka@ucw.cz>
15890         * ipa-devirt.c (odr_type_warn_count): Add type.
15891         (possible_polymorphic_call_targets): Set it.
15892         (ipa_devirt): Use it.
15894 2014-08-01  Jan Hubicka  <hubicka@ucw.cz>
15896         * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
15897         Document.
15898         * ipa-devirt.c: Include hash-map.h
15899         (struct polymorphic_call_target_d): Add type_warning and decl_warning.
15900         (clear_speculation): Break out of ...
15901         (get_class_context): ... here; speed up handling obviously useless
15902         speculations.
15903         (odr_type_warn_count, decl_warn_count): New structures.
15904         (final_warning_record): New structure.
15905         (final_warning_records): New static variable.
15906         (possible_polymorphic_call_targets): Cleanup handling of
15907         speculative info; do not build speculation when user do not care;
15908         record info about warnings when asked for.
15909         (add_decl_warning): New function.
15910         (type_warning_cmp): New function.
15911         (decl_warning_cmp): New function.
15912         (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
15913         (gate): Enable pass when warnings are requested.
15914         * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
15915         options.
15917 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
15919         * hash-map.h (default_hashmap_traits::mark_key_deleted):
15920         Fix cast.
15921         (hash_map::remove): New method.
15922         (hash_map::traverse): New method.
15923         * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
15924         ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
15925         tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
15926         tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
15927         tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
15928         tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
15929         pointer_map.
15931 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
15933         * hash-set.h: new File.
15934         * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
15935         cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
15936         ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
15937         lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
15938         tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
15939         tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
15940         tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
15941         varpool.c: Use hash_set instead of pointer_set.
15943 2014-08-01  Alan Lawrence  <alan.lawrence@arm.com>
15945         * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
15947 2014-08-01  Jiong Wang <jiong.wang@arm.com>
15949         * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
15950         for frame access when strict_p is false.
15952 2014-08-01  Renlin Li <renlin.li@arm.com>
15953 2014-08-01  Jiong Wang <jiong.wang@arm.com>
15955         * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
15956         aarch64_offset_7bit_signed_scaled_p, remove static and use it.
15957         * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
15958         Declaration.
15959         * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
15960         predicate.
15961         * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
15962         aarch64_mem_pair_offset.
15964 2014-08-01  Jiong Wang <jiong.wang@arm.com>
15966         * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
15967         offset.
15968         (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
15969         * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
15971 2014-08-01  Matthew Fortune  <matthew.fortune@imgtec.com>
15973         * config/mips/mips.h (REGISTER_PREFIX): Define macro.
15975 2014-08-01  James Greenhalgh  <james.greenhalgh@arm.com>
15977         PR regression/61510
15978         * cgraphunit.c (analyze_functions): Use get_create rather than get
15979         for decls which are clones of abstract functions.
15981 2014-08-01  Martin Liska  <mliska@suse.cz>
15983         * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
15984         * ipa-prop.h (count_formal_params): Global function created from static.
15985         * ipa-prop.c (count_formal_params): Likewise.
15986         * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
15987         profiles for semantically equivalent functions.
15988         * passes.c (do_per_function): If we load body of a function
15989         during WPA, this condition should behave same.
15990         * varpool.c (ctor_for_folding): More tolerant assert for variable
15991         aliases created during WPA.
15993 2014-08-01  Martin Liska  <mliska@suse.cz>
15995         * doc/invoke.texi (Options That Control Optimization): Documentation
15996         for -foptimize-strlen introduced. Optimization levels default options
15997         fixed.
15999 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
16001         * opts.c (common_handle_option): Handle -fsanitize=alignment.
16002         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
16003         (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
16004         type to bool.
16005         * stor-layout.h (min_align_of_type): New prototype.
16006         * asan.c (pass_sanopt::execute): Don't perform gsi_next if
16007         ubsan_expand* told us not to do it.  Remove the extra gsi_end_p
16008         check.
16009         * ubsan.c: Include builtins.h.
16010         (ubsan_expand_bounds_ifn): Change return type to bool,
16011         always return true.
16012         (ubsan_expand_null_ifn): Change return type to bool, change
16013         argument to gimple_stmt_iterator *.  Handle both null and alignment
16014         sanitization, take type from ckind argument's type rather than
16015         first argument.
16016         (instrument_member_call): Removed.
16017         (instrument_mem_ref): Remove t argument, add mem and base arguments.
16018         Handle both null and alignment sanitization, don't say whole
16019         struct access is member access.  Build 3 argument IFN_UBSAN_NULL
16020         call instead of 2 argument.
16021         (instrument_null): Adjust instrument_mem_ref caller.  Don't
16022         instrument calls here.
16023         (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
16024         like SANITIZE_NULL.
16025         * stor-layout.c (min_align_of_type): New function.
16026         * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
16027         Or it into SANITIZE_UNDEFINED.
16028         * doc/invoke.texi (-fsanitize=alignment): Document.
16030 2014-07-31  Andi Kleen  <ak@linux.intel.com>
16032         * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
16034 2014-07-31  Andi Kleen  <ak@linux.intel.com>
16036         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
16037         inchash.
16038         (vn_reference_compute_hash): Dito.
16039         (vn_nary_op_compute_hash): Dito.
16040         (vn_phi_compute_hash): Dito.
16041         * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
16043 2014-07-31  Andi Kleen  <ak@linux.intel.com>
16045         * tree-ssa-dom.c (iterative_hash_exprs_commutative):
16046         Rename to inchash:add_expr_commutative. Convert to inchash.
16047         (iterative_hash_hashable_expr): Rename to
16048         inchash:add_hashable_expr. Convert to inchash.
16049         (avail_expr_hash): Dito.
16051 2014-07-31  Andi Kleen  <ak@linux.intel.com>
16053         * ipa-devirt.c (polymorphic_call_target_hasher::hash):
16054         Convert to inchash.
16056 2014-07-31  Andi Kleen  <ak@linux.intel.com>
16058         * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
16060 2014-07-31  Andi Kleen  <ak@linux.intel.com>
16062         * Makefile.in (OBJS): Add rtlhash.o
16063         * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
16064         (loc_checksum): Dito.
16065         (loc_checksum_ordered): Dito.
16066         (hash_loc_operands): Dito.
16067         (hash_locs): Dito.
16068         (hash_loc_list): Dito.
16069         * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
16070         * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
16071         * rtlhash.c: New file.
16072         * rtlhash.h: New file.
16074 2014-07-31  Andi Kleen  <ak@linux.intel.com>
16076         * inchash.h (inchash): Change inchash class to namespace.
16077         (class hash): ... Rename from inchash.
16078         (add_object): Move from macro to class template.
16079         * lto-streamer-out.c (hash_tree): Change inchash
16080         to inchash::hash.
16081         * tree.c (build_type_attribute_qual_variant): Dito.
16082         (type_hash_list): Dito.
16083         (attribute_hash_list): Dito.
16084         (iterative_hstate_expr): Rename to inchash::add_expr
16085         (build_range_type_1): Change inchash to inchash::hash
16086         and use hash::add_expr.
16087         (build_array_type_1): Dito.
16088         (build_function_type): Dito
16089         (build_method_type_directly): Dito.
16090         (build_offset_type): Dito.
16091         (build_complex_type): Dito.
16092         (make_vector_type): Dito.
16093         * tree.h (iterative_hash_expr): Dito.
16095 2014-07-31  Chen Gang  <gang.chen.5i5j@gmail.com>
16097         * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
16099 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
16101         * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
16102         correct alphabetical position.
16103         (vpaddd_f64): Rewrite using builtins.
16104         (vpaddd_s64): Move to correct alphabetical position.
16105         (vpaddd_u64): New.
16107 2014-07-31  Oleg Endo  <olegendo@gcc.gnu.org>
16109         PR target/61844
16110         * config/sh/sh.c (sh_legitimate_address_p,
16111         sh_legitimize_reload_address): Handle reg+reg address modes when
16112         ALLOW_INDEXED_ADDRESS is false.
16113         * config/sh/predicates.md (general_movsrc_operand,
16114         general_movdst_operand): Likewise.
16116 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
16118         * config/aarch64/aarch64-builtins.c
16119         (aarch64_gimple_fold_builtin): Don't fold reduction operations for
16120         BYTES_BIG_ENDIAN.
16122 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
16124         * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
16125         the generated mask based on BYTES_BIG_ENDIAN.
16126         (aarch64_simd_check_vect_par_cnst_half): New.
16127         * config/aarch64/aarch64-protos.h
16128         (aarch64_simd_check_vect_par_cnst_half): New.
16129         * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
16130         the check out to aarch64_simd_check_vect_par_cnst_half.
16131         (vect_par_cnst_lo_half): Likewise.
16132         * config/aarch64/aarch64-simd.md
16133         (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
16134         (move_hi_quad_<mode>): Always generate a low mask.
16136 2014-07-30  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
16138         * doc/invoke.texi (AVR Options): Add documentation about
16139         __AVR_DEVICE_NAME__ built-in macro.
16141 2014-07-31  Charles Baylis  <charles.baylis@linaro.org>
16143         PR target/61948
16144         * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
16145         constraints are satisfied.
16146         (<shift>di3_neon): Likewise.
16148 2014-07-31  Richard Biener  <rguenther@suse.de>
16150         PR tree-optimization/61964
16151         * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
16152         by structural equality.
16154 2014-07-31  Yury Gribov  <y.gribov@samsung.com>
16156         * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
16157         * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
16158         * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
16159         New enums.
16160         * gcc.c (sanitize_spec_function): Support new option.
16161         (SANITIZER_SPEC): Remove now redundant check.
16162         * opts.c (common_handle_option): Support new option.
16163         (finish_options): Check for incompatibilities.
16164         * toplev.c (process_options): Split userspace-specific checks.
16166 2014-07-31  Richard Biener  <rguenther@suse.de>
16168         * lto-streamer.h (struct output_block): Remove global.
16169         (struct data_in): Remove labels, num_named_labels and
16170         num_unnamed_labels.
16171         * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
16172         * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
16174 2014-07-31  Marc Glisse  <marc.glisse@inria.fr>
16176         PR c++/60517
16177         * common.opt (-Wreturn-local-addr): Moved from c.opt.
16178         * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
16179         (isolate_path): New argument to avoid inserting a trap.
16180         (find_implicit_erroneous_behaviour): Handle returning the address
16181         of a local variable.
16182         (find_explicit_erroneous_behaviour): Likewise.
16184 2014-07-31  Bingfeng Mei <bmei@broadcom.com>
16186         PR lto/61868
16187         * toplev.c (init_random_seed): Move piece of code never called to
16188         set_random_seed.
16189         (set_random_seed): see above.
16191 2014-07-31  Tom de Vries  <tom@codesourcery.com>
16193         * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
16195 2014-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
16197         * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
16198         (compute_regs_asm_clobbered): Use extract_asm_operands instead.
16200 2014-07-31  Richard Biener  <rguenther@suse.de>
16202         * data-streamer.h (streamer_write_data_stream): Declare here,
16203         renamed from ...
16204         * lto-streamer.h (lto_output_data_stream): ... this.  Remove.
16205         * lto-cgraph.c (lto_output_node): Adjust.
16206         (lto_output_varpool_node): Likewise.
16207         * data-streamer-out.c (streamer_string_index): Likewise.
16208         (streamer_write_data_stream, lto_append_block): Move from ...
16209         * lto-section-out.c (lto_output_data_stream,
16210         lto_append_block): ... here.
16212 2014-07-30  Mike Stump  <mikestump@comcast.net>
16214         * configure.ac: Also check for popen.
16215         * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
16216         * configure: Regenerate.
16217         * config.in:  Regenerate.
16219 2014-07-30  Martin Jambor  <mjambor@suse.cz>
16221         * tree-sra.c (sra_ipa_modify_assign): Change type of the first
16222         parameter to gimple.
16224 2014-07-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16226         * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
16227         address as second parameter to __tpf_eh_return routine.
16229 2014-07-30  Jiong Wang  <jiong.wang@arm.com>
16231         * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
16232         Thumb2.
16234 2014-07-30  Tom Tromey  <tromey@redhat.com>
16236         PR c/59855
16237         * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
16238         * doc/extend.texi (Type Attributes): Document designated_init
16239         attribute.
16241 2014-07-30  Roman Gareev  <gareevroman@gmail.com>
16243         * graphite-isl-ast-to-gimple.c:
16244         (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
16245         (gcc_expression_from_isl_expression): Pass type to
16246         gcc_expression_from_isl_ast_expr_id.
16248 2014-07-30  Richard Biener  <rguenther@suse.de>
16250         * lto-streamer.h (lto_write_data): New function.
16251         * langhooks.c (lhd_append_data): Do not free block.
16252         * lto-section-out.c (lto_write_data): New function writing
16253         raw data to the current section.
16254         (lto_write_stream): Adjust for langhook semantic change.
16255         (lto_destroy_simple_output_block): Write header directly.
16256         * lto-opts.c (lto_write_options): Write options directly.
16257         * lto-streamer-out.c (produce_asm): Write heaeder directly.
16258         (lto_output_toplevel_asms): Likewise.
16259         (copy_function_or_variable): Copy data directly.
16260         (write_global_references): Output index table directly.
16261         (lto_output_decl_state_refs): Likewise.
16262         (write_symbol): Write data directly.
16263         (produce_symtab): Adjust.
16264         (produce_asm_for_decls): Output header and refs directly.
16266 2014-07-29  Jan Hubicka  <hubicka@ucw.cz>
16268         * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
16269         to speculative_targets
16270         (get_class_context): Fix handling of contextes without outer type;
16271         avoid matching non-polymorphic types in LTO.
16272         (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
16273         parameter to speculative_targetsp; handle speculation.
16274         (dump_possible_polymorphic_call_targets): Update dumping.
16276 2014-07-29  Jan Hubicka  <hubicka@ucw.cz>
16278         * common.opt (Wodr): Enable by default.
16280 2014-07-29  Olivier Hainque  <hainque@adacore.com>
16282         * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
16284 2014-07-29  H.J. Lu  <hongjiu.lu@intel.com>
16286         PR bootstrap/61914
16287         * gengtype.c (strtoken): New function.
16288         (create_user_defined_type): Replace strtok with strtoken.
16290 2014-07-29  Nathan Sidwell  <nathan@acm.org>
16292         * gcov-io.c (gcov_var): Make hidden.
16293         * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
16294         (gcov_do_dump): Declare.
16295         (gcov_output_files): Call gcov_do_dump, not gcov_exit).
16297 2014-07-29  Martin Jambor  <mjambor@suse.cz>
16299         * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
16300         parameter to gimple.
16301         (sra_modify_assign): Likewise.
16303 2014-07-29  Richard Biener  <rguenther@suse.de>
16305         PR middle-end/52478
16306         * expr.c (expand_expr_real_2): Revert last change.
16308 2014-07-28  Jan Hubicka  <hubicka@ucw.cz>
16310         * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
16311         * cgraph.h (cgraph_indirect_call_info): Add speculative data.
16312         * gimple-fold.c (fold_gimple_assign): Fix check for virtual
16313         call.
16314         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
16315         (contains_type_p): Forward declare.
16316         (polymorphic_call_target_hasher::hash): Hash speculative info.
16317         (polymorphic_call_target_hasher::equal): Compare speculative info.
16318         (get_class_context): Handle speuclation.
16319         (contains_type_p): Update.
16320         (get_polymorphic_call_info_for_decl): Update.
16321         (walk_ssa_copies): Break out from ...
16322         (get_polymorphic_call_info): ... here; set speculative context
16323         before giving up.
16324         * ipa-prop.c (ipa_write_indirect_edge_info,
16325         ipa_read_indirect_edge_info): Stream speculative context.
16326         * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
16327         (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
16328         SPECULATIVE_MAYBE_DERIVED_TYPE).
16329         (possible_polymorphic_call_targets overriders): Update.
16330         (dump_possible_polymorphic_call_targets overriders): Update.
16331         (dump_possible_polymorphic_call_target_p overriders): Update.
16333 2014-07-28  Jan Hubicka  <hubicka@ucw.cz>
16335         * gimple-fold.c (fold_gimple_assign): Fix condition guarding
16336         ipa-devirt path; fix thinko there.
16338 2014-07-28  Trevor Saunders  <tsaunders@mozilla.com>
16340         * config/i386/i386.c (ix86_return_in_memory): Replace one
16341         ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
16343 2014-07-28  Marek Polacek  <polacek@redhat.com>
16345         * doc/invoke.texi (-Wno-odr): Fix @item entry.  Tweak wording.
16347 2014-07-28  Peter Bergner  <bergner@vnet.ibm.com>
16349         * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
16350         * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
16351         * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
16352         (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
16353         (USE_LD_AS_NEEDED): Likewise.
16354         (ASM_APP_ON): Likewise.
16355         (ASM_APP_OFF): Likewise.
16356         (TARGET_POSIX_IO): Likewise.
16357         * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
16358         (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
16359         (USE_LD_AS_NEEDED): Likewise.
16360         (ASM_APP_ON): Likewise.
16361         (ASM_APP_OFF): Likewise.
16362         (TARGET_POSIX_IO): Likewise.
16364 2014-07-28  Eric Botcazou  <ebotcazou@adacore.com>
16366         PR middle-end/61734
16367         * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
16368         operators other than the equality operators.
16370 2014-07-28  Richard Biener  <rguenther@suse.de>
16372         PR middle-end/52478
16373         * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
16374         sure to register SImode ones, not only >= word_mode ones.
16375         * expr.c (expand_expr_real_2): When expanding -ftrapv
16376         binops do not use OPTAB_LIB_WIDEN.
16378 2014-07-28  Richard Sandiford  <rdsandiford@googlemail.com>
16380         PR middle-end/61919
16381         * tree-outof-ssa.c (insert_partition_copy_on_edge)
16382         (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
16383         (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
16384         inserting them in the insn stream.
16386 2014-07-28  Marek Polacek  <polacek@redhat.com>
16388         PR middle-end/61913
16389         * common.opt (Wodr): Add Var.
16391 2014-07-28  Richard Biener  <rguenther@suse.de>
16393         PR tree-optimization/61921
16394         * tree-ssa-structalias.c (create_variable_info_for_1): Check
16395         if there is a varpool node before dereferencing it.
16397 2014-07-28  Roman Gareev  <gareevroman@gmail.com>
16399         * graphite-sese-to-poly.c:
16400         (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
16401         id of the pbb), which contains pointer to the pbb1.
16403         * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
16405 2014-07-28  Roman Gareev  <gareevroman@gmail.com>
16407         * graphite-isl-ast-to-gimple.c:
16408         (graphite_create_new_guard): New function.
16409         (translate_isl_ast_node_if): New function.
16410         (translate_isl_ast): Add calling of translate_isl_ast_node_if.
16412         * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
16414 2014-07-27  Anthony Green  <green@moxielogic.com>
16416         * config.gcc: Add moxie-*-moxiebox* configuration.
16417         * config/moxie/moxiebox.h: New file.
16419 2014-07-26  Andrew Pinski  <apinski@cavium.com>
16421         * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
16422         from the read only register.
16424 2014-07-26  Richard Sandiford  <rdsandiford@googlemail.com>
16426         * ira-costs.c (find_costs_and_classes): For -O0, use the best class
16427         as the allocation class if it isn't likely to be spilled.
16429 2014-07-26  Richard Sandiford  <rdsandiford@googlemail.com>
16431         * rtl.h (tls_referenced_p): Declare.
16432         * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
16433         * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
16434         (mips_cannot_force_const_mem): Use tls_referenced_p.
16435         * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
16436         * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
16437         instead of pa_tls_referenced_p.
16438         * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
16439         (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
16440         (pa_legitimate_constant_p): Likewise.
16441         (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
16442         * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
16443         (rs6000_cannot_force_const_mem, rs6000_emit_move)
16444         (rs6000_address_for_altivec): Use tls_referenced_p instead of
16445         rs6000_tls_referenced_p.
16446         (rs6000_tls_symbol_ref_1): Delete.
16448 2014-07-26  Marc Glisse  <marc.glisse@inria.fr>
16450         PR target/44551
16451         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
16452         Optimize inverse of a VEC_CONCAT.
16454 2014-07-25  Xinliang David Li  <davidxl@google.com>
16456         * params.def: New parameter.
16457         * coverage.c (get_coverage_counts): Check new flag.
16458         (coverage_compute_profile_id): Check new flag.
16459         (coverage_begin_function): Check new flag.
16460         (coverage_end_function): Check new flag.
16461         * value-prof.c (coverage_node_map_initialized_p): New function.
16462         (init_node_map): Populate map with all functions.
16463         * doc/invoke.texi: Document new parameter.
16465 2014-07-25  Jan Hubicka  <hubicka@ucw.cz>
16466             Richard Biener <rguenther@suse.de>
16468         * lto-streamer-out.c (struct sccs): Turn to ...
16469         (class DFS): ... this one; refactor the DFS walk so it can
16470         be re-done on per-SCC basis.
16471         (DFS::DFS): New constructor.
16472         (DFS::~DFS): New destructor.
16473         (hash_tree): Add new MAP argument holding in-SCC hash values;
16474         remove POINTER_TYPE hashing hack.
16475         (scc_entry_compare): Rename to ...
16476         (DFS::scc_entry_compare): ... this one.
16477         (hash_scc): Rename to ...
16478         (DFS::hash_scc): ... this one; pass output_block instead
16479         of streamer_cache; work harder to get unique and stable SCC
16480         hashes.
16481         (DFS_write_tree): Rename to ...
16482         (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
16483         (lto_output_tree): Update.
16485 2014-07-25  Andi Kleen  <ak@linux.intel.com>
16487         * lto-streamer-out.c (hash_tree): Convert to inchash.
16489 2014-07-25  Andi Kleen  <ak@linux.intel.com>
16491         * tree.c (build_type_attribute_qual_variant): Use inchash.
16492         (type_hash_list): Dito.
16493         (attribute_hash_list): Dito
16494         (iterative_hstate_expr): Dito.
16495         (iterative_hash_expr): Dito.
16496         (build_range_type_1): Dito.
16497         (build_array_type_1): Dito.
16498         (build_function_type): Dito.
16499         (build_method_type_directly): Dito.
16500         (build_offset_type): Dito.
16501         (build_complex_type): Dito.
16502         (make_vector_type): Dito.
16503         * tree.h (iterative_hash_expr): Add compat wrapper.
16504         (iterative_hstate_expr): Add.
16506 2014-07-25  Andi Kleen  <ak@linux.intel.com>
16508         * Makefile.in (OBJS): Add inchash.o.
16509         (PLUGIN_HEADERS): Add inchash.h.
16510         * ipa-devirt.c: Include inchash.h.
16511         * lto-streamer-out.c: Dito.
16512         * tree-ssa-dom.c: Dito.
16513         * tree-ssa-pre.c: Dito.
16514         * tree-ssa-sccvn.c: Dito.
16515         * tree-ssa-tail-merge.c: Dito.
16516         * asan.c: Dito.
16517         * tree.c (iterative_hash_hashval_t): Move to ...
16518         (iterative_hash_host_wide_int): Move to ...
16519         * inchash.c: Here. New file.
16520         * tree.h (iterative_hash_hashval_t): Move to ...
16521         (iterative_hash_host_wide_int): Move to ...
16522         * inchash.h: Here. New file.
16524 2014-07-25  Richard Biener  <rguenther@suse.de>
16526         PR middle-end/61762
16527         PR middle-end/61894
16528         * fold-const.c (native_encode_int): Add and handle offset
16529         parameter to do partial encodings of expr.
16530         (native_encode_fixed): Likewise.
16531         (native_encode_real): Likewise.
16532         (native_encode_complex): Likewise.
16533         (native_encode_vector): Likewise.
16534         (native_encode_string): Likewise.
16535         (native_encode_expr): Likewise.
16536         * fold-const.c (native_encode_expr): Add offset parameter
16537         defaulting to -1.
16538         * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
16539         (fold_ctor_reference): Handle all reads from tcc_constant
16540         ctors.
16542 2014-07-25  Richard Biener  <rguenther@suse.de>
16544         * tree-inline.c (estimate_move_cost): Mark speed_p argument
16545         as possibly unused.
16547 2014-07-23  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
16549         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
16551 2014-07-24  Kyle McMartin  <kyle@redhat.com>
16553         * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
16555 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16557         * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
16558         Add prototype.
16559         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
16560         function.
16561         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
16562         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
16563         * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
16565 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16567         * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
16568         and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
16569         aggregate types.  Instead, *all* aggregate types, except for single-
16570         element or homogeneous float/vector aggregates, are quadword-aligned
16571         if required by their type alignment.  Issue -Wpsabi note when a type
16572         is now treated differently than before.
16574 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16576         * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
16577         does not fit fully into floating-point registers, and there is still
16578         space in the register parameter area, use GPRs to pass those parts
16579         of the argument.  Issue -Wpsabi note if any parameter is now treated
16580         differently than before.
16581         (rs6000_arg_partial_bytes): Update.
16583 2014-07-24  Uros Bizjak  <ubizjak@gmail.com>
16585         * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
16587 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
16589         * rtl.h (target_rtl): Remove lang_dependent_initialized.
16590         * toplev.c (initialize_rtl): Don't use it.  Move previously
16591         "language-dependent" calls to...
16592         (backend_init): ...here.
16593         (lang_dependent_init_target): Don't set lang_dependent_initialized.
16594         Assert that RTL initialization hasn't happend yet.
16596 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
16598         PR rtl-optimization/61629
16599         * reginfo.c (reinit_regs): Only call ira_init and recog_init if
16600         they have already been initialized.
16602 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
16604         PR middle-end/61268
16605         * function.c (assign_parm_setup_reg): Prevent invalid sharing of
16606         DECL_INCOMING_RTL and entry_parm.
16607         (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
16608         * calls.c (load_register_parameters): Likewise argument values.
16609         (emit_library_call_value_1, store_one_arg): Likewise argument
16610         save areas.
16611         * config/i386/i386.c (assign_386_stack_local): Likewise the local
16612         stack slot.
16613         * explow.c (validize_mem): Modify the argument in-place.
16615 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
16617         * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
16618         (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
16620 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
16622         * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
16623         (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
16625 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
16627         * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
16628         (aarch64_save_callee_saves): New parameter "skip_wb".
16629         (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
16631 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
16633         * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
16634         "wb_candidate2".
16635         * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
16637 2014-07-24  Roman Gareev  <gareevroman@gmail.com>
16639         * graphite-isl-ast-to-gimple.c:
16640         (graphite_create_new_loop): Add calling of isl_id_free to properly
16641         decrement reference counts.
16643         * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
16645 2014-07-24  Martin Liska  <mliska@suse.cz>
16646         * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
16647         function used.
16648         * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
16649         (rs6000_code_end): Likewise.
16651 2014-07-24  Martin Liska  <mliska@suse.cz>
16653         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
16654         symtab_node funtion used.
16655         (rs6000_xcoff_declare_object_name): Likewise.
16657 2014-07-24  Martin Liska  <mliska@suse.cz>
16659         * cgraphunit.c (compile): Correct function used.
16661 2014-07-24  Jan Hubicka  <hubicka@ucw.cz>
16663         * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
16664         as non-indexable.
16666 2014-07-24  Jan Hubicka  <hubicka@ucw.cz>
16668         PR lto/61802
16669         * varasm.c (bss_initializer_p): Handle offlined ctors.
16670         (align_variable, get_variable_align): Likewise.
16671         (make_decl_one_only): Likewise.
16672         (default_binds_local_p_1): Likewise.
16673         (decl_binds_to_current_def_p): Likewise.
16674         (get_variable_section): Get constructor if it is offlined.
16675         (assemble_variable_contents): Sanity check that the caller
16676         streamed in the ctor in LTO.
16678 2014-07-24  Roman Gareev  <gareevroman@gmail.com>
16680         * graphite-isl-ast-to-gimple.c:
16681         (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
16682         (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
16683         isl_ast_op_pdiv_r to the different case.
16685         * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
16687 2014-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16689         PR middle-end/61876
16690         * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
16691         when flag_errno_math is on.
16693 2014-07-24  Martin Liska  <mliska@suse.cz>
16695         * cgraph.h (varpool_node):
16696         (availability get_availability (void)):
16697         created from cgraph_variable_initializer_availability
16698         (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
16699         created from: cgraph_variable_initializer_availability
16700         (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
16701         (void finalize_named_section_flags (void)):
16702         created from varpool_finalize_named_section_flags
16703         (bool assemble_decl (void)): created from varpool_assemble_decl
16704         (void analyze (void)): created from varpool_analyze_node
16705         (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
16706         void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
16707         (void remove_initializer (void)): created from varpool_remove_initializer
16708         (tree get_constructor (void)): created from varpool_get_constructor
16709         (bool externally_visible_p (void)): created from varpool_externally_visible_p
16710         (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
16711         (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
16712         (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
16713         (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
16714         (static void finalize_decl (tree decl)): created from varpool_finalize_decl
16715         (static bool output_variables (void)): created from varpool_output_variables
16716         (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
16717         created from varpool_extra_name_alias
16718         (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
16719         (static void dump_varpool (FILE *f)): created from dump_varpool
16720         (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
16721         (static varpool_node *create_empty (void)): created from varpool_create_empty_node
16722         (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
16723         (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
16724         (void assemble_aliases (void)): created from assemble_aliases
16726 2014-07-24  Martin Liska  <mliska@suse.cz>
16728         * cgraph.h (symtab_node):
16729         (void register_symbol (void)): created from symtab_register_node
16730         (void remove (void)): created from symtab_remove_node
16731         (void dump (FILE *f)): created from dump_symtab_node
16732         (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
16733         (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
16734         (struct ipa_ref *add_reference (symtab_node *referred_node,
16735         enum ipa_ref_use use_type)): created from add_reference
16736         (struct ipa_ref *add_reference (symtab_node *referred_node,
16737         enum ipa_ref_use use_type, gimple stmt)): created from add_reference
16738         (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
16739         gimple stmt)): created from maybe_add_reference
16740         (bool semantically_equivalent_p (symtab_node *target)): created from
16741         symtab_semantically_equivalent_p
16742         (void remove_from_same_comdat_group (void)): created from
16743         remove_from_same_comdat_group
16744         (void add_to_same_comdat_group (symtab_node *old_node)): created from
16745         symtab_add_to_same_comdat_group
16746         (void dissolve_same_comdat_group_list (void)): created from
16747         symtab_dissolve_same_comdat_group_list
16748         (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
16749         (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
16750         created from symtab_alias_ultimate_target
16751         (inline symtab_node *next_defined_symbol (void)): created from
16752         symtab_next_defined_symbol
16753         (bool resolve_alias (symtab_node *target)): created from
16754         symtab_resolve_alias
16755         (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
16756         void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
16757         (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
16758         (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
16759         (void set_section (const char *section)): created from set_section_1
16760         (enum availability get_availability (void)): created from symtab_node_availability
16761         (void make_decl_local (void)): created from symtab_make_decl_local
16762         (bool real_symbol_p (void)): created from symtab_read_node
16763         (can_be_discarded_p (void)): created from symtab_can_be_discarded
16764         (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
16765         (inline bool in_same_comdat_group_p (symtab_node *target)): created from
16766         symtab_in_same_comdat_p;
16767         (bool address_taken_from_non_vtable_p (void)): created from
16768         address_taken_from_non_vtable_p
16769         (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
16770         (static void dump_table (FILE *)): created from dump_symtab
16771         (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
16772         (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
16773         (static bool used_from_object_file_p_worker (symtab_node *node)): created from
16774         symtab_used_from_object_file_p
16775         (void dump_base (FILE *)): created from dump_symtab_base
16776         (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
16777         (void unregister (void)): created from symtab_unregister_node
16778         (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
16779         (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
16780         (static bool noninterposable_alias (symtab_node *node, void *data)): created from
16781         symtab_nonoverwritable_alias_1
16782         * cgraph.h (cgraph_node):
16783         (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
16784         created from cgraph_remove_node_and_inline_clones
16785         (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
16786         (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
16787         bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
16788         (cgraph_node *function_symbol (enum availability *avail = NULL)):
16789         created from cgraph_function_node
16790         (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
16791         vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
16792         struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
16793         created from cgraph_create_clone
16794         (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
16795         vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
16796         created from cgraph_create_virtual_clone
16797         (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
16798         (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
16799         bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
16800         (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
16801         vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
16802         bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
16803         created from cgraph_function_version_info
16804         (struct cgraph_function_version_info *insert_new_function_version (void)):
16805         created from insert_new_cgraph_node_version
16806         (struct cgraph_function_version_info *function_version (void)): created from
16807         get_cgraph_node_version
16808         (void analyze (void)): created from analyze_function
16809         (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
16810         HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
16811         tree real_alias) cgraph_add_thunk
16812         (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
16813         (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
16814         created from cgraph_function_or_thunk_node
16815         (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
16816         created from expand_thunk
16817         (void reset (void)): created from cgraph_reset_node
16818         (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
16819         (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
16820         (void remove (void)): created from cgraph_remove_node
16821         (void dump (FILE *f)): created from dump_cgraph_node
16822         (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
16823         (bool get_body (void)): created from cgraph_get_body
16824         (void release_body (void)): created from cgraph_release_function_body
16825         (void unnest (void)): created from cgraph_unnest_node
16826         (void make_local (void)): created from cgraph_make_node_local
16827         (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
16828         (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
16829         gcov_type count, int freq)): created from cgraph_create_edge
16830         (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
16831         gcov_type count, int freq)): created from cgraph_create_indirect_edge
16832         (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
16833         gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
16834         created from cgraph_create_edge_including_clones
16835         (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
16836         (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
16837         (void remove_callers (void)): created from cgraph_node_remove_callers
16838         (void remove_callees (void)): created from cgraph_node_remove_callees
16839         (enum availability get_availability (void)): created from cgraph_function_body_availability
16840         (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
16841         (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
16842         (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
16843         (void call_duplication_hooks (cgraph_node *node2)): created from
16844         cgraph_call_node_duplication_hooks
16845         (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
16846         void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
16847         (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
16848         void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
16849         (void call_function_insertion_hooks (void)):
16850         created from cgraph_call_function_insertion_hooks
16851         (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
16852         (bool local_p (void)): created from cgraph_local_node
16853         (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
16854         (bool cannot_return_p (void)): created from cgraph_node_cannot_return
16855         (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
16856         (inline bool only_called_directly_or_aliased_p (void)):
16857         created from cgraph_only_called_directly_or_aliased_p
16858         (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
16859         created from cgraph_will_be_removed_from_program_if_no_direct_calls
16860         (bool can_remove_if_no_direct_calls_and_refs_p (void)):
16861         created from cgraph_can_remove_if_no_direct_calls_and_refs_p
16862         (bool can_remove_if_no_direct_calls_p (void)):
16863         created from cgraph_can_remove_if_no_direct_calls_p
16864         (inline bool has_gimple_body_p (void)):
16865         created from cgraph_function_with_gimple_body_p
16866         (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
16867         (static void dump_cgraph (FILE *f)): created from dump_cgraph
16868         (static inline void debug_cgraph (void)): created from debug_cgraph
16869         (static void record_function_versions (tree decl1, tree decl2)):
16870         created from record_function_versions
16871         (static void delete_function_version (tree decl)):
16872         created from delete_function_version
16873         (static void add_new_function (tree fndecl, bool lowered)):
16874         created from cgraph_add_new_function
16875         (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
16876         (static cgraph_node * create (tree decl)): created from cgraph_create_node
16877         (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
16878         (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
16879         (static cgraph_node *get_for_asmname (tree asmname)):
16880         created from cgraph_node_for_asm
16881         (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
16882         created from cgraph_same_body_alias
16883         (static bool used_from_object_file_p_worker (cgraph_node *node,
16884         void *): new function
16885         (static bool non_local_p (cgraph_node *node, void *)):
16886         created from cgraph_non_local_node_p_1
16887         (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
16888         created from verify_cgraph
16889         (static bool make_local (cgraph_node *node, void *)):
16890         created from cgraph_make_node_local
16891         (static cgraph_node *create_alias (tree alias, tree target)):
16892         created from cgraph_create_function_alias
16893         (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
16894         gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
16895         created from cgraph_create_edge_1
16896         * cgraph.h (varpool_node):
16897         (void remove (void)): created from varpool_remove_node
16898         (void dump (FILE *f)): created from dump_varpool_node
16900 2014-07-24  Richard Biener  <rguenther@suse.de>
16902         PR ipa/61823
16903         * tree-ssa-structalias.c (create_variable_info_for_1):
16904         Use varpool_get_constructor.
16905         (create_variable_info_for): Likewise.
16907 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
16909         * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
16910         subtract outgoing area size when restoring stack_pointer_rtx.
16912 2014-07-24  Nick Clifton  <nickc@redhat.com>
16914         * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
16915         that operations are taking place in parallel.
16916         * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
16918 2014-07-24  Thomas Schwinge  <thomas@codesourcery.com>
16920         * omp-low.c (extract_omp_for_data): Add missing break statement.
16922 2014-07-24  Richard Biener  <rguenther@suse.de>
16924         * tree-inline.h (estimate_move_cost): Add speed_p parameter.
16925         * tree-inline.c (estimate_move_cost): Add speed_p parameter
16926         and adjust MOVE_RATIO query accordingly.
16927         (estimate_num_insns): Adjust callers.
16928         * ipa-prop.c (ipa_populate_param_decls): Likewise.
16929         * ipa-cp.c (gather_context_independent_values,
16930         estimate_local_effects): Likewise.
16931         * ipa-split.c (consider_split): Likewise.
16933 2014-07-24  Trevor Saunders  <tsaunders@mozilla.com>
16935         * config/i386/driver-i386.c: Remove names of unused arguments and
16936         unnecessary unused attributes.
16937         * config/i386/host-mingw32.c: Likewise.
16938         * config/i386/i386.c: Likewise.
16939         * config/i386/winnt-stubs.c: Likewise.
16940         * config/i386/winnt.c: Likewise.
16942 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
16944         * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
16945         (aarch64_gen_loadwb_pair): New helper function.
16946         (aarch64_expand_epilogue): Simplify code using new helper functions.
16947         * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
16949 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
16951         * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
16952         (aarch64_gen_storewb_pair): New helper function.
16953         (aarch64_expand_prologue): Simplify code using new helper functions.
16954         * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
16956 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
16958         * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
16959         Rename to aarch64_save_callee_saves, remove restore code.
16960         (aarch64_restore_callee_saves): New function.
16962 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
16964         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
16965         (aarch64_save_callee_saves): New function to handle reg save
16966         for both core and vectore regs.
16968 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
16970         * config/aarch64/aarch64.c (aarch64_gen_load_pair)
16971         (aarch64_gen_store_pair): New helper function.
16972         (aarch64_save_or_restore_callee_save_registers)
16973         (aarch64_save_or_restore_fprs): Use new helper functions.
16975 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
16977         * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
16978         (aarch64_save_or_restore_callee_save_registers)
16979         (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
16981 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
16983         * config/aarch64/aarch64.c
16984         (aarch64_save_or_restore_callee_save_registers)
16985         (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
16987 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
16989         * config/aarch64/aarch64.c
16990         (aarch64_save_or_restore_callee_save_registers)
16991         (aarch64_save_or_restore_fprs): Remove 'increment'.
16993 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
16995         * config/aarch64/aarch64.c
16996         (aarch64_save_or_restore_callee_save_registers)
16997         (aarch64_save_or_restore_fprs): Use register offset in
16998         cfun->machine->frame.reg_offset.
17000 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
17002         * config/aarch64/aarch64.c
17003         (aarch64_save_or_restore_callee_save_registers)
17004         (aarch64_save_or_restore_fprs): Remove base_rtx.
17006 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
17008         * config/aarch64/aarch64.c
17009         (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
17010         to 'start_offset'.  Remove local variable 'start_offset'.
17012 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
17014         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
17015         type to HOST_WIDE_INT.
17017 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
17019         * config/aarch64/aarch64.c (aarch64_expand_prologue)
17020         (aarch64_save_or_restore_fprs)
17021         (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
17023 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
17025         * config/arm/t-rtems-eabi: Add
17026         mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
17027         mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
17028         mbig-endian/mthumb/march=armv7-r, and
17029         mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
17030         multilibs.
17032 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
17033             Chris Johns <chrisj@rtems.org>
17034             Joel Sherrill <joel.sherrill@oarcorp.com>
17036         * config.gcc: Add nios2-*-rtems*.
17037         * config/nios2/rtems.h: New file.
17038         * gcc/config/nios2/t-rtems: New file.
17040 2014-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
17042         PR target/61396
17043         * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
17044         constant numbers, not general constants.
17045         (rs6000_expand_vector_init): Ditto.
17047 2014-07-23  Nathan Sidwell  <nathan@acm.org>
17049         * gcov-tool.c (gcov_list): Declare here.
17050         (set_gcov_list): Remove.
17051         (gcov_output_files): Set gcov_list directly.
17053 2014-07-23  Host Schirmeier  <horst@schirmeier.com>
17055         * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
17057 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
17059         * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
17060         callee-saved registers are available for padding purpose
17061         and r3 is not mandatory, then prefer use those callee-saved
17062         instead of r3.
17064 2014-07-23  Richard Biener  <rguenther@suse.de>
17066         * params.def (PARAM_MAX_COMBINE_INSNS): New.
17067         * combine.c: Include statistics.h and params.h.
17068         (combine_instructions): Guard three and four insn combines
17069         with max-combine-insns value.  Record statistics for combines
17070         performed.
17071         * doc/invoke.texi (max-combine-insns): Document new param.
17073 2014-07-23  Roman Gareev  <gareevroman@gmail.com>
17075         * graphite-isl-ast-to-gimple.c:
17076         (translate_isl_ast_node_block): New function.
17077         (translate_isl_ast): Add calling of translate_isl_ast_node_block.
17079         * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
17080         * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
17082 2014-07-23  Roman Gareev  <gareevroman@gmail.com>
17084         * graphite-isl-ast-to-gimple.c:
17085         (get_max_schedule_dimensions): New function.
17086         (extend_schedule): Likewise.
17087         (generate_isl_schedule): Add calling of extend_schedule and
17088         get_max_schedule_dimensions.
17090 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17092         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
17093         (case UNSPEC): Handle UNSPEC_RBIT.
17095 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17097         * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
17098         (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
17100 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17102         * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
17104 2014-07-22  Roman Gareev  <gareevroman@gmail.com>
17106         * graphite-isl-ast-to-gimple.c:
17107         Add inclusion of gimple-ssa.h, tree-into-ssa.h.
17108         (ivs_params_clear):
17109         (build_iv_mapping): New function.
17110         (translate_isl_ast_node_user): Likewise.
17111         (translate_isl_ast): Add calling of translate_isl_ast_node_user.
17113         * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
17114         * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
17115         * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
17117 2014-07-21  Bin Cheng  <bin.cheng@arm.com>
17119         PR target/55701
17120         * config/arm/arm.md (setmem): New pattern.
17121         * config/arm/arm-protos.h (struct tune_params): New fields.
17122         (arm_gen_setmem): New prototype.
17123         * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
17124         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
17125         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
17126         (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
17127         (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
17128         (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
17129         (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
17130         (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
17131         (arm_const_inline_cost): New function.
17132         (arm_block_set_max_insns): New function.
17133         (arm_block_set_non_vect_profit_p): New function.
17134         (arm_block_set_vect_profit_p): New function.
17135         (arm_block_set_unaligned_vect): New function.
17136         (arm_block_set_aligned_vect): New function.
17137         (arm_block_set_unaligned_non_vect): New function.
17138         (arm_block_set_aligned_non_vect): New function.
17139         (arm_block_set_vect, arm_gen_setmem): New functions.
17141 2014-07-21  Bin Cheng  <bin.cheng@arm.com>
17143         * config/arm/arm.c (output_move_neon): Handle REG explicitly.
17145 2014-07-21  Uros Bizjak  <ubizjak@gmail.com>
17147         PR target/61855
17148         * config/i386/avx512fintrin.h: Move constants for mantissa extraction
17149         out of #ifdef __OPTIMIZE__.
17151 2014-07-20  Eric Botcazou  <ebotcazou@adacore.com>
17153         * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
17154         different trapping status if -fnon-call-exceptions is enabled.
17156 2014-07-20  Eric Botcazou  <ebotcazou@adacore.com>
17158         * expr.c (store_field): Handle VOIDmode for calls that return values
17159         in multiple locations.
17161 2014-07-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17163         * config/rs6000/altivec.md (unspec enum):  Fix typo in UNSPEC_VSLDOI.
17164         (altivec_vsldoi_<mode>): Likewise.
17166 2014-07-20  Roman Gareev  <gareevroman@gmail.com>
17168         * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
17169         to the number of characters in the line.
17171 2014-07-20  Roman Gareev  <gareevroman@gmail.com>
17173         * graphite-isl-ast-to-gimple.c: Add using of
17174         build_nonstandard_integer_type instead of int128_integer_type_node.
17176 2014-07-19  Eric Botcazou  <ebotcazou@adacore.com>
17178         * toplev.c (output_stack_usage): Adjust the location of the warning.
17180 2014-07-19  Daniel Cederman  <cederman@gaisler.com>
17182         * config/sparc/sync.md (*membar_storeload_leon3): New insn.
17183         (*membar_storeload): Disable for LEON3.
17185 2014-07-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17187         PR rtl-optimization/61461
17188         * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
17190 2014-07-18  Uros Bizjak  <ubizjak@gmail.com>
17192         PR target/61794
17193         * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
17194         Fix instruction constraint.
17195         (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
17197 2014-07-18  Jonathan Wakely  <jwakely@redhat.com>
17199         * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
17201 2014-07-18  Chung-Ju Wu  <jasonwucj@gmail.com>
17203         * config/nds32/nds32.c (nds32_can_eliminate): Follow the
17204         GNU coding standards.
17205         (nds32_register_move_cost): Likewise.
17206         (nds32_memory_move_cost): Likewise.
17207         (nds32_address_cost): Likewise.
17209 2014-07-18  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
17211         * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
17213 2014-07-17  John David Anglin  <danglin@gcc.gnu.org>
17215         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
17216         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
17217         and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
17218         (HAVE_sync_compare_and_swapqi): Define.
17219         (HAVE_sync_compare_and_swaphi): Likewise.
17220         (HAVE_sync_compare_and_swapsi): Likewise.
17222 2014-07-17  Richard Sandiford  <rdsandiford@googlemail.com>
17224         * config/mips/p5600.md: Add missing cpu tests.
17226 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17228         * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
17229         (vmla_f64): Likewise.
17230         (vfms_f64): Likewise.
17231         (vmls_f64): Likewise.
17233 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17235         * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
17236         (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
17238 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17240         * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
17241         (vmlal_high_lane_s32): Likewise.
17242         (vmlal_high_lane_u16): Likewise.
17243         (vmlal_high_lane_u32): Likewise.
17244         (vmlsl_high_lane_s16): Likewise.
17245         (vmlsl_high_lane_s32): Likewise.
17246         (vmlsl_high_lane_u16): Likewise.
17247         (vmlsl_high_lane_u32): Likewise.
17249 2014-07-17  Terry Guo  <terry.guo@arm.com>
17251         * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
17252         (alus_reg): Renamed to alus_sreg.
17253         * config/arm/arm-fixed.md: Change type of non-dsp instructions
17254         from alu_reg to alu_sreg.  Change type of dsp instructions from
17255         alu_reg to alu_dsp_reg.
17256         * config/arm/thumb1.md: Likewise.
17257         * config/arm/thumb2.md: Likewise.
17258         * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
17259         * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
17260         with alu_sreg and alus_sreg.
17261         * config/arm/arm1026ejs.md (alu_op): Likewise.
17262         * config/arm/arm1136jfs.md (11_alu_op): Likewise.
17263         * config/arm/arm926ejs.md (9_alu_op): Likewise.
17264         * config/arm/fa526.md (526_alu_op): Likewise.
17265         * config/arm/fa606te.md (606te_alu_op): Likewise.
17266         * config/arm/fa626te.md (626te_alu_op): Likewise.
17267         * config/arm/fa726te.md (726te_alu_op): Likewise.
17268         * config/arm/fmp626.md (mp626_alu_op): Likewise.
17269         * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
17270         alu_sreg, alu_dsp_reg and alus_sreg.
17271         * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
17272         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
17273         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
17274         * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
17275         * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
17276         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
17277         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
17278         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
17279         * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
17280         * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
17281         subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
17282         *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
17283         (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
17284         sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
17285         subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
17286         alus_reg to alus_sreg.
17288 2014-07-17  Andreas Schwab  <schwab@linux-m68k.org>
17290         * real.c (encode_ieee_extended_motorola): Clear integer bit in the
17291         infinity format.
17293 2014-07-17  Richard Biener  <rguenther@suse.de>
17295         PR rtl-optimization/61801
17296         * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
17297         don't set reg_pending_barrier if it appears in a debug-insn.
17299 2014-07-16  DJ Delorie  <dj@redhat.com>
17301         * config/rx/rx.c (rx_option_override): Fix alignment values.
17302         (rx_align_for_label): Likewise.
17304 2014-07-17  Hans-Peter Nilsson  <hp@axis.com>
17306         PR target/61737.
17307         * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
17308         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
17309         (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
17310         functions.
17311         (cris_print_index, cris_print_operand, cris_constant_index_p)
17312         (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
17313         (cris_address_cost): Ditto last CONSTANT_P.
17314         (cris_symbol_type_of): Rename from cris_pic_symbol_type_of.  All
17315         callers changed.  Yield cris_offsettable_symbol for non-PIC
17316         constant symbolic expressions including labels.  Yield cris_unspec
17317         for all unspecs.
17318         (cris_expand_pic_call_address): New parameter MARKERP.  Set its
17319         target to pic_offset_table_rtx for calls that will likely go
17320         through PLT, const0_rtx when they can't.  All callers changed.
17321         Assert flag_pic.  Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
17322         symbolic expressions to be PICified.  Remove second, redundant,
17323         assert on can_create_pseudo_p returning non-zero.  Use
17324         replace_equiv_address_nv, not replace_equiv_address, for final
17325         operand update.
17326         * config/cris/cris.md ("movsi"): Move variable t to pattern
17327         toplevel. Adjust assert for new cris_symbol_type member.  Use
17328         CONSTANT_P instead of CONSTANT_ADDRESS_P.
17329         ("*movsi_internal") <case 9>: Make check for valid unspec operands
17330         for lapc stricter.
17331         <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
17332         ("call", "call_value"): Use second incoming operand as a marker
17333         for pic-offset-table-register being used.
17334         ("*expanded_call_non_v32", "*expanded_call_v32")
17335         ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
17336         second incoming operand to CALL, match cris_call_type_marker.
17337         ("*expanded_call_value_side"): Ditto.  Disable before reload_completed.
17338         ("*expanded_call_side"): Ditto.  Fix typo in comment.
17339         (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
17340         CONSTANT_P.
17341         * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
17342         * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
17343         (enum cris_symbol_type): Rename from cris_pic_symbol_type.  All
17344         users changed.  Add members cris_offsettable_symbol and cris_unspec.
17345         (cris_symbol_type): Rename from cris_pic_symbol_type.
17346         * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
17347         just CONSTANT_P.
17348         * config/cris/cris-protos.h (cris_symbol_type_of,
17349         cris_expand_pic_call_address): Adjust prototypes.
17350         (cris_legitimate_constant_p): New prototype.
17352         * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
17353         an existing tmake_file.  Don't add t-slibgcc and t-linux.
17355 2014-07-17  Jason Merrill  <jason@redhat.com>
17357         PR c++/61623
17358         * symtab.c (symtab_remove_from_same_comdat_group): Also
17359         set_comdat_group to NULL_TREE.
17360         (verify_symtab): Fix diagnostic.
17362 2014-07-16  David Wohlferd  <dw@LimeGreenSocks.com>
17364         PR target/61662
17365         * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
17367 2014-07-16  Dodji Seketeli  <dodji@redhat.com>
17369         Support location tracking for built-in macro tokens
17370         * input.h (is_location_from_builtin_token): New function declaration.
17371         * input.c (is_location_from_builtin_token): New function definition.
17372         * toplev.c (general_init): Tell libcpp what the pre-defined
17373         spelling location for built-in tokens is.
17375 2014-07-16  Jakub Jelinek  <jakub@redhat.com>
17377         * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
17378         on the FUNCTION_DECL.
17380 2014-07-16  Richard Biener  <rguenther@suse.de>
17382         PR other/61782
17383         * doc/extend.texi (always_inline): Clarify.
17385 2014-07-15  Eric Christopher  <echristo@gmail.com>
17387         * doc/invoke.texi (Link Options): Document -z option.
17389 2014-07-15  Uros Bizjak  <ubizjak@gmail.com>
17391         * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
17392         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
17394 2014-07-15  Jan Hubicka  <hubicka@ucw.cz>
17396         * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
17398 2014-07-15  Bernd Schmidt  <bernds@codesourcery.com>
17400         * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
17401         varpool_assemble_decl.
17402         * varpool.c (varpool_assemble_decl): Assert that node->definition is
17403         true.
17405 2014-07-15  Michael Matz  <matz@suse.de>
17407         PR rtl-optimization/61772
17408         * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
17410 2014-07-15  Richard Biener  <rguenther@suse.de>
17412         * opts.c (default_options_table): Disable bit-ccp at -Og.
17414 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
17416         * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
17418 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
17420         * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
17421         NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
17422         call langhook for unknown declaration.
17423         (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
17424         * tree.h (DECL_ARGUMENTS): Update.
17425         * print-tree.c (print_node): Update.
17426         * tree-core.h (tree_decl_non_common): Remove arguments.
17427         (tree_function_decl): Add arguments.
17429 2014-07-14  Richard Earnshaw  <rearnsha@arm.com>
17431         * aarch64.md (add_losym_<mode>): Set type to alu_imm.
17433 2014-07-14  Richard Biener  <rguenther@suse.de>
17435         PR tree-optimization/61779
17436         * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
17437         simplifying a condition.
17439 2014-07-14  Richard Biener  <rguenther@suse.de>
17441         * builtins.c (c_strlen): Make only_value == 2 really only
17442         affect warning generation.
17444 2014-07-14  Richard Biener  <rguenther@suse.de>
17446         PR tree-optimization/61757
17447         PR tree-optimization/61783
17448         PR tree-optimization/61787
17449         * tree-ssa-dom.c (record_equality): Revert canonicalization
17450         change and add comment.
17451         (propagate_rhs_into_lhs): Revert previous fix, removing
17452         loop depth restriction again.
17454 2014-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17456         * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
17457         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
17458         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
17459         * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
17460         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
17461         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
17462         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
17464 2014-07-14  Richard Biener  <rguenther@suse.de>
17466         * cgraph.h (decl_in_symtab_p): Make inline.
17468 2014-07-14  Jakub Jelinek  <jakub@redhat.com>
17470         PR middle-end/61294
17471         * doc/invoke.texi (-Wmemset-transposed-args): Document.
17473         PR target/61656
17474         * config/i386/i386.c (classify_argument): Don't merge classes above
17475         number of words.
17477 2014-07-13  Jan Hubicka  <hubicka@ucw.cz>
17479         * cgraph.h (symtab_node): Add nonzero_address.
17480         (decl_in_symtab_p): Break out from ...
17481         (symtab_get_node): ... here.
17482         * fold-const.c: Include cgraph.h
17483         (tree_single_nonzero_warnv_p): Use symtab to determine
17484         if symbol is non-zero.
17485         * symtab.c (symtab_node::nonzero_address): New method.
17487 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
17489         * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
17490         forgotten in previous commit.
17492 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
17494         * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
17495         on builtin types.
17496         * ipa-devirt.c: Include stor-layout.h and intl.h
17497         (odr_subtypes_equivalent_p): New function.
17498         (warn_odr): New function.
17499         (warn_type_mismatch): New function.
17500         (odr_types_equivalent_p): New function.
17501         (add_type_duplicate): Use it.
17502         * common.opt (Wodr): New flag.
17503         * doc/invoke.texi (Wodr): Document new warning.
17505 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
17507         * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
17508         (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
17509         * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
17510         (varpool_get_constructor): Push CTORS_IN timevar.
17511         * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
17513 2014-07-12  Uros Bizjak  <ubizjak@gmail.com>
17515         * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
17516         Remove VOID_FTYPE_PUSHORT.
17517         * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
17518         Change code to USHORT_FTYPE_VOID.
17519         (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
17520         (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
17521         (ix86_atomic_assign_expand_fenv): Update for
17522         __builtin_ia32_fnstsw changes.
17523         * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
17524         (fnstsw): Change operand 0 to nonimmediate operand.
17526 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
17528         * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
17529         (varpool_get_constructor): New function.
17530         (varpool_ctor_useable_for_folding_p): Break out from ...
17531         (ctor_for_folding): ... here; use varpool_get_constructor.
17532         (varpool_assemble_decl): Likewise.
17533         * lto-streamer.h (struct output_block): Turn cgraph_node
17534         to symbol filed.
17535         (lto_input_variable_constructor): Declare.
17536         * ipa-visibility.c (function_and_variable_visibility): Use
17537         varpool_get_constructor.
17538         * cgraph.h (varpool_get_constructor): Declare.
17539         (varpool_ctor_useable_for_folding_p): New function.
17540         * lto-streamer-out.c (get_symbol_initial_value): Take encoder
17541         parameter; return error_mark_node for non-trivial constructors.
17542         (lto_write_tree_1, DFS_write_tree): Update use of
17543         get_symbol_initial_value.
17544         (output_function): Update initialization of symbol.
17545         (output_constructor): New function.
17546         (copy_function): Rename to ..
17547         (copy_function_or_variable): ... this one; handle vars too.
17548         (lto_output): Output variable sections.
17549         * lto-streamer-in.c (input_constructor): New function.
17550         (lto_read_body): Rename from ...
17551         (lto_read_body_or_constructor): ... this one; handle vars too.
17552         (lto_input_variable_constructor): New function.
17553         * ipa-prop.c (ipa_prop_write_jump_functions,
17554         ipa_prop_write_all_agg_replacement): Update.
17555         * lto-cgraph.c (compute_ltrans_boundary): Use it.
17556         (output_cgraph_opt_summary): Set symbol to NULL.
17558 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
17560         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
17561         non-polymorphic types.
17562         * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
17563         * ipa-devirt.c (types_same_for_odr): Do not explode when one
17564         of types is not polymorphic.
17566 2014-07-11  Vladimir Makarov  <vmakarov@redhat.com>
17568         * lra-constraints.c (remove_inheritance_pseudos): Process
17569         destination pseudo too.
17571 2014-07-11  Rong Xu  <xur@google.com>
17573         * gcov-tool.c (gcov_output_files): Fix build error introduced in
17574         commit r212448.
17576 2014-07-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
17578         * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
17579         * config/avr/avr-devices.c (AVR_MCU): Same.
17580         (avr_mcu_types): add text start value to end of device list.
17581         * config/avr/avr-mcus.def: Add text section start for all devices.
17582         (ata5782): Add new avr5 device.
17583         (ata5831): Same.
17584         * config/avr/avr-tables.opt: Regenerate.
17585         * config/avr/avr.h: Add declaration for text section start handler.
17586         (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
17587         SPEC functions.
17588         (LINK_SPEC): Include text section start handler to linker spec.
17589         * config/avr/driver-avr.c (avr_device_to_text_start): New function to
17590         pass -Ttext option to linker if the text section start for the device
17591         is not zero.
17592         * config/avr/t-multilib: Regenerate.
17593         * doc/avr-mmcu.texi: Regenerate.
17595 2014-07-11  David Edelsohn  <dje.gcc@gmail.com>
17597         * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
17598         * config/rs6000/aix52.h (LINK_SPEC): Same.
17599         * config/rs6000/aix53.h (LINK_SPEC): Same.
17600         * config/rs6000/aix61.h (LINK_SPEC): Same.
17601         * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
17603 2014-07-11  Roman Gareev  <gareevroman@gmail.com>
17605         * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
17606         (graphite_verify): New function.
17607         (ivs_params_clear): New function.
17608         (gcc_expression_from_isl_ast_expr_id): New function.
17609         (gcc_expression_from_isl_expr_int): New function.
17610         (binary_op_to_tree): New function.
17611         (ternary_op_to_tree): New function.
17612         (unary_op_to_tree): New function.
17613         (nary_op_to_tree): New function.
17614         (gcc_expression_from_isl_expr_op): New function.
17615         (gcc_expression_from_isl_expression): New function.
17616         (graphite_create_new_loop): New function.
17617         (translate_isl_ast_for_loop): New function.
17618         (get_upper_bound): New function.
17619         (graphite_create_new_loop_guard): New function.
17620         (translate_isl_ast_node_for): New function.
17621         (translate_isl_ast): New function.
17622         (add_parameters_to_ivs_params): New function.
17623         (scop_to_isl_ast): New parameter ip.
17624         (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
17626 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
17628         * config/xtensa/predicates.md (call expander): Update for
17629         DECL_SECTION_NAME being string.
17631 2014-07-11  Richard Biener  <rguenther@suse.de>
17633         PR middle-end/61473
17634         * builtins.c (fold_builtin_memory_op): Inline memory moves that
17635         can be implemented with a single load followed by a single store.
17636         (c_strlen): Only warn when only_value is not 2.
17638 2014-07-11  Evgeny Stupachenko  <evstupac@gmail.com>
17640         * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
17642 2014-07-11  Marat Zakirov  <m.zakirov@samsung.com>
17644         PR target/61561
17645         * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
17646         (*movhi_bytes): Likewise.
17647         (*arm_movqi_insn): Likewise.
17649 2014-07-11  Uros Bizjak  <ubizjak@gmail.com>
17651         PR target/56858
17652         * config/alpha/alpha.c: Include tree-pass.h, context.h
17653         and pass_manager.h.
17654         (pass_data_handle_trap_shadows): New pass.
17655         (pass_handle_trap_shadows::gate): New pass gate function.
17656         (make_pass_handle_trap_shadows): New function.
17657         (rest_of_handle_trap_shadows): Ditto.
17659         (alpha_align_insns_1): Rename from alpha_align_insns.
17660         (pass_data_align_insns): New pass.
17661         (pass_align_insns::gate): New pass gate function.
17662         (make_pass_aling_insns): New function.
17663         (rest_of_align_insns): Ditto.
17664         (alpha_align_insns): Ditto.
17666         (alpha_option_override): Declare handle_trap_shadows info
17667         and align_insns_info.  Register handle_trap_shadows and align_insns
17668         passes here.
17669         (alpha_reorg): Do not call alpha_trap_shadows and
17670         alpha_align_insn from here.
17672         (alpha_pad_function_end): Do not skip BARRIERs.
17674 2014-07-10  Rong Xu  <xur@google.com>
17676         Add gcov-tool: an offline gcda profile processing tool support.
17677         * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
17678         (gcov_is_error): Ditto.
17679         (gcov_read_string): Ditto.
17680         (gcov_read_sync): Ditto.
17681         * gcov-io.h: Move counter defines to gcov-counter.def.
17682         * gcov-dump.c (tag_counters): Use gcov-counter.def.
17683         * coverage.c: Ditto.
17684         * gcov-tool.c: Offline gcda profile processing tool.
17685         (unlink_gcda_file): Remove one gcda file.
17686         (unlink_profile_dir): Remove gcda files from the profile path.
17687         (gcov_output_files): Output gcda files to an output dir.
17688         (profile_merge): Merge two profiles in directory.
17689         (print_merge_usage_message): Print merge usage.
17690         (merge_usage): Print merge usage and exit.
17691         (do_merge): Driver for profile merge sub-command.
17692         (profile_rewrite): Rewrite profile.
17693         (print_rewrite_usage_message): Print rewrite usage.
17694         (rewrite_usage): Print rewrite usage and exit.
17695         (do_rewrite): Driver for profile rewrite sub-command.
17696         (print_usage): Print gcov-info usage and exit.
17697         (print_version): Print gcov-info version.
17698         (process_args): Process arguments.
17699         (main): Main routine for gcov-tool.
17700         * Makefile.in: Build and install gcov-tool.
17701         * gcov-counter.def: New file split from gcov-io.h.
17702         * doc/gcc.texi: Include gcov-tool.texi.
17703         * doc/gcov-tool.texi: Document for gcov-tool.
17705 2014-07-10  Richard Biener  <rguenther@suse.de>
17707         PR tree-optimization/61757
17708         * tree-ssa-dom.c (loop_depth_of_name): Restore.
17709         (propagate_rhs_into_lhs): Revert part of last change.
17711 2014-07-10  Thomas Schwinge  <thomas@codesourcery.com>
17713         * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
17714         FUNCTION_DECLs.
17716 2014-07-10  Eric Botcazou  <ebotcazou@adacore.com>
17718         PR middle-end/53590
17719         * function.c (allocate_struct_function): Revert r188667 change.
17721         * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
17723 2014-07-10  Tom G. Christensen  <tgc@jupiterrise.com>
17725         * doc/install.texi: Remove links to defunct package providers for
17726         Solaris.
17728 2014-07-09  Tom de Vries  <tom@codesourcery.com>
17730         * final.c (get_call_fndecl): Declare.
17731         (self_recursive_call_p): New function.
17732         (collect_fn_hard_reg_usage): Handle self-recursive function calls.
17734 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
17736         * ipa-devirt.c (record_node): Walk through aliases.
17738 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
17740         * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
17742 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
17744         Revert:
17745         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
17747 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
17749         * ipa-visibility.c (function_and_variable_visibility): Remove
17750         temporary hack disabling local aliases on AIX.
17752 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
17754         * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
17755         * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
17757 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
17759         * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
17760         * rs6000/rs6000.c: Inline output of .set instruction.
17761         (declare_alias_data): New struct.
17762         (rs6000_declare_alias): New function.
17763         (rs6000_xcoff_declare_function_name): Use it.
17764         (rs6000_xcoff_declare_object_name): New function.
17765         * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
17766         (ASM_OUTPUT_DEF): Turn to empty definition.
17768 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
17770         PR bootstrap/61679
17771         * hash-table.h: use hash_table::value_type instead of
17772         Descriptor::value_type in the return types of several methods.
17774 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
17776         * tree-pass.h (pass_data): Remove has_execute member.
17777         * passes.c (execute_one_pass): Don't check pass->has_execute.
17778         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
17779         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
17780         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
17781         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
17782         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
17783         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
17784         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
17785         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
17786         gimple-low.c, gimple-ssa-isolate-paths.c,
17787         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
17788         ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
17789         ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
17790         ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
17791         lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
17792         postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
17793         reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
17794         stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
17795         tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
17796         tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
17797         tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
17798         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
17799         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
17800         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
17801         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
17802         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
17803         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
17804         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
17805         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
17806         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
17807         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
17808         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
17809         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
17810         web.c: Remove initializer for pass_data::has_execute.
17812 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
17814         * graphite-htab.h: Use hash_map instead of hash_table.
17815         * graphite-clast-to-gimple.c: Adjust.
17816         * passes.c: Use hash_map instead of hash_table.
17817         * sese.c: Likewise.
17818         * sese.h: Remove now unused code.
17820 2014-07-08  Sriraman Tallam  <tmsriram@google.com>
17822         PR target/61599
17823         * config/i386/i386.c (ix86_in_large_data_p): Check for size less
17824         than zero.
17826 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
17828         PR rtl-optimization/61673
17829         * combine.c (simplify_comparison): Test just mode's sign bit
17830         in tmode rather than the sign bit and any bits above it.
17832 2014-07-08  Roman Gareev  <gareevroman@gmail.com>
17834         * graphite-isl-ast-to-gimple.c (generate_isl_context):
17835         Add __isl_give to the declaration.
17836         (generate_isl_schedule): Likewise.
17837         (scop_to_isl_ast): Likewise.
17839 2014-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17841         * config/arm/arm.c (cortexa5_extra_costs): New table.
17842         (arm_cortex_a5_tune): Use cortexa5_extra_costs.
17844 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
17846         PR tree-optimization/61725
17847         * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
17848         range, use range_includes_zerop_p instead of integer_zerop on
17849         vr0->min, only use log2 of max if min is not negative.
17851 2014-07-08  Richard Biener  <rguenther@suse.de>
17853         * tree-ssa-dom.h (loop_depth_of_name): Remove.
17854         * tree-ssa-dom.c (record_equivalences_from_phis): Remove
17855         restriction on loop depth difference.
17856         (record_equality): Likewise.
17857         (propagate_rhs_into_lhs): Likewise.  Simplify condition.
17858         (loop_depth_of_name): Remove.
17859         * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
17860         restriction on loop depth difference.
17861         (init_copy_prop): Likewise.
17863 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
17865         * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
17866         parameter.
17867         (walk_aliased_vdefs): Likewise.
17868         * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
17869         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
17870         (detect_type_change_from_memory_writes): Check if entry was reached.
17872 2014-07-08  Richard Biener  <rguenther@suse.de>
17874         PR tree-optimization/61681
17875         * tree-ssa-structalias.c (find_what_var_points_to): Expand
17876         NONLOCAL inside ESCAPED.
17878 2014-07-08  Richard Biener  <rguenther@suse.de>
17880         PR tree-optimization/61680
17881         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
17882         Handle properly all read-write dependences with group accesses.
17884 2014-07-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
17886         PR tree-optimization/61576
17887         * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
17888         block containing reduction statement is predecessor of phi basi block.
17890 2014-07-08  Marek Polacek  <polacek@redhat.com>
17892         PR c/60226
17893         * fold-const.c (round_up_loc): Change the parameter type.
17894         Remove assert.
17895         * fold-const.h (round_up_loc): Adjust declaration.
17896         * stor-layout.c (finalize_record_size): Check for too large types.
17898 2014-07-07  Jan Hubicka  <hubicka@ucw.cz>
17900         * symtab.c: Include calls.h.
17901         (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
17903 2014-07-07  Maciej W. Rozycki  <macro@codesourcery.com>
17905         * config/rs6000/rs6000.c (output_vec_const_move): Handle
17906         little-endian code generation.
17907         * config/rs6000/spe.md (spe_evmergehi): Rename to...
17908         (vec_perm00_v2si): ... this.  Handle little-endian code generation.
17909         (spe_evmergehilo): Rename to...
17910         (vec_perm01_v2si): ... this.  Handle little-endian code generation.
17911         (spe_evmergelo): Rename to...
17912         (vec_perm11_v2si): ... this.  Handle little-endian code generation.
17913         (spe_evmergelohi): Rename to...
17914         (vec_perm10_v2si): ... this.  Handle little-endian code generation.
17915         (spe_evmergehi, spe_evmergehilo): New expanders.
17916         (spe_evmergelo, spe_evmergelohi): Likewise.
17917         (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
17918         (*frob_tf_ti): Likewise.
17919         (*frob_<mode>_di_2): Likewise.
17920         (*frob_tf_di_8_2): Likewise.
17921         (*frob_di_<mode>): Likewise.
17922         (*frob_ti_tf): Likewise.
17923         (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
17924         (*frob_ti_<mode>_8_2): Likewise.
17925         (*frob_ti_tf_2): Likewise.
17926         (mov_si<mode>_e500_subreg0): Rename to...
17927         (mov_si<mode>_e500_subreg0_be): ... this.  Restrict to the big
17928         endianness only.
17929         (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
17930         (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
17931         (*mov_si<mode>_e500_subreg0_elf_low_be): ... this.  Restrict to
17932         the big endianness only.
17933         (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
17934         (*mov_si<mode>_e500_subreg0_2): Rename to...
17935         (*mov_si<mode>_e500_subreg0_2_be): ... this.  Restrict to the
17936         big big endianness only.
17937         (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
17938         (*mov_si<mode>_e500_subreg4): Rename to...
17939         (*mov_si<mode>_e500_subreg4_be): ... this.  Restrict to the big
17940         endianness only.
17941         (mov_si<mode>_e500_subreg4_le): New instruction pattern.
17942         (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
17943         (*mov_si<mode>_e500_subreg4_elf_low_be): ... this.  Restrict to
17944         the big endianness only.
17945         (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
17946         pattern.
17947         (*mov_si<mode>_e500_subreg4_2): Rename to...
17948         (*mov_si<mode>_e500_subreg4_2_be): ... this.  Restrict to the big
17949         endianness only.
17950         (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
17951         (*mov_sitf_e500_subreg8): Rename to...
17952         (*mov_sitf_e500_subreg8_be): ... this.  Restrict to the big
17953         endianness only.
17954         (*mov_sitf_e500_subreg8_le): New instruction pattern.
17955         (*mov_sitf_e500_subreg8_2): Rename to...
17956         (*mov_sitf_e500_subreg8_2_be): ... this.  Restrict to the big
17957         endianness only.
17958         (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
17959         (*mov_sitf_e500_subreg12): Rename to...
17960         (*mov_sitf_e500_subreg12_be): ... this.  Restrict to the big
17961         endianness only.
17962         (*mov_sitf_e500_subreg12_le): New instruction pattern.
17963         (*mov_sitf_e500_subreg12_2): Rename to...
17964         (*mov_sitf_e500_subreg12_2_be): ... this.  Restrict to the big
17965         endianness only.
17966         (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
17968 2014-07-07  Max Ostapenko  <m.ostapenko@partner.samsung.com>
17970         * asan.c (instrument_strlen_call): Do not instrument first byte
17971         in strlen if already instrumented.
17973 2014-07-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17975         * config/arm/arm.opt (mwords-little-endian): Delete.
17976         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
17977         of TARGET_LITTLE_WORDS.
17978         (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
17979         * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
17980         warning.
17981         * doc/invoke.texi: Remove references to -mwords-little-endian.
17983 2014-07-07  Jakub Jelinek  <jakub@redhat.com>
17985         * expmed.c (struct init_expmed_rtl): Change all fields but
17986         pow2 and cint from struct rtx_def to rtx.
17987         (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
17988         (init_expmed): Likewise.  Allocate all the 18 rtxes and ggc_free them
17989         at the end again.
17991 2014-07-06  Marek Polacek  <polacek@redhat.com>
17993         PR c/6940
17994         * doc/invoke.texi: Document -Wsizeof-array-argument.
17996 2014-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
17998         * wide-int.h (wide_int_storage): Change declaration from struct
17999         to class.
18001 2014-07-05  Jan Hubicka  <hubicka@ucw.cz>
18003         * cgraph.c (cgraph_create_indirect_edge): Update call of
18004         get_polymorphic_call_info.
18005         * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
18006         (possible_polymorphic_call_targets): Add parameter call.
18007         (decl_maybe_in_construction_p): New predicate.
18008         (get_polymorphic_call_info): Add parameter call;
18009         use decl_maybe_in_construction_p.
18010         * gimple-fold.c (fold_gimple_assign): Update use of
18011         possible_polymorphic_call_targets.
18012         (gimple_fold_call): Likewise.
18013         * ipa-prop.c: Inlcude calls.h
18014         (ipa_binfo_from_known_type_jfunc): Check that known type is record.
18015         (param_type_may_change_p): New predicate.
18016         (detect_type_change_from_memory_writes): Break out from ...
18017         (detect_type_change): ... this one; use param_type_may_change_p.
18018         (detect_type_change_ssa): Use param_type_may_change_p.
18019         (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
18021 2014-07-05  Charles Baylis  <charles.baylis@linaro.org>
18023         PR target/49423
18024         * config/arm/arm-protos.h (arm_legitimate_address_p,
18025         arm_is_constant_pool_ref): Add prototypes.
18026         * config/arm/arm.c (arm_legitimate_address_p): Remove static.
18027         (arm_is_constant_pool_ref) New function.
18028         * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
18029         arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
18030         (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
18031         operand. Remove pool_range and neg_pool_range attributes.
18032         (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
18033         pool_range and neg_pool_range attributes.
18034         * config/arm/constraints.md (Uh): New constraint.
18035         (Uq): Don't allow constant pool references.
18037 2014-07-04  James Greenhalgh  <james.greenhalgh@arm.com>
18039         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
18040         (move_lo_quad_internal_be_<mode>): Likewise.
18041         (move_lo_quad_<mode>): Convert to define_expand.
18042         (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
18043         (aarch64_simd_move_hi_quad_be_<mode>): New.
18044         (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
18045         (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
18046         (aarch64_combinez_be<mode>): New.
18047         (aarch64_combine<mode>): Convert to define_expand.
18048         (aarch64_combine_internal<mode>): New.
18049         (aarch64_simd_combine<mode>): Remove bogus RTL description.
18051 2014-07-04  Tom de Vries  <tom@codesourcery.com>
18053         * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
18054         combination of earlyclobber and read/write modifiers.
18056 2014-07-04  Tom de Vries  <tom@codesourcery.com>
18058         * config/aarch64/aarch64-simd.md
18059         (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
18061 2014-07-04  Richard Earnshaw  <rearnsha@arm.com>
18063         PR target/61714
18064         * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
18066 2014-07-04  Jakub Jelinek  <jakub@redhat.com>
18068         PR middle-end/61654
18069         * cgraphunit.c (expand_thunk): Call free_dominance_info.
18071         PR tree-optimization/61684
18072         * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
18073         rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
18075 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
18076             Kito Cheng  <kito@0xlab.org>
18077             Monk Chiang  <sh.chiang04@gmail.com>
18079         * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
18080         (nds32_symbol_load_store_p): Move to ...
18081         (nds32_fp_as_gp_check_available): Move to ...
18082         * config/nds32/nds32-fp-as-gp.c: ... here.
18083         * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
18084         extern declaration.
18086 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
18087             Kito Cheng  <kito@0xlab.org>
18088             Monk Chiang  <sh.chiang04@gmail.com>
18090         * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
18091         (nds32_expand_store_multiple): Move to ...
18092         (nds32_expand_movmemqi): Move to ...
18093         * config/nds32/nds32-memory-manipulation.c: ... here.
18095 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
18096             Kito Cheng  <kito@0xlab.org>
18097             Monk Chiang  <sh.chiang04@gmail.com>
18099         * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
18100         (nds32_output_casesi_pc_relative): Move to ...
18101         (nds32_output_casesi): Move to ...
18102         (nds32_mem_format): Move to ...
18103         (nds32_output_16bit_store): Move to ...
18104         (nds32_output_16bit_load): Move to ...
18105         (nds32_output_32bit_store): Move to ...
18106         (nds32_output_32bit_load): Move to ...
18107         (nds32_output_32bit_load_s): Move to ...
18108         (nds32_output_stack_push): Move to ...
18109         (nds32_output_stack_pop): Move to ...
18110         * config/nds32/nds32-md-auxiliary.c: ... here.
18112 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
18113             Ling-Hua Tseng  <uranus@tinlans.org>
18115         * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
18116         the purpose of this file.
18118 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
18119             Kito Cheng  <kito@0xlab.org>
18120             Monk Chiang  <sh.chiang04@gmail.com>
18122         * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
18123         (nds32_address_cost): Move implementation to ...
18124         * config/nds32/nds32-cost.c: ... here.
18125         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
18126         (nds32_address_cost_impl): Declare.
18128 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
18129             Kito Cheng  <kito@0xlab.org>
18130             Monk Chiang  <sh.chiang04@gmail.com>
18132         * config/nds32/nds32.c
18133         (nds32_consecutive_registers_load_store_p): Move to ...
18134         (nds32_valid_multiple_load_store): Move to ...
18135         (nds32_valid_stack_push_pop): Move to ...
18136         (nds32_can_use_bclr_p): Move to ...
18137         (nds32_can_use_bset_p): Move to ...
18138         (nds32_can_use_btgl_p): Move to ...
18139         (nds32_can_use_bitci_p): Move to ...
18140         * config/nds32/nds32-predicates.c: ... here.
18142 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
18143             Kito Cheng  <kito@0xlab.org>
18144             Monk Chiang  <sh.chiang04@gmail.com>
18146         * config/nds32/nds32.c
18147         (nds32_expand_builtin_null_ftype_reg): Move to ...
18148         (nds32_expand_builtin_reg_ftype_imm): Move to ...
18149         (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
18150         (nds32_init_builtins): Move implementation to ...
18151         (nds32_expand_builtin): Move implementation to ...
18152         * config/nds32/nds32-intrinsic.c: ... here.
18153         * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
18154         (nds32_expand_builtin_impl): Declare.
18156 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
18157             Kito Cheng  <kito@0xlab.org>
18158             Monk Chiang  <sh.chiang04@gmail.com>
18160         * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
18161         (nds32_emit_section_tail_template): Move to ...
18162         (nds32_emit_isr_jmptbl_section): Move to ...
18163         (nds32_emit_isr_vector_section): Move to ...
18164         (nds32_emit_isr_reset_conten): Move to ...
18165         (nds32_check_isr_attrs_conflict): Move to ...
18166         (nds32_construct_isr_vectors_information): Move to ...
18167         (nds32_asm_file_start): Move implementation to ...
18168         (nds32_asm_file_end): Move implementation to ...
18169         * config/nds32/nds32-isr.c: ... here.
18170         * config/nds32/nds32-protos.h
18171         (nds32_check_isr_attrs_conflict): Declare.
18172         (nds32_construct_isr_vectors_information): Declare.
18173         (nds32_asm_file_start_for_isr): Declare.
18174         (nds32_asm_file_end_for_isr): Declare.
18176 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
18177             Kito Cheng  <kito@0xlab.org>
18178             Monk Chiang  <sh.chiang04@gmail.com>
18180         * config.gcc (nds32*): Add new modules to extra_objs.
18181         (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
18182         (nds32be-*-*): Likewise.
18183         * config/nds32/nds32-cost.c: New file.
18184         * config/nds32/nds32-fp-as-gp.c: New file.
18185         * config/nds32/nds32-intrinsic.c: New file.
18186         * config/nds32/nds32-isr.c: New file.
18187         * config/nds32/nds32-md-auxiliary.c: New file.
18188         * config/nds32/nds32-memory-manipulation.c: New file.
18189         * config/nds32/nds32-pipelines-auxiliary.c: New file.
18190         * config/nds32/nds32-predicates.c: New file.
18191         * config/nds32/t-nds32: New file.
18193 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
18195         PR tree-optimization/61682
18196         * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
18197         using cases and when one of the operands is equal to 1.
18199 2014-07-03  Segher Boessenkool  <segher@kernel.crashing.org>
18201         * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
18202         ashr<mode>3): Correct mode of operands[2].
18203         (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
18204         lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
18205         Correct mode of operands[2].  Fix split condition.
18207 2014-07-03  Richard Earnshaw  <rearnsha@arm.com>
18209         * arm.md (arch): Add armv6_or_vfpv3.
18210         (arch_enabled): Add test for the above.
18211         * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
18212         on VFP9.
18213         (sqrtsf_vfp, sqrtdf_vfp): Likewise.
18215 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
18217         * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
18218         * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
18219         HWI 1 and negate the unsigned value.
18220         * expmed.c (expand_sdiv_pow2): For modes wider than word always
18221         use AND instead of shift.
18222         * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
18224 2014-07-03  Marek Polacek  <polacek@redhat.com>
18226         * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
18227         (-fsanitize=float-divide-by-zero): Move to the table with
18228         -fsanitize=undefined suboptions.
18229         (-fsanitize=float-cast-overflow): Likewise.
18231 2014-07-03  Maciej W. Rozycki  <macro@codesourcery.com>
18233         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
18234         BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
18235         endianness.
18237 2014-07-03  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
18239         * loop-invariant.c (struct invariant): Add a new member: eqno;
18240         (find_identical_invariants): Update eqno;
18241         (create_new_invariant): Init eqno;
18242         (get_inv_cost): Compute comp_cost with eqno;
18244 2014-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
18246         * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
18247         (walk_insn_part) <ROTATE, ROTATERT>: New cases.
18248         (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
18249         * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
18250         Only do the transformation if both HAVE_rotate and HAVE_rotatert.
18252 2014-07-02  Christian Bruel  <christian.bruel@st.com>
18254         PR target/29349
18255         PR target/53513
18256         * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
18257         (make_preds_opaque): Delete.
18258         (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
18259         (commit_mode_sets): New function.
18260         (optimize_mode_switching): Handle current_mode to mode_switching_emit.
18261         Process all modes at once.
18262         * basic-block.h (pre_edge_lcm_avs): Declare.
18263         * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
18264         Call clear_aux_for_edges. Fix comments.
18265         (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
18266         (pre_edge_rev_lcm): Idem.
18267         * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
18268         parameter.
18269         * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
18270         * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
18271         Idem.
18272         * config/i386/i386.c (x96_emit_mode_set): Idem.
18273         * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
18274         * config/sh/sh.md (toggle_pr):  Defined if TARGET_FPU_SINGLE.
18275         (fpscr_toggle) Disallow from delay slot.
18276         * target.def (emit_mode_set): Add prev_mode parameter.
18277         * doc/tm.texi: Regenerate.
18279 2014-07-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18281         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
18282         variable i.
18284 2014-07-01  Jan Hubicka  <hubicka@ucw.cz>
18286         * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
18287         vtable_pointer_value_to_vtable): Constify.
18288         (contains_polymorphic_type_p): Declare.
18289         * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
18290         vtable_pointer_value_to_vtable): Constify.
18291         (contains_polymorphic_type_p): New predicate.
18292         * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
18293         polymorphic types.
18294         (ipa_set_ancestor_jf): Likewise.
18295         (detect_type_change): Return false in easy cases.
18296         (compute_complex_assign_jump_func): Require type to contain
18297         polymorphic type.
18298         (compute_known_type_jump_func): Likewise.
18300 2014-07-01  Jan Hubicka  <hubicka@ucw.cz>
18302         * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
18303         Remove.
18304         (type_in_anonymous_namespace_p): Constify argument.
18305         * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
18306         * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
18307         (main_odr_variant): New function.
18308         (hash_type_name): Make static; update assert; do not ICE on
18309         non-records.
18310         (types_same_for_odr): Bring here from tree.c; simplify and remove
18311         old structural comparing code that doesn't work for templates.
18312         (odr_hasher::equal): Update assert.
18313         (add_type_duplicate): Return true when bases should be computed;
18314         replace incomplete loader by complete; do not output duplicated
18315         warnings; do not ICE on non-records; set odr_violated flag.
18316         (get_odr_type): Be ready to replace incomplete type by complete
18317         one; work on ODR variants instead of main variants; reorder item
18318         in array so bases have still smaller indexes.
18319         (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
18320         (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
18322 2014-07-01  Cary Coutant  <ccoutant@google.com>
18324         * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
18325         lookup.
18326         (resolve_addr_in_expr): When replacing the rtx in a location list
18327         entry, get a new address table entry.
18328         (dwarf2out_finish): Call index_location_lists even if there are no
18329         addr_index_table entries yet.
18331 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
18333         * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
18334         change for not being obvious.
18336 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
18338         * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
18339         unused argument.
18341 2014-07-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18343         * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
18344         (vcagt_f64): Likewise.
18345         (vcale_f64): Likewise.
18346         (vcaled_f64): Likewise.
18347         (vcales_f32): Likewise.
18348         (vcalt_f64): Likewise.
18349         (vcaltd_f64): Likewise.
18350         (vcalts_f32): Likewise.
18352 2014-07-01  Marek Polacek  <polacek@redhat.com>
18354         * doc/invoke.texi: Document -Wint-conversion.
18356 2014-07-01  Marek Polacek  <polacek@redhat.com>
18358         PR c/58286
18359         * doc/invoke.texi: Document -Wincompatible-pointer-types.
18361 2014-07-01  Martin Liska  <mliska@suse.cz>
18363         IPA REF alias refactoring
18364         * cgraph.h (iterate_direct_aliases): New function.
18365         (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
18366         * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
18367         FOR_EACH_ALIAS added.
18368         (cgraph_for_node_and_aliases): Likewise.
18369         * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
18370         * ipa-inline.c (reset_edge_caches): Likewise.
18371         (update_caller_keys): Likewise.
18372         * trans-mem.c (ipa_tm_execute): Likewise.
18373         *varpool.c (varpool_analyze_node): Likewise.
18374         (varpool_for_node_and_aliases): Likewise.
18375         * ipa-ref.h (first_alias): New function.
18376         (last_alias): Likewise.
18377         (has_aliases_p): Likewise.
18378         * ipa-ref.c (ipa_ref::remove_reference): Removal function
18379         is sensitive to IPA_REF_ALIASes.
18380         * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
18381         are put at the beginning of the list.
18382         (symtab_node::iterate_direct_aliases): New function.
18384 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
18386         Revert:
18387         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
18388         type is complete.
18389         (write_ts_type_common_tree_pointers): Do not stream fields not set
18390         for incomplete types; do not stream duplicated fields for variants;
18391         sanity check that variant and type match.
18392         (write_ts_type_non_common_tree_pointers): Likewise.
18393         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
18394         TYPE_SIZE whether type is complete.
18395         (lto_input_ts_type_common_tree_pointers): Do same changes as in
18396         write_ts_type_common_tree_pointers
18397         (lto_input_ts_type_non_common_tree_pointers): Likewise.
18399 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
18401         * var-tracking.c (add_stores): Return instead of asserting if old
18402         and new values for conditional store are the same.
18404 2014-06-30  Richard Henderson  <rth@redhat.com>
18406         PR rtl-opt/61608
18407         PR target/39284
18408         * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
18409         the cfg if there were any changes.
18410         * passes.def: Revert move of peephole2 after reorder_blocks;
18411         move duplicate_computed_gotos before peephole2.
18413 2014-06-30  Uros Bizjak  <ubizjak@gmail.com>
18415         * except.c (emit_note_eh_region_end): New helper function.
18416         (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
18417         emit EH_REGION_END note.
18418         * jump.c (cleanup_barriers): Do not split a call and its
18419         corresponding CALL_ARG_LOCATION note.
18421 2014-06-30  Jeff Law  <law@redhat.com>
18423         PR tree-optimization/61607
18424         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
18425         deeper into the SSA_NAME_VALUE chain.
18427 2014-06-30  Marek Polacek  <polacek@redhat.com>
18429         * convert.c (convert_to_integer): Don't instrument conversions if the
18430         function has no_sanitize_undefined attribute.
18431         * ubsan.c: Don't run the ubsan pass if the function has
18432         no_sanitize_undefined attribute.
18434 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
18436         * doc/invoke.texi (-fsanitize=bounds): Move to the table with
18437         -fsanitize=undefined suboptions.
18439 2014-06-30  Alan Lawrence  <alan.lawrence@arm.com>
18441         * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
18442         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
18443         against bigendian and adjust indices.
18445 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
18447         * doc/install.texi (Specific, aarch64*-*-*): Fix markup.  Reword a bit.
18449 2014-06-30  Marcus Shawcroft  <marcus.shawcroft@arm.com>
18451         PR target/61633
18452         * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
18453         Add alternative; make early clobber.  Adjust both split patterns
18454         to use operand 0 as the working register.
18456 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
18458         * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
18459         as ira_object_id_map might be NULL, or 1.
18461 2014-06-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
18463         * loop-invariant.c (get_inv_cost): Handle register class.
18464         (gain_for_invariant): Check the register pressure of the inv
18465         and its overlapped register class, other than all.
18467 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
18469         * doc/invoke.texi (Optimize Options): Fix descriptions of
18470         ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
18472 2014-06-29  David Wohlferd <dw@LimeGreenSocks.com>
18474         * doc/extend.texi (Function Attributes): Update 'naked' attribute
18475         documentation.
18477 2014-06-29  Tobias Grosser <tobias@grosser.es>
18479         PR bootstrap/61650
18480         * graphite-isl-ast-to-gimple.c: Add missing guards.
18482 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
18484         * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
18485         * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
18486         * flag-types.h: Add new enum fgraphite_generator.
18487         * graphite-isl-ast-to-gimple.c: New.
18488         * graphite-isl-ast-to-gimple.h: New.
18489         * graphite.c (graphite_transform_loops): Add choice of Graphite
18490         code generator, which depends on flag_graphite_code_gen.
18492 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
18494         * graphite-dependences.c (subtract_commutative_associative_deps):
18495         Add NULL checking of the following variables: must_raw_no_source,
18496         may_raw_no_source, must_war_no_source, may_war_no_source,
18497         must_waw_no_source, may_waw_no_source, must_raw, may_raw,
18498         must_war, may_war, must_waw, may_waw.
18500 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
18502         * graphite-clast-to-gimple.c: gloog is renamed to
18503         graphite_regenerate_ast_cloog.  gloog_error is renamed to
18504         graphite_regenerate_error.
18505         * graphite-clast-to-gimple.h: The definition of the struct
18506         bb_pbb_def is moved to graphite-htab.h.
18507         Add inclusion of the hash-table.h.
18508         * graphite-htab.h: The declaration of the function gloog is moved
18509         to graphite-clast-to-gimple.h and renamed to
18510         graphite_regenerate_ast_cloog.
18511         * graphite.c (graphite_transform_loops): gloog is renamed
18512         to graphite_regenerate_ast_cloog.
18514 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
18516         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
18517         type is complete.
18518         (write_ts_type_common_tree_pointers): Do not stream fields not set
18519         for incomplete types; do not stream duplicated fields for variants;
18520         sanity check that variant and type match.
18521         (write_ts_type_non_common_tree_pointers): Likewise.
18522         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
18523         TYPE_SIZE whether type is complete.
18524         (lto_input_ts_type_common_tree_pointers): Do same changes as in
18525         write_ts_type_common_tree_pointers
18526         (lto_input_ts_type_non_common_tree_pointers): Likewise.
18528 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
18530         * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
18532 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
18534         * tree-inline.c (remap_type_1): Do not duplicate fields
18535         that are shared in between type and its main variant.
18537 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
18539         * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
18540         of the type.
18541         (ipa_set_ancestor_jf) Likewise.
18542         (check_stmt_for_type_change): Check that we work on main variant.
18543         (detect_type_change): Look into main variant.
18544         (compute_known_type_jump_func): Check that main variant has BINFO.
18546 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
18548         * ipa-devirt.c (set_type_binfo): New function.
18549         (add_type_duplicate): Use it.
18550         (get_odr_type): Sanity check that binfos points to main variants.
18551         (get_class_context): Be sure the context's outer_type is main variant.
18552         (contains_type_p): Walk main variant.
18553         (get_polymorphic_call_info_for_decl): Set outer_type to be
18554         main variant.
18555         (get_polymorphic_call_info): Likewise.
18556         (possible_polymorphic_call_targets): Sanity check that we operate
18557         on main variant.
18559 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
18561         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
18563 2014-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18565         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
18566         accidental change due to wide-int branch merge.
18568 2014-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18570         * configure.ac (gcc_cv_as_compress_debug): Check for assembler
18571         compressed debug support.
18572         (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
18573         * configure: Regenerate.
18574         * config.in: Regenerate.
18575         * common.opt (compressed_debug_sections): New enum.
18576         (gz, gz=): New options.
18577         * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
18578         (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
18579         (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
18580         * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
18581         LINK_COMPRESS_DEBUG_SPEC.
18582         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
18583         * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
18584         * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
18585         (Debugging Options): Document -gz[=type].
18587 2014-06-27  Martin Jambor  <mjambor@suse.cz>
18589         PR ipa/61160
18590         * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
18591         args_to_skip, use those from node instead.  Copy args_to_skip and
18592         combined_args_to_skip from node to the new thunk.
18593         (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
18594         (cgraph_create_virtual_clone): Moved computation of
18595         combined_args_to_skip...
18596         (cgraph_clone_node): ...here, simplify it to bitmap_ior..
18598 2014-06-27  trevor Saunders  <tsaunders@mozilla.com>
18600         * config/i386/winnt.c (i386_pe_section_type_flags): Remove
18601         redundant diagnostic machinary.
18603 2014-06-27  Richard Biener  <rguenther@suse.de>
18605         * tree-ssa-math-opts.c (bswap_replace): Fix
18606         SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
18608 2014-06-27  Martin Liska  <mliska@suse.cz>
18610         * gimple.h (gimple_location_safe): New function introduced.
18611         * cgraphunit.c (walk_polymorphic_call_targets): Usage
18612         of gimple_location_safe replaces gimple_location.
18613         (gimple_fold_call): Likewise.
18614         * ipa-devirt.c (ipa_devirt): Likewise.
18615         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
18616         * ipa.c (walk_polymorphic_call_targets): Likewise.
18617         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
18619 2014-06-27  Jakub Jelinek  <jakub@redhat.com>
18621         PR tree-optimization/57233
18622         PR tree-optimization/61299
18623         * tree-vect-generic.c (get_compute_type, count_type_subparts): New
18624         functions.
18625         (expand_vector_operations_1): Use them.  If {L,R}ROTATE_EXPR
18626         would be lowered to scalar shifts, check if corresponding
18627         shifts and vector BIT_IOR_EXPR are supported and don't lower
18628         or lower just to narrower vector type in that case.
18629         * expmed.c (expand_shift_1): Fix up handling of vector
18630         shifts and rotates.
18632 2014-06-26  Uros Bizjak  <ubizjak@gmail.com>
18634         PR target/61586
18635         * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
18637 2014-06-26  Jan Hubicka  <hubicka@ucw.cz>
18639         * doc/invoke.texi (-fsemantic-interposition): Document.
18640         * common.opt (fsemantic-interposition): New flag.
18641         * varasm.c (decl_replaceable_p): Use it.
18643 2014-06-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18645         PR target/61542
18646         * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
18647         extraction other than index 3.
18649 2014-06-26  Teresa Johnson  <tejohnson@google.com>
18651         * doc/invoke.texi: Fix typo.
18652         * dumpfile.c: Add support for documented -fdump-* options
18653         optimized/missed/note/optall.
18655 2014-06-26  Martin Jambor  <mjambor@suse.cz>
18657         * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
18658         (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
18659         (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
18660         (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
18661         * opts.c (default_options_optimization): Set
18662         PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
18663         * doc/invoke.texi (allow-load-data-races)
18664         (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
18665         (allow-store-data-races): Document the new default.
18667 2014-06-26  Martin Jambor  <mjambor@suse.cz>
18669         * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
18670         renamed to ipa_impossible_devirt_target.  Fix typo.
18671         * ipa-prop.h (ipa_impossible_devirt_target): Declare.
18672         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
18673         ipa_impossible_devirt_target.
18675 2014-06-26  Richard Biener  <rguenther@suse.de>
18677         PR tree-optimization/61607
18678         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
18679         explaining why we restrict copies on loop depth.
18680         * tree-ssa-dom.c (cprop_operand): Remove restriction on
18681         on loop depth.
18682         (record_equivalences_from_phis): Instead add it here.
18684 2014-06-26  Bernd Schmidt  <bernds@codesourcery.com>
18686         * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
18687         (LTO_WRAPPER_OBJS): New variable.
18688         (lto-wrapper$(exeext)): Use it.
18689         * collect2.c: Include "collect-utils.h".
18690         (verbose, debug): Remove variables.
18691         (at_file_supplied): No longer static.
18692         (tool_name): New variable.
18693         (do_wait, fork_execute, maybe_unlink): Don't declare.
18694         (tool_cleanup): No longer static.
18695         (notice): Remove function.
18696         (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
18697         fork_execute calls.
18698         (collect_wait, do_wait, collect_execute): Remove functions.
18699         (maybe_unlink): No longer static.
18700         * collect2.h (verbose, debug): Don't declare.
18701         (at_file_supplied): Declare.
18702         * collect-utils.c (utils_cleanup): New arg from_signal.  All callers
18703         changed.
18704         (collect_execute): Replace with implementation from collect2, plus a
18705         new arg use_atfile.  All callers changed.
18706         (collect_wait): Replace with implementation from collect2.
18707         (maybe_unlink_file): Remove function.
18708         (fork_execute): Replace with implementation from collect2, plus a
18709         new arg use_atfile.  All callers changed.
18710         (do_wait): Add call to utils_cleanup to the error path.
18711         * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
18712         (tool_cleanup): Adjust declarations.
18713         * lto-wrapper.c (tool_cleanup): Add unused bool argument.
18714         * tlink.c: Include "collect-utils.h".
18715         (tlink_execute): New arg use_atfile.  All callers changed.
18716         (tlink_init, tlink_execute): Remove declarations.
18718         * collect-utils.c (save_temps): New variable.
18719         (do_wait): Use it instead of debug.  Use fatal_error.
18720         * collect-utils.h (save_temps): Declare.
18721         * collect2.c (verbose): Rename from vflag.  All uses changed.
18722         (tool_cleanup): New function, copied from collect_atexit.
18723         (collect_atexit, handler): Just call it.
18724         * collect2.h (verbose): Declaration renamed from vflag.
18725         * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
18726         debug.
18728         * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
18729         (lto-wrapper$(exeext)): Link with collect-utils.o.
18730         * collect-utils.c: New file.
18731         * collect-utils.h: New file.
18732         * lto-wrapper.c: Include "collect-utils.h".
18733         (args_name): Delete variable.
18734         (tool_name): New variable.
18735         (tool_cleanup): New function.
18736         (maybe_unlink): Renamed from maybe_unlink_file.  All callers changed.
18737         (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
18738         (fork_execute): Remove functions.
18740 2014-06-26  Nick Clifton  <nickc@redhat.com>
18742         * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
18744         * doc/extend.texi (Function Attributes): Fix typo in description
18745         of RX vector attribute.
18747 2014-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
18749         * config.gcc (supported_defaults): Error when passing either
18750         --with-tune or --with-arch in conjunction with --with-cpu for ARM.
18752 2014-06-26  Richard Biener  <rguenther@suse.de>
18754         * tree-ssa-dom.c (cprop_operand): Remove restriction on
18755         propagating volatile pointers.
18757 2014-06-26  Richard Biener  <rguenther@suse.de>
18759         PR tree-optimization/61607
18760         * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
18761         loop if we redirected its latch edge.
18762         (thread_block_1): Do not cancel loops prematurely.
18764 2014-06-25  Jan Hubicka  <hubicka@ucw.cz>
18766         * toplev.c (backend_init_target): Move init_emit_regs and
18767         init_regs to...
18768         (backend_init) ... here; skip ira_init_once and backend_init_target.
18769         (target_reinit) ... and here; clear
18770         this_target_rtl->lang_dependent_initialized.
18771         (lang_dependent_init_target): Clear
18772         this_target_rtl->lang_dependent_initialized;
18773         break out rtl initialization to ...
18774         (initialize_rtl): ... here; call also backend_init_target
18775         and ira_init_once.
18776         * toplev.h (initialize_rtl): New function.
18777         * function.c: Include toplev.h
18778         (init_function_start): Call initialize_rtl.
18779         * rtl.h (target_rtl): Add target_specific_initialized,
18780         lang_dependent_initialized.
18782 2014-06-25  Paul Gortmaker  <paul.gortmaker@windriver.com>
18783             Jakub Jelinek  <jakub@redhat.com>
18785         * gcc.c (set_multilib_dir): Malloc "." pointer as well.
18787 2014-06-25  Tom de Vries  <tom@codesourcery.com>
18789         * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
18791 2014-06-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
18793         * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
18794         check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
18795         Issue a strict overflow warning if appropriate.
18797 2014-06-25  Martin Liska  <mliska@suse.cz>
18799         IPA REF refactoring
18800         * Makefile.in: Removed header file (ipa-ref-inline.h).
18801         * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
18802         called.
18803         (cgraph_speculative_call_info): Likewise.
18804         (cgraph_for_node_thunks_and_aliases): Likewise.
18805         (cgraph_for_node_and_aliases): Likewise.
18806         (verify_cgraph_node): Likewise.
18807         * cgraph.h: Batch of IPA REF functions become member functions of
18808         symtab_node: add_reference, maybe_add_reference, clone_references,
18809         clone_referring, clone_reference, find_reference,
18810         remove_stmt_references, remove_all_references,
18811         remove_all_referring, dump_references, dump_referring,
18812         has_alias_p, iterate_reference, iterate_referring.
18813         * cgraphbuild.c (record_reference): New IPA REF function used.
18814         (record_type_list): Likewise.
18815         (record_eh_tables): Likewise.
18816         (mark_address): Likewise.
18817         (mark_load): Likewise.
18818         (mark_store): Likewise.
18819         (pass_build_cgraph_edges): Likewise.
18820         (rebuild_cgraph_edge): Likewise.
18821         (cgraph_rebuild_references): Likewise.
18822         (pass_remove_cgraph_callee_edges): Likewise.
18823         * cgraphclones.c (cgraph_clone_node): Likewise.
18824         (cgraph_create_virtual_clone): Likewise.
18825         (cgraph_materialize_clone): Likewise.
18826         (cgraph_materialize_all_clones): Likewise.
18827         * cgraphunit.c (cgraph_reset_node): Likewise.
18828         (cgraph_reset_node): Likewise.
18829         (analyze_function): Likewise.
18830         (assemble_thunks_and_aliases): Likewise.
18831         (expand_function): Likewise.
18832         * ipa-comdats.c (propagate_comdat_group): Likewise.
18833         (enqueue_references): Likewise.
18834         * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
18835         (create_specialized_node): Likewise.
18836         * ipa-devirt.c (referenced_from_vtable_p): Likewise.
18837         * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
18838         * ipa-inline.c (reset_edge_caches): Likewise.
18839         (update_caller_keys): Likewise.
18840         (execute): Likewise.
18841         * ipa-prop.c (remove_described_reference): Likewise.
18842         (propagate_controlled_uses): Likewise.
18843         (ipa_edge_duplication_hook): Likewise.
18844         (ipa_modify_call_arguments): Likewise.
18845         * ipa-pure-const.c (propagate_pure_const): Likewise.
18846         * ipa-ref-inline.h: Header file removed, functions moved
18847         to symtab_node class.
18848         * ipa-ref.c (remove_reference): New class member function.
18849         (cannot_lead_to_return): New class member function.
18850         (referring_ref_list): Likewise.
18851         (referred_ref_list): Likewise.
18852         Rest of functions moved to symtab_node class.
18853         * ipa-ref.h: New member functions remove_reference,
18854         cannot_lead_to_return, referring_ref_list, referred_ref_list added
18855         to ipa_ref class.
18856         ipa_ref_list class has new member functions: first_reference,
18857         first_referring, clear, nreferences.
18858         * ipa-reference.c (analyze_function): New IPA REF function used.
18859         (write_node_summary_p): Likewise.
18860         (ipa_reference_write_optimization_summary): Likewise.
18861         * ipa-split.c (split_function): Likewise.
18862         * ipa-utils.c (ipa_reverse_postorder): Likewise.
18863         * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
18864         (function_and_variable_visibility): Likewise.
18865         * ipa.c (has_addr_references_p): Likewise.
18866         (process_references): Argument type changed.
18867         (symtab_remove_unreachable_nodes): New IPA REF function used.
18868         (process_references): Likewise.
18869         (set_writeonly_bit): Likewise.
18870         * lto-cgraph.c: Implementation of new symtab_node member functions
18871         that uses new IPA REF functions.
18872         * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
18873         function used.
18874         * lto-streamer-out.c (output_symbol_p): Likewise.
18875         * lto-streamer.h (referenced_from_this_partition_p): Argument type
18876         changed.
18877         * symtab.c: Implementation of new IPA REF API.
18878         * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
18879         (ipa_tm_create_version): Likewise.
18880         (ipa_tm_execute): Likewise.
18881         * tree-emutls.c (gen_emutls_addr): Likewise.
18882         * tree-inline.c (copy_bb): Likewise.
18883         (delete_unreachable_blocks_update_callgraph): Likewise.
18884         * varpool.c (varpool_remove_unreferenced_decls): Likewise.
18885         (varpool_for_node_and_aliases): Likewise.
18887 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
18889         * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
18891 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
18893         PR bootstrap/61598
18894         * fold-const.c (fold_checksum_tree): Use a hash_table of const
18895         tree_node * instead of tree_node *.
18896         (fold): Adjust.
18897         (print_fold_checksum): Likewise.
18898         (fold_check_failed): Likewise.
18899         (debug_fold_checksum): Likewise.
18900         (fold_build1_stat_loc): Likewise.
18901         (fold_build2_stat_loc): Likewise.
18902         (fold_build3_stat_loc): Likewise.
18903         (fold_build_call_array_loc): Likewise.
18905 2014-06-25  David Edelsohn  <dje.gcc@gmail.com>
18907         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
18908         implementation with call to...
18909         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
18910         function.
18911         * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
18912         Declare.
18914 2014-06-25  Marc Glisse  <marc.glisse@inria.fr>
18916         PR tree-optimization/57742
18917         * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
18918         after replacing the statement.
18920 2014-06-25  Nick Clifton  <nickc@redhat.com>
18922         * config/v850/v850.c (GHS_default_section_names): Change to const
18923         char * type.
18924         (GHS_current_section_names): Likewise.
18925         (v850_insert_attributes): Do not build strings, just assign the
18926         names directly.  Change the type of 'chosen_section' to const
18927         char*.
18928         * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
18929         directly to the array entry.
18930         * config/v850/v850.h (GHS_default_section_names): Change to const
18931         char * type.
18932         (GHS_current_section_names): Likewise.
18934 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
18936         * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
18937         (LANG_HOOKS_DECLS): Add it.
18938         * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
18939         has correct type.
18940         * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
18941         * langhooks.h (struct lang_hooks_for_decls): Add
18942         omp_clause_linear_ctor hook.
18943         * omp-low.c (lower_rec_input_clauses): Set max_vf even if
18944         OMP_CLAUSE_LINEAR_ARRAY is set.  Don't fold_convert
18945         OMP_CLAUSE_LINEAR_STEP.  For OMP_CLAUSE_LINEAR_ARRAY in
18946         combined simd loop use omp_clause_linear_ctor hook.
18948 2014-06-24  Cong Hou  <congh@google.com>
18950         * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
18951         pattern recognition.
18952         (type_conversion_p): PROMOTION is true if it's a type promotion
18953         conversion, and false otherwise.  Return true if the given expression
18954         is a type conversion one.
18955         * tree-vectorizer.h: Adjust the number of patterns.
18956         * tree.def: Add SAD_EXPR.
18957         * optabs.def: Add sad_optab.
18958         * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
18959         * expr.c (expand_expr_real_2): Likewise.
18960         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
18961         * gimple.c (get_gimple_rhs_num_ops): Likewise.
18962         * optabs.c (optab_for_tree_code): Likewise.
18963         * tree-cfg.c (estimate_operator_cost): Likewise.
18964         * tree-ssa-operands.c (get_expr_operands): Likewise.
18965         * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
18966         * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
18967         * doc/generic.texi: Add document for SAD_EXPR.
18968         * doc/md.texi: Add document for ssad and usad.
18970 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
18972         * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
18973         qualification in cast.
18975 2014-06-24  Jan Hubicka  <hubicka@ucw.cz>
18977         * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
18978         * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
18979         * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
18980         (tree_function_decl): ... here.
18981         * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
18982         streaming of vindex to ...
18983         (write_ts_function_decl_tree_pointers): ... here.
18984         * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
18985         Do not stream DECL_VINDEX.
18986         (lto_input_ts_function_decl_tree_pointers): Stream it here.
18988 2014-06-24  Catherine Moore  <clm@codesourcery.com>
18989             Sandra Loosemore  <sandra@codesourcery.com>
18991         * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
18992         * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
18993         * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
18995 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
18997         * doc/invoke.texi (Warning Options): Remove duplicated
18998         -Wmaybe-uninitialized.
19000 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
19002         PR tree-optimization/57742
19003         * tree-ssa-strlen.c (get_string_length): Ignore malloc.
19004         (handle_builtin_malloc, handle_builtin_memset): New functions.
19005         (strlen_optimize_stmt): Call them.
19006         * passes.def: Move strlen after loop+dom but before vrp.
19008 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
19010         PR target/61570
19011         * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
19012         model family 6 CPU with has_longmode never use a CPU without
19013         64-bit support.
19015 2014-06-24  H.J. Lu  <hongjiu.lu@intel.com>
19017         PR target/61570
19018         * config/i386/driver-i386.c (host_detect_local_cpu): Revert
19019         the last change.
19021 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
19023         * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
19024         * dominance.c (iterate_fix_dominators): Use hash_map instead of
19025         pointer_map.
19026         * hash-map.h: New file.
19027         * ipa-comdats.c: Use hash_map instead of pointer_map.
19028         * ipa.c: Likewise.
19029         * lto-section-out.c: Adjust.
19030         * lto-streamer.h: Replace pointer_map with hash_map.
19031         * symtab.c (verify_symtab): Likewise.
19032         * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
19033         * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
19034         * tree-streamer.h: Likewise.
19035         * tree-streamer.c: Adjust.
19036         * pointer-set.h: Remove pointer_map.
19038 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
19040         * hash-table.h: Add a template arg to choose between storing values
19041         and storing pointers to values, and then provide partial
19042         specializations for both.
19043         * tree-browser.c (tree_upper_hasher): Provide the type the hash table
19044         should store, not the type values should point to.
19045         * tree-into-ssa.c (var_info_hasher): Likewise.
19046         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
19047         * tree-complex.c: Adjust.
19048         * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
19049         table instead of int_tree_map *.
19050         * tree-parloops.c: Adjust.
19051         * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
19052         type is being stored.
19053         * tree-vectorizer.c: Adjust.
19055 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
19057         * hash-table.h: Remove a layer of indirection from hash_table so that
19058         it contains the hash table's data instead of a pointer to the data.
19059         * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
19060         config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
19061         config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
19062         data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
19063         fold-const.c, gcse.c, ggc-common.c,
19064         gimple-ssa-strength-reduction.c, gimplify.c,
19065         graphite-clast-to-gimple.c, graphite-dependences.c,
19066         graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
19067         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
19068         loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
19069         lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
19070         postreload-gcse.c, sese.c, statistics.c, store-motion.c,
19071         trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
19072         tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
19073         tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
19074         tree-ssa-live.c, tree-ssa-loop-im.c,
19075         tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
19076         tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
19077         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
19078         tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
19079         tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
19080         tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
19081         vtable-verify.c, vtable-verify.h: Adjust.
19083 2014-06-24  Richard Biener  <rguenther@suse.de>
19085         PR tree-optimization/61572
19086         * tree-ssa-sink.c (statement_sink_location): Do not sink
19087         loads from hard registers.
19089 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
19091         * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
19092         not mentioned in clauses use private clause if the iterator is
19093         declared in #pragma omp for simd, and when adding lastprivate
19094         instead, add it to the outer #pragma omp for too.  Diagnose
19095         if the variable is private in outer context.  For simd collapse > 1
19096         loops, replace all iterators with temporaries.
19097         * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
19098         same even in collapse > 1 loops.
19100         * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
19101         OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
19102         non-NULL.
19103         <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
19104         (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
19105         non-NULL.
19106         (gimplify_adjust_omp_clauses): Likewise.
19107         * omp-low.c (lower_rec_simd_input_clauses,
19108         lower_rec_input_clauses, expand_omp_simd): Handle non-constant
19109         safelen the same as safelen(1).
19110         * tree-nested.c (convert_nonlocal_omp_clauses,
19111         convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED.  For
19112         OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
19113         (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
19114         Fixup handling of GIMPLE_OMP_TARGET.
19115         (convert_tramp_reference_stmt, convert_gimple_call): Handle
19116         GIMPLE_OMP_TARGET.
19118 2014-06-24  Chung-Lin Tang  <cltang@codesourcery.com>
19120         PR tree-optimization/61554
19121         * tree-ssa-propagate.c: Include "bitmap.h".
19122         (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
19123         properly update constructor/destructor.
19124         (substitute_and_fold_dom_walker::before_dom_children):
19125         Remove call to gimple_purge_dead_eh_edges, add bb->index to
19126         need_eh_cleaup instead.
19127         (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
19128         need_eh_cleanup.
19130 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
19132         * varpool.c (dump_varpool_node): Dump used_by_single_function.
19133         * tree-pass.h (make_pass_ipa_single_use): New pass.
19134         * cgraph.h (used_by_single_function): New flag.
19135         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
19136         Stream it.
19137         * passes.def (pass_ipa_single_use): Scedule.
19138         * ipa.c (BOTTOM): New macro.
19139         (meet): New function
19140         (propagate_single_user): New function.
19141         (ipa_single_use): New function.
19142         (pass_data_ipa_single_use): New pass.
19143         (pass_ipa_single_use): New pass.
19144         (pass_ipa_single_use::gate): New gate.
19145         (make_pass_ipa_single_use): New function.
19147 2014-06-23  Kai Tietz  <ktietz@redhat.com>
19149         PR target/39284
19150         * passes.def (peephole2): Move peephole2 pass before sched2 pass.
19151         * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
19153 2014-06-23  Richard Biener  <rguenther@suse.de>
19155         * tree-ssa-loop.c (gate_loop): New function.
19156         (pass_tree_loop::gate): Call it.
19157         (pass_data_tree_no_loop, pass_tree_no_loop,
19158         make_pass_tree_no_loop): New.
19159         * tree-vectorizer.c: Include tree-scalar-evolution.c
19160         (pass_slp_vectorize::execute): Initialize loops and SCEV if
19161         required.
19162         (pass_slp_vectorize::clone): New method.
19163         * timevar.def (TV_TREE_NOLOOP): New.
19164         * tree-pass.h (make_pass_tree_no_loop): Declare.
19165         * passes.def (pass_tree_no_loop): New pass group with
19166         SLP vectorizer.
19168 2014-06-23  H.J. Lu  <hongjiu.lu@intel.com>
19170         PR target/61570
19171         * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
19172         to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
19174 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
19176         * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
19177         "yes" where needed.
19179 2014-06-23  Alan Modra  <amodra@gmail.com>
19181         PR bootstrap/61583
19182         * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
19183         to zero on debug statements.
19185 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
19187         PR target/60825
19188         * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
19189         Ignore third operand if present by marking qualifier_internal.
19191         * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
19193         * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
19194         vector extension.
19195         (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
19196         arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
19197         (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
19198         vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
19199         vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
19200         vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
19201         vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
19202         vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
19203         vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
19204         vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
19205         vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
19206         vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
19207         vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
19208         vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
19209         vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
19210         vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
19211         logic in GCC vector extensions
19213         (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
19214         vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
19215         vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
19216         vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
19217         vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
19218         vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
19219         vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
19220         vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
19221         vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
19222         vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
19224         (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
19226         (vget_high_s64, vget_high_u64): Reimplement with GCC vector
19227         extensions.
19229         (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
19230         (vget_low_s64): Use __GET_LOW macro.
19231         (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
19232         gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
19233         (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
19234         (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
19235         __builtin_aarch64_lane_boundsi, use GCC vector extensions.
19237         (vcombine_s64): Use GCC vector extensions; remove cast.
19238         (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
19239         vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
19240         vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
19241         Fix type signature; remove cast.
19243 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
19245         PR target/60825
19246         * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
19247         V1DFmode.
19248         * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
19249         add V1DFmode
19250         (BUILTIN_VD1): New.
19251         (BUILTIN_VD_RE): Remove.
19252         (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
19253         (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
19254         * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
19255         variant but not df.
19256         (vreinterpretv1df*, vreinterpret*v1df): New.
19257         (vreinterpretdf*, vreinterpret*df): Remove.
19258         * config/aarch64/aarch64-simd.md (aarch64_create,
19259         aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
19260         * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
19261         (VD1): New.
19262         * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
19263         (vcreate_f64): Remove cast, use v1df builtin.
19264         (vcombine_f64): Remove cast, get elements with gcc vector extensions.
19265         (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
19266         vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
19267         vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
19268         vmov_n_f64, vst1_f64): Use gcc vector extensions.
19269         (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
19270         add range check using __builtin_aarch64_im_lane_boundsi.
19271         (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
19272         vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
19273         type signature, use gcc vector extensions.
19274         (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
19275         vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
19276         vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
19277         vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
19278         vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
19279         vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
19280         vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
19281         vreinterpret_u64_f64): Use v1df builtin not df.
19283 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
19285         * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
19286         vector registers.
19288 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
19290         * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
19291         priority directly.
19293 2014-06-23  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
19295         * loop-invariant.c (pre_check_invariant_p): New function.
19296         (find_invariant_insn): Call pre_check_invariant_p.
19298 2014-06-22  Richard Henderson  <rth@redhat.com>
19300         PR target/61565
19301         * compare-elim.c (struct comparison): Add eh_note.
19302         (find_comparison_dom_walker::before_dom_children): Don't eliminate
19303         a redundant comparison in a different EH region.  Purge EH edges if
19304         necessary.
19306 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
19308         * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
19309         (var_shift): Use it.
19310         (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
19311         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
19312         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
19313         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
19314         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
19315         *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
19316         *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
19317         *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
19318         *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
19319         *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
19320         *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
19321         *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
19322         *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
19323         *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
19324         *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
19325         *rotldi3_internal15be): Use the new attribute.  Merge register and
19326         integer alternatives.
19328 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
19330         * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
19331         define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
19332         split, *ashrdi3_internal3 and split): Delete, merge into...
19333         (ashr<mode>3): New expander.
19334         (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
19335         (*ashrsi3_64): Fix formatting.  Replace "i" by "n".
19337 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
19339         * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
19340         *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
19341         *rotldi3_internal3 and split): Delete, merge into...
19342         (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
19343         (*rotlsi3_64): Fix formatting.  Fix condition.  Replace "i" by "n".
19344         Use "rotlw" extended mnemonic.
19346 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
19348         * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
19349         and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
19350         and split, *ashldi3_internal3 and split): Delete, merge into...
19351         (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
19352         (*ashlsi3_64): Fix formatting.  Replace "i" by "n".
19354 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
19356         * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
19357         (lshrsi3, two anonymous define_insns and define_splits,
19358         lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
19359         *lshrdi3_internal3 and split): Delete, merge into...
19360         (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
19361         (*lshrsi3_64): Fix formatting.  Replace "i" by "n".
19363 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
19365         * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
19366         Remove "O" alternative.
19368 2014-06-22  Richard Sandiford  <rdsandiford@googlemail.com>
19370         * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
19371         (mips_move_from_gpr_cost): Likewise.
19372         (mips_register_move_cost): Update accordingly.
19373         (mips_secondary_reload_class): Remove name of in_p.
19375 2014-06-22  Marc Glisse  <marc.glisse@inria.fr>
19377         PR target/61503
19378         * config/i386/i386.md (x86_64_shrd, x86_shrd,
19379         ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
19381 2014-06-21  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
19383         * config/nios2/nios2.c: Include "builtins.h".
19385 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
19387         * cgraph.h (tls_model_names): New variable.
19388         * print-tree.c (print_node): Simplify.
19389         * varpool.c (tls_model_names): New variable.
19390         (dump_varpool_node): Output tls model.
19392 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
19394         * ipa-visibility.c (function_and_variable_visibility): Disable
19395         temporarily local aliases for some targets.
19397 2014-06-20  Marek Polacek  <polacek@redhat.com>
19399         * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
19400         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
19401         into SANITIZE_UNDEFINED.
19402         * doc/invoke.texi: Describe -fsanitize=bounds.
19403         * gimplify.c (gimplify_call_expr): Add gimplification of internal
19404         functions created in the FEs.
19405         * internal-fn.c: Move "internal-fn.h" after "tree.h".
19406         (expand_UBSAN_BOUNDS): New function.
19407         * internal-fn.def (UBSAN_BOUNDS): New internal function.
19408         * internal-fn.h: Don't define internal functions here.
19409         * opts.c (common_handle_option): Add -fsanitize=bounds.
19410         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
19411         BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
19412         * tree-core.h: Define internal functions here.
19413         (struct tree_base): Add ifn field.
19414         * tree-pretty-print.c: Include "internal-fn.h".
19415         (dump_generic_node): Handle functions without CALL_EXPR_FN.
19416         * tree.c (get_callee_fndecl): Likewise.
19417         (build_call_expr_internal_loc): New function.
19418         * tree.def (CALL_EXPR): Update description.
19419         * tree.h (CALL_EXPR_IFN): Define.
19420         (build_call_expr_internal_loc): Declare.
19421         * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
19422         types.
19423         (ubsan_type_descriptor): Change bool parameter to enum
19424         ubsan_print_style.  Adjust the code.  Add handling of
19425         UBSAN_PRINT_ARRAY.
19426         (ubsan_expand_bounds_ifn): New function.
19427         (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
19428         (ubsan_build_overflow_builtin): Likewise.
19429         (instrument_bool_enum_load): Likewise.
19430         (ubsan_instrument_float_cast): Likewise.
19431         * ubsan.h (enum ubsan_print_style): New enum.
19432         (ubsan_expand_bounds_ifn): Declare.
19433         (ubsan_type_descriptor): Adjust declaration.  Use a default parameter.
19435 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
19437         * config/rs6000/rs6000.md: Append `DONE' to preparation
19438         statements of `bswap' pattern splitters.
19440 2014-06-20  Tom de Vries  <tom@codesourcery.com>
19442         * target.def (call_fusage_contains_non_callee_clobbers): Update
19443         definition.
19444         * doc/tm.texi: Regenerate.
19446 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
19447             Max Ostapenko  <m.ostapenko@partner.samsung.com>
19449         PR sanitizer/61547
19450         * asan.c (instrument_strlen_call): Fixed instrumentation of
19451         trailing byte.
19453 2014-06-20  Martin Jambor  <mjambor@suse.cz>
19455         PR ipa/61540
19456         * ipa-prop.c (impossible_devirt_target): New function.
19457         (try_make_edge_direct_virtual_call): Use it, also instead of
19458         asserting.
19460 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
19461             Max Ostapenko  <m.ostapenko@partner.samsung.com>
19463         PR sanitizer/61530
19464         * asan.c (build_check_stmt): Add condition.
19466 2014-06-20  Martin Jambor  <mjambor@suse.cz>
19468         PR ipa/61211
19469         * cgraph.c (clone_of_p): Allow skipped_branch to deal with
19470         expanded clones.
19472 2014-06-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19474         * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
19475         Update comments.
19476         (VCONQ): Make comment more helpful.
19477         (VCON): Delete.
19478         * config/aarch64/aarch64-simd.md
19479         (aarch64_sqdmulh_lane<mode>):
19480         Use VCOND for operands 2.  Update lane checking and flipping logic.
19481         (aarch64_sqrdmulh_lane<mode>): Likewise.
19482         (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
19483         (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
19484         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
19485         attribute of operand 3 to VCOND.
19486         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
19487         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
19488         (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
19489         (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
19490         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
19491         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
19492         define_insn.
19493         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
19494         (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
19495         (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
19496         (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
19497         (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
19498         (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
19499         operand to VCOND.  Update lane flipping and bounds checking logic.
19500         (aarch64_sqdmlal2_lane<mode>): Likewise.
19501         (aarch64_sqdmlsl_lane<mode>): Likewise.
19502         (aarch64_sqdmull_lane<mode>): Likewise.
19503         (aarch64_sqdmull2_lane<mode>): Likewise.
19504         (aarch64_sqdmlal_laneq<mode>):
19505         Replace VCON usage with VCONQ.
19506         Emit aarch64_sqdmlal_laneq<mode>_internal insn.
19507         (aarch64_sqdmlal2_laneq<mode>): Emit
19508         aarch64_sqdmlal2_laneq<mode>_internal insn.
19509         Replace VCON with VCONQ.
19510         (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
19511         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
19512         (aarch64_sqdmull_laneq<mode>): Emit
19513         aarch64_sqdmull_laneq<mode>_internal insn.
19514         Replace VCON with VCONQ.
19515         (aarch64_sqdmull2_laneq<mode>): Emit
19516         aarch64_sqdmull2_laneq<mode>_internal insn.
19517         (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
19518         * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
19519         of 3rd argument to int16x4_t.
19520         (vqdmlalh_lane_s16): Likewise.
19521         (vqdmlslh_lane_s16): Likewise.
19522         (vqdmull_high_lane_s16): Likewise.
19523         (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
19524         (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
19525         (vqdmlsl_lane_s16): Likewise.
19526         (vqdmull_lane_s16): Don't create temporary int16x8_t value.
19527         (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
19528         (vqdmlals_lane_s32): Likewise.
19529         (vqdmlsls_lane_s32): Likewise.
19530         (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
19531         (vqdmulls_lane_s32): Likewise.
19532         (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
19533         (vqdmlsl_lane_s32): Likewise.
19534         (vqdmull_lane_s32): Don't create temporary int32x4_t value.
19535         (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
19536         (vqrdmulhh_lane_s16): Likewise.
19537         (vqdmlsl_high_lane_s16): Likewise.
19538         (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
19539         (vqdmlsl_high_lane_s32): Likewise.
19540         (vqrdmulhs_lane_s32): Likewise.
19542 2014-06-20  Tom de Vries  <tom@codesourcery.com>
19544         * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
19545         get_call_reg_set_usage.
19547 2014-06-20  Tom de Vries  <tom@codesourcery.com>
19549         * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
19550         it contains all call_used_regs.
19552 2014-06-20  Tom de Vries  <tom@codesourcery.com>
19554         * final.c (collect_fn_hard_reg_usage): Add and use variable
19555         function_used_regs.
19557 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
19559         * cgraph.h (struct symtab_node): Add field in_init_priority_hash
19560         (set_init_priority, get_init_priority, set_fini_priority,
19561         get_fini_priority): New methods.
19562         * tree.c (init_priority_for_decl): Remove.
19563         (init_ttree): Do not initialize init priority.
19564         (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
19565         (decl_priority_info): Remove.
19566         (decl_init_priority_insert): Rewrite.
19567         (decl_fini_priority_insert): Rewrite.
19568         * tree.h (tree_priority_map_eq, tree_priority_map_hash,
19569         tree_priority_map_marked_p): Remove.
19570         * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
19571         * lto-streamer-out.c (hash_tree): Do not hash priorities.
19572         * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
19573         not output priorities.
19574         (pack_ts_function_decl_value_fields): Likewise.
19575         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
19576         not input priorities.
19577         (unpack_ts_function_decl_value_fields): Likewise.
19578         * symtab.c (symbol_priority_map): Declare.
19579         (init_priority_hash): Declare.
19580         (symtab_unregister_node): Unregister from priority hash, too.
19581         (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
19582         New methods.
19583         (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
19584         (symbol_priority_info): New function.
19585         (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
19586         New methods.
19587         * tree-core.h (tree_priority_map): Remove.
19589 2014-06-20  Jakub Jelinek  <jakub@redhat.com>
19591         * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
19592         0xff to uint64_t before shifting it up.
19594 2014-06-20  Julian Brown  <julian@codesourcery.com>
19595             Chung-Lin Tang  <cltang@codesourcery.com>
19597         * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
19598         TARGET_THUMB1_ONLY. Add comments.
19600 2014-06-19  Tom de Vries  <tom@codesourcery.com>
19602         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
19603         return type to void.
19604         * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
19606 2014-06-19  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
19608         * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
19609         as "move", from depends_on.
19611 2014-06-19  Terry Guo  <terry.guo@arm.com>
19613         * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
19614         stage.
19616 2014-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
19618         * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
19619         Remove cr5.
19620         (REG_ALLOC_ORDER): Update comment.  Move cr5 earlier.
19622 2014-06-18  Kaz Kojima  <kkojima@gcc.gnu.org>
19624         PR target/61550
19625         * config/sh/sh.c (prepare_move_operands): Don't process TLS
19626         addresses here if reload in progress or completed.
19628 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
19630         * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
19631         "TARGET_MIPS16 ? M16_REGS : GR_REGS".
19632         * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
19633         (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
19634         (mips_register_priority): New function that implements the target
19635         hook TARGET_REGISTER_PRIORITY.
19636         (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
19637         (mips_lra_p): Likewise for TARGET_LRA_P.
19638         (TARGET_REGISTER_PRIORITY): Define macro.
19639         (TARGET_SPILL_CLASS): Likewise.
19640         (TARGET_LRA_P): Likewise.
19641         * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
19642         classes.
19643         (REG_CLASS_NAMES): Likewise.
19644         (REG_CLASS_CONTENTS): Likewise.
19645         (BASE_REG_CLASS): Use M16_SP_REGS.
19646         * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
19647         New set attribute to enable alternatives depending on the register
19648         allocator used.
19649         (*mul_acc_si_r3900, *mul_sub_si): Likewise.
19650         (*lea64): Disable pattern for MIPS16.
19651         * config/mips/mips.opt (mlra): New option.
19653 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
19655         * lra-constraints.c (base_to_reg): New function.
19656         (process_address): Use new function.
19658 2014-06-18  Tom de Vries  <tom@codesourcery.com>
19660         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
19661         * config/aarch64/aarch64.c
19662         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
19663         (aarch64_emit_call_insn): New function.
19664         (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
19665         of emit_call_insn.
19666         * config/aarch64/aarch64.md (define_expand "call_internal")
19667         (define_expand "call_value_internal", define_expand "sibcall_internal")
19668         (define_expand "sibcall_value_internal"): New.
19669         (define_expand "call", define_expand "call_value")
19670         (define_expand "sibcall", define_expand "sibcall_value"): Use internal
19671         expand variant and aarch64_emit_call_insn.
19673 2014-06-18  Radovan Obradovic  <robradovic@mips.com>
19674             Tom de Vries  <tom@codesourcery.com>
19676         * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
19677         * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
19678         Redefine to true.
19679         (arm_emit_call_insn): Add and use sibcall parameter.  Add IP and CC
19680         clobbers to CALL_INSN_FUNCTION_USAGE.
19681         (define_expand "sibcall_internal")
19682         (define_expand "sibcall_value_internal"): New.
19683         (define_expand "call", define_expand "call_value"): Add argument to
19684         arm_emit_call_insn.
19685         (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
19686         (define_expand "sibcall_value"): Use sibcall_value_internal and
19687         arm_emit_call_insn.
19689 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
19691         * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
19693 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
19695         * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
19696         __udivmoddi4.
19698 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
19700         * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
19701         push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
19702         annotations. Fix DWARF information.
19704 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
19706         * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
19707         __udivmoddi4, and fixups for negative operands.
19709 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
19711         * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
19713 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
19715         * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
19716         to __udivmoddi4.
19718 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
19720         * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
19721         manipulation.
19723 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
19725         * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
19726         describing register usage on function entry and exit.
19728 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
19730         * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
19731         (__aeabi_ldivmod): Fix whitespace.
19733 2014-06-18  Andreas Schwab  <schwab@suse.de>
19735         * doc/md.texi (Standard Names): Use @itemx for grouped items.
19736         Remove blank line after @item.
19738 2014-06-18  Richard Henderson  <rth@redhat.com>
19740         PR target/61545
19741         * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
19743 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
19745         * config/arm/arm.c (neon_vector_mem_operand): Allow register
19746         POST_MODIFY for neon loads and stores.
19747         (arm_print_operand): Output post-index register for neon loads and
19748         stores.
19750 2014-06-18  Richard Biener  <rguenther@suse.de>
19752         * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
19754 2014-06-18  Richard Biener  <rguenther@suse.de>
19756         * tree-pass.h (make_pass_dce_loop): Remove.
19757         * passes.def: Replace pass_dce_loop with pass_dce.
19758         * tree-ssa-dce.c (perform_tree_ssa_dce): If something
19759         changed free niter estimates and reset the scev cache.
19760         (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
19761         make_pass_dce_loop): Remove.
19762         * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
19763         (fini_copy_prop): Return whether something changed.  Always
19764         let substitute_and_fold perform DCE and free niter estimates
19765         and reset the scev cache if so.
19766         (execute_copy_prop): If sth changed schedule cleanup-cfg.
19767         (pass_data_copy_prop): Do not unconditionally schedule
19768         cleanup-cfg or update-ssa.
19770 2014-06-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
19772         PR tree-optimization/61518
19773         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
19774         reduction var is used in reduction stmt or phi-function only.
19776 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19778         * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
19780 2014-06-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
19782         PR tree-optimization/61517
19783         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
19784         whose rhs's first tree is the source expression instead of the
19785         expression itself.
19786         (find_bswap_or_nop): Likewise.
19787         (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
19788         gimple stmt whose rhs's first tree is the source. In the memory source
19789         case, move the stmt to be replaced close to one of the original load to
19790         avoid the problem of a store between the load and the stmt's original
19791         location.
19792         (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
19793         signature.
19795 2014-06-18  Andreas Schwab  <schwab@suse.de>
19797         PR rtl-optimization/54555
19798         * postreload.c (move2add_use_add2_insn): Substitute
19799         STRICT_LOW_PART only if it is cheaper.
19801 2014-06-18  Uros Bizjak  <ubizjak@gmail.com>
19803         * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
19804         Do not use unspec as call operand.  Use memory_operand instead of
19805         memory_nox32_operand and add "m" operand constraint.  Disable
19806         pattern for TARGET_X32.
19807         (*sibcall_pop_memory): Ditto.
19808         (*sibcall_value_memory): Ditto.
19809         (*sibcall_value_pop_memory): Ditto.
19810         (sibcall peepholes): Merge SImode and DImode patterns using
19811         W mode iterator.  Use memory_operand instead of memory_nox32_operand.
19812         Disable pattern for TARGET_X32.  Check if eliminated register is
19813         really dead after call insn.  Generate call RTX without unspec operand.
19814         (sibcall_value peepholes): Ditto.
19815         (sibcall_pop peepholes): Fix call insn RTXes.  Use memory_operand
19816         instead of memory_nox32_operand.  Check if eliminated register is
19817         really dead after call insn. Generate call RTX without unspec operand.
19818         (sibcall_value_pop peepholes): Ditto.
19819         * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
19821 2014-06-18  Terry Guo  <terry.guo@arm.com>
19823         PR target/61544
19824         * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
19825         reach the head.
19827 2014-06-18  Olivier Hainque  <hainque@adacore.com>
19829         * tree-core.h (tree_block): Add an "end_locus" field, allowing
19830         memorization of the end of block source location.
19831         * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
19832         * gimplify.c (gimplify_bind_expr): Propagate the block start and
19833         end source location info we have on the block entry/exit code we
19834         generate.
19836 2014-06-18  Richard Biener  <rguenther@suse.de>
19838         * common.opt (fssa-phiopt): New option.
19839         * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
19840         but not with -Og.
19841         * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
19842         * doc/invoke.texi (-fssa-phiopt): Document.
19844 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19846         * genattrtab.c (n_bypassed): New variable.
19847         (process_bypasses): Initialise n_bypassed.
19848         Count number of bypassed reservations.
19849         (make_automaton_attrs): Allocate space for bypassed reservations
19850         rather than number of bypasses.
19852 2014-06-18  Richard Biener  <rguenther@suse.de>
19854         * tree-ssa-propagate.c (replace_phi_args_in): Return whether
19855         we propagated anything.
19856         (substitute_and_fold_dom_walker::before_dom_children): Something
19857         changed if we propagated into PHI arguments.
19858         * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
19859         we removed a stmt.
19861 2014-06-18  Evgeny Stupachenko  <evstupac@gmail.com>
19863         * config/i386/i386.c (ix86_reassociation_width): Add alternative for
19864         vector case.
19865         * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
19866         * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
19867         * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
19868         Introduces alternative way of loads group permutaions.
19869         (vect_transform_grouped_load): Try alternative way of permutations.
19871 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
19873         * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
19874         changed in ORT_TARGET region, don't jump to do_outer.
19875         (struct gimplify_adjust_omp_clauses_data): New type.
19876         (gimplify_adjust_omp_clauses_1): Adjust for data being
19877         a struct gimplify_adjust_omp_clauses_data pointer instead
19878         of tree *.  Pass pre_p as a new argument to
19879         lang_hooks.decls.omp_finish_clause hook.
19880         (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
19881         splay_tree_foreach to pass both list_p and pre_p.
19882         (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
19883         gimplify_omp_workshare, gimplify_omp_target_update): Adjust
19884         gimplify_adjust_omp_clauses callers.
19885         * langhooks.c (lhd_omp_finish_clause): New function.
19886         * langhooks-def.h (lhd_omp_finish_clause): New prototype.
19887         (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
19888         * langhooks.h (struct lang_hooks_for_decls): Add a new
19889         gimple_seq * argument to omp_finish_clause hook.
19890         * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
19891         non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
19892         (scan_omp_parallel, lower_omp_for): When adding
19893         _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
19894         * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
19895         * tree-nested.c (convert_nonlocal_omp_clauses,
19896         convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
19897         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
19899 2014-06-17  Andrew MacLeod  <amacleod@redhat.com>
19901         * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
19902         * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
19904 2014-06-17  Xinliang David Li  <davidxl@google.com>
19906         * tree-pretty-print.c (dump_function_header): Print cgraph uid.
19907         * passes.c (pass_init_dump_file): Do not set initialize
19908         flag to false unconditionally.
19910 2014-06-17  Richard Biener  <rguenther@suse.de>
19912         * genopinit.c (main): Use vec<>::qsort method.
19913         * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
19914         Likewise.
19915         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
19917 2014-06-17  Matthew Fortune  <matthew.fortune@imgtec.com>
19919         * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
19920         * config/mips/mips.c (mips_expand_fcc_reload): Remove.
19921         (mips_move_to_gpr_cost): Remove ST_REGS case.
19922         (mips_move_from_gpr_cost): Likewise.
19923         (mips_register_move_cost): Likewise.
19924         (mips_secondary_reload_class): Likewise.
19926 2014-06-17  Richard Biener  <rguenther@suse.de>
19928         * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
19929         (pass_all_optimizations): Move 3rd copy-prop pass from after
19930         fre to before ifcombine/phiopt.
19932 2014-06-17  Richard Biener  <rguenther@suse.de>
19934         * tree-switch-conversion.c (collect_switch_conv_info): Simplify
19935         and allow all blocks to be forwarders.
19937 2014-06-17  Yufeng Zhang  <yufeng.zhang@arm.com>
19939         PR target/61483
19940         * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
19941         variable 'size'; calculate 'size' right in the front; use
19942         'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
19943         pcum->aapcs_stack_words.
19945 2014-06-17  Nick Clifton  <nickc@redhat.com>
19947         * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
19948         (umulhi3, mulsidi3, umulsidi3): Likewise.
19950 2014-06-17  Thomas Schwinge  <thomas@codesourcery.com>
19952         PR middle-end/61508
19953         * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
19954         check for section name.
19956 2014-06-17  Richard Biener  <rguenther@suse.de>
19958         * tree-ssa-propagate.c: Include domwalk.h.
19959         (substitute_and_fold): Outline main worker into a domwalker ...
19960         (substitute_and_fold_dom_walker::before_dom_children): ... here.
19961         Schedule stmts we can fully propagate for removal.  Remove
19962         poor-mans DCE.
19963         (substitute_and_fold): Apply a dominator walk to perform
19964         substitution.  Process stmts scheduled for removal here.
19966 2014-06-17  Richard Biener  <rguenther@suse.de>
19968         * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
19969         of PHI node moving.
19971 2014-06-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
19973         * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
19974         default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
19975         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
19976         __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
19977         * config/arm/vfp.md (set_fpscr): Make pattern conditional on
19978         TARGET_HARD_FLOAT.
19979         (get_fpscr) : Likewise.
19981 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
19983         PR rtl-optimization/61325
19984         * lra-constraints.c (valid_address_p): Add forward declaration.
19985         (simplify_operand_subreg): Check address validity before and after
19986         alter_reg of memory subreg.
19988 2014-06-16  Uros Bizjak  <ubizjak@gmail.com>
19990         * config/i386/i386.c (decide_alg): Correctly handle
19991         maximum size of stringop algorithm.
19993 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
19995         * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
19997 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
19999         PR rtl-optimization/61522
20000         * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
20002 2014-06-16  Jan Hubicka  <hubicka@ucw.cz>
20004         Revert:
20005         * symtab.c (symtab_node::reset_section): New method.
20006         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
20007         for localization.
20008         * cgraph.h (reset_section): Declare.
20009         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
20010         do not consider comdat locals.
20011         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
20012         for new symbol.
20013         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
20014         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
20015         reset sections of symbols dragged out of the comdats.
20016         (function_and_variable_visibility): Reset sections of
20017         localized symbols.
20019 2014-06-16  Richard Biener  <rguenther@suse.de>
20021         PR tree-optimization/61482
20022         * tree-vrp.c (adjust_range_with_scev): Avoid setting of
20023         [-INF(OVF), +INF(OVF)] range.
20025 2014-06-16  Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
20027         * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
20028         instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
20029         handling 32-bit multiplication.
20031 2014-06-16  Chung-Lin Tang  <cltang@codesourcery.com>
20033         PR middle-end/61430
20034         * lra-lives.c (process_bb_lives): Skip creating copy during
20035         insn scan when src/dest has constrained to same regno.
20037 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
20039         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
20040         DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
20042 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
20044         * asan.c (check_func): New function.
20045         (maybe_create_ssa_name): Likewise.
20046         (build_check_stmt_with_calls): Likewise.
20047         (use_calls_p): Likewise.
20048         (report_error_func): Change interface.
20049         (build_check_stmt): Allow non-integer lengths; add support
20050         for new parameter.
20051         (asan_instrument): Likewise.
20052         (instrument_mem_region_access): Moved code to build_check_stmt.
20053         (instrument_derefs): Likewise.
20054         (instrument_strlen_call): Likewise.
20055         * cfgcleanup.c (old_insns_match_p): Add support for new functions.
20056         * doc/invoke.texi: Describe new parameter.
20057         * params.def: Define new parameter.
20058         * params.h: Likewise.
20059         * sanitizer.def: Describe new builtins.
20061 2014-06-16  Richard Biener  <rguenther@suse.de>
20063         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
20064         Make all defs available at the end.
20065         (eliminate): If we remove a PHI node schedule cfg-cleanup.
20067 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
20069         PR plugins/45078
20070         * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
20072 2014-06-16  Richard Sandiford  <rdsandiford@googlemail.com>
20074         PR bootstrap/61516
20075         * auto-inc-dec.c (merge_in_block): Fix location of insn_info
20076         initialization.  Replace remaining use of uid.
20078 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
20080         * c-family/c-common.c (handle_tls_model_attribute): Use
20081         set_decl_tls_model.
20082         * c-family/c-common.c (handle_tls_model_attribute): Use
20083         set_decl_tls_model.
20084         * cgraph.h (struct varpool_node): Add tls_model.
20085         * tree.c (decl_tls_model, set_decl_tls_model): New functions.
20086         * tree.h (DECL_TLS_MODEL): Update.
20087         (DECL_THREAD_LOCAL_P): Check that variable is static.
20088         (decl_tls_model): Declare.
20089         (set_decl_tls_model): Declare.
20090         * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
20091         set symbol prorperties.
20092         (get_emutls_init_templ_addr): Cleanup.
20093         (new_emutls_decl): Update.
20094         * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
20095         (lto_input_varpool_node): Likewise.
20096         * lto-streamer-out.c (hash_tree): Likewise.
20097         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
20098         not stream DECL_TLS_MODEL.
20099         * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
20100         * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
20102 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
20104         * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
20106 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
20108         * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
20109         (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
20110         lists.
20111         (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
20112         (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
20113         (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
20114         (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
20115         (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
20116         (df_get_artificial_defs, df_get_artificial_uses)
20117         (df_single_def, df_single_use): Update accordingly.
20118         (df_refs_chain_dump): Take the first element in a linked list as
20119         parameter, rather than a pointer to an array of pointers.
20120         * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
20121         * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
20122         (df_chain_create_bb_process_use): Likewise.
20123         (df_md_bb_local_compute_process_def): Likewise.
20124         * fwprop.c (process_defs, process_uses): Likewise.
20125         (register_active_defs, update_uses): Likewise.
20126         (forward_propagate_asm): Update for new df_ref linking.
20127         * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
20128         (df_null_ref_rec, df_null_mw_rec): Likewise.
20129         (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
20130         explicitly.
20131         (df_scan_free_bb_info): Remove check for null artificial_defs.
20132         (df_install_ref_incremental): Adjust for new df_ref linking.
20133         Use a single-element insertion rather than a full sort.
20134         (df_ref_chain_delete_du_chain): Take the first element
20135         in a linked list as parameter, rather than a pointer to an array of
20136         pointers.
20137         (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
20138         (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
20139         (df_insn_info_delete): Remove check for null defs and call to
20140         df_scan_free_mws_vec.
20141         (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
20142         null rather than df_null_*_rec.
20143         (df_insn_rescan_debug_internal): Likewise, and update null
20144         checks in the same way.  Remove check for null defs.
20145         (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
20146         Move a single element rather doing a full sort.
20147         (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
20148         linking.
20149         (df_notes_rescan): Likewise.  Use a merge rather than a full sort.
20150         Initialize df_ref and df_mw_hardreg lists to null rather than
20151         df_null_*_rec.
20152         (df_ref_compare): Take df_refs as parameter, transferring the
20153         old interface to...
20154         (df_ref_ptr_compare): ...this new function.
20155         (df_sort_and_compress_refs): Update accordingly.
20156         (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
20157         old interface to...
20158         (df_mw_ptr_compare): ...this new function.
20159         (df_sort_and_compress_mws): Update accordingly.
20160         (df_install_refs, df_install_mws): Return a linked list rather than
20161         an array of pointers.
20162         (df_refs_add_to_chains): Assert that old lists are empty rather
20163         than freeing them.
20164         (df_insn_refs_verify): Don't handle null defs speciailly.
20165         * web.c (union_match_dups): Update for new df_ref linking.
20167 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
20169         * df.h (df_ref_create, df_ref_remove): Delete.
20170         * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
20171         (df_ref_remove): Likewise.
20173 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
20175         * df.h (df_single_def, df_single_use): New functions.
20176         * ira.c (find_moveable_pseudos): Use them.
20178 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
20180         * df.h (FOR_EACH_INSN_INFO_MW): New macro.
20181         * df-problems.c (df_note_bb_compute): Use it.
20182         * regstat.c (regstat_bb_compute_ri): Likewise.
20184 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
20186         * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
20187         * cse.c (cse_extended_basic_block): Use them.
20188         * dce.c (mark_artificial_use): Likewise.
20189         * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
20190         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
20191         (df_chain_remove_problem, df_chain_bb_dump): Likewise.
20192         (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
20193         (df_simulate_initialize_backwards): Likewise.
20194         (df_simulate_finalize_backwards): Likewise.
20195         (df_simulate_initialize_forwards): Likewise.
20196         (df_md_simulate_artificial_defs_at_top): Likewise.
20197         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
20198         * regrename.c (init_rename_info): Likewise.
20199         * regstat.c (regstat_bb_compute_ri): Likewise.
20200         (regstat_bb_compute_calls_crossed): Likewise.
20202 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
20204         * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
20205         (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
20206         (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
20207         * auto-inc-dec.c (find_inc, merge_in_block): Use them.
20208         * combine.c (create_log_links): Likewise.
20209         * compare-elim.c (find_flags_uses_in_insn): Likewise.
20210         (try_eliminate_compare): Likewise.
20211         * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
20212         * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
20213         (remove_reg_equal_equiv_notes_for_defs): Likewise.
20214         (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
20215         (word_dce_process_block, dce_process_block): Likewise.
20216         * ddg.c (def_has_ccmode_p): Likewise.
20217         * df-core.c (df_bb_regno_first_def_find): Likewise.
20218         (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
20219         * df-problems.c (df_rd_simulate_one_insn): Likewise.
20220         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
20221         (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
20222         (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
20223         (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
20224         (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
20225         (df_simulate_find_defs, df_simulate_find_uses): Likewise.
20226         (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
20227         (df_simulate_uses, df_md_simulate_one_insn): Likewise.
20228         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
20229         * fwprop.c (local_ref_killed_between_p): Likewise.
20230         (all_uses_available_at, free_load_extend): Likewise.
20231         * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
20232         * hw-doloop.c (scan_loop): Likewise.
20233         * ifcvt.c (dead_or_predicable): Likewise.
20234         * init-regs.c (initialize_uninitialized_regs): Likewise.
20235         * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
20236         (process_bb_node_lives): Likewise.
20237         * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
20238         (find_moveable_pseudos): Likewise.
20239         * loop-invariant.c (check_dependencies, record_uses): Likewise.
20240         * recog.c (peep2_find_free_register): Likewise.
20241         * ree.c (get_defs): Likewise.
20242         * regstat.c (regstat_bb_compute_ri): Likewise.
20243         (regstat_bb_compute_calls_crossed): Likewise.
20244         * sched-deps.c (find_inc, find_mem): Likewise.
20245         * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
20246         (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
20247         * shrink-wrap.c (requires_stack_frame_p): Likewise.
20248         (prepare_shrink_wrap): Likewise.
20249         * store-motion.c (compute_store_table, build_store_vectors): Likewise.
20250         * web.c (union_defs, pass_web::execute): Likewise.
20251         * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
20252         (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
20254 2014-06-13  Vladimir Makarov  <vmakarov@redhat.com>
20256         * lra-assign.c (assign_by_spills): Add code to assign vector regs
20257         to inheritance pseudos.
20258         * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
20260 2014-06-13  Peter Bergner  <bergner@vnet.ibm.com>
20262         PR target/61415
20263         * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
20264         (BU_MISC_2): Rename to ...
20265         (BU_LDBL128_2): ... this.
20266         * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
20267         (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
20268         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
20269         RS6000_BTM_LDBL128.
20270         (rs6000_invalid_builtin): Add long double 128-bit builtin support.
20271         (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
20272         * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
20273         (unpacktf_1): Likewise.
20274         * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
20275         (__builtin_longdouble_dw1): Likewise.
20276         * doc/sourcebuild.texi (longdouble128): Document.
20278 2014-06-13  Jeff Law  <law@redhat.com>
20280         PR rtl-optimization/61094
20281         PR rtl-optimization/61446
20282         * ree.c (combine_reaching_defs): Get the mode for the copy from
20283         the extension insn rather than the defining insn.
20285 2014-06-13  Dehao Chen  <dehao@google.com>
20287         * dwarf2out.c (add_linkage_name): Emit more linkage name.
20289 2014-06-13  Thomas Schwinge  <thomas@codesourcery.com>
20291         * doc/install.texi (--enable-linker-plugin-configure-flags)
20292         (--enable-linker-plugin-flags): Document new flags.
20294 2014-06-13  Martin Jambor  <mjambor@suse.cz>
20296         PR ipa/61186
20297         * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
20298         cache_token if returning early.
20300 2014-06-13  Nick Clifton  <nickc@redhat.com>
20302         * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
20303         requested alignment is active.
20304         (LABEL_ALIGN): Likewise.
20305         (LOOP_ALIGN): Likewise.
20307 2014-06-13  Richard Biener  <rguenther@suse.de>
20309         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
20310         Rewrite to propagate the VN result into all uses where
20311         possible and to remove stmts becoming dead because of that.
20312         (eliminate): Generalize stmt removal handling, remove in
20313         reverse dominator order to support proper debug stmt
20314         generation.  Update stmts before removing stmts.
20315         * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
20317 2014-06-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
20319         PR tree-optimization/61375
20320         * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
20321         symbolic number cannot be represented in an uint64_t.
20322         (find_bswap_or_nop_1): Likewise.
20324 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
20326         * symtab.c (symtab_node::reset_section): New method.
20327         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
20328         for localization.
20329         * cgraph.h (reset_section): Declare.
20330         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
20331         do not consider comdat locals.
20332         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
20333         for new symbol.
20334         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
20335         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
20336         reset sections of symbols dragged out of the comdats.
20337         (function_and_variable_visibility): Reset sections of
20338         localized symbols.
20340 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
20342         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
20343         to use symtab and decl_binds_to_current_def_p
20344         * tree-vectorizer.c (increase_alignment): Increase alignment
20345         of alias target, too.
20347 2014-06-12  Jakub Jelinek  <jakub@redhat.com>
20349         PR middle-end/61486
20350         * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
20351         (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
20352         if outer combined construct is distribute.
20353         (gimplify_omp_for): For OMP_DISTRIBUTE set
20354         gimplify_omp_ctxp->distribute.
20355         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
20356         GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
20357         mapping into decl map.
20359 2014-06-12  Jason Merrill  <jason@redhat.com>
20361         * common.opt (fabi-version): Change default to 0.
20363 2014-06-12  Jason Merrill  <jason@redhat.com>
20365         * toplev.c (process_options): Reject -fabi-version=1.
20367 2014-06-12  Jeff Law  <law@redhat.com>
20369         PR tree-optimization/61009
20370         * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
20371         value when we stop processing a block due to problematic PHIs.
20373 2014-06-12  Alan Lawrence  <alan.lawrence@arm.com>
20375         * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
20376         vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
20377         vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
20378         vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
20379         vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
20380         vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
20381         vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
20382         are not in the spec.
20384 2014-06-10  Alan Lawrence  <alan.lawrence@arm.com>
20386         PR target/59843
20387         * config/aarch64/aarch64-modes.def: Add V1DFmode.
20388         * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
20389         Support V1DFmode.
20391 2014-06-12  Eric Botcazou  <ebotcazou@adacore.com>
20393         * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
20395 2014-06-12  Georg-Johann Lay  <avr@gjlay.de>
20397         PR target/61443
20398         * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
20399         loading from address spaces.
20401 2014-06-12  Martin Liska  <mliska@suse.cz>
20403         PR ipa/61462
20404         * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
20405         statement is reachable.
20407 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
20409         * symtab.c (section_hash): New hash.
20410         (symtab_unregister_node): Clear section before freeing.
20411         (hash_section_hash_entry): New haser.
20412         (eq_sections): New function.
20413         (symtab_node::set_section_for_node): New method.
20414         (set_section_1): Update.
20415         (symtab_node::set_section): Take string instead of tree as parameter.
20416         (symtab_resolve_alias): Update.
20417         * cgraph.h (section_hash_entry_d): New structure.
20418         (section_hash_entry): New typedef.
20419         (cgraph_node): Change comdat_group_ to x_comdat_group,
20420         change section_ to x_section and turn into section_hash_entry;
20421         update accestors; put set_section_for_node offline.
20422         * tree.c (decl_section_name): Turn into string.
20423         (set_decl_section_name): Change parameter to be string.
20424         * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
20425         * sdbout.c (sdbout_one_type): Update.
20426         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
20427         * varasm.c (IN_NAMED_SECTION, get_named_section,
20428         resolve_unique_section, hot_function_section, get_named_text_section,
20429         USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
20430         make_decl_rtl, default_unique_section): Update.
20431         * config/c6x/c6x.c (c6x_in_small_data_p): Update.
20432         (c6x_elf_unique_section): Update.
20433         * config/nios2/nios2.c (nios2_in_small_data_p): Update.
20434         * config/pa/pa.c (pa_function_section): Update.
20435         * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
20436         * config/ia64/ia64.c (ia64_in_small_data_p): Update.
20437         * config/arc/arc.c (arc_in_small_data_p): Update.
20438         * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
20439         * config/mcore/mcore.c (mcore_unique_section): Update.
20440         * config/mips/mips.c (mips16_build_function_stub): Update.
20441         (mips16_build_call_stub): Update.
20442         (mips_function_rodata_section): Update.
20443         (mips_in_small_data_p): Update.
20444         * config/score/score.c (score_in_small_data_p): Update.
20445         * config/rx/rx.c (rx_in_small_data): Update.
20446         * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
20447         (rs6000_xcoff_asm_named_section): Update.
20448         (rs6000_xcoff_unique_section): Update.
20449         * config/frv/frv.c (frv_string_begins_with): Update.
20450         (frv_in_small_data_p): Update.
20451         * config/v850/v850.c (v850_encode_data_area): Update.
20452         * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
20453         (bfin_handle_l1_data_attribute): Update.
20454         (bfin_handle_l2_attribute): Update.
20455         * config/mep/mep.c (mep_unique_section): Update.
20456         * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
20457         Update.
20458         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
20459         (h8300_handle_tiny_data_attribute): Update.
20460         * config/m32r/m32r.c (m32r_in_small_data_p): Update.
20461         (m32r_in_small_data_p): Update.
20462         * config/alpha/alpha.c (alpha_in_small_data_p): Update.
20463         * config/i386/i386.c (ix86_in_large_data_p): Update.
20464         * config/i386/winnt.c (i386_pe_unique_section): Update.
20465         * config/darwin.c (darwin_function_section): Update.
20466         * config/lm32/lm32.c (lm32_in_small_data_p): Update.
20467         * tree-emutls.c (get_emutls_init_templ_addr): Update.
20468         (new_emutls_decl): Update.
20469         * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
20470         input_varpool_node): Update.
20471         (ead_string_cst): Turn to ...
20472         (read_string): ... this one.
20473         * dwarf2out.c (secname_for_decl): Update.
20474         * asan.c (asan_protect_global): Update.
20476 2014-06-11  DJ Delorie  <dj@redhat.com>
20478         * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
20479         cache lines.
20480         * config/rx/rx.c (rx_option_override): Likewise.
20481         (rx_align_for_label): Likewise.
20483         * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
20485 2014-06-11  Maciej W. Rozycki  <macro@codesourcery.com>
20487         * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
20488         prototype.
20490 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
20492         * common.md: New file.
20493         * doc/md.texi: Update description of generic, machine-independent
20494         constraints.
20495         * config/s390/constraints.md (e): Delete.
20496         * Makefile.in (md_file): Include common.md.
20497         * config/m32c/t-m32c (md_file): Likewise.
20498         * genpreds.c (general_mem): New array.
20499         (generic_constraint_letters): Remove constraints now defined by
20500         common.md.
20501         (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
20502         Allow the first character to be '<' or '>' as well.
20503         * genoutput.c (general_mem): New array.
20504         (indep_constraints): Remove constraints now defined by common.md.
20505         (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
20506         Remove special handling of 'm'.
20507         * ira-costs.c (record_reg_classes): Remove special handling of
20508         constraints now defined by common.md.
20509         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
20510         * ira-lives.c (single_reg_class): Likewise.
20511         (ira_implicitly_set_insn_hard_regs): Likewise.
20512         * lra-constraints.c (reg_class_from_constraints): Likewise.
20513         (process_alt_operands, process_address, curr_insn_transform): Likewise.
20514         * postreload.c (reload_cse_simplify_operands): Likewise.
20515         * reload.c (push_secondary_reload, scratch_reload_class)
20516         (find_reloads, alternative_allows_const_pool_ref): Likewise.
20517         * reload1.c (maybe_fix_stack_asms): Likewise.
20518         * targhooks.c (default_secondary_reload): Likewise.
20519         * stmt.c (parse_output_constraint): Likewise.
20520         * recog.c (preprocess_constraints): Likewise.
20521         (constrain_operands, peep2_find_free_register): Likewise.
20522         (asm_operand_ok): Likewise, but add a comment saying why 'o'
20523         must be handled specially.
20525 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
20527         * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
20528         * genpreds.c (have_const_dbl_constraints): Delete.
20529         (add_constraint): Don't set it.
20530         (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
20531         * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
20532         constraints using the lookup_constraint logic.
20533         * ira-lives.c (single_reg_class): Likewise.
20534         * ira.c (ira_setup_alts): Likewise.
20535         * lra-constraints.c (process_alt_operands): Likewise.
20536         * recog.c (asm_operand_ok, constrain_operands): Likewise.
20537         * reload.c (find_reloads): Likewise.
20539 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
20541         * genpreds.c (const_int_start, const_int_end): New variables.
20542         (choose_enum_order): Output CONST_INT constraints before memory
20543         constraints.
20544         (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
20545         Add CT_CONST_INT.
20546         * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
20547         * ira.c (ira_setup_alts): Likewise.
20548         * lra-constraints.c (process_alt_operands): Likewise.
20549         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
20550         * reload.c (find_reloads): Likewise.
20552 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
20554         * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
20555         decmem_ok and incmem_ok.  Reformat other bitfields for consistency.
20556         * recog.c (preprocess_constraints): Update accordingly.
20558 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
20560         * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
20561         (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
20562         (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
20563         * genpreds.c (print_type_tree): New function.
20564         (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
20565         REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
20566         EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
20567         Write out enum constraint_type and get_constraint_type.
20568         * lra-constraints.c (satisfies_memory_constraint_p): Take a
20569         constraint_num rather than a constraint string.
20570         (satisfies_address_constraint_p): Likewise.
20571         (reg_class_from_constraints): Avoid old constraint macros.
20572         (process_alt_operands, process_address_1): Likewise.
20573         (curr_insn_transform): Likewise.
20574         * ira-costs.c (record_reg_classes): Likewise.
20575         (record_operand_costs): Likewise.
20576         * ira-lives.c (single_reg_class): Likewise.
20577         (ira_implicitly_set_insn_hard_regs): Likewise.
20578         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
20579         * postreload.c (reload_cse_simplify_operands): Likewise.
20580         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
20581         (constrain_operands, peep2_find_free_register): Likewise.
20582         * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
20583         (find_reloads, alternative_allows_const_pool_ref): Likewise.
20584         * reload1.c (maybe_fix_stack_asms): Likewise.
20585         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
20586         * targhooks.c (default_secondary_reload): Likewise.
20587         * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
20588         to EXTRA_CONSTRAINT_STR.
20589         * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
20591 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
20593         * genpreds.c (write_constraint_satisfied_p_1): Replace with...
20594         (write_constraint_satisfied_p_array): ...this new function.
20595         (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
20596         an array.
20597         (write_insn_preds_c): Update accordingly.
20599 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
20601         * genpreds.c (write_lookup_constraint): Rename to...
20602         (write_lookup_constraint_1): ...this.
20603         (write_lookup_constraint_array): New function.
20604         (write_tm_preds_h): Define lookup_constraint as an inline function
20605         that uses write_lookup_constraint_array where possible.
20606         (write_insn_preds_c): Update for the changes above.
20608 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
20610         * doc/md.texi (regclass_for_constraint): Rename to...
20611         (reg_class_for_constraint): ...this.
20612         * genpreds.c (num_constraints, enum_order, register_start)
20613         (register_end, satisfied_start, memory_start, memory_end)
20614         (address_start, address_end): New variables.
20615         (add_constraint): Count the number of constraints.
20616         (choose_enum_order): New function.
20617         (write_enum_constraint_num): Iterate over enum_order.
20618         (write_regclass_for_constraint): Rename to...
20619         (write_reg_class_for_constraint_1): ...this and update output
20620         accordingly.
20621         (write_constraint_satisfied_p): Rename to...
20622         (write_constraint_satisfied_p_1): ...this and update output
20623         accordingly.  Do nothing if all extra constraints are register
20624         constraints.
20625         (write_insn_extra_memory_constraint): Delete.
20626         (write_insn_extra_address_constraint): Delete.
20627         (write_range_function): New function.
20628         (write_tm_preds_h): Define constraint_satisfied_p and
20629         reg_class_for_constraint as inline functions that do a range check
20630         before calling the out-of-line function.  Use write_range_function
20631         to implement insn_extra_{register,memory,address}_constraint,
20632         the first of which is new.
20633         (write_insn_preds_c): Update after above changes to write_* functions.
20634         (main): Call choose_enum_order.
20636 2014-06-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
20638         PR tree-optimization/61306
20639         * tree-ssa-math-opts.c (struct symbolic_number): Store type of
20640         expression instead of its size.
20641         (do_shift_rotate): Adapt to change in struct symbolic_number. Return
20642         false to prevent optimization when the result is unpredictable due to
20643         arithmetic right shift of signed type with highest byte is set.
20644         (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
20645         (init_symbolic_number): Likewise.
20646         (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
20647         when the result is unpredictable due to sign extension.
20649 2014-06-11  Terry Guo  <terry.guo@arm.com>
20651         * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
20652         (*thumb1_addsi3): Ditto.
20653         (*thumb_subdi3): Ditto.
20654         (thumb1_subsi3_insn): Ditto.
20655         (*thumb_mulsi3): Ditto.
20656         (*thumb_mulsi3_v6): Ditto.
20657         (*thumb1_andsi3_insn): Ditto.
20658         (thumb1_bicsi3): Ditto.
20659         (*thumb1_iorsi3_insn): Ditto.
20660         (*thumb1_xorsi3_insn): Ditto.
20661         (*thumb1_ashlsi3): Ditto.
20662         (*thumb1_ashrsi3): Ditto.
20663         (*thumb1_lshrsi3): Ditto.
20664         (*thumb1_rotrsi3): Ditto.
20665         (*thumb1_negdi2): Ditto.
20666         (*thumb1_negsi2): Ditto.
20667         (*thumb1_abssi2): Ditto.
20668         (*thumb1_neg_abssi2): Ditto.
20669         (*thumb1_one_cmplsi2): Ditto.
20670         (*thumb1_zero_extendhisi2): Ditto.
20671         (*thumb1_zero_extendqisi2): Ditto.
20672         (*thumb1_zero_extendqisi2_v6): Ditto.
20673         (thumb1_extendhisi2): Ditto.
20674         (thumb1_extendqisi2): Ditto.
20675         (*thumb1_movdi_insn): Ditto.
20676         (*thumb1_movsi_insn): Ditto.
20677         (*thumb1_movhi_insn): Ditto.
20678         (thumb_movhi_clobber): Ditto.
20679         (*thumb1_movqi_insn): Ditto.
20680         (*thumb1_movhf): Ditto.
20681         (*thumb1_movsf_insn): Ditto.
20682         (*thumb_movdf_insn): Ditto.
20683         (movmem12b): Ditto.
20684         (movmem8b): Ditto.
20685         (cbranchqi4): Ditto.
20686         (cbranchsi4_insn): Ditto.
20687         (cbranchsi4_scratch): Ditto.
20688         (*negated_cbranchsi4): Ditto.
20689         (*tbit_cbranch): Ditto.
20690         (*tlobits_cbranch): Ditto.
20691         (*tstsi3_cbranch): Ditto.
20692         (*cbranchne_decr1): Ditto.
20693         (*addsi3_cbranch): Ditto.
20694         (*addsi3_cbranch_scratch): Ditto.
20695         (*thumb_cmpdi_zero): Ditto.
20696         (cstoresi_eq0_thumb1): Ditto.
20697         (cstoresi_ne0_thumb1): Ditto.
20698         (*cstoresi_eq0_thumb1_insn): Ditto.
20699         (*cstoresi_ne0_thumb1_insn): Ditto.
20700         (cstoresi_nltu_thumb1): Ditto.
20701         (cstoresi_ltu_thumb1): Ditto.
20702         (thumb1_addsi3_addgeu): Ditto.
20703         (*thumb_jump): Ditto.
20704         (*call_reg_thumb1_v5): Ditto.
20705         (*call_reg_thumb1): Ditto.
20706         (*call_value_reg_thumb1_v5): Ditto.
20707         (*call_value_reg_thumb1): Ditto.
20708         (*call_insn): Ditto.
20709         (*call_value_insn): Ditto.
20710         (thumb1_casesi_internal_pic): Ditto.
20711         (thumb1_casesi_dispatch): Ditto.
20712         (*thumb1_indirect_jump): Ditto.
20713         (prologue_thumb1_interwork): Ditto.
20714         (*epilogue_insns): Ditto.
20715         (consttable_1): Ditto.
20716         (consttable_2): Ditto.
20717         (tablejump): Ditto.
20718         (*thumb1_tablejump): Ditto.
20719         (thumb_eh_return): Ditto.
20720         (define_peephole2): Two of them are thumb1 only and got moved into
20721         new file thumb1.md.
20722         (define_split): Six of them are thumb1 only and got moved into new
20723         file thumb1.md.
20724         * config/arm/thumb1.md: New file comprised of above thumb1 only
20725         patterns.
20727 2014-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20729         * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
20730         * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
20731         dependencies.
20732         * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
20733         (aarch64_crc_builtin_datum): New struct.
20734         (aarch64_crc_builtin_data): New.
20735         (aarch64_init_crc32_builtins): New function.
20736         (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
20737         (aarch64_crc32_expand_builtin): New.
20738         (aarch64_expand_builtin): Add CRC32 builtin expansion case.
20739         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
20740         __ARM_FEATURE_CRC32 when appropriate.
20741         (TARGET_CRC32): Define.
20742         * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
20743         UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
20744         UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
20745         (aarch64_<crc_variant>): New pattern.
20746         * config/aarch64/arm_acle.h: New file.
20747         * config/aarch64/iterators.md (CRC): New int iterator.
20748         (crc_variant, crc_mode): New int attributes.
20749         * doc/aarch64-acle-intrinsics.texi: New file.
20750         * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
20751         Include aarch64-acle-intrinsics.texi.
20753 2014-06-11  Evgeny Stupachenko  <evstupac@gmail.com>
20755         * tree-vect-data-refs.c (vect_grouped_store_supported): New
20756         check for stores group of length 3.
20757         (vect_permute_store_chain): New permutations for stores group of
20758         length 3.
20759         * tree-vect-stmts.c (vect_model_store_cost): Change cost
20760         of vec_perm_shuffle for the new permutations.
20762 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
20764         * ipa-visibility.c (function_and_variable_visibility): Disable virtual
20765         table rewriting temporarily on targets not supporting ONE_ONLY.
20767 2014-06-11  Richard Biener  <rguenther@suse.de>
20769         PR middle-end/61437
20770         Revert
20771         2014-06-04  Richard Biener  <rguenther@suse.de>
20773         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
20774         TREE_PUBLIC and DECL_EXTERNAL decls.
20776 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
20778         * varasm.c (set_implicit_section): New function.
20779         (resolve_unique_section): Use it to set implicit section
20780         for aliases, too.
20781         (get_named_text_section): Use symtab_get_node (decl)->implicit_section
20782         (default_function_section): Likewise.
20783         (decl_binds_to_current_def_p): Constify argument.
20784         * varasm.h (decl_binds_to_current_def_p): Update prototype.
20785         * asan.c (asan_protect_global): Use
20786         symtab_get_node (decl)->implicit_section.
20787         * symtab.c (dump_symtab_base): Dump implicit sections.
20788         (verify_symtab_base): Verify sanity of sectoins and comdats.
20789         (symtab_resolve_alias): Alias share the section of its target.
20790         (set_section_1): New function.
20791         (symtab_node::set_section): Move here, recurse to aliases.
20792         (verify_symtab): Check for duplicated symtab lists.
20793         * tree-core.h (implicit_section_name_p): Remove.
20794         * tree-vect-data-refs.c: Include varasm.h.
20795         (vect_can_force_dr_alignment_p): Fix conditional on when
20796         decl bints to current definition; use
20797         symtab_get_node (decl)->implicit_section.
20798         * cgraph.c (cgraph_make_node_local_1): Fix section set.
20799         * cgraph.h (struct symtab_node): Add implicit_section.
20800         (set_section): Rename to ...
20801         (set_section_for_node): ... this one.
20802         (set_section): Declare.
20803         * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
20804         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
20805         input_overwrite_node, input_varpool_node): Stream implicit_section.
20806         * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
20807         removal; it will fail in LTO.
20809 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20811         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
20812         Change second alternative type to f_mcr.
20813         * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
20814         and 12th alternatives' types to f_mcr and f_mrc.
20815         (*movdi_aarch64): Same for 12th and 13th alternatives.
20816         (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
20817         (aarch64_movtilow_tilow): Change type to fmov.
20819 2014-06-10  Jiong Wang  <jiong.wang@arm.com>
20821         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
20822         (aarch64_save_or_restore_callee_save_registers): Fix layout.
20824 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20826         * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
20827         New expander.
20828         (aarch64_sqrdmulh_lane<mode>): Likewise.
20829         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
20830         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
20831         (aarch64_sqdmulh_laneq<mode>): New expander.
20832         (aarch64_sqrdmulh_laneq<mode>): Likewise.
20833         (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
20834         (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
20835         (aarch64_sqdmulh_lane<mode>): New expander.
20836         (aarch64_sqrdmulh_lane<mode>): Likewise.
20837         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
20838         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
20839         (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
20840         (aarch64_sqdmlal_laneq<mode>): Likewise.
20841         (aarch64_sqdmlsl_lane<mode>): Likewise.
20842         (aarch64_sqdmlsl_laneq<mode>): Likewise.
20843         (aarch64_sqdmlal2_lane<mode>): Likewise.
20844         (aarch64_sqdmlal2_laneq<mode>): Likewise.
20845         (aarch64_sqdmlsl2_lane<mode>): Likewise.
20846         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
20847         (aarch64_sqdmull_lane<mode>): Likewise.
20848         (aarch64_sqdmull_laneq<mode>): Likewise.
20849         (aarch64_sqdmull2_lane<mode>): Likewise.
20850         (aarch64_sqdmull2_laneq<mode>): Likewise.
20852 2014-06-10  Richard Biener  <rguenther@suse.de>
20854         PR tree-optimization/61438
20855         * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
20856         (eliminate_dom_walker::before_dom_children): Only try to inhibit
20857         insertion of IVs if running PRE.
20858         (eliminate): Adjust.
20859         (pass_pre::execute): Likewise.
20860         (pass_fre::execute): Likewise.
20862 2014-06-10  Richard Biener  <rguenther@suse.de>
20864         PR middle-end/61456
20865         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
20866         Do not use the main variant for the type comparison.
20867         (ncr_compar): Likewise.
20868         (nonoverlapping_component_refs_p): Likewise.
20870 2014-06-10  Marcus Shawcroft  <marcus.shawcroft@arm.com>
20872         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
20873         REG_CFA_RESTORE mode.
20875 2014-06-10  Evgeny Stupachenko  <evstupac@gmail.com>
20877         * config/i386/i386.c (expand_vec_perm_pblendv): New.
20878         * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
20879         expand_vec_perm_pblendv.
20881 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20883         * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
20884         available.
20885         Simplify description of __crc32d and __crc32cd intrinsics.
20886         * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
20887         availability.
20889 2014-06-10  Thomas Schwinge  <thomas@codesourcery.com>
20891         PR lto/61334
20892         * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
20893         * config.in: Regenerate.
20894         * configure: Likewise.
20896 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
20898         * ipa-reference.c (is_proper_for_analysis): Exclude addressable
20899         and public vars.
20900         (intersect_static_var_sets): Remove.
20901         (propagate): Do not prune local statics.
20903 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
20905         PR fortran/60928
20906         * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
20907         Set lastprivate_firstprivate even if omp_private_outer_ref
20908         langhook returns true.
20909         <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
20910         langhook, call unshare_expr on new_var and call
20911         build_outer_var_ref to get the last argument.
20913 2014-06-10  Marek Polacek  <polacek@redhat.com>
20915         PR c/60988
20916         * doc/extend.texi: Add cindex for transparent_union.
20918 2014-06-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
20920         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
20921         init_symbolic_number ().
20923 2014-05-18  John David Anglin  <danglin@gcc.gnu.org>
20925         PR middle-end/61141
20926         * emit-rtl.c (reset_all_used_flags): In a sequence, check that
20927         XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
20928         (verify_rtl_sharing): Likewise.
20930 2014-06-09  Marc Glisse  <marc.glisse@inria.fr>
20932         PR c++/54442
20933         * tree.c (build_qualified_type): Use a canonical type for
20934         TYPE_CANONICAL.
20936 2014-06-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20938         * config/arm/arm-modes.def: Remove XFmode.
20940 2014-06-09  Alan Lawrence  <alan.lawrence@arm.com>
20942         PR target/61062
20943         * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
20944         vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
20945         vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
20946         vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
20947         vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
20948         vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
20949         vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
20950         vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
20951         vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
20953 2014-06-09  Jan Hubicka  <hubicka@ucw.cz>
20955         * tree-core.h (tree_decl_with_vis): Remove section_name.
20957 2014-06-09  Kito Cheng  <kito@0xlab.org>
20959         * ira.c (ira): Don't call init_caller_save if LRA enabled
20960         since LRA use its own infrastructure to handle that.
20962 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
20964         * symtab.c (dump_symtab_base): Update dumping.
20965         (symtab_make_decl_local): Clear only DECL_COMDAT.
20966         * tree-vect-data-refs.c (Check that variable is static before
20967         tampering with sections.
20968         * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
20969         (cgraph_create_virtual_clone): Likewise.
20970         * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
20971         (decl_section_name, set_decl_section_name): New accessors.
20972         (find_decls_types_r): Do not walk section name
20973         * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
20974         (decl_comdat_group, decl_comdat_group_id): Constify.
20975         (decl_section_name, set_decl_section_name): Update.
20976         * varpool.c (varpool_finalize_named_section_flags): Use get_section.
20977         * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
20978         (cgraph_make_node_local_1): Clear section and comdat group.
20979         * cgraph.h (set_comdat_group): Sanity check.
20980         (get_section, set_section): New.
20981         * ipa-comdats.c (ipa_comdats): Use get_section.
20982         * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
20983         * lto-streamer-out.c: Do not follow section names.
20984         * c-family/c-common.c (handle_section_attribute): Update.
20985         * lto-cgraph.c (lto_output_node): Output section.
20986         (lto_output_varpool_node): Likewise.
20987         (read_comdat_group): Rename to ...
20988         (read_identifier): ... this one.
20989         (read_string_cst): New function.
20990         (input_node, input_varpool_node): Input section names.
20991         * tree-emutls.c (get_emutls_init_templ_addr): Update.
20992         (new_emutls_decl): Update.
20993         (secname_for_decl): Check section names only of static vars.
20994         * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
20995         * config/i386/winnt.c (i386_pe_unique_section): Likewise.
20996         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
20997         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
20998         * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
20999         * config/mcore/mcore.c (mcore_unique_section): Likewise.
21000         * config/mips/mips.c (mips16_build_function_stub): Likewise.
21001         * config/v850/v850.c (v850_insert_attributes): Likewise.
21002         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
21003         Likewise.
21004         (h8300_handle_tiny_data_attribute): Likewise.
21005         * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
21006         (bfin_handle_l2_attribute): Likewise.
21008 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
21010         * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
21011         remove static initializer.
21013 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
21015         * varasm.c (use_blocks_for_decl_p): Check symbol table
21016         instead of alias attribute.
21017         (place_block_symbol): Recurse on aliases.
21019 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
21021         * ipa-visibility.c: Include varasm.h
21022         (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
21024 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
21026         * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
21027         outputting aliases.
21029 2014-06-07  Steven Bosscher  <steven@gcc.gnu.org>
21031         * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
21032         from test_insn into GGC space escape via SET_SRC.
21034 2014-06-07  Eric Botcazou  <ebotcazou@adacore.com>
21036         * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
21037         call statement, if any.
21038         (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
21039         statements, if any.  Tidy up.
21041 2014-06-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
21043         PR target/61431
21044         * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
21045         iterators, VSX_D that handles 64-bit types, and VSX_LE that
21046         handles swapping the two 64-bit double words on little endian
21047         systems.  Include V1TImode and optionally TImode in VSX_LE so that
21048         these types are properly swapped.  Change all of the insns and
21049         splits that do the 64-bit swaps to use VSX_LE.
21050         (vsx_le_perm_load_<mode>): Likewise.
21051         (vsx_le_perm_store_<mode>): Likewise.
21052         (splitters for little endian memory operations): Likewise.
21053         (vsx_xxpermdi2_le_<mode>): Likewise.
21054         (vsx_lxvd2x2_le_<mode>): Likewise.
21055         (vsx_stxvd2x2_le_<mode>): Likewise.
21057 2014-06-06  Uros Bizjak  <ubizjak@gmail.com>
21059         PR target/61423
21060         * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
21061         define_insn_and_split pattern, merged from *floatunssi<mode>2_1
21062         and corresponding splitters.  Zero extend general register
21063         or memory input operand to XMM temporary.  Enable for
21064         TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
21065         (floatunssi<mode>2): Update expander predicate.
21067 2014-06-06  Vladimir Makarov  <vmakarov@redhat.com>
21069         PR rtl-optimization/61325
21070         * lra-constraints.c (process_address_1): Check scale equal to one
21071         to prevent transformation: base + scale * index => base + new_reg.
21073 2014-06-06  Richard Biener  <rguenther@suse.de>
21075         PR tree-optimization/59299
21076         * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
21077         a def operand.
21078         (nearest_common_dominator_of_uses): Likewise.
21079         (statement_sink_location): Adjust.  Support sinking loads.
21081 2014-06-06  Martin Jambor  <mjambor@suse.cz>
21083         * ipa-prop.c (get_place_in_agg_contents_list): New function.
21084         (build_agg_jump_func_from_list): Likewise.
21085         (determine_known_aggregate_parts): Renamed to
21086         determine_locally_known_aggregate_parts.  Moved some functionality
21087         to the two functions above, removed bound checks.
21089 2014-06-06  James Greenhalgh  <james.greenhalgh@arm.com>
21091         * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
21092         * config/aarch64/aarch64.c (aarch64_move_pointer): New.
21093         (aarch64_progress_pointer): Likewise.
21094         (aarch64_copy_one_part_and_move_pointers): Likewise.
21095         (aarch64_expand_movmen): Likewise.
21096         * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
21097         * config/aarch64/aarch64.md (movmem<mode>): New.
21099 2014-06-06  Bingfeng Mei  <bmei@broadcom.com>
21101         * targhooks.c (default_add_stmt_cost): Call target specific
21102         hook instead of default one.
21104 2014-06-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
21106         * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
21107         endianness instead of host endianness.
21108         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
21109         comments.
21111 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
21113         PR debug/53927
21114         * function.c (instantiate_decls): Process the saved static chain.
21115         (expand_function_start): If not optimizing, save the static chain
21116         onto the stack.
21117         * tree-nested.c (convert_all_function_calls): Always create the static
21118         chain for nested functions if not optimizing.
21120 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
21122         * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
21124 2014-06-06  Richard Biener  <rguenther@suse.de>
21126         * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
21127         (construct_init_block): Likewise.
21128         (construct_exit_block): Likewise.
21129         (pass_expand::execute): Likewise.
21130         * graphite.c (graphite_transforms): Replace check for current_loops
21131         with a check for > 1 loops.
21132         (pass_graphite_transforms::execute): Adjust.
21133         * ipa-split.c (split_function): Remove check for current_loops.
21134         * omp-low.c (expand_parallel_call): Likewise.
21135         (expand_omp_for_init_counts): Likewise.
21136         (extract_omp_for_update_vars): Likewise.
21137         (expand_omp_for_generic): Likewise.
21138         (expand_omp_sections): Likewise.
21139         (expand_omp_target): Likewise.
21140         * tracer.c (tail_duplicate): Likewise.
21141         (pass_tracer::execute): Likewise.
21142         * trans-mem.c (expand_transaction): Likewise.
21143         * tree-complex.c (expand_complex_div_wide): Likewise.
21144         * tree-eh.c (lower_resx): Likewise.
21145         (cleanup_empty_eh_merge_phis): Likewise.
21146         * tree-predcom.c (run_tree_predictive_commoning): Replace check for
21147         current_loops with a check for > 1 loops.
21148         (pass_predcom::execute): Adjust.
21149         * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
21150         * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
21151         * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
21152         * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
21153         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
21154         * tree-switch-conversion.c (process_switch): Likewise.
21155         * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
21156         * tree-vrp.c (vrp_visit_phi_node): Likewise.
21157         (execute_vrp): Likewise.
21158         * ubsan.c (ubsan_expand_null_ifn): Likewise.
21160 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
21162         * rtl.h (insn_location): Declare.
21163         * cfgcleanup.c (try_forward_edges): Compare the locus of locations
21164         with UNKNOWN_LOCATION.
21165         * emit-rtl.c (insn_location): New function.
21166         * final.c (notice_source_line): Check that the instruction has a
21167         location before retrieving it and use insn_location.
21168         * modulo-sched.c (loop_single_full_bb_p): Likewise.
21169         * print-rtl.c (print_rtx): Likewise.
21171 2014-06-06  Richard Biener  <rguenther@suse.de>
21173         * passes.def: Move 2nd VRP pass before phi-only-cprop.
21175 2014-06-06  Christian Bruel  <christian.bruel@st.com>
21177         PR tree-optimization/43934
21178         * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
21179         cost.
21181 2014-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
21183         * ira-lives.c (single_reg_class): Add missing break.  Explicitly
21184         return NO_REGS for extra address and memory constraints.  Handle
21185         operands that match (or are equivalent to something that matches)
21186         extra constant constraints.  Ignore other non-register operands.
21188 2014-06-06  Alan Modra  <amodra@gmail.com>
21190         PR target/61300
21191         * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
21192         * doc/tm.texi: Regenerate.
21193         * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
21194         Use throughout in place of REG_PARM_STACK_SPACE.
21195         * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
21196         "incoming" param.  Pass to rs6000_function_parms_need_stack.
21197         (rs6000_function_parms_need_stack): Add "incoming" param, ignore
21198         prototype_p when incoming.  Use function decl when incoming
21199         to handle K&R style functions.
21200         * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
21201         (INCOMING_REG_PARM_STACK_SPACE): Define.
21203 2014-06-05  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
21205         PR target/52472
21206         * cfgexpand.c (expand_debug_expr): Use address space of nested
21207         TREE_TYPE for ADDR_EXPR and MEM_REF.
21209 2014-06-05  Jeff Law  <law@redhat.com>
21211         PR tree-optimization/61289
21212         * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
21213         DST_MAP parameters.   Invalidate by walking all the SSA_NAME_VALUES
21214         looking for those which match LHS.  All callers changed.
21215         (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
21216         parameters and code which manipulated them.  All callers changed.
21217         (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
21218         and DST_MAP parameters.  Simplify invalidation code by just calling
21219         invalidate_equivalences.  All callers changed.
21220         (thread_across_edge): Simplify now that we don't need to maintain
21221         the map of equivalences to invalidate.
21223 2014-06-05  Kai Tietz  <ktietz@redhat.com>
21224             Richard Henderson  <rth@redhat.com>
21226         PR target/46219
21227         * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
21228         checking for !TARGET_X32.
21229         * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
21230         (sibcall_intern): New define_insn, plus required peepholes.
21231         (sibcall_pop_intern): Likewise.
21232         (sibcall_value_intern): Likewise.
21233         (sibcall_value_pop_intern): Likewise.
21235 2014-06-05  Ilya Enkovich  <ilya.enkovich@intel.com>
21237         * tree-inline.c (tree_function_versioning): Check DF info existence
21238         before accessing it.
21240 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
21242         * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
21243         frame_size.
21244         * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
21245         aarch64_frame hard_fp_offset and frame_size.
21246         (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
21247         frame_size; remove original_frame_size.
21248         (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
21249         (aarch64_initial_elimination_offset): Remove frame_size and
21250         offset.  Use aarch64_frame frame_size.
21252 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
21253             Jiong Wang  <jiong.wang@arm.com>
21254             Renlin  <renlin.li@arm.com>
21256         * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
21257         initialization of R30 offset.  Update offset.  Iterate core
21258         regisers upto X30.  Remove X29, X30 specific code.
21260 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
21261             Jiong Wang  <jiong.wang@arm.com>
21263         * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
21264         (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
21265         (aarch64_register_saved_on_entry): Adjust test.
21267 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
21269         * config/aarch64/aarch64.h (machine_function): Move
21270         saved_varargs_size from here...
21271         (aarch64_frame): ... to here.
21273         * config/aarch64/aarch64.c (aarch64_expand_prologue)
21274         (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
21275         (aarch64_initial_elimination_offset)
21276         (aarch64_setup_incoming_varargs): Adjust location of
21277         saved_varargs_size.
21279 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
21281         * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
21282         layout comment.
21284 2014-06-05  Jaydeep Patil  <Jaydeep.Patil@imgtec.com>
21285             Prachi Godbole  <Prachi.Godbole@imgtec.com>
21287         * config/mips/mips-cpus.def: Add definition for p5600.  Updated
21288         mips32r5 entry to use PROCESSOR_P5600.
21289         * config/mips/mips-tables.opt: Regenerate.
21290         * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
21291         * config/mips/mips.c (mips_fmadd_bypass): New function.
21292         (mips_rtx_cost_data): Add costs for p5600.
21293         (mips_issue_rate): Add support for p5600.
21294         (mips_multipass_dfa_lookahead): Likewise.
21295         * config/mips/mips.h (TUNE_P5600): New define.
21296         (TUNE_MACC_CHAINS): Add TUNE_P5600.
21297         (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
21298         * config/mips/mips.md: Include p5600.md.
21299         (processor): Add p5600.
21300         * config/mips/p5600.md: New file.
21302 2014-06-05  Evgeny Stupachenko  <evstupac@gmail.com>
21304         * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
21305         * config/i386/predicates.md (palignr_operand): New.
21306         Indicates if permutation is suitable for palignr instruction.
21308 2014-06-05  Yuri Rumyantsev  <ysrumyan@gmail.com>
21310         PR tree-optimization/61319
21311         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
21312         stmt belongs to loop.
21314 2014-06-05  Richard Biener  <rguenther@suse.de>
21316         * gimplify.c (create_tmp_from_val): Remove is_formal parameter
21317         and set DECL_GIMPLE_REG_P unconditionally if appropriate.
21318         (lookup_tmp_var): Adjust.
21319         (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
21321 2014-06-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21323         * config/arm/arm.md (enabled): Disable opt_enabled attribute.
21325 2014-06-05  Marek Polacek  <polacek@redhat.com>
21327         PR c/49706
21328         * doc/invoke.texi: Document -Wlogical-not-parentheses.
21330 2014-06-04  Tom de Vries  <tom@codesourcery.com>
21332         * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
21333         CONST_INT.
21335 2014-06-04  Marc Glisse  <marc.glisse@inria.fr>
21337         PR tree-optimization/61385
21338         * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
21340 2014-06-04  Bernd Schmidt  <bernds@codesourcery.com>
21342         * lto-wrapper.c (fatal, fatal_perror): Remove functions.  All callers
21343         changed to use fatal_error.
21344         (main): Ensure lto_wrapper_cleanup is run atexit.
21346 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
21348         * lra-constraints.c (valid_address_p): Move earlier in file.
21349         (address_eliminator): New structure.
21350         (satisfies_memory_constraint_p): New function.
21351         (satisfies_address_constraint_p): Likewise.
21352         (process_alt_operands, process_address, curr_insn_transform): Use them.
21354 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
21356         * lra-int.h (lra_static_insn_data): Make operand_alternative a
21357         const pointer.
21358         (target_lra_int, default_target_lra_int, this_target_lra_int)
21359         (op_alt_data): Delete.
21360         * lra.h (lra_init): Delete.
21361         * lra.c (default_target_lra_int, this_target_lra_int): Delete.
21362         (init_insn_code_data_once): Remove op_alt_data handling.
21363         (finish_insn_code_data_once): Likewise.
21364         (init_op_alt_data): Delete.
21365         (get_static_insn_data): Initialize operand_alternative to null.
21366         (free_insn_recog_data): Cast operand_alternative before freeing it.
21367         (setup_operand_alternative): Take the operand_alternative as
21368         parameter and assume it isn't already cached in the static
21369         insn data.
21370         (lra_set_insn_recog_data): Update accordingly.
21371         (lra_init): Delete.
21372         * ira.c (ira_init): Don't call lra_init.
21373         * target-globals.h (this_target_lra_int): Declare.
21374         (target_globals): Remove lra_int.
21375         (restore_target_globals): Update accordingly.
21376         * target-globals.c: Don't include lra-int.h.
21377         (default_target_globals, save_target_globals): Remove lra_int.
21379 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
21381         * recog.h (operand_alternative): Convert reg_class, reject,
21382         matched and matches into bitfields.
21383         (preprocess_constraints): New overload.
21384         (preprocess_insn_constraints): New function.
21385         (preprocess_constraints): Take the insn as parameter.
21386         (recog_op_alt): Change into a pointer.
21387         (target_recog): Add x_op_alt.
21388         * recog.c (asm_op_alt): New variable.
21389         (recog_op_alt): Change into a pointer.
21390         (preprocess_constraints): New overload, replacing the old function
21391         definition with one that doesn't use global state.
21392         (preprocess_insn_constraints): New function.
21393         (preprocess_constraints): Use them.  Take the insn as parameter.
21394         Use asm_op_alt for asms.
21395         (recog_init): Free existing x_op_alt entries.
21396         * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
21397         pointer const.
21398         (make_early_clobber_and_input_conflicts): Likewise.
21399         (process_bb_node_lives): Pass the insn to process_constraints.
21400         * reg-stack.c (check_asm_stack_operands): Likewise.
21401         (subst_asm_stack_regs): Likewise.
21402         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
21403         * regrename.c (build_def_use): Likewise.
21404         * sched-deps.c (sched_analyze_insn): Likewise.
21405         * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
21406         * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
21407         (note_invalid_constants): Likewise.
21408         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
21409         (ix86_legitimate_combined_insn): Make operand_alternative pointer
21410         const.
21412 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
21414         * recog.c (preprocess_constraints): Don't skip disabled alternatives.
21415         * ira-lives.c (check_and_make_def_conflict): Check for disabled
21416         alternatives.
21417         (make_early_clobber_and_input_conflicts): Likewise.
21418         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
21420 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
21422         * recog.h (alternative_class): New function.
21423         (which_op_alt): Return a const recog_op_alt.
21424         * reg-stack.c (check_asm_stack_operands): Update type accordingly.
21425         (subst_asm_stack_regs): Likewise.
21426         * config/arm/arm.c (note_invalid_constants): Likewise.
21427         * regcprop.c (copyprop_hardreg_forward_1): Likewise.  Don't modify
21428         the operand_alternative; use alternative class instead.
21429         * sel-sched.c (get_reg_class): Likewise.
21430         * regrename.c (build_def_use): Likewise.
21431         (hide_operands, restore_operands, record_out_operands): Update type
21432         accordingly.
21434 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
21436         * recog.h (recog_op_alt): Convert to a flat array.
21437         (which_op_alt): New function.
21438         * recog.c (recog_op_alt): Convert to a flat array.
21439         (preprocess_constraints): Update accordingly, grouping all
21440         operands of the same alternative together, rather than the
21441         other way around.
21442         * ira-lives.c (check_and_make_def_conflict): Likewise.
21443         (make_early_clobber_and_input_conflicts): Likewise.
21444         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
21445         * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
21446         (subst_asm_stack_regs): Likewise.
21447         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
21448         * regrename.c (hide_operands, record_out_operands): Likewise.
21449         (build_def_use): Likewise.
21450         * sel-sched.c (get_reg_class): Likewise.
21451         * config/arm/arm.c (note_invalid_constants): Likewise.
21453 2014-06-04  Jason Merrill  <jason@redhat.com>
21455         PR c++/51253
21456         PR c++/61382
21457         * gimplify.c (gimplify_arg): Non-static.
21458         * gimplify.h: Declare it.
21460 2014-06-04  Richard Biener  <rguenther@suse.de>
21462         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
21463         TREE_PUBLIC and DECL_EXTERNAL decls.
21465 2014-06-04  Matthew Fortune  <matthew.fortune@imgtec.com>
21467         * regcprop.c (copyprop_hardreg_forward_1): Account for
21468         HARD_REGNO_CALL_PART_CLOBBERED.
21470 2014-06-04  Richard Biener  <rguenther@suse.de>
21472         * configure.ac: Check whether the underlying type of int64_t
21473         is long or long long.
21474         * configure: Regenerate.
21475         * config.in: Likewise.
21476         * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
21477         (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
21479 2014-06-04  Richard Biener  <rguenther@suse.de>
21481         PR tree-optimization/60098
21482         * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
21483         we hit a kill.
21484         (dse_optimize_stmt): Simplify, now that we found a kill
21485         earlier.
21487 2014-06-04  Richard Biener  <rguenther@suse.de>
21489         * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
21490         of accesses with non-invariant address.
21492 2014-06-04  Martin Liska  <mliska@suse.cz>
21494         * cgraph.h (cgraph_make_wrapper): New function introduced.
21495         * cgraphunit.c (cgraph_make_wrapper): The function implementation.
21496         * ipa-inline.h (inline_analyze_function): The function is global.
21497         * ipa-inline-analysis.c (inline_analyze_function): Likewise.
21499 2014-06-04  Martin Liska  <mliska@suse.cz>
21501         * tree.h (private_lookup_attribute_starting): New function.
21502         (lookup_attribute_starting): Likewise.
21503         * tree.c (private_lookup_attribute_starting): Likewise.
21505 2014-06-04  Martin Liska  <mliska@suse.cz>
21507         * cgraph.h (expand_thunk): New argument added.
21508         (address_taken_from_non_vtable_p): New global function.
21509         * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
21510         * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
21511         * cgraphunit.c (analyze_function): Likewise.
21512         (assemble_thunks_and_aliases): Argument added to call.
21513         (expand_thunk): New argument forces to produce GIMPLE thunk.
21515 2014-06-04  Martin Liska  <mliska@suse.cz>
21517         * coverage.h (coverage_compute_cfg_checksum): Argument added.
21518         * coverage.c (coverage_compute_cfg_checksum): Likewise.
21519         * profile.c (branch_prob): Likewise.
21521 2014-06-04  Martin Jambor  <mjambor@suse.cz>
21523         PR ipa/61340
21524         * ipa-pure-const.c (propagate_pure_const): Add unreachable default
21525         handler for switch on an ipa_ref_use enum.
21526         * ipa-reference.c (analyze_function): Likewise.
21528 2014-06-04  Kai Tietz  <ktietz@redhat.com>
21530         * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
21531         from old call-instruction.
21533 2014-06-04  Bin Cheng  <bin.cheng@arm.com>
21535         * config/aarch64/aarch64.c (aarch64_classify_address)
21536         (aarch64_legitimize_reload_address): Support full addressing modes
21537         for vector modes.
21538         * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
21539         (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
21541 2014-06-03  Andrew Pinski  <apinski@cavium.com>
21543         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
21544         for OP0.
21546 2014-06-03  Andrew Pinski  <apinski@cavium.com>
21548         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
21549         (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
21551 2014-06-03  Kai Tietz  <ktietz@redhat.com>
21553         * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
21554         for 64-bit ms-abi.
21556 2014-06-03  Dehao Chen  <dehao@google.com>
21558         * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
21559         the same loop.
21561 2014-06-03  Marek Polacek  <polacek@redhat.com>
21563         PR c/60439
21564         * doc/invoke.texi: Document -Wswitch-bool.
21565         * function.c (stack_protect_epilogue): Cast controlling expression of
21566         the switch to int.
21567         * gengtype.c (walk_type): Generate switch expression with its
21568         controlling expression cast to int.
21570 2014-06-03  Vishnu K S  <Vishnu.k_s@atmel.com>
21572         * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
21573         and attiny841.
21574         * config/avr/avr-tables.opt: Regenerate.
21575         * config/avr/t-multilib: Regenerate.
21576         * doc/avr-mmcu.texi: Regenerate.
21578 2014-06-03  Vishnu K S  <vishnu.k_s@atmel.com>
21579             Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
21581         * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
21582         (ata6617c, ata664251): Add new avr35 devices.
21583         (ata6612c): Add new avr4 device.
21584         (ata6613c, ata6614q): Add new avr5 devices.
21585         * config/avr/avr-tables.opt: Regenerate.
21586         * config/avr/t-multilib: Regenerate.
21587         * doc/avr-mmcu.texi: Regenerate.
21589 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
21591         * gcc/config/aarch64/aarch64-builtins.c
21592         (aarch64_types_binop_ssu_qualifiers): New static data.
21593         (TYPES_BINOP_SSU): Define.
21594         * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
21595         urshr_n, ushll_n): Use appropriate unsigned qualifiers.
21596         * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
21597         vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
21598         vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
21599         vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
21600         vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
21601         vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
21602         vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
21603         suffix to builtin function name, remove cast.
21604         (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
21605         vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
21606         vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
21608 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
21610         * gcc/config/aarch64/aarch64-builtins.c
21611         (aarch64_types_binop_uus_qualifiers,
21612         aarch64_types_shift_to_unsigned_qualifiers,
21613         aarch64_types_unsigned_shiftacc_qualifiers): Define.
21614         * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
21615         uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
21616         sqshlu_n, uqshl_n): Update qualifiers.
21617         * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
21618         vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
21619         vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
21620         vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
21621         vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
21622         vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
21623         vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
21624         vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
21625         vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
21626         vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
21627         vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
21628         vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
21629         vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
21630         vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
21631         vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
21632         vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
21633         vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
21634         vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
21635         vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
21636         vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
21637         vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
21638         vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
21639         vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
21640         vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
21641         vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
21642         vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
21643         vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
21645 2014-06-03  Teresa Johnson  <tejohnson@google.com>
21647         * tree-sra.c (modify_function): Record caller nodes after rebuild.
21649 2014-06-02  Jason Merrill  <jason@redhat.com>
21651         PR c++/61020
21652         * varpool.c (ctor_for_folding): Handle uninitialized vtables.
21654 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
21656         * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
21657         location == 0.
21659 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
21661         * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
21662         New pattern.
21663         * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
21664         (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
21665         * config/aarch64/iterators.md (REVERSE): New iterator.
21666         (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
21667         (rev_op): New int_attribute.
21668         * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
21669         vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
21670         vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
21671         vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
21672         vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
21673         vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
21674         vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
21675         Replace temporary __asm__ with __builtin_shuffle.
21677 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
21679         * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
21680         mips64r5.
21681         * config/mips/mips-tables.opt: Regenerate.
21682         * config/mips/mips.c (mips_compute_frame_info): Changed if statement
21683         to use mips_isa_rev rather than ISA_MIPS32R2.
21684         * config/mips/mips.h (ISA_MIPS32R3): New define.
21685         (ISA_MIPS32R5): New define.
21686         (ISA_MIPS64R3): New define.
21687         (ISA_MIPS64R5): New define.
21688         (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
21689         ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
21690         (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
21691         and mips64r5.
21692         (MIPS_ISA_SYNCI_SPEC): Likewise.
21693         (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
21694         (LINK_SPEC): Added mips32r3 and mips32r5.
21695         * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
21696         to mips32r2; and mips64r3 and mips64r5 to mips64r2.
21697         * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
21698         * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
21699         * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
21700         * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
21701         * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
21703 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
21705         * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
21706         options.
21707         * config/mips/mips.opt (mxpa): New option.
21708         * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
21709         assembler.
21711 2014-06-03  Martin Jambor  <mjambor@suse.cz>
21713         PR ipa/61160
21714         * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
21715         thunks.
21717 2014-06-03  Thomas Preud'homme  <thomas.preudhomme@arm.com>
21719         PR tree-optimization/61328
21720         * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
21721         initialization from find_bswap_or_nop_1.
21722         (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
21723         in source_expr2 before using the size value the function sets. Also
21724         make use of init_symbolic_number () in both the old place and
21725         find_bswap_or_nop_load () to avoid reading uninitialized memory when
21726         doing recursion in the GIMPLE_BINARY_RHS case.
21728 2014-06-03  Richard Biener  <rguenther@suse.de>
21730         PR tree-optimization/61383
21731         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
21732         stmts can't trap.
21734 2014-06-03  Richard Sandiford  <rdsandiford@googlemail.com>
21736         * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
21737         (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
21738         (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
21739         (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
21740         in this file.
21741         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
21742         (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
21743         * system.h: ...here and make it unconditional.
21744         * target.def (conditional_register_usage): Mention
21745         define_register_constraint instead of old-style constraint macros.
21746         * doc/tm.texi.in: Remove documentation for old-style constraint macros.
21747         * doc/tm.texi: Regenerate.
21748         * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
21749         protected by !USE_MD_CONSTRAINTS.
21750         * config/frv/frv.md: Remove quote from old version of documentation.
21751         * config/frv/frv.c (frv_conditional_register_usage): Likewise.
21752         * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
21753         CONST_DOUBLE_OK_FOR_LETTER.
21754         * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
21756 2014-06-02  Andrew Pinski  <apinski@cavium.com>
21758         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
21759         /lib/ld-linux32-aarch64.so.1 is used for ILP32.
21760         (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
21761         file whose name depends on -mabi= and -mbig-endian.
21762         * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
21763         Handle LP64 better and handle ilp32 too.
21764         (MULTILIB_OPTIONS): Delete.
21765         (MULTILIB_DIRNAMES): Delete.
21767 2014-06-02  Andrew MacLeod  <amacleod@redhat.com>
21769         * expr.h: Remove prototypes of functions defined in builtins.c.
21770         * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
21771         Remove prototypes of functions defined in builtins.c.
21772         * builtins.h: Update prototype list to include all exported functions.
21773         * builtins.c: (default_libc_has_function, gnu_libc_has_function,
21774         no_c99_libc_has_function): Move to targhooks.c
21775         (build_string_literal, build_call_expr_loc_array,
21776         build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
21777         to tree.c.
21778         (expand_builtin_object_size, fold_builtin_object_size): Make static.
21779         * targhooks.c (default_libc_has_function, gnu_libc_has_function,
21780         no_c99_libc_has_function): Relocate from builtins.c.
21781         * tree.c: Include builtins.h.
21782         (build_call_expr_loc_array, build_call_expr_loc_vec,
21783         build_call_expr_loc, build_call_expr, build_string_literal): Relocate
21784         from builtins.c.
21785         * fold-const.h (fold_fma): Move prototype to builtins.h.
21786         * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
21787         * asan.c: Include builtins.h.
21788         * cfgexpand.c: Likewise.
21789         * convert.c: Likewise.
21790         * emit-rtl.c: Likewise.
21791         * except.c: Likewise.
21792         * expr.c: Likewise.
21793         * fold-const.c: Likewise.
21794         * gimple-fold.c: Likewise.
21795         * gimple-ssa-strength-reduction.c: Likewise.
21796         * gimplify.c: Likewise.
21797         * ipa-inline.c: Likewise.
21798         * ipa-prop.c: Likewise.
21799         * lto-streamer-out.c: Likewise.
21800         * stmt.c: Likewise.
21801         * tree-inline.c: Likewise.
21802         * tree-object-size.c: Likewise.
21803         * tree-sra.c: Likewise.
21804         * tree-ssa-ccp.c: Likewise.
21805         * tree-ssa-forwprop.c: Likewise.
21806         * tree-ssa-loop-ivcanon.c: Likewise.
21807         * tree-ssa-loop-ivopts.c: Likewise.
21808         * tree-ssa-math-opts.c: Likewise.
21809         * tree-ssa-reassoc.c: Likewise.
21810         * tree-ssa-threadedge.c: Likewise.
21811         * tree-streamer-in.c: Likewise.
21812         * tree-vect-data-refs.c: Likewise.
21813         * tree-vect-patterns.c: Likewise.
21814         * tree-vect-stmts.c: Likewise.
21815         * config/aarch64/aarch64.c: Likewise.
21816         * config/alpha/alpha.c: Likewise.
21817         * config/arc/arc.c: Likewise.
21818         * config/arm/arm.c: Likewise.
21819         * config/avr/avr.c: Likewise.
21820         * config/bfin/bfin.c: Likewise.
21821         * config/c6x/c6x.c: Likewise.
21822         * config/cr16/cr16.c: Likewise.
21823         * config/cris/cris.c: Likewise.
21824         * config/epiphany/epiphany.c: Likewise.
21825         * config/fr30/fr30.c: Likewise.
21826         * config/frv/frv.c: Likewise.
21827         * config/h8300/h8300.c: Likewise.
21828         * config/i386/i386.c: Likewise.
21829         * config/i386/winnt.c: Likewise.
21830         * config/ia64/ia64.c: Likewise.
21831         * config/iq2000/iq2000.c: Likewise.
21832         * config/lm32/lm32.c: Likewise.
21833         * config/m32c/m32c.c: Likewise.
21834         * config/m32r/m32r.c: Likewise.
21835         * config/m68k/m68k.c: Likewise.
21836         * config/mcore/mcore.c: Likewise.
21837         * config/mep/mep.c: Likewise.
21838         * config/microblaze/microblaze.c: Likewise.
21839         * config/mips/mips.c: Likewise.
21840         * config/mmix/mmix.c: Likewise.
21841         * config/mn10300/mn10300.c: Likewise.
21842         * config/moxie/moxie.c: Likewise.
21843         * config/msp430/msp430.c: Likewise.
21844         * config/nds32/nds32.c: Likewise.
21845         * config/pa/pa.c: Likewise.
21846         * config/pdp11/pdp11.c: Likewise.
21847         * config/picochip/picochip.c: Likewise.
21848         * config/rl78/rl78.c: Likewise.
21849         * config/rs6000/rs6000.c: Likewise.
21850         * config/rx/rx.c: Likewise.
21851         * config/s390/s390.c: Likewise.
21852         * config/score/score.c: Likewise.
21853         * config/sh/sh.c: Likewise.
21854         * config/sparc/sparc.c: Likewise.
21855         * config/spu/spu.c: Likewise.
21856         * config/stormy16/stormy16.c: Likewise.
21857         * config/tilegx/tilegx.c: Likewise.
21858         * config/tilepro/tilepro.c: Likewise.
21859         * config/v850/v850.c: Likewise.
21860         * config/vax/vax.c: Likewise.
21861         * config/xtensa/xtensa.c: Likewise.
21863 2014-06-02  Jeff Law  <law@redhat.com>
21865         PR rtl-optimization/61094
21866         * ree.c (combine_reaching_defs): Do not reextend an insn if it
21867         was marked as do_no_reextend.  If a copy is needed to eliminate
21868         an extension, then mark it as do_not_reextend.
21870 2014-06-02  Marcus Shawcroft  <marcus.shawcroft@arm.com>
21872         * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
21874 2014-06-02  Richard Henderson  <rth@redhat.com>
21876         PR target/61336
21877         * config/alpha/alpha.c (print_operand_address): Allow symbolic
21878         addresses inside asms.  Use output_operand_lossage instead of
21879         gcc_unreachable.
21881 2014-06-02  Uros Bizjak  <ubizjak@gmail.com>
21883         PR target/61239
21884         * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
21885         GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
21887 2014-06-02  Tom de Vries  <tom@codesourcery.com>
21889         * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
21890         case that x has VOIDmode.
21892 2014-06-02  Bernd Schmidt  <bernds@codesourcery.com>
21894         * varasm.c (copy_constant): Delete function.
21895         (build_constant_desc): Don't call it.
21897 2014-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21899         PR target/61154
21900         * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
21901         * config/arm/arm.md (mov64 splitter): Replace const_double_operand
21902         with immediate_operand.
21904 2014-06-02  Andreas Schwab  <schwab@suse.de>
21906         * config/ia64/ia64.c
21907         (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
21908         pending_data_specs first.
21910 2014-06-02  Richard Biener  <rguenther@suse.de>
21912         PR tree-optimization/61378
21913         * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
21914         valueized_anything.
21916 2014-06-01  Uros Bizjak  <ubizjak@gmail.com>
21918         * config/i386/constraints.md (Bw): Rename from 'w'.
21919         (Bz): Rename from 'z'.
21920         * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
21922 2014-06-01  Kai Tietz  <ktietz@redhat.com>
21924         PR target/61377
21925         * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
21926         * config/i386/i386.md (sibcall_insn_operand): Use Bs
21927         instead of m constraint.
21929 2014-05-31  Andreas Schwab  <schwab@linux-m68k.org>
21931         * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
21932         a separate alternative where the scratch operand 2 is marked as
21933         early clobber.
21935 2014-05-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
21937         * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
21938         (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
21939         (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
21940         and __builtins_arm_get_fpscr.
21941         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
21942         __builtins_arm_get_fpscr.
21943         (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
21944         __builtins_arm_ldfpscr.
21945         (arm_atomic_assign_expand_fenv): New function.
21946         * config/arm/vfp.md (set_fpscr): New pattern.
21947         (get_fpscr) : Likewise.
21948         * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
21949         VUNSPEC_SET_FPSCR.
21950         * doc/extend.texi (AARCH64 Built-in Functions) : Document
21951         __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
21953 2014-05-30  Jakub Jelinek  <jakub@redhat.com>
21955         * asan.c (report_error_func): Add SLOW_P argument, use
21956         BUILT_IN_ASAN_*_N if set.
21957         (build_check_stmt): Likewise.
21958         (instrument_derefs): If T has insufficient alignment,
21959         force same handling as for odd sizes.
21961         * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
21962         BUILT_IN_ASAN_REPORT_STORE_N): New.
21963         * asan.c (struct asan_mem_ref): Change access_size type to
21964         HOST_WIDE_INT.
21965         (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
21966         update_mem_ref_hash_table): Likewise.
21967         (asan_mem_ref_hasher::hash): Hash in a HWI.
21968         (report_error_func): Change size_in_bytes argument to HWI.
21969         Use *_N builtins if size_in_bytes is larger than 16 or not power of
21970         two.
21971         (build_shadow_mem_access): New function.
21972         (build_check_stmt): Use it.  Change size_in_bytes argument to HWI.
21973         Handle size_in_bytes not power of two or larger than 16.
21974         (instrument_derefs): Don't give up if size_in_bytes is not
21975         power of two or is larger than 16.
21977 2014-05-30  Kai Tietz  <ktietz@redhat.com>
21979         PR target/60104
21980         * config/i386/i386.c (x86_output_mi_thunk): Add memory case
21981         for sibling-tail-calls.
21982         * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
21983         to its use.
21984         * config/i386/predicates.md (sibcall_memory_operand): New predicate.
21985         (sibcall_insn_operand): Add check for sibcall_memory_operand.
21987 2014-05-30  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
21989         * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
21990         * config/avr/avr-tables.opt: Regenerate.
21991         * config/avr/t-multilib: Regenerate.
21992         * doc/avr-mmcu.texi: Regenerate.
21994 2014-05-30  Ian Lance Taylor  <iant@google.com>
21996         * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
21997         target("sse").
21999 2014-05-30  Tom de Vries  <tom@codesourcery.com>
22001         * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
22002         Redefine as true.
22004 2014-05-30  Tom de Vries  <tom@codesourcery.com>
22006         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
22007         * lra.c (initialize_lra_reg_info_element): Add init of
22008         actual_call_used_reg_set field.
22009         (lra): Call lra_create_live_ranges before lra_inheritance for
22010         -fuse-caller-save.
22011         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
22012         -fuse-caller-save.
22013         * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
22014         instead of call_used_reg_set for -fuse-caller-save.
22015         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
22017 2014-05-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22019         * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
22020         to mov_imm.
22021         * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
22023 2014-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
22025         * ira.c (ira_get_dup_out_num): Check for output operands at
22026         the start of the loop.  Handle cases where an included alternative
22027         follows an excluded one.
22029 2014-05-29  Mike Stump  <mikestump@comcast.net>
22031         PR debug/61352
22032         * collect2.c (maybe_run_lto_and_relink): Be sure to always run
22033         post ld passes when lto is used.
22035 2014-05-29  Vladimir Makarov  <vmakarov@redhat.com>
22037         PR rtl-optimization/61325
22038         * lra-constraints.c (process_address): Rename to process_address_1.
22039         (process_address): New function.
22041 2014-05-29  Alan Lawrence  <alan.lawrence@arm.com>
22043         * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
22044         TYPES_BINOPV): New static data.
22045         * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
22046         New builtin.
22047         * config/aarch64/aarch64-simd.md (aarch64_ext,
22048         aarch64_im_lane_boundsi): New patterns.
22049         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
22050         patterns for EXT.
22051         (aarch64_evpc_ext): New function.
22053         * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
22055         * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
22056         vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
22057         vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
22058         vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
22059         vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
22061 2014-05-29  Tom de Vries  <tom@codesourcery.com>
22063         * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
22065 2014-05-29  Richard Earnshaw <rearnsha@arm.com>
22066             Richard Sandiford  <rdsandiford@googlemail.com>
22068         * arm/iterators.md (shiftable_ops): New code iterator.
22069         (t2_binop0, arith_shift_insn): New code attributes.
22070         * arm/predicates.md (shift_nomul_operator): New predicate.
22071         * arm/arm.md (insn_enabled): Delete.
22072         (enabled): Remove insn_enabled test.
22073         (*arith_shiftsi): Delete.  Replace with ...
22074         (*<arith_shift_insn>_multsi): ... new pattern.
22075         (*<arith_shift_insn>_shiftsi): ... new pattern.
22076         * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
22078 2014-05-29  Radovan Obradovic  <robradovic@mips.com>
22079             Tom de Vries  <tom@codesourcery.com>
22081         * config/mips/mips.h (POST_CALL_TMP_REG): Define.
22082         * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
22083         clobber.
22084         (mips_split_call): Use POST_CALL_TMP_REG.
22085         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
22087 2014-05-29  Tom de Vries  <tom@codesourcery.com>
22089         * final.c (collect_fn_hard_reg_usage): Guard variable declaration
22090         with #ifdef STACK_REGS.
22092 2014-05-28  Jan Hubicka  <hubicka@ucw.cz>
22094         * varasm.c (get_variable_section): Walk aliases.
22095         (place_block_symbol): Walk aliases.
22097 2014-05-28  Tom de Vries  <tom@codesourcery.com>
22099         Revert:
22100         2014-05-28  Tom de Vries  <tom@codesourcery.com>
22102         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
22103         * lra.c (initialize_lra_reg_info_element): Add init of
22104         actual_call_used_reg_set field.
22105         (lra): Call lra_create_live_ranges before lra_inheritance for
22106         -fuse-caller-save.
22107         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
22108         -fuse-caller-save.
22109         * lra-constraints.c (need_for_call_save_p): Use
22110         actual_call_used_reg_set instead of call_used_reg_set for
22111         -fuse-caller-save.
22112         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
22114 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
22116         * doc/md.texi: Document that the % constraint character must
22117         be at the beginning of the string.
22118         * genoutput.c (validate_insn_alternatives): Check that '=',
22119         '+' and '%' only appear at the beginning of a constraint.
22120         * ira.c (commutative_constraint_p): Delete.
22121         (ira_get_dup_out_num): Expect the '%' commutativity marker to be
22122         at the start of the string.
22123         * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
22124         duplicate '='s.
22125         * config/arm/neon.md (bicdi3_neon): Likewise.
22126         * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
22127         (slt_si, sltu_si): Likewise.
22128         * config/vax/vax.md (sbcdi3): Likewise.
22129         * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
22130         * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
22131         (mul64): Move '%' to beginning of constraint.
22132         * config/arm/arm.md (*xordi3_insn): Likewise.
22133         * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
22134         (xorsi3): Likewise.
22136 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
22138         * doc/md.texi: Document the restrictions on the "enabled" attribute.
22140 2014-05-28  Jason Merrill  <jason@redhat.com>
22142         PR c++/47202
22143         * cgraph.h (symtab_node::get_comdat_group_id): New.
22144         * cgraphunit.c (analyze_functions): Call it.
22145         * symtab.c (dump_symtab_node): Likewise.
22146         * tree.c (decl_comdat_group_id): New.
22147         * tree.h: Declare it.
22148         * lto-streamer-out.c (write_symbol): Use it.
22149         * trans-mem.c (ipa_tm_create_version_alias): Likewise.
22151 2014-05-28  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
22153         PR bootstrap/PR61146
22154         * wide-int.cc: Do not include longlong.h when compiling with clang.
22156 2014-05-28  Richard Biener  <rguenther@suse.de>
22158         * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
22159         * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
22160         (vrp_visit_assignment_or_call): Print less vertical space.
22161         (vrp_visit_stmt): Likewise.
22162         (vrp_visit_phi_node): Likewise.  For a PHI argument with
22163         VR_VARYING range consider recording it as copy.
22165 2014-05-28  Richard Biener  <rguenther@suse.de>
22167         Revert
22168         2014-05-28  Richard Biener  <rguenther@suse.de>
22170         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
22172 2014-05-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
22174         * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
22175         sufficiently aligned and an offset is used at the same time.
22176         (expand_expr_real_1): Likewise.
22178 2014-05-28  Richard Biener  <rguenther@suse.de>
22180         PR middle-end/61045
22181         * fold-const.c (fold_comparison): When folding
22182         X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
22183         the sign of the remaining constant operand stays the same.
22185 2014-05-28  Kaushik Phatak  <kaushik.phatak@kpit.com>
22187         * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
22188         __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
22189         (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
22190         to the assembler.
22191         (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
22192         * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
22193         (m32bit-doubles) Likewise.
22194         * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
22195         * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
22196         option for RL78.
22198 2014-05-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22200         * configure.ac ($gcc_cv_ld_clearcap): New test.
22201         * configure: Regenerate.
22202         * config.in: Regenerate.
22203         * config/sol2.opt (mclear-hwcap): New option.
22204         * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
22205         * config/sol2-clearcap.map: Moved here from
22206         testsuite/gcc.target/i386/clearcap.map.
22207         * config/sol2-clearcapv2.map: Move here from
22208         gcc.target/i386/clearcapv2.map.
22209         * config/t-sol2 (install): Depend on install-clearcap-map.
22210         (install-clearcap-map): New target.
22211         * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
22212         -mclear-hwcap.
22214 2014-05-28  Richard Biener  <rguenther@suse.de>
22216         * hwint.h (*_HALF_WIDE_INT*): Move to ...
22217         * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
22218         ... here and remove the rest.
22219         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
22221 2014-05-28  Richard Biener  <rguenther@suse.de>
22223         PR tree-optimization/61335
22224         * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
22225         new range fails, drop to varying.
22227 2014-05-28  Olivier Hainque  <hainque@adacore.com>
22229         * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
22230         (CPP_SPEC): Add entry for -mcpu=8548.
22231         * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
22232         * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
22234 2014-05-28  Tom de Vries  <tom@codesourcery.com>
22236         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
22237         * lra.c (initialize_lra_reg_info_element): Add init of
22238         actual_call_used_reg_set field.
22239         (lra): Call lra_create_live_ranges before lra_inheritance for
22240         -fuse-caller-save.
22241         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
22242         -fuse-caller-save.
22243         * lra-constraints.c (need_for_call_save_p): Use
22244         actual_call_used_reg_set instead of call_used_reg_set for
22245         -fuse-caller-save.
22246         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
22248 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
22249             Tom de Vries  <tom@codesourcery.com>
22251         * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
22252         to gccoptlist.
22253         (@item -fuse-caller-save): New item.
22255 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
22256             Tom de Vries  <tom@codesourcery.com>
22258         * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
22259         OPT_fuse_caller_save.
22261 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
22262             Tom de Vries  <tom@codesourcery.com>
22264         * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
22265         * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
22266         get_call_reg_set_usage.
22267         * resource.c (mark_set_resources, mark_target_live_regs): Use
22268         get_call_reg_set_usage.
22269         * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
22270         field.
22271         (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
22272         * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
22273         Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
22274         * ira-build.c (ira_create_allocno): Init
22275         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
22276         (create_cap_allocno, propagate_allocno_info)
22277         (propagate_some_info_from_allocno)
22278         (copy_info_to_removed_store_destinations): Handle
22279         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
22280         * ira-costs.c (ira_tune_allocno_costs): Use
22281         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
22283 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
22284             Tom de Vries  <tom@codesourcery.com>
22286         * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
22287         and function_used_regs_valid fields.
22288         * final.c: Move include of hard-reg-set.h to before rtl.h to declare
22289         find_all_hard_reg_sets.
22290         (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
22291         (get_call_reg_set_usage): New function.
22292         (rest_of_handle_final): Use collect_fn_hard_reg_usage.
22293         * regs.h (get_call_reg_set_usage): Declare.
22295 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
22297         PR libgcc/61152
22298         * config/dbx.h (License): Add Runtime Library Exception.
22299         * config/newlib-stdint.h (License): Same.
22300         * config/rtems.h (License): Same
22301         * config/initfini-array.h (License): Same
22302         * config/v850/v850.h (License): Same.
22303         * config/v850/v850-opts.h (License): Same
22304         * config/v850/rtems.h (License): Same.
22306 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
22308         PR target/61044
22309         * doc/extend.texi (Local Labels): Note that label differences are
22310         not supported for AVR.
22312 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
22313             Olivier Hainque  <hainque@adacore.com>
22315         * rtl.h (set_for_reg_notes): Declare.
22316         * emit-rtl.c (set_for_reg_notes): New function.
22317         (set_unique_reg_note): Use it.
22318         * optabs.c (add_equal_note): Likewise
22320 2014-05-27  Andrew Pinski  <apinski@cavium.com>
22322         * config/aarch64/aarch64.md (stack_protect_set_<mode>):
22323         Use <w> for the register in assembly template.
22324         (stack_protect_test): Use the mode of operands[0] for the result.
22325         (stack_protect_test_<mode>): Use <w> for the register
22326         in assembly template.
22328 2014-05-27  DJ Delorie  <dj@redhat.com>
22330         * config/rx/rx.c (add_vector_labels): New.
22331         (rx_output_function_prologue): Call it.
22332         (rx_handle_func_attribute): Don't require empty arguments.
22333         (rx_handle_vector_attribute): New.
22334         (rx_attribute_table): Add "vector" attribute.
22335         * doc/extend.texi (interrupt, vector): Document new/changed
22336         RX-specific attributes.
22338         * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
22340 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
22342         * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
22343         predicate to detect a negative quotient.
22345 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
22347         * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
22348         to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
22349         Add X - Y CMP 0 to X CMP Y transformation.
22350         (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
22352 2014-05-27  Segher Boessenkool  <segher@kernel.crashing.org>
22354         * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
22355         before printing.
22357 2014-05-27  Steve Ellcey  <sellcey@mips.com>
22359         * config/mips/mips.c: Add include of cgraph.h.
22361 2014-05-27  Richard Biener  <rguenther@suse.de>
22363         * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
22365 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
22367         PR libgcc/61152
22368         * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
22369         * config/arm/arm-cores.def (License): Same.
22370         * config/arm/arm-opts.h (License): Same.
22371         * config/arm/aout.h (License): Same.
22372         * config/arm/bpabi.h (License): Same.
22373         * config/arm/elf.h (License): Same.
22374         * config/arm/linux-elf.h (License): Same.
22375         * config/arm/linux-gas.h (License): Same.
22376         * config/arm/netbsd-elf.h (License): Same.
22377         * config/arm/uclinux-eabi.h (License): Same.
22378         * config/arm/uclinux-elf.h (License): Same.
22379         * config/arm/vxworks.h (License): Same.
22381 2014-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22383         * config/arm/neon.md (neon_bswap<mode>): New pattern.
22384         * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
22385         (arm_init_neon_builtins): Handle NEON_BSWAP.
22386         Define required type nodes.
22387         (arm_expand_neon_builtin): Handle NEON_BSWAP.
22388         (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
22389         * config/arm/arm_neon_builtins.def (bswap): Define builtins.
22390         * config/arm/iterators.md (VDQHSD): New mode iterator.
22392 2014-05-27  Richard Biener  <rguenther@suse.de>
22394         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
22395         Try using literal operands when comparing value-ranges failed.
22397 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
22399         * ira.c (commutative_operand): Adjust for change to recog_data.
22400         [Missing from previous commit.]
22402 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
22404         * system.h (TEST_BIT): New macro.
22405         * recog.h (alternative_mask): New type.
22406         (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
22407         (recog_data_d): Replace alternative_enabled_p array with
22408         enabled_alternatives.
22409         (target_recog): New structure.
22410         (default_target_recog, this_target_recog): Declare.
22411         (get_enabled_alternatives, recog_init): Likewise.
22412         * recog.c (default_target_recog, this_target_recog): New variables.
22413         (get_enabled_alternatives): New function.
22414         (extract_insn): Use it.
22415         (recog_init): New function.
22416         (preprocess_constraints, constrain_operands): Adjust for change to
22417         recog_data.
22418         * postreload.c (reload_cse_simplify_operands): Likewise.
22419         * reload.c (find_reloads): Likewise.
22420         * ira-costs.c (record_reg_classes): Likewise.
22421         * ira-lives.c (single_reg_class): Likewise.  Fix bug in which
22422         all alternatives after a disabled one would be skipped.
22423         (ira_implicitly_set_insn_hard_regs): Likewise.
22424         * ira.c (ira_setup_alts): Adjust for change to recog_data.
22425         * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
22426         with enabled_alternatives.
22427         * lra.c (free_insn_recog_data): Update accordingly.
22428         (lra_update_insn_recog_data): Likewise.
22429         (lra_set_insn_recog_data): Likewise.  Use get_enabled_alternatives.
22430         * lra-constraints.c (process_alt_operands): Likewise.  Handle
22431         only_alternative as part of the enabled mask.
22432         * target-globals.h (this_target_recog): Declare.
22433         (target_globals): Add a recog field.
22434         (restore_target_globals): Restore this_target_recog.
22435         * target-globals.c: Include recog.h.
22436         (default_target_globals): Initialize recog field.
22437         (save_target_globals): Likewise.
22438         * reginfo.c (reinit_regs): Call recog_init.
22439         * toplev.c (backend_init_target): Likewise.
22441 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
22443         * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
22444         rather than any named insn's code.
22446 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
22448         PR libgcc/61152
22449         * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
22450         * config/arm/arm-cores.def (License): Same.
22452 2014-05-26  Jan Hubicka  <hubicka@ucw.cz>
22454         * tree.h (decl_comdat_group): Declare.
22455         * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
22456         * tree.c (decl_comdat_group): Here.
22458 2014-05-26  Richard Sandiford  <r.sandiford@uk.ibm.com>
22460         PR rtl-optimization/61222
22461         * combine.c (simplify_shift_const_1): When moving a PLUS outside
22462         the shift, truncate the PLUS operand to the result mode.
22464 2014-05-26  Uros Bizjak  <ubizjak@gmail.com>
22466         PR target/61271
22467         * config/i386/i386.c (ix86_rtx_costs)
22468         <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
22469         Fix condition.
22471 2014-05-26  Martin Jambor  <mjambor@suse.cz>
22473         * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
22474         subreg uses.
22476 2014-05-26  Richard Biener  <rguenther@suse.de>
22478         * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
22479         wi::int_traits <long long>, wi::int_traits <unsigned long long>):
22480         Provide specializations.
22481         (wi::int_traits <HOST_WIDE_INT>,
22482         wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
22484 2014-05-26  Alan Modra  <amodra@gmail.com>
22486         PR target/61098
22487         * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
22488         params and return a bool.  Remove dead code.  Update comment.
22489         Assert we have a const_int source.  Remove bogus code from
22490         32-bit HWI days.  Move !TARGET_POWERPC64 handling, and correct
22491         handling of constants > 2G and reg_equal note, from..
22492         (rs6000_emit_set_long_const): ..here.  Remove unneeded param and
22493         return value.  Update comment.  If we can, use a new pseudo
22494         for intermediate calculations.
22495         * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
22496         prototype.
22497         * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
22498         call to rs6000_emit_set_const in splitter.
22499         (movdi_internal64+2, +3): Likewise.
22501 2014-05-26  Richard Biener  <rguenther@suse.de>
22503         * system.h: Define __STDC_FORMAT_MACROS before
22504         including inttypes.h.
22505         * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
22506         HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
22507         HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
22508         HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
22509         HOST_WIDEST_INT_C): Remove.
22510         (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
22511         if C99 inttypes.h is not available.
22512         * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
22513         * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
22514         * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
22515         * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
22516         * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
22517         (struct output_info): Likewise.
22518         (print_statistics): Adjust.
22519         (dump_bitmap_statistics): Likewise.
22520         * bt-load.c (migrate_btr_defs): Print with PRId64.
22521         * cfg.c (dump_edge_info, dump_bb_info): Likewise.
22522         (MAX_SAFE_MULTIPLIER): Adjust.
22523         * cfghooks.c (dump_bb_for_graph): Print with PRId64.
22524         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
22525         dump_cgraph_node): Likewise.
22526         * final.c (dump_basic_block_info): Likewise.
22527         * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
22528         * gcov.c (format_gcov): Likewise.
22529         * ipa-cp.c (good_cloning_opportunity_p): Likewise.  Use int64_t
22530         for calculation.
22531         (get_clone_agg_value): Use HOST_WIDE_INT for offset.
22532         * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
22533         (inline_small_functions, dump_overall_stats, dump_inline_stats):
22534         Use PRId64 for dumping.
22535         * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
22536         * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
22537         (add_allocno_hard_regs): Adjust.
22538         * loop-doloop.c (doloop_modify): Print using PRId64.
22539         * loop-iv.c (inverse): Compute in uint64_t.
22540         (determine_max_iter, iv_number_of_iterations): Likewise.
22541         * loop-unroll.c (decide_peel_completely, decide_peel_simple):
22542         Print using PRId64.
22543         * lto-streamer-out.c (write_symbol): Use uint64_t.
22544         * mcf.c (CAP_INFINITY): Use int64_t maximum.
22545         (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
22546         find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
22547         * modulo-sched.c (const_iteration_count): Use int64_t.
22548         (sms_schedule): Dump using PRId64.
22549         * predict.c (dump_prediction): Likewise.
22550         * pretty-print.h (pp_widest_integer): Remove.
22551         * profile.c (get_working_sets, is_edge_inconsistent,
22552         is_inconsistent, read_profile_edge_counts): Dump using PRId64.
22553         * tree-pretty-print.c (pp_double_int): Remove case handling
22554         HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
22555         * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
22556         and adjust users.
22557         (pass_optimize_bswap::execute): Remove restriction on hosts.
22558         * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
22559         * tree-streamer-out.c (streamer_write_tree_header): Likewise.
22560         * tree.c (widest_int_cst_value): Remove.
22561         * tree.h (widest_int_cst_value): Likewise.
22562         * value-prof.c (dump_histogram_value): Print using PRId64.
22563         * gengtype.c (main): Also inject int64_t.
22564         * ggc-page.c (struct max_alignment): Use int64_t.
22565         * alloc-pool.c (struct allocation_object_def): Likewise.
22566         * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
22567         for computation.
22568         * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
22569         * doc/tm.texi: Regenerated.
22570         * gengtype-lex.l (IWORD): Handle [u]int64_t.
22571         * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
22572         * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
22573         mmix_output_register_setting): Use [u]int64_t in prototypes.
22574         * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
22575         mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
22576         mmix_output_octa, mmix_output_shifted_value): Adjust.
22577         (mmix_intval): Adjust.  Remove unreachable case.
22578         * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
22580 2014-05-26  Richard Biener  <rguenther@suse.de>
22582         * configure.ac: Drop __int64 type check.  Insist that we
22583         found uint64_t and int64_t.
22584         * hwint.h (HOST_BITS_PER___INT64): Remove.
22585         (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
22586         (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
22587         (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
22588         (HOST_WIDEST_FAST_INT): Remove __int64 case.
22589         * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
22590         for dst_q_src_df_rms_cdt.
22591         * configure: Regenerate.
22592         * config.in: Likewise.
22594 2014-05-26  Michael Tautschnig  <mt@debian.org>
22596         PR target/61249
22597         * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
22598         __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
22600 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
22602         PR rtl-optimization/61278
22603         * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
22605 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
22607         PR rtl-optimization/61220
22608         Part of PR rtl-optimization/61225
22609         * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
22610         insn; skip split_edge for a block with only one successor.
22612 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
22614         * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
22615         for variables.
22617 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
22619         * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
22620         (update_vtable_references): New function.
22621         (function_and_variable_visibility): Rewrite also vtable initializers.
22622         * varpool.c (cgraph_variable_initializer_availability): Remove assert.
22624 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
22626         * ggc.h (ggc_grow): New function.
22627         * ggc-none.c (ggc_grow): New function.
22628         * ggc-page.c (ggc_grow): Likewise.
22630 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
22632         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
22633         address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
22634         comdat_can_be_unshared_p, cgraph_externally_visible_p,
22635         varpool_externally_visible_p, can_replace_by_local_alias,
22636         update_visibility_by_resolution_info, function_and_variable_visibility,
22637         pass_data_ipa_function_and_variable_visibility,
22638         make_pass_ipa_function_and_variable_visibility,
22639         whole_program_function_and_variable_visibility,
22640         pass_data_ipa_whole_program_visibility,
22641         make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
22642         * cgraph.h (cgraph_local_node_p): Declare.
22643         * ipa-visibility.c: New file.
22644         * Makefile.in (OBJS): Add ipa-visiblity.o
22646 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
22648         * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
22649         that var decl is available.
22651 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
22653         * tree-core.h (tree_decl_with_vis): Replace comdat_group by
22654         symtab_node pointer.
22655         * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
22656         (find_decls_types_r): Do not walk COMDAT_GROUP.
22657         * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
22658         * varasm.c (make_decl_one_only): Use set_comdat_group;
22659         create node if needed.
22660         * ipa-inline-transform.c (save_inline_function_body): Update
22661         way we decl->symtab mapping.
22662         * symtab.c (symtab_hash, hash_node, eq_node
22663         symtab_insert_node_to_hashtable): Remove.
22664         (symtab_register_node): Update.
22665         (symtab_unregister_node): Update.
22666         (symtab_get_node): Reimplement as inline function.
22667         (symtab_add_to_same_comdat_group): Update.
22668         (symtab_dissolve_same_comdat_group_list): Update.
22669         (dump_symtab_base): Update.
22670         (verify_symtab_base): Update.
22671         (symtab_make_decl_local): Update.
22672         (fixup_same_cpp_alias_visibility): Update.
22673         (symtab_nonoverwritable_alias): Update.
22674         * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
22675         * ipa.c (update_visibility_by_resolution_info): UPdate.
22676         * bb-reorder.c: Include cgraph.h
22677         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
22678         with comdat groups.
22679         * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
22680         * cgraph.c (cgraph_get_create_node): Update.
22681         * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
22682         and comdat_group_.
22683         (symtab_get_node): Make inline.
22684         (symtab_insert_node_to_hashtable): Remove.
22685         (symtab_can_be_discarded): Update.
22686         (decl_comdat_group): New function.
22687         * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
22688         Update.
22689         * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
22690         comdat group name.
22691         (read_comdat_group): New function.
22692         (input_node, input_varpool_node): Use it.
22693         * trans-mem.c (ipa_tm_create_version_alias): Update code creating
22694         comdat groups.
22695         * mips.c (mips_start_unique_function): Likewise.
22696         (ix86_code_end): Likewise.
22697         (rs6000_code_end): Likweise.
22698         * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
22700 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
22702         * gengtype-state.c (fatal_reading_state): Bring offline.
22703         * optabs.c (widening_optab_handler): Bring offline.
22704         * optabs.h (widening_optab_handler): Likewise.
22705         * final.c (get_attr_length_1): Likewise.
22707 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
22709         * sched-int.h (sd_iterator_cond): Manually tail recurse.
22711 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
22713         * config/rs6000/440.md (ppc440-integer): Include shift without dot.
22714         (ppc440-compare): Include shift with dot.
22715         * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
22716         * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
22717         without dot.
22718         * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
22719         without dot.
22720         (e6500_sfx2): Include it.
22721         * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
22722         *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
22723         *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
22724         andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
22725         *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
22726         *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
22727         *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
22728         *lshiftrt_internal1le, *lshiftrt_internal1be,
22729         *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
22730         *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
22731         *rotldi3_internal10le, *rotldi3_internal10be,
22732         *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
22733         ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
22734         ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
22735         *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
22736         define_insns): Use type "shift" in the appropriate alternatives.
22738 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
22740         * config/rs6000/rs6000.md (type): Add "logical".  Delete
22741         "fast_compare".
22742         (dot): Adjust comment.
22743         (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
22744         *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
22745         *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
22746         anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
22747         *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
22748         *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
22749         *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
22750         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
22752         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
22753         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
22754         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
22755         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
22756         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
22757         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
22758         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
22759         * config/rs6000/8540.md (ppc8540_su): Adjust.
22760         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
22761         cell-cmp-microcoded): Adjust.
22762         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
22763         * config/rs6000/e500mc.md (e500mc_su): Adjust.
22764         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
22765         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
22766         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
22767         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
22768         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
22769         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
22770         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
22771         Adjust.
22772         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
22773         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
22774         Adjust.  Adjust comment.
22775         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
22776         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
22778 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
22780         * config/rs6000/rs6000.md (type): Add "add".
22781         (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
22782         *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
22783         define_insns): Use it.
22784         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
22786         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
22787         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
22788         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
22789         * config/rs6000/601.md (ppc601-integer): Adjust.
22790         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
22791         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
22792         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
22793         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
22794         * config/rs6000/8540.md (ppc8540_su): Adjust.
22795         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
22796         cell-cmp-microcoded): Adjust.
22797         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
22798         * config/rs6000/e500mc.md (e500mc_su): Adjust.
22799         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
22800         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
22801         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
22802         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
22803         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
22804         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
22805         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
22806         Adjust.
22807         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
22808         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
22809         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
22810         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
22812 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
22814         * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
22815         "delayed_compare", "var_delayed_compare".
22816         (var_shift): New attribute.
22817         (cell_micro): Adjust.
22818         (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
22819         *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
22820         rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
22821         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
22822         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
22823         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
22824         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
22825         *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
22826         *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
22827         *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
22828         *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
22829         rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
22830         *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
22831         *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
22832         *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
22833         *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
22834         *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
22835         *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
22836         *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
22837         *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
22838         *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
22839         *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
22840         *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
22841         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
22842         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
22844         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
22845         * config/rs6000/440.md (ppc440-integer): Adjust.
22846         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
22847         * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
22848         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
22849         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
22850         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
22851         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
22852         * config/rs6000/8540.md (ppc8540_su): Adjust.
22853         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
22854         cell-cmp-microcoded): Adjust.
22855         * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
22856         * config/rs6000/e500mc.md (e500mc_su): Adjust.
22857         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
22858         e500mc64_delayed): Adjust.
22859         * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
22860         * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
22861         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
22862         * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
22863         * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
22864         * config/rs6000/power6.md (power6-shift, power6-var-rotate,
22865         power6-delayed-compare, power6-var-delayed-compare): Adjust.
22866         * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
22867         * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
22868         Adjust comment.
22869         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
22870         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
22872 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
22874         * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv".  Add "div".
22875         (bits): New mode_attr.
22876         (idiv_ldiv): Delete mode_attr.
22877         (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
22878         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
22879         rs6000_adjust_priority, is_nonpipeline_insn,
22880         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
22882         * config/rs6000/40x.md (ppc403-idiv): Adjust.
22883         * config/rs6000/440.md (ppc440-idiv): Adjust.
22884         * config/rs6000/476.md (ppc476-idiv): Adjust.
22885         * config/rs6000/601.md (ppc601-idiv): Adjust.
22886         * config/rs6000/603.md (ppc603-idiv): Adjust.
22887         * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
22888         ppc620-ldiv): Adjust.
22889         * config/rs6000/7450.md (ppc7450-idiv): Adjust.
22890         * config/rs6000/7xx.md (ppc750-idiv): Adjust.
22891         * config/rs6000/8540.md (ppc8540_divide): Adjust.
22892         * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
22893         * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
22894         * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
22895         * config/rs6000/e500mc.md (e500mc_divide): Adjust.
22896         * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
22897         * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
22898         * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
22899         * config/rs6000/mpc.md (mpccore-idiv): Adjust.
22900         * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
22901         * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
22902         * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
22903         * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
22904         * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
22905         * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
22906         * config/rs6000/titan.md (titan_fxu_div): Adjust.
22908 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
22910         * config/rs6000/rs6000.md (type): Delete "insert_word",
22911         "insert_dword".  Add "insert".
22912         (size): Update comment.
22913         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
22914         insn_must_be_first_in_group): Adjust.
22915         (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
22916         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
22917         *insvsi_internal6, insvdi_internal): Adjust.
22919         * config/rs6000/40x.md (ppc403-integer): Adjust.
22920         * config/rs6000/440.md (ppc440-integer): Adjust.
22921         * config/rs6000/476.md (ppc476-simple-integer): Adjust.
22922         * config/rs6000/601.md (ppc601-integer): Adjust.
22923         * config/rs6000/603.md (ppc603-integer): Adjust.
22924         * config/rs6000/6xx.md (ppc604-integer): Adjust.
22925         * config/rs6000/7450.md (ppc7450-integer): Adjust.
22926         * config/rs6000/7xx.md (ppc750-integer): Adjust.
22927         * config/rs6000/8540.md (ppc8540_su): Adjust.
22928         * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
22929         * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
22930         * config/rs6000/e500mc.md (e500mc_su): Adjust.
22931         * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
22932         * config/rs6000/e5500.md (e5500_sfx): Adjust.
22933         * config/rs6000/e6500.md (e6500_sfx): Adjust.
22934         * config/rs6000/mpc.md (mpccore-integer): Adjust.
22935         * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
22936         * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
22937         * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
22938         * config/rs6000/power7.md (power7-integer): Adjust.
22939         * config/rs6000/power8.md (power8-1cyc): Adjust.
22940         * config/rs6000/rs64.md (rs64a-integer): Adjust.
22941         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
22943 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
22945         * config/rs6000/rs6000.md (type): Add "mul".  Delete "imul",
22946         "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
22947         (size): New attribute.
22948         (dot): New attribute.
22949         (cell_micro): Adjust.
22950         (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
22951         umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
22952         *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
22953         umuldi3_highpart): Adjust.
22954         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
22955         rs6000_adjust_priority, is_nonpipeline_insn,
22956         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
22958         * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
22959         ppc405-imul3): Adjust.
22960         * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
22961         * config/rs6000/476.md (ppc476-imul): Adjust.
22962         * config/rs6000/601.md (ppc601-imul): Adjust.
22963         * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
22964         * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
22965         ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
22966         * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
22967         * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
22968         Adjust.
22969         * config/rs6000/8540.md (ppc8540_multiply): Adjust.
22970         * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
22971         * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
22972         cell-imul): Adjust.
22973         * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
22974         * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
22975         * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
22976         * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
22977         * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
22978         * config/rs6000/mpc.md (mpccore-imul): Adjust.
22979         * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
22980         power4-lmul, power4-imul, power4-imul3): Adjust.
22981         * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
22982         power5-lmul, power5-imul, power5-imul3): Adjust.
22983         * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
22984         power6-lmul, power6-imul, power6-imul3): Adjust.
22985         * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
22986         * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
22988         * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
22989         rs64a-lmul): Adjust.
22990         * config/rs6000/titan.md (titan_imul): Adjust.
22992 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
22994         * config/rs6000/rs6000.md (type): Add new value "halfmul".
22995         (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
22996         *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
22997         *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
22998         *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
22999         *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
23000         * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
23001         * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
23002         * config/rs6000/476.md (ppc476-imul): Add type halfmul.
23003         * config/rs6000/titan.md: Delete nonsensical comment.
23004         (titan_imul): Add type imul3.
23005         (titan_mulhw): Remove type imul3; add type halfmul.
23007 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
23009         * config/rs6000/rs6000.md (type): Reorder, reformat.
23011 2014-05-23  Martin Jambor  <mjambor@suse.cz>
23013         PR tree-optimization/53787
23014         * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
23015         * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
23016         analysis_done, update all uses.
23017         * ipa-prop.c: Include domwalk.h
23018         (param_analysis_info): Removed.
23019         (param_aa_status): New type.
23020         (ipa_bb_info): Likewise.
23021         (func_body_info): Likewise.
23022         (ipa_get_bb_info): New function.
23023         (aa_overwalked): Likewise.
23024         (find_dominating_aa_status): Likewise.
23025         (parm_bb_aa_status_for_bb): Likewise.
23026         (parm_preserved_before_stmt_p): Changed to use new param AA info.
23027         (load_from_unmodified_param): Accept func_body_info as a parameter
23028         instead of parms_ainfo.
23029         (parm_ref_data_preserved_p): Changed to use new param AA info.
23030         (parm_ref_data_pass_through_p): Likewise.
23031         (ipa_load_from_parm_agg_1): Likewise.  Update callers.
23032         (compute_complex_assign_jump_func): Changed to use new param AA info.
23033         (compute_complex_ancestor_jump_func): Likewise.
23034         (ipa_compute_jump_functions_for_edge): Likewise.
23035         (ipa_compute_jump_functions): Removed.
23036         (ipa_compute_jump_functions_for_bb): New function.
23037         (ipa_analyze_indirect_call_uses): Likewise, moved variable
23038         declarations down.
23039         (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
23040         and info, moved variable declarations down.
23041         (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
23042         node and info.
23043         (ipa_analyze_stmt_uses): Likewise.
23044         (ipa_analyze_params_uses): Removed.
23045         (ipa_analyze_params_uses_in_bb): New function.
23046         (ipa_analyze_controlled_uses): Likewise.
23047         (free_ipa_bb_info): Likewise.
23048         (analysis_dom_walker): New class.
23049         (ipa_analyze_node): Handle node-specific forbidden analysis,
23050         initialize and free func_body_info, use dominator walker.
23051         (ipcp_modif_dom_walker): New class.
23052         (ipcp_transform_function): Create and free func_body_info, use
23053         ipcp_modif_dom_walker, moved a lot of functionality there.
23055 2014-05-23  Marek Polacek  <polacek@redhat.com>
23056             Jakub Jelinek  <jakub@redhat.com>
23058         * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
23059         * gcc.c (sanitize_spec_function): Likewise.
23060         * convert.c (convert_to_integer): Include "ubsan.h".  Add
23061         floating-point to integer instrumentation.
23062         * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
23063         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
23064         SANITIZE_NONDEFAULT.
23065         * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
23066         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
23067         BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
23068         * ubsan.c: Include "realmpfr.h" and "dfp.h".
23069         (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
23070         (ubsan_type_descriptor): Set tkind to 0xffff for types other than
23071         float/double/long double.
23072         (ubsan_instrument_float_cast): New function.
23073         * ubsan.h (ubsan_instrument_float_cast): Declare.
23075 2014-05-23 Jiong Wang  <jiong.wang@arm.com>
23077         * config/aarch64/predicates.md (aarch64_call_insn_operand): New
23078         predicate.
23079         * config/aarch64/constraints.md ("Ucs", "Usf"):  New constraints.
23080         * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
23081         Adjust for tailcalling through registers.
23082         * config/aarch64/aarch64.h (enum reg_class): New caller save
23083         register class.
23084         (REG_CLASS_NAMES): Likewise.
23085         (REG_CLASS_CONTENTS): Likewise.
23086         * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
23087         Allow tailcalling without decls.
23089 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
23091         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
23092         Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
23094         * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
23095         gsi, and variables v_* to v*.
23097 2014-05-23  Eric Botcazou  <ebotcazou@adacore.com>
23099         * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
23101 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
23103         * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
23104         * omp-low.c: Update accordingly.
23106         * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
23107         for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
23108         GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
23109         GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
23110         GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
23111         GF_OMP_TARGET_KIND_UPDATE.
23113         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
23114         Explicitly enumerate the expected region types.
23116 2014-05-23  Paul Eggert  <eggert@cs.ucla.edu>
23118         PR other/56955
23119         * doc/extend.texi (Function Attributes): Fix  __attribute__ ((malloc))
23120         documentation; the old documentation didn't clearly state the
23121         constraints on the contents of the pointed-to storage.
23123 2014-05-23  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
23125         Fix bootstrap error on ia64
23126         * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
23127         Return default value.
23129 2014-05-23  Thomas Preud'homme  <thomas.preudhomme@arm.com>
23131         PR tree-optimization/54733
23132         * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
23133         (CMPNOP): Define.
23134         (find_bswap_or_nop_load): New.
23135         (find_bswap_1): Renamed to ...
23136         (find_bswap_or_nop_1): This. Also add support for memory source.
23137         (find_bswap): Renamed to ...
23138         (find_bswap_or_nop): This. Also add support for memory source and
23139         detection of bitwise operations equivalent to load in target
23140         endianness.
23141         (execute_optimize_bswap): Likewise. Also move its leading comment back
23142         in place and split statement transformation into ...
23143         (bswap_replace): This.
23145 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
23147         PR rtl-optimization/61215
23148         * lra-elelimination.c (lra_eliminate_regs_1): Don't use
23149         simplify_gen_subreg until final substitution.
23151 2014-05-23  Alan Modra  <amodra@gmail.com>
23153         PR target/61231
23154         * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
23155         * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
23156         Use "Y" constraint rather than "m".
23158 2014-05-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
23160         * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
23161         define.
23162         * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
23163         New function declaration.
23164         * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
23165         AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
23166         AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
23167         (aarch64_init_builtins) : Initialize builtins
23168         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
23169         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
23170         (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
23171         __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
23172         and __builtins_aarch64_set_fpsr.
23173         (aarch64_atomic_assign_expand_fenv): New function.
23174         * config/aarch64/aarch64.md (set_fpcr): New pattern.
23175         (get_fpcr) : Likewise.
23176         (set_fpsr) : Likewise.
23177         (get_fpsr) : Likewise.
23178         (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
23179          and UNSPECV_SET_FPSR.
23180         * doc/extend.texi (AARCH64 Built-in Functions) : Document
23181         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
23182         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
23184 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
23186         PR rtl-optimization/60969
23187         * ira-costs.c (record_reg_classes): Process NO_REGS for matching
23188         constraints.  Set up mem cost for NO_REGS case.
23190 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
23192         * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
23194 2012-05-22  Bernd Schmidt  <bernds@codesourcery.com>
23196         * config/darwin.c: Include "lto-section-names.h".
23197         (LTO_SEGMENT_NAME): Don't define.
23198         * config/i386/winnt.c: Include "lto-section-names.h".
23199         * lto-streamer.c: Include "lto-section-names.h".
23200         * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
23201         * lto-wrapper.c: Include "lto-section-names.h".
23202         (LTO_SECTION_NAME_PREFIX): Don't define.
23203         * lto-section-names.h: New file.
23204         * cgraphunit.c: Include "lto-section-names.h".
23206 2014-05-22  Peter Bergner  <bergner@vnet.ibm.com>
23208         * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
23210 2014-05-22  Richard Earnshaw  <rearnsha@arm.com>
23212         PR target/61208
23213         * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
23215 2014-05-22  Nick Clifton  <nickc@redhat.com>
23217         * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
23219 2014-05-22  Eric Botcazou  <ebotcazou@adacore.com>
23221         * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
23222         -> (T)A transformation to integer types.
23224 2014-05-22  Teresa Johnson  <tejohnson@google.com>
23226         * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
23227         (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
23228         (gcov_rewrite): Use gcov_nonruntime_assert.
23229         (gcov_open): Ditto.
23230         (gcov_write_words): Ditto.
23231         (gcov_write_length): Ditto.
23232         (gcov_read_words): Use gcov_nonruntime_assert, and remove
23233         gcc_assert from IN_LIBGCOV code.
23234         (gcov_read_summary): Use gcov_error to flag profile corruption.
23235         (gcov_sync): Use gcov_nonruntime_assert.
23236         (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
23237         (gcov_histo_index): Use gcov_nonruntime_assert.
23238         (static void gcov_histogram_merge): Ditto.
23239         (compute_working_sets): Ditto.
23240         * gcov-io.h (gcov_nonruntime_assert): Define.
23241         (gcov_error): Define for !IN_LIBGCOV
23243 2014-05-22  Richard Biener  <rguenther@suse.de>
23245         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
23246         BUILT_IN_REALLOC like BUILT_IN_STRDUP.
23247         (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
23248         and deallocation site.
23249         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
23250         Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
23251         passing through the incoming points-to set.
23252         (handle_lhs_call): Use flags argument instead of recomputing it.
23253         (find_func_aliases_for_call): Call handle_lhs_call with proper
23254         call return flags.
23256 2014-05-22  Jakub Jelinek  <jakub@redhat.com>
23258         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
23259         all padding bits in REAL_VALUE_TYPE are cleared.
23261 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
23263         Cleanup and improve multipass_dfa_lookahead_guard
23264         * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
23265         (core2i7_first_cycle_multipass_begin,)
23266         (core2i7_first_cycle_multipass_issue,)
23267         (core2i7_first_cycle_multipass_backtrack): Update signature.
23268         * config/ia64/ia64.c
23269         (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
23270         (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
23271         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
23272         hook definition.
23273         (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
23274         ia64_first_cycle_multipass_dfa_lookahead_guard_spec.  Update return
23275         values.
23276         * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
23277         return values.
23278         * doc/tm.texi: Regenerate.
23279         * doc/tm.texi.in
23280         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
23281         * haifa-sched.c (ready_try): Make signed to allow negative values.
23282         (rebug_ready_list_1): Update.
23283         (choose_ready): Simplify.
23284         (sched_extend_ready_list): Update.
23286 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
23288         Remove IA64 speculation tweaking flags
23289         * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
23290         speculation tuning flags.
23291         (msched-prefer-non-data-spec-insns,)
23292         (msched-prefer-non-control-spec-insns): Obsolete options.
23293         * haifa-sched.c (choose_ready): Remove handling of
23294         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
23295         * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
23296         and PREFER_NON_DATA_SPEC.
23297         * sel-sched.c (process_spec_exprs): Remove handling of
23298         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
23300 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
23302         Improve scheduling debug output
23303         * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
23304         (advance_one_cycle): Update.
23305         (schedule_insn, queue_to_ready): Add debug printouts.
23306         (debug_ready_list_1): New static function.
23307         (debug_ready_list): Update.
23308         (max_issue): Add debug printouts.
23309         (dump_insn_stream): New static function.
23310         (schedule_block): Use it.  Also better indent printouts.
23312 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
23314         Fix sched_insn debug counter
23315         * haifa-sched.c (schedule_insn): Update.
23316         (struct haifa_saved_data): Add nonscheduled_insns_begin.
23317         (save_backtrack_point, restore_backtrack_point): Update.
23318         (first_nonscheduled_insn): New static function.
23319         (queue_to_ready, choose_ready): Use it.
23320         (schedule_block): Init nonscheduled_insns_begin.
23321         (sched_emit_insn): Update.
23324 2014-05-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
23326         * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
23327         to GENERAL_REGS.
23328         (aarch64_secondary_reload) : LikeWise.
23329         (aarch64_class_max_nregs) : Remove CORE_REGS.
23330         * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
23331         (REG_CLASS_NAMES) : Likewise.
23332         (REG_CLASS_CONTENTS) : LikeWise.
23333         (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
23335 2014-05-21  Guozhi Wei  <carrot@google.com>
23337         PR target/61202
23338         * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
23339         constraint.
23340         (vqdmulhq_n_s16): Likewise.
23342 2014-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
23344         * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
23346 2014-05-21  Marek Polacek  <polacek@redhat.com>
23348         PR sanitizer/61272
23349         * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
23351 2014-05-21  Martin Jambor  <mjambor@suse.cz>
23353         * doc/invoke.texi (Optimize Options): Document parameters
23354         ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
23355         ipa-cp-array-index-hint-bonus.
23357 2014-05-21  Mark Wielaard  <mjw@redhat.com>
23359         PR debug/16063
23360         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
23361         version >= 3 or not strict DWARF.
23362         * langhooks.h (struct lang_hooks_for_types): Add
23363         enum_underlying_base_type.
23364         * langhooks.c (lhd_enum_underlying_base_type): New function.
23365         * gcc/langhooks.h (struct lang_hooks_for_types): Add
23366         enum_underlying_base_type.
23367         * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
23368         (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
23369         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
23371 2014-05-21  Richard Biener  <rguenther@suse.de>
23373         * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
23375 2014-05-21  John Marino  <gnugcc@marino.st>
23377         * config.gcc (*-*-dragonfly*): New target.
23378         * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
23379         * configure: Regenerate.
23380         * config/dragonfly-stdint.h: New.
23381         * config/dragonfly.h: New.
23382         * config/dragonfly.opt: New.
23383         * config/i386/dragonfly.h: New.
23384         * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
23386 2014-05-21  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
23388         * tree.def (VOID_CST): New.
23389         * tree-core.h (TI_VOID): New.
23390         * tree.h (void_node): New.
23391         * tree.c (tree_node_structure_for_code, tree_code_size)
23392         (iterative_hash_expr): Handle VOID_CST.
23393         (build_common_tree_nodes): Initialize void_node.
23395 2014-05-21  Bernd Schmidt  <bernds@codesourcery.com>
23397         * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
23398         functions.
23399         (reload, calculate_needs_all_insns, reload_as_needed): Use them.
23401         * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
23402         more places.
23404         * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
23405         flag_reorder_blocks_and_partition.
23406         * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
23408 2014-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
23410         PR target/54236
23411         * config/sh/sh.md (*addc_r_1): Rename to addc_t_r.  Remove empty
23412         constraints.
23413         (*addc_r_t): Add new insn_and_split.
23415 2014-05-21  Jakub Jelinek  <jakub@redhat.com>
23417         PR middle-end/61252
23418         * omp-low.c (handle_simd_reference): New function.
23419         (lower_rec_input_clauses): Use it.  Defer adding reference
23420         initialization even for reduction without placeholder if in simd,
23421         handle it properly later on.
23423 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
23425         PR tree-optimization/60899
23426         * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
23427         assume all static symbols will have definition wile parsing and
23428         check the do have definition later in compilation; check that
23429         variable referring symbol will be output before concluding that
23430         reference is safe; be conservative for referring local statics;
23431         be more precise about when comdat is output in other partition.
23433 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
23435         PR bootstrap/60984
23436         * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
23437         parameter.
23438         * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
23439         (ipa_inline): Loop inline_to_all_callers until no more aliases
23440         are removed.
23442 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
23444         * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
23445         set writeonly flag only for vars actually written to.
23447 2014-05-20  Dehao Chen  <dehao@google.com>
23449         * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
23450         and callee count to get clone count.
23451         * tree-inline.c (expand_call_inline): Use callee count instead of bb
23452         count in copy_body.
23454 2014-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
23456         PR rtl-optimization/61243
23457         * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
23459 2014-05-20  Xinliang David Li  <davidxl@google.com>
23461         * cgraphunit.c (walk_polymorphic_call_targets): Add
23462         dbgcnt and fopt-info support.
23463         * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
23464         * ipa-devirt.c (ipa_devirt): Ditto.
23465         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
23466         * ipa.c (walk_polymorphic_call_targets): Ditto.
23467         * gimple-fold.c (fold_gimple_assign): Ditto.
23468         (gimple_fold_call): Ditto.
23469         * dbgcnt.def: New counter.
23471 2014-05-20  DJ Delorie  <dj@redhat.com>
23473         * config/msp430/msp430.md (split): Don't allow subregs when
23474         splitting SImode adds.
23475         (andneghi): Fix subtraction logic.
23476         * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
23478 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
23480         * tree.h (DECL_ONE_ONLY): Return true only for externally visible
23481         symbols.
23482         * except.c (switch_to_exception_section, resolve_unique_section,
23483         get_named_text_section, default_function_rodata_section,
23484         align_variable, get_block_for_decl, default_section_type_flags):
23485         Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
23486         * symtab.c (symtab_add_to_same_comdat_group,
23487         symtab_make_decl_local, fixup_same_cpp_alias_visibility,
23488         symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
23489         Likewise.
23490         * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
23491         * bb-reorder.c (pass_partition_blocks::gate): Likewise.
23492         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
23493         (c6x_function_in_section_p): Likewise.
23494         * config/darwin.c (machopic_select_section): Likewise.
23495         * config/arm/arm.c (arm_function_in_section_p): Likewise.
23496         * config/mips/mips.c (mips_function_rodata_section): Likewise.
23497         * config/mep/mep.c (mep_select_section): LIkewise.
23498         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
23500 2014-05-20  Eric Botcazou  <ebotcazou@adacore.com>
23502         * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
23503         EH region of calls to pure functions that can throw an exception.
23504         * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
23505         (copy_reference_ops_from_call): Also copy the EH region of the call if
23506         it can throw an exception.
23508 2014-05-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
23510         * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
23511         nested VEC_SELECTs that are inverses of each other.
23513 2014-05-20  Richard Biener  <rguenther@suse.de>
23515         * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
23516         (extract_and_process_scc_for_name): not here.
23517         (cond_dom_walker::before_dom_children): Only process
23518         stmts that end the BB in interesting ways.
23519         (run_scc_vn): Mark param uses as visited.
23521 2014-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23523         * config/arm/arm.md (arith_shiftsi): Do not predicate for
23524         arm_restrict_it.
23526 2014-05-20  Nick Clifton  <nickc@redhat.com>
23528         * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
23529         (msp430_gimplify_va_arg_expr): New function.
23530         (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
23532         * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
23533         operand 0 in order to prevent confusion about the number of
23534         registers involved.
23536 2014-05-20  Richard Biener  <rguenther@suse.de>
23538         PR tree-optimization/61221
23539         * tree-ssa-pre.c (el_to_update): Remove.
23540         (eliminate_dom_walker::before_dom_children): Handle released
23541         VDEFs by value-numbering them to the associated VUSE.  Update
23542         stmt immediately for substituted call address.
23543         (eliminate): Remove delayed stmt updating code.
23544         * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
23545         possibly late re-numbered vuses.
23546         (vn_reference_lookup_2): Adjust.
23547         (vn_reference_lookup_pieces): Likewise.
23548         (vn_reference_lookup): Likewise.
23550 2014-05-20  Richard Biener  <rguenther@suse.de>
23552         * config.gcc: Remove need_64bit_hwint.
23553         * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
23554         * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
23555         it to be true.
23556         * config.in: Regenerate.
23557         * configure: Likewise.
23559 2014-05-19  David Wohlferd <dw@LimeGreenSocks.com>
23561         * doc/extend.texi: Create Label Attributes section,
23562         move all label attributes into it and reference it.
23564 2014-05-19  Richard Earnshaw  <rearnsha@arm.com>
23566         * arm.c (thumb1_reorg): When scanning backwards skip anything
23567         that's not a proper insn.
23569 2014-05-19  Richard Biener  <rguenther@suse.de>
23571         PR tree-optimization/61221
23572         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
23573         Do nothing for unreachable blocks.
23574         * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
23575         Improve unreachability detection.
23577 2014-05-19  Richard Biener  <rguenther@suse.de>
23579         PR tree-optimization/61209
23580         * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
23582 2014-05-19  Nick Clifton  <nickc@redhat.com>
23584         * except.c (init_eh): Fix computation of builtin setjmp buffer
23585         size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
23587 2014-05-19  Richard Biener  <rguenther@suse.de>
23589         PR tree-optimization/61184
23590         * tree-vrp.c (is_negative_overflow_infinity): Use
23591         TREE_OVERFLOW_P and do that check first.
23592         (is_positive_overflow_infinity): Likewise.
23593         (is_overflow_infinity): Likewise.
23594         (vrp_operand_equal_p): Properly treat operands with
23595         differing overflow as not equal.
23597 2014-05-19  Bernd Schmidt  <bernds@codesourcery.com>
23599         * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
23600         shift simplification where it was intended.
23602 2014-05-19  Christian Bruel  <christian.bruel@st.com>
23604         PR target/61195
23605         * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
23607 2014-05-19  Richard Sandiford  <r.sandiford@uk.ibm.com>
23609         PR target/61084
23610         * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
23611         than wide_int.
23613 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
23615         * reg-notes.def (CROSSING_JUMP): Likewise.
23616         * rtl.h (rtx_def): Update comment for jump flag.
23617         (CROSSING_JUMP_P): Define.
23618         * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
23619         of a REG_CROSSING_JUMP note.
23620         * cfghooks.c (tidy_fallthru_edges): Likewise.
23621         * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
23622         * emit-rtl.c (try_split): Likewise.
23623         * haifa-sched.c (sched_create_recovery_edges): Likewise.
23624         * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
23625         * jump.c (redirect_jump_2): Likewise.
23626         * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
23627         (relax_delay_slots): Likewise.
23628         * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
23629         (bbit_di): Likewise.
23630         * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
23631         * config/sh/sh.md (jump_compact): Likewise.
23632         * bb-reorder.c (rotate_loop): Likewise.
23633         (pass_duplicate_computed_gotos::execute): Likewise.
23634         (add_reg_crossing_jump_notes): Rename to...
23635         (update_crossing_jump_flags): ...this.
23636         (pass_partition_blocks::execute): Update accordingly.
23638 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
23640         * tree.h: Remove extraneous template <>.
23642 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
23644         * ipa.c (symtab_remove_unreachable_nodes): Remove
23645         symbol from comdat group if its body was eliminated.
23646         (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
23647         * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
23648         (symtab_unregister_node): ... this one.
23649         (verify_symtab_base): More strict checking of comdats.
23650         * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
23652 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
23654         * tree-pass.h (make_pass_ipa_comdats): New pass.
23655         * timevar.def (TV_IPA_COMDATS): New timevar.
23656         * passes.def (pass_ipa_comdats): Add.
23657         * Makefile.in (OBJS): Add ipa-comdats.o
23658         * ipa-comdats.c: New file.
23660 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
23662         * ipa.c (update_visibility_by_resolution_info): New function.
23663         (function_and_variable_visibility): Use it.
23665 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
23667         * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
23668         New functions.
23669         (FOR_EACH_DEFINED_SYMBOL): New macro.
23670         (varpool_first_static_initializer, varpool_next_static_initializer,
23671         varpool_first_defined_variable, varpool_next_defined_variable):
23672         Fix comments.
23673         (symtab_in_same_comdat_p): Correctly deal with inline functions.
23675 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
23677         * ggc-page.c (ggc_handle_finalizers): Add comment.
23679 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
23681         * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
23682         * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
23683         (ggc_internal_cleared_alloc): Likewise.
23684         * ggc-page.c (finalizer): New class.
23685         (vec_finalizer): Likewise.
23686         (globals::finalizers): New member.
23687         (globals::vec_finalizers): Likewise.
23688         (ggc_internal_alloc): Record the finalizer if any for the block being
23689         allocated.
23690         (ggc_handle_finalizers): New function.
23691         (ggc_collect): Call ggc_handle_finalizers.
23692         * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
23693         finalizer.
23694         (ggc_internal_cleared_alloc): Likewise.
23695         (finalize): New function.
23696         (need_finalization_p): Likewise.
23697         (ggc_alloc): Install the type's destructor as the finalizer if it
23698         might do something.
23699         (ggc_cleared_alloc): Likewise.
23700         (ggc_vec_alloc): Likewise.
23701         (ggc_cleared_vec_alloc): Likewise.
23703 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
23705         * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
23707 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
23709         * alias.c (record_alias_subset): Adjust.
23710         * bitmap.c (bitmap_element_allocate): Likewise.
23711         (bitmap_gc_alloc_stat): Likewise.
23712         * cfg.c (init_flow): Likewise.
23713         (alloc_block): Likewise.
23714         (unchecked_make_edge): Likewise.
23715         * cfgloop.c (alloc_loop): Likewise.
23716         (flow_loops_find): Likewise.
23717         (rescan_loop_exit): Likewise.
23718         * cfgrtl.c (init_rtl_bb_info): Likewise.
23719         * cgraph.c (insert_new_cgraph_node_version): Likewise.
23720         (cgraph_allocate_node): Likewise.
23721         (cgraph_create_edge_1): Likewise.
23722         (cgraph_allocate_init_indirect_info): Likewise.
23723         * cgraphclones.c (cgraph_clone_edge): Likewise.
23724         * cgraphunit.c (add_asm_node): Likewise.
23725         (init_lowered_empty_function): Likewise.
23726         * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
23727         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
23728         (alpha_use_linkage): Likewise.
23729         * config/arc/arc.c (arc_init_machine_status): Likewise.
23730         * config/arm/arm.c (arm_init_machine_status): Likewise.
23731         * config/avr/avr.c (avr_init_machine_status): Likewise.
23732         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
23733         * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
23734         * config/cris/cris.c (cris_init_machine_status): Likewise.
23735         * config/darwin.c (machopic_indirection_name): Likewise.
23736         (darwin_build_constant_cfstring): Likewise.
23737         (darwin_enter_string_into_cfstring_table): Likewise.
23738         * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
23739         * config/frv/frv.c (frv_init_machine_status): Likewise.
23740         * config/i386/i386.c (get_dllimport_decl): Likewise.
23741         (ix86_init_machine_status): Likewise.
23742         (assign_386_stack_local): Likewise.
23743         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
23744         (i386_pe_maybe_record_exported_symbol): Likewise.
23745         (i386_pe_record_stub): Likewise.
23746         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
23747         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
23748         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
23749         (m32c_note_pragma_address): Likewise.
23750         * config/mep/mep.c (mep_init_machine_status): Likewise.
23751         (mep_note_pragma_flag): Likewise.
23752         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
23753         (mips16_local_alias): Likewise.
23754         (mips_init_machine_status): Likewise.
23755         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
23756         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
23757         * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
23758         * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
23759         * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
23760         * config/pa/pa.c (pa_init_machine_status): Likewise.
23761         (pa_get_deferred_plabel): Likewise.
23762         * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
23763         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
23764         (rs6000_init_machine_status): Likewise.
23765         (output_toc): Likewise.
23766         * config/s390/s390.c (s390_init_machine_status): Likewise.
23767         * config/score/score.c (score_output_external): Likewise.
23768         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
23769         * config/spu/spu.c (spu_init_machine_status): Likewise.
23770         * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
23771         * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
23772         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
23773         * coverage.c (coverage_end_function): Likewise.
23774         * dbxout.c (dbxout_init): Likewise.
23775         * doc/gty.texi: Don't mention variable_size attribute.
23776         * dwarf2cfi.c (new_cfi): Adjust.
23777         (new_cfi_row): Likewise.
23778         (copy_cfi_row): Likewise.
23779         (create_cie_data): Likewise.
23780         * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
23781         (new_loc_descr): Likewise.
23782         (find_AT_string_in_table): Likewise.
23783         (add_addr_table_entry): Likewise.
23784         (new_die): Likewise.
23785         (add_var_loc_to_decl): Likewise.
23786         (clone_die): Likewise.
23787         (clone_as_declaration): Likewise.
23788         (break_out_comdat_types): Likewise.
23789         (new_loc_list): Likewise.
23790         (add_loc_descr_to_each): Likewise.
23791         (add_location_or_const_value_attribute): Likewise.
23792         (add_linkage_name): Likewise.
23793         (lookup_filename): Likewise.
23794         (dwarf2out_var_location): Likewise.
23795         (new_line_info_table): Likewise.
23796         (dwarf2out_init): Likewise.
23797         (mem_loc_descriptor): Likewise.
23798         (loc_descriptor): Likewise.
23799         (add_const_value_attribute): Likewise.
23800         (tree_add_const_value_attribute): Likewise.
23801         (comp_dir_string): Likewise.
23802         (dwarf2out_vms_debug_main_pointer): Likewise.
23803         (string_cst_pool_decl): Likewise.
23804         * emit-rtl.c (set_mem_attrs): Likewise.
23805         (get_reg_attrs): Likewise.
23806         (start_sequence): Likewise.
23807         (init_emit): Likewise.
23808         (init_emit_regs): Likewise.
23809         * except.c (init_eh_for_function): Likewise.
23810         (gen_eh_region): Likewise.
23811         (gen_eh_region_catch): Likewise.
23812         (gen_eh_landing_pad): Likewise.
23813         (add_call_site): Likewise.
23814         * function.c (add_frame_space): Likewise.
23815         (insert_temp_slot_address): Likewise.
23816         (assign_stack_temp_for_type): Likewise.
23817         (get_hard_reg_initial_val): Likewise.
23818         (allocate_struct_function): Likewise.
23819         (prepare_function_start): Likewise.
23820         (types_used_by_var_decl_insert): Likewise.
23821         * gengtype.c (variable_size_p): Remove function.
23822         (enum alloc_quantity): Remove enum.
23823         (write_typed_alloc_def): Remove function.
23824         (write_typed_struct_alloc_def): Likewise.
23825         (write_typed_typedef_alloc_def): Likewise.
23826         (write_typed_alloc_defns): Likewise.
23827         (main): Adjust.
23828         * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
23829         (ggc_cleared_alloc_ptr_array_two_args): Likewise.
23830         * ggc.h (ggc_alloc): new function.
23831         (ggc_cleared_alloc): Likewise.
23832         (ggc_vec_alloc): Template on type of vector element, and remove
23833         element size argument.
23834         (ggc_cleared_vec_alloc): Likewise.
23835         * gimple.c (gimple_build_omp_for): Adjust.
23836         (gimple_copy): Likewise.
23837         * ipa-cp.c (get_replacement_map): Likewise.
23838         (find_aggregate_values_for_callers_subset): Likewise.
23839         (known_aggs_to_agg_replacement_list): Likewise.
23840         * ipa-devirt.c (get_odr_type): Likewise.
23841         * ipa-prop.c (ipa_node_duplication_hook): Likewise.
23842         (read_agg_replacement_chain): Likewise.
23843         * loop-iv.c (get_simple_loop_desc): Likewise.
23844         * lto-cgraph.c (input_node_opt_summary): Likewise.
23845         * lto-section-in.c (lto_new_in_decl_state): Likewise.
23846         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
23847         (input_eh_region): Likewise.
23848         (input_eh_lp): Likewise.
23849         (input_cfg): Likewise.
23850         * optabs.c (set_optab_libfunc): Likewise.
23851         (init_tree_optimization_optabs): Likewise.
23852         (set_conv_libfunc): Likewise.
23853         * passes.c (do_per_function_toporder): Likewise.
23854         * rtl.h: Don't use variable_size gty attribute.
23855         * sese.c (if_region_set_false_region): Adjust.
23856         * stringpool.c (gt_pch_save_stringpool): Likewise.
23857         * target-globals.c (save_target_globals): Likewise.
23858         * toplev.c (general_init): Likewise.
23859         * trans-mem.c (record_tm_replacement): Likewise.
23860         (split_bb_make_tm_edge): Likewise.
23861         * tree-cfg.c (move_sese_region_to_fn): Likewise.
23862         * tree-data-ref.h (lambda_vector_new): Likewise.
23863         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
23864         * tree-iterator.c (tsi_link_before): Likewise.
23865         (tsi_link_after): Likewise.
23866         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
23867         * tree-ssa-loop-niter.c (record_estimate): Likewise.
23868         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
23869         * tree-ssa-operands.h: Don't use variable_size gty attribute.
23870         * tree-ssa.c (init_tree_ssa): Adjust.
23871         * tree-ssanames.c (set_range_info): Likewise.
23872         (get_ptr_info): Likewise.
23873         (duplicate_ssa_name_ptr_info): Likewise.
23874         (duplicate_ssa_name_range_info): Likewise.
23875         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
23876         (unpack_ts_fixed_cst_value_fields): Likewise.
23877         * tree.c (build_fixed): Likewise.
23878         (build_real): Likewise.
23879         (build_string): Likewise.
23880         (decl_priority_info): Likewise.
23881         (decl_debug_expr_insert): Likewise.
23882         (decl_value_expr_insert): Likewise.
23883         (decl_debug_args_insert): Likewise.
23884         (type_hash_add): Likewise.
23885         (build_omp_clause): Likewise.
23886         * ubsan.c (decl_for_type_insert): Likewise.
23887         * varasm.c (get_unnamed_section): Likewise.
23888         (get_noswitch_section): Likewise.
23889         (get_section): Likewise.
23890         (get_block_for_section): Likewise.
23891         (create_block_symbol): Likewise.
23892         (build_constant_desc): Likewise.
23893         (create_constant_pool): Likewise.
23894         (force_const_mem): Likewise.
23895         (record_tm_clone_pair): Likewise.
23896         * varpool.c (varpool_create_empty_node): Likewise.
23898 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
23900         * dwarf2out.c (tree_add_const_value_attribute): Call
23901         ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
23902         * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
23903         instead of ggc_internal_<x>alloc_stat.
23904         * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
23905         (ggc_realloc): Likewise.
23906         * ggc-none.c (ggc_internal_alloc): Likewise.
23907         (ggc_internal_cleared_alloc): Likewise.
23908         * ggc-page.c: Likewise.
23909         * ggc.h (ggc_internal_alloc_stat): Likewise.
23910         (ggc_internal_alloc): Remove macro.
23911         (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
23912         (ggc_internal_cleared_alloc): Remove macro.
23913         (GGC_RESIZEVEC): Adjust.
23914         (ggc_resizevar): Remove macro.
23915         (ggc_internal_vec_alloc_stat): Drop _stat suffix.
23916         (ggc_internal_cleared_vec_alloc_stat): Likewise.
23917         (ggc_internal_vec_cleared_alloc): Remove macro.
23918         (ggc_alloc_atomic_stat): Drop _stat suffix.
23919         (ggc_alloc_atomic): Remove macro.
23920         (ggc_alloc_cleared_atomic): Remove macro.
23921         (ggc_alloc_string_stat): Drop _stat suffix.
23922         (ggc_alloc_string): Remove macro.
23923         (ggc_alloc_rtx_def_stat): Adjust.
23924         (ggc_alloc_tree_node_stat): Likewise.
23925         (ggc_alloc_cleared_tree_node_stat): Likewise.
23926         (ggc_alloc_cleared_gimple_statement_stat): Likewise.
23927         (ggc_alloc_cleared_simd_clone_stat): Likewise.
23928         * gimple.c (gimple_build_omp_for): Likewise.
23929         (gimple_copy): Likewise.
23930         * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
23931         * toplev.c (realloc_for_line_map): Adjust.
23932         * tree-data-ref.h (lambda_vector_new): Likewise.
23933         * tree-phinodes.c (allocate_phi_node): Likewise.
23934         * tree.c (grow_tree_vec_stat): Likewise.
23935         * vec.h (va_gc::reserve): Adjust.
23937 2014-05-17  Ajit Agarwal  <ajitkum@xilinx.com>
23939         * config/microblaze/microblaze.c (break_handler): New Declaration.
23940         (microblaze_break_function_p,microblaze_is_break_handler): New.
23941         (compute_frame_size): Use microblaze_break_function_p.
23942         Add the test of break_handler.
23943         (microblaze_function_prologue) : Add the test of variable
23944         break_handler.  Check the fnname by BREAK_HANDLER_NAME.
23945         (microblaze_function_epilogue) : Add the test of break_handler.
23946         (microblaze_globalize_label) : Add the test of break_handler.
23947         Check the name by BREAK_HANDLER_NAME.
23949         * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
23951         * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
23952         microblaze_is_break_handler test.
23953         (call_internal1,call_value_intern): Use microblaze_break_function_p.
23954         Use SYMBOL_REF_DECL.
23956         * config/microblaze/microblaze-protos.h
23957         (microblaze_break_function_p,microblaze_is_break_handler):
23958         New Declaration.
23960         * doc/extend.texi (MicroBlaze break_handler Functions): Document
23961         new MicroBlaze break_handler functions.
23963 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
23965         * doc/extend.texi (Size of an asm): Move node text according
23966         to its @menu entry position.
23968 2014-05-17  Marc Glisse  <marc.glisse@inria.fr>
23970         PR tree-optimization/61140
23971         PR tree-optimization/61150
23972         PR tree-optimization/61197
23973         * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
23975 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
23977         * doc/invoke.texi (free): Mention Alpha.  Also enabled at -Os.
23979 2014-05-17  Richard Sandiford  <r.sandiford@uk.ibm.com>
23981         * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
23982         __SIZEOF_INT128__ is defined.
23984 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
23986         * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
23987         (rs6000_delegitimize_address): Use it.
23989 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
23991         * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
23992         inplace argument.  Store the new address in the original MEM when true.
23993         * emit-rtl.c (change_address_1): Likewise.
23994         (adjust_address_1, adjust_automodify_address_1, offset_address):
23995         Update accordingly.
23996         * rtl.h (plus_constant): Add an inplace argument.
23997         * explow.c (plus_constant): Likewise.  Try to reuse the original PLUS
23998         when true.  Avoid generating (plus X (const_int 0)).
23999         * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
24000         in-place.  Pass true to plus_constant.
24001         (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
24003 2014-05-16  Dehao Chen  <dehao@google.com>
24005         * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
24007 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
24009         PR target/54089
24010         * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
24011         patterns.
24012         * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
24014 2014-05-16  Dehao Chen  <dehao@google.com>
24016         * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
24017         optimize_function_for_size_p.
24018         * regs.h (REG_FREQ_FROM_BB): Likewise.
24020 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
24022         PR target/51244
24023         * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
24024         negt_reg_operand cases.
24025         * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
24026         predicate.
24027         * config/sh/predicates.md (cbranch_treg_value): Simplify.
24029 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
24031         * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
24032         target variants.
24034 2014-05-16  David Malcolm  <dmalcolm@redhat.com>
24036         Revert:
24037         2014-04-29  David Malcolm  <dmalcolm@redhat.com>
24039         * tree-cfg.c (dump_function_to_file): Dump the return type of
24040         functions, in a line to itself before the function body, mimicking
24041         the layout of a C function.
24043 2014-05-16  Dehao Chen  <dehao@google.com>
24045         * cfghooks.c (make_forwarder_block): Use direct computation to
24046         get fall-through edge's count and frequency.
24048 2014-05-16  Benno Schulenberg  <bensberg@justemail.net>
24050         * config/arc/arc.c (arc_init): Fix typo in error message.
24051         * config/i386/i386.c (ix86_expand_builtin): Likewise.
24052         (split_stack_prologue_scratch_regno): Likewise.
24053         * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
24054         word from error message.
24056 2014-05-16  Zhouyi Zhou <yizhouzhou@ict.ac.cn>
24058         * ira-costs.c: Fix typo in comment.
24060 2014-05-16  David Wohlferd <dw@LimeGreenSocks.com>
24062         * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
24064 2014-05-16  Jan Hubicka  <hubicka@ucw.cz>
24066         * varpool.c (dump_varpool_node): Dump write-only flag.
24067         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
24068         write-only flag.
24069         * tree-cfg.c (execute_fixup_cfg): Remove statements setting
24070         write-only variables.
24071         * ipa.c (process_references): New function.
24072         (set_readonly_bit): New function.
24073         (set_writeonly_bit): New function.
24074         (clear_addressable_bit): New function.
24075         (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
24076         fix handling of aliases.
24077         * cgraph.h (struct varpool_node): Add writeonly flag.
24079 2014-05-16  Vladimir Makarov  <vmakarov@redhat.com>
24081         PR rtl-optimization/60969
24082         * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
24083         Calculate costs for this case.
24085 2014-05-16  Eric Botcazou  <ebotcazou@adacore.com>
24087         * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
24088         <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
24090 2014-05-16  Richard Biener  <rguenther@suse.de>
24092         PR tree-optimization/61194
24093         * tree-vect-patterns.c (adjust_bool_pattern): Also handle
24094         bool patterns ending in a COND_EXPR.
24096 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
24098         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
24100 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
24102         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
24103         where we were unable to cost an RTX.
24105 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
24107         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
24108         HIGH, LO_SUM.
24110 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
24111             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
24113         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
24115 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
24116             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
24118         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
24119         FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
24121 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
24122             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
24124         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
24125         operators.
24127 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
24128             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
24130         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
24131         DIV/MOD.
24133 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
24134             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
24136         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
24137         (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
24139 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
24140             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
24142         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
24143         rotates and shifts.
24145 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
24146             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
24148         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
24149         ZERO_EXTEND and SIGN_EXTEND better.
24151 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
24152             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
24154         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
24155         logical operations.
24157 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
24158             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
24160         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
24161         costs when costing loads and stores to memory.
24163 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
24164             Philip Tomsich  <philipp.tomsich@theobroma-systems.com>
24166         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
24167         for SET RTX.
24169 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
24171         * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
24173 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
24174             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
24176         * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
24177         to...
24178         (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
24179         well formed.
24180         (aarch64_rtx_mult_cost): New.
24181         (aarch64_rtx_costs): Use it, refactor as appropriate.
24183 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
24184             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
24186         * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
24187         emit instructions, return number of instructions which would
24188         be emitted.
24189         (aarch64_add_constant): Update call to aarch64_build_constant.
24190         (aarch64_output_mi_thunk): Likewise.
24191         (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
24192         a CONST_DOUBLE.
24194 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
24196         * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
24197         (TARGET_RTX_COSTS): Call it.
24199 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
24201         * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
24202         (cortexa57_vector_cost): Likewise.
24203         (cortexa57_tunings): Use them.
24205 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
24207         * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
24208         (cpu_addrcost_table): Use it.
24209         * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
24210         (aarch64_address_cost): Rewrite using aarch64_classify_address,
24211         move it.
24213 2014-05-16  Richard Biener  <rguenther@suse.de>
24215         * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
24216         (set_ssa_val_to): Handle unexpected sets to VN_TOP.
24217         (visit_phi): Ignore edges marked as not executable.
24218         (class cond_dom_walker): New.
24219         (cond_dom_walker::before_dom_children): Value-number
24220         control statements and mark successor edges as not
24221         executable if possible.
24222         (run_scc_vn): First walk all control statements in
24223         dominator order, marking edges as not executable.
24224         * tree-inline.c (copy_edges_for_bb): Be not confused
24225         about random edge flags.
24227 2014-05-16  Richard Biener  <rguenther@suse.de>
24229         * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
24231 2014-05-15  Peter Bergner  <bergner@vnet.ibm.com>
24233         PR target/61193
24234         * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
24235         (__TM_simple_begin): Use it.
24236         (__TM_begin): Likewise.
24238 2014-05-15  Martin Jambor  <mjambor@suse.cz>
24240         PR ipa/61085
24241         * ipa-prop.c (update_indirect_edges_after_inlining): Check
24242         type_preserved flag when the indirect edge is polymorphic.
24244 2014-05-15  Martin Jambor  <mjambor@suse.cz>
24246         PR tree-optimization/61090
24247         * tree-sra.c (sra_modify_expr): Pass the current gsi to
24248         build_ref_for_model.
24250 2014-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24252         * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
24253         enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
24255 2014-05-15  Jakub Jelinek  <jakub@redhat.com>
24257         PR tree-optimization/61158
24258         * fold-const.c (fold_binary_loc): If X is zero-extended and
24259         shiftc >= prec, make sure zerobits is all ones instead of
24260         invoking undefined behavior.
24262 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
24264         * regcprop.h: New file.
24265         * regcprop.c (skip_debug_insn_p): New decl.
24266         (replace_oldest_value_reg): Check skip_debug_insn_p.
24267         (copyprop_hardreg_forward_bb_without_debug_insn): New function.
24268         * shrink-wrap.c: Include regcprop.h.
24269         (prepare_shrink_wrap): Call
24270         copyprop_hardreg_forward_bb_without_debug_insn.
24272 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
24274         * shrink-wrap.h: Update comment.
24275         * shrink-wrap.c: Update comment.
24276         (next_block_for_reg): Rename to live_edge_for_reg.
24277         (live_edge_for_reg): Allow live_edge->dest has two predecessors.
24278         (move_insn_for_shrink_wrap): Split live_edge.
24279         (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
24281 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
24283         * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
24284         Delete.
24285         * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
24286         * config/sparc/sparc.md (fptype_ut699): New attribute.
24287         (in_branch_delay): Return false if -mfix-ut699 is specified and
24288         fptype_ut699 is set to single.
24289         (truncdfsf2): Add fptype_ut699 attribute.
24290         (fix_truncdfsi2): Likewise.
24291         (floatsisf2): Change fptype attribute.
24292         (fix_truncsfsi2): Likewise.
24293         (negtf2_notv9): Delete.
24294         (negtf2_v9): Likewise.
24295         (negtf2_hq): New instruction.
24296         (negtf2): New instruction and splitter.
24297         (negdf2_notv9): Rewrite.
24298         (abstf2_notv9): Delete.
24299         (abstf2_hq_v9): Likewise.
24300         (abstf2_v9): Likewise.
24301         (abstf2_hq): New instruction.
24302         (abstf2): New instruction and splitter.
24303         (absdf2_notv9): Rewrite.
24305 2014-05-14  Cary Coutant  <ccoutant@google.com>
24307         PR debug/61013
24308         * opts.c (common_handle_option): Don't special-case "-g".
24309         (set_debug_level): Default to at least level 2 with "-g".
24311 2014-05-14  DJ Delorie  <dj@redhat.com>
24313         * config/msp430/msp430.c (msp430_builtin): Add
24314         MSP430_BUILTIN_DELAY_CYCLES.
24315         (msp430_init_builtins): Register void __delay_cycles(long long).
24316         (msp430_builtin_decl): Add it.
24317         (cg_magic_constant): New.
24318         (msp430_expand_delay_cycles): New.
24319         (msp430_expand_builtin): Call it.
24320         (msp430_print_operand_raw): Change integer printing from "int" to
24321         HOST_WIDE_INT.
24322         * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
24323         (delay_cycles_start): New.
24324         (delay_cycles_end): New.
24325         (delay_cycles_32): New.
24326         (delay_cycles_32x): New.
24327         (delay_cycles_16): New.
24328         (delay_cycles_16x): New.
24329         (delay_cycles_2): New.
24330         (delay_cycles_1): New.
24331         * doc/extend.texi: Document __delay_cycles().
24333 2014-05-14  Sandra Loosemore  <sandra@codesourcery.com>
24335         * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
24336         length attribute computation.
24338 2014-05-14  Richard Sandiford  <rdsandiford@googlemail.com>
24340         PR debug/61188
24341         * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
24343 2014-05-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
24345         PR target/61084
24346         * config/sparc/sparc.md: Fix types of low and high in DI constant
24347         splitter.  Use gen_int_mode in some other splitters.
24349 2014-05-14  Martin Jambor  <mjambor@suse.cz>
24351         PR ipa/60897
24352         * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
24354 2014-05-14  James Norris  <jnorris@codesourcery.com>
24356         * omp-low.c (expand_parallel_call): Remove shadow variable.
24357         (expand_omp_taskreg): Likewise.
24359 2014-05-14  Ilya Tocar  <ilya.tocar@intel.com>
24361         * common/config/i386/i386-common.c
24362         (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
24363         (OPTION_MASK_ISA_XSAVES_SET): Ditto.
24364         (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
24365         (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
24366         (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
24367         (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
24368         (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
24369         * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
24370         xsavecintrin.h, xsavesintrin.h.
24371         (x86_64-*-*): Ditto.
24372         * config/i386/clflushoptintrin.h: New.
24373         * config/i386/xsavecintrin.h: Ditto.
24374         * config/i386/xsavesintrin.h: Ditto.
24375         * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
24376         (bit_XSAVES): Ditto.
24377         (bit_XSAVES): Ditto.
24378         * config/i386/driver-i386.c (host_detect_local_cpu): Handle
24379         -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
24380         -mno-clflushopt.
24381         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
24382         OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
24383         OPTION_MASK_ISA_XSAVES.
24384         * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
24385         -mxsavec, -mxsaves.
24386         (PTA_CLFLUSHOPT) Define.
24387         (PTA_XSAVEC): Ditto.
24388         (PTA_XSAVES): Ditto.
24389         (ix86_option_override_internal): Handle new options.
24390         (ix86_valid_target_attribute_inner_p): Ditto.
24391         (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
24392         IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
24393         IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
24394         (bdesc_special_args): Add __builtin_ia32_xsaves,
24395         __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
24396         __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
24397         (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
24398         (ix86_expand_builtin): Handle new builtins.
24399         * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
24400         (TARGET_CLFLUSHOPT_P): Ditto.
24401         (TARGET_XSAVEC): Ditto.
24402         (TARGET_XSAVEC_P): Ditto.
24403         (TARGET_XSAVES): Ditto.
24404         (TARGET_XSAVES_P): Ditto.
24405         * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
24406         (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
24407         (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
24408         (ANY_XRSTOR): New.
24409         (ANY_XRSTOR64): Ditto.
24410         (xrstor): Ditto.
24411         (xrstor): Change into <xrstor>.
24412         (xrstor_rex64): Change into <xrstor>_rex64.
24413         (xrstor64): Change into <xrstor>64
24414         (clflushopt): New.
24415         * config/i386/i386.opt (mclflushopt): New.
24416         (mxsavec): Ditto.
24417         (mxsaves): Ditto.
24418         * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
24419         xsavecintrin.h.
24420         * doc/invoke.texi: Document new options.
24422 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
24424         PR rtl-optimization/60866
24425         * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
24426         Default it to -1.  Pass it down to init_simplejump_data.
24427         (init_simplejump_data): New parameter old_seqno.  Pass it down
24428         to get_seqno_for_a_jump.
24429         (get_seqno_for_a_jump): New parameter old_seqno.  Use it for
24430         initializing new jump seqno as a last resort.  Add comment.
24431         (sel_redirect_edge_and_branch): Save old seqno of the conditional
24432         jump and pass it down to sel_init_new_insn.
24433         (sel_redirect_edge_and_branch_force): Likewise.
24435 2014-05-14  Georg-Johann Lay  <avr@gjlay.de>
24437         * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
24438         shifted values to avoid build warning.
24440 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
24442         * cfgcleanup.c (try_forward_edges): Use location_t for locations.
24443         * cfgrtl.c (rtl_merge_blocks): Fix comment.
24444         (cfg_layout_merge_blocks): Likewise.
24445         * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
24447 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
24449         PR rtl-optimization/60901
24450         * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
24451         bb predecessor belongs to the same scheduling region.  Adjust comment.
24453 2014-05-13  Peter Bergner  <bergner@vnet.ibm.com>
24455         * doc/sourcebuild.texi: (dfp_hw): Document.
24456         (p8vector_hw): Likewise.
24457         (powerpc_eabi_ok): Likewise.
24458         (powerpc_elfv2): Likewise.
24459         (powerpc_htm_ok): Likewise.
24460         (ppc_recip_hw): Likewise.
24461         (vsx_hw): Likewise.
24463 2014-05-13  Cary Coutant  <ccoutant@google.com>
24465         * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
24467 2014-05-13  David Malcolm  <dmalcolm@redhat.com>
24469         * gengtype-parse.c (require3): Eliminate in favor of...
24470         (require4): New.
24471         (require_template_declaration): Update to support optional single *
24472         on a type.
24474         * gengtype.c (get_ultimate_base_class): Add a non-const overload.
24475         (create_user_defined_type): Handle a single level of explicit
24476         pointerness within template arguments.
24477         (struct write_types_data): Add field "kind".
24478         (filter_type_name): Handle "*" character.
24479         (write_user_func_for_structure_ptr): Require a write_types_data
24480         rather than just a prefix string, so that we can look up the kind
24481         of the wtd and use it as an index into wrote_user_func_for_ptr,
24482         ensuring that such functions are written at most once.  Support
24483         subclasses by invoking the marking function of the ultimate base class.
24484         (write_user_func_for_structure_body): Require a write_types_data
24485         rather than just a prefix string, so that we can pass this to
24486         write_user_func_for_structure_ptr.
24487         (write_func_for_structure): Likewise.
24488         (ggc_wtd): Add initializer of new "kind" field.
24489         (pch_wtd): Likewise.
24491         * gengtype.h (enum write_types_kinds): New.
24492         (struct type): Add field wrote_user_func_for_ptr to the "s"
24493         union member.
24495 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
24497         * fold-const.c (optimize_bit_field_compare): Use wi:: operations
24498         instead of const_binop.
24499         (fold_binary_loc): Likewise.
24501 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
24503         * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
24504         calculation to match get_ref_base_and_extent.
24506 2014-05-13  Catherine Moore  <clm@codesourcery.com>
24507             Sandra Loosemore  <sandra@codesourcery.com>
24509         * configure.ac: Fix assembly for explicit JALR relocation check.
24510         * configure: Regenerate.
24512 2014-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24514         * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
24515         (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
24516         Remove associated type declarations and initialisations.
24517         (arm_expand_neon_builtin): Likewise.
24518         (neon_emit_pair_result_insn): Delete.
24519         * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
24520         * config/arm/neon.md (neon_vtrn<mode>): Delete.
24521         (neon_vzip<mode>): Likewise.
24522         (neon_vuzp<mode>): Likewise.
24524 2014-05-13  Richard Biener  <rguenther@suse.de>
24526         PR ipa/60973
24527         * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
24528         it needs revisiting whether the call still may be tail-called.
24530 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
24532         * rtl.def (SYMBOL_REF): Remove middle "0" field.
24533         * rtl.h (block_symbol): Reduce number of fields to 2.
24534         (rtx_def): Add u2.symbol_ref_flags.
24535         (SYMBOL_REF_FLAGS): Use it.
24536         (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
24537         (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
24538         * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
24539         Lower index of SYMBOL_REF_DATA.
24540         * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
24541         Print SYMBOL_REF_FLAGS at the same time.
24542         * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
24544 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
24546         * rtl.def (VAR_LOCATION): Remove "i" field.
24547         * rtl.h (rtx_def): Add u2.var_location_status.
24548         (PAT_VAR_LOCATION_STATUS): Use it.
24549         (gen_rtx_VAR_LOCATION): Declare.
24550         * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
24551         * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
24552         * var-tracking.c (emit_note_insn_var_location): Remove casts.
24554 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
24556         * rtl.def (scratch): Fix outdated comment and remove "0" field.
24557         * gengtype.c (adjust_field_rtx_def): Update accordingly.
24559 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
24561         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
24562         (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
24563         * rtl.h (rtx_def): Add insn_uid to u2 field.
24564         (RTX_FLAG_CHECK8): Delete in favor of...
24565         (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
24566         (INSN_DELETED_P): Update accordingly.
24567         (INSN_UID): Use u2.insn_uid.
24568         (INSN_CHAIN_CODE_P): Define.
24569         (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
24570         (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
24571         (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
24572         (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
24573         (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
24574         indices accordingly.
24575         * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
24576         Update indices for insn-chain rtxes.
24577         * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
24578         (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
24579         * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
24580         * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
24581         * combine.c (try_combine): Likewise.
24582         * ira.c (setup_prohibited_mode_move_regs): Likewise.
24584 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
24586         * rtl.def (REG): Remove middle field.
24587         * rtl.h (rtx_def): Add orignal_regno to u2.
24588         (ORIGINAL_REGNO): Use it instead of field 1.
24589         (REG_ATTRS): Lower field index accordingly.
24590         * gengtype.c (adjust_field_rtx_def): Remove handling of
24591         ORIGINAL_REGNO.  Move REG_ATTRS index down.
24592         * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
24593         code that prints the REGNO.
24595 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
24597         * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
24598         GENERATOR_FILE.
24600 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
24602         * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
24604 2014-05-13  Bin Cheng  <bin.cheng@arm.com>
24606         * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
24607         (alloc_iv): Lower base expressions containing ADDR_EXPR.
24609 2014-05-13  Ian Bolton  <ian.bolton@arm.com>
24611         * config/aarch64/aarch64-protos.h
24612         (aarch64_hard_regno_caller_save_mode): New prototype.
24613         * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
24614         New function.
24615         * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
24617 2014-05-13  Christian Bruel  <christian.bruel@st.com>
24619         * target.def (mode_switching): New hook vector.
24620         (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
24621         (mode_exit, modepriority_to_mode): Likewise.
24622         * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
24623         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
24624         * target.h: Include tm.h and hard-reg-set.h.
24625         * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
24626         (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
24627         * doc/tm.texi Regenerate.
24628         * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
24629         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
24630         * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
24631         (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
24632         * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
24633         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
24634         * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
24635         (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
24636         * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
24637         (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
24638         (ix86_emit_mode_set): Hookify.
24639         * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
24640         Delete.
24641         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
24642         * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
24643         (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
24644         (epiphany_mode_priority_to_mode): Remove declaration.
24645         * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
24646         (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
24647         (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
24648         Likewise.
24649         (epiphany_mode_priority_to_mode): Change priority type.  Hookify.
24650         (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
24651         (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
24653 2014-05-13  Jakub Jelinek  <jakub@redhat.com>
24655         PR target/61060
24656         * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
24657         is const0_rtx, return immediately.  Don't test count == 0 when
24658         it is always true.
24660 2014-05-13  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
24662         * Makefile.in: add shrink-wrap.o.
24663         * config/i386/i386.c: include "shrink-wrap.h"
24664         * function.c: Likewise.
24665         (requires_stack_frame_p, next_block_for_reg,
24666         move_insn_for_shrink_wrap, prepare_shrink_wrap,
24667         dup_block_and_redirect): Move to shrink-wrap.c
24668         (thread_prologue_and_epilogue_insns): Extract three code segments
24669         as functions in shrink-wrap.c
24670         * function.h: Move #ifdef HAVE_simple_return ... #endif block to
24671         shrink-wrap.h
24672         * shrink-wrap.c: New file.
24673         * shrink-wrap.h: New file.
24675 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
24677         * doc/extend.texi: Reflect current numbers of pragmas.  Remove
24678         reference to Solaris.
24680 2014-05-12  Mike Stump  <mikestump@comcast.net>
24682         PR other/31778
24683         * genattrtab.c (filename): Add.
24684         (convert_set_attr_alternative): Improve error message.
24685         (check_defs): Restore read_md_filename for error messages.
24686         (gen_insn): Save filename.
24688 2014-05-12  Dimitris Papavasiliou  <dpapavas@gmail.com>
24690         * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
24691         -fno-local-ivars and -fivar-visibility.
24692         * c-family/c.opt: Make -Wshadow also implicitly enable
24693         -Wshadow-ivar.
24695 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
24697         * doc/tm.texi: Remove reference to deleted macro.
24698         * doc/tm.texi.in: Likewise.
24700 2014-05-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
24702         PR target/60991
24703         * config/avr/avr.c (avr_out_store_psi): Use correct constant
24704         to restore Y.
24706 2014-05-12  Georg-Johann Lay  <avr@gjlay.de>
24708         PR libgcc/61152
24709         * config/arm/arm.h (License): Add GCC Runtime Library Exception.
24710         * config/arm/aout.h (License): Same.
24711         * config/arm/bpabi.h (License): Same.
24712         * config/arm/elf.h (License): Same.
24713         * config/arm/linux-elf.h (License): Same.
24714         * config/arm/linux-gas.h (License): Same.
24715         * config/arm/netbsd-elf.h (License): Same.
24716         * config/arm/uclinux-eabi.h (License): Same.
24717         * config/arm/uclinux-elf.h (License): Same.
24718         * config/arm/vxworks.h (License): Same.
24720 2014-05-11  Jakub Jelinek  <jakub@redhat.com>
24722         * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
24723         * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
24724         number of operands to 3.
24725         (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
24726         * tree-nested.c (convert_nonlocal_omp_clauses,
24727         convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
24728         * gimplify.c (gimplify_scan_omp_clauses): Handle
24729         OMP_CLAUSE_LINEAR_STMT.
24730         * omp-low.c (lower_rec_input_clauses): Fix typo.
24731         (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
24732         cast between Fortran boolean_type_node and C _Bool if
24733         needed.
24735 2014-05-11  Richard Sandiford  <rdsandiford@googlemail.com>
24737         PR tree-optimization/61136
24738         * wide-int.h (multiple_of_p): Define a version that doesn't return
24739         the quotient.
24740         * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
24741         integer_zerop/const_binop pair.
24742         (multiple_of_p): Likewise, converting both operands to widest_int
24743         precision.
24745 2014-05-09  Teresa Johnson  <tejohnson@google.com>
24747         * cgraphunit.c (analyze_functions): Use correct dump file.
24749 2014-05-09  Florian Weimer  <fweimer@redhat.com>
24751         * cfgexpand.c (stack_protect_decl_p): New function, extracted from
24752         expand_used_vars.
24753         (stack_protect_return_slot_p): New function.
24754         (expand_used_vars): Call stack_protect_decl_p and
24755         stack_protect_return_slot_p for -fstack-protector-strong.
24757 2014-05-09  David Wohlferd <LimeGreenSocks@yahoo.com>
24758         Andrew Haley <aph@redhat.com>
24759         Richard Sandiford <rdsandiford@googlemail.com>
24761         * doc/extend.texi: Rewrite inline asm page / re-org asm-related
24762         pages.
24764 2014-05-09  Kenneth Zadeck  <zadeck@naturalbridge.com>
24766         PR middle-end/61111
24767         * fold-const.c (fold_binary_loc): Changed width of mask.
24769 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
24771         * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
24772         unsigned int initializers for regno_in, regno_out.
24774 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
24776         PR target/61055
24777         * config/avr/avr.md (cc): Add new attribute set_vzn.
24778         (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
24779         Set cc insn attribute to set_vzn instead of set_zn for alternatives
24780         with INC, DEC or NEG.
24781         * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
24782         (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
24783         INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
24785 2014-05-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24787         Revert:
24788         2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24790         * wide-int.cc (UTItype): Define.
24791         (UDWtype): Define for appropriate W_TYPE_SIZE.
24793 2014-05-09  Richard Biener  <rguenther@suse.de>
24795         * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
24796         * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
24797         (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
24798         (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
24799         ssa_propagate): Adjust.
24801 2014-05-08  Jeff Law  <law@redhat.com>
24803         PR tree-optimization/61009
24804         * tree-ssa-threadedge.c (thread_through_normal_block): Return a
24805         tri-state rather than a boolean.  When a block is too big to
24806         thread through, inform caller via negative return value.
24807         (thread_across_edge): If a block was too big for normal threading,
24808         then it's too big for a joiner too, so remove temporary equivalences
24809         and return immediately.
24811 2014-05-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
24812             Matthias Klose  <doko@ubuntu.com>
24814         PR driver/61106
24815         * optc-gen.awk: Fix option handling for -Wunused-parameter.
24817 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
24819         PR target/59952
24820         * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
24822 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
24824         PR target/61092
24825         * config/alpha/alpha.c: Include gimple-iterator.h.
24826         (alpha_gimple_fold_builtin): New function.  Move
24827         ALPHA_BUILTIN_UMULH folding from ...
24828         (alpha_fold_builtin): ... here.
24829         (TARGET_GIMPLE_FOLD_BUILTIN): New define.
24831 2014-05-08  Wei Mi  <wmi@google.com>
24833         PR target/58066
24834         * config/i386/i386.c (ix86_compute_frame_layout): Update
24835         preferred_stack_boundary for call, expanded from tls descriptor.
24836         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
24837         to depend on SP register.
24838         (*tls_local_dynamic_base_32_gnu): Ditto.
24839         (*tls_local_dynamic_32_once): Ditto.
24840         (tls_global_dynamic_64_<mode>): Set
24841         ix86_tls_descriptor_calls_expanded_in_cfun.
24842         (tls_local_dynamic_base_64_<mode>): Ditto.
24843         (tls_global_dynamic_32): Set
24844         ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
24845         to depend on SP register.
24846         (tls_local_dynamic_base_32): Ditto.
24848 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24850         * config/arm/arm_neon.h: Update comment.
24851         * config/arm/neon-docgen.ml: Delete.
24852         * config/arm/neon-gen.ml: Delete.
24853         * doc/arm-neon-intrinsics.texi: Update comment.
24855 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24857         * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
24858         and v4sf versions.
24859         (vand, vorr, veor, vorn, vbic): Remove.
24860         * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
24861         iterator.
24862         (neon_vsub_unspec): Likewise.
24863         (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
24865 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24867         * config/arm/arm_neon.h (vadd_s8): GNU C implementation
24868         (vadd_s16): Likewise.
24869         (vadd_s32): Likewise.
24870         (vadd_f32): Likewise.
24871         (vadd_u8): Likewise.
24872         (vadd_u16): Likewise.
24873         (vadd_u32): Likewise.
24874         (vadd_s64): Likewise.
24875         (vadd_u64): Likewise.
24876         (vaddq_s8): Likewise.
24877         (vaddq_s16): Likewise.
24878         (vaddq_s32): Likewise.
24879         (vaddq_s64): Likewise.
24880         (vaddq_f32): Likewise.
24881         (vaddq_u8): Likewise.
24882         (vaddq_u16): Likewise.
24883         (vaddq_u32): Likewise.
24884         (vaddq_u64): Likewise.
24885         (vmul_s8): Likewise.
24886         (vmul_s16): Likewise.
24887         (vmul_s32): Likewise.
24888         (vmul_f32): Likewise.
24889         (vmul_u8): Likewise.
24890         (vmul_u16): Likewise.
24891         (vmul_u32): Likewise.
24892         (vmul_p8): Likewise.
24893         (vmulq_s8): Likewise.
24894         (vmulq_s16): Likewise.
24895         (vmulq_s32): Likewise.
24896         (vmulq_f32): Likewise.
24897         (vmulq_u8): Likewise.
24898         (vmulq_u16): Likewise.
24899         (vmulq_u32): Likewise.
24900         (vsub_s8): Likewise.
24901         (vsub_s16): Likewise.
24902         (vsub_s32): Likewise.
24903         (vsub_f32): Likewise.
24904         (vsub_u8): Likewise.
24905         (vsub_u16): Likewise.
24906         (vsub_u32): Likewise.
24907         (vsub_s64): Likewise.
24908         (vsub_u64): Likewise.
24909         (vsubq_s8): Likewise.
24910         (vsubq_s16): Likewise.
24911         (vsubq_s32): Likewise.
24912         (vsubq_s64): Likewise.
24913         (vsubq_f32): Likewise.
24914         (vsubq_u8): Likewise.
24915         (vsubq_u16): Likewise.
24916         (vsubq_u32): Likewise.
24917         (vsubq_u64): Likewise.
24918         (vand_s8): Likewise.
24919         (vand_s16): Likewise.
24920         (vand_s32): Likewise.
24921         (vand_u8): Likewise.
24922         (vand_u16): Likewise.
24923         (vand_u32): Likewise.
24924         (vand_s64): Likewise.
24925         (vand_u64): Likewise.
24926         (vandq_s8): Likewise.
24927         (vandq_s16): Likewise.
24928         (vandq_s32): Likewise.
24929         (vandq_s64): Likewise.
24930         (vandq_u8): Likewise.
24931         (vandq_u16): Likewise.
24932         (vandq_u32): Likewise.
24933         (vandq_u64): Likewise.
24934         (vorr_s8): Likewise.
24935         (vorr_s16): Likewise.
24936         (vorr_s32): Likewise.
24937         (vorr_u8): Likewise.
24938         (vorr_u16): Likewise.
24939         (vorr_u32): Likewise.
24940         (vorr_s64): Likewise.
24941         (vorr_u64): Likewise.
24942         (vorrq_s8): Likewise.
24943         (vorrq_s16): Likewise.
24944         (vorrq_s32): Likewise.
24945         (vorrq_s64): Likewise.
24946         (vorrq_u8): Likewise.
24947         (vorrq_u16): Likewise.
24948         (vorrq_u32): Likewise.
24949         (vorrq_u64): Likewise.
24950         (veor_s8): Likewise.
24951         (veor_s16): Likewise.
24952         (veor_s32): Likewise.
24953         (veor_u8): Likewise.
24954         (veor_u16): Likewise.
24955         (veor_u32): Likewise.
24956         (veor_s64): Likewise.
24957         (veor_u64): Likewise.
24958         (veorq_s8): Likewise.
24959         (veorq_s16): Likewise.
24960         (veorq_s32): Likewise.
24961         (veorq_s64): Likewise.
24962         (veorq_u8): Likewise.
24963         (veorq_u16): Likewise.
24964         (veorq_u32): Likewise.
24965         (veorq_u64): Likewise.
24966         (vbic_s8): Likewise.
24967         (vbic_s16): Likewise.
24968         (vbic_s32): Likewise.
24969         (vbic_u8): Likewise.
24970         (vbic_u16): Likewise.
24971         (vbic_u32): Likewise.
24972         (vbic_s64): Likewise.
24973         (vbic_u64): Likewise.
24974         (vbicq_s8): Likewise.
24975         (vbicq_s16): Likewise.
24976         (vbicq_s32): Likewise.
24977         (vbicq_s64): Likewise.
24978         (vbicq_u8): Likewise.
24979         (vbicq_u16): Likewise.
24980         (vbicq_u32): Likewise.
24981         (vbicq_u64): Likewise.
24982         (vorn_s8): Likewise.
24983         (vorn_s16): Likewise.
24984         (vorn_s32): Likewise.
24985         (vorn_u8): Likewise.
24986         (vorn_u16): Likewise.
24987         (vorn_u32): Likewise.
24988         (vorn_s64): Likewise.
24989         (vorn_u64): Likewise.
24990         (vornq_s8): Likewise.
24991         (vornq_s16): Likewise.
24992         (vornq_s32): Likewise.
24993         (vornq_s64): Likewise.
24994         (vornq_u8): Likewise.
24995         (vornq_u16): Likewise.
24996         (vornq_u32): Likewise.
24997         (vornq_u64): Likewise.
24999 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25001         * wide-int.cc (UTItype): Define.
25002         (UDWtype): Define for appropriate W_TYPE_SIZE.
25004 2014-05-08  Marc Glisse  <marc.glisse@inria.fr>
25006         PR tree-optimization/59100
25007         * tree-ssa-phiopt.c: Include tree-inline.h.
25008         (neutral_element_p, absorbing_element_p): New functions.
25009         (value_replacement): Handle conditional binary operations with a
25010         neutral or absorbing element.
25012 2014-05-08  Richard Biener  <rguenther@suse.de>
25014         * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
25015         folding the expression.
25016         (valueize_expr): Remove.
25017         (visit_reference_op_load): Do not valueize the result of
25018         vn_get_expr_for.
25019         (simplify_binary_expression): Likewise.
25020         (simplify_unary_expression): Likewise.
25022 2014-05-08  Richard Biener  <rguenther@suse.de>
25024         * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
25025         looking at TYPE_ARG_TYPES.
25027 2014-05-08  Richard Biener  <rguenther@suse.de>
25029         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
25030         pointer propagation special-case.
25032 2014-05-08  Bin Cheng  <bin.cheng@arm.com>
25034         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
25035         core part of address expressions.
25037 2014-05-08  Alan Modra  <amodra@gmail.com>
25039         PR target/60737
25040         * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
25041         loads and stores when -mno-strict-align at any alignment.
25042         (expand_block_clear): Similarly.  Also correct calculation of
25043         instruction count.
25045 2014-05-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
25047         PR middle-end/39246
25048         * tree-complex.c (expand_complex_move): Keep line info when expanding
25049         complex move.
25050         * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
25051         of complex expression. Use new argument to display correct location
25052         for values coming from phi statement.
25053         (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
25054         (warn_uninitialized_phi): Pass location of phi argument to
25055         warn_uninit.
25056         * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
25057         COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
25059 2014-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
25061         * config/rs6000/predicates.md (indexed_address_mem): New.
25062         * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
25063         load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
25064         fpstore_ux, fpstore_u.
25065         (sign_extend, indexed, update): New.
25066         (cell_micro): Adjust.
25067         (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
25068         *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
25069         *movsi_internal1, *movsi_internal1_single, *movhi_internal,
25070         *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
25071         *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
25072         *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
25073         *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
25074         *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
25075         *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
25076         *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
25077         *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
25078         *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
25079         *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
25080         *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
25081         *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
25083         * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
25084         * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
25085         *vsx_extract_<mode>_store): Adjust.
25086         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
25087         is_cracked_insn, insn_must_be_first_in_group,
25088         insn_must_be_last_in_group): Adjust.
25090         * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
25091         Adjust.
25092         * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
25093         ppc440-fpstore): Adjust.
25094         * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
25095         ppc476-fpstore): Adjust.
25096         * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
25097         ppc601-fpstore): Adjust.
25098         * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
25099         Adjust.
25100         * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
25101         Adjust.
25102         * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
25103         ppc7450-fpstore): Adjust.
25104         * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
25105         * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
25106         * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
25107         Adjust.
25108         * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
25109         cell-fpload, cell-fpload-update, cell-store, cell-store-update,
25110         cell-fpstore, cell-fpstore-update): Adjust.
25111         * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
25112         ppce300c3_store, ppce300c3_fpstore): Adjust.
25113         * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
25114         e500mc_fpstore): Adjust.
25115         * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
25116         e500mc64_store, e500mc64_fpstore): Adjust.
25117         * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
25118         e5500_fpstore): Adjust.
25119         * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
25120         e6500_fpstore): Adjust.
25121         * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
25122         Adjust.
25123         * config/rs6000/power4.md (power4-load, power4-load-ext,
25124         power4-load-ext-update, power4-load-ext-update-indexed,
25125         power4-load-update-indexed, power4-load-update, power4-fpload,
25126         power4-fpload-update, power4-store, power4-store-update,
25127         power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
25128         Adjust.
25129         * config/rs6000/power5.md (power5-load, power5-load-ext,
25130         power5-load-ext-update, power5-load-ext-update-indexed,
25131         power5-load-update-indexed, power5-load-update, power5-fpload,
25132         power5-fpload-update, power5-store, power5-store-update,
25133         power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
25134         Adjust.
25135         * config/rs6000/power6.md (power6-load, power6-load-ext,
25136         power6-load-update, power6-load-update-indexed,
25137         power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
25138         power6-fpload-update, power6-store, power6-store-update,
25139         power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
25140         Adjust.
25141         * config/rs6000/power7.md (power7-load, power7-load-ext,
25142         power7-load-update, power7-load-update-indexed,
25143         power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
25144         power7-fpload-update, power7-store, power7-store-update,
25145         power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
25146         Adjust.
25147         * config/rs6000/power8.md (power8-load, power8-load-update,
25148         power8-load-ext, power8-load-ext-update, power8-fpload,
25149         power8-fpload-update, power8-store, power8-store-update-indexed,
25150         power8-fpstore, power8-fpstore-update): Adjust.
25151         * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
25152         Adjust.
25153         * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
25154         titan_lsu_store, titan_lsu_fpstore): Adjust.
25155         * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
25157 2014-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
25159         PR target/60884
25160         * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
25161         unrolled byte insns.  Emit address increments after move insns.
25163 2014-05-07  David Malcolm  <dmalcolm@redhat.com>
25165         * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
25166         const_gimple, rather than a gimple.
25167         (gimple_call_builtin_p): Likewise, for the three variants.
25169         * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
25170         (gimple_call_builtin_p): Likewise, for the three variants.
25172 2014-05-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
25174         PR tree-optimization/61095
25175         * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
25177 2014-05-07  Richard Biener  <rguenther@suse.de>
25179         PR tree-optimization/61034
25180         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
25181         (maybe_skip_until): Use translate to take into account
25182         lattices when trying to do disambiguations.
25183         (get_continuation_for_phi_1): Likewise.
25184         (get_continuation_for_phi): Adjust for added translate arguments.
25185         (walk_non_aliased_vuses): Likewise.
25186         * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
25187         (walk_non_aliased_vuses): Likewise.
25188         (call_may_clobber_ref_p_1): Declare.
25189         * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
25190         calls.  Stop early if we are only supposed to disambiguate.
25191         * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
25193 2014-05-07  Joern Rennecke  <joern.rennecke@embecosm.com>
25195         * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
25196         Emit an error when the function has arguments.
25198 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
25200         * cfgloop.h (unswitch_loops): Remove.
25201         * doc/passes.texi: Remove references to loop-unswitch.c
25202         * timevar.def (TV_LOOP_UNSWITCH): Remove.
25204 2014-05-07  Evgeny Stupachenko  <evstupac@gmail.com>
25206         * tree-vect-data-refs.c (vect_grouped_load_supported): New
25207         check for loads group of length 3.
25208         (vect_permute_load_chain): New permutations for loads group of
25209         length 3.
25210         * tree-vect-stmts.c (vect_model_load_cost): Change cost
25211         of vec_perm_shuffle for the new permutations.
25213 2014-05-07  Alan Lawrence  <alan.lawrence@arm.com>
25215         * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
25216         vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
25217         vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
25218         vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
25219         vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
25220         vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
25221         vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
25222         vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
25224 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
25226         * loop-unswitch.c: Delete.
25228 2014-05-07  Richard Biener  <rguenther@suse.de>
25230         * config.gcc: Always set need_64bit_hwint to yes.
25232 2014-05-07  Chung-Ju Wu  <jasonwucj@gmail.com>
25234         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
25235         of using optimize_size.
25237 2014-05-06  Mike Stump  <mikestump@comcast.net>
25239         * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
25241 2014-05-06  Joseph Myers  <joseph@codesourcery.com>
25243         * config/i386/sse.md (*mov<mode>_internal)
25244         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
25245         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
25246         (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
25247         (*<code><mode>3, *andnot<mode>3<mask_name>)
25248         (<mask_codefor><code><mode>3<mask_name>): Only consider
25249         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
25251 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
25253         Revert:
25254         2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
25256         * lra-constraints.c (valid_address_p): Move earlier in file.
25257         Add a constraint argument to the address_info version.
25258         (satisfies_memory_constraint_p): New function.
25259         (satisfies_address_constraint_p): Likewise.
25260         (process_alt_operands, curr_insn_transform): Use them.
25261         (process_address): Pass the constraint to valid_address_p when
25262         checking address operands.
25264 2014-05-06  Richard Sandiford  <r.sandiford@uk.ibm.com>
25266         * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
25267         to their respective blocks.  Fix inadvertent use of "node".
25269 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
25271         * emit-rtl.c (init_derived_machine_modes): New functionm, split
25272         out from...
25273         (init_emit_once): ...here.
25274         * rtl.h (init_derived_machine_modes): Declare.
25275         * toplev.c (do_compile): Call it even if no_backend.
25277 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
25278             Mike Stump  <mikestump@comcast.net>
25279             Richard Sandiford  <rdsandiford@googlemail.com>
25280             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25282         * alias.c (ao_ref_from_mem): Use wide-int interfaces.
25283         (rtx_equal_for_memref_p): Update comment.
25284         (adjust_offset_for_component_ref): Use wide-int interfaces.
25285         * builtins.c (get_object_alignment_2): Likewise.
25286         (c_readstr): Likewise.
25287         (target_char_cast): Add comment.
25288         (determine_block_size): Use wide-int interfaces.
25289         (expand_builtin_signbit): Likewise.
25290         (fold_builtin_int_roundingfn): Likewise.
25291         (fold_builtin_bitop): Likewise.
25292         (fold_builtin_bswap): Likewise.
25293         (fold_builtin_logarithm): Use signop.
25294         (fold_builtin_pow): Likewise.
25295         (fold_builtin_memory_op): Use wide-int interfaces.
25296         (fold_builtin_object_size): Likewise.
25297         * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
25298         nb_iterations_estimate.
25299         (record_niter_bound): Use wide-int interfaces.
25300         (get_estimated_loop_iterations_int): Likewise.
25301         (get_estimated_loop_iterations): Likewise.
25302         (get_max_loop_iterations): Likewise.
25303         * cfgloop.h: Include wide-int.h.
25304         (struct nb_iter_bound): Change bound to widest_int.
25305         (struct loop): Change nb_iterations_upper_bound and
25306         nb_iterations_estimate to widest_int.
25307         (record_niter_bound): Switch to use widest_int.
25308         (get_estimated_loop_iterations): Likewise.
25309         (get_max_loop_iterations): Likewise.
25310         (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
25311         update for wide-int.
25312         * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
25313         * combine.c (try_combine): Likewise.
25314         (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
25315         * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
25316         interfaces.
25317         (aarch64_float_const_representable_p): Likewise.
25318         * config/arc/arc.c: Include wide-int.h.
25319         (arc_can_use_doloop_p): Use wide-int interfaces.
25320         * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
25321         (vfp3_const_double_index): Likewise.
25322         * config/avr/avr.c (avr_out_round): Likewise.
25323         (avr_fold_builtin): Likewise.
25324         * config/bfin/bfin.c (bfin_local_alignment): Likewise.
25325         (bfin_can_use_doloop_p): Likewise.
25326         * config/darwin.c (darwin_mergeable_constant_section): Likewise.
25327         (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
25328         * config/i386/i386.c: Include wide-int.h.
25329         (ix86_data_alignment): Use wide-int interfaces.
25330         (ix86_local_alignment): Likewise.
25331         (ix86_emit_swsqrtsf): Update real_from_integer.
25332         * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
25333         * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
25334         * config/rs6000/predicates.md (any_operand): Add const_wide_int.
25335         (zero_constant): Likewise.
25336         (input_operand): Likewise.
25337         (splat_input_operand): Likewise.
25338         (non_logical_cint_operand): Change const_double to const_wide_int.
25339         * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
25340         (easy_altivec_constant): Remove comment.
25341         (paired_expand_vector_init): Use CONSTANT_P.
25342         (rs6000_legitimize_address): Handle CONST_WIDE_INT.
25343         (rs6000_emit_move): Update checks.
25344         (rs6000_aggregate_candidate): Use wide-int interfaces.
25345         (rs6000_expand_ternop_builtin): Likewise.
25346         (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
25347         (rs6000_assemble_integer): Likewise.
25348         (rs6000_hash_constant): Likewise.
25349         (output_toc): Likewise.
25350         (rs6000_rtx_costs): Likewise.
25351         (rs6000_emit_swrsqrt); Update call to real_from_integer.
25352         * config/rs6000/rs6000-c.c: Include wide-int.h.
25353         (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
25354         * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
25355         * config/rs6000/rs6000.md: Use const_scalar_int_operand.
25356         Handle CONST_WIDE_INT.
25357         * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
25358         Use tree_fits_uhwi_p.
25359         * config/sparc/sparc.c: Include wide-int.h.
25360         (sparc_fold_builtin): Use wide-int interfaces.
25361         * config/vax/vax.c: Include wide-int.h.
25362         (vax_float_literal): Use real_from_integer.
25363         * coretypes.h (struct hwivec_def): New.
25364         (hwivec): New.
25365         (const_hwivec): New.
25366         * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
25367         (equiv_constant): Handle CONST_WIDE_INT.
25368         * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
25369         (cselib_hash_rtx): Handle CONST_WIDE_INT.
25370         * dbxout.c (stabstr_U): Use wide-int interfaces.
25371         (dbxout_type): Update to use cst_fits_shwi_p.
25372         * defaults.h (LOG2_BITS_PER_UNIT): Define.
25373         (TARGET_SUPPORTS_WIDE_INT): Add default.
25374         * dfp.c: Include wide-int.h.
25375         (decimal_real_to_integer2): Use wide-int interfaces and rename to
25376         decimal_real_to_integer.
25377         * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
25378         decimal_real_to_integer.
25379         * doc/generic.texi (Constant expressions): Update for wide_int.
25380         * doc/rtl.texi (const_double): Likewise.
25381         (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
25382         (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
25383         * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
25384         (REAL_VALUE_FROM_INT): Remove.
25385         (TARGET_SUPPORTS_WIDE_INT): New.
25386         * doc/tm.texi: Regenerate.
25387         * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
25388         * double-int.h: Include wide-int.h.
25389         (struct wi::int_traits): New.
25390         * dwarf2out.c (get_full_len): New.
25391         (dw_val_equal_p): Add case dw_val_class_wide_int.
25392         (size_of_loc_descr): Likewise.
25393         (output_loc_operands): Likewise.
25394         (insert_double): Remove.
25395         (insert_wide_int): New.
25396         (add_AT_wide): New.
25397         (print_die): Add case dw_val_class_wide_int.
25398         (attr_checksum): Likewise.
25399         (attr_checksum_ordered): Likewise.
25400         (same_dw_val_p): Likewise.
25401         (size_of_die): Likewise.
25402         (value_format): Likewise.
25403         (output_die): Likewise.
25404         (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
25405         Use wide-int.
25406         (clz_loc_descriptor): Use wide-int interfaces.
25407         (mem_loc_descriptor): Likewise.  Handle CONST_WIDE_INT.
25408         (loc_descriptor): Use wide-int interfaces.  Handle CONST_WIDE_INT.
25409         (round_up_to_align): Use wide-int interfaces.
25410         (field_byte_offset): Likewise.
25411         (insert_double): Rename to insert_wide_int.  Use wide-int interfaces.
25412         (add_const_value_attribute): Handle CONST_WIDE_INT.  Update
25413         CONST_DOUBLE handling.  Use wide-int interfaces.
25414         (add_bound_info): Use tree_fits_uhwi_p.  Use wide-int interfaces.
25415         (gen_enumeration_type_die): Use add_AT_wide.
25416         (hash_loc_operands): Add case dw_val_class_wide_int.
25417         (compare_loc_operands): Likewise.
25418         * dwarf2out.h: Include wide-int.h.
25419         (wide_int_ptr): New.
25420         (enum dw_val_class): Add dw_val_class_wide_int.
25421         (struct dw_val_struct): Add val_wide.
25422         * emit-rtl.c (const_wide_int_htab): New.
25423         (const_wide_int_htab_hash): New.
25424         (const_wide_int_htab_eq): New.
25425         (lookup_const_wide_int): New.
25426         (const_double_htab_hash): Use wide-int interfaces.
25427         (const_double_htab_eq): Likewise.
25428         (rtx_to_double_int): Conditionally compile for wide-int.
25429         (immed_double_int_const): Rename to immed_wide_int_const and
25430         update for wide-int.
25431         (immed_double_const): Conditionally compile for wide-int.
25432         (init_emit_once): Use wide-int interfaces.
25433         * explow.c (plus_constant): Likewise.
25434         * expmed.c (mask_rtx): Move further up file.  Use wide-int interfaces.
25435         (lshift_value): Use wide-int interfaces.
25436         (expand_mult): Likewise.
25437         (choose_multiplier): Likewise.
25438         (expand_smod_pow2): Likewise.
25439         (make_tree): Likewise.
25440         * expr.c (convert_modes): Consolidate handling of constants.
25441         Use wide-int interfaces.
25442         (emit_group_load_1): Add note.
25443         (store_expr): Update comment.
25444         (get_inner_reference): Use wide-int interfaces.
25445         (expand_constructor): Update comment.
25446         (expand_expr_real_2): Use wide-int interfaces.
25447         (expand_expr_real_1): Likewise.
25448         (reduce_to_bit_field_precision): Likewise.
25449         (const_vector_from_tree): Likewise.
25450         * final.c: Include wide-int-print.h.
25451         (output_addr_const): Handle CONST_WIDE_INT.  Use CONST_DOUBLE_AS_INT_P.
25452         * fixed-value.c: Include wide-int.h.
25453         (fixed_from_string): Use wide-int interfaces.
25454         (fixed_to_decimal): Likewise.
25455         (fixed_convert_from_real): Likewise.
25456         (real_convert_from_fixed): Likewise.
25457         * fold-const.h (mem_ref_offset): Return an offset_int.
25458         (div_if_zero_remainder): Remove code parameter.
25459         * fold-const.c (div_if_zero_remainder): Remove code parameter.
25460         Use wide-int interfaces.
25461         (may_negate_without_overflow_p): Use wide-int interfaces.
25462         (negate_expr_p): Likewise.
25463         (fold_negate_expr): Likewise.
25464         (int_const_binop_1): Likewise.
25465         (const_binop): Likewise.
25466         (fold_convert_const_int_from_int): Likewise.
25467         (fold_convert_const_int_from_real): Likewise.
25468         (fold_convert_const_int_from_fixed): Likewise.
25469         (fold_convert_const_fixed_from_int): Likewise.
25470         (all_ones_mask_p): Take an unsigned size.  Use wide-int interfaces.
25471         (sign_bit_p): Use wide-int interfaces.
25472         (make_range_step): Likewise.
25473         (build_range_check): Likewise.  Pass an integer of the correct type
25474         instead of using integer_one_node.
25475         (range_predecessor): Pass an integer of the correct type instead
25476         of using integer_one_node.
25477         (range_successor): Likewise.
25478         (merge_ranges): Likewise.
25479         (unextend): Use wide-int interfaces.
25480         (extract_muldiv_1): Likewise.
25481         (fold_div_compare): Likewise.
25482         (fold_single_bit_test): Likewise.
25483         (fold_sign_changed_comparison): Likewise.
25484         (try_move_mult_to_index): Update calls to div_if_zero_remainder.
25485         (fold_plusminus_mult_expr): Use wide-int interfaces.
25486         (native_encode_int): Likewise.
25487         (native_interpret_int): Likewise.
25488         (fold_unary_loc): Likewise.
25489         (pointer_may_wrap_p): Likewise.
25490         (size_low_cst): Likewise.
25491         (mask_with_tz): Likewise.
25492         (fold_binary_loc): Likewise.
25493         (fold_ternary_loc): Likewise.
25494         (multiple_of_p): Likewise.
25495         (tree_call_nonnegative_warnv_p): Update calls to
25496         tree_int_cst_min_precision and real_from_integer.
25497         (fold_negate_const): Use wide-int interfaces.
25498         (fold_abs_const): Likewise.
25499         (fold_relational_const): Use tree_int_cst_lt.
25500         (round_up_loc): Use wide-int interfaces.
25501         * genemit.c (gen_exp): Add CONST_WIDE_INT case.
25502         * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
25503         * gengtype.c: Remove include of double-int.h.
25504         (do_typedef): Use wide-int interfaces.
25505         (open_base_files): Add wide-int.h.
25506         (main): Add offset_int and widest_int typedefs.
25507         * gengtype-lex.l: Handle "^".
25508         (CXX_KEYWORD): Add "static".
25509         * gengtype-parse.c (require3): New.
25510         (require_template_declaration): Handle constant template arguments
25511         and nested templates.
25512         * gengtype-state.c: Don't include "double-int.h".
25513         * genpreds.c (write_one_predicate_function): Update comment.
25514         (write_tm_constrs_h): Add check for hval and lval use in
25515         CONST_WIDE_INT.
25516         * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
25517         (add_to_sequence): Likewise.
25518         * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
25519         and const_double_operand.
25520         * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
25521         interfaces.
25522         * gimple-fold.c (get_base_constructor): Likewise.
25523         (fold_array_ctor_reference): Likewise.
25524         (fold_nonarray_ctor_reference): Likewise.
25525         (fold_const_aggregate_ref_1): Likewise.
25526         (gimple_val_nonnegative_real_p): Likewise.
25527         (gimple_fold_indirect_ref): Likewise.
25528         * gimple-pretty-print.c (dump_ssaname_info): Likewise.
25529         * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
25530         (struct slsr_cand_d): Change index to be widest_int.
25531         (struct incr_info_d): Change incr to be widest_int.
25532         (alloc_cand_and_find_basis): Use wide-int interfaces.
25533         (slsr_process_phi): Likewise.
25534         (backtrace_base_for_ref): Likewise.  Return a widest_int.
25535         (restructure_reference): Take a widest_int instead of a double_int.
25536         (slsr_process_ref): Use wide-int interfaces.
25537         (create_mul_ssa_cand): Likewise.
25538         (create_mul_imm_cand): Likewise.
25539         (create_add_ssa_cand): Likewise.
25540         (create_add_imm_cand): Take a widest_int instead of a double_int.
25541         (slsr_process_add): Use wide-int interfaces.
25542         (slsr_process_cast): Likewise.
25543         (slsr_process_copy): Likewise.
25544         (dump_candidate): Likewise.
25545         (dump_incr_vec): Likewise.
25546         (replace_ref): Likewise.
25547         (cand_increment): Likewise.  Return a widest_int.
25548         (cand_abs_increment): Likewise.
25549         (replace_mult_candidate): Take a widest_int instead of a double_int.
25550         (replace_unconditional_candidate): Use wide-int interfaces.
25551         (incr_vec_index): Take a widest_int instead of a double_int.
25552         (create_add_on_incoming_edge): Likewise.
25553         (create_phi_basis): Use wide-int interfaces.
25554         (replace_conditional_candidate): Likewise.
25555         (record_increment): Take a widest_int instead of a double_int.
25556         (record_phi_increments): Use wide-int interfaces.
25557         (phi_incr_cost): Take a widest_int instead of a double_int.
25558         (lowest_cost_path): Likewise.
25559         (total_savings): Likewise.
25560         (analyze_increments): Use wide-int interfaces.
25561         (ncd_with_phi): Take a widest_int instead of a double_int.
25562         (ncd_of_cand_and_phis): Likewise.
25563         (nearest_common_dominator_for_cands): Likewise.
25564         (insert_initializers): Use wide-int interfaces.
25565         (all_phi_incrs_profitable): Likewise.
25566         (replace_one_candidate): Likewise.
25567         (replace_profitable_candidates): Likewise.
25568         * godump.c: Include wide-int-print.h.
25569         (go_output_typedef): Use wide-int interfaces.
25570         * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
25571         * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
25572         (build_loop_iteration_domains): Likewise.
25573         * hooks.h: Include wide-int.h rather than double-int.h.
25574         (hook_bool_dint_dint_uint_bool_true): Delete.
25575         (hook_bool_wint_wint_uint_bool_true): Declare.
25576         * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
25577         (hook_bool_wint_wint_uint_bool_true): New.
25578         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
25579         interfaces.
25580         (ubsan_expand_si_overflow_mul_check): Likewise.
25581         * ipa-devirt.c (get_polymorphic_call_info): Likewise.
25582         * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
25583         (get_ancestor_addr_info): Likewise.
25584         (ipa_modify_call_arguments): Likewise.
25585         * loop-doloop.c (doloop_modify): Likewise.
25586         (doloop_optimize): Likewise.
25587         * loop-iv.c (iv_number_of_iterations): Likewise.
25588         * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
25589         (unroll_loop_constant_iterations): Likewise.
25590         (decide_unroll_runtime_iterations): Likewise.
25591         (unroll_loop_runtime_iterations): Likewise.
25592         (decide_peel_simple): Likewise.
25593         (decide_unroll_stupid): Likewise.
25594         * lto-streamer-in.c (streamer_read_wi): Add.
25595         (input_cfg): Use wide-int interfaces.
25596         (lto_input_tree_1): Likewise.
25597         * lto-streamer-out.c (streamer_write_wi): Add.
25598         (hash_tree): Use wide-int interfaces.
25599         (output_cfg): Likewise.
25600         * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
25601         (GTFILES): Add wide-int.h and signop.h.
25602         (TAGS): Look for .cc files too.
25603         * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
25604         * optabs.c (expand_subword_shift): Likewise.
25605         (expand_doubleword_shift): Likewise.
25606         (expand_absneg_bit): Likewise.
25607         (expand_copysign_absneg): Likewise.
25608         (expand_copysign_bit): Likewise.
25609         * postreload.c (reload_cse_simplify_set): Likewise.
25610         * predict.c (predict_iv_comparison): Likewise.
25611         * pretty-print.h: Include wide-int-print.h.
25612         (pp_wide_int) New.
25613         * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
25614         * print-tree.c: Include wide-int-print.h.
25615         (print_node_brief): Use wide-int interfaces.
25616         (print_node): Likewise.
25617         * read-rtl.c (validate_const_wide_int): New.
25618         (read_rtx_code): Add CONST_WIDE_INT case.
25619         * real.c: Include wide-int.h.
25620         (real_to_integer2): Delete.
25621         (real_to_integer): New function, returning a wide_int.
25622         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
25623         (ten_to_ptwo): Update call to real_from_integer.
25624         (real_digit): Likewise.
25625         * real.h: Include signop.h, wide-int.h and insn-modes.h.
25626         (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
25627         (REAL_VALUE_TO_INT): Delete.
25628         (real_to_integer): Declare a wide-int form.
25629         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
25630         * recog.c (const_int_operand): Improve comment.
25631         (const_scalar_int_operand): New.
25632         (const_double_operand): Add a separate definition for CONST_WIDE_INT.
25633         * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
25634         (split_double): Likewise.
25635         * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
25636         (rtx_size): Likewise.
25637         (rtx_alloc_stat_v): New.
25638         (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
25639         (cwi_output_hex): New.
25640         (iterative_hash_rtx): Handle CONST_WIDE_INT.
25641         (cwi_check_failed_bounds): New.
25642         * rtl.def (CONST_WIDE_INT): New.
25643         * rtl.h: Include <utility> and wide-int.h.
25644         (struct hwivec_def): New.
25645         (CWI_GET_NUM_ELEM): New.
25646         (CWI_PUT_NUM_ELEM): New.
25647         (struct rtx_def): Add num_elem and hwiv.
25648         (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
25649         (CASE_CONST_UNIQUE): Likewise.
25650         (CASE_CONST_ANY): Likewise.
25651         (CONST_SCALAR_INT_P): Likewise.
25652         (CONST_WIDE_INT_P): New.
25653         (CWI_ELT): New.
25654         (HWIVEC_CHECK): New.
25655         (cwi_check_failed_bounds): New.
25656         (CWI_ELT): New.
25657         (HWIVEC_CHECK): New.
25658         (CONST_WIDE_INT_VEC) New.
25659         (CONST_WIDE_INT_NUNITS) New.
25660         (CONST_WIDE_INT_ELT) New.
25661         (rtx_mode_t): New type.
25662         (wi::int_traits <rtx_mode_t>): New.
25663         (wi::shwi): New.
25664         (wi::min_value): New.
25665         (wi::max_value): New.
25666         (rtx_alloc_v) New.
25667         (const_wide_int_alloc): New.
25668         (immed_wide_int_const): New.
25669         * sched-vis.c (print_value): Handle CONST_WIDE_INT.
25670         * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
25671         * signop.h: New file.
25672         * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
25673         (simplify_const_unary_operation): Use wide-int interfaces.
25674         (simplify_binary_operation_1): Likewise.
25675         (simplify_const_binary_operation): Likewise.
25676         (simplify_const_relational_operation): Likewise.
25677         (simplify_immed_subreg): Likewise.
25678         * stmt.c (expand_case): Likewise.
25679         * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
25680         signop rather than a bool.
25681         * stor-layout.c (layout_type): Use wide-int interfaces.
25682         (initialize_sizetypes): Update calls to
25683         set_min_and_max_values_for_integral_type.
25684         (set_min_and_max_values_for_integral_type): Take a signop rather
25685         than a bool.  Use wide-int interfaces.
25686         (fixup_signed_type): Update accordingly.  Remove
25687         HOST_BITS_PER_DOUBLE_INT limit.
25688         (fixup_unsigned_type): Likewise.
25689         * system.h (STATIC_CONSTANT_P): New.
25690         (STATIC_ASSERT): New.
25691         * target.def (can_use_doloop_p): Take widest_ints rather than
25692         double_ints.
25693         * target.h: Include wide-int.h rather than double-int.h.
25694         * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
25695         than double_ints.
25696         * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
25697         rather than INT_CST_LT_UNSIGNED.
25698         (can_use_doloop_if_innermost): Take widest_ints rather than
25699         double_ints.
25700         * tree-affine.c: Include wide-int-print.h.
25701         (double_int_ext_for_comb): Delete.
25702         (wide_int_ext_for_comb): New.
25703         (aff_combination_zero): Use wide-int interfaces.
25704         (aff_combination_const): Take a widest_int instead of a double_int.
25705         (aff_combination_elt): Use wide-int interfaces.
25706         (aff_combination_scale): Take a widest_int instead of a double_int.
25707         (aff_combination_add_elt): Likewise.
25708         (aff_combination_add_cst): Likewise.
25709         (aff_combination_add): Use wide-int interfaces.
25710         (aff_combination_convert): Likewise.
25711         (tree_to_aff_combination): Likewise.
25712         (add_elt_to_tree): Take a widest_int instead of a double_int.
25713         (aff_combination_to_tree): Use wide-int interfaces.
25714         (aff_combination_remove_elt): Likewise.
25715         (aff_combination_add_product): Take a widest_int instead of
25716         a double_int.
25717         (aff_combination_mult): Use wide-int interfaces.
25718         (aff_combination_expand): Likewise.
25719         (double_int_constant_multiple_p): Delete.
25720         (wide_int_constant_multiple_p): New.
25721         (aff_combination_constant_multiple_p): Take a widest_int pointer
25722         instead of a double_int pointer.
25723         (print_aff): Use wide-int interfaces.
25724         (get_inner_reference_aff): Take a widest_int pointer
25725         instead of a double_int pointer.
25726         (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
25727         * tree-affine.h: Include wide-int.h.
25728         (struct aff_comb_elt): Change type of coef to widest_int.
25729         (struct affine_tree_combination): Change type of offset to widest_int.
25730         (double_int_ext_for_comb): Delete.
25731         (wide_int_ext_for_comb): New.
25732         (aff_combination_const): Use widest_int instead of double_int.
25733         (aff_combination_scale): Likewise.
25734         (aff_combination_add_elt): Likewise.
25735         (aff_combination_constant_multiple_p): Likewise.
25736         (get_inner_reference_aff): Likewise.
25737         (aff_comb_cannot_overlap_p): Likewise.
25738         (aff_combination_zero_p): Use wide-int interfaces.
25739         * tree.c: Include tree.h.
25740         (init_ttree): Use make_int_cst.
25741         (tree_code_size): Removed code for INTEGER_CST case.
25742         (tree_size): Add INTEGER_CST case.
25743         (make_node_stat): Update comment.
25744         (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
25745         (build_int_cst_type): Use wide-int interfaces.
25746         (double_int_to_tree): Likewise.
25747         (double_int_fits_to_tree_p): Delete.
25748         (force_fit_type_double): Delete.
25749         (force_fit_type): New.
25750         (int_cst_hash_hash): Use wide-int interfaces.
25751         (int_cst_hash_eq): Likewise.
25752         (build_int_cst_wide): Delete.
25753         (wide_int_to_tree): New.
25754         (cache_integer_cst): Use wide-int interfaces.
25755         (build_low_bits_mask): Likewise.
25756         (cst_and_fits_in_hwi): Likewise.
25757         (real_value_from_int_cst): Likewise.
25758         (make_int_cst_stat): New.
25759         (integer_zerop): Use wide_int interfaces.
25760         (integer_onep): Likewise.
25761         (integer_all_onesp): Likewise.
25762         (integer_pow2p): Likewise.
25763         (integer_nonzerop): Likewise.
25764         (tree_log2): Likewise.
25765         (tree_floor_log2): Likewise.
25766         (tree_ctz): Likewise.
25767         (int_size_in_bytes): Likewise.
25768         (mem_ref_offset): Return an offset_int rather than a double_int.
25769         (build_type_attribute_qual_variant): Use wide_int interfaces.
25770         (type_hash_eq): Likewise
25771         (tree_int_cst_equal): Likewise.
25772         (tree_int_cst_lt): Delete.
25773         (tree_int_cst_compare): Likewise.
25774         (tree_fits_shwi_p): Use wide_int interfaces.
25775         (tree_fits_uhwi_p): Likewise.
25776         (tree_int_cst_sign_bit): Likewise.
25777         (tree_int_cst_sgn): Likewise.
25778         (tree_int_cst_min_precision): Take a signop rather than a bool.
25779         (simple_cst_equal): Use wide_int interfaces.
25780         (compare_tree_int): Likewise.
25781         (iterative_hash_expr): Likewise.
25782         (int_fits_type_p): Likewise.  Use tree_int_cst_lt rather than
25783         INT_CST_LT.
25784         (get_type_static_bounds): Use wide_int interfaces.
25785         (tree_int_cst_elt_check_failed): New.
25786         (build_common_tree_nodes): Reordered to set prec before filling in
25787         value.
25788         (int_cst_value): Check cst_and_fits_in_hwi.
25789         (widest_int_cst_value): Use wide_int interfaces.
25790         (upper_bound_in_type): Likewise.
25791         (lower_bound_in_type): Likewise.
25792         (num_ending_zeros): Likewise.
25793         (drop_tree_overflow): Likewise.
25794         * tree-call-cdce.c (check_pow): Update call to real_from_integer.
25795         (gen_conditions_for_pow_cst_base): Likewise.
25796         * tree-cfg.c: Include wide-int.h and wide-int-print.h.
25797         (group_case_labels_stmt): Use wide-int interfaces.
25798         (verify_gimple_assign_binary): Likewise.
25799         (print_loop): Likewise.
25800         * tree-chrec.c (tree_fold_binomial): Likewise.
25801         * tree-core.h (struct tree_base): Add int_length.
25802         (struct tree_int_cst): Change rep of value.
25803         * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
25804         (dr_may_alias_p): Likewise.
25805         (max_stmt_executions_tree): Likewise.
25806         * tree.def (INTEGER_CST): Update comment.
25807         * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
25808         * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
25809         * tree-dump.c: Include wide-int.h and wide-int-print.h.
25810         (dequeue_and_dump): Use wide-int interfaces.
25811         * tree.h: Include wide-int.h.
25812         (NULL_TREE): Moved to earlier loc in file.
25813         (TREE_INT_CST_ELT_CHECK): New.
25814         (tree_int_cst_elt_check_failed): New.
25815         (TYPE_SIGN): New.
25816         (TREE_INT_CST): Delete.
25817         (TREE_INT_CST_LOW): Use wide-int interfaces.
25818         (TREE_INT_CST_HIGH): Delete.
25819         (TREE_INT_CST_NUNITS): New.
25820         (TREE_INT_CST_EXT_NUNITS): Likewise.
25821         (TREE_INT_CST_OFFSET_NUNITS): Likewise.
25822         (TREE_INT_CST_ELT): Likewise.
25823         (INT_CST_LT): Delete.
25824         (tree_int_cst_elt_check): New (two forms).
25825         (type_code_size): Update comment.
25826         (make_int_cst_stat, make_int_cst): New.
25827         (tree_to_double_int): Delete.
25828         (double_int_fits_to_tree_p): Delete.
25829         (force_fit_type_double): Delete.
25830         (build_int_cstu): Replace with out-of-line function.
25831         (build_int_cst_wide): Delete.
25832         (tree_int_cst_lt): Define inline.
25833         (tree_int_cst_le): New.
25834         (tree_int_cst_compare): Define inline.
25835         (tree_int_cst_min_precision): Take a signop rather than a bool.
25836         (wi::int_traits <const_tree>): New.
25837         (wi::int_traits <tree>): New.
25838         (wi::extended_tree): New.
25839         (wi::int_traits <wi::extended_tree>): New.
25840         (wi::to_widest): New.
25841         (wi::to_offset): New.
25842         (wi::fits_to_tree_p): New.
25843         (wi::min_value): New.
25844         (wi::max_value): New.
25845         * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
25846         (copy_tree_body_r): Likewise.
25847         * tree-object-size.c (compute_object_offset): Likewise.
25848         (addr_object_size): Likewise.
25849         * tree-predcom.c: Include wide-int-print.h.
25850         (struct dref_d): Change type of offset to widest_int.
25851         (dump_dref): Call wide-int printer.
25852         (aff_combination_dr_offset): Use wide-int interfaces.
25853         (determine_offset): Take a widest_int pointer rather than a
25854         double_int pointer.
25855         (split_data_refs_to_components): Use wide-int interfaces.
25856         (suitable_component_p): Likewise.
25857         (order_drefs): Likewise.
25858         (add_ref_to_chain): Likewise.
25859         (valid_initializer_p): Likewise.
25860         (determine_roots_comp): Likewise.
25861         * tree-pretty-print.c: Include wide-int-print.h.
25862         (dump_generic_node): Use wide-int interfaces.
25863         * tree-sra.c (sra_ipa_modify_expr): Likewise.
25864         * tree-ssa-address.c (addr_for_mem_ref): Likewise.
25865         (move_fixed_address_to_symbol): Likewise.
25866         (move_hint_to_base): Likewise.
25867         (move_pointer_to_base): Likewise.
25868         (move_variant_to_index): Likewise.
25869         (most_expensive_mult_to_index): Likewise.
25870         (addr_to_parts): Likewise.
25871         (copy_ref_info): Likewise.
25872         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
25873         (indirect_refs_may_alias_p): Likewise.
25874         (stmt_kills_ref_p_1): Likewise.
25875         * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
25876         * tree-ssa-ccp.c: Update comment at top of file.  Include
25877         wide-int-print.h.
25878         (struct prop_value_d): Change type of mask to widest_int.
25879         (extend_mask): New function.
25880         (dump_lattice_value): Use wide-int interfaces.
25881         (get_default_value): Likewise.
25882         (set_constant_value): Likewise.
25883         (set_value_varying): Likewise.
25884         (valid_lattice_transition): Likewise.
25885         (set_lattice_value): Likewise.
25886         (value_to_double_int): Delete.
25887         (value_to_wide_int): New.
25888         (get_value_from_alignment): Use wide-int interfaces.
25889         (get_value_for_expr): Likewise.
25890         (do_dbg_cnt): Likewise.
25891         (ccp_finalize): Likewise.
25892         (ccp_lattice_meet): Likewise.
25893         (bit_value_unop_1): Use widest_ints rather than double_ints.
25894         (bit_value_binop_1): Likewise.
25895         (bit_value_unop): Use wide-int interfaces.
25896         (bit_value_binop): Likewise.
25897         (bit_value_assume_aligned): Likewise.
25898         (evaluate_stmt): Likewise.
25899         (ccp_fold_stmt): Likewise.
25900         (visit_cond_stmt): Likewise.
25901         (ccp_visit_stmt): Likewise.
25902         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
25903         (constant_pointer_difference): Likewise.
25904         (associate_pointerplus): Likewise.
25905         (combine_conversions): Likewise.
25906         * tree-ssa-loop.h: Include wide-int.h.
25907         (struct tree_niter_desc): Change type of max to widest_int.
25908         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
25909         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
25910         (remove_redundant_iv_tests): Likewise.
25911         (canonicalize_loop_induction_variables): Likewise.
25912         * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
25913         (constant_multiple_of): Take a widest_int pointer instead of
25914         a double_int pointer.
25915         (get_computation_aff): Use wide-int interfaces.
25916         (ptr_difference_cost): Likewise.
25917         (difference_cost): Likewise.
25918         (get_loop_invariant_expr_id): Likewise.
25919         (get_computation_cost_at): Likewise.
25920         (iv_elimination_compare_lt): Likewise.
25921         (may_eliminate_iv): Likewise.
25922         * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
25923         instead of double_int.
25924         (max_loop_iterations): Likewise.
25925         (max_stmt_executions): Likewise.
25926         (estimated_stmt_executions): Likewise.
25927         * tree-ssa-loop-niter.c: Include wide-int-print.h.
25928         (split_to_var_and_offset): Use wide-int interfaces.
25929         (determine_value_range): Likewise.
25930         (bound_difference_of_offsetted_base): Likewise.
25931         (bounds_add): Take a widest_int instead of a double_int.
25932         (number_of_iterations_ne_max): Use wide-int interfaces.
25933         (number_of_iterations_ne): Likewise.
25934         (number_of_iterations_lt_to_ne): Likewise.
25935         (assert_loop_rolls_lt): Likewise.
25936         (number_of_iterations_lt): Likewise.
25937         (number_of_iterations_le): Likewise.
25938         (number_of_iterations_cond): Likewise.
25939         (number_of_iterations_exit): Likewise.
25940         (finite_loop_p): Likewise.
25941         (derive_constant_upper_bound_assign): Likewise.
25942         (derive_constant_upper_bound): Return a widest_int.
25943         (derive_constant_upper_bound_ops): Likewise.
25944         (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
25945         (record_estimate): Take a widest_int rather than a double_int.
25946         (record_nonwrapping_iv): Use wide-int interfaces.
25947         (double_int_cmp): Delete.
25948         (wide_int_cmp): New.
25949         (bound_index): Take a widest_int rather than a double_int.
25950         (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
25951         (maybe_lower_iteration_bound): Likewise.
25952         (estimate_numbers_of_iterations_loop): Likewise.
25953         (estimated_loop_iterations): Take a widest_int pointer than than
25954         a double_int pointer.
25955         (estimated_loop_iterations_int): Use wide-int interfaces.
25956         (max_loop_iterations): Take a widest_int pointer than than
25957         a double_int pointer.
25958         (max_loop_iterations_int): Use wide-int interfaces.
25959         (max_stmt_executions): Take a widest_int pointer than than
25960         a double_int pointer.
25961         (estimated_stmt_executions): Likewise.
25962         (n_of_executions_at_most): Use wide-int interfaces.
25963         (scev_probably_wraps_p): Likewise.
25964         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
25965         to real_to_integer.
25966         * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
25967         interfaces.
25968         * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
25969         double_ints.  Adjust for trailing_wide_ints <3> representation.
25970         (set_nonzero_bits): Likewise.
25971         (get_range_info): Return wide_ints rather than double_ints.
25972         Adjust for trailing_wide_ints <3> representation.
25973         (get_nonzero_bits): Likewise.
25974         (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
25975         representation.
25976         * tree-ssanames.h (struct range_info_def): Replace min, max and
25977         nonzero_bits with a trailing_wide_ints <3>.
25978         (set_range_info): Use wide_int_refs rather than double_ints.
25979         (set_nonzero_bits): Likewise.
25980         (get_range_info): Return wide_ints rather than double_ints.
25981         (get_nonzero_bits): Likewise.
25982         * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
25983         * tree-ssa-pre.c (phi_translate_1): Likewise.
25984         * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
25985         (acceptable_pow_call): Likewise.
25986         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
25987         interfaces.
25988         (vn_reference_fold_indirect): Likewise.
25989         (vn_reference_maybe_forwprop_address): Likewise.
25990         (valueize_refs_1): Likewise.
25991         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
25992         * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
25993         tree_int_cst_lt and tree_int_cst_le.
25994         * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
25995         interfaces.
25996         (streamer_alloc_tree): Likewise.
25997         * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
25998         (streamer_write_tree_header): Likewise.
25999         (streamer_write_integer_cst): Likewise.
26000         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
26001         (build_constructors): Likewise.
26002         (array_value_type): Likewise.
26003         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
26004         (vect_check_gather): Likewise.
26005         * tree-vect-generic.c (build_replicated_const): Likewise.
26006         (expand_vector_divmod): Likewise.
26007         * tree-vect-loop.c (vect_transform_loop): Likewise.
26008         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
26009         (vect_do_peeling_for_alignment): Likewise.
26010         * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
26011         * tree-vrp.c: Include wide-int.h.
26012         (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
26013         (extract_range_from_assert): Use wide-int interfaces.
26014         (vrp_int_const_binop): Likewise.
26015         (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
26016         double_int pointers.
26017         (ranges_from_anti_range): Use wide-int interfaces.
26018         (quad_int_cmp): Delete.
26019         (quad_int_pair_sort): Likewise.
26020         (extract_range_from_binary_expr_1): Use wide-int interfaces.
26021         (extract_range_from_unary_expr_1): Likewise.
26022         (adjust_range_with_scev): Likewise.
26023         (masked_increment): Take and return wide_ints rather than double_ints.
26024         (register_edge_assert_for_2): Use wide-int interfaces.
26025         (check_array_ref): Likewise.
26026         (search_for_addr_array): Likewise.
26027         (maybe_set_nonzero_bits): Likewise.
26028         (union_ranges): Pass an integer of the correct type instead of
26029         using integer_one_node.
26030         (intersect_ranges): Likewise.
26031         (simplify_truth_ops_using_ranges): Likewise.
26032         (simplify_bit_ops_using_ranges): Use wide-int interfaces.
26033         (range_fits_type_p): Likewise.
26034         (simplify_cond_using_ranges): Likewise.  Take a signop rather than
26035         a bool.
26036         (simplify_conversion_using_ranges): Use wide-int interfaces.
26037         (simplify_float_conversion_using_ranges): Likewise.
26038         (vrp_finalize): Likewise.
26039         * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
26040         (gimple_stringops_transform): Likewise.
26041         * varasm.c (decode_addr_const): Likewise.
26042         (const_hash_1): Likewise.
26043         (const_rtx_hash_1): Likewise
26044         (output_constant): Likewise.
26045         (array_size_for_constructor): Likewise.
26046         (output_constructor_regular_field): Likewise.
26047         (output_constructor_bitfield): Likewise.
26048         * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
26049         * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
26050         GENERATOR_FILEs.
26051         * gencheck.c: Define BITS_PER_UNIT.
26052         * wide-int.cc: New.
26053         * wide-int.h: New.
26054         * wide-int-print.cc: New.
26055         * wide-int-print.h: New.
26057 2014-05-06  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
26059         * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
26061 2014-05-06  Richard Biener  <rguenther@suse.de>
26063         * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
26064         TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
26065         (TODO_verify_all): Adjust.
26066         * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
26067         TODO_verify_stmts and TODO_verify_rtl_sharing.
26068         * bb-reorder.c: Likewise.
26069         * cfgexpand.c: Likewise.
26070         * cprop.c: Likewise.
26071         * cse.c: Likewise.
26072         * function.c: Likewise.
26073         * fwprop.c: Likewise.
26074         * gcse.c: Likewise.
26075         * gimple-ssa-isolate-paths.c: Likewise.
26076         * gimple-ssa-strength-reduction.c: Likewise.
26077         * ipa-split.c: Likewise.
26078         * loop-init.c: Likewise.
26079         * loop-unroll.c: Likewise.
26080         * lower-subreg.c: Likewise.
26081         * modulo-sched.c: Likewise.
26082         * postreload-gcse.c: Likewise.
26083         * predict.c: Likewise.
26084         * recog.c: Likewise.
26085         * sched-rgn.c: Likewise.
26086         * store-motion.c: Likewise.
26087         * tracer.c: Likewise.
26088         * trans-mem.c: Likewise.
26089         * tree-call-cdce.c: Likewise.
26090         * tree-cfg.c: Likewise.
26091         * tree-cfgcleanup.c: Likewise.
26092         * tree-complex.c: Likewise.
26093         * tree-eh.c: Likewise.
26094         * tree-emutls.c: Likewise.
26095         * tree-if-conv.c: Likewise.
26096         * tree-into-ssa.c: Likewise.
26097         * tree-loop-distribution.c: Likewise.
26098         * tree-object-size.c: Likewise.
26099         * tree-parloops.c: Likewise.
26100         * tree-pass.h: Likewise.
26101         * tree-sra.c: Likewise.
26102         * tree-ssa-ccp.c: Likewise.
26103         * tree-ssa-copy.c: Likewise.
26104         * tree-ssa-copyrename.c: Likewise.
26105         * tree-ssa-dce.c: Likewise.
26106         * tree-ssa-dom.c: Likewise.
26107         * tree-ssa-dse.c: Likewise.
26108         * tree-ssa-forwprop.c: Likewise.
26109         * tree-ssa-ifcombine.c: Likewise.
26110         * tree-ssa-loop-ch.c: Likewise.
26111         * tree-ssa-loop-ivcanon.c: Likewise.
26112         * tree-ssa-loop.c: Likewise.
26113         * tree-ssa-math-opts.c: Likewise.
26114         * tree-ssa-phiopt.c: Likewise.
26115         * tree-ssa-phiprop.c: Likewise.
26116         * tree-ssa-pre.c: Likewise.
26117         * tree-ssa-reassoc.c: Likewise.
26118         * tree-ssa-sink.c: Likewise.
26119         * tree-ssa-strlen.c: Likewise.
26120         * tree-ssa-tail-merge.c: Likewise.
26121         * tree-ssa-uncprop.c: Likewise.
26122         * tree-switch-conversion.c: Likewise.
26123         * tree-tailcall.c: Likewise.
26124         * tree-vect-generic.c: Likewise.
26125         * tree-vectorizer.c: Likewise.
26126         * tree-vrp.c: Likewise.
26127         * tsan.c: Likewise.
26128         * var-tracking.c: Likewise.
26129         * bt-load.c: Likewise.
26130         * cfgcleanup.c: Likewise.
26131         * combine-stack-adj.c: Likewise.
26132         * combine.c: Likewise.
26133         * compare-elim.c: Likewise.
26134         * config/epiphany/resolve-sw-modes.c: Likewise.
26135         * config/i386/i386.c: Likewise.
26136         * config/mips/mips.c: Likewise.
26137         * config/s390/s390.c: Likewise.
26138         * config/sh/sh_treg_combine.cc: Likewise.
26139         * config/sparc/sparc.c: Likewise.
26140         * dce.c: Likewise.
26141         * dse.c: Likewise.
26142         * final.c: Likewise.
26143         * ifcvt.c: Likewise.
26144         * mode-switching.c: Likewise.
26145         * passes.c: Likewise.
26146         * postreload.c: Likewise.
26147         * ree.c: Likewise.
26148         * reg-stack.c: Likewise.
26149         * regcprop.c: Likewise.
26150         * regrename.c: Likewise.
26151         * web.c: Likewise.
26153 2014-05-06  Richard Biener  <rguenther@suse.de>
26155         PR middle-end/61070
26156         * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
26157         * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
26159 2014-05-05  Jan Hubicka  <hubicka@ucw.cz>
26161         PR ipa/60965
26162         * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
26164 2014-05-05  Radovan Obradovic  <robradovic@mips.com>
26165             Tom de Vries  <tom@codesourcery.com>
26167         * target.def (call_fusage_contains_non_callee_clobbers): New
26168         DEFHOOKPOD.
26169         * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
26170         Hooks to @menu.
26171         (@node Miscellaneous Register Hooks): New node.
26172         (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
26173         * doc/tm.texi: Regenerate.
26175 2014-05-05  Marek Polacek  <polacek@redhat.com>
26177         PR driver/61065
26178         * opts.c (common_handle_option): Call error_at instead of warning_at.
26180 2014-05-05  Richard Biener  <rguenther@suse.de>
26182         * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
26183         from last_verified if update_ssa ran.  Move TODO_verify_rtl_sharing
26184         under the TODO_verify_il umbrella.
26186 2014-05-05  Richard Biener  <rguenther@suse.de>
26188         * passes.c (execute_function_todo): Move TODO_verify_flow under
26189         the TODO_verify_ul umbrella.
26191 2014-05-05  Richard Biener  <rguenther@suse.de>
26193         PR middle-end/61010
26194         * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
26195         X & CST away from a CST that is the mask of a mode.
26197 2014-05-05  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
26199         * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
26200         int argument to enum machine_mode.
26201         (picochip_class_max_nregs): Ditto.
26202         * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
26203         (picochip_class_max_nregs): Ditto.
26205 2014-05-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26207         * target.def: Add new target hook.
26208         * doc/tm.texi: Regenerate.
26209         * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
26210         * targhooks.c (default_keep_leaf_when_profiled): New function.
26212         * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
26213         (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
26215 2014-05-05  Bin Cheng  <bin.cheng@arm.com>
26217         PR tree-optimization/60363
26218         * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
26219         (copy_phi_args): New parameters.  Call get_value_locus_in_path.
26220         (update_destination_phis): New parameter.
26221         (create_edge_and_update_destination_phis): Ditto.
26222         (ssa_fix_duplicate_block_edges): Pass new arguments.
26223         (thread_single_edge): Ditto.
26225 2014-05-04  Peter Bergner  <bergner@vnet.ibm.com>
26227         * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
26228         (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
26229         (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
26230         * config/rs6000/rs6000-builtin.def (BU_MISC_1):
26231         Use RS6000_BTM_HARD_FLOAT.
26232         (BU_MISC_2): Likewise.
26233         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
26234         RS6000_BTM_HARD_FLOAT.
26235         (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
26236         is explicitly used.
26237         (rs6000_invalid_builtin): Add hard floating builtin support.
26238         (rs6000_expand_builtin): Relax the gcc_assert to allow the new
26239         hard float builtins.
26240         (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
26242 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
26244         * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
26245         Add missing function* argument.
26247 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
26249         * lra-constraints.c (valid_address_p): Move earlier in file.
26250         Add a constraint argument to the address_info version.
26251         (satisfies_memory_constraint_p): New function.
26252         (satisfies_address_constraint_p): Likewise.
26253         (process_alt_operands, curr_insn_transform): Use them.
26254         (process_address): Pass the constraint to valid_address_p when
26255         checking address operands.
26257 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
26259         * config/mips/mips.c (mips_isa_rev): New variable.
26260         (mips_set_architecture): Set it.
26261         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
26262         from mips_isa_rev.
26263         (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
26264         (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
26265         (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
26266         (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
26267         (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
26268         conditions in terms of mips_isa_rev.
26269         (mips_isa_rev): Declare.
26271 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
26273         * config/sh/sh-mem.cc: Use tabs instead of spaces.
26274         (prob_unlikely, prob_likely): Make variables const.
26276 2014-05-03  Denis Chertykov  <chertykov@gmail.com>
26278         * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
26280 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
26282         * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
26284 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
26286         * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
26287         (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
26288         * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
26289         functions.
26290         (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
26291         sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
26292         sh_pass_in_reg_p.
26293         Replace usage of ROUND_REG with sh_round_reg.
26294         Use CEIL instead of ROUND_ADVANCE.
26296 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
26298         PR target/61026
26299         * config/sh/sh.c: Include stdlib headers before everything else.
26301 2014-05-02  Jakub Jelinek  <jakub@redhat.com>
26303         * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
26304         GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
26305         (gimplify_adjust_omp_clauses): Simd region is never
26306         directly nested in combined parallel.  Instead, for linear
26307         with copyin/copyout, if in combined for simd loop, make decl
26308         firstprivate/lastprivate on OMP_FOR.
26309         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
26310         expand_omp_for_static_chunk): When setting endvar, also set
26311         fd->loop.v to the same value.
26313 2014-05-02  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
26315         * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
26317 2014-05-02  Alan Lawrence  <alan.lawrence@arm.com>
26319         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
26320         expression.
26322 2014-05-02  Marek Polacek  <polacek@redhat.com>
26324         * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
26326 2014-05-02  Kito Cheng  <kito@0xlab.org>
26328         * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
26329         to a C expression marco.
26330         * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
26331         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
26332         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
26333         * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
26334         HONOR_REG_ALLOC_ORDER.
26335         * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
26337 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
26339         * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
26341 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
26343         * config/arc/arc.c (arc_select_cc_mode): Fix typo.
26345 2014-05-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
26347         * tree-if-conv.c (is_cond_scalar_reduction): New function.
26348         (convert_scalar_cond_reduction): Likewise.
26349         (predicate_scalar_phi): Add recognition and transformation
26350         of simple conditioanl reduction to be vectorizable.
26352 2014-05-01  Marek Polacek  <polacek@redhat.com>
26354         PR c/43245
26355         * doc/invoke.texi: Document -Wdiscarded-qualifiers.
26357 2014-04-30  Alan Lawrence  <alan.lawrence@arm.com>
26359         * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
26360         vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
26361         vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
26362         vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
26363         vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
26364         vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
26365         vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
26366         vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
26368 2014-04-30  Joern Rennecke  <joern.rennecke@embecosm.com>
26370         * config/arc/arc.opt (mlra): Move comment above option name
26371         to avoid mis-parsing as language options.
26373 2014-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26375         * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
26376         * config/sol2.h: ... here.
26377         * config/sol2-10.h: Remove.
26379         * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
26380         (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
26381         (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
26382         (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
26383         (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
26384         * config/sol2.h: ... here.
26385         (SECTION_NAME_FORMAT): Don't redefine.
26386         (STARTFILE_ARCH32_SPEC): Rename to ...
26387         (STARTFILE_ARCH_SPEC): ... this.
26388         (ASM_OUTPUT_ALIGNED_COMMON): Move ...
26389         * config/sparc/sol2.h: ... here.
26390         (SECTION_NAME_FORMAT): Don't undef.
26391         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
26392         (SUBTARGET_EXTRA_SPECS): Remove.
26393         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
26395         * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
26396         (MD_STARTFILE_PREFIX): Remove.
26397         (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
26398         (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
26399         (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
26400         (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
26401         (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
26402         (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
26403         * config/i386/sol2.h: ... here.
26404         (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
26405         * config/i386/sol2-bi.h: Remove.
26406         * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
26407         (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
26409         * config/i386/t-sol2-64: Rename to ...
26410         * config/i386/t-sol2: ... this.
26411         * config/sparc/t-sol2-64: Rename to ...
26412         * config/sparc/t-sol2: ... this.
26414         * config.gcc (*-*-solaris2*): Split sol2_tm_file into
26415         sol2_tm_file_head, sol2_tm_file_tail.
26416         Include ${cpu_type}/sol2.h before sol2.h.
26417         Remove sol2-10.h.
26418         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
26419         i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
26420         Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
26421         Reflect i386/t-sol2-64 renaming.
26422         (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
26423         Reflect sparc/t-sol2-64 renaming.
26425 2014-04-30  Richard Biener  <rguenther@suse.de>
26427         * passes.c (execute_function_todo): Move TODO_verify_stmts
26428         and TODO_verify_ssa under the TODO_verify_il umbrella.
26429         * tree-ssa.h (verify_ssa): Adjust prototype.
26430         * tree-ssa.c (verify_ssa): Add parameter to tell whether
26431         we should verify SSA operands.
26432         * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
26433         * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
26434         whether we should verify whether not throwing stmts have EH info.
26435         * graphite-scop-detection.c (create_sese_edges): Adjust.
26436         * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
26437         * tree-eh.c (lower_try_finally_switch): Do not add the
26438         default case label twice.
26440 2014-04-30  Marek Polacek  <polacek@redhat.com>
26442         * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
26443         * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
26444         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
26445         * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
26447 2014-04-29  Alan Lawrence  <alan.lawrence@arm.com>
26449         * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
26450         vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
26451         vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
26452         vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
26453         vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
26454         vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
26455         vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
26456         vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
26458 2014-04-29  David Malcolm  <dmalcolm@redhat.com>
26460         * tree-cfg.c (dump_function_to_file): Dump the return type of
26461         functions, in a line to itself before the function body, mimicking
26462         the layout of a C function.
26464 2014-04-29  Jakub Jelinek  <jakub@redhat.com>
26466         PR tree-optimization/60971
26467         * tree-tailcall.c (process_assignment): Reject conversions which
26468         reduce precision.
26470 2014-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
26472         * calls.c (initialize_argument_information): Always treat
26473         PUSH_ARGS_REVERSED as 1, simplify code accordingly.
26474         (expand_call): Likewise.
26475         (emit_library_call_calue_1): Likewise.
26476         * expr.c (PUSH_ARGS_REVERSED): Do not define.
26477         (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
26478         code accordingly.
26480 2014-04-29  Nick Clifton  <nickc@redhat.com>
26482         * config/msp430/msp430.md (umulsidi): Fix typo.
26483         (mulhisi3): Enable even inside interrupt handlers.
26484         * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
26485         bigger return address pushed in large mode.
26487 2014-04-29  Nick Clifton  <nickc@redhat.com>
26489         * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
26490         (arc_init_reg_tables): Use a machine_mode enum to iterate over
26491         available modes.
26492         * config/m32r/m32r.c (init_reg_tables): Likewise.
26493         * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
26494         enum to hold the modes.
26496 2014-04-29  Richard Biener  <rguenther@suse.de>
26498         * dominance.c (free_dominance_info): Add overload with
26499         function parameter.
26500         (dom_info_state): Likewise.
26501         (dom_info_available_p): Likewise.
26502         * basic-block.h (free_dominance_info, dom_info_state,
26503         dom_info_available_p): Declare overloads.
26504         * passes.c (execute_function_todo): Verify that verifiers
26505         don't change dominator info state.  Drop dominator info
26506         for IPA pass invocations.
26507         * cgraph.c (release_function_body): Restore asserts that
26508         dominator information is released.
26510 2014-04-29  Patrick Palka  <patrick@parcs.ath.cx>
26512         * doc/invoke.texi: Fix typo.
26513         * tree-vrp.c: Fix typos.
26514         * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
26516 2014-04-29  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
26518         * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
26520 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
26522         * config/aarch64/aarch64-builtins.c
26523         (aarch64_types_storestruct_lane_qualifiers): New.
26524         (TYPES_STORESTRUCT_LANE): Likewise.
26525         * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
26526         (st3_lane): Likewise.
26527         (st4_lane): Likewise.
26528         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
26529         (vec_store_lanesci_lane<mode>): Likewise.
26530         (vec_store_lanesxi_lane<mode>): Likewise.
26531         (aarch64_st2_lane<VQ:mode>): Likewise.
26532         (aarch64_st3_lane<VQ:mode>): Likewise.
26533         (aarch64_st4_lane<VQ:mode>): Likewise.
26534         * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
26535         * config/aarch64/arm_neon.h
26536         (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
26537         use new macro arguments.
26538         (__ST3_LANE_FUNC): Likewise.
26539         (__ST4_LANE_FUNC): Likewise.
26540         * config/aarch64/iterators.md (V_TWO_ELEM): New.
26541         (V_THREE_ELEM): Likewise.
26542         (V_FOUR_ELEM): Likewise.
26544 2014-04-28  David Malcolm  <dmalcolm@redhat.com>
26546         * doc/gimple.texi: Replace the description of the now-defunct
26547         union gimple_statement_d with a diagram showing the
26548         gimple_statement_base class hierarchy and its relationships to
26549         the GSS_ and GIMPLE_ enums.
26551 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
26553         * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
26554         * config/aarch64/aarch64.c
26555         (aarch64_cannot_change_mode_class): Weaken conditions.
26556         (aarch64_modes_tieable_p): New.
26557         * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
26559 2014-04-28  Pat Haugen  <pthaugen@us.ibm.com>
26561         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
26562         (loadsync_<mode>): Change mode.
26563         (load_quadpti, store_quadpti): New.
26564         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
26565         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
26567 2014-04-28  Martin Jambor  <mjambor@suse.cz>
26569         * tree-sra.c (sra_modify_expr): Generate new memory accesses with
26570         same alias type as the original statement.
26571         (subreplacement_assignment_data): New type.
26572         (handle_unscalarized_data_in_subtree): New type of parameter,
26573         generate new memory accesses with same alias type as the original
26574         statement.
26575         (load_assign_lhs_subreplacements): Likewise.
26576         (sra_modify_constructor_assign): Generate new memory accesses with
26577         same alias type as the original statement.
26579 2014-04-28  Richard Biener  <rguenther@suse.de>
26581         * tree-pass.h (TODO_verify_il): Define.
26582         (TODO_verify_all): Complete properly.
26583         * passes.c (execute_function_todo): Move existing loop-closed
26584         SSA verification under TODO_verify_il.
26585         (execute_one_pass): Trigger TODO_verify_il at todo-after time.
26586         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
26587         Fix tree sharing issue.
26589 2014-04-28  Richard Biener  <rguenther@suse.de>
26591         PR middle-end/60092
26592         * builtins.def (DEF_C11_BUILTIN): Add.
26593         (BUILT_IN_ALIGNED_ALLOC): Likewise.
26594         * coretypes.h (enum function_class): Add function_c11_misc.
26595         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
26596         BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
26597         (call_may_clobber_ref_p_1): Likewise.
26598         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
26599         (mark_all_reaching_defs_necessary_1): Likewise.
26600         (propagate_necessity): Likewise.
26601         (eliminate_unnecessary_stmts): Likewise.
26602         * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
26604 2014-04-28  Richard Biener  <rguenther@suse.de>
26606         * tree-vrp.c (vrp_var_may_overflow): Remove.
26607         (vrp_visit_phi_node): Rather than bumping to +-INF possibly
26608         with overflow immediately bump to one before that value and
26609         let iteration figure out overflow status.
26611 2014-04-28  Richard Biener  <rguenther@suse.de>
26613         * configure.ac: Do valgrind header checks unconditionally.
26614         Add --enable-valgrind-annotations.
26615         * system.h: Guard valgrind header inclusion with
26616         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
26617         * alloc-pool.c (pool_alloc, pool_free): Use
26618         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
26619         to guard possibly dead code.
26620         * config.in: Regenerated.
26621         * configure: Likewise.
26623 2014-04-28  Jeff Law  <law@redhat.com>
26625         PR tree-optimization/60902
26626         * tree-ssa-threadedge.c
26627         (record_temporary_equivalences_from_stmts_at_dest): Only iterate
26628         over real defs when invalidating outputs from statements that do not
26629         produce useful outputs for threading.
26631 2014-04-28  Richard Biener  <rguenther@suse.de>
26633         PR tree-optimization/60979
26634         * graphite-scop-detection.c (scopdet_basic_block_info): Reject
26635         SCOPs that end in a block with a successor with abnormal
26636         predecessors.
26638 2014-04-28  Richard Biener  <rguenther@suse.de>
26640         * tree-pass.h (execute_pass_list): Adjust prototype.
26641         * passes.c (pass_manager::execute_early_local_passes): Adjust.
26642         (do_per_function): Change callback signature, push all actual
26643         work to the callbals.
26644         (do_per_function_toporder): Likewise.
26645         (execute_function_dump): Adjust.
26646         (execute_function_todo): Likewise.
26647         (clear_last_verified): Likewise.
26648         (verify_curr_properties): Likewise.
26649         (update_properties_after_pass): Likewise.
26650         (execute_pass_list_1): Split out from ...
26651         (execute_pass_list): ... here.  Adjust.
26652         (execute_ipa_pass_list): Likewise.
26653         * cgraphunit.c (cgraph_add_new_function): Adjust.
26654         (analyze_function): Likewise.
26655         (expand_function): Likewise.
26656         * cgraph.c (release_function_body): Free dominance info
26657         here instead of asserting it was magically freed elsewhere.
26659 2014-04-28  Eric Botcazou  <ebotcazou@adacore.com>
26661         * configure.ac: Tweak GAS check for LEON instructions on SPARC.
26662         * configure: Regenerate.
26663         * config/sparc/sparc.opt (muser-mode): New option.
26664         * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
26665         for LEON3.
26666         (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
26667         * doc/invoke.texi (SPARC options): Document -muser-mode.
26669 2014-04-27  Richard Sandiford  <rdsandiford@googlemail.com>
26671         * cselib.c (find_slot_memmode): Delete.
26672         (cselib_hasher): Change compare_type to a struct.
26673         (cselib_hasher::equal): Update accordingly.  Don't expect wrapped
26674         constants.
26675         (preserve_constants_and_equivs): Adjust for new compare_type.
26676         (cselib_find_slot): Likewise.  Take the mode of the rtx as argument.
26677         (wrap_constant): Delete.
26678         (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
26680 2014-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
26682         * doc/install.texi (Building with profile feedback): Remove
26683         outdated sentence.
26685 2014-04-26  Tom de Vries  <tom@codesourcery.com>
26687         * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
26688         array accesses.
26690 2014-04-25  Cary Coutant  <ccoutant@google.com>
26692         PR debug/60929
26693         * dwarf2out.c (should_move_die_to_comdat): A type definition
26694         can contain a subprogram definition, but don't move it to a
26695         comdat unit.
26696         (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
26697         (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
26698         from original DIE.
26699         (clone_tree_hash): Rename to...
26700         (clone_tree_partial): ...this; change callers.  Copy
26701         DW_TAG_subprogram DIEs as declarations.
26702         (copy_decls_walk): Don't copy children of a declaration into a
26703         type unit.
26705 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
26707         PR target/60969
26708         * config/i386/i386.md (*movsf_internal): Set MODE to SI for
26709         alternative 12.
26711 2014-04-25  Jiong Wang  <jiong.wang@arm.com>
26713         * config/arm/predicates.md (call_insn_operand): Add long_call check.
26714         * config/arm/arm.md (sibcall, sibcall_value): Force the address to
26715         reg for long_call.
26716         * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
26717         restriction.
26719 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26721         * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
26723 2014-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26725         PR tree-optimization/60930
26726         * gimple-ssa-strength-reduction.c (create_mul_imm_cand):  Reject
26727         creating a multiply candidate by folding two constant
26728         multiplicands when the result overflows.
26730 2014-04-25  Jakub Jelinek  <jakub@redhat.com>
26732         PR tree-optimization/60960
26733         * tree-vect-generic.c (expand_vector_operation): Only call
26734         expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
26736 2014-04-25  Tom de Vries  <tom@codesourcery.com>
26738         * expr.c (clobber_reg_mode): New function.
26739         * expr.h (clobber_reg): New function.
26741 2014-04-25  Tom de Vries  <tom@codesourcery.com>
26743         * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
26744         clobbers.
26746 2014-04-25  Radovan Obradovic  <robradovic@mips.com>
26747             Tom de Vries  <tom@codesourcery.com>
26749         * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
26750         handle.
26751         * rtl.h (find_all_hard_reg_sets): Add bool parameter.
26752         * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
26753         new argument to find_all_hard_reg_sets call.
26755 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26757         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
26758         Use HOST_WIDE_INT_C for mask literal.
26759         (aarch_rev16_shleft_mask_imm_p): Likewise.
26761 2014-04-25  Eric Botcazou  <ebotcazou@adacore.com>
26763         PR target/60941
26764         * config/sparc/sparc.md (ashlsi3_extend): Delete.
26766 2014-04-25  Marc Glisse  <marc.glisse@inria.fr>
26768         PR preprocessor/56540
26769         * config/i386/i386-c.c (ix86_target_macros): Define
26770         __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
26772 2014-04-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26774         * configure.ac (tga_func): Remove.
26775         (LIB_TLS_SPEC): Remove.
26776         * configure: Regenerate.
26777         * config.in: Regenerate.
26778         * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
26780 2014-04-25  Richard Biener  <rguenther@suse.de>
26782         PR ipa/60912
26783         * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
26784         call stmt use/clobber sets during stmt walk instead of
26785         walking the possibly incomplete set of caller edges.
26787 2014-04-25  Richard Biener  <rguenther@suse.de>
26789         PR ipa/60911
26790         * passes.c (apply_ipa_transforms): Inline into only caller ...
26791         (execute_one_pass): ... here.  Properly bring in function
26792         bodies for nodes we want to apply IPA transforms to.
26794 2014-04-24  Cong Hou  <congh@google.com>
26796         PR tree-optimization/60896
26797         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
26798         all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
26799         (vect_mark_pattern_stmts): Set the def type of all statements in
26800         PATTERN_DEF_SEQ as vect_internal_def.
26802 2014-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
26804         * doc/extend.texi (PowerPC Built-in Functions): Document new
26805         powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
26806         (PowerPC AltiVec/VSX Built-in Functions): Likewise.
26808         * config/rs6000/predicates.md (const_0_to_3_operand): New
26809         predicate to match 0..3 integer constants.
26811         * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
26812         to support adding miscellaneous builtin functions.
26813         (BU_DFP_MISC_2): Likewise.
26814         (BU_P7_MISC_1): Likewise.
26815         (BU_P7_MISC_2): Likewise.
26816         (BU_P8V_MISC_3): Likewise.
26817         (BU_MISC_1): Likewise.
26818         (BU_MISC_2): Likewise.
26819         (DIVWE): Add extended divide builtin functions.
26820         (DIVWEO): Likewise.
26821         (DIVWEU): Likewise.
26822         (DIVWEUO): Likewise.
26823         (DIVDE): Likewise.
26824         (DIVDEO): Likewise.
26825         (DIVDEU): Likewise.
26826         (DIVDEUO): Likewise.
26827         (DXEX): Add decimal floating-point builtin functions.
26828         (DXEXQ): Likewise.
26829         (DDEDPD): Likewise.
26830         (DDEDPDQ): Likewise.
26831         (DENBCD): Likewise.
26832         (DENBCDQ): Likewise.
26833         (DIEX): Likewise.
26834         (DIEXQ): Likewise.
26835         (DSCLI): Likewise.
26836         (DSCLIQ): Likewise.
26837         (DSCRI): Likewise.
26838         (DSCRIQ): Likewise.
26839         (CDTBCD): Add new BCD builtin functions.
26840         (CBCDTD): Likewise.
26841         (ADDG6S): Likewise.
26842         (BCDADD): Likewise.
26843         (BCDADD_LT): Likewise.
26844         (BCDADD_EQ): Likewise.
26845         (BCDADD_GT): Likewise.
26846         (BCDADD_OV): Likewise.
26847         (BCDSUB): Likewise.
26848         (BCDSUB_LT): Likewise.
26849         (BCDSUB_EQ): Likewise.
26850         (BCDSUB_GT): Likewise.
26851         (BCDSUB_OV): Likewise.
26852         (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
26853         (UNPACK_TD): Likewise.
26854         (PACK_TF): Likewise.
26855         (UNPACK_TF): Likewise.
26856         (UNPACK_TF_0): Likewise.
26857         (UNPACK_TF_1): Likewise.
26858         (PACK_V1TI): Likewise.
26859         (UNPACK_V1TI): Likewise.
26861         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
26862         support for decimal floating point builtin functions.
26863         (rs6000_expand_ternop_builtin): Add checks for the new builtin
26864         functions that take constant arguments.
26865         (rs6000_invalid_builtin): Add decimal floating point builtin support.
26866         (rs6000_init_builtins): Setup long double, _Decimal64, and
26867         _Decimal128 types for new builtin functions.
26868         (builtin_function_type): Set the unsigned flags appropriately for
26869         the new builtin functions.
26870         (rs6000_opt_masks): Add support for decimal floating point builtin
26871         functions.
26873         * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
26874         floating point builtin functions.
26875         (RS6000_BTM_COMMON): Likewise.
26876         (RS6000_BTI_long_double): Likewise.
26877         (RS6000_BTI_dfloat64): Likewise.
26878         (RS6000_BTI_dfloat128): Likewise.
26879         (long_double_type_internal_node): Likewise.
26880         (dfloat64_type_internal_node): Likewise.
26881         (dfloat128_type_internal_node): Likewise.
26883         * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
26884         2.07 bcd arithmetic instructions.
26885         (UNSPEC_BCDSUB): Likewise.
26886         (UNSPEC_BCD_OVERFLOW): Likewise.
26887         (UNSPEC_BCD_ADD_SUB): Likewise.
26888         (bcd_add_sub): Likewise.
26889         (BCD_TEST): Likewise.
26890         (bcd<bcd_add_sub>): Likewise.
26891         (bcd<bcd_add_sub>_test): Likewise.
26892         (bcd<bcd_add_sub>_test2): Likewise.
26893         (bcd<bcd_add_sub>_<code>): Likewise.
26894         (peephole2 for combined bcd ops): Likewise.
26896         * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
26897         decimal floating point builtin functions.
26898         (UNSPEC_DENBCD): Likewise.
26899         (UNSPEC_DXEX): Likewise.
26900         (UNSPEC_DIEX): Likewise.
26901         (UNSPEC_DSCLI): Likewise.
26902         (UNSPEC_DSCRI): Likewise.
26903         (D64_D128): Likewise.
26904         (dfp_suffix): Likewise.
26905         (dfp_ddedpd_<mode>): Likewise.
26906         (dfp_denbcd_<mode>): Likewise.
26907         (dfp_dxex_<mode>): Likewise.
26908         (dfp_diex_<mode>): Likewise.
26909         (dfp_dscli_<mode>): Likewise.
26910         (dfp_dscri_<mode>): Likewise.
26912         * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
26913         builtin functions.
26914         (UNSPEC_CDTBCD): Likewise.
26915         (UNSPEC_CBCDTD): Likewise.
26916         (UNSPEC_DIVE): Add support for new extended divide builtin functions.
26917         (UNSPEC_DIVEO): Likewise.
26918         (UNSPEC_DIVEU): Likewise.
26919         (UNSPEC_DIVEUO): Likewise.
26920         (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
26921         pack/unpack 128-bit types.
26922         (UNSPEC_PACK_128BIT): Likewise.
26923         (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
26924         (udiv<mode>3): Use idiv_ldiv mode attribute.
26925         (div<mode>3): Likewise.
26926         (addg6s): Add new BCD builtin functions.
26927         (cdtbcd): Likewise.
26928         (cbcdtd): Likewise.
26929         (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
26930         (div_extend): Likewise.
26931         (div<div_extend>_<mode>"): Likewise.
26932         (FP128_64): Add support for new builtin functions to pack/unpack
26933         128-bit types.
26934         (unpack<mode>): Likewise.
26935         (unpacktf_0): Likewise.
26936         (unpacktf_1): Likewise.
26937         (unpack<mode>_dm): Likewise.
26938         (unpack<mode>_nodm): Likewise.
26939         (pack<mode>): Likewise.
26940         (unpackv1ti): Likewise.
26941         (packv1ti): Likewise.
26943 2014-04-24  Vishnu K S  <Vishnu.k_s@atmel.com>
26945         * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
26946         is disabled.
26948 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
26950         * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
26951         * gimplify.c (omp_is_private): Change last argument's type to int.
26952         Only diagnose lastprivate if the simd argument is 1, only diagnose
26953         linear if the simd argument is 2.
26954         (gimplify_omp_for): Adjust omp_is_private callers.  When adding
26955         lastprivate or private, add the clause to OMP_FOR_CLAUSES.  Pass
26956         GOVD_EXPLICIT to omp_add_variable.  For simd with collapse == 1
26957         create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
26958         If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
26959         increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
26960         * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
26961         OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
26962         * tree-nested.c (convert_nonlocal_omp_clauses,
26963         convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
26965 2014-04-24  Segher Boessenkool  <segher@kernel.crashing.org>
26967         PR target/60822
26968         * config/m68k/m68k.md (extendplussidi): Don't allow memory for
26969         operand 1.
26971 2014-04-24  Dimitris Papavasiliou  <dpapavas@gmail.com>
26973         * flag-types.h (enum ivar_visibility): Add.
26975 2014-04-24  Trevor Saunders  <tsaunders@mozilla.com>
26977         * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
26978         function * argument.
26980 2014-04-24  Alan Lawrence  <alan.lawrence@arm.com>
26982         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
26984 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
26985             Tom de Vries  <tom@codesourcery.com>
26987         * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
26988         * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
26989         reg-note.
26990         * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
26991         * emit-rtl.c (try_split): Same.
26993 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
26994             Tom de Vries  <tom@codesourcery.com>
26996         * common.opt (fuse-caller-save): New option.
26998 2014-04-24  Tejas Belagod  <tejas.belagod@arm.com>
27000         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
27001         elements for big-endian.
27003 2014-04-24  Richard Biener  <rguenther@suse.de>
27005         * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
27006         during TER and instead use the sepops interface for expanding
27007         non-GIMPLE_SINGLE_RHS.
27009 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27011         * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
27012         if not HAVE_AS_IX86_DIFF_SECT_DELTA.
27014 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27016         * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
27017         assembler 64-bit option.
27018         * configure: Regenerate.
27020 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27022         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
27023         TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
27024         (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
27025         (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
27026         (TARGET_CRYPTO): Take TARGET_SIMD into account.
27028 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27030         * config/aarch64/aarch64-builtins.c
27031         (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
27032         BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
27033         * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
27034         * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
27035         builtins.
27036         * config/aarch64/iterator.md (VDQHSD): New mode iterator.
27037         (Vrevsuff): New mode attribute.
27039 2014-04-24  Terry Guo  <terry.guo@arm.com>
27041         * config/arm/arm.h (machine_function): Define variable
27042         after_arm_reorg here.
27043         * config/arm/arm.c (after_arm_reorg): Remove the definition.
27044         (arm_split_constant): Update the way to access variable
27045         after_arm_reorg.
27046         (arm_reorg): Ditto.
27047         (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
27049 2014-04-23  Tom de Vries  <tom@codesourcery.com>
27051         * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
27053 2014-04-23  David Malcolm  <dmalcolm@redhat.com>
27055         * is-a.h: Update comments to reflect the following changes to the
27056         "pointerness" of the API, making the template parameter match the
27057         return type, allowing use of is-a.h with typedefs of pointers.
27058         (is_a_helper::cast): Return a T rather then a pointer to a T, so
27059         that the return type matches the parameter to the is_a_helper.
27060         (as_a): Likewise.
27061         (dyn_cast): Likewise.
27063         * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
27064         pointer from the is-a.h API.
27066         * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
27067         (is_a_helper <cgraph_node *>::test): ...this, matching change to
27068         is-a.h API.
27069         (is_a_helper <varpool_node>::test): Likewise, convert to...
27070         (is_a_helper <varpool_node *>::test): ...this.
27072         (varpool_first_variable): Update for removal of implicit pointer
27073         from the is-a.h API.
27074         (varpool_next_variable): Likewise.
27075         (varpool_first_static_initializer): Likewise.
27076         (varpool_next_static_initializer): Likewise.
27077         (varpool_first_defined_variable): Likewise.
27078         (varpool_next_defined_variable): Likewise.
27079         (cgraph_first_defined_function): Likewise.
27080         (cgraph_next_defined_function): Likewise.
27081         (cgraph_first_function): Likewise.
27082         (cgraph_next_function): Likewise.
27083         (cgraph_first_function_with_gimple_body): Likewise.
27084         (cgraph_next_function_with_gimple_body): Likewise.
27085         (cgraph_alias_target): Likewise.
27086         (varpool_alias_target): Likewise.
27087         (cgraph_function_or_thunk_node): Likewise.
27088         (varpool_variable_node): Likewise.
27089         (symtab_real_symbol_p): Likewise.
27090         * cgraphunit.c (referred_to_p): Likewise.
27091         (analyze_functions): Likewise.
27092         (handle_alias_pairs): Likewise.
27093         * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
27094         * gimple-ssa.h (gimple_vuse_op): Likewise.
27095         (gimple_vdef_op): Likewise.
27096         * gimple-streamer-in.c (input_gimple_stmt): Likewise.
27097         * gimple.c (gimple_build_asm_1): Likewise.
27098         (gimple_build_try): Likewise.
27099         (gimple_build_resx): Likewise.
27100         (gimple_build_eh_dispatch): Likewise.
27101         (gimple_build_omp_for): Likewise.
27102         (gimple_omp_for_set_clauses): Likewise.
27104         * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
27105         (is_a_helper <gimple_statement_asm *>::test): ...this.
27106         (is_a_helper <gimple_statement_bind>::test): Convert to...
27107         (is_a_helper <gimple_statement_bind *>::test): ...this.
27108         (is_a_helper <gimple_statement_call>::test): Convert to...
27109         (is_a_helper <gimple_statement_call *>::test): ...this.
27110         (is_a_helper <gimple_statement_catch>::test): Convert to...
27111         (is_a_helper <gimple_statement_catch *>::test): ...this.
27112         (is_a_helper <gimple_statement_resx>::test): Convert to...
27113         (is_a_helper <gimple_statement_resx *>::test): ...this.
27114         (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
27115         (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
27116         (is_a_helper <gimple_statement_eh_else>::test): Convert to...
27117         (is_a_helper <gimple_statement_eh_else *>::test): ...this.
27118         (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
27119         (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
27120         (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
27121         (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
27122         (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
27123         (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
27124         (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
27125         (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
27126         (is_a_helper <gimple_statement_omp_return>::test): Convert to...
27127         (is_a_helper <gimple_statement_omp_return *>::test): ...this.
27128         (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
27129         (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
27130         (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
27131         (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
27132         (is_a_helper <gimple_statement_omp_for>::test): Convert to...
27133         (is_a_helper <gimple_statement_omp_for *>::test): ...this.
27134         (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
27135         (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
27136         (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
27137         (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
27138         (is_a_helper <gimple_statement_omp_target>::test): Convert to...
27139         (is_a_helper <gimple_statement_omp_target *>::test): ...this.
27140         (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
27141         (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
27142         (is_a_helper <gimple_statement_omp_single>::test): Convert to...
27143         (is_a_helper <gimple_statement_omp_single *>::test): ...this.
27144         (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
27145         (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
27146         (is_a_helper <gimple_statement_omp_task>::test): Convert to...
27147         (is_a_helper <gimple_statement_omp_task *>::test): ...this.
27148         (is_a_helper <gimple_statement_phi>::test): Convert to...
27149         (is_a_helper <gimple_statement_phi *>::test): ...this.
27150         (is_a_helper <gimple_statement_transaction>::test): Convert to...
27151         (is_a_helper <gimple_statement_transaction *>::test): ...this.
27152         (is_a_helper <gimple_statement_try>::test): Convert to...
27153         (is_a_helper <gimple_statement_try *>::test): ...this.
27154         (is_a_helper <gimple_statement_wce>::test): Convert to...
27155         (is_a_helper <gimple_statement_wce *>::test): ...this.
27156         (is_a_helper <const gimple_statement_asm>::test): Convert to...
27157         (is_a_helper <const gimple_statement_asm *>::test): ...this.
27158         (is_a_helper <const gimple_statement_bind>::test): Convert to...
27159         (is_a_helper <const gimple_statement_bind *>::test): ...this.
27160         (is_a_helper <const gimple_statement_call>::test): Convert to...
27161         (is_a_helper <const gimple_statement_call *>::test): ...this.
27162         (is_a_helper <const gimple_statement_catch>::test): Convert to...
27163         (is_a_helper <const gimple_statement_catch *>::test): ...this.
27164         (is_a_helper <const gimple_statement_resx>::test): Convert to...
27165         (is_a_helper <const gimple_statement_resx *>::test): ...this.
27166         (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
27167         (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
27168         (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
27169         (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
27170         (is_a_helper <const gimple_statement_omp_atomic_load>::test):
27171         Convert to...
27172         (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
27173         ...this.
27174         (is_a_helper <const gimple_statement_omp_atomic_store>::test):
27175         Convert to...
27176         (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
27177         ...this.
27178         (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
27179         (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
27180         (is_a_helper <const gimple_statement_omp_continue>::test): Convert
27181         to...
27182         (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
27183         (is_a_helper <const gimple_statement_omp_critical>::test): Convert
27184         to...
27185         (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
27186         (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
27187         (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
27188         (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
27189         (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
27190         (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
27191         to...
27192         (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
27193         (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
27194         (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
27195         (is_a_helper <const gimple_statement_omp_sections>::test): Convert
27196         to...
27197         (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
27198         (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
27199         (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
27200         (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
27201         (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
27202         (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
27203         (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
27204         (is_a_helper <const gimple_statement_phi>::test): Convert to...
27205         (is_a_helper <const gimple_statement_phi *>::test): ...this.
27206         (is_a_helper <const gimple_statement_transaction>::test): Convert to...
27207         (is_a_helper <const gimple_statement_transaction *>::test): ...this.
27208         (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
27209         (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
27210         (is_a_helper <gimple_statement_with_ops>::test): Convert to...
27211         (is_a_helper <gimple_statement_with_ops *>::test): ...this.
27212         (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
27213         to...
27214         (is_a_helper <const gimple_statement_with_memory_ops *>::test):
27215         ...this.
27216         (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
27217         (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
27219         (gimple_use_ops): Update for removal of implicit pointer from the
27220         is-a.h API.
27221         (gimple_set_use_ops): Likewise.
27222         (gimple_vuse): Likewise.
27223         (gimple_vdef): Likewise.
27224         (gimple_vuse_ptr): Likewise.
27225         (gimple_vdef_ptr): Likewise.
27226         (gimple_set_vuse): Likewise.
27227         (gimple_set_vdef): Likewise.
27228         (gimple_omp_return_set_lhs): Likewise.
27229         (gimple_omp_return_lhs): Likewise.
27230         (gimple_omp_return_lhs_ptr): Likewise.
27231         (gimple_call_fntype): Likewise.
27232         (gimple_call_set_fntype): Likewise.
27233         (gimple_call_set_internal_fn): Likewise.
27234         (gimple_call_use_set): Likewise.
27235         (gimple_call_clobber_set): Likewise.
27236         (gimple_bind_vars): Likewise.
27237         (gimple_bind_set_vars): Likewise.
27238         (gimple_bind_body_ptr): Likewise.
27239         (gimple_bind_set_body): Likewise.
27240         (gimple_bind_add_stmt): Likewise.
27241         (gimple_bind_block): Likewise.
27242         (gimple_bind_set_block): Likewise.
27243         (gimple_asm_ninputs): Likewise.
27244         (gimple_asm_noutputs): Likewise.
27245         (gimple_asm_nclobbers): Likewise.
27246         (gimple_asm_nlabels): Likewise.
27247         (gimple_asm_input_op): Likewise.
27248         (gimple_asm_input_op_ptr): Likewise.
27249         (gimple_asm_output_op): Likewise.
27250         (gimple_asm_output_op_ptr): Likewise.
27251         (gimple_asm_set_output_op): Likewise.
27252         (gimple_asm_clobber_op): Likewise.
27253         (gimple_asm_set_clobber_op): Likewise.
27254         (gimple_asm_label_op): Likewise.
27255         (gimple_asm_set_label_op): Likewise.
27256         (gimple_asm_string): Likewise.
27257         (gimple_catch_types): Likewise.
27258         (gimple_catch_types_ptr): Likewise.
27259         (gimple_catch_handler_ptr): Likewise.
27260         (gimple_catch_set_types): Likewise.
27261         (gimple_catch_set_handler): Likewise.
27262         (gimple_eh_filter_types): Likewise.
27263         (gimple_eh_filter_types_ptr): Likewise.
27264         (gimple_eh_filter_failure_ptr): Likewise.
27265         (gimple_eh_filter_set_types): Likewise.
27266         (gimple_eh_filter_set_failure): Likewise.
27267         (gimple_eh_must_not_throw_fndecl): Likewise.
27268         (gimple_eh_must_not_throw_set_fndecl): Likewise.
27269         (gimple_eh_else_n_body_ptr): Likewise.
27270         (gimple_eh_else_e_body_ptr): Likewise.
27271         (gimple_eh_else_set_n_body): Likewise.
27272         (gimple_eh_else_set_e_body): Likewise.
27273         (gimple_try_eval_ptr): Likewise.
27274         (gimple_try_cleanup_ptr): Likewise.
27275         (gimple_try_set_eval): Likewise.
27276         (gimple_try_set_cleanup): Likewise.
27277         (gimple_wce_cleanup_ptr): Likewise.
27278         (gimple_wce_set_cleanup): Likewise.
27279         (gimple_phi_capacity): Likewise.
27280         (gimple_phi_num_args): Likewise.
27281         (gimple_phi_result): Likewise.
27282         (gimple_phi_result_ptr): Likewise.
27283         (gimple_phi_set_result): Likewise.
27284         (gimple_phi_arg): Likewise.
27285         (gimple_phi_set_arg): Likewise.
27286         (gimple_resx_region): Likewise.
27287         (gimple_resx_set_region): Likewise.
27288         (gimple_eh_dispatch_region): Likewise.
27289         (gimple_eh_dispatch_set_region): Likewise.
27290         (gimple_omp_critical_name): Likewise.
27291         (gimple_omp_critical_name_ptr): Likewise.
27292         (gimple_omp_critical_set_name): Likewise.
27293         (gimple_omp_for_clauses): Likewise.
27294         (gimple_omp_for_clauses_ptr): Likewise.
27295         (gimple_omp_for_set_clauses): Likewise.
27296         (gimple_omp_for_collapse): Likewise.
27297         (gimple_omp_for_index): Likewise.
27298         (gimple_omp_for_index_ptr): Likewise.
27299         (gimple_omp_for_set_index): Likewise.
27300         (gimple_omp_for_initial): Likewise.
27301         (gimple_omp_for_initial_ptr): Likewise.
27302         (gimple_omp_for_set_initial): Likewise.
27303         (gimple_omp_for_final): Likewise.
27304         (gimple_omp_for_final_ptr): Likewise.
27305         (gimple_omp_for_set_final): Likewise.
27306         (gimple_omp_for_incr): Likewise.
27307         (gimple_omp_for_incr_ptr): Likewise.
27308         (gimple_omp_for_set_incr): Likewise.
27309         (gimple_omp_for_pre_body_ptr): Likewise.
27310         (gimple_omp_for_set_pre_body): Likewise.
27311         (gimple_omp_parallel_clauses): Likewise.
27312         (gimple_omp_parallel_clauses_ptr): Likewise.
27313         (gimple_omp_parallel_set_clauses): Likewise.
27314         (gimple_omp_parallel_child_fn): Likewise.
27315         (gimple_omp_parallel_child_fn_ptr): Likewise.
27316         (gimple_omp_parallel_set_child_fn): Likewise.
27317         (gimple_omp_parallel_data_arg): Likewise.
27318         (gimple_omp_parallel_data_arg_ptr): Likewise.
27319         (gimple_omp_parallel_set_data_arg): Likewise.
27320         (gimple_omp_task_clauses): Likewise.
27321         (gimple_omp_task_clauses_ptr): Likewise.
27322         (gimple_omp_task_set_clauses): Likewise.
27323         (gimple_omp_task_child_fn): Likewise.
27324         (gimple_omp_task_child_fn_ptr): Likewise.
27325         (gimple_omp_task_set_child_fn): Likewise.
27326         (gimple_omp_task_data_arg): Likewise.
27327         (gimple_omp_task_data_arg_ptr): Likewise.
27328         (gimple_omp_task_set_data_arg): Likewise.
27329         (gimple_omp_taskreg_clauses): Likewise.
27330         (gimple_omp_taskreg_clauses_ptr): Likewise.
27331         (gimple_omp_taskreg_set_clauses): Likewise.
27332         (gimple_omp_taskreg_child_fn): Likewise.
27333         (gimple_omp_taskreg_child_fn_ptr): Likewise.
27334         (gimple_omp_taskreg_set_child_fn): Likewise.
27335         (gimple_omp_taskreg_data_arg): Likewise.
27336         (gimple_omp_taskreg_data_arg_ptr): Likewise.
27337         (gimple_omp_taskreg_set_data_arg): Likewise.
27338         (gimple_omp_task_copy_fn): Likewise.
27339         (gimple_omp_task_copy_fn_ptr): Likewise.
27340         (gimple_omp_task_set_copy_fn): Likewise.
27341         (gimple_omp_task_arg_size): Likewise.
27342         (gimple_omp_task_arg_size_ptr): Likewise.
27343         (gimple_omp_task_set_arg_size): Likewise.
27344         (gimple_omp_task_arg_align): Likewise.
27345         (gimple_omp_task_arg_align_ptr): Likewise.
27346         (gimple_omp_task_set_arg_align): Likewise.
27347         (gimple_omp_single_clauses): Likewise.
27348         (gimple_omp_single_clauses_ptr): Likewise.
27349         (gimple_omp_single_set_clauses): Likewise.
27350         (gimple_omp_target_clauses): Likewise.
27351         (gimple_omp_target_clauses_ptr): Likewise.
27352         (gimple_omp_target_set_clauses): Likewise.
27353         (gimple_omp_target_child_fn): Likewise.
27354         (gimple_omp_target_child_fn_ptr): Likewise.
27355         (gimple_omp_target_set_child_fn): Likewise.
27356         (gimple_omp_target_data_arg): Likewise.
27357         (gimple_omp_target_data_arg_ptr): Likewise.
27358         (gimple_omp_target_set_data_arg): Likewise.
27359         (gimple_omp_teams_clauses): Likewise.
27360         (gimple_omp_teams_clauses_ptr): Likewise.
27361         (gimple_omp_teams_set_clauses): Likewise.
27362         (gimple_omp_sections_clauses): Likewise.
27363         (gimple_omp_sections_clauses_ptr): Likewise.
27364         (gimple_omp_sections_set_clauses): Likewise.
27365         (gimple_omp_sections_control): Likewise.
27366         (gimple_omp_sections_control_ptr): Likewise.
27367         (gimple_omp_sections_set_control): Likewise.
27368         (gimple_omp_for_set_cond): Likewise.
27369         (gimple_omp_for_cond): Likewise.
27370         (gimple_omp_atomic_store_set_val): Likewise.
27371         (gimple_omp_atomic_store_val): Likewise.
27372         (gimple_omp_atomic_store_val_ptr): Likewise.
27373         (gimple_omp_atomic_load_set_lhs): Likewise.
27374         (gimple_omp_atomic_load_lhs): Likewise.
27375         (gimple_omp_atomic_load_lhs_ptr): Likewise.
27376         (gimple_omp_atomic_load_set_rhs): Likewise.
27377         (gimple_omp_atomic_load_rhs): Likewise.
27378         (gimple_omp_atomic_load_rhs_ptr): Likewise.
27379         (gimple_omp_continue_control_def): Likewise.
27380         (gimple_omp_continue_control_def_ptr): Likewise.
27381         (gimple_omp_continue_set_control_def): Likewise.
27382         (gimple_omp_continue_control_use): Likewise.
27383         (gimple_omp_continue_control_use_ptr): Likewise.
27384         (gimple_omp_continue_set_control_use): Likewise.
27385         (gimple_transaction_body_ptr): Likewise.
27386         (gimple_transaction_label): Likewise.
27387         (gimple_transaction_label_ptr): Likewise.
27388         (gimple_transaction_set_body): Likewise.
27389         (gimple_transaction_set_label): Likewise.
27391         * ipa-devirt.c (build_type_inheritance_graph): Likewise.
27392         * ipa-inline-analysis.c (inline_write_summary): Likewise.
27393         * ipa-ref.c (ipa_record_reference): Likewise.
27394         * ipa-reference.c (analyze_function): Likewise.
27395         (ipa_reference_write_optimization_summary): Likewise.
27396         * ipa.c (symtab_remove_unreachable_nodes): Likewise.
27397         (address_taken_from_non_vtable_p): Likewise.
27398         (comdat_can_be_unshared_p_1): Likewise.
27399         * lto-cgraph.c (lto_output_ref): Likewise.
27400         (add_references): Likewise.
27401         (compute_ltrans_boundary): Likewise.
27402         (output_symtab): Likewise.
27403         (input_ref): Likewise.
27404         (input_cgraph_1): Likewise.
27405         (output_cgraph_opt_summary): Likewise.
27406         * lto-streamer-out.c (lto_output): Likewise.
27407         (output_symbol_p): Likewise.
27408         * lto-streamer.h (lsei_next_function_in_partition): Likewise.
27409         (lsei_start_function_in_partition): Likewise.
27410         (lsei_next_variable_in_partition): Likewise.
27411         (lsei_start_variable_in_partition): Likewise.
27412         * symtab.c (insert_to_assembler_name_hash): Likewise.
27413         (unlink_from_assembler_name_hash): Likewise.
27414         (symtab_unregister_node): Likewise.
27415         (symtab_remove_node): Likewise.
27416         (dump_symtab_node): Likewise.
27417         (verify_symtab_base): Likewise.
27418         (verify_symtab_node): Likewise.
27419         (symtab_make_decl_local): Likewise.
27420         (symtab_alias_ultimate_target): Likewise.
27421         (symtab_resolve_alias): Likewise.
27422         (symtab_get_symbol_partitioning_class): Likewise.
27423         * tree-phinodes.c (allocate_phi_node): Likewise.
27424         (reserve_phi_args_for_new_edge): Likewise.
27425         (remove_phi_args): Likewise.
27426         * varpool.c (varpool_node_for_asm): Likewise.
27427         (varpool_remove_unreferenced_decls): Likewise.
27429 2014-04-23  Jeff Law  <law@redhat.com>
27431         PR tree-optimization/60902
27432         * tree-ssa-threadedge.c
27433         (record_temporary_equivalences_from_stmts_at_dest): Make sure to
27434         invalidate outputs from statements that do not produce useful
27435         outputs for threading.
27437 2014-04-23  Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
27439         * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
27440         (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
27441         machine descriptions for Stack Smashing Protector.
27443 2014-04-23  Richard Earnshaw  <rearnsha@arm.com>
27445         * aarch64.md (<optab>_rol<mode>3): New pattern.
27446         (<optab>_rolsi3_uxtw): Likewise.
27447         * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
27449 2014-04-23  James Greenhalgh  <james.greenhalgh@arm.com>
27451         * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
27452         (arm_cortex_a12_tune): Likewise.
27454 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27456         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
27458 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27460         * config/arm/arm.md (arm_rev16si2): New pattern.
27461         (arm_rev16si2_alt): Likewise.
27462         * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
27464 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27466         * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
27467         (rev16<mode>2_alt): Likewise.
27468         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
27469         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
27470         (aarch_rev16_shleft_mask_imm_p): Likewise.
27471         (aarch_rev16_p_1): Likewise.
27472         (aarch_rev16_p): Likewise.
27473         * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
27474         (aarch_rev16_shright_mask_imm_p): Likewise.
27475         (aarch_rev16_shleft_mask_imm_p): Likewise.
27477 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27479         * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
27480         * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
27481         rev cost.
27482         (cortex_a53_extra_costs): Likewise.
27483         (cortex_a57_extra_costs): Likewise.
27484         * config/arm/arm.c (cortexa9_extra_costs): Likewise.
27485         (cortexa7_extra_costs): Likewise.
27486         (cortexa8_extra_costs): Likewise.
27487         (cortexa12_extra_costs): Likewise.
27488         (cortexa15_extra_costs): Likewise.
27489         (v7m_extra_costs): Likewise.
27490         (arm_new_rtx_costs): Handle BSWAP.
27492 2013-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27494         * config/arm/arm.c (cortexa8_extra_costs): New table.
27495         (arm_cortex_a8_tune): New tuning struct.
27496         * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
27498 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27500         * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
27502 2014-04-23  Richard Biener  <rguenther@suse.de>
27504         * Makefile.in (OBJS): Remove loop-unswitch.o.
27505         * tree-pass.h (make_pass_rtl_unswitch): Remove.
27506         * passes.def (pass_rtl_unswitch): Likewise.
27507         * loop-init.c (gate_rtl_unswitch): Likewise.
27508         (rtl_unswitch): Likewise.
27509         (pass_data_rtl_unswitch): Likewise.
27510         (pass_rtl_unswitch): Likewise.
27511         (make_pass_rtl_unswitch): Likewise.
27512         * rtl.h (reversed_condition): Likewise.
27513         (compare_and_jump_seq): Likewise.
27514         * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
27515         and make static.
27516         * loop-unroll.c (compare_and_jump_seq): Likewise.
27518 2014-04-23  Richard Biener  <rguenther@suse.de>
27520         PR tree-optimization/60903
27521         * tree-ssa-loop-im.c (analyze_memory_references): Remove
27522         commented code block.
27523         (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
27524         loop flags to newly created BBs and edges.
27526 2014-04-23  Nick Clifton  <nickc@redhat.com>
27528         * config/msp430/msp430.c (msp430_handle_option): Move function
27529         to msp430-common.c
27530         (msp430_option_override): Simplify mcu and mcpu option handling.
27531         (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult.  Add
27532         support for -mhwmult command line option.
27533         (has_32bit_hwmult): Rename to use_32bit_hwmult.  Add support for
27534         -mhwmult command line option.
27535         (msp430_hwmult_enabled): Delete.
27536         (msp43o_output_labelref): Add support for -mhwmult command line option.
27537         * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
27538         (umulsidi3): Likewise.
27539         * config/msp430/msp430.opt (mmcu): Add Report attribute.
27540         (mcpu, mlarge, msmall): Likewise.
27541         (mhwmult): New option.
27542         * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
27543         prototype.
27544         (msp430_is_f5_mcu): Remove prototype.
27545         (msp430_use_f5_series_hwmult): Add prototype.
27546         * config/msp430/msp430-opts.h: New file.
27547         * common/config/msp430: New directory.
27548         * common/config/msp430/msp430-common.c: New file.
27549         * config.gcc (msp430): Remove target_has_targetm_common.
27550         * doc/invoke.texi: Document -mhwmult command line option.
27552 2014-04-23  Nick Clifton  <nickc@redhat.com>
27554         * config/i386/cygwin.h (ENDFILE_SPEC): Include
27555         default-manifest.o if it can be found in the search path.
27556         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
27558 2014-04-23  Terry Guo  <terry.guo@arm.com>
27560         * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
27562 2014-04-23  Richard Biener  <rguenther@suse.de>
27564         PR middle-end/60895
27565         * tree-inline.c (declare_return_variable): Use mark_addressable.
27567 2014-04-23  Richard Biener  <rguenther@suse.de>
27569         PR middle-end/60891
27570         * loop-init.c (loop_optimizer_init): Make sure to apply
27571         LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
27573 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
27575         PR sanitizer/60275
27576         * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
27577         New options.
27578         * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
27579         if flag_sanitize_undefined_trap_on_error.
27580         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
27581         BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
27582         BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
27583         BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
27584         BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
27585         BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
27586         BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
27587         BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
27588         BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
27589         * ubsan.c (ubsan_instrument_unreachable): Return
27590         __builtin_trap () if flag_sanitize_undefined_trap_on_error.
27591         (ubsan_expand_null_ifn): Emit __builtin_trap ()
27592         if flag_sanitize_undefined_trap_on_error and
27593         __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
27594         (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
27595         instrument_bool_enum_load): Emit __builtin_trap () if
27596         flag_sanitize_undefined_trap_on_error and
27597         __builtin_handle_*_abort () if !flag_sanitize_recover.
27598         * doc/invoke.texi (-fsanitize-recover,
27599         -fsanitize-undefined-trap-on-error): Document.
27601 2014-04-22  Christian Bruel  <christian.bruel@st.com>
27603         * config/sh/sh.md (mov<mode>): Replace movQIHI.
27604          Force immediates to SImode.
27606 2014-04-22  Sandra Loosemore  <sandra@codesourcery.com>
27608         * config/nios2/nios2.md (UNSPEC_ROUND): New.
27609         (lroundsfsi2): New.
27610         * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
27611         * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
27612         * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
27613         (nios2_fpu_insn): Add entry for round.
27614         (N2FPU_NO_ERRNO_P): Define.
27615         (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
27616         flag_errno_math.
27617         * doc/invoke.texi (Nios II Options): Document -mcustom-round.
27619 2014-04-22  Richard Henderson  <rth@redhat.com>
27621         * config/aarch64/aarch64 (addti3, subti3): New expanders.
27622         (add<GPI>3_compare0): Remove leading * from name.
27623         (add<GPI>3_carryin): Likewise.
27624         (sub<GPI>3_compare0): Likewise.
27625         (sub<GPI>3_carryin): Likewise.
27626         (<su_optab>mulditi3): New expander.
27627         (multi3): New expander.
27628         (madd<GPI>): Remove leading * from name.
27630 2014-04-22  Martin Jambor  <mjambor@suse.cz>
27632         * cgraphclones.c (cgraph_function_versioning): Copy
27633         ipa_transforms_to_apply instead of asserting it is empty.
27635 2014-04-22  H.J. Lu  <hongjiu.lu@intel.com>
27637         PR target/60868
27638         * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
27639         on count_exp to get mode.
27641 2014-04-22  Andrew Pinski  <apinski@cavium.com>
27643         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
27644         Handle TLS for ILP32.
27645         * config/aarch64/aarch64.md (tlsie_small): Rename to ...
27646         (tlsie_small_<mode>): this and handle PTR.
27647         (tlsie_small_sidi): New pattern.
27648         (tlsle_small): Change to an expand to handle ILP32.
27649         (tlsle_small_<mode>): New pattern.
27650         (tlsdesc_small): Rename to ...
27651         (tlsdesc_small_<mode>): this and handle PTR.
27653 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
27655         * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
27657 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
27659         * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
27660         (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
27661         (aarch64_types_signed_poly_qualifiers): Likewise.
27662         (aarch64_types_unsigned_signed_qualifiers): Likewise.
27663         (aarch64_types_poly_signed_qualifiers): Likewise.
27664         (TYPES_REINTERP_SS): Type macro added.
27665         (TYPES_REINTERP_SU): Likewise.
27666         (TYPES_REINTERP_SP): Likewise.
27667         (TYPES_REINTERP_US): Likewise.
27668         (TYPES_REINTERP_PS): Likewise.
27669         (aarch64_fold_builtin): New expression folding added.
27670         * config/aarch64/aarch64-simd-builtins.def (REINTERP):
27671         Declarations removed.
27672         (REINTERP_SS): Declarations added.
27673         (REINTERP_US): Likewise.
27674         (REINTERP_PS): Likewise.
27675         (REINTERP_SU): Likewise.
27676         (REINTERP_SP): Likewise.
27677         * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
27678         (vreinterpretq_p8_f64): Likewise.
27679         (vreinterpret_p16_f64): Likewise.
27680         (vreinterpretq_p16_f64): Likewise.
27681         (vreinterpret_f32_f64): Likewise.
27682         (vreinterpretq_f32_f64): Likewise.
27683         (vreinterpret_f64_f32): Likewise.
27684         (vreinterpret_f64_p8): Likewise.
27685         (vreinterpret_f64_p16): Likewise.
27686         (vreinterpret_f64_s8): Likewise.
27687         (vreinterpret_f64_s16): Likewise.
27688         (vreinterpret_f64_s32): Likewise.
27689         (vreinterpret_f64_s64): Likewise.
27690         (vreinterpret_f64_u8): Likewise.
27691         (vreinterpret_f64_u16): Likewise.
27692         (vreinterpret_f64_u32): Likewise.
27693         (vreinterpret_f64_u64): Likewise.
27694         (vreinterpretq_f64_f32): Likewise.
27695         (vreinterpretq_f64_p8): Likewise.
27696         (vreinterpretq_f64_p16): Likewise.
27697         (vreinterpretq_f64_s8): Likewise.
27698         (vreinterpretq_f64_s16): Likewise.
27699         (vreinterpretq_f64_s32): Likewise.
27700         (vreinterpretq_f64_s64): Likewise.
27701         (vreinterpretq_f64_u8): Likewise.
27702         (vreinterpretq_f64_u16): Likewise.
27703         (vreinterpretq_f64_u32): Likewise.
27704         (vreinterpretq_f64_u64): Likewise.
27705         (vreinterpret_s64_f64): Likewise.
27706         (vreinterpretq_s64_f64): Likewise.
27707         (vreinterpret_u64_f64): Likewise.
27708         (vreinterpretq_u64_f64): Likewise.
27709         (vreinterpret_s8_f64): Likewise.
27710         (vreinterpretq_s8_f64): Likewise.
27711         (vreinterpret_s16_f64): Likewise.
27712         (vreinterpretq_s16_f64): Likewise.
27713         (vreinterpret_s32_f64): Likewise.
27714         (vreinterpretq_s32_f64): Likewise.
27715         (vreinterpret_u8_f64): Likewise.
27716         (vreinterpretq_u8_f64): Likewise.
27717         (vreinterpret_u16_f64): Likewise.
27718         (vreinterpretq_u16_f64): Likewise.
27719         (vreinterpret_u32_f64): Likewise.
27720         (vreinterpretq_u32_f64): Likewise.
27722 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
27724         * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
27725         * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
27726         (vreinterpret_p8_s8): Likewise.
27727         * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
27728         (vreinterpret_p8_s16): Likewise.
27729         (vreinterpret_p8_s32): Likewise.
27730         (vreinterpret_p8_s64): Likewise.
27731         (vreinterpret_p8_f32): Likewise.
27732         (vreinterpret_p8_u8): Likewise.
27733         (vreinterpret_p8_u16): Likewise.
27734         (vreinterpret_p8_u32): Likewise.
27735         (vreinterpret_p8_u64): Likewise.
27736         (vreinterpret_p8_p16): Likewise.
27737         (vreinterpretq_p8_s8): Likewise.
27738         (vreinterpretq_p8_s16): Likewise.
27739         (vreinterpretq_p8_s32): Likewise.
27740         (vreinterpretq_p8_s64): Likewise.
27741         (vreinterpretq_p8_f32): Likewise.
27742         (vreinterpretq_p8_u8): Likewise.
27743         (vreinterpretq_p8_u16): Likewise.
27744         (vreinterpretq_p8_u32): Likewise.
27745         (vreinterpretq_p8_u64): Likewise.
27746         (vreinterpretq_p8_p16): Likewise.
27747         (vreinterpret_p16_s8): Likewise.
27748         (vreinterpret_p16_s16): Likewise.
27749         (vreinterpret_p16_s32): Likewise.
27750         (vreinterpret_p16_s64): Likewise.
27751         (vreinterpret_p16_f32): Likewise.
27752         (vreinterpret_p16_u8): Likewise.
27753         (vreinterpret_p16_u16): Likewise.
27754         (vreinterpret_p16_u32): Likewise.
27755         (vreinterpret_p16_u64): Likewise.
27756         (vreinterpret_p16_p8): Likewise.
27757         (vreinterpretq_p16_s8): Likewise.
27758         (vreinterpretq_p16_s16): Likewise.
27759         (vreinterpretq_p16_s32): Likewise.
27760         (vreinterpretq_p16_s64): Likewise.
27761         (vreinterpretq_p16_f32): Likewise.
27762         (vreinterpretq_p16_u8): Likewise.
27763         (vreinterpretq_p16_u16): Likewise.
27764         (vreinterpretq_p16_u32): Likewise.
27765         (vreinterpretq_p16_u64): Likewise.
27766         (vreinterpretq_p16_p8): Likewise.
27767         (vreinterpret_f32_s8): Likewise.
27768         (vreinterpret_f32_s16): Likewise.
27769         (vreinterpret_f32_s32): Likewise.
27770         (vreinterpret_f32_s64): Likewise.
27771         (vreinterpret_f32_u8): Likewise.
27772         (vreinterpret_f32_u16): Likewise.
27773         (vreinterpret_f32_u32): Likewise.
27774         (vreinterpret_f32_u64): Likewise.
27775         (vreinterpret_f32_p8): Likewise.
27776         (vreinterpret_f32_p16): Likewise.
27777         (vreinterpretq_f32_s8): Likewise.
27778         (vreinterpretq_f32_s16): Likewise.
27779         (vreinterpretq_f32_s32): Likewise.
27780         (vreinterpretq_f32_s64): Likewise.
27781         (vreinterpretq_f32_u8): Likewise.
27782         (vreinterpretq_f32_u16): Likewise.
27783         (vreinterpretq_f32_u32): Likewise.
27784         (vreinterpretq_f32_u64): Likewise.
27785         (vreinterpretq_f32_p8): Likewise.
27786         (vreinterpretq_f32_p16): Likewise.
27787         (vreinterpret_s64_s8): Likewise.
27788         (vreinterpret_s64_s16): Likewise.
27789         (vreinterpret_s64_s32): Likewise.
27790         (vreinterpret_s64_f32): Likewise.
27791         (vreinterpret_s64_u8): Likewise.
27792         (vreinterpret_s64_u16): Likewise.
27793         (vreinterpret_s64_u32): Likewise.
27794         (vreinterpret_s64_u64): Likewise.
27795         (vreinterpret_s64_p8): Likewise.
27796         (vreinterpret_s64_p16): Likewise.
27797         (vreinterpretq_s64_s8): Likewise.
27798         (vreinterpretq_s64_s16): Likewise.
27799         (vreinterpretq_s64_s32): Likewise.
27800         (vreinterpretq_s64_f32): Likewise.
27801         (vreinterpretq_s64_u8): Likewise.
27802         (vreinterpretq_s64_u16): Likewise.
27803         (vreinterpretq_s64_u32): Likewise.
27804         (vreinterpretq_s64_u64): Likewise.
27805         (vreinterpretq_s64_p8): Likewise.
27806         (vreinterpretq_s64_p16): Likewise.
27807         (vreinterpret_u64_s8): Likewise.
27808         (vreinterpret_u64_s16): Likewise.
27809         (vreinterpret_u64_s32): Likewise.
27810         (vreinterpret_u64_s64): Likewise.
27811         (vreinterpret_u64_f32): Likewise.
27812         (vreinterpret_u64_u8): Likewise.
27813         (vreinterpret_u64_u16): Likewise.
27814         (vreinterpret_u64_u32): Likewise.
27815         (vreinterpret_u64_p8): Likewise.
27816         (vreinterpret_u64_p16): Likewise.
27817         (vreinterpretq_u64_s8): Likewise.
27818         (vreinterpretq_u64_s16): Likewise.
27819         (vreinterpretq_u64_s32): Likewise.
27820         (vreinterpretq_u64_s64): Likewise.
27821         (vreinterpretq_u64_f32): Likewise.
27822         (vreinterpretq_u64_u8): Likewise.
27823         (vreinterpretq_u64_u16): Likewise.
27824         (vreinterpretq_u64_u32): Likewise.
27825         (vreinterpretq_u64_p8): Likewise.
27826         (vreinterpretq_u64_p16): Likewise.
27827         (vreinterpret_s8_s16): Likewise.
27828         (vreinterpret_s8_s32): Likewise.
27829         (vreinterpret_s8_s64): Likewise.
27830         (vreinterpret_s8_f32): Likewise.
27831         (vreinterpret_s8_u8): Likewise.
27832         (vreinterpret_s8_u16): Likewise.
27833         (vreinterpret_s8_u32): Likewise.
27834         (vreinterpret_s8_u64): Likewise.
27835         (vreinterpret_s8_p8): Likewise.
27836         (vreinterpret_s8_p16): Likewise.
27837         (vreinterpretq_s8_s16): Likewise.
27838         (vreinterpretq_s8_s32): Likewise.
27839         (vreinterpretq_s8_s64): Likewise.
27840         (vreinterpretq_s8_f32): Likewise.
27841         (vreinterpretq_s8_u8): Likewise.
27842         (vreinterpretq_s8_u16): Likewise.
27843         (vreinterpretq_s8_u32): Likewise.
27844         (vreinterpretq_s8_u64): Likewise.
27845         (vreinterpretq_s8_p8): Likewise.
27846         (vreinterpretq_s8_p16): Likewise.
27847         (vreinterpret_s16_s8): Likewise.
27848         (vreinterpret_s16_s32): Likewise.
27849         (vreinterpret_s16_s64): Likewise.
27850         (vreinterpret_s16_f32): Likewise.
27851         (vreinterpret_s16_u8): Likewise.
27852         (vreinterpret_s16_u16): Likewise.
27853         (vreinterpret_s16_u32): Likewise.
27854         (vreinterpret_s16_u64): Likewise.
27855         (vreinterpret_s16_p8): Likewise.
27856         (vreinterpret_s16_p16): Likewise.
27857         (vreinterpretq_s16_s8): Likewise.
27858         (vreinterpretq_s16_s32): Likewise.
27859         (vreinterpretq_s16_s64): Likewise.
27860         (vreinterpretq_s16_f32): Likewise.
27861         (vreinterpretq_s16_u8): Likewise.
27862         (vreinterpretq_s16_u16): Likewise.
27863         (vreinterpretq_s16_u32): Likewise.
27864         (vreinterpretq_s16_u64): Likewise.
27865         (vreinterpretq_s16_p8): Likewise.
27866         (vreinterpretq_s16_p16): Likewise.
27867         (vreinterpret_s32_s8): Likewise.
27868         (vreinterpret_s32_s16): Likewise.
27869         (vreinterpret_s32_s64): Likewise.
27870         (vreinterpret_s32_f32): Likewise.
27871         (vreinterpret_s32_u8): Likewise.
27872         (vreinterpret_s32_u16): Likewise.
27873         (vreinterpret_s32_u32): Likewise.
27874         (vreinterpret_s32_u64): Likewise.
27875         (vreinterpret_s32_p8): Likewise.
27876         (vreinterpret_s32_p16): Likewise.
27877         (vreinterpretq_s32_s8): Likewise.
27878         (vreinterpretq_s32_s16): Likewise.
27879         (vreinterpretq_s32_s64): Likewise.
27880         (vreinterpretq_s32_f32): Likewise.
27881         (vreinterpretq_s32_u8): Likewise.
27882         (vreinterpretq_s32_u16): Likewise.
27883         (vreinterpretq_s32_u32): Likewise.
27884         (vreinterpretq_s32_u64): Likewise.
27885         (vreinterpretq_s32_p8): Likewise.
27886         (vreinterpretq_s32_p16): Likewise.
27887         (vreinterpret_u8_s8): Likewise.
27888         (vreinterpret_u8_s16): Likewise.
27889         (vreinterpret_u8_s32): Likewise.
27890         (vreinterpret_u8_s64): Likewise.
27891         (vreinterpret_u8_f32): Likewise.
27892         (vreinterpret_u8_u16): Likewise.
27893         (vreinterpret_u8_u32): Likewise.
27894         (vreinterpret_u8_u64): Likewise.
27895         (vreinterpret_u8_p8): Likewise.
27896         (vreinterpret_u8_p16): Likewise.
27897         (vreinterpretq_u8_s8): Likewise.
27898         (vreinterpretq_u8_s16): Likewise.
27899         (vreinterpretq_u8_s32): Likewise.
27900         (vreinterpretq_u8_s64): Likewise.
27901         (vreinterpretq_u8_f32): Likewise.
27902         (vreinterpretq_u8_u16): Likewise.
27903         (vreinterpretq_u8_u32): Likewise.
27904         (vreinterpretq_u8_u64): Likewise.
27905         (vreinterpretq_u8_p8): Likewise.
27906         (vreinterpretq_u8_p16): Likewise.
27907         (vreinterpret_u16_s8): Likewise.
27908         (vreinterpret_u16_s16): Likewise.
27909         (vreinterpret_u16_s32): Likewise.
27910         (vreinterpret_u16_s64): Likewise.
27911         (vreinterpret_u16_f32): Likewise.
27912         (vreinterpret_u16_u8): Likewise.
27913         (vreinterpret_u16_u32): Likewise.
27914         (vreinterpret_u16_u64): Likewise.
27915         (vreinterpret_u16_p8): Likewise.
27916         (vreinterpret_u16_p16): Likewise.
27917         (vreinterpretq_u16_s8): Likewise.
27918         (vreinterpretq_u16_s16): Likewise.
27919         (vreinterpretq_u16_s32): Likewise.
27920         (vreinterpretq_u16_s64): Likewise.
27921         (vreinterpretq_u16_f32): Likewise.
27922         (vreinterpretq_u16_u8): Likewise.
27923         (vreinterpretq_u16_u32): Likewise.
27924         (vreinterpretq_u16_u64): Likewise.
27925         (vreinterpretq_u16_p8): Likewise.
27926         (vreinterpretq_u16_p16): Likewise.
27927         (vreinterpret_u32_s8): Likewise.
27928         (vreinterpret_u32_s16): Likewise.
27929         (vreinterpret_u32_s32): Likewise.
27930         (vreinterpret_u32_s64): Likewise.
27931         (vreinterpret_u32_f32): Likewise.
27932         (vreinterpret_u32_u8): Likewise.
27933         (vreinterpret_u32_u16): Likewise.
27934         (vreinterpret_u32_u64): Likewise.
27935         (vreinterpret_u32_p8): Likewise.
27936         (vreinterpret_u32_p16): Likewise.
27937         (vreinterpretq_u32_s8): Likewise.
27938         (vreinterpretq_u32_s16): Likewise.
27939         (vreinterpretq_u32_s32): Likewise.
27940         (vreinterpretq_u32_s64): Likewise.
27941         (vreinterpretq_u32_f32): Likewise.
27942         (vreinterpretq_u32_u8): Likewise.
27943         (vreinterpretq_u32_u16): Likewise.
27944         (vreinterpretq_u32_u64): Likewise.
27945         (vreinterpretq_u32_p8): Likewise.
27946         (vreinterpretq_u32_p16): Likewise.
27948 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
27950         * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
27951         Pattern extended.
27952         * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
27953         (sqabs): Likewise.
27954         * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
27955         (vqnegd_s64): Likewise.
27956         (vqabs_s64): Likewise.
27957         (vqabsd_s64): Likewise.
27959 2014-04-22  Richard Henderson  <rth@redhat.com>
27961         * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
27962         computation to the top of the loop.
27964 2014-04-22  Renlin  <renlin.li@arm.com>
27965             Jiong Wang  <jiong.wang@arm.com>
27967         * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
27968         * config/aarch64/aarch64.c (aarch64_layout_frame)
27969         (aarch64_initial_elimination_offset): Likewise.
27971 2014-04-22  Marcus Shawcroft  <marcus.shawcroft@arm.com>
27973         * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
27974         Fix indentation.
27976 2014-04-22  Richard Sandiford  <rdsandiford@googlemail.com>
27978         * machmode.h (bitwise_mode_for_mode): Declare.
27979         * stor-layout.h (bitwise_type_for_mode): Likewise.
27980         * stor-layout.c (bitwise_mode_for_mode): New function.
27981         (bitwise_type_for_mode): Likewise.
27982         * builtins.c (fold_builtin_memory_op): Use it instead of
27983         int_mode_for_mode and build_nonstandard_integer_type.
27985 2014-04-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27987         * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
27988         (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
27989         (*-*-solaris2*): Simplify.
27990         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
27991         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
27992         *-*-solaris2.9* handling.
27994         * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
27995         as bug.
27996         (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
27997         (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
27998         handling, simplify.
27999         (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
28000         * configure: Regenerate.
28002         * config/i386/sol2-9.h: Remove.
28004         * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
28005         (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
28006         Remove Solaris 9 references.
28008 2014-04-22  Vidya Praveen  <vidyapraveen@arm.com>
28010         * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
28011         (floatuns<GPI:mode><GPF:mode>2): Remove.
28012         (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
28013         and floatuns conversions.
28014         (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
28015         and floatuns conversions.
28016         * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
28017         (w1,w2): New mode attributes for inequal width conversions.
28019 2014-04-22  Renlin Li  <Renlin.Li@arm.com>
28021         * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
28022         the output asm format.
28024 2014-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
28026         * config/aarch64/aarch64-simd.md
28027         (aarch64_cm<optab>di): Always split.
28028         (*aarch64_cm<optab>di): New.
28029         (aarch64_cmtstdi): Always split.
28030         (*aarch64_cmtstdi): New.
28032 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
28034         PR tree-optimization/60823
28035         * omp-low.c (ipa_simd_modify_function_body): Go through
28036         all SSA_NAMEs and for those refering to vector arguments
28037         which are going to be replaced adjust SSA_NAME_VAR and,
28038         if it is a default definition, change it into a non-default
28039         definition assigned at the beginning of function from new_decl.
28040         (ipa_simd_modify_stmt_ops): Rewritten.
28041         * tree-dfa.c (set_ssa_default_def): When removing default def,
28042         check for NULL loc instead of NULL *loc.
28044 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
28046         * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
28047         restrictions on core registers for DImode values in Thumb2.
28049 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
28051         * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
28052         * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
28054 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
28056         * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
28057         (*iordi_notzesidi_di): Likewise.
28058         (*iordi_notsesidi_di): Likewise.
28060 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
28062         * config/arm/arm-protos.h (tune_params): New struct members.
28063         * config/arm/arm.c: Initialise tune_params per processor.
28064         (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
28065         for speed, based on new tune_params.
28067 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
28069         * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
28070         * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
28071         * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
28072         * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
28073         * config/aarch64/arm_neon.h (vrnd_f64): Added.
28074         (vrnda_f64): Likewise.
28075         (vrndi_f64): Likewise.
28076         (vrndm_f64): Likewise.
28077         (vrndn_f64): Likewise.
28078         (vrndp_f64): Likewise.
28079         (vrndx_f64): Likewise.
28081 2014-04-22  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
28083         * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
28084         GET_MODE_SIZE argument is enum machine_mode.
28086 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
28088         PR target/60910
28089         * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
28090         value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
28092 2014-04-22  Lin Zuojian  <manjian2006@gmail.com>
28094         PR middle-end/60281
28095         * asan.c (asan_emit_stack_protection): Force the base to align to
28096         appropriate bits if STRICT_ALIGNMENT.  Set shadow_mem align to
28097         appropriate bits if STRICT_ALIGNMENT.
28098         * cfgexpand.c (expand_stack_vars): Set base_align appropriately
28099         when asan is on.
28100         (expand_used_vars): Leave a space in the stack frame for alignment
28101         if STRICT_ALIGNMENT.
28103 2014-04-21  David Malcolm  <dmalcolm@redhat.com>
28105         * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
28106         than a gimple.
28107         (gimple_store_p): Likewise.
28108         (gimple_assign_load_p): Likewise.
28109         (gimple_assign_cast_p): Likewise.
28110         (gimple_clobber_p): Likewise.
28112         * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
28113         rather than a gimple.
28114         (gimple_assign_cast_p): Likewise.
28116 2014-04-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
28118         PR target/60735
28119         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
28120         If mode is DDmode and TARGET_E500_DOUBLE allow move.
28122         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
28123         more debug information for E500 if -mdebug=reg.
28125 2014-04-21  Uros Bizjak  <ubizjak@gmail.com>
28127         PR target/60909
28128         * config/i386/i386.c (ix86_expand_builtin)
28129         <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
28130         register for target RTX.
28131         <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
28133 2014-04-18  Cong Hou  <congh@google.com>
28135         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
28136         the widen-mult pattern by handling two operands with different sizes,
28137         and operands whose size is smaller than half of the result type.
28139 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
28141         * ipa-inline.h (INLINE_HINT_known_hot): New hint.
28142         * ipa-inline-analysis.c (dump_inline_hints): Dump it.
28143         (do_estimate_edge_time): Compute it.
28144         * ipa-inline.c (want_inline_small_function_p): Bypass
28145         INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
28147 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
28149         * ipa-inline.c (spec_rem): New static variable.
28150         (dump_overall_stats): New function.
28151         (dump_inline_stats): New function.
28153 2014-04-18  Richard Henderson  <rth@redhat.com>
28155         * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
28156         to GET_MODE_SIZE, not a reg_class_t.
28158 2014-04-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28160         * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
28161         (vsx_xxmrglw_<mode>): Likewise.
28163 2014-04-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
28165         PR target/60876
28166         * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
28167         GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
28168         (rs6000_init_hard_regno_mode_ok): Likewise.
28170 2014-04-17  Jan Hubicka  <hubicka@ucw.cz>
28172         * ipa-inline.c (inline_small_functions): Account only non-cold
28173         functions.
28174         * doc/invoke.texi (inline-unit-growth): Update documentation.
28176 2014-04-17  Pat Haugen  <pthaugen@us.ibm.com>
28178         * config/rs6000/rs6000.md (addti3, subti3): New.
28180 2014-04-17  H.J. Lu  <hongjiu.lu@intel.com>
28182         PR target/60863
28183         * config/i386/i386.c (ix86_expand_clear): Remove outdated
28184         comment.  Check optimize_insn_for_size_p instead of
28185         optimize_insn_for_speed_p.
28187 2014-04-17  Martin Jambor  <mjambor@suse.cz>
28189         * gimple-iterator.c (gsi_start_edge): New function.
28190         * gimple-iterator.h (gsi_start_edge): Declare.
28191         * tree-sra.c (single_non_eh_succ): New function.
28192         (disqualify_ops_if_throwing_stmt): Renamed to
28193         disqualify_if_bad_bb_terminating_stmt.  Allow throwing statements
28194         having one non-EH successor BB.
28195         (sra_modify_expr): If stmt ends bb, use single non-EH successor to
28196         generate loads into replacements.
28197         (sra_modify_assign): Likewise and and also use the simple path for
28198         such statements.
28199         (sra_modify_function_body): Commit statements on edges.
28201 2014-04-17  Richard Biener  <rguenther@suse.de>
28203         PR middle-end/60849
28204         * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
28205         comparison results and add clarifying comment.
28207 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
28209         * genmodes.c (struct mode_data): Add need_bytesize_adj field.
28210         (blank_mode): Initialize it.
28211         (emit_mode_size_inline, emit_mode_nunits_inline,
28212         emit_mode_inner_inline): New functions.
28213         (emit_insn_modes_h): Call them and surround their output with
28214         #if GCC_VERSION >= 4001 ... #endif.
28215         * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
28216         For GCC_VERSION >= 4001 use mode_*_inline routines instead of
28217         mode_* arrays if the argument is __builtin_constant_p.
28218         * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
28219         is enum machine_mode.
28221 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
28223         * passes.c (opt_pass::execute): Adjust.
28224         (pass_manager::execute_pass_mode_switching): Likewise.
28225         (early_local_passes::execute): Likewise.
28226         (execute_one_pass): Pass cfun to the pass's execute method.
28227         * tree-pass.h (opt_pass::execute): Add function * argument.
28228         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
28229         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
28230         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
28231         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
28232         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
28233         config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
28234         except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
28235         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
28236         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
28237         ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
28238         ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
28239         lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
28240         postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
28241         reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
28242         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
28243         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
28244         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
28245         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
28246         tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
28247         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
28248         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
28249         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
28250         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
28251         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
28252         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
28253         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
28254         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
28255         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
28256         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
28257         Adjust.
28259 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
28261         * passes.c (opt_pass::gate): Take function * argument.
28262         (gate_all_early_local_passes): Merge into
28263         (early_local_passes::gate): this.
28264         (gate_all_early_optimizations): Merge into
28265         (all_early_optimizations::gate): this.
28266         (gate_all_optimizations): Mege into
28267         (all_optimizations::gate): this.
28268         (gate_all_optimizations_g): Merge into
28269         (all_optimizations_g::gate): this.
28270         (gate_rest_of_compilation): Mege into
28271         (rest_of_compilation::gate): this.
28272         (gate_postreload): Merge into
28273         (postreload::gate): this.
28274         (dump_one_pass): Pass cfun to the pass's gate method.
28275         (execute_ipa_summary_passes): Likewise.
28276         (execute_one_pass): Likewise.
28277         (ipa_write_summaries_2): Likewise.
28278         (ipa_write_optimization_summaries_1): Likewise.
28279         (ipa_read_summaries_1): Likewise.
28280         (ipa_read_optimization_summaries_1): Likewise.
28281         (execute_ipa_stmt_fixups): Likewise.
28282         * tree-pass.h (opt_pass::gate): Add function * argument.
28283         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
28284         combine-stack-adj.c, combine.c, compare-elim.c,
28285         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
28286         config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
28287         config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
28288         dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c,  fwprop.c, gcse.c,
28289         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
28290         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
28291         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
28292         loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
28293         omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
28294         reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
28295         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
28296         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
28297         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
28298         tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
28299         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
28300         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
28301         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
28302         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
28303         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
28304         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
28305         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
28306         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
28307         tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
28308         tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
28309         var-tracking.c, vtable-verify.c, web.c: Adjust.
28311 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
28313         * configure.ac: Check for -Woverloaded-virtual and enable it if found.
28314         * configure: Regenerate.
28316 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
28318         * passes.c (dump_one_pass): don't check pass->has_gate.
28319         (execute_ipa_summary_passes): Likewise.
28320         (execute_one_pass): Likewise.
28321         (ipa_write_summaries_2): Likewise.
28322         (ipa_write_optimization_summaries_1): Likewise.
28323         (ipa_read_optimization_summaries_1): Likewise.
28324         (execute_ipa_stmt_fixups): Likewise.
28325         * tree-pass.h (pass_data::has_gate): Remove.
28326         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
28327         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
28328         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
28329         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
28330         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
28331         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
28332         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
28333         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
28334         gimple-low.c, gimple-ssa-isolate-paths.c,
28335         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
28336         ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
28337         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
28338         ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
28339         modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
28340         recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
28341         reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
28342         trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
28343         tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
28344         tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
28345         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
28346         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
28347         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
28348         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
28349         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
28350         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
28351         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
28352         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
28353         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
28354         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
28355         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
28356         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
28357         Adjust.
28359 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
28361         * pass_manager.h (pass_manager::register_dump_files_1): Remove
28362         declaration.
28363         * passes.c (pass_manager::register_dump_files_1): Merge into
28364         (pass_manager::register_dump_files): this, and remove its handling of
28365         properties since the pass always has the properties anyway.
28366         (pass_manager::pass_manager): Adjust.
28368 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
28370         * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
28371         * passes.c (pass_manager::register_dump_files_1): Remove dead code
28372         dealing with properties.
28373         (pass_manager::register_dump_files): Adjust.
28375 2014-03-20  Mark Wielaard  <mjw@redhat.com>
28377         * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
28378         then represent the bound as normal constant value.
28380 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
28382         PR target/60847
28383         Forward port from 4.8 branch
28384         2013-07-19  Kirill Yukhin  <kirill.yukhin@intel.com>
28386         * config/i386/bmiintrin.h (_blsi_u32): New.
28387         (_blsi_u64): Ditto.
28388         (_blsr_u32): Ditto.
28389         (_blsr_u64): Ditto.
28390         (_blsmsk_u32): Ditto.
28391         (_blsmsk_u64): Ditto.
28392         (_tzcnt_u32): Ditto.
28393         (_tzcnt_u64): Ditto.
28395 2014-04-17  Kito Cheng  <kito@0xlab.org>
28397         * gcc.c (used_arg): Prevent out of bound access for multilib_options.
28399 2014-04-17  Richard Biener  <rguenther@suse.de>
28401         PR middle-end/60849
28402         * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
28403         boolean results for comparisons.
28405 2014-04-17  Richard Biener  <rguenther@suse.de>
28407         PR tree-optimization/60836
28408         * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
28409         initial PHI args to be gimple values.
28411 2014-04-17  Richard Biener  <rguenther@suse.de>
28413         PR tree-optimization/60841
28414         * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
28415         * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
28416         of stmts to SLP build.
28417         * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
28418         (vect_analyze_slp): Likewise.
28419         (vect_analyze_slp_instance): Likewise.
28420         (vect_build_slp_tree): Limit overall SLP tree growth.
28421         * tree-vectorizer.h (vect_analyze_data_refs,
28422         vect_analyze_slp): Adjust prototypes.
28424 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
28426         * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
28427         Silvermont.
28429 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
28431         * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
28432         * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
28433         * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
28434         for TARGET_SLOW_PSHUFB
28436 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
28438         * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
28439         * config/i386/i386.c (intel_cost): Ditto.
28441 2014-04-17  Joey Ye  <joey.ye@arm.com>
28443         * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
28445 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
28447         * opts.c (common_handle_option): Disable -fipa-reference coorectly
28448         with -fuse-profile.
28450 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
28452         * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
28453         (type_all_derivations_known_p): New predicate.
28454         (type_all_ctors_visible_p): New predicate.
28455         (type_possibly_instantiated_p): New predicate.
28456         (get_odr_type): Compute all_derivations_known.
28457         (dump_odr_type): Dump the flag.
28458         (maybe_record_type): Cleanup.
28459         (record_target_from_binfo): Add bases_to_consider array;
28460         record bases for types w/o instances and skip CXX destructor.
28461         (possible_polymorphic_call_targets_1): Add bases_to_consider
28462         and consider_construction parameters; check if type may have instance.
28463         (get_polymorphic_call_info): Set maybe_in_construction to true
28464         when we know nothing.
28465         (record_targets_from_bases): Skip CXX destructors; they are
28466         never called for types in construction.
28467         (possible_polymorphic_call_targets): Do not record target when
28468         type may not have instance.
28470 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
28472         PR ipa/60854
28473         * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
28474         external aliases alive, too.
28476 2014-04-16  Andrew  Pinski  <apinski@cavium.com>
28478         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
28479         definition.
28481 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
28483         * final.c (compute_alignments): Do not apply loop alignment to a block
28484         falling through to the exit.
28486 2014-04-16  Catherine Moore  <clm@codesourcery.com>
28488         * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
28489         Adjust constraints for microMIPS store patterns.
28491 2014-04-16  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
28493         * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
28495 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
28497         * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
28498         (append_use): Run at -O0.
28499         (append_vdef): Likewise.
28500         * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
28501         * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
28503 2014-04-16  Jakub Jelinek  <jakub@redhat.com>
28505         PR tree-optimization/60844
28506         * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
28507         (propagate_op_to_single_use, remove_visited_stmt_chain,
28508         linearize_expr, repropagate_negates, reassociate_bb): Use it
28509         instead of gsi_remove.
28511 2014-04-16  Martin Jambor  <mjambor@suse.cz>
28513         * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
28514         ipa_transforms_to_apply.
28515         (cgraph_function_versioning): Assert that old_node has empty
28516         ipa_transforms_to_apply.
28517         * trans-mem.c (ipa_tm_create_version): Likewise.
28518         * tree-inline.c (tree_function_versioning): Do not duplicate
28519         ipa_transforms_to_apply.
28521 2014-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28523         PR target/60817
28524         * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
28525         x86_64-*-* cases.
28526         Pass necessary as flags on 64-bit Solaris/x86.
28527         Use lowercase relocs for x86_64-*-*.
28528         * configure: Regenerate.
28530 2014-04-15  Jan Hubicka  <jh@suse.cz>
28532         * ipa-devirt.c (referenced_from_vtable_p): New predicate.
28533         (maybe_record_node, likely_target_p): Use it.
28535 2014-04-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28537         PR target/60839
28538         Revert following patch
28540         2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
28542         PR target/60735
28543         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
28544         software floating point or no floating point registers, do not
28545         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
28546         in GPRs that occurs after we tested for GPRs that would never be
28547         true.
28549         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
28550         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
28551         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
28552         specifically allow DDmode, since that does not use the SPE SIMD
28553         instructions.
28555 2014-03-21  Mark Wielaard  <mjw@redhat.com>
28557         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
28558         as unsigned or int depending on type and value used.
28560 2014-04-15  Richard Biener  <rguenther@suse.de>
28562         PR rtl-optimization/56965
28563         * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
28564         * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
28565         ... here.
28566         * alias.c (true_dependence_1): Do not call
28567         nonoverlapping_component_refs_p.
28568         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
28569         nonoverlapping_component_refs_p.
28570         (indirect_refs_may_alias_p): Likewise.
28572 2014-04-15  Teresa Johnson  <tejohnson@google.com>
28574         * cfg.c (dump_bb_info): Fix flags check.
28575         * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
28577 2014-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28579         PR rtl-optimization/60663
28580         * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
28581         avoid 0 cost.
28583 2014-04-15  Richard Biener  <rguenther@suse.de>
28585         * lto-streamer.h (LTO_major_version): Bump to 4.
28587 2014-04-15  Richard Biener  <rguenther@suse.de>
28589         * common.opt (lto_partition_model): New enum.
28590         (flto-partition=): Merge separate options with a single with argument,
28591         add -flto-partition=one support.
28592         * flag-types.h (enum lto_partition_model): Declare.
28593         * opts.c (finish_options): Remove duplicate -flto-partition=
28594         option check.
28595         * lto-wrapper.c (run_gcc): Adjust.
28597 2014-04-15  Richard Biener  <rguenther@suse.de>
28599         * alias.c (ncr_compar): New function.
28600         (nonoverlapping_component_refs_p): Re-implement in O (n log n).
28602 2014-04-15  Richard Biener  <rguenther@suse.de>
28604         * alias.c (record_component_aliases): Do not walk BINFOs.
28606 2014-04-15  Richard Biener  <rguenther@suse.de>
28608         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
28609         Add struct function argument and adjust.
28610         (find_func_aliases_for_call): Likewise.
28611         (find_func_aliases): Likewise.
28612         (find_func_clobbers): Likewise.
28613         (intra_create_variable_infos): Likewise.
28614         (compute_points_to_sets): Likewise.
28615         (ipa_pta_execute): Adjust.  Do not push/pop cfun.
28617 2014-04-15  Richard Biener  <rguenther@suse.de>
28619         * tree.c (iterative_hash_expr): Use enum tree_code_class
28620         to store TREE_CODE_CLASS.
28621         (tree_block): Likewise.
28622         (tree_set_block): Likewise.
28623         * tree.h (fold_build_pointer_plus_loc): Use
28624         convert_to_ptrofftype_loc.
28626 2014-04-15  Jakub Jelinek  <jakub@redhat.com>
28628         PR plugins/59335
28629         * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
28630         added in 4.9.
28632 2014-04-15  Eric Botcazou  <ebotcazou@adacore.com>
28634         * cfgloop.h (struct loop): Move force_vectorize down.
28635         * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
28636         (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
28637         * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
28638         * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
28639         * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
28640         * tree-core.h (enum annot_expr_kind): Add new kind values.
28641         * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
28642         * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
28643         kinds.
28644         * tree.def (ANNOTATE_EXPR): Tweak comment.
28646 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
28648         * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
28649         cxa_pure_virtual).
28651 2014-04-14  Paolo Carlini  <paolo.carlini@oracle.com>
28653         * tree.h (TYPE_IDENTIFIER): Declare.
28654         * tree.c (subrange_type_for_debug_p): Use it.
28655         * godump.c (go_format_type): Likewise.
28656         * dwarf2out.c (is_cxx_auto, modified_type_die,
28657         gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
28658         * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
28660 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
28662         PR lto/60820
28663         * varpool.c (varpool_remove_node): Do not alter decls when streaming.
28665 2014-04-14  Uros Bizjak  <ubizjak@gmail.com>
28667         * config/i386/i386.c (examine_argument): Return bool.  Return true if
28668         parameter should be passed in memory.
28669         <case X86_64_COMPLEX_X87_CLASS>: Adjust.
28670         (construct_container): Update calls to examine_argument.
28671         (function_arg_advance_64): Ditto.
28672         (return_in_memory_32): Merge with ix86_return_in_memory.
28673         (return_in_memory_64): Ditto.
28674         (return_in_memory_ms_64): Ditto.
28676 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
28678         * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
28679         * coverage.c (coverage_compute_profile_id): Handle externally visible
28680         symbols.
28682 2014-04-14  Martin Jambor  <mjambor@suse.cz>
28684         * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
28685         DECL_DISREGARD_INLINE_LIMITS functions.
28687 2014-04-14  H.J. Lu  <hongjiu.lu@intel.com>
28689         PR target/60827
28690         * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
28692 2014-04-14  H.J. Lu  <hongjiu.lu@intel.com>
28694         PR target/60827
28695         * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
28696         optimize_insn_for_speed_p instead of
28697         optimize_function_for_speed_p.
28699 2014-04-14  Yufeng Zhang  <yufeng.zhang@arm.com>
28701         * doc/invoke.texi (free): Document AArch64.
28703 2014-04-14  Richard Biener  <rguenther@suse.de>
28705         PR tree-optimization/60042
28706         * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
28707         (insert_into_preds_of_block): Do not prevent PHI insertion
28708         for REFERENCE exprs here ...
28709         (eliminate_dom_walker::before_dom_children): ... but prevent
28710         their use here under similar conditions when applied to the
28711         IL after PRE optimizations.
28713 2014-04-14  Richard Biener  <rguenther@suse.de>
28715         * passes.def: Move early points-to after early SRA.
28717 2014-04-14  Richard Biener  <rguenther@suse.de>
28719         * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
28720         check for which sign-changes we allow when forwarding
28721         a converted value into a switch.
28723 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
28725         * stor-layout.c (place_field): Finalize non-constant offset for the
28726         field, if any.
28728 2014-04-14  Richard Biener  <rguenther@suse.de>
28730         * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
28731         as argument.
28732         (expand_switch_using_bit_tests_p): Likewise.
28733         (process_switch): Compute and pass on speed_p based on the
28734         switch stmt.
28735         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
28736         optimize_bb_for_speed_p.
28738 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
28740         * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
28741         * function.h (struct function): Rename has_force_vect_loops into
28742         has_force_vectorize_loops.
28743         * lto-streamer-in.c (input_cfg): Adjust for renaming.
28744         (input_struct_function_base): Likewise.
28745         * lto-streamer-out.c (output_cfg): Likewise.
28746         (output_struct_function_base): Likewise.
28747         * omp-low.c (expand_omp_simd): Likewise.
28748         * tree-cfg.c (move_sese_region_to_fn): Likewise.
28749         * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
28750         (version_loop_for_if_conversion): Likewise.
28751         (tree_if_conversion): Likewise.
28752         (main_tree_if_conversion): Likewise.
28753         (gate_tree_if_conversion): Likewise.
28754         * tree-inline.c (copy_loops): Likewise.
28755         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
28756         * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
28757         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
28758         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
28759         * tree-vectorizer.c (vectorize_loops): Likewise.
28760         * tree-vectorizer.h (unlimited_cost_model): Likewise.
28762 2014-04-14  Richard Biener  <rguenther@suse.de>
28764         PR lto/60720
28765         * lto-streamer-out.c (wrap_refs): New function.
28766         (lto_output): Wrap symbol references in global initializes in
28767         type-preserving MEM_REFs.
28769 2014-04-14  Christian Bruel  <christian.bruel@st.com>
28771         * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
28773 2014-04-14  Christian Bruel  <christian.bruel@st.com>
28775         * config/sh/sh.md (setmemqi): New expand pattern.
28776         * config/sh/sh.h (CLEAR_RATIO): Define.
28777         * config/sh/sh-mem.cc (sh_expand_setmem): Define.
28778         * config/sh/sh-protos.h (sh_expand_setmem): Declare.
28780 2014-04-14  Richard Biener  <rguenther@suse.de>
28782         PR middle-end/55022
28783         * fold-const.c (negate_expr_p): Don't negate directional rounding
28784         division.
28785         (fold_negate_expr): Likewise.
28787 2014-04-14  Richard Biener  <rguenther@suse.de>
28789         PR tree-optimization/59817
28790         PR tree-optimization/60453
28791         * graphite-scop-detection.c (graphite_can_represent_scev): Complete
28792         recursion to catch all CHRECs in the scalar evolution and restrict
28793         the predicate for the remains appropriately.
28795 2014-04-12  Catherine Moore  <clm@codesourcery.com>
28797         * config/mips/constraints.md: Add new register constraint "kb".
28798         * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
28799         (*movhi_internal): Likewise.
28800         (*movqi_internal): Likewise.
28801         * config/mips/mips.h (M16_STORE_REGS): New register class.
28802         (REG_CLASS_NAMES): Add M16_STORE_REGS.
28803         (REG_CLASS_CONTENTS): Likewise.
28804         * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
28806 2014-04-11  Tobias Burnus  <burnus@net-b.de>
28808         PR c/60194
28809         * doc/invoke.texi (-Wformat-signedness): Document it.
28810         (Wformat=2): Mention that this enables -Wformat-signedness.
28812 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
28814         * common/config/epiphany/epiphany-common.c
28815         (epiphany_option_optimization_table): Enable section anchors by
28816         default at -O1 or higher.
28817         * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
28818         (TARGET_MIN_ANCHOR_OFFSET): Likewise.
28819         (epiphany_rtx_costs) <SET>: For binary operators, the set as such
28820         carries no extra cost.
28821         (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
28822         * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
28823         * config/epiphany/predicates.md (memclob_operand): New predicate.
28824         * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
28825         Use memclob_operand predicate and X constraint for operand 3.
28827 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
28829         * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
28830         with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
28831         its operands.
28833 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
28835         PR rtl-optimization/60651
28836         * mode-switching.c (optimize_mode_switching): Make sure to emit
28837         sets of a lower numbered entity before sets of a higher numbered
28838         entity to a mode of the same or lower priority.
28839         When creating a seginfo for a basic block that starts with a code
28840         label, move the insertion point past the code label.
28841         (new_seginfo): Document and enforce requirement that
28842         NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
28843         * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
28844         * doc/tm.texi: Regenerate.
28846 2014-01-11  Joern Rennecke  <joern.rennecke@embecosm.com>
28848         PR target/60811
28849         * config/arc/arc.c (arc_save_restore): Fix assert typo.
28851 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
28853         * BASE-VER: Set to 4.10.0.
28855 2014-04-11  Tobias Burnus  <burnus@net-b.de>
28857         PR other/59055
28858         * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
28859         * doc/gcc.texi (Service): Update description in the @menu
28860         * doc/invoke.texi (Option Summary): Remove misplaced and
28861         duplicated @menu.
28863 2014-04-11  Steve Ellcey  <sellcey@mips.com>
28864             Jakub Jelinek  <jakub@redhat.com>
28866         PR middle-end/60556
28867         * expr.c (convert_move): Use emit_store_flag_force instead of
28868         emit_store_flag.  Pass lowpart_mode instead of VOIDmode as 5th
28869         argument to it.
28871 2014-04-11  Richard Biener  <rguenther@suse.de>
28873         PR middle-end/60797
28874         * varasm.c (assemble_alias): Avoid endless error reporting
28875         recursion by setting TREE_ASM_WRITTEN.
28877 2014-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28879         * config/s390/s390.md: Add a splitter for NOT rtx.
28881 2014-04-11  Jakub Jelinek  <jakub@redhat.com>
28883         PR rtl-optimization/60663
28884         * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
28886 2014-04-10  Jan Hubicka  <hubicka@ucw.cz>
28887             Jakub Jelinek  <jakub@redhat.com>
28889         PR lto/60567
28890         * ipa.c (function_and_variable_visibility): Copy forced_by_abi
28891         flag from decl_node to node.
28893 2014-04-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
28895         PR debug/60655
28896         * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
28897         (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
28898         ameliorating the cases where it can be.
28900 2014-04-09  David Edelsohn  <dje.gcc@gmail.com>
28902         Revert
28903         2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
28905         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
28906         (loadsync_<mode>): Change mode.
28907         (load_quadpti, store_quadpti): New.
28908         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
28909         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
28910         * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
28912 2014-04-09  Cong Hou  <congh@google.com>
28914         PR testsuite/60773
28915         * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
28916         documentation.
28918 2014-04-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28920         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
28921         instead of vnor to exploit possible fusion opportunity in the
28922         future.
28923         (altivec_expand_vec_perm_const_le): Likewise.
28925 2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
28927         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
28928         (loadsync_<mode>): Change mode.
28929         (load_quadpti, store_quadpti): New.
28930         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
28931         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
28933 2014-04-08  Richard Sandiford  <rdsandiford@googlemail.com>
28935         PR target/60763
28936         * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
28937         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
28938         Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
28940 2014-04-08  Richard Biener  <rguenther@suse.de>
28942         PR middle-end/60706
28943         * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
28944         a 64bit widest int print double-int similar to on HWI64 hosts.
28946 2014-04-08  Richard Biener  <rguenther@suse.de>
28948         PR tree-optimization/60785
28949         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
28950         default defs properly.
28952 2014-04-08  Nathan Sidwell  <nathan@codesourcery.com>
28954         * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
28955         (Weffc++): Likewise.
28957 2014-04-07  Jan Hubicka  <hubcika@ucw.cz>
28959         * ipa-devirt.c (maybe_record_node): When node is not recorded,
28960         set completep to false rather than true.
28962 2014-04-07  Douglas B Rupp  <rupp@adacore.com>
28964         PR target/60504
28965         * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
28966         ARM_TARGET2_DWARF_FORMAT.
28968 2014-04-07  Charles Baylis  <charles.baylis@linaro.org>
28970         PR target/60609
28971         * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
28972         (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
28973         ADDR_DIFF_VEC.
28975 2014-04-07  Richard Biener  <rguenther@suse.de>
28977         PR tree-optimization/60766
28978         * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
28979         (may_eliminate_iv): Convert cand_value_at result to desired type.
28981 2014-04-07  Jason Merrill  <jason@redhat.com>
28983         PR c++/60731
28984         * common.opt (-fno-gnu-unique): Add.
28985         * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
28987 2014-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28989         * haifa-sched.c: Fix outdated function reference and minor
28990         grammar errors in introductory comment.
28992 2014-04-07  Richard Biener  <rguenther@suse.de>
28994         PR middle-end/60750
28995         * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
28996         for noreturn calls.
28997         * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
28999 2014-04-06  John David Anglin  <danglin@gcc.gnu.org>
29001         PR debug/55794
29002         * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
29003         size accounting for thunks.
29004         (pa_asm_output_mi_thunk): Use final_start_function() and
29005         final_end_function() to output function start and end directives.
29007 2014-04-05  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
29009         * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
29010         device specific ISA/ feature information. Remove short_sp and
29011         errata_skip ds.  Add avr_device_specific_features enum to have device
29012         specific info.
29013         * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
29014         errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
29015         * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
29016         updated device specific info.
29017         * config/avr/avr-mcus.def: Merge device specific details to
29018         dev_attribute field.
29019         * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
29020         errata_skip.
29021         * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
29022         * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
29023         assembler if RMW isa supported by current device.
29024         * config/avr/genmultilib.awk: Update as device info structure changed.
29025         * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
29027 2014-04-04  Cong Hou  <congh@google.com>
29029         PR tree-optimization/60656
29030         * tree-vect-stmts.c (supportable_widening_operation):
29031         Fix a bug that elements in a vector with vect_used_by_reduction
29032         property are incorrectly reordered when the operation on it is not
29033         consistant with the one in reduction operation.
29035 2014-04-04  John David Anglin  <danglin@gcc.gnu.org>
29037         PR rtl-optimization/60155
29038         * gcse.c (record_set_data): New function.
29039         (single_set_gcse): New function.
29040         (gcse_emit_move_after): Use single_set_gcse instead of single_set.
29041         (hoist_code): Likewise.
29042         (get_pressure_class_and_nregs): Likewise.
29044 2014-04-04  Eric Botcazou  <ebotcazou@adacore.com>
29046         * explow.c (probe_stack_range): Emit a final optimization blockage.
29048 2014-04-04  Anthony Green  <green@moxielogic.com>
29050         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
29051         typos.
29053 2014-04-04  Jan Hubicka  <hubicka@ucw.cz>
29055         PR ipa/59626
29056         * lto-cgraph.c (input_overwrite_node): Check that partitioning
29057         flags are set only during streaming.
29058         * ipa.c (process_references, walk_polymorphic_call_targets,
29059         symtab_remove_unreachable_nodes): Drop bodies of always inline
29060         after early inlining.
29061         (symtab_remove_unreachable_nodes): Remove always_inline attribute.
29063 2014-04-04  Jakub Jelinek  <jakub@redhat.com>
29064         Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
29066         PR debug/60655
29067         * dwarf2out.c (const_ok_for_output_1): Reject expressions
29068         containing a NOT.
29070 2014-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29072         PR bootstrap/60743
29073         * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
29074         duration.
29075         (cortex_a53_fdivd): Likewise.
29077 2014-04-04  Martin Jambor  <mjambor@suse.cz>
29079         PR ipa/60640
29080         * cgraph.h (cgraph_clone_node): New parameter added to declaration.
29081         Adjust all callers.
29082         * cgraph.c (clone_of_p): Also return true if thunks match.
29083         (verify_edge_corresponds_to_fndecl): Removed extraneous call to
29084         cgraph_function_or_thunk_node and an obsolete comment.
29085         * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
29086         file.
29087         (build_function_decl_skip_args): Likewise.
29088         (set_new_clone_decl_and_node_flags): New function.
29089         (duplicate_thunk_for_node): Likewise.
29090         (redirect_edge_duplicating_thunks): Likewise.
29091         (cgraph_clone_node): New parameter args_to_skip, pass it to
29092         redirect_edge_duplicating_thunks which is called instead of
29093         cgraph_redirect_edge_callee.
29094         (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
29095         moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
29097 2014-04-04  Jeff Law  <law@redhat.com>
29099         PR target/60657
29100         * config/arm/predicates.md (const_int_I_operand): New predicate.
29101         (const_int_M_operand): Similarly.
29102         * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
29103         const_int_operand.
29104         (insv_t2, extv_reg, extzv_t2): Likewise.
29105         (load_multiple_with_writeback): Similarly for const_int_I_operand.
29106         (pop_multiple_with_writeback_and_return): Likewise.
29107         (vfp_pop_multiple_with_writeback): Likewise
29109 2014-04-04  Richard Biener  <rguenther@suse.de>
29111         PR ipa/60746
29112         * tree-ssanames.c (make_ssa_name_fn): Fix assert.
29113         * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
29114         non-GIMPLE_LABELs.
29115         * gimplify.h (gimple_add_tmp_var_fn): Declare.
29116         * gimplify.c (gimple_add_tmp_var_fn): New function.
29117         * gimple-expr.h (create_tmp_reg_fn): Declare.
29118         * gimple-expr.c (create_tmp_reg_fn): New function.
29119         * gimple-low.c (record_vars_into): Don't change cfun.
29120         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
29121         code generation without cfun.
29123 2014-04-04  Thomas Schwinge  <thomas@codesourcery.com>
29125         PR bootstrap/60719
29126         * Makefile.in (install-driver): Fix shell scripting.
29128 2014-04-03  Cong Hou  <congh@google.com>
29130         PR tree-optimization/60505
29131         * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
29132         threshold of number of iterations below which no vectorization
29133         will be done.
29134         * tree-vect-loop.c (new_loop_vec_info):
29135         Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
29136         * tree-vect-loop.c (vect_analyze_loop_operations):
29137         Set LOOP_VINFO_COST_MODEL_THRESHOLD.
29138         * tree-vect-loop.c (vect_transform_loop):
29139         Use LOOP_VINFO_COST_MODEL_THRESHOLD.
29140         * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
29141         of iterations of the loop and see if we should build the epilogue.
29143 2014-04-03  Richard Biener  <rguenther@suse.de>
29145         * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
29146         (streamer_tree_cache_create): Adjust.
29147         * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
29148         to allow optional nodes array.
29149         (streamer_tree_cache_insert_1): Use next_idx to assign idx.
29150         (streamer_tree_cache_append): Likewise.
29151         (streamer_tree_cache_create): Create nodes array optionally
29152         as specified by parameter.
29153         * lto-streamer-out.c (create_output_block): Avoid maintaining
29154         the node array in the writer cache.
29155         (DFS_write_tree): Remove assertion.
29156         (produce_asm_for_decls): Free the out decl state hash table early.
29157         * lto-streamer-in.c (lto_data_in_create): Adjust for
29158         streamer_tree_cache_create prototype change.
29160 2014-04-03  Richard Biener  <rguenther@suse.de>
29162         * tree-streamer-out.c (streamer_write_chain): Do not temporarily
29163         set TREE_CHAIN to NULL_TREE.
29165 2014-04-03  Richard Biener  <rguenther@suse.de>
29167         PR tree-optimization/60740
29168         * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
29169         over all GIMPLE_COND operands.
29171 2014-04-03  Nathan Sidwell  <nathan@codesourcery.com>
29173         * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
29174         (Weffc++): Remove Scott's numbering, merge lists and reference
29175         Wnon-virtual-dtor.
29177 2014-04-03  Nick Clifton  <nickc@redhat.com>
29179         * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
29180         properly.
29182 2014-04-03  Martin Jambor  <mjambor@suse.cz>
29184         * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
29185         mention gcc_unreachable before failing.
29186         * ipa.c (symtab_remove_unreachable_nodes): Also print order of
29187         removed symbols.
29189 2014-04-02  Jan Hubicka  <hubicka@ucw.cz>
29191         PR ipa/60659
29192         * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
29193         inconsistent code and instead mark the context inconsistent.
29194         (possible_polymorphic_call_targets): For inconsistent contexts
29195         return empty complete list.
29197 2014-04-02  Anthony Green  <green@moxielogic.com>
29199         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
29200         (extendqisi2, extendhisi2): Define.
29201         * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
29202         (WCHAR_TYPE): Change to unsigned int.
29204 2014-04-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29206         PR tree-optimization/60733
29207         * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
29208         insertion point for PHI candidates to be the end of the feeding
29209         block for the PHI argument.
29211 2014-04-02  Vladimir Makarov  <vmakarov@redhat.com>
29213         PR rtl-optimization/60650
29214         * lra-constraints.c (process_alt_operands): Decrease reject for
29215         earlyclobber matching.
29217 2014-04-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29219         * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
29221 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29223         * config/spu/spu.c (pad_bb): Do not crash when the last
29224         insn is CODE_FOR_blockage.
29226 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29228         * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
29229         lies outside the target mode.
29231 2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
29233         PR target/60735
29234         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
29235         software floating point or no floating point registers, do not
29236         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
29237         in GPRs that occurs after we tested for GPRs that would never be
29238         true.
29240         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
29241         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
29242         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
29243         specifically allow DDmode, since that does not use the SPE SIMD
29244         instructions.
29246 2014-04-02  Richard Biener  <rguenther@suse.de>
29248         PR middle-end/60729
29249         * optabs.c (expand_abs_nojump): Honor flag_trapv only for
29250         MODE_INTs.  Properly use negv_optab.
29251         (expand_abs): Likewise.
29253 2014-04-02  Richard Biener  <rguenther@suse.de>
29255         PR bootstrap/60719
29256         * Makefile.in (install-driver): Guard extra installs with special
29257         names properly.
29259 2014-04-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
29261         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
29262         Document vec_vgbbd.
29264 2014-04-01  Richard Henderson  <rth@redhat.com>
29266         PR target/60704
29267         * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
29268         alternative enabled before register allocation.
29270 2014-04-01  Chung-Lin Tang  <cltang@codesourcery.com>
29272         * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
29273         * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
29274         typo.
29275         (nios2_large_got_address): Remove unneeded 'sym' parameter.
29276         (nios2_got_address): Update nios2_large_got_address call site.
29277         (nios2_delegitimize_address): New function.
29278         (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
29279         * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
29280         (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
29282 2014-04-01  Martin Husemann  <martin@duskware.de>
29284         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
29285         for -mabi=32.
29287 2014-04-01  Richard Sandiford  <rdsandiford@googlemail.com>
29289         PR rtl-optimization/60604
29290         * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
29291         check from register_operand.
29292         (register_operand): Redefine in terms of general_operand.
29293         (nonmemory_operand): Use register_operand for the non-constant cases.
29295 2014-04-01  Richard Biener  <rguenther@suse.de>
29297         * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
29299 2014-04-01  Sebastian Huber  <sebastian.huber@embedded-brains.de>
29301         * doc/invoke.texi (mapp-regs): Clarify.
29303 2014-03-31  Ulrich Drepper  <drepper@gmail.com>
29305         * config/i386/avx512fintrin.h (__v32hi): Define type.
29306         (__v64qi): Likewise.
29307         (_mm512_set1_epi8): Define.
29308         (_mm512_set1_epi16): Define.
29309         (_mm512_set4_epi32): Define.
29310         (_mm512_set4_epi64): Define.
29311         (_mm512_set4_pd): Define.
29312         (_mm512_set4_ps): Define.
29313         (_mm512_setr4_epi64): Define.
29314         (_mm512_setr4_epi32): Define.
29315         (_mm512_setr4_pd): Define.
29316         (_mm512_setr4_ps): Define.
29317         (_mm512_setzero_epi32): Define.
29319 2014-03-31  Martin Jambor  <mjambor@suse.cz>
29321         PR middle-end/60647
29322         * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
29323         callsite_arguments_match_p.  Updated all callers.  Also check types of
29324         corresponding formal parameters and actual arguments.
29325         (not_all_callers_have_enough_arguments_p) Renamed to
29326         some_callers_have_mismatched_arguments_p.
29328 2014-03-31  Yuri Rumyantsev  <ysrumyan@gmail.com>
29330         * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
29332 2014-03-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
29334         PR target/60034
29335         * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
29336         section anchor.
29338 2014-03-30  Uros Bizjak  <ubizjak@gmail.com>
29340         * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
29341         (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
29342         Split out
29343         <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
29344         Use FMAMODE_NOVF512 mode iterator.
29345         (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
29346         (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
29347         (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
29348         (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
29349         Split out
29350         <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
29351         Use VF_128_256 mode iterator.
29352         (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
29353         Ditto.
29355 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
29357         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
29358         static chain if needed.
29360 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
29362         PR target/60697
29363         * lra-constraints.c (index_part_to_reg): New.
29364         (process_address): Use it.
29366 2014-03-27  Jeff Law  <law@redhat.com>
29367             Jakub Jelinek  <jakub@redhat.com>
29369         PR target/60648
29370         * expr.c (do_tablejump): Use simplify_gen_binary rather than
29371         gen_rtx_{PLUS,MULT} to build up the address expression.
29373         * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
29374         creating non-canonical RTL.
29376 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
29378         PR ipa/60243
29379         * ipa-inline.c (want_inline_small_function_p): Short circuit large
29380         functions; reorganize to make cheap checks first.
29381         (inline_small_functions): Do not estimate growth when dumping;
29382         it is expensive.
29383         * ipa-inline.h (inline_summary): Add min_size.
29384         (growth_likely_positive): New function.
29385         * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
29386         (set_cond_stmt_execution_predicate): Cleanup.
29387         (estimate_edge_size_and_time): Compute min_size.
29388         (estimate_calls_size_and_time): Likewise.
29389         (estimate_node_size_and_time): Likewise.
29390         (inline_update_overall_summary): Update min_size.
29391         (do_estimate_edge_time): Likewise.
29392         (do_estimate_edge_size): Update.
29393         (do_estimate_edge_hints): Update.
29394         (growth_likely_positive): New function.
29396 2014-03-28  Jakub Jelinek  <jakub@redhat.com>
29398         PR target/60693
29399         * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
29400         also if addr has VOIDmode.
29402 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29404         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
29405         * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
29406         Declare extern.
29407         * config/arm/cortex-a53.md: Add reservations and bypass for crypto
29408         instructions as well as AdvancedSIMD loads.
29410 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29412         * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
29413         Use crypto_aese type.
29414         (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
29415         * config/arm/arm.md (is_neon_type): Replace crypto_aes with
29416         crypto_aese, crypto_aesmc.  Move to types.md.
29417         * config/arm/types.md (crypto_aes): Split into crypto_aese,
29418         crypto_aesmc.
29419         * config/arm/iterators.md (crypto_type): Likewise.
29421 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
29423         * cgraph.c: Include expr.h and tree-dfa.h.
29424         (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
29425         remove LHS.
29427 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
29429         PR target/60675
29430         * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
29431         regs from checking multi-reg pseudos.
29433 2014-03-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
29435         * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
29437 2014-03-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29439         * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
29440         if it would clobber the stack pointer, even temporarily.
29442 2014-03-28  Eric Botcazou  <ebotcazou@adacore.com>
29444         * mode-switching.c: Make small adjustments to the top comment.
29446 2014-03-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
29448         * config/rs6000/constraints.md (wD constraint): New constraint to
29449         match the constant integer to get the top DImode/DFmode out of a
29450         vector in a VSX register.
29452         * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
29453         match the constant integer to get the top DImode/DFmode out of a
29454         vector in a VSX register.
29456         * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
29457         for ISA 2.07.
29459         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
29460         vbpermq builtins.
29462         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
29463         -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
29465         * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
29466         Optimize vec_extract of 64-bit values, where the value being
29467         extracted is in the top word, where we can use scalar
29468         instructions.  Add direct move and store support.  Combine the big
29469         endian/little endian vector select load support into a single insn.
29470         (vsx_extract_<mode>_internal1): Likewise.
29471         (vsx_extract_<mode>_internal2): Likewise.
29472         (vsx_extract_<mode>_load): Likewise.
29473         (vsx_extract_<mode>_store): Likewise.
29474         (vsx_extract_<mode>_zero): Delete, big and little endian insns are
29475         combined into vsx_extract_<mode>_load.
29476         (vsx_extract_<mode>_one_le): Likewise.
29478         * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
29479         define the top 64-bit vector element.
29481         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
29482         constraint.
29484         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
29485         Document vec_vbpermq builtin.
29487         PR target/60672
29488         * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
29489         enable use of xxsldwi and xxpermdi builtin functions.
29490         (vec_xxpermdi): Likewise.
29492         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
29493         Document use of vec_xxsldwi and vec_xxpermdi builtins.
29495 2014-03-27  Vladimir Makarov  <vmakarov@redhat.com>
29497         PR rtl-optimization/60650
29498         * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
29499         first_p.  Use it.
29500         (find_spills_for): New.
29501         (assign_by_spills): Pass the new parameter to find_hard_regno_for.
29502         Spill all pseudos on the second iteration.
29504 2014-03-27  Marek Polacek  <polacek@redhat.com>
29506         PR c/50347
29507         * doc/extend.texi (ffs Builtins): Change unsigned types to signed
29508         types.
29510 2014-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29512         * config/s390/s390.c (s390_can_use_return_insn): Check for
29513         call-saved FPRs on 31 bit.
29515 2014-03-27  Jakub Jelinek  <jakub@redhat.com>
29517         PR middle-end/60682
29518         * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
29519         if they need regimplification, just drop them instead of
29520         calling gimple_regimplify_operands on them.
29522 2014-03-27  Marcus Shawcroft  <marcus.shawcroft@arm.com>
29524         PR target/60580
29525         * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
29526         (aarch64_frame_pointer_required): Adjust logic.
29527         (aarch64_can_eliminate): Adjust logic.
29528         (aarch64_override_options_after_change): Adjust logic.
29530 2014-03-27  Dehao Chen  <dehao@google.com>
29532         * ipa-inline.c (early_inliner): Update node's inline info.
29534 2014-03-26  Dehao Chen  <dehao@google.com>
29536         * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
29537         compiler inserted conditional jumps for NAN float check.
29539 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
29541         * ubsan.h (ubsan_create_data): Change second argument's type
29542         to const location_t *.
29543         * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
29544         _("<unknown>").
29545         (ubsan_create_data): Change second argument to const location_t *PLOC.
29546         Create Loc field whenever PLOC is non-NULL.
29547         (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
29548         ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
29549         callers.
29551         PR other/59545
29552         * real.c (real_to_integer2): Change type of low to UHWI.
29554 2014-03-26  Tobias Burnus  <burnus@net-b.de>
29556         * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
29557         (CILK_SELF_SPECS): New define.
29558         (driver_self_specs): Use it.
29560 2014-03-26  Richard Biener  <rguenther@suse.de>
29562         * tree-pretty-print.c (percent_K_format): Implement special
29563         case for LTO and its stripped down BLOCK tree.
29565 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
29567         PR sanitizer/60636
29568         * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
29570         * tree-vrp.c (simplify_internal_call_using_ranges): If only
29571         one range is range_int_cst_p, but not both, at least optimize
29572         addition/subtraction of 0 and multiplication by 0 or 1.
29573         * gimple-fold.c (gimple_fold_call): Fold
29574         IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
29575         (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
29576         INTEGER_CSTs, try to fold at least x * 0 and y - y.
29578 2014-03-26  Eric Botcazou  <ebotcazou@adacore.com>
29580         PR rtl-optimization/60452
29581         * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
29582         <case REG>: Return 1 for invalid offsets from the frame pointer.
29584 2014-03-26  Marek Polacek  <polacek@redhat.com>
29586         PR c/37428
29587         * doc/extend.texi (C Extensions): Mention variable-length arrays in
29588         a structure/union.
29590 2014-03-26  Marek Polacek  <polacek@redhat.com>
29592         PR c/39525
29593         * doc/extend.texi (Designated Inits): Describe what happens to omitted
29594         field members.
29596 2014-03-26  Marek Polacek  <polacek@redhat.com>
29598         PR other/59545
29599         * ira-color.c (update_conflict_hard_regno_costs): Perform the
29600         multiplication in unsigned type.
29602 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
29604         * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
29606 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
29608         * doc/contrib.texi: Add myself as Andes nds32 port contributor.
29610 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
29612         PR ipa/60315
29613         * cif-code.def (UNREACHABLE) New code.
29614         * ipa-inline.c (inline_small_functions): Skip edges to
29615         __builtlin_unreachable.
29616         (estimate_edge_growth): Allow edges to __builtlin_unreachable.
29617         * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
29618         predicate to __bulitin_unreachable.
29619         (set_cond_stmt_execution_predicate): Fix issue when
29620         invert_tree_comparison returns ERROR_MARK.
29621         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
29622         propagate to inline clones.
29623         * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
29624         to unreachable.
29625         * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
29626         * cgraphclones.c (cgraph_clone_node): If call destination is already
29627         ureachable, do not redirect it back.
29628         * tree-inline.c (fold_marked_statements): Hanlde calls becoming
29629         unreachable.
29631 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
29633         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
29634         Do not modify inline clones.
29636 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
29638         * config/i386/i386.md (general_sext_operand): New mode attr.
29639         (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
29640         don't generate (sign_extend (const_int)).
29641         (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
29642         operands[2].  Use We constraint instead of <i> and
29643         <general_sext_operand> predicate instead of <general_operand>.
29644         (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
29645         * config/i386/constraints.md (We): New constraint.
29646         * config/i386/predicates.md (x86_64_sext_operand,
29647         sext_operand): New predicates.
29649 2014-03-25  Martin Jambor  <mjambor@suse.cz>
29651         PR ipa/60600
29652         * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
29653         inconsistent devirtualizations to __builtin_unreachable.
29655 2014-03-25  Marek Polacek  <polacek@redhat.com>
29657         PR c/35449
29658         * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
29660 2014-03-25  Alan Lawrence  <alan.lawrence@arm.com>
29662         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
29663         order of elements for big-endian.
29665 2014-03-25  Richard Biener  <rguenther@suse.de>
29667         PR middle-end/60635
29668         * gimplify-me.c (gimple_regimplify_operands): Update the
29669         re-gimplifed stmt.
29671 2014-03-25  Martin Jambor  <mjambor@suse.cz>
29673         PR ipa/59176
29674         * lto-cgraph.c (lto_output_node): Stream body_removed flag.
29675         (lto_output_varpool_node): Likewise.
29676         (input_overwrite_node): Likewise.
29677         (input_varpool_node): Likewise.
29679 2014-03-25  Richard Biener  <rguenther@suse.de>
29681         * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
29682         (run_gcc): Likewise.
29684 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
29686         * combine.c (simplify_compare_const): Add MODE argument.
29687         Handle mode_width 0 as very large mode_width.
29688         (try_combine, simplify_comparison): Adjust callers.
29690         * cselib.c (cselib_hash_rtx): Perform addition in unsigned
29691         type to avoid signed integer overflow.
29692         * explow.c (plus_constant): Likewise.
29694 2014-03-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
29696         * doc/generic.texi: Correct typos.
29698 2014-03-24  Tobias Burnus  <burnus@net-b.de>
29700         * doc/invoke.texi (-flto): Expand section about
29701         using static libraries with LTO.
29703 2014-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29705         PR rtl-optimization/60501
29706         * optabs.def (addptr3_optab): New optab.
29707         * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
29708         * doc/md.texi ("addptrm3"): Document new RTL standard expander.
29709         * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
29711         * lra.c (emit_add3_insn): Use the addptr pattern if available.
29713         * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
29715 2014-03-24  Ulrich Drepper  <drepper@gmail.com>
29717         * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
29718         _mm512_set1_pd.
29720         * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
29721         (_mm256_undefined_ps): Define.
29722         (_mm256_undefined_pd): Define.
29723         * config/i386/emmintrin.h (_mm_undefined_si128): Define.
29724         (_mm_undefined_pd): Define.
29725         * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
29726         * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
29727         (_mm512_undefined_ps): Define.
29728         (_mm512_undefined_pd): Define.
29729         Use _mm*_undefined_*.
29730         * config/i386/avx2intrin.h: Use _mm*_undefined_*.
29732 2014-03-24  Alex Velenko  <Alex.Velenko@arm.com>
29734         * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
29735         (lshr_simd): DI mode added.
29736         * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
29737         (aarch64_ushr_simddi): Likewise.
29738         * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
29739         * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
29740         (vshrd_n_u64): Likewise.
29742 2014-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29744         * Makefile.in (s-macro_list): Depend on cc1.
29746 2014-03-23  Teresa Johnson  <tejohnson@google.com>
29748         * ipa-utils.c (ipa_print_order): Use specified dump file.
29750 2014-03-23  Eric Botcazou  <ebotcazou@adacore.com>
29752         PR rtl-optimization/60601
29753         * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
29755         * gcc.c (eval_spec_function): Initialize save_growing_value.
29757 2014-03-22  Jakub Jelinek  <jakub@redhat.com>
29759         PR sanitizer/60613
29760         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
29761         code == MINUS_EXPR, never swap op0 with op1.
29763         * toplev.c (init_local_tick): Avoid signed integer multiplication
29764         overflow.
29765         * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
29766         shift by first operand's bitsize.
29768 2014-03-21  Jakub Jelinek  <jakub@redhat.com>
29770         PR target/60610
29771         * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
29772         redefine to 1 or 0.
29773         * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
29774         TARGET_ISA_64BIT_P(x).
29776 2014-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29778         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
29779         pattern for vector nor instead of subtract from splat(-1).
29780         (altivec_expand_vec_perm_const_le): Likewise.
29782 2014-03-21  Richard Henderson  <rth@twiddle.net>
29784         PR target/60598
29785         * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
29786         related insns after epilogue_completed.
29788 2014-03-21  Martin Jambor  <mjambor@suse.cz>
29790         PR ipa/59176
29791         * cgraph.h (symtab_node): New flag body_removed.
29792         * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
29793         when removing bodies.
29794         * symtab.c (dump_symtab_base): Dump body_removed flag.
29795         * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
29796         had their bodies removed.
29798 2014-03-21  Martin Jambor  <mjambor@suse.cz>
29800         PR ipa/60419
29801         * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
29802         in the border.
29804 2014-03-21  Richard Biener  <rguenther@suse.de>
29806         PR tree-optimization/60577
29807         * tree-core.h (struct tree_base): Document nothrow_flag use
29808         in DECL_NONALIASED.
29809         * tree.h (DECL_NONALIASED): New.
29810         (may_be_aliased): Adjust.
29811         * coverage.c (build_var): Set DECL_NONALIASED.
29813 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
29815         * expr.c (expand_expr_real_1): Remove outdated comment.
29817 2014-03-20  Jakub Jelinek  <jakub@redhat.com>
29819         PR middle-end/60597
29820         * ira.c (adjust_cleared_regs): Call copy_rtx on
29821         *reg_equiv[REGNO (loc)].src_p before passing it to
29822         simplify_replace_fn_rtx.
29824         PR target/60568
29825         * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
29826         into CONST, put pic register as first operand of PLUS.  Use
29827         gen_const_mem for both 32-bit and 64-bit PIC got loads.
29829 2014-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
29831         * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
29833 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
29835         * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
29836         around for store forwarding issue in the FPU on the UT699.
29837         * config/sparc/sparc.md (in_branch_delay): Return false for single FP
29838         loads and operations if -mfix-ut699 is specified.
29839         (divtf3_hq): Tweak attribute.
29840         (sqrttf2_hq): Likewise.
29842 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
29844         * calls.c (store_one_arg): Remove incorrect const qualification on the
29845         type of the temporary.
29846         * cfgexpand.c (expand_return): Likewise.
29847         * expr.c (expand_constructor): Likewise.
29848         (expand_expr_real_1): Likewise.
29850 2014-03-20  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
29852         * config/arm/arm.c (arm_dwarf_register_span): Update the element number
29853         of parts.
29855 2014-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
29857         PR target/60039
29858         * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
29860 2014-03-19  James Greenhalgh  <james.greenhalgh@arm.com>
29862         * config/arm/aarch-common-protos.h
29863         (alu_cost_table): Fix spelling of "extend".
29864         * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
29866 2014-03-19  Richard Biener  <rguenther@suse.de>
29868         PR middle-end/60553
29869         * tree-core.h (tree_type_common): Re-order pointer members
29870         to reduce recursion depth during GC walks.
29872 2014-03-19  Marek Polacek  <polacek@redhat.com>
29874         PR sanitizer/60569
29875         * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
29876         before accessing it.
29878 2014-03-19  Richard Biener  <rguenther@suse.de>
29880         PR lto/59543
29881         * lto-streamer-in.c (input_function): In WPA stage do not drop
29882         debug stmts.
29884 2014-03-19  Jakub Jelinek  <jakub@redhat.com>
29886         PR tree-optimization/60559
29887         * vectorizable_mask_load_store): Replace scalar MASK_LOAD
29888         with build_zero_cst assignment.
29890 2014-03-18  Kai Tietz  <ktietz@redhat.com>
29892         PR rtl-optimization/56356
29893         * sdbout.c (sdbout_parms): Verify that parms'
29894         incoming argument is valid.
29895         (sdbout_reg_parms): Likewise.
29897 2014-03-18  Richard Henderson  <rth@redhat.com>
29899         PR target/60562
29900         * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
29901         be shadowed by *float<SWI48><MODEF>2_sse.  Test X87_ENABLE_FLOAT.
29902         (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
29904 2014-03-18  Basile Starynkevitch  <basile@starynkevitch.net>
29906         * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
29907         * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
29908         Italicize plugin event names in description.  Explain that
29909         PLUGIN_PRAGMAS has no sense for lto1.  Explain PLUGIN_INCLUDE_FILE.
29910         Remind that no GCC functions should be called after PLUGIN_FINISH.
29911         Explain what pragmas with expansion are.
29913 2014-03-18  Martin Liska  <mliska@suse.cz>
29915         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
29916         gimple call statement is update.
29917         * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
29918         GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
29920 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
29922         PR sanitizer/60557
29923         * ubsan.c (ubsan_instrument_unreachable): Call
29924         initialize_sanitizer_builtins.
29925         (ubsan_pass): Likewise.
29927         PR sanitizer/60535
29928         * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
29929         varpool_finalize_decl instead of rest_of_decl_compilation.
29931 2014-03-18  Richard Biener  <rguenther@suse.de>
29933         * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
29934         by using bitmap_and_compl instead of bitmap_and_compl_into.
29935         (df_rd_transfer_function): Likewise.
29937 2014-03-18  Richard Biener  <rguenther@suse.de>
29939         * doc/lto.texi (fresolution): Fix typo.
29941 2014-03-18  Richard Biener  <rguenther@suse.de>
29943         * doc/invoke.texi (flto): Update for changes in 4.9.
29945 2014-03-18  Richard Biener  <rguenther@suse.de>
29947         * doc/loop.texi: Remove section on the removed lambda framework.
29948         Update loop docs with recent changes in preserving loop structure.
29950 2014-03-18  Richard Biener  <rguenther@suse.de>
29952         * doc/lto.texi (-fresolution): Document.
29954 2014-03-18  Richard Biener  <rguenther@suse.de>
29956         * doc/contrib.texi: Adjust my name.
29958 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
29960         PR ipa/58721
29961         * internal-fn.c: Include diagnostic-core.h.
29962         (expand_BUILTIN_EXPECT): New function.
29963         * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
29964         (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
29965         IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
29966         * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
29967         IFN_BUILTIN_EXPECT.
29968         * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
29969         Revert 3 argument __builtin_expect code.
29970         (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
29971         * gimple-fold.c (gimple_fold_call): Likewise.
29972         * tree.h (fold_builtin_expect): New prototype.
29973         * builtins.c (build_builtin_expect_predicate): Add predictor
29974         argument, if non-NULL, create 3 argument __builtin_expect.
29975         (fold_builtin_expect): No longer static.  Add ARG2 argument,
29976         pass it through to build_builtin_expect_predicate.
29977         (fold_builtin_2): Adjust caller.
29978         (fold_builtin_3): Handle BUILT_IN_EXPECT.
29979         * internal-fn.def (BUILTIN_EXPECT): New.
29981 2014-03-18  Tobias Burnus  <burnus@net-b.de>
29983         PR ipa/58721
29984         * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
29985         PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
29986         PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
29988 2014-03-18  Jan Hubicka  <hubicka@ucw.cz>
29990         PR ipa/58721
29991         * predict.c (combine_predictions_for_bb): Fix up formatting.
29992         (expr_expected_value_1, expr_expected_value): Add predictor argument,
29993         fill what it points to if non-NULL.
29994         (tree_predict_by_opcode): Adjust caller, use the predictor.
29995         * predict.def (PRED_COMPARE_AND_SWAP): Add.
29997 2014-03-18  Eric Botcazou  <ebotcazou@adacore.com>
29999         * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
30000         proper constant for the store mode.
30002 2014-03-18  Ilya Enkovich  <ilya.enkovich@intel.com>
30004         * symtab.c (change_decl_assembler_name): Fix transparent alias
30005         chain construction.
30007 2014-03-16  Renlin Li  <Renlin.Li@arm.com>
30009         * config/aarch64/aarch64.c: Correct the comments about the
30010         aarch64 stack layout.
30012 2014-03-18  Thomas Schwinge  <thomas@codesourcery.com>
30014         * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
30015         check for GF_OMP_FOR_KIND_FOR.
30017 2013-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
30019         * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
30020         ymm and zmm register names.
30022 2014-03-17  Jakub Jelinek  <jakub@redhat.com>
30024         PR target/60516
30025         * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
30026         note creation for the 2010-08-31 changes.
30028 2014-03-17  Marek Polacek  <polacek@redhat.com>
30030         PR middle-end/60534
30031         * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
30032         as -fno-tree-loop-vectorize.
30033         (expand_omp_simd): Likewise.
30035 2014-03-15  Eric Botcazou  <ebotcazou@adacore.com>
30037         * config/sparc/sparc-protos.h (tls_call_delay): Delete.
30038         (eligible_for_call_delay): New prototype.
30039         * config/sparc/sparc.c (tls_call_delay): Rename into...
30040         (eligible_for_call_delay): ...this.  Return false if the instruction
30041         cannot be put in the delay slot of a branch.
30042         (eligible_for_restore_insn): Simplify.
30043         (eligible_for_return_delay): Return false if the instruction cannot be
30044         put in the delay slot of a branch and simplify.
30045         (eligible_for_sibcall_delay): Return false if the instruction cannot be
30046         put in the delay slot of a branch.
30047         * config/sparc/sparc.md (fix_ut699): New attribute.
30048         (tls_call_delay): Delete.
30049         (in_call_delay): Reimplement.
30050         (eligible_for_sibcall_delay): Rename into...
30051         (in_sibcall_delay): ...this.
30052         (eligible_for_return_delay): Rename into...
30053         (in_return_delay): ...this.
30054         (in_branch_delay): Reimplement.
30055         (in_uncond_branch_delay): Delete.
30056         (in_annul_branch_delay): Delete.
30058 2014-03-14  Richard Henderson  <rth@redhat.com>
30060         PR target/60525
30061         * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
30062         define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
30063         (*floathi<X87MODEF>2_i387_with_temp): Remove.
30064         (floathi splitters): Remove.
30065         (float<SWI48x>xf2): New pattern.
30066         (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2.  Drop
30067         code that tried to handle DImode for 32-bit, but which was excluded
30068         by the pattern's condition.  Drop allocation of stack temporary.
30069         (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
30070         (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
30071         (*float<SWI48><MODEF>2_mixed_interunit): Remove.
30072         (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
30073         (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
30074         (*float<SWI48><MODEF>2_sse_with_temp): Remove.
30075         (*float<SWI48><MODEF>2_sse_interunit): Remove.
30076         (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
30077         (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
30078         (*float<SWI48x><X87MODEF>2_i387): Remove.
30079         (all float _with_temp splitters): Remove.
30080         (*float<SWI48x><MODEF>2_i387): New pattern.
30081         (*float<SWI48><MODEF>2_sse): New pattern.
30082         (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
30083         (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
30085 2014-03-14  Jakub Jelinek  <jakub@redhat.com>
30086             Marek Polacek  <polacek@redhat.com>
30088         PR middle-end/60484
30089         * common.opt (dump_base_name_prefixed): New Variable.
30090         * opts.c (finish_options): Don't prepend directory to x_dump_base_name
30091         if x_dump_base_name_prefixed is already set, set it at the end.
30093 2014-03-14  Vladimir Makarov  <vmakarov@redhat.com>
30095         PR rtl-optimization/60508
30096         * lra-constraints.c (get_reload_reg): Add new parameter
30097         in_subreg_p.
30098         (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
30099         Pass the new parameter values.
30101 2014-03-14  Richard Biener  <rguenther@suse.de>
30103         * common.opt: Revert unintented changes from r205065.
30104         * opts.c: Likewise.
30106 2014-03-14  Richard Biener  <rguenther@suse.de>
30108         PR middle-end/60518
30109         * cfghooks.c (split_block): Properly adjust all loops the
30110         block was a latch of.
30112 2014-03-14  Martin Jambor  <mjambor@suse.cz>
30114         PR lto/60461
30115         * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
30116         and simplify it.
30118 2014-03-14  Georg-Johann Lay  <avr@gjlay.de>
30120         PR target/59396
30121         * config/avr/avr.c (avr_set_current_function): Pass function name
30122         through default_strip_name_encoding before sanity checking instead
30123         of skipping the first char of the assembler name.
30125 2014-03-13  Richard Henderson  <rth@redhat.com>
30127         PR debug/60438
30128         * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
30129         (ix86_force_to_memory, ix86_free_from_memory): Remove.
30130         * config/i386/i386-protos.h: Likewise.
30131         * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
30132         in the expander instead of a splitter.
30133         (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
30134         any possibility of requiring a memory.
30135         (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
30136         (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
30137         (fp branch splitters): Update for ix86_split_fp_branch.
30138         (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
30139         (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
30140         (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
30141         (*fop_<MODEF>_2_i387): Remove f/r alternative.
30142         (*fop_<MODEF>_3_i387): Likewise.
30143         (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
30144         (splitters for the fop_* register patterns): Remove.
30145         (fscalexf4_i387): Rename from *fscalexf4_i387.
30146         (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
30148 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
30150         PR tree-optimization/59779
30151         * tree-dfa.c (get_ref_base_and_extent): Use double_int
30152         type for bitsize and maxsize instead of HOST_WIDE_INT.
30154 2014-03-13  Steven Bosscher  <steven@gcc.gnu.org>
30156         PR rtl-optimization/57320
30157         * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
30158         the CFG after thread_prologue_and_epilogue_insns.
30160 2014-03-13  Vladimir Makarov  <vmakarov@redhat.com>
30162         PR rtl-optimization/57189
30163         * lra-constraints.c (process_alt_operands): Disfavor spilling
30164         vector pseudos.
30166 2014-03-13  Cesar Philippidis  <cesar@codesourcery.com>
30168         * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
30170 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
30172         PR tree-optimization/59025
30173         PR middle-end/60418
30174         * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
30175         same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
30177 2014-03-13  Georg-Johann Lay  <avr@gjlay.de>
30179         PR target/60486
30180         * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
30181         calls of avr_out_plus_1.
30183 2014-03-13  Bin Cheng  <bin.cheng@arm.com>
30185         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
30186         BB's single pred and update the father loop's latch info later.
30188 2014-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
30190         * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
30191         (VEC_M): Likewise.
30192         (VEC_N): Likewise.
30193         (VEC_R): Likewise.
30194         (VEC_base): Likewise.
30195         (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
30196         registers, we need to swap double words in little endian mode.
30198         * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
30199         to be a container mode for 128-bit integer operations added in ISA
30200         2.07.  Unlike TImode and PTImode, the preferred register set is
30201         the Altivec/VMX registers for the 128-bit operations.
30203         * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
30204         declarations.
30205         (rs6000_split_128bit_ok_p): Likewise.
30207         * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
30208         macros for creating ISA 2.07 normal and overloaded builtin
30209         functions with 3 arguments.
30210         (BU_P8V_OVERLOAD_3): Likewise.
30211         (VPERM_1T): Add support for V1TImode in 128-bit vector operations
30212         for use as overloaded functions.
30213         (VPERM_1TI_UNS): Likewise.
30214         (VSEL_1TI): Likewise.
30215         (VSEL_1TI_UNS): Likewise.
30216         (ST_INTERNAL_1ti): Likewise.
30217         (LD_INTERNAL_1ti): Likewise.
30218         (XXSEL_1TI): Likewise.
30219         (XXSEL_1TI_UNS): Likewise.
30220         (VPERM_1TI): Likewise.
30221         (VPERM_1TI_UNS): Likewise.
30222         (XXPERMDI_1TI): Likewise.
30223         (SET_1TI): Likewise.
30224         (LXVD2X_V1TI): Likewise.
30225         (STXVD2X_V1TI): Likewise.
30226         (VEC_INIT_V1TI): Likewise.
30227         (VEC_SET_V1TI): Likewise.
30228         (VEC_EXT_V1TI): Likewise.
30229         (EQV_V1TI): Likewise.
30230         (NAND_V1TI): Likewise.
30231         (ORC_V1TI): Likewise.
30232         (VADDCUQ): Add support for 128-bit integer arithmetic instructions
30233         added in ISA 2.07.  Add both normal 'altivec' builtins, and the
30234         overloaded builtin.
30235         (VADDUQM): Likewise.
30236         (VSUBCUQ): Likewise.
30237         (VADDEUQM): Likewise.
30238         (VADDECUQ): Likewise.
30239         (VSUBEUQM): Likewise.
30240         (VSUBECUQ): Likewise.
30242         * config/rs6000/rs6000-c.c (__int128_type): New static to hold
30243         __int128_t and __uint128_t types.
30244         (__uint128_type): Likewise.
30245         (altivec_categorize_keyword): Add support for vector __int128_t,
30246         vector __uint128_t, vector __int128, and vector unsigned __int128
30247         as a container type for TImode operations that need to be done in
30248         VSX/Altivec registers.
30249         (rs6000_macro_to_expand): Likewise.
30250         (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
30251         to support 128-bit integer instructions vaddcuq, vadduqm,
30252         vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
30253         (altivec_resolve_overloaded_builtin): Add support for V1TImode.
30255         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
30256         for V1TImode, and set up preferences to use VSX/Altivec registers.
30257         Setup VSX reload handlers.
30258         (rs6000_debug_reg_global): Likewise.
30259         (rs6000_init_hard_regno_mode_ok): Likewise.
30260         (rs6000_preferred_simd_mode): Likewise.
30261         (vspltis_constant): Do not allow V1TImode as easy altivec constants.
30262         (easy_altivec_constant): Likewise.
30263         (output_vec_const_move): Likewise.
30264         (rs6000_expand_vector_set): Convert V1TImode set and extract to
30265         simple move.
30266         (rs6000_expand_vector_extract): Likewise.
30267         (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
30268         addressing.
30269         (rs6000_const_vec): Add support for V1TImode.
30270         (rs6000_emit_le_vsx_load): Swap double words when loading or
30271         storing TImode/V1TImode.
30272         (rs6000_emit_le_vsx_store): Likewise.
30273         (rs6000_emit_le_vsx_move): Likewise.
30274         (rs6000_emit_move): Add support for V1TImode.
30275         (altivec_expand_ld_builtin): Likewise.
30276         (altivec_expand_st_builtin): Likewise.
30277         (altivec_expand_vec_init_builtin): Likewise.
30278         (altivec_expand_builtin): Likewise.
30279         (rs6000_init_builtins): Add support for V1TImode type.  Add
30280         support for ISA 2.07 128-bit integer builtins.  Define type names
30281         for the VSX/Altivec vector types.
30282         (altivec_init_builtins): Add support for overloaded vector
30283         functions with V1TImode type.
30284         (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
30285         (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
30286         external function.
30287         (rs6000_split_128bit_ok_p): Likewise.
30288         (rs6000_handle_altivec_attribute): Create V1TImode from vector
30289         __int128_t and vector __uint128_t.
30291         * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
30292         and mode attributes.
30293         (VSX_M): Likewise.
30294         (VSX_M2): Likewise.
30295         (VSm): Likewise.
30296         (VSs): Likewise.
30297         (VSr): Likewise.
30298         (VSv): Likewise.
30299         (VS_scalar): Likewise.
30300         (VS_double): Likewise.
30301         (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
30303         * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
30304         we support the ISA 2.07 128-bit integer arithmetic instructions.
30305         (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
30306         (enum rs6000_builtin_type_index): Add fields to hold V1TImode
30307         and TImode types for use with the builtin functions.
30308         (V1TI_type_node): Likewise.
30309         (unsigned_V1TI_type_node): Likewise.
30310         (intTI_type_internal_node): Likewise.
30311         (uintTI_type_internal_node): Likewise.
30313         * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
30314         128-bit builtin functions.
30315         (UNSPEC_VADDEUQM): Likewise.
30316         (UNSPEC_VADDECUQ): Likewise.
30317         (UNSPEC_VSUBCUQ): Likewise.
30318         (UNSPEC_VSUBEUQM): Likewise.
30319         (UNSPEC_VSUBECUQ): Likewise.
30320         (VM): Add V1TImode to vector mode iterators.
30321         (VM2): Likewise.
30322         (VI_unit): Likewise.
30323         (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
30324         (altivec_vaddcuq): Likewise.
30325         (altivec_vsubuqm): Likewise.
30326         (altivec_vsubcuq): Likewise.
30327         (altivec_vaddeuqm): Likewise.
30328         (altivec_vaddecuq): Likewise.
30329         (altivec_vsubeuqm): Likewise.
30330         (altivec_vsubecuq): Likewise.
30332         * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
30333         mode iterators.
30334         (BOOL_128): Likewise.
30335         (BOOL_REGS_OUTPUT): Likewise.
30336         (BOOL_REGS_OP1): Likewise.
30337         (BOOL_REGS_OP2): Likewise.
30338         (BOOL_REGS_UNARY): Likewise.
30339         (BOOL_REGS_AND_CR0): Likewise.
30341         * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
30342         128-bit integer builtin support.
30343         (vec_vadduqm): Likewise.
30344         (vec_vaddecuq): Likewise.
30345         (vec_vaddeuqm): Likewise.
30346         (vec_vsubecuq): Likewise.
30347         (vec_vsubeuqm): Likewise.
30348         (vec_vsubcuq): Likewise.
30349         (vec_vsubuqm): Likewise.
30351         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
30352         Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
30353         vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
30354         128-bit integer add/subtract to ISA 2.07.
30356 2014-03-12  Joern Rennecke  <joern.rennecke@embecosm.com>
30358         * config/arc/arc.c (arc_predicate_delay_insns):
30359         Fix third argument passed to conditionalize_nonjump.
30361 2014-03-12  Yufeng Zhang  <yufeng.zhang@arm.com>
30363         * config/aarch64/aarch64-builtins.c
30364         (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
30365         BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
30366         * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
30367         instead of __builtin_lfloor.
30368         (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
30370 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
30372         * tree-ssa-ifcombine.c (forwarder_block_to): New function.
30373         (tree_ssa_ifcombine_bb_1): New function.
30374         (tree_ssa_ifcombine_bb): Use it.  Handle also cases where else_bb
30375         is an empty forwarder block to then_bb or vice versa and then_bb
30376         and else_bb are effectively swapped.
30378 2014-03-12  Christian Bruel  <christian.bruel@st.com>
30380         PR target/60264
30381         * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
30382         REG_CFA_DEF_CFA note.
30383         (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
30384         (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
30386 2014-03-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
30388         PR tree-optimization/60454
30389         * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
30391 2014-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30393         * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
30394         Do not define target_cpu_default2 to generic.
30395         * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
30396         * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
30397         * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
30399 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
30400             Marc Glisse  <marc.glisse@inria.fr>
30402         PR tree-optimization/60502
30403         * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
30404         instead of build_low_bits_mask.
30406 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
30408         PR middle-end/60482
30409         * tree-vrp.c (register_edge_assert_for_1): Don't add assert
30410         if there are multiple uses, but op doesn't live on E edge.
30411         * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
30412         clobber stmts before __builtin_unreachable.
30414 2014-03-11  Richard Sandiford  <rdsandiford@googlemail.com>
30416         * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
30417         hard_frame_pointer_rtx.
30418         * cse.c (cse_insn): Remove volatile check.
30419         * cselib.c (cselib_process_insn): Likewise.
30420         * dse.c (scan_insn): Likewise.
30422 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
30424         * config/arc/arc.c (conditionalize_nonjump): New function,
30425         broken out of ...
30426         (arc_ifcvt): ... this.
30427         (arc_predicate_delay_insns): Use it.
30429 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
30431         * config/arc/predicates.md (extend_operand): During/after reload,
30432         allow const_int_operand.
30433         * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
30434         (umulsidi3_700): Likewise.  Change operand 2 constraint back to "cL".
30435         (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
30436         to "i".
30437         (umulsi3_highpart_i): Likewise.
30439 2014-03-11  Richard Biener  <rguenther@suse.de>
30441         * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
30442         Add asserts to guard possible wrong-code bugs.
30444 2014-03-11  Richard Biener  <rguenther@suse.de>
30446         PR tree-optimization/60429
30447         PR tree-optimization/60485
30448         * tree-ssa-structalias.c (set_union_with_increment): Properly
30449         take into account all fields that overlap the shifted vars.
30450         (do_sd_constraint): Likewise.
30451         (do_ds_constraint): Likewise.
30452         (get_constraint_for_ptr_offset): Likewise.
30454 2014-03-11  Chung-Lin Tang  <cltang@codesourcery.com>
30456         * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
30457         (nios2_compute_frame_layout):
30458         Add calculation of cfun->machine->fp_save_offset.
30459         (nios2_expand_prologue): Correct setting of frame pointer register
30460         in prologue.
30461         (nios2_expand_epilogue): Update recovery of stack pointer from
30462         frame pointer accordingly.
30463         (nios2_initial_elimination_offset): Update calculation of offset
30464         for eliminating to HARD_FRAME_POINTER_REGNUM.
30466 2014-03-10  Jakub Jelinek  <jakub@redhat.com>
30468         PR ipa/60457
30469         * ipa.c (symtab_remove_unreachable_nodes): Don't call
30470         cgraph_get_create_node on VAR_DECLs.
30472 2014-03-10  Richard Biener  <rguenther@suse.de>
30474         PR middle-end/60474
30475         * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
30477 2014-03-08  Douglas B Rupp  <rupp@gnat.com>
30479         * config/vms/vms.opt (vms_float_format): New variable.
30481 2014-03-08  Tobias Burnus  <burnus@net-b.de>
30483         * doc/invoke.texi (-fcilkplus): Update implementation status.
30485 2014-03-08  Paulo Matos  <paulo@matos-sorge.com>
30486             Richard Biener  <rguenther@suse.de>
30488         * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
30489         consistently accross all TUs.
30490         (run_gcc): Enable -fshort-double automatically at link at link-time
30491         and disallow override.
30493 2014-03-08  Richard Sandiford  <rdsandiford@googlemail.com>
30495         PR target/58271
30496         * config/mips/mips.c (mips_option_override): Promote -mpaired-single
30497         warning to an error.  Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
30498         if they can't be used.
30500 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30502         * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
30503         for Solaris 11/x86 ld.
30504         * configure: Regenerate.
30506 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30508         * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
30509         (LIB_TLS_SPEC): Save as ld_tls_libs.
30510         (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
30511         (HAVE_AS_IX86_TLSLDM): New test.
30512         * configure, config.in: Regenerate.
30513         * config/i386/i386.c (legitimize_tls_address): Fall back to
30514         TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
30515         cannot support TLS_MODEL_LOCAL_DYNAMIC.
30516         * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
30517         instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
30519 2014-03-07  Paulo Matos  <paulo@matos-sorge.com>
30521         * common.opt (fira-loop-pressure): Mark as optimization.
30523 2014-03-07  Thomas Schwinge  <thomas@codesourcery.com>
30525         * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
30526         an OpenMP mappable type.
30528 2014-03-06  Matthias Klose  <doko@ubuntu.com>
30530         * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
30531         MULTILIB_OSDIRNAMES is not defined.
30533 2014-03-06  Jakub Jelinek  <jakub@redhat.com>
30534             Meador Inge  <meadori@codesourcery.com>
30536         PR target/58595
30537         * config/arm/arm.c (arm_tls_symbol_p): Remove.
30538         (arm_legitimize_address): Call legitimize_tls_address for any
30539         arm_tls_referenced_p expression, handle constant addend.  Call it
30540         before testing for !TARGET_ARM.
30541         (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
30543 2014-03-06  Richard Biener  <rguenther@suse.de>
30545         PR middle-end/60445
30546         PR lto/60424
30547         PR lto/60427
30548         Revert
30549         2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
30551         * tree-streamer.c (record_common_node): Assert we don't record
30552         nodes with type double.
30553         (preload_common_node): Skip type double, complex double and double
30554         pointer since it is now frontend dependent due to fshort-double option.
30556 2014-03-06  Richard Biener  <rguenther@suse.de>
30558         * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
30559         or -fno-lto is specified and the linker has full plugin support.
30560         * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
30561         (main): Remove -flto processing, adjust lto_mode using use_plugin late.
30562         * lto-wrapper.c (merge_and_complain): Merge compile-time
30563         optimization levels.
30564         (run_gcc): And pass it through to the link options.
30566 2014-03-06  Alexandre Oliva  <aoliva@redhat.com>
30568         PR debug/60381
30569         Revert:
30570         2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
30571         PR debug/59992
30572         * cselib.c (remove_useless_values): Skip to avoid quadratic
30573         behavior if the condition moved from...
30574         (cselib_process_insn): ... here holds.
30576 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
30578         PR plugins/59335
30579         * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
30580         ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
30582         PR plugins/59335
30583         * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
30584         (TM_H): Add x86-tune.def.
30586 2014-03-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30588         * config/aarch64/aarch64.c (generic_tunings):
30589         Use cortexa57_extra_costs.
30591 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
30593         PR lto/60404
30594         * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
30595         of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
30596         * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
30597         cost for in_lto_p.
30599 2014-03-04  Heiher  <r@hev.cc>
30601         * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
30602         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
30604 2014-03-04  Uros Bizjak  <ubizjak@gmail.com>
30606         * config/i386/predicates.md (const2356_operand): Change to ...
30607         (const2367_operand): ... this.
30608         * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
30609         const2367_operand.
30610         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
30611         (*avx512pf_scatterpf<mode>sf): Ditto.
30612         (avx512pf_scatterpf<mode>df): Ditto.
30613         (*avx512pf_scatterpf<mode>df_mask): Ditto.
30614         (*avx512pf_scatterpf<mode>df): Ditto.
30615         * config/i386/i386.c (ix86_expand_builtin): Update
30616         incorrect hint operand error message.
30618 2014-03-04  Richard Biener  <rguenther@suse.de>
30620         * lto-section-in.c (lto_get_section_data): Fix const cast.
30622 2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
30624         * tree-streamer.c (record_common_node): Assert we don't record
30625         nodes with type double.
30626         (preload_common_node): Skip type double, complex double and double
30627         pointer since it is now frontend dependent due to fshort-double option.
30629 2014-03-04  Richard Biener  <rguenther@suse.de>
30631         PR lto/60405
30632         * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
30633         (lto_input_toplevel_asms): Likewise.
30634         * lto-section-in.c (lto_get_section_data): Instead do it here
30635         for every section.
30637 2014-03-04  Richard Biener  <rguenther@suse.de>
30639         PR tree-optimization/60382
30640         * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
30641         dead PHIs a reduction.
30643 2014-03-03  Uros Bizjak  <ubizjak@gmail.com>
30645         * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
30646         hint value.
30647         (_mm_prefetch): Move out of GCC target("sse") pragma.
30648         * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
30649         GCC target("prfchw") pragma.
30650         * config/i386/i386.md (prefetch): Emit prefetchwt1 only
30651         for locality <= 2.
30652         * config/i386/i386.c (ix86_option_override_internal): Enable
30653         -mprfchw with -mprefetchwt1.
30655 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
30657         * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
30658         Mark as varying.
30660 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
30662         * opts.h (CL_PCH_IGNORE): Define.
30663         * targhooks.c (option_affects_pch_p):
30664         Return false for options that have CL_PCH_IGNORE set.
30665         * opt-functions.awk: Process PchIgnore.
30666         * doc/options.texi: Document PchIgnore.
30668         * config/arc/arc.opt (misize): Add PchIgnore property.
30670 2014-03-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30672         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
30673         reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
30674         constraint on constants to permit them being loaded into
30675         GENERAL_REGS or BASE_REGS.
30677 2014-03-03  Nick Clifton  <nickc@redhat.com>
30679         * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
30680         anti-cacnonical alternatives.
30681         (negandhi3_real): New pattern.
30682         * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
30684 2014-03-03  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
30686         * config/avr/avr-mcus.def: Remove atxmega16x1.
30687         * config/avr/avr-tables.opt: Regenerate.
30688         * config/avr/t-multilib: Regenerate.
30689         * doc/avr-mmcu.texi: Regenerate.
30691 2014-03-03  Tobias Grosser  <tobias@grosser.es>
30692             Mircea Namolaru  <mircea.namolaru@inria.fr>
30694         PR tree-optimization/58028
30695         * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
30696         scalar dimensions.
30698 2014-03-03  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30700         * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
30701         not handled by recognizers.
30703 2014-03-03  Jakub Jelinek  <jakub@redhat.com>
30705         PR middle-end/60175
30706         * function.c (expand_function_end): Don't emit
30707         clobber_return_register sequence if clobber_after is a BARRIER.
30708         * cfgexpand.c (construct_exit_block): Append instructions before
30709         return_label to prev_bb.
30711 2014-03-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30713         * config/rs6000/constraints.md: Document reserved use of "wc".
30715 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
30717         PR ipa/60150
30718         * ipa.c (function_and_variable_visibility): When dissolving comdat
30719         group, also set all symbols to local.
30721 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
30723         PR ipa/60306
30725         Revert:
30726         2013-12-14  Jan Hubicka  <jh@suse.cz>
30727         PR middle-end/58477
30728         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
30730 2014-03-02  Jon Beniston  <jon@beniston.com>
30732         PR bootstrap/48230
30733         PR bootstrap/50927
30734         PR bootstrap/52466
30735         PR target/46898
30736         * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
30737           (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
30738         * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
30739         (simple_return, *simple_return): New patterns
30740         * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
30741         * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
30743 2014-03-01  Paolo Carlini  <paolo.carlini@oracle.com>
30745         * dwarf2out.c (gen_subprogram_die): Tidy.
30747 2014-03-01  Oleg Endo  <olegendo@gcc.gnu.org>
30749         PR target/60071
30750         * config/sh/sh.md (*mov_t_msb_neg): Split into ...
30751         (*mov_t_msb_neg_negc): ... this new insn.
30753 2014-02-28  Jason Merrill  <jason@redhat.com>
30755         PR c++/58678
30756         * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
30757         function.
30759 2014-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
30761         PR c++/60314
30762         * dwarf2out.c (decltype_auto_die): New static.
30763         (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
30764         (gen_type_die_with_usage): Handle 'decltype(auto)'.
30765         (is_cxx_auto): Likewise.
30767 2014-02-28  Ian Bolton  <ian.bolton@arm.com>
30769         * config/aarch64/aarch64.h: Define __ARM_NEON by default if
30770         we are not using general regs only.
30772 2014-02-28  Richard Biener  <rguenther@suse.de>
30774         PR target/60280
30775         * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
30776         previous fix and only allow to remove trivial pre-headers
30777         and latches.  Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
30778         (remove_forwarder_block): Properly update the latch of a loop.
30780 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
30782         PR debug/59992
30783         * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
30784         (cselib_preserved_hash_table): New.
30785         (preserve_constants_and_equivs): Move preserved vals to it.
30786         (cselib_find_slot): Look it up first.
30787         (cselib_init): Initialize it.
30788         (cselib_finish): Release it.
30789         (dump_cselib_table): Dump it.
30791 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
30793         PR debug/59992
30794         * cselib.c (remove_useless_values): Skip to avoid quadratic
30795         behavior if the condition moved from...
30796         (cselib_process_insn): ... here holds.
30798 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
30800         PR debug/57232
30801         * var-tracking.c (vt_initialize): Apply the same condition to
30802         preserve the CFA base value.
30804 2014-02-28  Joey Ye  <joey.ye@arm.com>
30806         PR target/PR60169
30807         * config/arm/arm.c (thumb_far_jump_used_p): Don't change
30808         if reload in progress or completed.
30810 2014-02-28  Tobias Burnus  <burnus@net-b.de>
30812         PR middle-end/60147
30813         * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
30814         NAMELIST_DECL.
30816 2014-02-27  H.J. Lu  <hongjiu.lu@intel.com>
30818         * doc/tm.texi.in (Condition Code Status): Update documention for
30819         relative locations of cc0-setter and cc0-user.
30821 2014-02-27  Jeff Law  <law@redhat.com>
30823         PR rtl-optimization/52714
30824         * combine.c (try_combine): When splitting an unrecognized PARALLEL
30825         into two independent simple sets, if I3 is a jump, ensure the
30826         pattern we place into I3 is a (set (pc) ...).
30828 2014-02-27  Mikael Pettersson  <mikpe@it.uu.se>
30829             Jeff Law  <law@redhat.com>
30831         PR rtl-optimization/49847
30832         * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
30833         are in different blocks.
30834         * doc/tm.texi (Condition Code Status): Update documention for
30835         relative locations of cc0-setter and cc0-user.
30837 2014-02-27  Vladimir Makarov  <vmakarov@redhat.com>
30839         PR target/59222
30840         * lra.c (lra_emit_add): Check SUBREG too.
30842 2014-02-27  Andreas Schwab  <schwab@suse.de>
30844         * config/m68k/m68k.c (m68k_option_override): Disable
30845         -flive-range-shrinkage for classic m68k.
30846         (m68k_override_options_after_change): Likewise.
30848 2014-02-27  Marek Polacek  <polacek@redhat.com>
30850         PR middle-end/59223
30851         * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
30852         -Wmaybe-uninitialized.
30854 2014-02-27  Alan Modra  <amodra@gmail.com>
30856         PR target/57936
30857         * reload1.c (emit_input_reload_insns): When reload_override_in,
30858         set old to rl->in_reg when rl->in_reg is a subreg.
30860 2014-02-26  Richard Biener  <rguenther@suse.de>
30862         PR bootstrap/60343
30863         * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
30865 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
30867         * common/config/i386/predicates.md (const1256_operand): Remove.
30868         (const2356_operand): New.
30869         (const_1_to_2_operand): Remove.
30870         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
30871         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
30872         (*avx512pf_gatherpf<mode>sf): Ditto.
30873         (avx512pf_gatherpf<mode>df): Ditto.
30874         (*avx512pf_gatherpf<mode>df_mask): Ditto.
30875         (*avx512pf_gatherpf<mode>df): Ditto.
30876         (avx512pf_scatterpf<mode>sf): Ditto.
30877         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
30878         (*avx512pf_scatterpf<mode>sf): Ditto.
30879         (avx512pf_scatterpf<mode>df): Ditto.
30880         (*avx512pf_scatterpf<mode>df_mask): Ditto.
30881         (*avx512pf_scatterpf<mode>df): Ditto.
30882         * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
30884 2014-02-26  Ilya Tocar  <ilya.tocar@intel.com>
30886         * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
30887         (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
30888         (_mm512_mask_testn_epi64_mask): Move to ...
30889         * config/i386/avx512cdintrin.h: Here.
30890         * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
30891         * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
30892         (avx512f_scalef<mode><mask_name><round_name>): Ditto.
30893         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
30894         TARGET_AVX512F from TARGET_AVX512CD.
30896 2014-02-26  Richard Biener  <rguenther@suse.de>
30898         PR ipa/60327
30899         * ipa.c (walk_polymorphic_call_targets): Properly guard
30900         call to inline_update_overall_summary.
30902 2014-02-26  Bin Cheng  <bin.cheng@arm.com>
30904         PR target/60280
30905         * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
30906         and latches only if requested.  Fix latch if it is removed.
30907         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
30908         LOOPS_HAVE_PREHEADERS.
30910 2014-02-25  Andrew Pinski  <apinski@cavium.com>
30912         * builtins.c (expand_builtin_thread_pointer): Create a new target
30913         when the target is NULL.
30915 2014-02-25  Vladimir Makarov  <vmakarov@redhat.com>
30917         PR rtl-optimization/60317
30918         * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
30919         * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
30920         * lra-assigns.c: Include params.h.
30921         (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
30922         other reload pseudos considerations.
30924 2014-02-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30926         * config/rs6000/vector.md (*vector_unordered<mode>): Change split
30927         to use canonical form for nor<mode>3.
30929 2014-02-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30931         PR target/55426
30932         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
30933         conversions.
30935 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
30937         * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
30938         (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
30939         (ix86_handle_option): Handle OPT_mprefetchwt1.
30940         * config/i386/cpuid.h (bit_PREFETCHWT1): New.
30941         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
30942         PREFETCHWT1 CPUID.
30943         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
30944         OPTION_MASK_ISA_PREFETCHWT1.
30945         * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
30946         (PTA_PREFETCHWT1): New.
30947         (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
30948         (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
30949         * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
30950         * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
30951         (*prefetch_avx512pf_<mode>_: Change into ...
30952         (*prefetch_prefetchwt1_<mode>: This.
30953         * config/i386/i386.opt (mprefetchwt1): New.
30954         * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
30955         (_mm_prefetch): Handle intent to write.
30956         * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
30958 2014-02-25  Richard Biener  <rguenther@suse.de>
30960         PR middle-end/60291
30961         * emit-rtl.c (mem_attrs_htab): Remove.
30962         (mem_attrs_htab_hash): Likewise.
30963         (mem_attrs_htab_eq): Likewise.
30964         (set_mem_attrs): Always allocate new mem-attrs when something changed.
30965         (init_emit_once): Do not allocate mem_attrs_htab.
30967 2014-02-25  Richard Biener  <rguenther@suse.de>
30969         PR lto/60319
30970         * lto-opts.c (lto_write_options): Output non-explicit conservative
30971         -fwrapv, -fno-trapv and -fno-strict-overflow.
30972         * lto-wrapper.c (merge_and_complain): Handle merging those options.
30973         (run_gcc): And pass them through.
30975 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
30977         * sel-sched.c (calculate_new_fences): New parameter ptime.
30978         Calculate it as a maximum over all fence cycles.
30979         (sel_sched_region_2): Adjust the call to calculate_new_fences.
30980         Print the final schedule timing when sched_verbose.
30982 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
30984         PR rtl-optimization/60292
30985         * sel-sched.c (fill_vec_av_set): Do not reset target availability
30986         bit fot the fence instruction.
30988 2014-02-24  Alangi Derick  <alangiderick@gmail.com>
30990         * calls.h: Fix typo in comment.
30992 2014-02-24  John David Anglin  <danglin@gcc.gnu.org>
30994         * config/pa/pa.c (pa_output_move_double): Don't valididate when
30995         adjusting offsetable addresses.
30997 2014-02-24  Guozhi Wei  <carrot@google.com>
30999         * sparseset.h (sparseset_pop): Fix the wrong index.
31001 2014-02-24  Walter Lee  <walt@tilera.com>
31003         * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
31004         (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
31005         triplet.
31006         * common/config/tilegx/tilegx-common.c
31007         (TARGET_DEFAULT_TARGET_FLAGS): Define.
31008         * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
31009         (LINK_SPEC): Ditto.
31010         * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
31011         * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
31012         (tilegx_gimplify_va_arg_expr): Handle big endian.
31013         (tilegx_expand_unaligned_load): Ditto.
31014         (tilegx_expand_unaligned_store): Ditto.
31015         (TARGET_RETURN_IN_MSB): New.
31016         * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
31017         (TARGET_ENDIAN_DEFAULT): New.
31018         (TARGET_BIG_ENDIAN): Handle big endian.
31019         (BYTES_BIG_ENDIAN): Ditto.
31020         (WORDS_BIG_ENDIAN): Ditto.
31021         (FLOAT_WORDS_BIG_ENDIAN): Ditto.
31022         (ENDIAN_SPEC): New.
31023         (EXTRA_SPECS): New.
31024         * config/tilegx/tilegx.md (extv): Handle big endian.
31025         (extzv): Ditto.
31026         (insn_st<n>): Ditto.
31027         (insn_st<n>_add<bitsuffix>): Ditto.
31028         (insn_stnt<n>): Ditto.
31029         (insn_stnt<n>_add<bitsuffix>):Ditto.
31030         (vec_interleave_highv8qi): Handle big endian.
31031         (vec_interleave_highv8qi_be): New.
31032         (vec_interleave_highv8qi_le): New.
31033         (insn_v1int_h): Handle big endian.
31034         (vec_interleave_lowv8qi): Handle big endian.
31035         (vec_interleave_lowv8qi_be): New.
31036         (vec_interleave_lowv8qi_le): New.
31037         (insn_v1int_l): Handle big endian.
31038         (vec_interleave_highv4hi): Handle big endian.
31039         (vec_interleave_highv4hi_be): New.
31040         (vec_interleave_highv4hi_le): New.
31041         (insn_v2int_h): Handle big endian.
31042         (vec_interleave_lowv4hi): Handle big endian.
31043         (vec_interleave_lowv4hi_be): New.
31044         (vec_interleave_lowv4hi_le): New.
31045         (insn_v2int_l): Handle big endian.
31046         (vec_interleave_highv2si): Handle big endian.
31047         (vec_interleave_highv2si_be): New.
31048         (vec_interleave_highv2si_le): New.
31049         (insn_v4int_h): Handle big endian.
31050         (vec_interleave_lowv2si): Handle big endian.
31051         (vec_interleave_lowv2si_be): New.
31052         (vec_interleave_lowv2si_le): New.
31053         (insn_v4int_l): Handle big endian.
31054         * config/tilegx/tilegx.opt (mbig-endian): New option.
31055         (mlittle-endian): New option.
31056         * doc/install.texi: Document tilegxbe-linux.
31057         * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
31059 2014-02-24  Martin Jambor  <mjambor@suse.cz>
31061         PR ipa/60266
31062         * ipa-cp.c (propagate_constants_accross_call): Bail out early if
31063         there are no parameter descriptors.
31065 2014-02-24  Andrey Belevantsev  <abel@ispras.ru>
31067         PR rtl-optimization/60268
31068         * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
31069         initialization to ...
31070         (sched_rgn_init): ... here.
31071         (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
31073 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
31075         * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
31076         names.
31078 2014-02-23  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
31080         * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
31081         definition.
31083 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
31085         * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
31086         define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
31088 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
31090         * config/microblaze/predicates.md: Add cmp_op predicate.
31091         * config/microblaze/microblaze.md: Add branch_compare instruction
31092         which uses cmp_op predicate and emits cmp insn before branch.
31093         * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
31094         to microblaze_expand_conditional_branch and consolidate logic.
31095         (microblaze_expand_conditional_branch): emit branch_compare
31096         insn instead of handling cmp op separate from branch insn.
31098 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31100         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
31101         to permit subregs.
31103 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31105         * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
31106         define_insn with define_expand and new define_insn
31107         *altivec_lve<VI_char>x_internal.
31108         (altivec_stve<VI_char>x): Replace define_insn with define_expand
31109         and new define_insn *altivec_stve<VI_char>x_internal.
31110         * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
31111         prototype.
31112         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
31113         lve*x built-ins.
31114         (altivec_expand_stvex_be): New function.
31116 2014-02-22  Joern Rennecke  <joern.rennecke@embecosm.com>
31118         * config/avr/avr.c (avr_can_eliminate): Allow elimination from
31119         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
31120         * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
31121         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
31123 2014-02-21  Vladimir Makarov  <vmakarov@redhat.com>
31125         PR target/60298
31126         * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
31127         instead of emit_move_insn.
31129 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31131         * config/rs6000/altivec.md (altivec_vsumsws): Replace second
31132         vspltw with vsldoi.
31133         (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
31134         gen_altivec_vsumsws.
31136 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31138         * config/rs6000/altivec.md (altivec_lvxl): Rename as
31139         *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
31140         (altivec_lvxl_<mode>): New define_expand incorporating
31141         -maltivec=be semantics where needed.
31142         (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
31143         (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
31144         semantics where needed.
31145         (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
31146         (altivec_stvx_<mode>): New define_expand incorporating
31147         -maltivec=be semantics where needed.
31148         (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
31149         VM2 iterator instead of V4SI.
31150         (altivec_stvxl_<mode>): New define_expand incorporating
31151         -maltivec=be semantics where needed.
31152         * config/rs6000/rs6000-builtin.def: Add new built-in definitions
31153         LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
31154         LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
31155         STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
31156         STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
31157         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
31158         ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
31159         similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
31160         ALTIVEC_BUILTIN_STVXL.
31161         * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
31162         (altivec_expand_stvx_be): Likewise.
31163         * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
31164         (altivec_expand_lvx_be): Likewise.
31165         (altivec_expand_stvx_be): Likewise.
31166         (altivec_expand_builtin): Add cases for
31167         ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
31168         ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
31169         (altivec_init_builtins): Add definitions for
31170         __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
31171         __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
31173 2014-02-21  Catherine Moore  <clm@codesourcery.com>
31175         * doc/invoke.texi (mvirt, mno-virt): Document.
31176         * config/mips/mips.opt (mvirt): New option.
31177         * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
31179 2014-02-21  Richard Biener  <rguenther@suse.de>
31181         PR tree-optimization/60276
31182         * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
31183         (STMT_VINFO_MIN_NEG_DIST): New macro.
31184         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
31185         STMT_VINFO_MIN_NEG_DIST.
31186         * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
31187         made for negative dependence distances still hold.
31189 2014-02-21  Richard Biener  <rguenther@suse.de>
31191         PR middle-end/60291
31192         * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
31193         DECL_INITIAL for globals not in the current function context.
31195 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
31197         PR tree-optimization/56490
31198         * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
31199         * tree-ssa-uninit.c: Include params.h.
31200         (compute_control_dep_chain): Add num_calls argument, return false
31201         if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
31202         num_calls to recursive call.
31203         (find_predicates): Change dep_chain into normal array,
31204         cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
31205         variable and adjust compute_control_dep_chain caller.
31206         (find_def_preds): Likewise.
31208 2014-02-21  Thomas Schwinge  <thomas@codesourcery.com>
31210         * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
31211         <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
31213 2014-02-21  Nick Clifton  <nickc@redhat.com>
31215         * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
31216         (pushhi1): Likewise.
31217         (popqi1): Add mode to pre_dec.
31218         (pophi1): Likewise.
31220 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
31222         * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
31223         mode for mask of V8SFmode permutation.
31225 2014-02-20  Richard Henderson  <rth@redhat.com>
31227         PR c++/60272
31228         * builtins.c (expand_builtin_atomic_compare_exchange): Always make
31229         a new pseudo for OLDVAL.
31231 2014-02-20  Jakub Jelinek  <jakub@redhat.com>
31233         PR target/57896
31234         * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
31235         gen_reg_rtx if d->testing_p.
31236         (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
31237         if d->testing_p and we will certainly return true.
31238         (expand_vec_perm_even_odd_1): Likewise.  Don't call gen_reg_rtx
31239         if d->testing_p.
31241 2014-02-20  Uros Bizjak  <ubizjak@gmail.com>
31243         * emit-rtl.c (gen_reg_rtx): Assert that
31244         crtl->emit.regno_pointer_align_length is non-zero.
31246 2014-02-20  Richard Henderson  <rth@redhat.com>
31248         PR c++/60272
31249         * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
31250         on failure the store back into EXPECT.
31252 2014-02-20  Chung-Lin Tang  <cltang@codesourcery.com>
31253             Sandra Loosemore  <sandra@codesourcery.com>
31255         * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
31256         * config/nios2/nios2.c (nios2_function_profiler): Add
31257         -fPIC (flag_pic == 2) support.
31258         (nios2_handle_custom_fpu_cfg): Fix warning parameter.
31259         (nios2_large_offset_p): New function.
31260         (nios2_unspec_reloc_p): Move up position, update to use
31261         nios2_large_offset_p.
31262         (nios2_unspec_address): Remove function.
31263         (nios2_unspec_offset): New function.
31264         (nios2_large_got_address): New function.
31265         (nios2_got_address): Add large offset support.
31266         (nios2_legitimize_tls_address): Update usage of removed and new
31267         functions.
31268         (nios2_symbol_binds_local_p): New function.
31269         (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
31270         (nios2_legitimize_address): Update to use nios2_large_offset_p.
31271         (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
31272         (nios2_print_operand): Merge H/L processing, add hiadj/lo
31273         processing for (const (unspec ...)).
31274         (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
31276 2014-02-20  Richard Biener  <rguenther@suse.de>
31278         * tree-cfg.c (replace_uses_by): Mark altered BBs before
31279         doing the substitution.
31280         (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
31282 2014-02-20  Martin Jambor  <mjambor@suse.cz>
31284         PR ipa/55260
31285         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
31286         info when checking whether lattices are bottom.
31288 2014-02-20  Richard Biener  <rguenther@suse.de>
31290         PR middle-end/60221
31291         * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
31292         regions at -O0.
31294 2014-02-20  Jan Hubicka  <hubicka@ucw.cz>
31296         PR ipa/58555
31297         * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
31298         parameter specifying the scaling.
31299         (inline_call): Update.
31300         (want_inline_recursively): Guard division by zero.
31301         (recursive_inlining): Update.
31302         * ipa-inline.h (clone_inlined_nodes): Update.
31304 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
31306         PR target/60204
31307         * config/i386/i386.c (classify_argument): Pass structures of size
31308         64 bytes or less in register.
31310 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
31311             Kirill Yukhin  <kirill.yukhin@intel.com>
31313         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
31314         (_mm_rcp28_round_ss): Ditto.
31315         (_mm_rsqrt28_round_sd): Ditto.
31316         (_mm_rsqrt28_round_ss): Ditto.
31317         * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
31318         (_mm_rcp14_round_ss): Ditto.
31319         (_mm_rsqrt14_round_sd): Ditto.
31320         (_mm_rsqrt14_round_ss): Ditto.
31321         * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
31322         the first input operand, get rid of match_dup.
31323         (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
31324         attribute to sse.
31325         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
31326         Ditto.
31327         (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
31328         operand as the first input operand, set type attribute.
31329         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
31330         Set type attribute.
31331         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
31332         operand as the first input operand, set type attribute.
31334 2014-02-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31336         * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
31337         bit of zero.
31339 2014-02-19  H.J. Lu  <hongjiu.lu@intel.com>
31341         PR target/60207
31342         * config/i386/i386.c (construct_container): Remove TFmode check
31343         for X86_64_INTEGER_CLASS.
31345 2014-02-19  Uros Bizjak  <ubizjak@gmail.com>
31347         PR target/59794
31348         * config/i386/i386.c (type_natural_mode): Warn for ABI changes
31349         only when -Wpsabi is enabled.
31351 2014-02-19  Michael Hudson-Doyle  <michael.hudson@linaro.org>
31353          PR target/59799
31354         * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
31355         passing arrays in registers are the same as for structs, so remove the
31356         special case for them.
31358 2014-02-19  Eric Botcazou  <ebotcazou@adacore.com>
31360         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
31361         destination type, extract only the valid bits if the source type is not
31362         integral and has a different mode.
31364 2014-02-19  Richard Biener  <rguenther@suse.de>
31366         PR ipa/60243
31367         * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
31368         for all calls.
31370 2014-02-19  Richard Biener  <rguenther@suse.de>
31372         PR ipa/60243
31373         * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
31374         (ipa_modify_call_arguments): Emit an argument load explicitely and
31375         preserve virtual SSA form there and for the replacement call.
31376         Do not update SSA form nor free dominance info.
31378 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
31380         * ipa.c (function_and_variable_visibility): Also clear WEAK
31381         flag when disolving COMDAT_GROUP.
31383 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
31385         * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
31386         * ipa-prop.c (ipa_set_jf_known_type): Return early when
31387         not devirtualizing.
31388         (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
31389         do more sanity checks.
31390         (detect_type_change): Return true when giving up early.
31391         (compute_complex_assign_jump_func): Fix type parameter of
31392         ipa_set_ancestor_jf.
31393         (compute_complex_ancestor_jump_func): Likewise.
31394         (update_jump_functions_after_inlining): Fix updating of
31395         ancestor function.
31396         * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
31398 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
31400         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
31401         inline clones when edge disappears.
31403 2014-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
31405         PR target/60203
31406         * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
31407         Split 64-bit moves into 2 patterns.  Do not allow the use of
31408         direct move for TDmode in little endian, since the decimal value
31409         has little endian bytes within a word, but the 64-bit pieces are
31410         ordered in a big endian fashion, and normal subreg's of TDmode are
31411         not allowed.
31412         (mov<mode>_64bit_dm): Likewise.
31413         (movtd_64bit_nodm): Likewise.
31415 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
31417         PR tree-optimization/60174
31418         * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
31419         statement of an SSA_NAME that occurs in an abnormal PHI node.
31421 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
31423         PR sanitizer/60142
31424         * final.c (SEEN_BB): Remove.
31425         (SEEN_NOTE, SEEN_EMITTED): Renumber.
31426         (final_scan_insn): Don't force_source_line on second
31427         NOTE_INSN_BASIC_BLOCK.
31429 2014-02-18  Uros Bizjak  <ubizjak@gmail.com>
31431         PR target/60205
31432         * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
31433         * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
31434         (type_natural_mode): Warn ABI change when %zmm register is not
31435         available for AVX512F vector value passing.
31437 2014-02-18  Kai Tietz  <ktietz@redhat.com>
31439         PR target/60193
31440         * config/i386/i386.c (ix86_expand_prologue): Use value in
31441         rax register as displacement when restoring %r10 or %rax.
31442         Fix wrong offset when restoring both registers.
31444 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
31446         * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
31447         assertion with conditional return.
31449 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
31450             Uros Bizjak  <ubizjak@gmail.com>
31452         PR driver/60233
31453         * config/i386/driver-i386.c (host_detect_local_cpu): If
31454         YMM state is not saved by the OS, also clear has_f16c.  Move
31455         CPUID 0x80000001 handling before YMM state saving checking.
31457 2014-02-18  Andrey Belevantsev  <abel@ispras.ru>
31459         PR rtl-optimization/58960
31460         * haifa-sched.c (alloc_global_sched_pressure_data): New,
31461         factored out from ...
31462         (sched_init): ... here.
31463         (free_global_sched_pressure_data): New, factored out from ...
31464         (sched_finish): ... here.
31465         * sched-int.h (free_global_sched_pressure_data): Declare.
31466         * sched-rgn.c (nr_regions_initial): New static global.
31467         (haifa_find_rgns): Initialize it.
31468         (schedule_region): Disable sched-pressure for the newly
31469         generated regions.
31471 2014-02-17  Richard Biener  <rguenther@suse.de>
31473         * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
31474         release SSA defs of pattern stmts.
31476 2014-02-17  Richard Biener  <rguenther@suse.de>
31478         * tree-inline.c (expand_call_inline): Release the virtual
31479         operand defined by the call we are about to inline.
31481 2014-02-17  Richard Biener  <rguenther@suse.de>
31483         * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
31485 2014-02-17  Kirill Yukhin  <kirill.yukhin@intel.com>
31486             Ilya Tocar  <ilya.tocar@intel.com>
31488         * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
31489         arguments order in builtin.
31490         (_mm512_permutexvar_epi64): Ditto.
31491         (_mm512_mask_permutexvar_epi64): Ditto
31492         (_mm512_maskz_permutexvar_epi32): Ditto
31493         (_mm512_permutexvar_epi32): Ditto
31494         (_mm512_mask_permutexvar_epi32): Ditto
31496 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31498         * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
31499         (p8_vmrgow): Likewise.
31501 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31503         * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
31504         endian targets.
31506 2014-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
31508         PR target/60203
31509         * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
31510         (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
31511         into 64-bit and 32-bit moves.  On 64-bit moves, add support for
31512         using direct move instructions on ISA 2.07.  Also adjust
31513         instruction length for 64-bit.
31514         (mov<mode>_64bit, TFmode/TDmode): Likewise.
31515         (mov<mode>_32bit, TFmode/TDmode): Likewise.
31517 2014-02-15  Alan Modra  <amodra@gmail.com>
31519         PR target/58675
31520         PR target/57935
31521         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
31522         find_replacement on parts of insn rtl that might be reloaded.
31524 2014-02-15  Richard Biener  <rguenther@suse.de>
31526         PR tree-optimization/60183
31527         * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
31528         (tree_ssa_phiprop): Calculate and free post-dominators.
31530 2014-02-14  Jeff Law  <law@redhat.com>
31532         PR rtl-optimization/60131
31533         * ree.c (get_extended_src_reg): New function.
31534         (combine_reaching_defs): Use it rather than assuming location of REG.
31535         (find_and_remove_re): Verify first operand of extension is
31536         a REG before adding the insns to the copy list.
31538 2014-02-14  Roland McGrath  <mcgrathr@google.com>
31540         * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
31541         * configure: Regenerated.
31542         * config.in: Regenerated.
31543         * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
31544         instead of ASM_SHORT.
31546 2014-02-14  Vladimir Makarov  <vmakarov@redhat.com>
31547             Richard Earnshaw  <rearnsha@arm.com>
31549         PR rtl-optimization/59535
31550         * lra-constraints.c (process_alt_operands): Encourage alternative
31551         when unassigned pseudo class is superset of the alternative class.
31552         (inherit_reload_reg): Don't inherit when optimizing for code size.
31553         * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
31554         returning CORE_REGS for anything but Thumb1 and BASE_REGS for
31555         modes not less than 4 for Thumb1.
31557 2014-02-14  Kyle McMartin  <kyle@redhat.com>
31559         PR pch/60010
31560         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
31562 2014-02-14  Richard Biener  <rguenther@suse.de>
31564         * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
31565         (get_frame_arg): Drop the assert with langhook types_compatible_p.
31566         Do not strip INDIRECT_REFs.
31568 2014-02-14  Richard Biener  <rguenther@suse.de>
31570         PR lto/60179
31571         * lto-streamer-out.c (DFS_write_tree_body): Do not follow
31572         DECL_FUNCTION_SPECIFIC_TARGET.
31573         (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
31574         * tree-streamer-out.c (pack_ts_target_option): Remove.
31575         (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
31576         (write_ts_function_decl_tree_pointers): Do not stream
31577         DECL_FUNCTION_SPECIFIC_TARGET.
31578         * tree-streamer-in.c (unpack_ts_target_option): Remove.
31579         (unpack_value_fields): Do not stream TS_TARGET_OPTION.
31580         (lto_input_ts_function_decl_tree_pointers): Do not stream
31581         DECL_FUNCTION_SPECIFIC_TARGET.
31583 2014-02-14  Jakub Jelinek  <jakub@redhat.com>
31585         * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
31586         (get_initial_def_for_induction, vectorizable_induction): Ignore
31587         debug stmts when looking for exit_phi.
31588         (vectorizable_live_operation): Fix up condition.
31590 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
31592         * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
31593         nreverse() because it changes the content of original tree list.
31595 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
31597         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
31598         * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
31600 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
31602         * config/nds32/nds32.c (nds32_naked_function_p): Follow the
31603         GNU coding standards.
31605 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
31607         PR debug/60152
31608         * dwarf2out.c (gen_subprogram_die): Don't call
31609         add_calling_convention_attribute if subr_die is old_die.
31611 2014-02-13  Sharad Singhai  <singhai@google.com>
31613         * doc/optinfo.texi: Fix order of nodes.
31615 2014-02-13  Uros Bizjak  <ubizjak@gmail.com>
31617         * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
31618         operands[2], not operands[3].
31620 2014-02-13  Richard Biener  <rguenther@suse.de>
31622         PR bootstrap/59878
31623         * doc/install.texi (ISL): Update recommended version to 0.12.2,
31624         mention the possibility of an in-tree build.
31625         (CLooG): Update recommended version to 0.18.1, mention the
31626         possibility of an in-tree build and clarify that the ISL
31627         bundled with CLooG does not work.
31629 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
31631         PR target/43546
31632         * expr.c (compress_float_constant): If x is a hard register,
31633         extend into a pseudo and then move to x.
31635 2014-02-13  Dominik Vogt  <vogt@linux.vnet.ibm.com>
31637         * config/s390/s390.c (s390_asm_output_function_label): Fix crash
31638         caused by bad second argument to warning_at() with -mhotpatch and
31639         nested functions (e.g. with gfortran).
31641 2014-02-13  Richard Sandiford  <rdsandiford@googlemail.com>
31643         * opts.c (option_name): Remove "enabled by default" rider.
31645 2014-02-12  John David Anglin  <danglin@gcc.gnu.org>
31647         * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
31649 2014-02-12  H.J. Lu  <hongjiu.lu@intel.com>
31650             Uros Bizjak  <ubizjak@gmail.com>
31652         PR target/60151
31653         * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
31654         * configure: Regenerated.
31656 2014-02-12  Richard Biener  <rguenther@suse.de>
31658         * vec.c (vec_prefix::calculate_allocation): Move as
31659         inline variant to vec.h.
31660         (vec_prefix::calculate_allocation_1): New out-of-line version.
31661         * vec.h (vec_prefix::calculate_allocation_1): Declare.
31662         (vec_prefix::m_has_auto_buf): Rename to ...
31663         (vec_prefix::m_using_auto_storage): ... this.
31664         (vec_prefix::calculate_allocation): Inline the easy cases
31665         and dispatch to calculate_allocation_1 which doesn't need the
31666         prefix address.
31667         (va_heap::reserve): Use gcc_checking_assert.
31668         (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
31669         m_using_auto_storage.
31670         (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
31671         member and adjust.
31672         (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
31673         (vec<T, va_heap, vl_ptr>::release): Avoid casting.
31674         (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
31676 2014-02-12  Richard Biener  <rguenther@suse.de>
31678         * gcse.c (compute_transp): break from loop over canon_modify_mem_list
31679         when we found a dependence.
31681 2014-02-12  Thomas Schwinge  <thomas@codesourcery.com>
31683         * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
31684         common code...
31685         (maybe_fold_stmt): ... into this new function.
31686         * omp-low.c (lower_omp): Update comment.
31688         * omp-low.c (lower_omp_target): Add clobber for sizes array, after
31689         last use.
31691         * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
31692         dereference.
31694 2014-02-12  James Greenhalgh  <james.greenhalgh@arm.com>
31696         * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
31697         identifiers in comments.
31698         (cortexa53_extra_costs): Likewise.
31699         * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
31700         (cortexa7_extra_costs): Likewise.
31701         (cortexa12_extra_costs): Likewise.
31702         (cortexa15_extra_costs): Likewise.
31703         (v7m_extra_costs): Likewise.
31705 2014-02-12  Richard Biener  <rguenther@suse.de>
31707         PR middle-end/60092
31708         * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
31709         of posix_memalign being successful.
31710         (lower_stmt): Restrict lowering of posix_memalign to when
31711         -ftree-bit-ccp is enabled.
31713 2014-02-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
31715         * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
31716         arg_loc.
31717         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
31719 2014-02-12  Eric Botcazou  <ebotcazou@adacore.com>
31721         PR rtl-optimization/60116
31722         * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
31723         other_insn once the combination has been validated.
31725 2014-02-11  Jan Hubicka  <hubicka@ucw.cz>
31727         PR lto/59468
31728         * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
31729         and wrapper.
31730         * ipa-devirt.c: Include demangle.h
31731         (odr_violation_reported): New static variable.
31732         (add_type_duplicate): Update odr_violations.
31733         (maybe_record_node): Add completep parameter; update it.
31734         (record_target_from_binfo): Add COMPLETEP parameter;
31735         update it as needed.
31736         (possible_polymorphic_call_targets_1): Likewise.
31737         (struct polymorphic_call_target_d): Add nonconstruction_targets;
31738         rename FINAL to COMPLETE.
31739         (record_targets_from_bases): Sanity check we found the binfo;
31740         fix COMPLETEP updating.
31741         (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
31742         parameter, fix computing of COMPLETEP.
31743         (dump_possible_polymorphic_call_targets): Imrove readability of dump;
31744         at LTO time do demangling.
31745         (ipa_devirt): Use nonconstruction_targets; Improve dumps.
31746         * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
31747         parameter.
31748         (gimple_get_virt_method_for_binfo): Likewise.
31749         * gimple-fold.h (gimple_get_virt_method_for_binfo,
31750         gimple_get_virt_method_for_vtable): Update prototypes.
31752 2014-02-11  Vladimir Makarov  <vmakarov@redhat.com>
31754         PR target/49008
31755         * genautomata.c (add_presence_absence): Fix typo with
31756         {final_}presence_list.
31758 2014-02-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
31760         PR target/60137
31761         * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
31762         for VSX/Altivec vectors that land in GPR registers.
31764 2014-02-11  Richard Henderson  <rth@redhat.com>
31765             Jakub Jelinek  <jakub@redhat.com>
31767         PR debug/59776
31768         * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
31769         around drhs if type conversion to lacc->type is not useless.
31771 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31773         * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
31774         tuning struct.
31775         (cortex-a57.cortex-a53): Likewise.
31776         * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
31778 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31780         * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
31781         arm_restrict_it.
31783 2014-02-11  Renlin Li  <Renlin.Li@arm.com>
31785         * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
31786         add_options_for_arm_vfp3.
31788 2014-02-11  Jeff Law  <law@redhat.com>
31790         PR middle-end/54041
31791         * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
31792         object with an undesirable mode.
31794 2014-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31796         PR libgomp/60107
31797         * config/i386/sol2-9.h: New file.
31798         * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
31799         *-*-solaris2.9*): Use it.
31801 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
31803         * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
31804         * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
31806 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
31808         * config/microblaze/microblaze.c: Extend mcpu version format
31810 2014-02-10  David Holsgrove  <david.holsgrove@xilinx.com>
31812         * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
31814 2014-02-10  Richard Henderson  <rth@redhat.com>
31816         PR target/59927
31817         * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
31818         * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
31819         ms-abi vs -mno-accumulate-outgoing-args.
31820         (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
31821         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
31822         respect to ms-abi.
31824 2014-02-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
31826         PR middle-end/60080
31827         * cfgexpand.c (expand_asm_operands): Attach source location to
31828         ASM_INPUT rtx objects.
31829         * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
31831 2014-02-10  Nick Clifton  <nickc@redhat.com>
31833         * config/mn10300/mn10300.c (popcount): New function.
31834         (mn10300_expand_prologue): Include saved registers in stack usage
31835         count.
31837 2014-02-10  Jeff Law  <law@redhat.com>
31839         PR middle-end/52306
31840         * reload1.c (emit_input_reload_insns): Do not create invalid RTL
31841         when changing the SET_DEST of a prior insn to avoid an input reload.
31843 2014-02-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
31845         * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
31846         big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
31847         -mcall-openbsd, or -mcall-linux.
31848         (CC1_ENDIAN_BIG_SPEC): Remove.
31849         (CC1_ENDIAN_LITTLE_SPEC): Remove.
31850         (CC1_ENDIAN_DEFAULT_SPEC): Remove.
31851         (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
31852         (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
31853         and %cc1_endian_default.
31854         * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
31856 2014-02-10  Richard Biener  <rguenther@suse.de>
31858         PR tree-optimization/60115
31859         * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
31860         MEM_REF handling.  Properly verify that the accesses are not
31861         out of the objects bound.
31863 2014-02-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31865         * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
31866         coretex to cortex.
31868 2014-02-10  Eric Botcazou  <ebotcazou@adacore.com>
31870         * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
31871         proper constants and fix formatting.
31872         (possible_polymorphic_call_targets): Fix formatting.
31874 2014-02-10  Kirill Yukhin  <kirill.yukhin@intel.com>
31875             Ilya Tocar  <ilya.tocar@intel.com>
31877         * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
31878         (_mm512_loadu_epi32): Renamed into...
31879         (_mm512_loadu_si512): This.
31880         (_mm512_storeu_epi32): Renamed into...
31881         (_mm512_storeu_si512): This.
31882         (_mm512_maskz_ceil_ps): Removed.
31883         (_mm512_maskz_ceil_pd): Ditto.
31884         (_mm512_maskz_floor_ps): Ditto.
31885         (_mm512_maskz_floor_pd): Ditto.
31886         (_mm512_floor_round_ps): Ditto.
31887         (_mm512_floor_round_pd): Ditto.
31888         (_mm512_ceil_round_ps): Ditto.
31889         (_mm512_ceil_round_pd): Ditto.
31890         (_mm512_mask_floor_round_ps): Ditto.
31891         (_mm512_mask_floor_round_pd): Ditto.
31892         (_mm512_mask_ceil_round_ps): Ditto.
31893         (_mm512_mask_ceil_round_pd): Ditto.
31894         (_mm512_maskz_floor_round_ps): Ditto.
31895         (_mm512_maskz_floor_round_pd): Ditto.
31896         (_mm512_maskz_ceil_round_ps): Ditto.
31897         (_mm512_maskz_ceil_round_pd): Ditto.
31898         (_mm512_expand_pd): Ditto.
31899         (_mm512_expand_ps): Ditto.
31900         * config/i386/i386.c (ix86_builtins): Remove
31901         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
31902         (bdesc_args): Ditto.
31903         * config/i386/predicates.md (const1256_operand): New.
31904         (const_1_to_2_operand): Ditto.
31905         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
31906         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
31907         (*avx512pf_gatherpf<mode>sf): Ditto.
31908         (avx512pf_gatherpf<mode>df): Ditto.
31909         (*avx512pf_gatherpf<mode>df_mask): Ditto.
31910         (*avx512pf_gatherpf<mode>df): Ditto.
31911         (avx512pf_scatterpf<mode>sf): Ditto.
31912         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
31913         (*avx512pf_scatterpf<mode>sf): Ditto.
31914         (avx512pf_scatterpf<mode>df): Ditto.
31915         (*avx512pf_scatterpf<mode>df_mask): Ditto.
31916         (*avx512pf_scatterpf<mode>df): Ditto.
31917         (avx512f_expand<mode>): Removed.
31918         (<shift_insn><mode>3<mask_name>): Change predicate type.
31920 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
31922         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
31923         not at the end of datarefs vector use ordered_remove to avoid
31924         reordering datarefs vector.
31926         PR c/59984
31927         * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
31928         mark local addressable non-static vars as GOVD_PRIVATE
31929         instead of GOVD_LOCAL.
31930         * omp-low.c (lower_omp_for): Move gimple_bind_vars
31931         and BLOCK_VARS of gimple_bind_block to new_stmt rather
31932         than copying them.
31934         PR middle-end/60092
31935         * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
31936         if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
31937         assume_aligned or alloc_align attributes.
31938         (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
31939         arguments.  Handle also assume_aligned and alloc_align attributes.
31940         (evaluate_stmt): Adjust bit_value_assume_aligned caller.  Handle
31941         calls to functions with assume_aligned or alloc_align attributes.
31942         * doc/extend.texi: Document assume_aligned and alloc_align attributes.
31944 2014-02-08  Terry Guo  <terry.guo@arm.com>
31946         * doc/invoke.texi: Document ARM -march=armv7e-m.
31948 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
31950         * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
31951         flag on __cilkrts_rethrow builtin.
31953         PR ipa/60026
31954         * ipa-cp.c (determine_versionability): Fail at -O0
31955         or __attribute__((optimize (0))) or -fno-ipa-cp functions.
31956         * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
31958         Revert:
31959         2014-02-04  Jakub Jelinek  <jakub@redhat.com>
31961         PR ipa/60026
31962         * tree-inline.c (copy_forbidden): Fail for
31963         __attribute__((optimize (0))) functions.
31965 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
31967         * varpool.c: Include pointer-set.h.
31968         (varpool_remove_unreferenced_decls): Variables in other partitions
31969         will not be output; be however careful to not lose information
31970         about partitioning.
31972 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
31974         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
31975         lookup in the vtable constructor.
31977 2014-02-07  Jeff Law  <law@redhat.com>
31979         PR target/40977
31980         * config/m68k/m68k.md (ashldi_extsi): Turn into a
31981         define_insn_and_split.
31983         * ipa-inline.c (inline_small_functions): Fix typos.
31985 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
31987         * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
31988         (s390_can_use_return_insn): Declare.
31989         * config/s390/s390.h (EPILOGUE_USES): Define.
31990         * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
31991         instructions.
31992         (s390_chunkify_start): Handle return JUMP_LABELs.
31993         (s390_early_mach): Emit a main_pool instruction on the entry edge.
31994         (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
31995         (s390_can_use_return_insn): New functions.
31996         (s390_fix_long_loop_prediction): Handle conditional returns.
31997         (TARGET_SET_UP_BY_PROLOGUE): Define.
31998         * config/s390/s390.md (ANY_RETURN): New code iterator.
31999         (*creturn, *csimple_return, return, simple_return): New patterns.
32001 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
32003         * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
32004         notes to each restore.  Also add REG_CFA_DEF_CFA when restoring %r15.
32005         (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P.  Update the
32006         REG_CFA_RESTORE list when deciding not to restore a register.
32008 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
32010         * config/s390/s390.c: Include tree-pass.h and context.h.
32011         (s390_early_mach): New function, split out from...
32012         (s390_emit_prologue): ...here.
32013         (pass_data_s390_early_mach): New pass structure.
32014         (pass_s390_early_mach): New class.
32015         (s390_option_override): Create and register early_mach pass.
32016         Move to end of file.
32018 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
32020         * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
32021         to match for the exit block.
32023 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32025         * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
32026         ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
32027         Reject misaligned operands.
32029 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32031         * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
32033 2014-02-07  Richard Biener  <rguenther@suse.de>
32035         PR middle-end/60092
32036         * gimple-low.c (lower_builtin_posix_memalign): New function.
32037         (lower_stmt): Call it to lower posix_memalign in a way
32038         to make alignment info accessible.
32040 2014-02-07  Jakub Jelinek  <jakub@redhat.com>
32042         PR c++/60082
32043         * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
32044         __builtin_setjmp_receiver.
32046 2014-02-07  Richard Biener  <rguenther@suse.de>
32048         PR middle-end/60092
32049         * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
32050         * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
32051         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
32052         Handle BUILT_IN_POSIX_MEMALIGN.
32053         (find_func_clobbers): Likewise.
32054         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
32055         (call_may_clobber_ref_p_1): Likewise.
32057 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
32059         PR ipa/59918
32060         * ipa-devirt.c (record_target_from_binfo): Remove overactive
32061         sanity check.
32063 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
32065         PR ipa/59469
32066         * lto-cgraph.c (lto_output_node): Use
32067         symtab_get_symbol_partitioning_class.
32068         (lto_output_varpool_node): likewise.
32069         (symtab_get_symbol_partitioning_class): Move here from
32070         lto/lto-partition.c
32071         * cgraph.h (symbol_partitioning_class): Likewise.
32072         (symtab_get_symbol_partitioning_class): Declare.
32074 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
32076         * ggc.h (ggc_internal_cleared_alloc): New macro.
32077         * vec.h (vec_safe_copy): Handle memory stats.
32078         * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
32079         * target-globals.c (save_target_globals): Likewise.
32081 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
32083         PR target/60077
32084         * expr.c (emit_move_resolve_push): Export; be bit more selective
32085         on when to clear alias set.
32086         * expr.h (emit_move_resolve_push): Declare.
32087         * function.h (struct function): Add tail_call_marked.
32088         * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
32089         * config/i386/i386-protos.h (ix86_expand_push): Remove.
32090         * config/i386/i386.md (TImode move expander): De not call
32091         ix86_expand_push.
32092         (FP push expanders): Preserve memory attributes.
32093         * config/i386/sse.md (push<mode>1): Remove.
32094         * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
32095         (ix86_expand_push): Remove.
32096         * config/i386/mmx.md (push<mode>1): Remove.
32098 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
32100         PR rtl-optimization/60030
32101         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
32102         lopart with paradoxical subreg before shifting it up by hprec.
32104 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32106         * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
32107         Remove extra newline at end of file.
32108         * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
32109         (arm_issue_rate): Handle cortexa57.
32110         * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
32111         (cortex-a57.cortex-a53): Likewise.
32113 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
32115         PR target/59575
32116         * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
32117         don't record in REG_FRAME_RELATED_EXPR registers not set in that
32118         bitmask.
32119         (arm_expand_prologue): Adjust all callers.
32120         (arm_unwind_emit_sequence): Allow saved, but not important for unwind
32121         info, registers also at the lowest numbered registers side.  Use
32122         gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
32123         XEXP.
32125         PR debug/59992
32126         * var-tracking.c (adjust_mems): Before adding a SET to
32127         amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
32129 2014-02-06  Alan Modra  <amodra@gmail.com>
32131         PR target/60032
32132         * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
32133         change SDmode to DDmode when lra_in_progress.
32135 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
32137         PR middle-end/59150
32138         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
32139         free_data_ref on the dr first, and before goto again also set dr
32140         to the next dr.  For simd_lane_access, free old datarefs[i] before
32141         overwriting it.  For get_vectype_for_scalar_type failure, don't
32142         free_data_ref if simd_lane_access.
32144         * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
32146         PR target/60062
32147         * tree.h (opts_for_fn): New inline function.
32148         (opt_for_fn): Define.
32149         * config/i386/i386.c (ix86_function_regparm): Use
32150         opt_for_fn (decl, optimize) instead of optimize.
32152 2014-02-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
32154         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
32155         for SYMBOL_REF in large memory model.
32157 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32159         * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
32160         and crypto support.
32161         (cortex-a57): Likewise.
32162         (cortex-a57.cortex-a53): Likewise.
32164 2014-02-06  Yury Gribov  <y.gribov@samsung.com>
32165             Kugan Vivekanandarajah  <kuganv@linaro.org>
32167         * config/arm/arm.c (arm_vector_alignment_reachable): Check
32168         unaligned_access.
32169         * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
32171 2014-02-06  Richard Biener  <rguenther@suse.de>
32173         * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
32174         set_loop_copy and initialize_original_copy_tables.
32176 2014-02-06  Alex Velenko  <Alex.Velenko@arm.com>
32178         * config/aarch64/aarch64-simd.md
32179         (aarch64_ashr_simddi): Change QI to SI.
32181 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
32182             Jakub Jelinek  <jakub@redhat.com>
32184         PR middle-end/60013
32185         * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
32186         of the dataflow.
32188 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32190         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
32191         CODE_FOR_altivec_vpku[hw]um to
32192         CODE_FOR_altivec_vpku[hw]um_direct.
32193         * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
32194         UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
32195         (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
32196         UNSPEC_VUNPACK_LO_SIGN_DIRECT.
32198 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32200         * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
32201         generation for -maltivec=be.
32202         (altivec_vsumsws): Simplify redundant test.
32204 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32206         * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
32207         (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
32208         (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
32209         (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
32210         gen_altivec_vpkuwum.
32211         (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
32212         BYTES_BIG_ENDIAN.
32213         (altivec_vpks<VI_char>ss): Likewise.
32214         (altivec_vpks<VI_char>us): Likewise.
32215         (altivec_vpku<VI_char>us): Likewise.
32216         (altivec_vpku<VI_char>um): Likewise.
32217         (altivec_vpku<VI_char>um_direct): New (copy of
32218         altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
32219         internal use).
32220         (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
32221         target is little endian and -maltivec=be is not specified.
32222         (*altivec_vupkhs<VU_char>_direct): New (copy of
32223         altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
32224         (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
32225         target is little endian and -maltivec=be is not specified.
32226         (*altivec_vupkls<VU_char>_direct): New (copy of
32227         altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
32228         (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
32229         little endian and -maltivec=be is not specified.
32230         (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
32231         little endian and -maltivec=be is not specified.
32233 2014-02-05  Richard Henderson  <rth@redhat.com>
32235         PR debug/52727
32236         * combine-stack-adj.c: Revert r206943.
32237         * sched-int.h (struct deps_desc): Add last_args_size.
32238         * sched-deps.c (init_deps): Initialize it.
32239         (sched_analyze_insn): Add OUTPUT dependencies between insns that
32240         contain REG_ARGS_SIZE notes.
32242 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
32244         * lto-cgraph.c (asm_nodes_output): Make global.
32245         * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
32246         * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
32247         (driver_handle_option): Handle OPT_fwpa.
32249 2014-02-05  Jakub Jelinek  <jakub@redhat.com>
32251         PR ipa/59947
32252         * ipa-devirt.c (possible_polymorphic_call_targets): Fix
32253         a comment typo and formatting issue.  If odr_hash hasn't been
32254         created, return vNULL and set *completep to false.
32256         PR middle-end/57499
32257         * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
32258         bb with no successors.
32260 2014-02-05  James Greenhalgh  <james.greenhalgh@arm.com>
32262         PR target/59718
32263         * doc/invoke.texi (-march): Clarify documentation for ARM.
32264         (-mtune): Likewise.
32265         (-mcpu): Likewise.
32267 2014-02-05  Richard Biener  <rguenther@suse.de>
32269         * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
32270         when not vectorizing because of too many alias checks.
32271         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
32272         Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
32274 2014-02-05  Nick Clifton  <nickc@redhat.com>
32276         * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
32277         accept extended registers in any mode when compiling for the MN10300.
32279 2014-02-05  Yury Gribov  <y.gribov@samsung.com>
32281         * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
32282         * ipa-inline.c (report_inline_failed_reason): Handle mismatched
32283         sanitization attributes.
32284         (can_inline_edge_p): Likewise.
32285         (sanitize_attrs_match_for_inline_p): New function.
32287 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
32289         * ipa-prop.c (detect_type_change): Shor circuit testing of
32290         type changes on THIS pointer.
32292 2014-02-04  John David Anglin  <danglin@gcc.gnu.org>
32294         PR target/59777
32295         * config/pa/pa.c (legitimize_tls_address): Return original address
32296         if not passed a SYMBOL_REF rtx.
32297         (hppa_legitimize_address): Call legitimize_tls_address for all TLS
32298         addresses.
32299         (pa_emit_move_sequence): Simplify TLS source operands.
32300         (pa_legitimate_constant_p): Reject all TLS constants.
32301         * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
32302         (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
32304 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
32306         * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
32307         groups when we know they are controlled by LTO.
32308         * varasm.c (default_binds_local_p_1): If object is in other partition,
32309         it will be resolved locally.
32311 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
32313         * config/host-linux.c (linux_gt_pch_use_address): Don't
32314         use SSIZE_MAX because it is not always defined.
32316 2014-02-04  Vladimir Makarov  <vmakarov@redhat.com>
32318         PR bootstrap/59913
32319         * lra-constraints.c (need_for_split_p): Use more 3 reloads as
32320         threshold for pseudo splitting.
32321         (update_ebb_live_info): Process call argument hard registers and
32322         hard registers from insn definition too.
32323         (max_small_class_regs_num): New constant.
32324         (inherit_in_ebb): Update live hard regs through EBBs.  Update
32325         reloads_num only for small register classes.  Don't split for
32326         outputs of jumps.
32328 2014-02-04  Markus Trippelsdorf  <markus@trippelsdorf.de>
32330         PR ipa/60058
32331         * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
32332         is non-null.
32334 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
32336         * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
32337         visibility is safe.
32339 2014-02-04  Marek Polacek  <polacek@redhat.com>
32341         * gdbinit.in (pel): Define.
32343 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
32345         * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
32346         behavior.
32348 2014-02-04  Richard Biener  <rguenther@suse.de>
32350         PR lto/59723
32351         * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
32352         in function context local.
32353         (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
32354         * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
32355         similar to LTO_imported_decl_ref.
32357 2014-02-04  Jakub Jelinek  <jakub@redhat.com>
32359         PR tree-optimization/60002
32360         * cgraphclones.c (build_function_decl_skip_args): Clear
32361         DECL_LANG_SPECIFIC.
32363         PR tree-optimization/60023
32364         * tree-if-conv.c (predicate_mem_writes): Pass true instead of
32365         false to gsi_replace.
32366         * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
32367         has been in some EH region and vec_stmt could throw, add
32368         vec_stmt into the same EH region.
32369         * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
32370         has no lhs, ignore it.
32371         * internal-fn.c (expand_MASK_LOAD): Likewise.
32373         PR ipa/60026
32374         * tree-inline.c (copy_forbidden): Fail for
32375         __attribute__((optimize (0))) functions.
32377         PR other/58712
32378         * omp-low.c (simd_clone_struct_copy): If from->inbranch
32379         is set, copy one less argument.
32380         (expand_simd_clones): Don't subtract clone_info->inbranch
32381         from simd_clone_struct_alloc argument.
32383         PR rtl-optimization/57915
32384         * recog.c (simplify_while_replacing): If all unary/binary/relational
32385         operation arguments are constant, attempt to simplify those.
32387         PR middle-end/59261
32388         * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
32389         if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
32391 2014-02-04  Richard Biener  <rguenther@suse.de>
32393         PR tree-optimization/60012
32394         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
32395         TBAA disambiguation to all DDRs.
32397 2014-02-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32399         PR target/59788
32400         * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
32401         (LINK_SPEC): Use it for -shared, -shared-libgcc.
32403 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
32405         PR ipa/59882
32406         * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
32408 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
32410         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
32411         * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
32413 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
32415         PR ipa/59831
32416         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
32417         to figure out targets of polymorphic calls with known decl.
32418         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
32419         * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
32420         * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
32421         (get_polymorphic_call_info): ... here.
32422         (get_polymorphic_call_info_from_invariant): New function.
32424 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
32426         * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
32427         lookup via vtable pointer; check for type consistency
32428         and turn inconsitent facts into UNREACHABLE.
32429         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
32430         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
32431         type inconsistent querries; return UNREACHABLE instead.
32433 2014-02-03  Richard Henderson  <rth@twiddle.net>
32435         PR tree-opt/59924
32436         * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
32437         already processed this node.
32438         (normalize_one_pred_1): Pass along mark_set.
32439         (normalize_one_pred): Create and destroy a pointer_set_t.
32440         (normalize_one_pred_chain): Likewise.
32442 2014-02-03  Laurent Aflonsi  <laurent.alfonsi@st.com>
32444         PR gcov-profile/58602
32445         * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
32447 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
32449         PR ipa/59831
32450         * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
32451         -fno-devirtualize; try to devirtualize by the knowledge of
32452         virtual table pointer given by aggregate propagation.
32453         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
32454         (ipa_print_node_jump_functions): Dump also offset that
32455         is relevant for polymorphic calls.
32456         (determine_known_aggregate_parts): Add arg_type parameter; use it
32457         instead of determining the type from pointer type.
32458         (ipa_compute_jump_functions_for_edge): Update call of
32459         determine_known_aggregate_parts.
32460         * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
32461         (gimple_get_virt_method_for_binfo): ... here; simplify using
32462         vtable_pointer_value_to_vtable.
32463         * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
32464         * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
32465         to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
32466         (vtable_pointer_value_to_vtable): Break out from ...; handle also
32467         POINTER_PLUS_EXPR.
32468         (vtable_pointer_value_to_binfo): ... here.
32469         * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
32471 2014-02-03  Teresa Johnson  <tejohnson@google.com>
32473         * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
32474         redef of outer loop index variable.
32476 2014-02-03  Marc Glisse  <marc.glisse@inria.fr>
32478         PR c++/53017
32479         PR c++/59211
32480         * doc/extend.texi (Function Attributes): Typo.
32482 2014-02-03  Cong Hou  <congh@google.com>
32484         PR tree-optimization/60000
32485         * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
32486         if the vectorized statement is a store.  A store statement can only
32487         appear at the end of pattern statements.
32489 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
32491         * config/i386/i386.c (flag_opts): Add -mlong-double-128.
32492         (ix86_option_override_internal): Default long double to 64-bit for
32493         32-bit Bionic and to 128-bit for 64-bit Bionic.
32495         * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
32496         TARGET_LONG_DOUBLE_128 is true.
32497         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
32499         * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
32500         (mlong-double-64): Negate -mlong-double-128.
32501         (mlong-double-128): New option.
32503         * config/i386/i386-c.c (ix86_target_macros): Define
32504         __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
32506         * doc/invoke.texi: Document -mlong-double-128.
32508 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
32510         PR rtl-optimization/60024
32511         * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
32513 2014-02-03  Markus Trippelsdorf  <markus@trippelsdorf.de>
32515         * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
32517 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
32519         PR rtl-optimization/57662
32520         * sel-sched.c (code_motion_path_driver): Do not mark already not
32521         existing blocks in the visiting bitmap.
32523 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
32525         * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
32526         on the insn being emitted.
32528 2014-02-03  James Greenhalgh  <james.greenhalgh@arm.com>
32529             Will Deacon  <will.deacon@arm.com>
32531         * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
32533 2014-02-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32535         * config/arm/arm-tables.opt: Regenerate.
32537 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32539         * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
32540         for vector types other than V16QImode.
32541         * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
32542         define_expand, and call altivec_expand_vec_perm_le when producing
32543         code with little endian element order.
32544         (*altivec_vperm_<mode>_internal): New insn having previous
32545         behavior of altivec_vperm_<mode>.
32546         (altivec_vperm_<mode>_uns): Change to a define_expand, and call
32547         altivec_expand_vec_perm_le when producing code with little endian
32548         element order.
32549         (*altivec_vperm_<mode>_uns_internal): New insn having previous
32550         behavior of altivec_vperm_<mode>_uns.
32552 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32554         * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
32555         (altivec_vsumsws): Add handling for -maltivec=be with a little
32556         endian target.
32557         (altivec_vsumsws_direct): New.
32558         (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
32559         gen_altivec_vsumsws.
32561 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
32563         * ipa-devirt.c (subbinfo_with_vtable_at_offset,
32564         vtable_pointer_value_to_binfo): New functions.
32565         * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
32566         * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
32568 2014-02-02  Sandra Loosemore  <sandra@codesourcery.com>
32570         * config/nios2/nios2.md (load_got_register): Initialize GOT
32571         pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
32572         * config/nios2/nios2.c (nios2_function_profiler): Likewise.
32574 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
32576         * ipa-prop.c (update_jump_functions_after_inlining): When type is not
32577         preserverd by passthrough, do not propagate the type.
32579 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
32581         * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
32582         (mips_atomic_assign_expand_fenv): New function.
32583         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
32585 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
32587         * doc/extend.texi (__builtin_mips_get_fcsr): Document.
32588         (__builtin_mips_set_fcsr): Likewise.
32589         * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
32590         MIPS_USI_FTYPE_VOID.
32591         * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
32592         (mips16_expand_set_fcsr): Likewise.
32593         * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
32594         (mips16_set_fcsr_stub): Likewise.
32595         (mips16_get_fcsr_one_only_stub): New class.
32596         (mips16_set_fcsr_one_only_stub): Likewise.
32597         (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
32598         (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
32599         (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
32600         (hard_float): New availability predicate.
32601         (mips_builtins): Add get_fcsr and set_fcsr.
32602         (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
32603         * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
32604         (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
32605         (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
32606         (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
32607         patterns.
32609 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
32611         * config/mips/mips.c (mips_one_only_stub): New class.
32612         (mips_need_mips16_rdhwr_p): Replace with...
32613         (mips16_rdhwr_stub): ...this new variable.
32614         (mips16_stub_call_address): New function.
32615         (mips16_rdhwr_one_only_stub): New class.
32616         (mips_expand_thread_pointer): Use mips16_stub_call_address.
32617         (mips_output_mips16_rdhwr): Delete.
32618         (mips_finish_stub): New function.
32619         (mips_code_end): Use it to handle rdhwr stubs.
32621 2014-02-02  Uros Bizjak  <ubizjak@gmail.com>
32623         PR target/60017
32624         * config/i386/i386.c (classify_argument): Fix handling of bit_offset
32625         when calculating size of integer atomic types.
32627 2014-02-02  H.J. Lu  <hongjiu.lu@intel.com>
32629         * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
32631 2014-02-01  Jakub Jelinek  <jakub@redhat.com>
32633         PR tree-optimization/60003
32634         * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
32635         * profile.c (branch_prob): Use gimple_call_builtin_p
32636         to check for BUILT_IN_SETJMP_RECEIVER.
32637         * tree-inline.c (copy_bb): Call notice_special_calls.
32639 2014-01-31  Vladimir Makarov  <vmakarov@redhat.com>
32641         PR bootstrap/59985
32642         * lra-constraints.c (process_alt_operands): Update reload_sum only
32643         on the first pass.
32645 2014-01-31  Richard Henderson  <rth@redhat.com>
32647         PR middle-end/60004
32648         * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
32649         until after else_eh is processed.
32651 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
32653         * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
32654         (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
32655         (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
32656         in smmintrin.h, remove them.
32657         (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
32658         * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
32659         * config/i386/i386.md (ROUND_SAE): Fix value.
32660         * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
32661         (const48_operand): New.
32662         * config/i386/subst.md (round), (round_expand): Use
32663         const_4_or_8_to_11_operand.
32664         (round_saeonly), (round_saeonly_expand): Use const48_operand.
32666 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
32668         * config/i386/constraints.md (Yk): Swap meaning with k.
32669         * config/i386/i386.md (movhi_internal): Change Yk to k.
32670         (movqi_internal): Ditto.
32671         (*k<logic><mode>): Ditto.
32672         (*andhi_1): Ditto.
32673         (*andqi_1): Ditto.
32674         (kandn<mode>): Ditto.
32675         (*<code>hi_1): Ditto.
32676         (*<code>qi_1): Ditto.
32677         (kxnor<mode>): Ditto.
32678         (kortestzhi): Ditto.
32679         (kortestchi): Ditto.
32680         (kunpckhi): Ditto.
32681         (*one_cmplhi2_1): Ditto.
32682         (*one_cmplqi2_1): Ditto.
32683         * config/i386/sse.md (): Change k to Yk.
32684         (avx512f_load<mode>_mask): Ditto.
32685         (avx512f_blendm<mode>): Ditto.
32686         (avx512f_store<mode>_mask): Ditto.
32687         (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
32688         (avx512f_storedqu<mode>_mask): Ditto.
32689         (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
32690         Ditto.
32691         (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
32692         (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
32693         (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
32694         (avx512f_maskcmp<mode>3): Ditto.
32695         (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
32696         (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
32697         (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
32698         (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
32699         (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
32700         (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
32701         (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
32702         (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
32703         (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
32704         (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
32705         (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
32706         (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
32707         (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
32708         (vec_extract_lo_<mode>_maskm): Ditto.
32709         (vec_extract_hi_<mode>_maskm): Ditto.
32710         (avx512f_vternlog<mode>_mask): Ditto.
32711         (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
32712         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
32713         (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
32714         (avx512f_<code>v8div16qi2_mask): Ditto.
32715         (avx512f_<code>v8div16qi2_mask_store): Ditto.
32716         (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
32717         (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
32718         (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
32719         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
32720         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
32721         (*avx512pf_gatherpf<mode>df_mask): Ditto.
32722         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
32723         (*avx512pf_scatterpf<mode>df_mask): Ditto.
32724         (avx512cd_maskb_vec_dupv8di): Ditto.
32725         (avx512cd_maskw_vec_dupv16si): Ditto.
32726         (avx512f_vpermi2var<mode>3_maskz): Ditto.
32727         (avx512f_vpermi2var<mode>3_mask): Ditto.
32728         (avx512f_vpermi2var<mode>3_mask): Ditto.
32729         (avx512f_vpermt2var<mode>3_maskz): Ditto.
32730         (*avx512f_gathersi<mode>): Ditto.
32731         (*avx512f_gathersi<mode>_2): Ditto.
32732         (*avx512f_gatherdi<mode>): Ditto.
32733         (*avx512f_gatherdi<mode>_2): Ditto.
32734         (*avx512f_scattersi<mode>): Ditto.
32735         (*avx512f_scatterdi<mode>): Ditto.
32736         (avx512f_compress<mode>_mask): Ditto.
32737         (avx512f_compressstore<mode>_mask): Ditto.
32738         (avx512f_expand<mode>_mask): Ditto.
32739         * config/i386/subst.md (mask): Change k to Yk.
32740         (mask_scalar_merge): Ditto.
32741         (sd): Ditto.
32743 2014-01-31  Marc Glisse  <marc.glisse@inria.fr>
32745         * doc/extend.texi (Vector Extensions): Document ?: in C++.
32747 2014-01-31  Richard Biener  <rguenther@suse.de>
32749         PR middle-end/59990
32750         * builtins.c (fold_builtin_memory_op): Make sure to not
32751         use a floating-point mode or a boolean or enumeral type for
32752         the copy operation.
32754 2014-01-30  DJ Delorie  <dj@redhat.com>
32756         * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
32757         * config/msp430/msp430.md (msp430_refsym_need_exit): New.
32758         * config/msp430/msp430.c (msp430_expand_epilogue): Call it
32759         whenever main() has an epilogue.
32761 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32763         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
32764         unused variable "field".
32765         * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
32766         (vsx_mergeh_<mode>): Likewise.
32767         * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
32768         (altivec_vmrghh): Likewise.
32769         (altivec_vmrghw): Likewise.
32770         (altivec_vmrglb): Likewise.
32771         (altivec_vmrglh): Likewise.
32772         (altivec_vmrglw): Likewise.
32773         (altivec_vspltb): Add missing uses.
32774         (altivec_vsplth): Likewise.
32775         (altivec_vspltw): Likewise.
32776         (altivec_vspltsf): Likewise.
32778 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
32780         PR target/59923
32781         * ifcvt.c (cond_exec_process_insns): Don't conditionalize
32782         frame related instructions.
32784 2014-01-30  Vladimir Makarov  <vmakarov@redhat.com>
32786         PR rtl-optimization/59959
32787         * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
32788         any reload of register whose subreg is invalid.
32790 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
32792         * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
32793         * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
32794         Add missing return type - void.
32796 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32798         * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
32799         gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
32800         remove element index adjustment for endian (now handled in vsx.md
32801         and altivec.md).
32802         (altivec_expand_vec_perm_const): Use
32803         gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
32804         * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
32805         (vsx_xxspltw_<mode>): Adjust element index for little endian.
32806         * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
32807         define_expand and a new define_insn *altivec_vspltb_internal;
32808         adjust for -maltivec=be on a little endian target.
32809         (altivec_vspltb_direct): New.
32810         (altivec_vsplth): Divide into a define_expand and a new
32811         define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
32812         little endian target.
32813         (altivec_vsplth_direct): New.
32814         (altivec_vspltw): Divide into a define_expand and a new
32815         define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
32816         little endian target.
32817         (altivec_vspltw_direct): New.
32818         (altivec_vspltsf): Divide into a define_expand and a new
32819         define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
32820         a little endian target.
32822 2014-01-30  Richard Biener  <rguenther@suse.de>
32824         PR tree-optimization/59993
32825         * tree-ssa-forwprop.c (associate_pointerplus): Check we
32826         can propagate form the earlier stmt and avoid the transform
32827         when the intermediate result is needed.
32829 2014-01-30  Alangi Derick  <alangiderick@gmail.com>
32831         * README.Portability: Fix typo.
32833 2014-01-30  David Holsgrove  <david.holsgrove@xilinx.com>
32835         * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
32836         comparison_operator with ordered_comparison_operator.
32838 2014-01-30  Nick Clifton  <nickc@redhat.com>
32840         * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
32841         Rename to mn10300_store_multiple_regs.
32842         * config/mn10300/mn10300.c: Likewise.
32843         * config/mn10300/mn10300.md (store_movm): Fix typo: call
32844         store_multiple_regs.
32845         * config/mn10300/predicates.md (mn10300_store_multiple_operation):
32846         Call mn10300_store_multiple_regs.
32848 2014-01-30  Nick Clifton  <nickc@redhat.com>
32849             DJ Delorie  <dj@redhat.com>
32851         * config/rl78/rl78.c (register_sizes): Make the "upper half" of
32852         %fp 2 to keep registers after it properly word-aligned.
32853         (rl78_alloc_physical_registers_umul): Handle the case where both
32854         input operands are the same.
32856 2014-01-30  Richard Biener  <rguenther@suse.de>
32858         PR tree-optimization/59903
32859         * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
32860         check properly.
32862 2014-01-30  Jason Merrill  <jason@redhat.com>
32864         PR c++/59633
32865         * tree.c (walk_type_fields): Handle VECTOR_TYPE.
32867         PR c++/59645
32868         * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
32870 2014-01-30  Richard Biener  <rguenther@suse.de>
32872         PR tree-optimization/59951
32873         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
32875 2014-01-30  Savin Zlobec  <savin.zlobec@gmail.com>
32877         PR target/59784
32878         * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
32879         SFmode to DFmode case.
32881 2014-01-29  DJ Delorie  <dj@redhat.com>
32883         * config/msp430/msp430.opt (-minrt): New.
32884         * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
32885         if -minrt given.
32886         (ENDFILE_SPEC): Likewise.
32888 2014-01-29  Jan Hubicka  <hubicka@ucw.cz>
32890         * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
32891         (estimate_function_body_sizes): Use it.
32893 2014-01-29  Paolo Carlini  <paolo.carlini@oracle.com>
32895         PR c++/58561
32896         * dwarf2out.c (is_cxx_auto): New.
32897         (is_base_type): Use it.
32898         (gen_type_die_with_usage): Likewise.
32900 2014-01-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32902         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const):  Use
32903         CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
32904         * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
32905         -maltivec=be with LE targets.
32906         (vsx_mergeh_<mode>): Likewise.
32907         * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
32908         (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
32909         (altivec_vmrghb): Replace with define_expand and new
32910         *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
32911         (altivec_vmrghb_direct): New define_insn.
32912         (altivec_vmrghh): Replace with define_expand and new
32913         *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
32914         (altivec_vmrghh_direct): New define_insn.
32915         (altivec_vmrghw): Replace with define_expand and new
32916         *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
32917         (altivec_vmrghw_direct): New define_insn.
32918         (*altivec_vmrghsf): Adjust for endianness.
32919         (altivec_vmrglb): Replace with define_expand and new
32920         *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
32921         (altivec_vmrglb_direct): New define_insn.
32922         (altivec_vmrglh): Replace with define_expand and new
32923         *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
32924         (altivec_vmrglh_direct): New define_insn.
32925         (altivec_vmrglw): Replace with define_expand and new
32926         *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
32927         (altivec_vmrglw_direct): New define_insn.
32928         (*altivec_vmrglsf): Adjust for endianness.
32929         (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
32930         (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
32931         (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
32932         (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
32933         (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
32934         (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
32935         (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
32936         (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
32938 2014-01-29  Marcus Shawcroft  <marcus.shawcroft@arm.com>
32940         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
32941         (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
32942         whitespace.
32944 2014-01-29  Richard Biener  <rguenther@suse.de>
32946         PR tree-optimization/58742
32947         * tree-ssa-forwprop.c (associate_pointerplus): Rename to
32948         associate_pointerplus_align.
32949         (associate_pointerplus_diff): New function.
32950         (associate_pointerplus): Likewise.  Call associate_pointerplus_align
32951         and associate_pointerplus_diff.
32953 2014-01-29  Richard Biener  <rguenther@suse.de>
32955         * lto-streamer.h (LTO_major_version): Bump to 3.
32956         (LTO_minor_version): Reset to 0.
32958 2014-01-29  Renlin Li  <Renlin.Li@arm.com>
32960         * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
32961         * config/arm/arm.c (FL_FOR_ARCH7VE): New.
32962         (arm_file_start): Generate correct asm header for armv7ve.
32963         * config/arm/bpabi.h: Add multilib support for armv7ve.
32964         * config/arm/driver-arm.c: Change the architectures of cortex-a7
32965         and cortex-a15 to armv7ve.
32966         * config/arm/t-aprofile: Add multilib support for armv7ve.
32967         * doc/invoke.texi: Document -march=armv7ve.
32969 2014-01-29  Richard Biener  <rguenther@suse.de>
32971         PR tree-optimization/58742
32972         * tree-ssa-forwprop.c (associate_plusminus): Return true
32973         if we changed sth, defer EH cleanup to ...
32974         (ssa_forward_propagate_and_combine): ... here.  Call simplify_mult.
32975         (simplify_mult): New function.
32977 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
32979         PR middle-end/59917
32980         PR tree-optimization/59920
32981         * tree.c (build_common_builtin_nodes): Remove
32982         __builtin_setjmp_dispatcher initialization.
32983         * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
32984         * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
32985         instead of gsi_after_labels + manually skipping debug stmts.
32986         Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
32987         ignore bbs with IFN_ABNORMAL_DISPATCHER.
32988         * tree-inline.c (copy_edges_for_bb): Remove
32989         can_make_abnormal_goto argument, instead add abnormal_goto_dest
32990         argument.  Ignore computed_goto_p stmts.  Don't call
32991         make_abnormal_goto_edges.  If a call might need abnormal edges
32992         for non-local gotos, see if it already has an edge to
32993         IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
32994         with true argument, don't do anything then, otherwise add
32995         EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
32996         (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
32997         caller.
32998         * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
32999         (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
33000         (lower_stmt): Don't set data->calls_builtin_setjmp.
33001         (lower_builtin_setjmp): Adjust comment.
33002         * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
33003         * tree-cfg.c (found_computed_goto): Remove.
33004         (factor_computed_gotos): Remove.
33005         (make_goto_expr_edges): Return bool, true for computed gotos.
33006         Don't call make_abnormal_goto_edges.
33007         (build_gimple_cfg): Don't set found_computed_goto, don't call
33008         factor_computed_gotos.
33009         (computed_goto_p): No longer static.
33010         (make_blocks): Don't set found_computed_goto.
33011         (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
33012         (make_edges): If make_goto_expr_edges returns true, push bb
33013         into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
33014         instead of calling make_abnormal_goto_edges push bb into ab_edge_call
33015         vector.  Record mapping between bbs and OpenMP regions if there
33016         are any, adjust make_gimple_omp_edges caller.  Call
33017         handle_abnormal_edges.
33018         (make_abnormal_goto_edges): Remove.
33019         * tree-cfg.h (make_abnormal_goto_edges): Remove.
33020         (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
33021         * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
33022         * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
33023         * internal-fn.def (ABNORMAL_DISPATCHER): New.
33024         * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
33025         filling *region also set *region_idx to (*region)->entry->index.
33027         PR other/58712
33028         * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
33029         For REGs set ORIGINAL_REGNO.
33031 2014-01-29  Bingfeng Mei  <bmei@broadcom.com>
33033         * doc/md.texi: Mention that a target shouldn't implement
33034         vec_widen_(s|u)mul_even/odd pair if it is less efficient
33035         than hi/lo pair.
33037 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
33039         PR tree-optimization/59594
33040         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
33041         a copy of the datarefs vector rather than the vector itself.
33043 2014-01-28  Jason Merrill  <jason@redhat.com>
33045         PR c++/53756
33046         * dwarf2out.c (auto_die): New static.
33047         (gen_type_die_with_usage): Handle C++1y 'auto'.
33048         (gen_subprogram_die): If in-class DIE had 'auto', emit type again
33049         on definition.
33051 2014-01-28  H.J. Lu  <hongjiu.lu@intel.com>
33053         PR target/59672
33054         * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
33055         (SPEC_X32): Likewise.
33056         (SPEC_64): Likewise.
33057         * config/i386/i386.c (ix86_option_override_internal): Turn off
33058         OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
33059         for TARGET_16BIT.
33060         (x86_file_start): Output .code16gcc for TARGET_16BIT.
33061         * config/i386/i386.h (TARGET_16BIT): New macro.
33062         (TARGET_16BIT_P): Likewise.
33063         * config/i386/i386.opt: Add m16.
33064         * doc/invoke.texi: Document -m16.
33066 2014-01-28  Jakub Jelinek  <jakub@redhat.com>
33068         PR preprocessor/59935
33069         * input.c (location_get_source_line): Bail out on when line number
33070         is zero, and test the return value of lookup_or_add_file_to_cache_tab.
33072 2014-01-28  Richard Biener  <rguenther@suse.de>
33074         PR tree-optimization/58742
33075         * tree-ssa-forwprop.c (associate_plusminus): Handle
33076         pointer subtraction of the form (T)(P + A) - (T)P.
33078 2014-01-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33080         * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
33081         at const_int_cost.
33083 2014-01-28  Richard Biener  <rguenther@suse.de>
33085         Revert
33086         2014-01-28  Richard Biener  <rguenther@suse.de>
33088         PR rtl-optimization/45364
33089         PR rtl-optimization/59890
33090         * var-tracking.c (local_get_addr_clear_given_value): Handle
33091         already cleared slot.
33092         (val_reset): Handle not allocated local_get_addr_cache.
33093         (vt_find_locations): Use post-order on the inverted CFG.
33095 2014-01-28  Richard Biener  <rguenther@suse.de>
33097         * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
33099 2014-01-28  Richard Biener  <rguenther@suse.de>
33101         PR rtl-optimization/45364
33102         PR rtl-optimization/59890
33103         * var-tracking.c (local_get_addr_clear_given_value): Handle
33104         already cleared slot.
33105         (val_reset): Handle not allocated local_get_addr_cache.
33106         (vt_find_locations): Use post-order on the inverted CFG.
33108 2014-01-28  Alan Modra  <amodra@gmail.com>
33110         * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
33111         * configure.ac <recursive call for build != host>: Define
33112         GENERATOR_FILE.  Comment.  Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
33113         and LD_FOR_BUILD too.
33114         * configure: Regenerate.
33116 2014-01-27  Allan Sandfeld Jensen  <sandfeld@kde.org>
33118         * config/i386/i386.c (get_builtin_code_for_version): Separate
33119         Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
33120         Broadwell from Haswell.
33122 2014-01-27  Steve Ellcey  <sellcey@mips.com>
33124         * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
33125         Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
33126         * config/mips/mips.c (mips_option_override): Change setting
33127         of TARGET_DSP.
33128         * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
33129         * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
33130         Change from Mask to Var.
33132 2014-01-27  Jeff Law  <law@redhat.com>
33134         * ipa-inline.c (inline_small_functions): Fix typo.
33136 2014-01-27  Ilya Tocar  <ilya.tocar@intel.com>
33138         * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
33139         (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
33140         (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
33141         (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
33142         (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
33143         (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
33144         (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
33145         (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
33146         (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
33147         (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
33148         (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
33149         (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
33150         (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
33151         (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
33152         (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
33153         (_mm512_storeu_epi64): Ditto.
33154         (_mm512_cmpge_epi32_mask): Ditto.
33155         (_mm512_cmpge_epu32_mask): Ditto.
33156         (_mm512_cmpge_epi64_mask): Ditto.
33157         (_mm512_cmpge_epu64_mask): Ditto.
33158         (_mm512_cmple_epi32_mask): Ditto.
33159         (_mm512_cmple_epu32_mask): Ditto.
33160         (_mm512_cmple_epi64_mask): Ditto.
33161         (_mm512_cmple_epu64_mask): Ditto.
33162         (_mm512_cmplt_epi32_mask): Ditto.
33163         (_mm512_cmplt_epu32_mask): Ditto.
33164         (_mm512_cmplt_epi64_mask): Ditto.
33165         (_mm512_cmplt_epu64_mask): Ditto.
33166         (_mm512_cmpneq_epi32_mask): Ditto.
33167         (_mm512_cmpneq_epu32_mask): Ditto.
33168         (_mm512_cmpneq_epi64_mask): Ditto.
33169         (_mm512_cmpneq_epu64_mask): Ditto.
33170         (_mm512_expand_pd): Ditto.
33171         (_mm512_expand_ps): Ditto.
33172         * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
33173         VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
33174         VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
33175         * config/i386/i386.c (ix86_builtins): Add
33176         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
33177         IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
33178         IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
33179         IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
33180         IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
33181         IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
33182         IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
33183         IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
33184         IX86_BUILTIN_PMOVUSQW512_MEM.
33185         (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
33186         __builtin_ia32_pmovsqd512mem_mask,
33187         __builtin_ia32_pmovqd512mem_mask,
33188         __builtin_ia32_pmovusqw512mem_mask,
33189         __builtin_ia32_pmovsqw512mem_mask,
33190         __builtin_ia32_pmovqw512mem_mask,
33191         __builtin_ia32_pmovusdw512mem_mask,
33192         __builtin_ia32_pmovsdw512mem_mask,
33193         __builtin_ia32_pmovdw512mem_mask,
33194         __builtin_ia32_pmovqb512mem_mask,
33195         __builtin_ia32_pmovusqb512mem_mask,
33196         __builtin_ia32_pmovsqb512mem_mask,
33197         __builtin_ia32_pmovusdb512mem_mask,
33198         __builtin_ia32_pmovsdb512mem_mask,
33199         __builtin_ia32_pmovdb512mem_mask.
33200         (bdesc_args): Add __builtin_ia32_expanddf512,
33201         __builtin_ia32_expandsf512.
33202         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
33203         VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
33204         VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
33205         * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
33206         (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
33207         (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
33208         (avx512f_<code>v8div16qi2_mask_store): This.
33209         (avx512f_expand<mode>): New.
33211 2014-01-27  Kirill Yukhin  <kirill.yukhin@intel.com>
33213         * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
33214         New.
33215         (_mm512_mask_prefetch_i64gather_pd): Ditto.
33216         (_mm512_prefetch_i32scatter_pd): Ditto.
33217         (_mm512_mask_prefetch_i32scatter_pd): Ditto.
33218         (_mm512_prefetch_i64scatter_pd): Ditto.
33219         (_mm512_mask_prefetch_i64scatter_pd): Ditto.
33220         (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
33221         (_mm512_mask_prefetch_i64gather_ps): Ditto.
33222         (_mm512_prefetch_i32scatter_ps): Ditto.
33223         (_mm512_mask_prefetch_i32scatter_ps): Ditto.
33224         (_mm512_prefetch_i64scatter_ps): Ditto.
33225         (_mm512_mask_prefetch_i64scatter_ps): Ditto.
33226         * config/i386/i386-builtin-types.def: Define
33227         VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
33228         and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
33229         * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
33230         IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
33231         IX86_BUILTIN_SCATTERPFQPD.
33232         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
33233         __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
33234         __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
33235         __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
33236         __builtin_ia32_scatterpfqps.
33237         (ix86_expand_builtin): Expand new built-ins.
33238         * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
33239         fix memory access data type.
33240         (*avx512pf_gatherpf<mode>_mask): Ditto.
33241         (*avx512pf_gatherpf<mode>): Ditto.
33242         (avx512pf_scatterpf<mode>): Ditto.
33243         (*avx512pf_scatterpf<mode>_mask): Ditto.
33244         (*avx512pf_scatterpf<mode>): Ditto.
33245         (GATHER_SCATTER_SF_MEM_MODE): New.
33246         (avx512pf_gatherpf<mode>df): Ditto.
33247         (*avx512pf_gatherpf<mode>df_mask): Ditto.
33248         (*avx512pf_scatterpf<mode>df): Ditto.
33250 2014-01-27  Jakub Jelinek  <jakub@redhat.com>
33252         PR bootstrap/59934
33253         * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
33254         know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
33255         reached.
33257 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
33259         * common/config/arm/arm-common.c
33260         (arm_rewrite_mcpu): Handle multiple names.
33261         * config/arm/arm.h
33262         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
33264 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
33266         * gimple-builder.h (create_gimple_tmp): Delete.
33268 2014-01-27  Christian Bruel  <christian.bruel@st.com>
33270         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
33271         words comparisons.
33273 2014-01-26  John David Anglin  <danglin@gcc.gnu.org>
33275         * config/pa/pa.md (call): Generate indirect long calls to non-local
33276         functions when outputing 32-bit code.
33277         (call_value): Likewise except for special call to buggy powf function.
33279         * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
33280         portable runtime and PIC indirect calls.
33281         (pa_output_indirect_call): Remove unnecessary nop from portable runtime
33282         and PIC call sequences.  Use ldo instead of blr to set return register
33283         in PIC call sequence.
33285 2014-01-25  Walter Lee  <walt@tilera.com>
33287         * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
33288         avoid clobbering a live register.
33290 2014-01-25  Walter Lee  <walt@tilera.com>
33292         * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
33293         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
33294         * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
33295         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
33297 2014-01-25  Walter Lee  <walt@tilera.com>
33299         * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
33300         arguments on even registers.
33301         (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
33302         STACK_BOUNDARY.
33303         * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
33304         (BIGGEST_ALIGNMENT): Ditto.
33305         (BIGGEST_FIELD_ALIGNMENT): Ditto.
33307 2014-01-25  Walter Lee  <walt@tilera.com>
33309         * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
33310         insns before bundling.
33311         * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
33313 2014-01-25  Walter Lee  <walt@tilera.com>
33315         * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
33316         PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
33317         * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
33319 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
33321         * config/mips/constraints.md (kl): Delete.
33322         * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
33323         define expands, using...
33324         (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
33325         instructions for MIPS16.
33326         (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
33327         non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
33329 2014-01-25  Walter Lee  <walt@tilera.com>
33331         * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
33332         (clzdi2): Ditto.
33333         (ffsdi2): Ditto.
33335 2014-01-25  Walter Lee  <walt@tilera.com>
33337         * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
33338         (TARGET_EXPAND_TO_RTL_HOOK): Define.
33340 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
33342         * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
33343         Handle XOR.
33345 2014-01-25  Jakub Jelinek  <jakub@redhat.com>
33347         * print-rtl.c (in_call_function_usage): New var.
33348         (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
33349         EXPR_LIST mode as mode and not as reg note name.
33351         PR middle-end/59561
33352         * cfgloopmanip.c (copy_loop_info): If
33353         loop->warned_aggressive_loop_optimizations, make sure
33354         the flag is set in target loop too.
33356 2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
33358         * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
33359         flag_cilkplus.
33360         * builtins.def: Likewise.
33361         * cilk.h (fn_contains_cilk_spawn_p): Likewise.
33362         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
33363         * ira.c (ira_setup_eliminable_regset): Likewise.
33364         * omp-low.c (gate_expand_omp): Likewise.
33365         (execute_lower_omp): Likewise.
33366         (diagnose_sb_0): Likewise.
33367         (gate_diagnose_omp_blocks): Likewise.
33368         (simd_clone_clauses_extract): Likewise.
33369         (gate): Likewise.
33371 2014-01-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33373         * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
33374         correction for little endian...
33375         * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
33376         here.
33378 2014-01-24  Jeff Law  <law@redhat.com>
33380         PR tree-optimization/59919
33381         * tree-vrp.c (find_assert_locations_1): Do not register asserts
33382         for non-returning calls.
33384 2014-01-24  James Greenhalgh  <james.greenhalgh@arm.com>
33386         * common/config/aarch64/aarch64-common.c
33387         (aarch64_rewrite_mcpu): Handle multiple names.
33388         * config/aarch64/aarch64.h
33389         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
33391 2014-01-24  Dodji Seketeli  <dodji@redhat.com>
33393         * input.c (add_file_to_cache_tab): Handle the case where fopen
33394         returns NULL.
33396 2014-01-23  H.J. Lu  <hongjiu.lu@intel.com>
33398         PR target/59929
33399         * config/i386/i386.md (pushsf splitter): Get stack adjustment
33400         from push operand if code of push isn't PRE_DEC.
33402 2014-01-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
33404         PR target/59909
33405         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
33406         -mquad-memory-atomic.  Update -mquad-memory documentation to say
33407         it is only used for non-atomic loads/stores.
33409         * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
33410         -mquad-memory or -mquad-memory-atomic switches.
33412         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
33413         -mquad-memory-atomic to ISA 2.07 support.
33415         * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
33416         to separate support of normal quad word memory operations (ldq, stq)
33417         from the atomic quad word memory operations.
33419         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
33420         support to separate non-atomic quad word operations from atomic
33421         quad word operations.  Disable non-atomic quad word operations in
33422         little endian mode so that we don't have to swap words after the
33423         load and before the store.
33424         (quad_load_store_p): Add comment about atomic quad word support.
33425         (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
33426         options printed with -mdebug=reg.
33428         * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
33429         -mquad-memory-atomic as the test for whether we have quad word
33430         atomic instructions.
33431         (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
33432         or -mp8-vector are used, allow byte/half-word atomic operations.
33434         * config/rs6000/sync.md (load_lockedti): Insure that the address
33435         is a proper indexed or indirect address for the lqarx instruction.
33436         On little endian systems, swap the hi/lo registers after the lqarx
33437         instruction.
33438         (load_lockedpti): Use indexed_or_indirect_operand predicate to
33439         insure the address is valid for the lqarx instruction.
33440         (store_conditionalti): Insure that the address is a proper indexed
33441         or indirect address for the stqcrx. instruction.  On little endian
33442         systems, swap the hi/lo registers before doing the stqcrx.
33443         instruction.
33444         (store_conditionalpti): Use indexed_or_indirect_operand predicate to
33445         insure the address is valid for the stqcrx. instruction.
33447         * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
33448         Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
33449         type of quad memory support is available.
33451 2014-01-23  Vladimir Makarov  <vmakarov@redhat.com>
33453         PR regression/59915
33454         * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
33455         there is a danger of looping.
33457 2014-01-23  Pat Haugen  <pthaugen@us.ibm.com>
33459         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
33460         force flag_ira_loop_pressure if set via command line.
33462 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
33464         * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
33465         (ashr_simd): New builtin handling DI mode.
33466         * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
33467         (aarch64_sshr_simddi): New match pattern.
33468         * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
33469         (vshrd_n_s64): Likewise.
33470         * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
33472 2014-01-23  Nick Clifton  <nickc@redhat.com>
33474         * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
33475         (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
33476         favour of mcu specific scripts.
33477         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
33478         430x multilibs.
33480 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
33481             Alex Velenko  <Alex.Velenko@arm.com>
33483         * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
33484         (vaddv_s16): Likewise.
33485         (vaddv_s32): Likewise.
33486         (vaddv_u8): Likewise.
33487         (vaddv_u16): Likewise.
33488         (vaddv_u32): Likewise.
33489         (vaddvq_s8): Likewise.
33490         (vaddvq_s16): Likewise.
33491         (vaddvq_s32): Likewise.
33492         (vaddvq_s64): Likewise.
33493         (vaddvq_u8): Likewise.
33494         (vaddvq_u16): Likewise.
33495         (vaddvq_u32): Likewise.
33496         (vaddvq_u64): Likewise.
33497         (vaddv_f32): Likewise.
33498         (vaddvq_f32): Likewise.
33499         (vaddvq_f64): Likewise.
33500         (vmaxv_f32): Likewise.
33501         (vmaxv_s8): Likewise.
33502         (vmaxv_s16): Likewise.
33503         (vmaxv_s32): Likewise.
33504         (vmaxv_u8): Likewise.
33505         (vmaxv_u16): Likewise.
33506         (vmaxv_u32): Likewise.
33507         (vmaxvq_f32): Likewise.
33508         (vmaxvq_f64): Likewise.
33509         (vmaxvq_s8): Likewise.
33510         (vmaxvq_s16): Likewise.
33511         (vmaxvq_s32): Likewise.
33512         (vmaxvq_u8): Likewise.
33513         (vmaxvq_u16): Likewise.
33514         (vmaxvq_u32): Likewise.
33515         (vmaxnmv_f32): Likewise.
33516         (vmaxnmvq_f32): Likewise.
33517         (vmaxnmvq_f64): Likewise.
33518         (vminv_f32): Likewise.
33519         (vminv_s8): Likewise.
33520         (vminv_s16): Likewise.
33521         (vminv_s32): Likewise.
33522         (vminv_u8): Likewise.
33523         (vminv_u16): Likewise.
33524         (vminv_u32): Likewise.
33525         (vminvq_f32): Likewise.
33526         (vminvq_f64): Likewise.
33527         (vminvq_s8): Likewise.
33528         (vminvq_s16): Likewise.
33529         (vminvq_s32): Likewise.
33530         (vminvq_u8): Likewise.
33531         (vminvq_u16): Likewise.
33532         (vminvq_u32): Likewise.
33533         (vminnmv_f32): Likewise.
33534         (vminnmvq_f32): Likewise.
33535         (vminnmvq_f64): Likewise.
33537 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
33539         * config/aarch64/aarch64-simd.md
33540         (aarch64_dup_lane<mode>): Correct lane number on big-endian.
33541         (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
33542         (*aarch64_mul3_elt<mode>): Likewise.
33543         (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
33544         (*aarch64_mul3_elt_to_64v2df): Likewise.
33545         (*aarch64_mla_elt<mode>): Likewise.
33546         (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
33547         (*aarch64_mls_elt<mode>): Likewise.
33548         (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
33549         (*aarch64_fma4_elt<mode>): Likewise.
33550         (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
33551         (*aarch64_fma4_elt_to_64v2df): Likewise.
33552         (*aarch64_fnma4_elt<mode>): Likewise.
33553         (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
33554         (*aarch64_fnma4_elt_to_64v2df): Likewise.
33555         (aarch64_sq<r>dmulh_lane<mode>): Likewise.
33556         (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
33557         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
33558         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
33559         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
33560         (aarch64_sqdmull_lane<mode>_internal): Likewise.
33561         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
33563 2013-01-23  Alex Velenko  <Alex.Velenko@arm.com>
33565         * config/aarch64/aarch64-simd.md
33566         (aarch64_be_checked_get_lane<mode>): New define_expand.
33567         * config/aarch64/aarch64-simd-builtins.def
33568         (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
33569         New builtin definition.
33570         * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
33571         Use new safe be builtin.
33573 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
33575         * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
33576         New define_insn.
33577         (aarch64_be_st1<mode>): Likewise.
33578         (aarch_ld1<VALL:mode>): Define_expand modified.
33579         (aarch_st1<VALL:mode>): Likewise.
33580         * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
33581         (UNSPEC_ST1): Likewise.
33583 2014-01-23  David Holsgrove  <david.holsgrove@xilinx.com>
33585         * config/microblaze/microblaze.md: Add trap insn and attribute
33587 2014-01-23  Dodji Seketeli  <dodji@redhat.com>
33589         PR preprocessor/58580
33590         * input.h (location_get_source_line): Take an additional line_size
33591         parameter.
33592         (void diagnostics_file_cache_fini): Declare new function.
33593         * input.c (struct fcache): New type.
33594         (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
33595         New static constants.
33596         (diagnostic_file_cache_init, total_lines_num)
33597         (lookup_file_in_cache_tab, evicted_cache_tab_entry)
33598         (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
33599         (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
33600         (get_next_line, read_next_line, goto_next_line, read_line_num):
33601         New static function definitions.
33602         (diagnostic_file_cache_fini): New function.
33603         (location_get_source_line): Take an additional output line_len
33604         parameter.  Re-write using lookup_or_add_file_to_cache_tab and
33605         read_line_num.
33606         * diagnostic.c (diagnostic_finish): Call
33607         diagnostic_file_cache_fini.
33608         (adjust_line): Take an additional input parameter for the length
33609         of the line, rather than calculating it with strlen.
33610         (diagnostic_show_locus): Adjust the use of
33611         location_get_source_line and adjust_line with respect to their new
33612         signature.  While displaying a line now, do not stop at the first
33613         null byte.  Rather, display the zero byte as a space and keep
33614         going until we reach the size of the line.
33615         * Makefile.in: Add vec.o to OBJS-libcommon
33617 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
33618             Ilya Tocar  <ilya.tocar@intel.com>
33620         * config/i386/avx512fintrin.h (_mm512_kmov): New.
33621         * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
33622         (__builtin_ia32_kmov16): Ditto.
33623         * config/i386/i386.md (UNSPEC_KMOV): New.
33624         (kmovw): Ditto.
33626 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
33628         * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
33629         (_mm512_storeu_si512): Ditto.
33631 2014-01-23  Richard Sandiford  <rdsandiford@googlemail.com>
33633         PR target/52125
33634         * rtl.h (get_referenced_operands): Declare.
33635         * recog.c (get_referenced_operands): New function.
33636         * config/mips/mips.c (mips_reorg_process_insns): Check which asm
33637         operands have been referenced when recording LO_SUM references.
33639 2014-01-22  David Holsgrove  <david.holsgrove@xilinx.com>
33641         * config/microblaze/microblaze.md: Correct bswaphi2 insn.
33643 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
33645         * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
33646         Enable for generic and recent AMD targets.
33648 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
33650         * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
33651         ARG_SIZE note when adjustment was eliminated.
33653 2014-01-22  Jeff Law  <law@redhat.com>
33655         PR tree-optimization/59597
33656         * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
33657         in file.  Accept new argument REGISTERING and use it to modify
33658         dump output appropriately.
33659         (register_jump_thread): Corresponding changes.
33660         (mark_threaded_blocks): Reinstate code to cancel unprofitable
33661         thread paths involving joiner blocks.  Add code to dump cancelled
33662         jump threading paths.
33664 2014-01-22  Vladimir Makarov  <vmakarov@redhat.com>
33666         PR rtl-optimization/59477
33667         * lra-constraints.c (inherit_in_ebb): Process call for living hard
33668         regs.  Update reloads_num and potential_reload_hard_regs for all insns.
33670 2014-01-22  Tom Tromey  <tromey@redhat.com>
33672         * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
33673         PARAMS.
33674         * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
33676 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
33678         PR rtl-optimization/59896
33679         * lra-constraints.c (process_alt_operands): Check unused note for
33680         matched operands of insn with no output reloads.
33682 2014-01-21  Richard Sandiford  <rdsandiford@googlemail.com>
33684         * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
33685         (mips_move_from_gpr_cost): Likewise.
33687 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
33689         PR rtl-optimization/59858
33690         * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
33691         ira_class_hard_regs_num.
33692         (process_alt_operands): Increase reject for dying matched operand.
33694 2014-01-21  Jakub Jelinek  <jakub@redhat.com>
33696         PR target/59003
33697         * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
33698         smaller than size, perform several stores or loads and stores
33699         at dst + count - size to store or copy all of size bytes, rather
33700         than just last modesize bytes.
33702 2014-01-20  DJ Delorie  <dj@redhat.com>
33704         * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
33705         that CLOBBERs are REGs before propogating their values.
33707 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
33709         PR middle-end/59789
33710         * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
33711         (cgraph_inline_failed_type): New function.
33712         * cgraph.h (DEFCIFCODE): Add type.
33713         (cgraph_inline_failed_type_t): New enum.
33714         (cgraph_inline_failed_type): New prototype.
33715         * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
33716         FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
33717         FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
33718         LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
33719         MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
33720         RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
33721         OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
33722         INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
33723         Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
33724         FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
33725         EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
33726         OPTIMIZATION_MISMATCH.
33727         * tree-inline.c (expand_call_inline): Emit errors during
33728         early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
33730 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
33732         PR target/59685
33733         * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
33734         mode attribute in insn output.
33736 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
33738         * output.h (output_constant): Delete.
33739         * varasm.c (output_constant): Make private.
33741 2014-01-20  Alex Velenko  <Alex.Velenko@arm.com>
33743         * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
33745 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
33747         PR middle-end/59860
33748         * tree.h (fold_builtin_strcat): New prototype.
33749         * builtins.c (fold_builtin_strcat): No longer static.  Add len
33750         argument, if non-NULL, don't call c_strlen.  Optimize
33751         directly into __builtin_memcpy instead of __builtin_strcpy.
33752         (fold_builtin_2): Adjust fold_builtin_strcat caller.
33753         * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
33755 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
33757         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
33758         for SImode_address_operand operands, having only a REG argument.
33760 2014-01-20  Marcus Shawcroft  <marcus.shawcroft@arm.com>
33762         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
33763         loader name using mbig-endian.
33764         (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
33766 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
33768         * doc/invoke.texi (-march): Clarify documentation for AArch64.
33769         (-mtune): Likewise.
33770         (-mcpu): Likewise.
33772 2014-01-20  Tejas Belagod  <tejas.belagod@arm.com>
33774         * config/aarch64/aarch64-protos.h
33775         (aarch64_cannot_change_mode_class_ptr): Declare.
33776         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
33777         aarch64_cannot_change_mode_class_ptr): New.
33778         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
33779         backend hook aarch64_cannot_change_mode_class.
33781 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
33783         * common/config/aarch64/aarch64-common.c
33784         (aarch64_handle_option): Don't handle any option order logic here.
33785         * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
33786         selected_cpu, warn on architecture version mismatch.
33787         (aarch64_override_options): Fix parsing order for option strings.
33789 2014-01-20  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
33790             Iain Sandoe  <iain@codesourcery.com>
33792         PR bootstrap/59496
33793         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
33794         warning.  Amend comment to reflect current functionality.
33796 2014-01-20  Richard Biener  <rguenther@suse.de>
33798         PR middle-end/59860
33799         * builtins.c (fold_builtin_strcat): Remove case better handled
33800         by tree-ssa-strlen.c.
33802 2014-01-20  Alan Lawrence  <alan.lawrence@arm.com>
33804         * config/aarch64/aarch64.opt
33805         (mcpu, march, mtune): Make case-insensitive.
33807 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
33809         PR target/59880
33810         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
33811         if operands[1] is a REG or ZERO_EXTEND of a REG.
33813 2014-01-19  Jan Hubicka  <hubicka@ucw.cz>
33815         * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
33817 2014-01-19  John David Anglin  <danglin@gcc.gnu.org>
33819         * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
33820         long non-pic millicode calls.
33822 2014-01-19  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
33824         * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
33826 2014-01-19  Kito Cheng  <kito@0xlab.org>
33828         * builtins.c (expand_movstr): Check movstr expand done or fail.
33830 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
33831             H.J. Lu  <hongjiu.lu@intel.com>
33833         PR target/59379
33834         * config/i386/i386.md (*lea<mode>): Zero-extend return register
33835         to DImode for zero-extended addresses.
33837 2014-01-19  Jakub Jelinek  <jakub@redhat.com>
33839         PR rtl-optimization/57763
33840         * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
33841         on the new indirect jump_insn and increment LABEL_NUSES (label).
33843 2014-01-18  H.J. Lu  <hongjiu.lu@intel.com>
33845         PR bootstrap/59580
33846         PR bootstrap/59583
33847         * config.gcc (x86_archs): New variable.
33848         (x86_64_archs): Likewise.
33849         (x86_cpus): Likewise.
33850         Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
33851         --with-arch/--with-cpu= options.
33852         Support --with-arch=/--with-cpu={nehalem,westmere,
33853         sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
33855 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
33857         * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
33858         and PROCESSOR_ATHLON to simplify code.  Move "memory" calculation.
33860 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
33862         * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
33864 2014-01-18  Jakub Jelinek  <jakub@redhat.com>
33866         PR target/58944
33867         * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
33868         clear cpp_get_options (parse_in)->warn_unused_macros for
33869         ix86_target_macros_internal with cpp_define.
33871 2014-01-18  Richard Sandiford  <rdsandiford@googlemail.com>
33873         * jump.c (delete_related_insns): Keep (use (insn))s.
33874         * reorg.c (redundant_insn): Check for barriers too.
33876 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
33878         * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
33880 2014-01-17  John David Anglin  <danglin@gcc.gnu.org>
33882         * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
33883         call to $$dyncall when TARGET_LONG_CALLS is true.
33885 2014-01-17  Jeff Law  <law@redhat.com>
33887         * ree.c (combine_set_extension): Temporarily disable test for
33888         changing number of hard registers.
33890 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
33892         PR middle-end/58125
33893         * ipa-inline-analysis.c (inline_free_summary):
33894         Do not free summary of aliases.
33896 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
33898         PR middle-end/59706
33899         * gimplify.c (gimplify_expr): Use create_tmp_var
33900         instead of create_tmp_var_raw.  If cond doesn't have
33901         integral type, don't add the IFN_ANNOTATE builtin at all.
33903 2014-01-17  Martin Jambor  <mjambor@suse.cz>
33905         PR ipa/59736
33906         * ipa-cp.c (prev_edge_clone): New variable.
33907         (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
33908         Also resize prev_edge_clone vector.
33909         (ipcp_edge_duplication_hook): Also update prev_edge_clone.
33910         (ipcp_edge_removal_hook): New function.
33911         (ipcp_driver): Register ipcp_edge_removal_hook.
33913 2014-01-17  Andrew Pinski  <apinski@cavium.com>
33914             Steve Ellcey  <sellcey@mips.com>
33916         PR target/59462
33917         * config/mips/mips.c (mips_print_operand): Check operand mode instead
33918         of operator mode.
33920 2014-01-17  Jeff Law  <law@redhat.com>
33922         PR middle-end/57904
33923         * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
33924         so that pass_ccp runs first.
33926 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
33928         * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
33929         (ix86_adjust_cost): Use !TARGET_XXX.
33930         (do_reorder_for_imul): Likewise.
33931         (swap_top_of_ready_list): Likewise.
33932         (ix86_sched_reorder): Likewise.
33934 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
33936         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
33937         PROCESSOR_INTEL.  Treat like PROCESSOR_GENERIC.
33938         * config/i386/i386.c (intel_memcpy): New.  Duplicate slm_memcpy.
33939         (intel_memset): New.  Duplicate slm_memset.
33940         (intel_cost): New.  Duplicate slm_cost.
33941         (m_INTEL): New macro.
33942         (processor_target_table): Add "intel".
33943         (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
33944         with PROCESSOR_INTEL for "intel".
33945         (ix86_lea_outperforms): Support PROCESSOR_INTEL.  Duplicate
33946         PROCESSOR_SILVERMONT.
33947         (ix86_issue_rate): Likewise.
33948         (ix86_adjust_cost): Likewise.
33949         (ia32_multipass_dfa_lookahead): Likewise.
33950         (swap_top_of_ready_list): Likewise.
33951         (ix86_sched_reorder): Likewise.
33952         (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
33953         instead of TARGET_OPT_AGU.
33954         * config/i386/i386.h (TARGET_INTEL): New.
33955         (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
33956         (processor_type): Add PROCESSOR_INTEL.
33957         * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
33958         Add X86_TUNE_AVOID_LEA_FOR_ADDR.
33960 2014-01-17  Marek Polacek  <polacek@redhat.com>
33962         PR c/58346
33963         * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
33964         size is zero.
33966 2014-01-17  Richard Biener  <rguenther@suse.de>
33968         PR tree-optimization/46590
33969         * opts.c (default_options_table): Add entries for
33970         OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
33971         all enabled at -O1 but not for -Og.
33972         * common.opt (fbranch-count-reg): Remove Init(1).
33973         (fmove-loop-invariants): Likewise.
33974         (ftree-pta): Likewise.
33976 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
33978         * config/i386/i386.c (ix86_data_alignment): For compatibility with
33979         (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
33980         decls to at least the GCC 4.8 used alignments.
33982         PR fortran/59440
33983         * tree-nested.c (convert_nonlocal_reference_stmt,
33984         convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
33985         of GIMPLE_BIND stmts, adjust associated decls.
33987 2014-01-17  Richard Biener  <rguenther@suse.de>
33989         PR tree-optimization/46590
33990         * vec.h (vec<>::bseach): New member function implementing
33991         binary search according to C89 bsearch.
33992         (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
33993         * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
33994         bitmap pointer again.  Make accesses_in_loop a flat array.
33995         (mem_ref_obstack): New global.
33996         (outermost_indep_loop): Adjust for mem_ref->stored changes.
33997         (mark_ref_stored): Likewise.
33998         (ref_indep_loop_p_2): Likewise.
33999         (set_ref_stored_in_loop): New helper function.
34000         (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
34001         (memref_free): Adjust.
34002         (record_mem_ref_loc): Simplify.
34003         (gather_mem_refs_stmt): Adjust.
34004         (sort_locs_in_loop_postorder_cmp): New function.
34005         (analyze_memory_references): Sort accesses_in_loop after
34006         loop postorder number.
34007         (find_ref_loc_in_loop_cmp): New function.
34008         (for_all_locs_in_loop): Find relevant cluster of locs in
34009         accesses_in_loop and iterate without recursion.
34010         (execute_sm): Avoid uninit warning.
34011         (struct ref_always_accessed): Simplify.
34012         (ref_always_accessed::operator ()): Likewise.
34013         (ref_always_accessed_p): Likewise.
34014         (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
34015         loop postorder numbers here.
34016         (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
34017         numbers.
34019 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
34021         PR c++/57945
34022         * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
34023         on decls for which assemble_alias has been called.
34025 2014-01-17  Nick Clifton  <nickc@redhat.com>
34027         * config/msp430/msp430.opt: (mcpu): New option.
34028         * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
34029         (msp430_option_override): Parse target_cpu.  If the MCU name
34030         matches a generic string, clear target_mcu.
34031         (msp430_attr): Allow numeric interrupt values up to 63.
34032         (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
34033         * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
34034         option.
34035         * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
34036         Add mcpu matches.
34037         * config/msp430/msp430.md (popm): Use %J rather than %I.
34038         (addsi3): Use msp430_nonimmediate_operand for operand 2.
34039         (addhi_cy_i): Use immediate_operand for operand 2.
34040         * doc/invoke.texi: Document -mcpu option.
34042 2014-01-17  Richard Biener  <rguenther@suse.de>
34044         PR rtl-optimization/38518
34045         * df.h (df_analyze_loop): Declare.
34046         * df-core.c: Include cfgloop.h.
34047         (df_analyze_1): Split out main part of df_analyze.
34048         (df_analyze): Adjust.
34049         (loop_inverted_post_order_compute): New function.
34050         (loop_post_order_compute): Likewise.
34051         (df_analyze_loop): New function avoiding whole-function
34052         postorder computes.
34053         * loop-invariant.c (find_defs): Use df_analyze_loop.
34054         (find_invariants): Adjust.
34055         * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
34057 2014-01-17  Zhenqiang Chen  <zhenqiang.chen@arm.com>
34059         * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
34060         (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
34062 2014-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
34064         * ipa-ref.c (ipa_remove_stmt_references): Fix references
34065         traversal when removing references.
34067 2014-01-16  Jan Hubicka  <hubicka@ucw.cz>
34069         PR ipa/59775
34070         * tree.c (get_binfo_at_offset): Look harder for virtual bases.
34072 2014-01-16  Bernd Schmidt  <bernds@codesourcery.com>
34074         PR middle-end/56791
34075         * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
34076         pushing a reload for an autoinc when we had previously reloaded an
34077         inner part of the address.
34079 2014-01-16  Jakub Jelinek  <jakub@redhat.com>
34081         * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
34082         field.
34083         (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
34084         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
34085         when not giving up or versioning for alias only because of
34086         loop->safelen.
34087         (vect_analyze_data_ref_dependences): Set to true.
34088         * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
34089         is a GIMPLE_PHI.
34090         (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
34091         LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
34092         to the condition.
34094         PR middle-end/58344
34095         * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
34097         PR target/59839
34098         * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
34099         operand 0 predicate for gathers, use a new pseudo as subtarget.
34101 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
34103         PR middle-end/59609
34104         * lra-constraints.c (process_alt_operands): Add printing debug info.
34105         Check absence of input/output reloads for matched operands too.
34107 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
34109         PR rtl-optimization/59835
34110         * ira.c (ira_init_register_move_cost): Increase cost for
34111         impossible modes.
34113 2014-01-16  Alan Lawrence  <alan.lawrence@arm.com>
34115         * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
34117 2014-01-16  Richard Earnshaw  <rearnsha@arm.com>
34119         PR target/59780
34120         * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
34121         non-register objects.  Use gen_(high/low)part more consistently.
34122         Fix assertions.
34124 2014-01-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
34126         PR target/59844
34127         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
34128         endian support, remove tests for WORDS_BIG_ENDIAN.
34129         (p8_mfvsrd_3_<mode>): Likewise.
34130         (reload_gpr_from_vsx<mode>): Likewise.
34131         (reload_gpr_from_vsxsf): Likewise.
34132         (p8_mfvsrd_4_disf): Likewise.
34134 2014-01-16  Richard Biener  <rguenther@suse.de>
34136         PR rtl-optimization/46590
34137         * lcm.c (compute_antinout_edge): Use postorder iteration.
34138         (compute_laterin): Use inverted postorder iteration.
34140 2014-01-16  Nick Clifton  <nickc@redhat.com>
34142         PR middle-end/28865
34143         * varasm.c (output_constant): Return the number of bytes actually
34144         emitted.
34145         (output_constructor_array_range): Update the field size with the
34146         number of bytes emitted by output_constant.
34147         (output_constructor_regular_field): Likewise.  Also do not
34148         complain if the total number of bytes emitted is now greater
34149         than the expected fieldpos.
34150         * output.h (output_constant): Update prototype and descriptive comment.
34152 2014-01-16  Marek Polacek  <polacek@redhat.com>
34154         PR middle-end/59827
34155         * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
34156         it is error_mark_node.
34158 2014-01-15  Uros Bizjak  <ubizjak@gmail.com>
34160         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
34161         VALID_AVX256_REG_OR_OI_MODE.
34163 2014-01-15  Pat Haugen  <pthaugen@us.ibm.com>
34165         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
34166         current procedure should be profiled.
34168 2014-01-15  Andrew Pinski  <apinski@cavium.com>
34170         * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
34171         of moving from/to the STACK_REG register class.
34173 2014-01-15  Richard Henderson  <rth@redhat.com>
34175         PR debug/54694
34176         * reginfo.c (global_regs_decl): Globalize.
34177         * rtl.h (global_regs_decl): Declare.
34178         * ira.c (do_reload): Diagnose frame_pointer_needed and it
34179         reserved via global_regs.
34181 2014-01-15  Teresa Johnson  <tejohnson@google.com>
34183         * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
34185 2014-01-15  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
34187         * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
34188         and vmulosh rather than call gen_vec_widen_smult_*.
34189         (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
34190         than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
34191         (vec_widen_smult_even_v16qi): Likewise.
34192         (vec_widen_umult_even_v8hi): Likewise.
34193         (vec_widen_smult_even_v8hi): Likewise.
34194         (vec_widen_umult_odd_v16qi): Likewise.
34195         (vec_widen_smult_odd_v16qi): Likewise.
34196         (vec_widen_umult_odd_v8hi): Likewise.
34197         (vec_widen_smult_odd_v8hi): Likewise.
34198         (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
34199         vmuloub rather than call gen_vec_widen_umult_*.
34200         (vec_widen_umult_lo_v16qi): Likewise.
34201         (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
34202         vmulosb rather than call gen_vec_widen_smult_*.
34203         (vec_widen_smult_lo_v16qi): Likewise.
34204         (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
34205         rather than call gen_vec_widen_umult_*.
34206         (vec_widen_umult_lo_v8hi): Likewise.
34207         (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
34208         rather than call gen_vec_widen_smult_*.
34209         (vec_widen_smult_lo_v8hi): Likewise.
34211 2014-01-15  Jeff Law  <law@redhat.com>
34213         PR tree-optimization/59747
34214         * ree.c (find_and_remove_re): Properly handle case where a second
34215         eliminated extension requires widening a copy created for elimination
34216         of a prior extension.
34217         (combine_set_extension): Ensure that the number of hard regs needed
34218         for a destination register does not change when we widen it.
34220 2014-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
34222         * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
34223         (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
34224         (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
34225         (arm*-*-rtems*): Use t-rtems from existing tmake_file.
34226         (avr-*-rtems*): Likewise.
34227         (bfin*-rtems*): Likewise.
34228         (moxie-*-rtems*): Likewise.
34229         (h8300-*-rtems*): Likewise.
34230         (i[34567]86-*-rtems*): Likewise.
34231         (lm32-*-rtems*): Likewise.
34232         (m32r-*-rtems*): Likewise.
34233         (m68k-*-rtems*): Likewise.
34234         (microblaze*-*-rtems*): Likewise.
34235         (mips*-*-rtems*): Likewise.
34236         (powerpc-*-rtems*): Likewise.
34237         (sh-*-rtems*): Likewise.
34238         (sparc-*-rtems*): Likewise.
34239         (sparc64-*-rtems*): Likewise.
34240         (v850-*-rtems*): Likewise.
34241         (m32c-*-rtems*): Likewise.
34243 2014-01-15  Vladimir Makarov  <vmakarov@redhat.com>
34245         PR rtl-optimization/59511
34246         * ira.c (ira_init_register_move_cost): Use memory costs for some
34247         cases of register move cost calculations.
34248         * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
34249         instead of BB frequency.
34250         * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
34251         * lra-assigns.c (find_hard_regno_for): Ditto.
34253 2014-01-15  Richard Biener  <rguenther@suse.de>
34255         PR tree-optimization/59822
34256         * tree-vect-stmts.c (hoist_defs_of_uses): New function.
34257         (vectorizable_load): Use it to hoist defs of uses of invariant
34258         loads out of the loop.
34260 2014-01-15  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
34261             Kugan Vivekanandarajah  <kuganv@linaro.org>
34263         PR target/59695
34264         * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
34265         truncation.
34267 2014-01-15  Richard Biener  <rguenther@suse.de>
34269         PR rtl-optimization/59802
34270         * lcm.c (compute_available): Use inverted postorder to seed
34271         the initial worklist.
34273 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34275         PR target/59803
34276         * config/s390/s390.c (s390_preferred_reload_class): Don't return
34277         ADDR_REGS for invalid symrefs in non-PIC code.
34279 2014-01-15  Jakub Jelinek  <jakub@redhat.com>
34281         PR other/58712
34282         * builtins.c (determine_block_size): Initialize *probable_max_size
34283         even if len_rtx is CONST_INT.
34285 2014-01-14  Andrew Pinski  <apinski@cavium.com>
34287         * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
34288         * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
34289         (cortexa53_tunings): Likewise.
34290         (aarch64_sched_issue_rate): New function.
34291         (TARGET_SCHED_ISSUE_RATE): Define.
34293 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
34295         * ira-costs.c (find_costs_and_classes): Add missed
34296         ira_init_register_move_cost_if_necessary.
34298 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
34300         PR target/59787
34301         * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
34303 2014-01-14  H.J. Lu  <hongjiu.lu@intel.com>
34305         PR target/59794
34306         * config/i386/i386.c (type_natural_mode): Add a bool parameter
34307         to indicate if type is used for function return value.  Warn ABI
34308         change if the vector mode isn't available for function return value.
34309         (ix86_function_arg_advance): Pass false to type_natural_mode.
34310         (ix86_function_arg): Likewise.
34311         (ix86_gimplify_va_arg): Likewise.
34312         (function_arg_32): Don't warn ABI change.
34313         (ix86_function_value): Pass true to type_natural_mode.
34314         (ix86_return_in_memory): Likewise.
34315         (ix86_struct_value_rtx): Removed.
34316         (TARGET_STRUCT_VALUE_RTX): Likewise.
34318 2014-01-14  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
34320         * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
34321         converting a conditional jump into a conditional return.
34323 2014-01-14  Richard Biener  <rguenther@suse.de>
34325         PR tree-optimization/58921
34326         PR tree-optimization/59006
34327         * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
34328         hoisting invariant stmts.
34329         * tree-vect-stmts.c (vectorizable_load): Insert the splat of
34330         invariant loads on the preheader edge if possible.
34332 2014-01-14  Joey Ye  <joey.ye@arm.com>
34334         * doc/plugin.texi (Building GCC plugins): Update to C++.
34336 2014-01-14  Kirill Yukhin  <kirill.yukhin@intel.com>
34338         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
34339         (_mm_rcp28_round_ss): Ditto.
34340         (_mm_rsqrt28_round_sd): Ditto.
34341         (_mm_rsqrt28_round_ss): Ditto.
34342         (_mm_rcp28_sd): Ditto.
34343         (_mm_rcp28_ss): Ditto.
34344         (_mm_rsqrt28_sd): Ditto.
34345         (_mm_rsqrt28_ss): Ditto.
34346         * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
34347         * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
34348         * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
34349         (IX86_BUILTIN_RCP28SD): Ditto.
34350         (IX86_BUILTIN_RCP28SS): Ditto.
34351         (IX86_BUILTIN_RSQRT28SD): Ditto.
34352         (IX86_BUILTIN_RSQRT28SS): Ditto.
34353         (bdesc_special_args): Define __builtin_ia32_movntdqa512,
34354         __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
34355         __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
34356         (ix86_expand_special_args_builtin): Expand new FTYPE.
34357         * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
34358         (srcp14<mode>): Make insn unary.
34359         (avx512f_vmscalef<mode><round_name>): Use substed predicate.
34360         (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
34361         (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
34362         (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
34363         (avx512er_exp2<mode><mask_name><round_saeonly_name>):
34364         Fix rounding: make it SAE only.
34365         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
34366         Ditto.
34367         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
34368         Ditto.
34369         (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
34370         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
34371         (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
34372         * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
34373         (round_saeonly_mask_scalar_operand4): Ditto.
34374         (round_saeonly_mask_scalar_op3): Ditto.
34375         (round_saeonly_mask_scalar_op4): Ditto.
34377 2014-01-13  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
34379         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
34380         Implement -maltivec=be for vec_insert and vec_extract.
34382 2014-01-10  DJ Delorie  <dj@redhat.com>
34384         * config/msp430/msp430.md (call_internal): Don't allow memory
34385         references with SP as the base register.
34386         (call_value_internal): Likewise.
34387         * config/msp430/constraints.md (Yc): New.  For memory references
34388         that don't use SP as a base register.
34390         * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
34391         "an integer without a # prefix"
34392         * config/msp430/msp430.md (epilogue_helper): Use it.
34394 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
34396         PR target/59617
34397         * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
34398         AVX512F gather builtins.
34399         * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
34400         on gather decls with INTEGER_TYPE masktype.
34401         (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
34402         directly into the builtin rather than hoisting it before loop.
34404         PR tree-optimization/59387
34405         * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
34406         (scev_const_prop): If folded_casts and type has undefined overflow,
34407         use force_gimple_operand instead of force_gimple_operand_gsi and
34408         for each added stmt if it is assign with
34409         arith_code_with_undefined_signed_overflow, call
34410         rewrite_to_defined_overflow.
34411         * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
34412         gimple-fold.h instead.
34413         (arith_code_with_undefined_signed_overflow,
34414         rewrite_to_defined_overflow): Moved to ...
34415         * gimple-fold.c (arith_code_with_undefined_signed_overflow,
34416         rewrite_to_defined_overflow): ... here.  No longer static.
34417         Include gimplify-me.h.
34418         * gimple-fold.h (arith_code_with_undefined_signed_overflow,
34419         rewrite_to_defined_overflow): New prototypes.
34421 2014-01-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34423         * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
34425 2014-01-13  Eric Botcazou  <ebotcazou@adacore.com>
34427         * builtins.c (get_object_alignment_2): Minor tweak.
34428         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
34430 2014-01-13  Christian Bruel  <christian.bruel@st.com>
34432         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
34433         optimized non constant lengths.
34435 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
34437         PR libgomp/59194
34438         * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
34439         load as __atomic_load_N if possible.
34441 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
34443         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
34444         target parameter.
34445         (rs6000_expand_builtin): Adjust call.
34447 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
34449         PR target/58115
34450         * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
34451         * config/rs6000/rs6000.c: Include target-globals.h.
34452         (rs6000_set_current_function): Instead of doing target_reinit
34453         unconditionally, use save_target_globals_default_opts and
34454         restore_target_globals.
34456         * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
34457         FPSCR.
34458         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
34459         (rs6000_expand_builtin): Handle mffs and mtfsf.
34460         (rs6000_init_builtins): Define mffs and mtfsf.
34461         * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
34462         (rs6000_mffs): New pattern.
34463         (rs6000_mtfsf): New pattern.
34465 2014-01-11  Bin Cheng  <bin.cheng@arm.com>
34467         * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
34468         Start narrowing with START.  Apply candidate-use pair
34469         and check overall cost in narrowing.
34470         (iv_ca_prune): Pass new argument.
34472 2014-01-10  Jeff Law  <law@redhat.com>
34474         PR middle-end/59743
34475         * ree.c (combine_reaching_defs): Ensure the defining statement
34476         occurs before the extension when optimizing extensions with
34477         different source and destination hard registers.
34479 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
34481         PR ipa/58585
34482         * ipa-devirt.c (build_type_inheritance_graph): Also add types of
34483         vtables into the type inheritance graph.
34485 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
34487         PR rtl-optimization/59754
34488         * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
34489         modes in the REGNO != REGNO case.
34491 2014-01-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
34493         * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
34495 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
34497         PR tree-optimization/59745
34498         * tree-predcom.c (tree_predictive_commoning_loop): Call
34499         free_affine_expand_cache if giving up because components is NULL.
34501         * target-globals.c (save_target_globals): Allocate < 4KB structs using
34502         GC in payload of target_globals struct instead of allocating them on
34503         the heap and the larger structs separately using GC.
34504         * target-globals.h (struct target_globals): Make regs, hard_regs,
34505         reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
34506         of GTY((skip)) and change type to void *.
34507         (reset_target_globals): Cast loads from those fields to corresponding
34508         types.
34510 2014-01-10  Steve Ellcey  <sellcey@mips.com>
34512         PR plugins/59335
34513         * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
34514         gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
34515         tree-ssanames.h, print-tree.h, varasm.h, and context.h.
34517 2014-01-10  Richard Earnshaw  <rearnsha@arm.com>
34519         PR target/59744
34520         * aarch64-modes.def (CC_Zmode): New flags mode.
34521         * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
34522         represents an equality.
34523         (aarch64_get_condition_code): Handle CC_Zmode.
34524         * aarch64.md (compare_neg<mode>): Restrict to equality operations.
34526 2014-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34528         * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
34529         extraction in good case.
34531 2014-01-10  Richard Biener  <rguenther@suse.de>
34533         PR tree-optimization/59374
34534         * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
34535         checking after SLP discovery.  Mark stmts not participating
34536         in any SLP instance properly.
34538 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34540         * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
34541         when handling a SET rtx.
34543 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34545         * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
34546         (cortex-a57): Likewise.
34547         (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
34549 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34551         * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
34552         non-iwmmxt builtins.
34554 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
34556         PR ipa/58252
34557         PR ipa/59226
34558         * ipa-devirt.c record_target_from_binfo): Take as argument
34559         stack of binfos and lookup matching one for virtual inheritance.
34560         (possible_polymorphic_call_targets_1): Update.
34562 2014-01-10  Huacai Chen  <chenhc@lemote.com>
34564         * config/mips/driver-native.c (host_detect_local_cpu): Handle new
34565         kernel strings for Loongson-2E/2F/3A.
34567 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
34569         PR middle-end/59670
34570         * tree-vect-data-refs.c (vect_analyze_data_refs): Check
34571         is_gimple_call before calling gimple_call_internal_p.
34573 2014-01-09  Steve Ellcey  <sellcey@mips.com>
34575         * Makefile.in (TREE_FLOW_H): Remove.
34576         (TREE_SSA_H): Add file names from tree-flow.h.
34577         * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
34578         * tree.h: Remove tree-flow.h reference.
34579         * hash-table.h: Remove tree-flow.h reference.
34580         * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
34581         reference with tree-ssa-loop.h.
34583 2014-01-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
34585         * doc/invoke.texi: Add -maltivec={be,le} options, and document
34586         default element-order behavior for -maltivec.
34587         * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
34588         * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
34589         that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
34590         when targeting big endian, at least for now.
34591         * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
34593 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
34595         PR middle-end/47735
34596         * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
34597         var satisfies use_register_for_decl, just take into account type
34598         alignment, rather than decl alignment.
34600         PR tree-optimization/59622
34601         * gimple-fold.c (gimple_fold_call): Fix a typo in message.  For
34602         __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
34603         __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
34604         Don't devirtualize for inplace at all.  For targets.length () == 1,
34605         if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
34607 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
34609         * config/i386/i386.md (cpu): Remove the unused btver1.
34611 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
34613         * gdbasan.in: Put a breakpoint on __sanitizer::Report.
34615 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
34617         PR target/58115
34618         * tree-core.h (struct target_globals): New forward declaration.
34619         (struct tree_target_option): Add globals field.
34620         * tree.h (TREE_TARGET_GLOBALS): Define.
34621         (prepare_target_option_nodes_for_pch): New prototype.
34622         * target-globals.h (struct target_globals): Define even if
34623         !SWITCHABLE_TARGET.
34624         * tree.c (prepare_target_option_node_for_pch,
34625         prepare_target_option_nodes_for_pch): New functions.
34626         * config/i386/i386.h (SWITCHABLE_TARGET): Define.
34627         * config/i386/i386.c: Include target-globals.h.
34628         (ix86_set_current_function): Instead of doing target_reinit
34629         unconditionally, use save_target_globals_default_opts and
34630         restore_target_globals.
34632 2014-01-09  Richard Biener  <rguenther@suse.de>
34634         PR tree-optimization/59715
34635         * tree-cfg.h (split_critical_edges): Declare.
34636         * tree-cfg.c (split_critical_edges): Export.
34637         * tree-ssa-sink.c (execute_sink_code): Split critical edges.
34639 2014-01-09  Max Ostapenko  <m.ostapenko@partner.samsung.com>
34641         * cfgexpand.c (expand_stack_vars): Optionally disable
34642         asan stack protection.
34643         (expand_used_vars): Likewise.
34644         (partition_stack_vars): Likewise.
34645         * asan.c (asan_emit_stack_protection): Optionally disable
34646         after return stack usage.
34647         (instrument_derefs): Optionally disable memory access instrumentation.
34648         (instrument_builtin_call): Likewise.
34649         (instrument_strlen_call): Likewise.
34650         (asan_protect_global): Optionally disable global variables protection.
34651         * doc/invoke.texi: Added doc for new options.
34652         * params.def: Added new options.
34653         * params.h: Likewise.
34655 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
34657         PR rtl-optimization/59724
34658         * ifcvt.c (cond_exec_process_if_block): Don't call
34659         flow_find_head_matching_sequence with 0 longest_match.
34660         * cfgcleanup.c (flow_find_head_matching_sequence): Count even
34661         non-active insns if !stop_after.
34662         (try_head_merge_bb): Revert 2014-01-07 changes.
34664 2014-01-08  Jeff Law  <law@redhat.com>
34666         * ree.c (get_sub_rtx): New function, extracted from...
34667         (merge_def_and_ext): Here.
34668         (combine_reaching_defs): Use get_sub_rtx.
34670 2014-01-08  Eric Botcazou  <ebotcazou@adacore.com>
34672         * cgraph.h (varpool_variable_node): Do not choke on null node.
34674 2014-01-08  Catherine Moore  <clm@codesourcery.com>
34676         * config/mips/mips.md (simple_return): Attempt to use JRC
34677         for microMIPS.
34678         * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
34680 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
34682         PR rtl-optimization/59137
34683         * reorg.c (steal_delay_list_from_target): Call update_block for
34684         elided insns.
34685         (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
34687 2014-01-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
34689         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
34690         two duplicate entries.
34692 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
34694         Revert:
34695         2012-10-07  Richard Sandiford  <rdsandiford@googlemail.com>
34697         * config/mips/mips.c (mips_truncated_op_cost): New function.
34698         (mips_rtx_costs): Adjust test for BADDU.
34699         * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
34701         2012-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
34703         * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
34704         (*baddu_si): ...this new pattern.
34706 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
34708         PR ipa/59722
34709         * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
34711 2014-01-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>
34713         PR middle-end/57748
34714         * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
34715         inner_reference_p.
34716         (expand_expr, expand_normal): Adjust.
34717         * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
34718         inner_reference_p. Use inner_reference_p to expand inner references.
34719         (store_expr): Adjust.
34720         * cfgexpand.c (expand_call_stmt): Adjust.
34722 2014-01-08  Rong Xu  <xur@google.com>
34724         * gcov-io.c (gcov_var): Move from gcov-io.h.
34725         (gcov_position): Ditto.
34726         (gcov_is_error): Ditto.
34727         (gcov_rewrite): Ditto.
34728         * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
34729         only part to libgcc/libgcov.h.
34731 2014-01-08  Marek Polacek  <polacek@redhat.com>
34733         PR middle-end/59669
34734         * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
34736 2014-01-08  Marek Polacek  <polacek@redhat.com>
34738         PR sanitizer/59667
34739         * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
34741 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
34743         PR rtl-optimization/59649
34744         * stor-layout.c (get_mode_bounds): For BImode return
34745         0 and STORE_FLAG_VALUE.
34747 2014-01-08  Richard Biener  <rguenther@suse.de>
34749         PR middle-end/59630
34750         * gimple.h (is_gimple_builtin_call): Remove.
34751         (gimple_builtin_call_types_compatible_p): New.
34752         (gimple_call_builtin_p): New overload.
34753         * gimple.c (is_gimple_builtin_call): Remove.
34754         (validate_call): Rename to ...
34755         (gimple_builtin_call_types_compatible_p): ... this and export.  Also
34756         check return types.
34757         (validate_type): New static function.
34758         (gimple_call_builtin_p): New overload and adjust.
34759         * gimple-fold.c (gimple_fold_builtin): Fold the return value.
34760         (gimple_fold_call): Likewise.  Use gimple_call_builtin_p.
34761         (gimple_fold_stmt_to_constant_1): Likewise.
34762         * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
34764 2014-01-08  Richard Biener  <rguenther@suse.de>
34766         PR middle-end/59471
34767         * gimplify.c (gimplify_expr): Gimplify register-register type
34768         VIEW_CONVERT_EXPRs to separate stmts.
34770 2014-01-07  Jeff Law  <law@redhat.com>
34772         PR middle-end/53623
34773         * ree.c (combine_set_extension): Handle case where source
34774         and destination registers in an extension insn are different.
34775         (combine_reaching_defs): Allow source and destination registers
34776         in extension to be different under limited circumstances.
34777         (add_removable_extension): Remove restriction that the
34778         source and destination registers in the extension are the same.
34779         (find_and_remove_re): Emit a copy from the extension's
34780         destination to its source after the defining insn if
34781         the source and destination registers are different.
34783         PR middle-end/59285
34784         * ifcvt.c (merge_if_block): If we are merging a block with more than
34785         one successor with a block with no successors, remove any BARRIER
34786         after the second block.
34788 2014-01-07  Dan Xio Qiang  <ziyan01@163.com>
34790         * hw-doloop.c (reorg_loops): Release the bitmap obstack.
34792 2014-01-07  John David Anglin  <danglin@gcc.gnu.org>
34794         PR target/59652
34795         * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
34796         for 14-bit register offsets when INT14_OK_STRICT is false.
34798 2014-01-07  Roland Stigge  <stigge@antcom.de>
34799             Michael Meissner  <meissner@linux.vnet.ibm.com>
34801         PR 57386/target
34802         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
34803         Only check TFmode for SPE constants.  Don't check TImode or TDmode.
34805 2014-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
34807         * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
34808         -mcpu.
34810 2014-01-07  Yufeng Zhang  <yufeng.zhang@arm.com>
34812         * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
34813         with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
34814         rtx is const0_rtx or not.
34816 2014-01-07  Richard Sandiford  <rdsandiford@googlemail.com>
34818         PR target/58115
34819         * target-globals.c (save_target_globals): Remove this_fn_optab
34820         handling.
34821         * toplev.c: Include optabs.h.
34822         (target_reinit): Temporarily restore the global options if another
34823         set of options are in force.
34825 2014-01-07  Jakub Jelinek  <jakub@redhat.com>
34827         PR rtl-optimization/58668
34828         * cfgcleanup.c (flow_find_cross_jump): Don't count
34829         any jumps if dir_p is NULL.  Remove p1 variable, use active_insn_p
34830         to determine what is counted.
34831         (flow_find_head_matching_sequence): Use active_insn_p to determine
34832         what is counted.
34833         (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
34834         counting change.
34835         * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
34836         determine what is counted.
34838         PR tree-optimization/59643
34839         * tree-predcom.c (split_data_refs_to_components): If one dr is
34840         read and one write, determine_offset fails and the write isn't
34841         in the bad component, just put the read into the bad component.
34843 2014-01-07  Mike Stump  <mikestump@comcast.net>
34844             Jakub Jelinek  <jakub@redhat.com>
34846         PR pch/59436
34847         * tree-core.h (struct tree_optimization_option): Change optabs
34848         type from unsigned char * to void *.
34849         * optabs.c (init_tree_optimization_optabs): Adjust
34850         TREE_OPTIMIZATION_OPTABS initialization.
34852 2014-01-06  Jakub Jelinek  <jakub@redhat.com>
34854         PR target/59644
34855         * config/i386/i386.h (struct machine_function): Add
34856         no_drap_save_restore field.
34857         * config/i386/i386.c (ix86_save_reg): Use
34858         !cfun->machine->no_drap_save_restore instead of
34859         crtl->stack_realign_needed.
34860         (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
34861         this function clears frame_pointer_needed.  Set
34862         cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
34863         and DRAP reg is needed.
34865 2014-01-06  Marek Polacek  <polacek@redhat.com>
34867         PR c/57773
34868         * doc/implement-c.texi: Mention that other integer types are
34869         permitted as bit-field types in strictly conforming mode.
34871 2014-01-06  Felix Yang  <fei.yang0953@gmail.com>
34873         * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
34874         is newly allocated.
34876 2014-01-06  Richard Earnshaw  <rearnsha@arm.com>
34878         * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
34880 2014-01-06  Martin Jambor  <mjambor@suse.cz>
34882         PR ipa/59008
34883         * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
34884         to int.
34885         * ipa-prop.c (ipa_print_node_params): Fix indentation.
34887 2014-01-06  Eric Botcazou  <ebotcazou@adacore.com>
34889         PR debug/59350
34890         PR debug/59510
34891         * var-tracking.c (add_stores): Preserve the value of the source even if
34892         we don't record the store.
34894 2014-01-06  Terry Guo  <terry.guo@arm.com>
34896         * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
34898 2014-01-05  Iain Sandoe  <iain@codesourcery.com>
34900         PR bootstrap/59541
34901         * config/darwin.c (darwin_function_section): Adjust return values to
34902         correspond to optimisation changes made in r206070.
34904 2014-01-05  Uros Bizjak  <ubizjak@gmail.com>
34906         * config/i386/i386.c (ix86_data_alignment): Calculate max_align
34907         from prefetch_block tune setting.
34908         (nocona_cost): Correct size of prefetch block to 64.
34910 2014-01-04  Eric Botcazou  <ebotcazou@adacore.com>
34912         * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
34913         (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
34914         used to save the static chain register in the computation of the offset
34915         from which the FP registers need to be restored.
34917 2014-01-04  Jakub Jelinek  <jakub@redhat.com>
34919         PR tree-optimization/59519
34920         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
34921         ICE if get_current_def (current_new_name) is already non-NULL, as long
34922         as it is a phi result of some other phi in *new_exit_bb that has
34923         the same argument.
34925         * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
34926         or vmovdqu* for misaligned_operand.
34927         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
34928         <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
34929         * config/i386/i386.c (ix86_expand_special_args_builtin): Set
34930         aligned_mem for AVX512F masked aligned load and store builtins and for
34931         non-temporal moves.
34933 2014-01-03  Bingfeng Mei  <bmei@broadcom.com>
34935         PR tree-optimization/59651
34936         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
34937         Address range for negative step should be added by TYPE_SIZE_UNIT.
34939 2014-01-03  Andreas Schwab  <schwab@linux-m68k.org>
34941         * config/m68k/m68k.c (handle_move_double): Handle pushes with
34942         overlapping registers also for registers other than the stack pointer.
34944 2014-01-03  Marek Polacek  <polacek@redhat.com>
34946         PR other/59661
34947         * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
34948         __builtin_FILE.
34950 2014-01-03  Jakub Jelinek  <jakub@redhat.com>
34952         PR target/59625
34953         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
34954         asm goto as jump.
34956         * config/i386/i386.md (MODE_SIZE): New mode attribute.
34957         (push splitter): Use <P:MODE_SIZE> instead of
34958         GET_MODE_SIZE (<P:MODE>mode).
34959         (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
34960         (mov -1, reg peephole2): Likewise.
34961         * config/i386/sse.md (*mov<mode>_internal,
34962         <sse>_storeu<ssemodesuffix><avxsizesuffix>,
34963         <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
34964         *<code><mode>3, *andnot<mode>3<mask_name>,
34965         <mask_codefor><code><mode>3<mask_name>): Likewise.
34966         * config/i386/subst.md (mask_mode512bit_condition,
34967         sd_mask_mode512bit_condition): Likewise.
34969 2014-01-02  Xinliang David Li  <davidxl@google.com>
34971         PR tree-optimization/59303
34972         * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
34973         (dump_predicates): Better output format.
34974         (pred_equal_p): New function.
34975         (is_neq_relop_p): Ditto.
34976         (is_neq_zero_form_p): Ditto.
34977         (pred_expr_equal_p): Ditto.
34978         (pred_neg_p): Ditto.
34979         (simplify_pred): Ditto.
34980         (simplify_preds_2): Ditto.
34981         (simplify_preds_3): Ditto.
34982         (simplify_preds_4): Ditto.
34983         (simplify_preds): Ditto.
34984         (push_pred): Ditto.
34985         (push_to_worklist): Ditto.
34986         (get_pred_info_from_cmp): Ditto.
34987         (is_degenerated_phi): Ditto.
34988         (normalize_one_pred_1): Ditto.
34989         (normalize_one_pred): Ditto.
34990         (normalize_one_pred_chain): Ditto.
34991         (normalize_preds): Ditto.
34992         (normalize_cond_1): Remove function.
34993         (normalize_cond): Ditto.
34994         (is_gcond_subset_of): Ditto.
34995         (is_subset_of_any): Ditto.
34996         (is_or_set_subset_of): Ditto.
34997         (is_and_set_subset_of): Ditto.
34998         (is_norm_cond_subset_of): Ditto.
34999         (pred_chain_length_cmp): Ditto.
35000         (convert_control_dep_chain_into_preds): Type change.
35001         (find_predicates): Ditto.
35002         (find_def_preds): Ditto.
35003         (destroy_predicates_vecs): Ditto.
35004         (find_matching_predicates_in_rest_chains): Ditto.
35005         (use_pred_not_overlap_with_undef_path_pred): Ditto.
35006         (is_pred_expr_subset): Ditto.
35007         (is_pred_chain_subset_of): Ditto.
35008         (is_included_in): Ditto.
35009         (is_superset_of): Ditto.
35011 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
35013         Update copyright years.
35015 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
35017         * common/config/arc/arc-common.c, config/arc/arc-modes.def,
35018         config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
35019         config/arc/arc.md, config/arc/arc.opt,
35020         config/arm/arm_neon_builtins.def, config/arm/crypto.def,
35021         config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
35022         config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
35023         config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
35024         config/linux-protos.h, config/linux.c, config/winnt-c.c,
35025         diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
35026         vtable-verify.c, vtable-verify.h: Use the standard form for the
35027         copyright notice.
35029 2014-01-02  Tobias Burnus  <burnus@net-b.de>
35031         * gcc.c (process_command): Update copyright notice dates.
35032         * gcov-dump.c: Ditto.
35033         * gcov.c: Ditto.
35034         * doc/cpp.texi: Bump @copying's copyright year.
35035         * doc/cppinternals.texi: Ditto.
35036         * doc/gcc.texi: Ditto.
35037         * doc/gccint.texi: Ditto.
35038         * doc/gcov.texi: Ditto.
35039         * doc/install.texi: Ditto.
35040         * doc/invoke.texi: Ditto.
35042 2014-01-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
35044         * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
35046 2014-01-01  Jakub Jelinek  <jakub@redhat.com>
35048         * config/i386/sse.md (*mov<mode>_internal): Guard
35049         EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
35051         PR rtl-optimization/59647
35052         * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
35053         new_rtx into UNSIGNED_FLOAT rtxes.
35055 Copyright (C) 2014 Free Software Foundation, Inc.
35057 Copying and distribution of this file, with or without modification,
35058 are permitted in any medium without royalty provided the copyright
35059 notice and this notice are preserved.