05a596a7b342eef7d212061498f0c97f830507e6
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2014-10-11  Oleg Endo  <olegendo@gcc.gnu.org>
2
3         * config/sh/sh.h (TARGET_SH4A_ARCH): Remove macro.
4         * config/sh/sh.h: Replace uses of TARGET_SH4A_ARCH with TARGET_SH4A.
5         * config/sh/sh.c: Likewise.
6         * config/sh/sh-mem.cc: Likewise.
7         * config/sh/sh.md: Likewise.
8         * config/sh/predicates.md: Likewise.
9         * config/sh/sync.md: Likewise.
10
11 2014-10-11  Martin Liska  <mliska@suse.cz>
12
13         PR/63376
14         * cgraphunit.c (symbol_table::process_new_functions): Missing call
15         for call_cgraph_insertion_hooks added.
16
17 2014-10-10  Jakub Jelinek  <jakub@redhat.com>
18
19         PR c/63495
20         * stor-layout.c (min_align_of_type): Don't decrease alignment
21         through BIGGEST_FIELD_ALIGNMENT or ADJUST_FIELD_ALIGN if
22         TYPE_USER_ALIGN is set.
23
24 2014-10-10  Uros Bizjak  <ubizjak@gmail.com>
25
26         PR rtl-optimization/63483
27         * alias.c (true_dependence_1): Do not exit early for MEM_READONLY_P
28         references when alignment ANDs are involved.
29         (write_dependence_p): Ditto.
30         (may_alias_p): Ditto.
31
32 2014-10-10  Marek Polacek  <polacek@redhat.com>
33
34         * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_OBJECT_SIZE.
35         * doc/invoke.texi: Document -fsanitize=object-size.
36         * flag-types.h (enum sanitize_code): Add SANITIZE_OBJECT_SIZE and
37         or it into SANITIZE_UNDEFINED.
38         * gimple-fold.c (gimple_fold_call): Optimize IFN_UBSAN_OBJECT_SIZE.
39         * internal-fn.c (expand_UBSAN_OBJECT_SIZE): New function.
40         * internal-fn.def (UBSAN_OBJECT_SIZE): Define.
41         * opts.c (common_handle_option): Handle -fsanitize=object-size.
42         * ubsan.c: Include tree-object-size.h.
43         (ubsan_type_descriptor): Call tree_to_uhwi instead of tree_to_shwi. 
44         (ubsan_expand_bounds_ifn): Use false instead of 0.
45         (ubsan_expand_objsize_ifn): New function.
46         (instrument_object_size): New function.
47         (pass_ubsan::execute): Add object size instrumentation.
48         * ubsan.h (ubsan_expand_objsize_ifn): Declare.
49
50 2014-10-10  Richard Henderson  <rth@redhat.com>
51
52         PR target/63404
53         * shrink-wrap.c (move_insn_for_shrink_wrap): Don't use single_set.
54         Restrict the set of expressions we're willing to move.
55
56 2014-10-10  Jeff Law  <law@redhat.com>
57
58         * ira.c (struct equivalence): Promote INIT_INSNs field to
59         an rtx_insn_list.  Add comments.
60         (no_equiv): Promote LIST to an rtx_insn_list.  Update
61         testing for and creating the special marker.  Use methods
62         to extract the insn and next pointers.  Promote INSN to an
63         rtx_insn.
64         (update_equiv_regs): Update test for special marker in the
65         INIT_INSNs list.
66
67 2014-10-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
68
69         * configure.ac: Add --enable-fix-cortex-a53-835769 option.
70         * configure: Regenerate.
71         * config/aarch64/aarch64.c (aarch64_override_options): Handle
72         TARGET_FIX_ERR_A53_835769_DEFAULT.
73         * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): Set Init
74         value to 2.
75         * doc/install.texi (aarch64*-*-*): Document 
76         new --enable-fix-cortex-a53-835769 option.
77
78 2014-10-10  Kyrylo Tkachov<kyrylo.tkachov@arm.com>
79             Ramana Radhakrishnan<ramana.radhakrishnan@arm.com>
80
81         * config/aarch64/aarch64.h (FINAL_PRESCAN_INSN): Define.
82         (ADJUST_INSN_LENGTH): Define.
83         * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): New option.
84         * config/aarch64/aarch64.c (is_mem_p): New function.
85         (is_memory_op): Likewise.
86         (aarch64_prev_real_insn): Likewise.
87         (is_madd_op): Likewise.
88         (dep_between_memop_and_curr): Likewise.
89         (aarch64_madd_needs_nop): Likewise.
90         (aarch64_final_prescan_insn): Likewise.
91         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-835769
92         and -mno-fix-cortex-a53-835769 options.
93
94 2014-10-10  Jakub Jelinek  <jakub@redhat.com>
95
96         PR tree-optimization/63464
97         * tree-switch-conversion.c (struct case_bit_test): Remove
98         hi and lo fields, add wide_int mask field.
99         (emit_case_bit_tests): Add MAXVAL argument, rewrite uses of
100         hi/lo fields into wide_int mask operations, optimize by pretending
101         minval to be 0 if maxval is small enough.
102         (process_switch): Adjust caller.
103
104 2014-10-10  Richard Biener  <rguenther@suse.de>
105
106         PR tree-optimization/63379
107         * tree-vect-slp.c (vect_get_constant_vectors): Do not compute
108         a neutral operand for min/max when it is not a reduction chain.
109
110 2014-10-10  Richard Biener  <rguenther@suse.de>
111
112         PR tree-optimization/63476
113         * tree-ssa-pre.c (struct bb_bitmap_sets): Add vop_on_exit member.
114         (BB_LIVE_VOP_ON_EXIT): New define.
115         (create_expression_by_pieces): Assign VUSEs to stmts.
116         (compute_avail): Track BB_LIVE_VOP_ON_EXIT.
117         (pass_pre::execute): Assert virtual SSA form is up-to-date
118         after insertion.
119
120 2014-10-10  Eric Botcazou  <ebotcazou@adacore.com>
121
122         * lra-assigns.c (assign_by_spills): Error out on spill failure.
123
124 2014-10-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
125
126         * pa-polymorphic-call.c (check_stmt_for_type_change): Move
127         assertion.
128
129 2014-10-09  Richard Biener  <rguenther@suse.de>
130
131         PR tree-optimization/63380
132         * tree-ssa-tail-merge.c (stmt_local_def): Exclude stmts that
133         may trap.
134
135 2014-10-09  Joern Rennecke  <joern.rennecke@embecosm.com>
136
137         * config/avr/avr.opt (mmcu=): Change to have a string value.
138         (mn-flash=, mskip-bug, march=, mrmw): New options.
139         (HeaderInclude): New.
140         (mmcu=): Remove Var / Init clauses.
141         * config/avr/avr.h (DRIVER_SELF_SPECS): Translate -mmcu into a
142         -specs option.
143         (SYMBOL_FLAG_IO, SYMBOL_FLAG_ADDRESS): Define.
144         (ASM_OUTPUT_ALIGNED_BSS): Use avr_asm_asm_output_aligned_bss.
145         (SYMBOL_FLAG_IO_LOW): Define.
146         (avr_device_to_as, avr_device_to_ld): Don't declare.
147         (avr_device_to_data_start, avr_device_to_startfiles): Likewise.
148         (avr_device_to_devicelib, avr_device_to_sp8): Likewise.
149         (EXTRA_SPEC_FUNCTIONS): Don't define.
150         (ASM_SPEC): Translate -arch= option to -mmcu= option.
151         (LINK_SPEC): Translate -arch= option to -m= option.
152         Don't use device_to_ld / device_to_data_start.
153         (STARTFILE_SPEC): Now empty.
154         (ASM_SPEC): Add -%{mrelax: --mlink-relax}.
155         * config/avr/gen-avr-mmcu-specs.c: New file.
156         * config/avr/t-avr (gen-avr-mmcu-specs$(build_exeext)): New rule.
157         (s-device-specs): Likewise.
158         (GCC_PASSES): Add s-device-specs.
159         (install-driver): Depend on install-device-specs.
160         (install-device-specs): New rule.
161         * config/avr/avr.c (avr_option_override): Look up mcu arch by
162         avr_arch_index and provide fallback initialization for avr_n_flash.
163         (varasm.h): #include.
164         (avr_print_operand) <i>: Allow SYMBOL_REF with SYMBOL_FLAG_IO;
165         (avr_handle_addr_attribute, avr_eval_addr_attrib): New functions.
166         (avr_attribute_table): Add "io", "address" and "io_low".
167         (avr_asm_output_aligned_decl_common): Change type of decl to tree.
168         Add special handling for symbols with "io" and/or "address" attributes.
169         (avr_asm_asm_output_aligned_bss): New function.
170         (avr_encode_section_info): Set SYMBOL_FLAG_IO and SYMBOL_FLAG_ADDRESS
171         as appropriate.  Handle io_low attribute.
172         (avr_out_sbxx_branch): Handle symbolic io addresses.
173         (avr_xload_libgcc_p, avr_nonconst_pointer_addrspace): Use
174         avr_n_flash instead of avr_current_device->n_flash.
175         (avr_pgm_check_var_decl, avr_insert_attributes): Likewise.
176         (avr_emit_movmemhi): Likewise.
177         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Likewise.
178         Use TARGET_RMW instead of avr_current_device->dev_attributes.
179         Don't define avr_current_device->macro (that's the specfile's job).
180         Use TARGET_SKIP_BUG instead of avr_current_device->errata_skip.
181         * config/avr/avr.c (avr_2word_insn_p): Likewise.
182         * config/avr/avr.md (*cpse.ne): Likewise.
183         (mov<mode>): Use avr_eval_addr_attrib.
184         (cbi): Change constraint for low_io_address_operand operand to "i".
185         (sbi, sbix_branch, sbix_branch_bit7, insv.io, insv.not.io): Likewise.
186         * config/avr/predicates.md (io_address_operand):
187         Allow SYMBOL_REF with SYMBOL_FLAG_IO.
188         (low_io_address_operand): Allow SYMBOL_REF with SYMBOL_FLAG_IO_LOW.
189         * config/avr/avr-protos.h (avr_asm_output_aligned_decl_common):
190         Update prototype.
191         (avr_eval_addr_attrib, avr_asm_asm_output_aligned_bss): Prototype.
192         * config/avr/genmultilib.awk: Use -march=.
193         Remove Multilib matches processing.
194         * config/avr/t-multilib, config/avr/avr-tables.opt: Regenerate.
195         * config/avr/avr-arch.h: Add double include guard.
196         (avr_mcu_t) <library_name>: Update comment.
197         * config/avr/driver-avr.c (avr_device_to_as): Delete.
198         (avr_device_to_ld, avr_device_to_data_start): Likewise.
199         (avr_device_to_startfiles, avr_device_to_devicelib): Likewise.
200         (avr_device_to_sp8): Likewise.
201         * config/avr/genopt.sh:  Instead avr_mcu, emit an Enum for avr_arch.
202
203         * doc/extend.texi (io, address): Document new AVR variable attributes.
204         (io_low): Likewise.
205
206 2014-10-09  Marek Polacek  <polacek@redhat.com>
207
208         * doc/invoke.texi: Document -fsanitize=bool and -fsanitize=enum.
209
210 2014-10-08  Richard Biener  <rguenther@suse.de>
211
212         PR tree-optimization/61969
213         * tree-nrv.c (pass_nrv::execute): Properly test for automatic
214         variables.
215
216 2014-10-09  Richard Biener  <rguenther@suse.de>
217
218         PR tree-optimization/63445
219         * tree-vrp.c (simplify_cond_using_ranges): Only warn about
220         overflow for non-equality compares.
221
222 2014-10-09  Uros Bizjak  <ubizjak@gmail.com>
223
224         PR rtl-optimization/57003
225         * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
226         also check CALL_INSN_FUNCTION_USAGE for clobbers again after
227         killing regs_invalidated_by_call.
228
229 2014-10-08  Teresa Johnson  <tejohnson@google.com>
230
231         PR bootstrap/63432.
232         * tree-ssa-threadupdate.c (estimated_freqs_path): New function.
233         (ssa_fix_duplicate_block_edges): Invoke it.
234         (mark_threaded_blocks): Make two passes to avoid ordering dependences.
235
236 2014-10-08  Oleg Endo  <olegendo@gcc.gnu.org>
237
238         PR target/52941
239         * config/sh/sync.md (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
240         atomic_fetch_<fetchop_name>si_hard,
241         atomic_fetch_<fetchop_name><mode>_hard, atomic_fetch_nandsi_hard,
242         atomic_fetch_nand<mode>_hard, atomic_<fetchop_name>_fetchsi_hard,
243         atomic_<fetchop_name>_fetch<mode>_hard, atomic_nand_fetchsi_hard,
244         atomic_nand_fetch<mode>_hard): Add missing set of T_REG.
245
246 2014-10-08  Rong Xu  <xur@google.com>
247
248         * gcov-tool.c (profile_overlap): New driver function
249         to compute profile overlap. 
250         (print_overlap_usage_message): New.
251         (overlap_usage): New.
252         (do_overlap): New.
253         (print_usage): Add calls to overlap function.
254         (main): Ditto.
255         * doc/gcov-tool.texi: Add documentation.
256
257 2014-10-08  Steve Ellcey  <sellcey@mips.com>
258
259         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Change
260         LINUX64_DRIVER_SELF_SPECS to LINUX_DRIVER_SELF_SPECS
261
262 2014-10-08  Jan Hubicka  <hubicka@ucw.cz>
263
264         * ipa-polymorphic-call.c (extr_type_from_vtbl_store): Do better
265         pattern matching of MEM_REF.
266         (check_stmt_for_type_change): Update.
267
268 2014-10-08  Steve Ellcey  <sellcey@mips.com>
269
270         * config/mips/linux64.h: Remove.
271         * config/mips/gnu-user64.h: Remove.
272         * gcc.config (mips*-*-*): Remove references to linux64.h and
273         gnu-user64.h
274         * config/mips/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): Replace
275         with modified version from gnu-user64.h.
276         (LINUX_DRIVER_SELF_SPECS): Update parts from gnu-user64.h.
277         (LOCAL_LABEL_PREFIX): Copy from gnu-user64.h.
278         * config/mips/linux.h (GNU_USER_LINK_EMULATION32): Copy from
279         linux64.h.
280         (GNU_USER_LINK_EMULATION64): Ditto.
281         (GNU_USER_LINK_EMULATIONN32): Ditto.
282         (GLIBC_DYNAMIC_LINKER32): Ditto.
283         (GLIBC_DYNAMIC_LINKER64): Ditto.
284         (GLIBC_DYNAMIC_LINKERN32): Ditto.
285         (UCLIBC_DYNAMIC_LINKER32): Ditto.
286         (UCLIBC_DYNAMIC_LINKER64): Ditto.
287         (UCLIBC_DYNAMIC_LINKERN32): Ditto.
288         (BIONIC_DYNAMIC_LINKERN32): Ditto.
289         (GNU_USER_DYNAMIC_LINKERN32): Ditto.
290         (GLIBC_DYNAMIC_LINKER): Delete.
291         (UCLIBC_DYNAMIC_LINKER): Delete.
292
293 2014-10-08  Joern Rennecke  <joern.rennecke@embecosm.com>
294             Richard Biener  <rguenther@suse.de>
295
296         * cfgexpand.c (expand_debug_expr) <TARGET_MEM_REF>:
297         Get address space from operand 0 (BASE).
298
299 2014-10-07  Iain Sandoe  <iain@codesourcery.com>
300
301         PR target/61387
302         * config/i386/i386.c (x86_output_mi_thunk): Fix darwin fallout.
303
304 2014-10-07  Aldy Hernandez  <aldyh@redhat.com>
305
306         * dwarf2out.c: Remove current_function_has_inlines.
307         (gen_subprogram_die): Same.
308         (gen_inlined_subroutine_die): Same.
309
310 2014-10-07  Ilya Tocar  <ilya.tocar@intel.com>
311
312         * config/i386/adxintrin.h (_subborrow_u64): Use long long for param
313         type.
314         (_addcarry_u64): Ditto.
315         (_addcarryx_u64): Ditto.
316
317 2014-10-07  Eric Botcazou  <ebotcazou@adacore.com>
318
319         * cgraph.h (cgraph_node::get_fun): Declare.
320         * cgraph.c (cgraph_node::get_fun): New method.
321         * ipa-inline.c (can_inline_edge_p): Use it.
322
323 2014-10-07  Eric Botcazou  <ebotcazou@adacore.com>
324
325         * lto-opts.c (lto_write_options): Handle -fmath-errno, -fsigned-zeros
326         and -ftrapping-math.
327         * lto-wrapper.c (merge_and_complain): Likewise.
328         (run_gcc): Likewise.
329
330 2014-10-06  Rong Xu  <xur@google.com>
331
332         * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): New param.
333         * tree-profile.c: (params.h): New include.
334         (init_ic_make_global_vars): Make __gcov_indirect_call_topn_callee
335         and __gcov_indirect_call_topn_counters for
336         indirect_call_topn_profile.
337         (gimple_init_edge_profiler): New decls for
338         __gcov_indirect_call_topn_profiler.
339         (gimple_gen_ic_profiler): Generate the correct profiler call.
340         (gimple_gen_ic_func_profiler): Fix format.
341         * value-prof.c (params.h): New include.
342         (dump_histogram_value): Hanlde indirect_call_topn counters.
343         (stream_in_histogram_value): Ditto.
344         (gimple_indirect_call_to_profile): Use indirect_call_topn
345         profile when PARAM_INDIR_CALL_TOPN_PROFILE is set.
346         (gimple_find_values_to_profile): Hanlde indirect_call_topn
347         counters.
348         * value-prof.h (enum hist_type): Histrogram type for
349         indirect_call_topn counters.
350         * profile.c (instrument_values): Instrument
351         indirect_call_topn counters.
352
353 2014-10-06  Rong Xu  <xur@google.com>
354
355         * Makefile.in: Fix dependence.
356         * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV): Add
357         indirect call topn profiler.
358         * gcov-io.h: Ditto.
359
360 2014-10-06  Eric Botcazou  <ebotcazou@adacore.com>
361
362         * calls.c (expand_call): Do not use the target as the return slot if
363         it is not sufficiently aligned.
364
365 2014-10-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
366
367         * config/rs6000/rs6000.c (analyze_swaps commentary): Add
368         discussion of permutes and why we don't handle them.
369
370 2014-10-06  Eric Botcazou  <ebotcazou@adacore.com>
371
372         * config/sparc/predicates.md (int_register_operand): Delete.
373
374 2014-10-06  Eric Botcazou  <ebotcazou@adacore.com>
375
376         * dwarf2cfi.c (create_pseudo_cfg): Fix trace numbering.
377
378 2014-10-06  Jakub Jelinek  <jakub@redhat.com>
379
380         * ubsan.h (ubsan_get_source_location): New prototype.
381         * ubsan.c (ubsan_source_location_type): New variable.
382         Function renamed to ...
383         (ubsan_get_source_location_type): ... this.  Cache
384         return value in ubsan_source_location_type variable.
385         (ubsan_source_location, ubsan_create_data): Use
386         ubsan_get_source_location_type instead of
387         ubsan_source_location_type.
388         * asan.c (asan_protect_global): Don't protect globals
389         with ubsan_get_source_location_type () type.
390         (asan_add_global): Provide global decl location info
391         if possible.
392
393 2014-10-04  Jan Hubicka  <hubicka@ucw.cz>
394
395         * ipa-prop.c (try_make_edge_direct_virtual_call): Remove overactive
396         sanity check.
397
398 2014-10-04  Jan Hubicka  <hubicka@ucw.cz>
399
400         * ipa-polymorphic-call.c (possible_placement_new): Fix condition
401         on size.
402         (ipa_polymorphic_call_context::restrict_to_inner_type): Do not walk
403         into vptr pointer.
404         (ipa_polymorphic_call_context::dump): Fix formating.
405         (walk_ssa_copies): Add logic avoiding loops; update uses.
406         * ipa-prop.c (ipa_analyze_call_uses): Compute vptr_changed.
407
408 2014-10-02  Mark Wielaard  <mjw@redhat.com>
409
410         PR debug/63239
411         * dwarf2out.c (gen_subprogram_die): When a member function is
412         explicitly deleted then add a DW_AT_GNU_deleted attribute.
413         * langhooks.h (struct lang_hooks_for_decls): Add
414         function_decl_deleted_p langhook.
415         * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Define.
416         (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_DELETED_P.
417
418 2014-10-04  Jan Hubicka  <hubicka@ucw.cz>
419
420         * ipa-polymorphic-call.c (walk_ssa_copies): Recognize
421         NULL pointer checks.
422         (ipa_polymorphic_call_context::get_dynamic_type): Return true
423         if type doesn't change.
424         * cgraph.h (cgraph_indirect_call_info): New flag.
425         * cgraph.c (cgraph_node::create_indirect_edge): Initialize it.
426         (cgraph_node::dump): Dump it.
427         * ipa-prop.c (ipa_analyze_call_uses):  Ignore return valud
428         of context.get_dynamic_type.
429         (ipa_make_edge_direct_to_target): Do not speculate
430         edge that is already speuclative.
431         (try_make_edge_direct_virtual_call): Use VPTR_CHANGED; Do not
432         speculate to __builtin_unreachable
433         (ipa_write_indirect_edge_info, ipa_read_indirect_edge_info): Stream
434         vptr_changed.
435         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use vptr_changed.
436
437 2014-10-04  Jan Hubicka  <hubicka@ucw.cz>
438
439         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Call
440         get_dynamic_type; drop TODO.
441         * ipa-polymorphic-call.c
442         (ipa_polymorphic_call_context::get_dynamic_type): Be ready
443         for otr_type to be unknown.
444
445 2014-10-04  Trevor Saunders  <tsaunders@mozilla.com>
446
447         * common/config/score/score-common.c: Remove.
448         * config.gcc: Remove support for score-*.
449         * config/score/constraints.md: Remove.
450         * config/score/elf.h: Remove.
451         * config/score/predicates.md: Remove.
452         * config/score/score-conv.h: Remove.
453         * config/score/score-generic.md: Remove.
454         * config/score/score-modes.def: Remove.
455         * config/score/score-protos.h: Remove.
456         * config/score/score.c: Remove.
457         * config/score/score.h: Remove.
458         * config/score/score.md: Remove.
459         * config/score/score.opt: Remove.
460         * doc/md.texi: Don't document score-*.
461
462 2014-10-04  Trevor Saunders  <tsaunders@mozilla.com>
463
464         PR pch/63429
465         * genconditions.c: Directly include ggc.h before rtl.h.
466
467 2014-10-03  Jan Hubicka  <hubicka@ucw.cz>
468
469         * ipa-polymorphic-call.c
470         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Fix
471         code determining speculative type.
472         (ipa_polymorphic_call_context::combine_with): Fix speculation merge.
473
474 2014-10-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
475
476         * altivec.md (altivec_lvsl): New define_expand.
477         (altivec_lvsl_direct): Rename define_insn from altivec_lvsl.
478         (altivec_lvsr): New define_expand.
479         (altivec_lvsr_direct): Rename define_insn from altivec_lvsr.
480         * rs6000.c (rs6000_expand_builtin): Change to use
481         altivec_lvs[lr]_direct; remove commented-out code.
482
483 2014-10-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
484
485         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
486         Issue a warning message when vec_lvsl or vec_lvsr is used with a
487         little endian target.
488
489 2014-10-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
490
491         * tree-pretty-print.c (dump_location): Make it extern. Dump also
492         the column.
493         * tree-pretty-print.h (dump_location): Declare.
494         * gimple-pretty-print.c (dump_gimple_phi): Use dump_location.
495         (pp_gimple_stmt_1): Likewise.
496         (dump_implicit_edges): Likewise.
497         * gimplify.c (gimplify_call_expr): Use LOCATION_FILE and
498         LOCATION_LINE.
499
500
501 2014-10-03  David Malcolm  <dmalcolm@redhat.com>
502
503         * gcc.c (driver::global_initializations): Remove "const" so
504         that GCC_DRIVER_HOST_INITIALIZATION can modify decoded_options
505         and decoded_options_count.
506
507 2014-10-03  Maciej W. Rozycki  <macro@codesourcery.com>
508
509         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Remove
510         macro.
511         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Handle
512         TARGET_E500_DOUBLE case here.
513
514 2014-10-03  Marc Glisse  <marc.glisse@inria.fr>
515
516         PR c++/54427
517         PR c++/57198
518         PR c++/58845
519         * doc/extend.texi (Vector Extensions): Document &&, ||, ! in C++.
520
521 2014-10-03  Jan Hubicka  <hubicka@ucw.cz>
522
523         * cgraph.h (struct indirect_call_info): Add IN_POLYMORPHIC_CDTOR
524         * lto-cgraph.c (lto_output_edge, input_edge): Stream
525         in_polymorphic_cdtor
526         * cgraph.c (symbol_table::create_edge): Compute in_polymorphic_cdtor.
527         (cgraph_edge::make_speculative): Copy in_polymorphic_cdtor.
528         * cgraphclones.c (cgraph_edge::clone): Likewise.
529         * ipa-prop.c (update_jump_functions_after_inlining,
530         try_make_edge_direct_virtual_call): Pass in_polymorphic_cdtor
531         to possible_dynamic_type_change.
532         (decl_maybe_in_construction_p): Allow empty OUTER_TYPE and BASE.
533         (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
534         IN_POLY_CDOTR argument.
535
536         * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Be ready
537         for BASE and OUTER_TYPE being NULL.
538         (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
539         in_poly_cdtor parameter.
540
541 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
542
543         * config/i386/i386.c (ix86_expand_vec_perm_vpermi2): Fix up formatting.
544         (ix86_expand_vec_perm): Only call ix86_expand_vec_perm_vpermi2 if
545         TARGET_AVX512F.
546         (expand_vec_perm_1): Likewise.
547
548 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
549             Uros Bizjak  <ubizjak@gmail.com>
550
551         PR tree-optimization/61403
552         * config/i386/i386.c (expand_vec_perm_palignr): Fix a spelling
553         error in comment.  Also optimize 256-bit vectors for AVX2
554         or AVX (floating vectors only), provided the first permutation
555         can be performed in one insn.
556
557 2014-10-03  David Malcolm  <dmalcolm@redhat.com>
558
559         * gcc.c (class driver): New class.
560         (main): Reimplement in terms of driver::main, moving most of the
561         locals to be locals within individual methods of class driver.
562         The remaining locals "explicit_link_files", "decoded_options" and
563         "decoded_options_count" are used by multiple driver:: methods, and
564         so become member data.  Doing so isolates the argc/argv reads and
565         writes.  Replace "goto out" with a special exit code from
566         new method driver::prepare_infiles.  Split out the old
567         implementation of main into the following...
568         (driver::main): New function, corresponding to the old "main"
569         implementation.
570         (driver::set_progname): New function, taken from the old
571         "main" implementation.
572         (driver::expand_at_files): Likewise.
573         (driver::decode_argv): Likewise.
574         (driver::global_initializations): Likewise.
575         (driver::build_multilib_strings): Likewise.
576         (driver::set_up_specs): Likewise.
577         (driver::putenv_COLLECT_GCC): Likewise.
578         (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Likewise.
579         (driver::handle_unrecognized_options): Likewise.
580         (driver::maybe_print_and_exit): Likewise.
581         (driver::prepare_infiles): Likewise.
582         (driver::do_spec_on_infiles): Likewise.
583         (driver::maybe_run_linker): Likewise.
584         (driver::final_actions): Likewise.
585         (driver::get_exit_code): Likewise.
586
587 2014-10-03  Yury Gribov  <y.gribov@samsung.com>
588
589         * asan.c (asan_finish_file): Disable __asan_init calls for KASan;
590         don't emit empty ctors.
591
592 2014-10-03  Eric Botcazou  <ebotcazou@adacore.com>
593
594         * convert.c (convert_to_integer): Do not introduce useless conversions
595         between integral types.
596
597 2014-10-03  David Sherwood  <david.sherwood@arm.com>
598
599         * ira-int.h (ira_allocno): Mark hard_regno as signed.
600
601 2014-10-03  Ilya Enkovich  <ilya.enkovich@intel.com>
602
603         * lra-constraints.c (inherit_in_ebb): Handle calls with
604         multiple return values.
605         * caller-save.c (save_call_clobbered_regs): Likewise.
606
607 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
608
609         * tree-vect-data-refs.c (vect_permute_load_chain,
610         vect_shift_permute_load_chain): Fix a typo in temporary var names,
611         suffle3 to shuffle3.
612
613         PR libgomp/61200
614         * omp-low.c (taskreg_contexts): New variable.
615         (scan_omp_parallel): Push newly created context into taskreg_contexts
616         vector and move record layout code to finish_taskreg_scan.
617         (scan_omp_task): Likewise.
618         (finish_taskreg_scan): New function.
619         (execute_lower_omp): Call finish_taskreg_scan on all taskreg_contexts
620         vector elements and release it.
621
622         PR target/62128
623         * config/i386/i386.c (expand_vec_perm_palignr): If op1, op0 order
624         of palignr arguments can't be used due to min 0 or max - min
625         too high, try also op0, op1 order of palignr arguments.
626
627 2014-10-02  Jan Hubicka  <hubicka@ucw.cz>
628
629         * cgraph.h (ipa_polymorphic_call_context):
630         Turn bools into bitfields; add DYNAMIC; make MAKE_SPECULATIVE
631         private, add POSSIBLE_DYNAMIC_TYPE_CHANGE.
632         * ipa-polymorphic-call.c
633         (ipa_polymorphic_call_context::restrict_to_inner_class): Allow accesses
634         past end of dynamic types.
635         (ipa_polymorphic_call_context::stream_out,
636         speculative_outer_type): Stream dynamic flag.
637         (ipa_polymorphic_call_context::set_by_decl): Clear DYNAMIC.
638         (ipa_polymorphic_call_context::ipa_polymorphic_call_context):
639         Clear DYNAMIC.
640         (ipa_polymorphic_call_context::get_dynamic_type): Use DYNAMIC;
641         set it.
642         (ipa_polymorphic_call_context::combine_with): Propagate dynamic.
643         * ipa-prop.c (update_jump_functions_after_inlining,
644         try_make_edge_direct_virtual_call): Use possible_dynamic_type_change.
645
646 2014-10-02  Teresa Johnson  <tejohnson@google.com>
647
648         * tree-ssa-threadupdate.c (freqs_to_counts_path): Scale frequencies
649         up when synthesizing counts to avoid rounding errors.
650
651 2014-10-02  Teresa Johnson  <tejohnson@google.com>
652
653         PR middle-end/63422
654         * tree-ssa-threadupdate.c (freqs_to_counts_path): Remove
655         asserts to handle incoming insanities.
656
657 2014-10-02  Martin Jambor  <mjambor@suse.cz>
658
659         PR tree-optimization/63375
660         * tree-sra.c (build_access_from_expr_1): Disqualify volatile
661         references.
662
663 2014-10-02  Olivier Hainque  <hainque@adacore.com>
664
665         * Makefile.in (CROSS): Define, to @CROSS.
666
667 2014-10-02  Jakub Jelinek  <jakub@redhat.com>
668
669         PR target/62128
670         * config/i386/i386.c (expand_vec_perm_1): Try expand_vec_perm_palignr
671         if it expands to a single insn only.
672         (expand_vec_perm_palignr): Add SINGLE_INSN_ONLY_P argument.  If true,
673         fail unless in_order is true.  Add forward declaration.
674         (expand_vec_perm_vperm2f128): Fix up comment about which permutation
675         is useful for one_operand_p.
676         (ix86_expand_vec_perm_const_1): Adjust expand_vec_perm_palignr caller.
677
678 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
679
680         * cgraphclones.c (build_function_type_skip_args): Do not make new
681         type variant of old.
682
683 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
684
685         * ipa-prop.h (ipa_get_controlled_uses): Add hack to avoid ICE
686         when speculation is added.
687         (ipa_edge_args): Add polymorphic_call_contexts.
688         (ipa_get_ith_polymorhic_call_context): New accesor.
689         (ipa_make_edge_direct_to_target): Add SPECULATIVE parameter.
690         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Print contexts.
691         (ipa_compute_jump_functions_for_edge): Compute contexts.
692         (update_jump_functions_after_inlining): Update contexts.
693         (ipa_make_edge_direct_to_target): Add SPECULATIVE argument;
694         update dumping; add speculative edge creation.
695         (try_make_edge_direct_virtual_call): Add CTX_PTR parameter; handle
696         context updating.
697         (update_indirect_edges_after_inlining): Pass down context.
698         (ipa_edge_duplication_hook): Duplicate contexts.
699         (ipa_write_node_info): Stream out contexts.
700         (ipa_read_node_info): Stream in contexts.
701         * ipa-devirt.c (type_all_derivations_known_p): Avoid ICE on non-ODR
702         types.
703         (try_speculative_devirtualization): New function.
704         * ipa-utils.h (try_speculative_devirtualization): Declare.
705
706 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
707
708         * ipa.c (walk_polymorphic_call_targets): Avoid ICE when
709         dumping during WPA.
710
711 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
712
713         * ipa-prop.c (ipa_modify_formal_parameters): Do not merge
714         type variants.
715
716 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
717
718         * ipa-polymorphic-call.c
719         (ipa_polymorphic_call_context::restrict_to_inner_class):
720         Rename EXPECTED_TYPE to OTR_TYPE; Validate speculation late;
721         use speculation_consistent_p to do so; Add CONSDER_BASES
722         and CONSIDER_PLACEMENT_NEW parameters.
723         (contains_type_p): Add CONSDER_PLACEMENT_NEW and CONSIDER_BASES;
724         short circuit obvious cases.
725         (ipa_polymorphic_call_context::dump): Improve formatting.
726         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Use
727         combine_speculation_with to record speculations; Do not ICE when
728         object is located in pointer type decl; do not ICE for methods
729         of UNION_TYPE; do not record nonpolymorphic types.
730         (ipa_polymorphic_call_context::speculation_consistent_p): New method.
731         (ipa_polymorphic_call_context::combine_speculation_with): New method.
732         (ipa_polymorphic_call_context::combine_with): New method.
733         (ipa_polymorphic_call_context::make_speculative): Move here; use
734         combine speculation.
735         * cgraph.h (ipa_polymorphic_call_context): Update
736         restrict_to_inner_class prototype; add offset_by, make_speculative,
737         combine_with, useless_p, combine_speculation_with and
738         speculation_consistent_p methods.
739         (ipa_polymorphic_call_context::offset_by): New method.
740         (ipa_polymorphic_call_context::useless_p): New method.
741
742 2014-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
743
744         PR rtl-optimization/62151
745         * combine.c (can_combine_p): Allow the destination register of INSN
746         to be clobbered in I3.
747         (subst): Do not substitute into clobbers of registers.
748
749 2014-10-01  Jakub Jelinek  <jakub@redhat.com>
750
751         PR debug/63342
752         * dwarf2out.c (loc_list_from_tree): Handle MEM_REF with non-zero
753         offset, TARGET_MEM_REF and SSA_NAME.
754
755         * config/i386/i386.c (expand_vec_perm_palignr): Handle
756         256-bit vectors for TARGET_AVX2.
757
758         * config/i386/i386.c (expand_vec_perm_vperm2f128): Canonicalize
759         dfirst permutation.
760
761         PR target/63428
762         * config/i386/i386.c (expand_vec_perm_pshufb): Fix up rperm[0]
763         argument to avx2_permv2ti.
764
765 2014-10-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
766
767         * config/arm/arm.md (*store_minmaxsi): Disable for arm_restrict_it.
768
769 2014-09-30  Uros Bizjak  <ubizjak@gmail.com>
770
771         * config/i386/i386.md (fmodxf3): Enable for flag_finite_math_only only.
772         (fmod<mode>3): Ditto.
773         (fpremxf4_i387): Ditto.
774         (reminderxf3): Ditto.
775         (reminder<mode>3): Ditto.
776         (fprem1xf4_i387): Ditto.
777
778 2014-09-30  Teresa Johnson  <tejohnson@google.com>
779
780         * tree-ssa-threadupdate.c (struct ssa_local_info_t): New
781         duplicate_blocks bitmap.
782         (remove_ctrl_stmt_and_useless_edges): Ditto.
783         (create_block_for_threading): Ditto.
784         (compute_path_counts): New function.
785         (update_profile): Ditto.
786         (recompute_probabilities): Ditto.
787         (update_joiner_offpath_counts): Ditto.
788         (freqs_to_counts_path): Ditto.
789         (clear_counts_path): Ditto.
790         (ssa_fix_duplicate_block_edges): Update profile info.
791         (ssa_create_duplicates): Pass new parameter.
792         (ssa_redirect_edges): Remove old profile update.
793         (thread_block_1): New duplicate_blocks bitmap,
794         remove old profile update.
795         (thread_single_edge): Pass new parameter.
796
797 2014-09-30  Ilya Tocar  <ilya.tocar@intel.com>
798
799         PR middle-end/62120
800         * varasm.c (decode_reg_name_and_count): Check availability for
801         registers from ADDITIONAL_REGISTER_NAMES.
802
803 2014-09-30  David Malcolm  <dmalcolm@redhat.com>
804
805         PR plugins/63410
806         * Makefile.in (PRETTY_PRINT_H): Add wide-int-print.h.
807         (PLUGIN_HEADERS): Add pass-instances.def.
808
809 2014-09-30  James Greenhalgh  <james.greenhalgh@arm.com>
810
811         * config/aarch64/aarch64-simd-builtins.def (sqdmull_laneq): Expand
812         iterator.
813         * config/aarch64/aarch64-simd.md
814         (aarch64_sqdmull_laneq<mode>): Expand iterator.
815         * config/aarch64/arm_neon.h (vqdmullh_laneq_s16): New.
816         (vqdmulls_lane_s32): Fix return type.
817         (vqdmulls_laneq_s32): New.
818
819 2014-09-30  Jakub Jelinek  <jakub@redhat.com>
820
821         PR inline-asm/63282
822         * ifcvt.c (dead_or_predicable): Don't call redirect_jump_1
823         or invert_jump_1 if jump isn't any_condjump_p.
824
825 2014-09-30  Terry Guo  <terry.guo@arm.com>
826
827         * config/arm/arm-cores.def (cortex-m7): New core name.
828         * config/arm/arm-fpus.def (fpv5-sp-d16): New fpu name.
829         (fpv5-d16): Ditto.
830         * config/arm/arm-tables.opt: Regenerated.
831         * config/arm/arm-tune.md: Regenerated.
832         * config/arm/arm.h (TARGET_VFP5): New macro.
833         * config/arm/bpabi.h (BE8_LINK_SPEC): Include cortex-m7.
834         * config/arm/vfp.md (<vrint_pattern><SDF:mode>2,
835         smax<mode>3, smin<mode>3): Enabled for FPU FPv5.
836         * doc/invoke.texi: Document new cpu and fpu names.
837
838 2014-09-30  Jiong Wang  <jiong.wang@arm.com>
839
840         * shrink-wrap.c (move_insn_for_shrink_wrap): Check "can_throw_internal"
841         before sinking insn.
842
843 2014-09-30  David Sherwood  <david.sherwood@arm.com>
844
845         * ira-int.h (ira_allocno): Add "wmode" field.
846         * ira-build.c (create_insn_allocnos): Add new "parent" function
847         parameter.
848         * ira-conflicts.c (ira_build_conflicts): Add conflicts for registers
849         that cannot be accessed in wmode.
850
851 2014-09-30  Markus Trippelsdorf  <markus@trippelsdorf.de>
852
853         * data-streamer.c (bp_unpack_var_len_int): Avoid signed
854         integer overflow.
855
856 2014-09-29  Andi Kleen  <ak@linux.intel.com>
857
858         * opts.c (print_filtered_help): Print --param min/max/default
859         with -Q.
860
861 2014-09-29  Kaz Kojima  <kkojima@gcc.gnu.org>
862
863         * config/sh/sh.md: Use define_c_enum for "unspec" and "unspecv".
864
865 2014-09-29  Eric Botcazou  <ebotcazou@adacore.com>
866
867         * tree-vrp.c (get_single_symbol): New function.
868         (build_symbolic_expr): Likewise.
869         (symbolic_range_based_on_p): New predicate.
870         (extract_range_from_binary_expr_1): Deal with single-symbolic ranges
871         for PLUS and MINUS.  Do not drop symbolic ranges at the end.
872         (extract_range_from_binary_expr): Try harder for PLUS and MINUS if
873         operand is symbolic and based on the other operand.
874
875 2014-09-29  Chen Gang  <gang.chen.5i5j@gmail.com>
876
877         * config/microblaze/microblaze.md (call_internal1): Use VOID
878         instead of SI to fix "((void (*)(void)) 0)()" issue
879
880 2014-09-29  Nick Clifton  <nickc@redhat.com>
881
882         * config/msp430/msp430.c (msp430_expand_prologue): Return a
883         CLOBBER rtx for naked functions.
884         (msp430_expand_epilogue): Likewise.
885         (msp430_use_f5_series_hwmult): Cache result.
886         (use_32bit_hwmult): Cache result.
887         (msp430_no_hwmult): New function.
888         (msp430_output_labelref): Use it.
889
890 2014-09-29  Jakub Jelinek  <jakub@redhat.com>
891
892         PR middle-end/63247
893         * omp-low.c (lower_omp_target): For OMP_CLAUSE_MAP_POINTER
894         of ARRAY_TYPE, if not OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION
895         use the alignment of avar rather than ovar.
896
897 2014-09-28  John David Anglin  <danglin@gcc.gnu.org>
898
899         * config/pa/pa.c (pa_output_function_epilogue): Only update
900         last_address when a nonnote insn is found.
901
902 2014-09-26  Jan Hubicka  <hubicka@ucw.cz>
903
904         PR ipa/60665
905         * ipa-devirt.c (possible_polymorphic_call_targets): Silence clang warning.
906
907 2014-09-26  Jan Hubicka  <hubicka@ucw.cz>
908
909         PR ipa/62121
910         * ipa-polymorphic-call.c (ipa_polymorphic_call_context::restrict_to_inner_class):
911         fix pasto in checking array size.
912
913 2014-09-26  Jan Hubicka  <hubicka@ucw.cz>
914
915         PR middle-end/35545
916         * passes.def (pass_tracer): Move before last dominator pass.
917
918 2014-09-26  Thomas Schwinge  <thomas@codesourcery.com>
919
920         * gcc.c (try_generate_repro): Remove argument "prog".  Change all
921         users.
922         (run_attempt): Handle errors of "pex_run" invocation.
923
924 2014-09-26  Christophe Lyon  <christophe.lyon@linaro.org>
925
926         * config/aarch64/aarch64-linux.h (ASAN_CC1_SPEC): Define.
927         (CC1_SPEC): Define.
928         * config/aarch64/aarch64.c (aarch64_asan_shadow_offset): New function.
929         (TARGET_ASAN_SHADOW_OFFSET): Define.
930
931 2014-09-26  Martin Liska  <mliska@suse.cz>
932
933         * cgraph.c (cgraph_node::release_body): New argument keep_arguments
934         introduced.
935         * cgraph.h: Likewise.
936         * cgraphunit.c (cgraph_node::create_wrapper): Usage of new argument introduced.
937         * ipa-utils.h (polymorphic_type_binfo_p): Safe check for binfos created by Java.
938         * tree-ssa-alias.c (ao_ref_base_alias_set): Static function transformed to global.
939         * tree-ssa-alias.h: Likewise.
940
941 2014-09-26  Jakub Jelinek  <jakub@redhat.com>
942             Max Ostapenko  <m.ostapenko@partner.samsung.com>
943
944         * common.opt: New option.
945         * doc/invoke.texi: Describe new option.
946         * gcc.c (execute): Don't free first string early, but at the end
947         of the function.  Call retry_ice if compiler exited with
948         ICE_EXIT_CODE.
949         (main): Factor out common code.
950         (print_configuration): New function.
951         (files_equal_p): Likewise.
952         (check_repro): Likewise.
953         (run_attempt): Likewise.
954         (do_report_bug): Likewise.
955         (append_text): Likewise.
956         (try_generate_repro): Likewise
957
958 2014-09-25  Andi Kleen  <ak@linux.intel.com>
959
960         * config/i386/i386.c (x86_print_call_or_nop): New function.
961         (x86_function_profiler): Support -mnop-mcount and
962         -mrecord-mcount.
963         * config/i386/i386.opt (-mnop-mcount, -mrecord-mcount): Add
964         * doc/invoke.texi: Document -mnop-mcount, -mrecord-mcount.
965
966 2014-09-25  Jan Hubicka  <hubicka@ucw.cz>
967
968         * ipa-prop.c (ipa_intraprocedural_devirtualization): Remove.
969         * ipa-prop.h (ipa_intraprocedural_devirtualization): Remove.
970         * tree-ssa-prop.c (eliminate_dom_walker::before_dom_children):
971         Remove.
972
973 2014-09-25  Jan Hubicka  <hubicka@ucw.cz>
974
975         * ipa-utils.h (subbinfo_with_vtable_at_offset, type_all_derivations_known_p,
976         type_known_to_have_no_deriavations_p, types_must_be_same_for_odr,
977         types_odr_comparable): Declare.
978         (polymorphic_type_binfo_p): Move here from ipa-devirt.c
979         * ipa-polymorphic-call.c: New file.
980         (contains_polymorphic_type_p, possible_placement_new,
981         ipa_polymorphic_call_context::restrict_to_inner_class,
982         contains_type_p, decl_maybe_in_construction_p,
983         ipa_polymorphic_call_context::stream_out,
984         ipa_polymorphic_call_context::debug,
985         ipa_polymorphic_call_context::stream_in,
986         ipa_polymorphic_call_context::set_by_decl,
987         ipa_polymorphic_call_context::set_by_invariant,
988         walk_ssa_copies,
989         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
990         type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
991         extr_type_from_vtbl_ptr_store, record_known_type
992         check_stmt_for_type_change,
993         ipa_polymorphic_call_context::get_dynamic_type): Move here from
994         ipa-devirt.c
995         * ipa-devirt.c: No longer include data-streamer.h, lto-streamer.h
996         and streamer-hooks.h
997         (contains_polymorphic_type_p, possible_placement_new,
998         ipa_polymorphic_call_context::restrict_to_inner_class,
999         contains_type_p, decl_maybe_in_construction_p,
1000         ipa_polymorphic_call_context::stream_out,
1001         ipa_polymorphic_call_context::debug,
1002         ipa_polymorphic_call_context::stream_in,
1003         ipa_polymorphic_call_context::set_by_decl,
1004         ipa_polymorphic_call_context::set_by_invariant,
1005         walk_ssa_copies,
1006         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
1007         type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
1008         extr_type_from_vtbl_ptr_store, record_known_type
1009         check_stmt_for_type_change,
1010         ipa_polymorphic_call_context::get_dynamic_type): Move to
1011         ipa-polymorphic-call.c
1012         (type_all_derivations_known_p, types_odr_comparable,
1013         types_must_be_same_for_odr): Export.
1014         (type_known_to_have_no_deriavations_p): New function.
1015         * Makefile.in: Add ipa-polymorphic-call.c
1016
1017 2014-09-25  Jan Hubicka  <hubicka@ucw.cz>
1018
1019         * ipa-devirt.c (polymorphic_call_target_d): Add SPECULATIVE; reorder
1020         for better storage.
1021         (polymorphic_call_target_hasher::hash): Hash SPECULATIVE.
1022         (possible_polymorphic_call_targets): Instead of computing both
1023         speculative and non-speculative answers, do just one at a time.
1024         Replace NONSPECULATIVE_TARGETSP parameter with SPECULATIVE flag.
1025         (dump_targets): Break out from ...
1026         (dump_possible_polymorphic_call_targets): ... here; dump both speculative
1027         and non-speculative lists.
1028         (ipa_devirt): Update for new possible_polymorphic_call_targets API.
1029         * ipa-utils.h (possible_polymorphic_call_targets): Update.
1030
1031 2014-09-25  Uros Bizjak  <ubizjak@gmail.com>
1032
1033         PR rtl-optimization/63348
1034         * emit-rtl.c (try_split): Do not emit extra barrier.
1035
1036 2014-09-25  James Greenhalgh  <james.greenhalgh@arm.com>
1037
1038         * config/aarch64/aarch64-protos.h (aarch64_simd_const_bounds): Delete.
1039         * config/aarch64/aarch64-simd.md (aarch64_<sur>q<r>shl<mode>): Use
1040         new predicates.
1041         (aarch64_<sur>shll2_n<mode>): Likewise.
1042         (aarch64_<sur>shr_n<mode>): Likewise.
1043         (aarch64_<sur>sra_n<mode>: Likewise.
1044         (aarch64_<sur>s<lr>i_n<mode>): Likewise.
1045         (aarch64_<sur>qshl<u>_n<mode>): Likewise.
1046         * config/aarch64/aarch64.c (aarch64_simd_const_bounds): Delete.
1047         * config/aarch64/iterators.md (ve_mode): New.
1048         (offsetlr): Remap to infix text for use in new predicates.
1049         * config/aarch64/predicates.md (aarch64_simd_shift_imm_qi): New.
1050         (aarch64_simd_shift_imm_hi): Likewise.
1051         (aarch64_simd_shift_imm_si): Likewise.
1052         (aarch64_simd_shift_imm_di): Likewise.
1053         (aarch64_simd_shift_imm_offset_qi): Likewise.
1054         (aarch64_simd_shift_imm_offset_hi): Likewise.
1055         (aarch64_simd_shift_imm_offset_si): Likewise.
1056         (aarch64_simd_shift_imm_offset_di): Likewise.
1057         (aarch64_simd_shift_imm_bitsize_qi): Likewise.
1058         (aarch64_simd_shift_imm_bitsize_hi): Likewise.
1059         (aarch64_simd_shift_imm_bitsize_si): Likewise.
1060         (aarch64_simd_shift_imm_bitsize_di): Likewise.
1061
1062 2014-09-25  Jiong Wang  <jiong.wang@arm.com>
1063
1064         * shrink-wrap.c (move_insn_for_shrink_wrap): Initialize the live-in of
1065         new created BB as the intersection of live-in from "old_dest" and
1066         live-out from "bb".
1067
1068 2014-09-25  Felix Yang  <felix.yang@huawei.com>
1069
1070         * lra.c (lra_set_insn_recog_data): Fix typo in comment.
1071         * genautomata.c (merge_states): Ditto.
1072
1073 2014-09-25  Oleg Endo  <olegendo@gcc.gnu.org>
1074
1075         PR target/62218
1076         * config/sh/sync.md (atomic_test_and_set_soft_imask): Fix typo
1077         in instruction sequence.
1078
1079 2014-09-25  Nick Clifton  <nickc@redhat.com>
1080
1081         PR target/62218
1082         * config/sh/sync.md (atomic_fetch_nand<mode>_soft_imask): Fix typo
1083         in instruction sequence.
1084
1085 2014-09-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1086
1087         PR target/63335
1088         * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin):
1089         Exclude VSX_BUILTIN_XVCMPGEDP_P from special handling.
1090
1091 2014-09-25  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>
1099
1100         * config/i386/sse.md
1101         (define_expand "<avx2_avx512f>_perm<mode>"): Rename to ...
1102         (define_expand "<avx2_avx512>_perm<mode>"): ... this.
1103         (define_expand "avx512f_perm<mode>_mask"): Rename to ...
1104         (define_expand "<avx512>_perm<mode>_mask"): ... this.
1105         Use VI8F_256_512 mode iterator.
1106         (define_insn "<avx2_avx512f>_perm<mode>_1<mask_name>"): Rename to ...
1107         (define_insn "<avx2_avx512bw>_perm<mode>_1<mask_name>"): ... this.
1108
1109 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1110             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1111             Anna Tikhonova  <anna.tikhonova@intel.com>
1112             Ilya Tocar  <ilya.tocar@intel.com>
1113             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1114             Ilya Verbin  <ilya.verbin@intel.com>
1115             Kirill Yukhin  <kirill.yukhin@intel.com>
1116             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1117
1118         * config/i386/sse.md
1119         (define_insn "avx_movshdup256<mask_name>"): Add masking.
1120         (define_insn "sse3_movshdup<mask_name>"): Ditto.
1121         (define_insn "avx_movsldup256<mask_name>"): Ditto.
1122         (define_insn "sse3_movsldup<mask_name>"): Ditto.
1123         (define_insn "vec_dupv2df<mask_name>"): Ditto.
1124         (define_insn "*vec_concatv2df"): Add EVEX version.
1125
1126 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1127             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1128             Anna Tikhonova  <anna.tikhonova@intel.com>
1129             Ilya Tocar  <ilya.tocar@intel.com>
1130             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1131             Ilya Verbin  <ilya.verbin@intel.com>
1132             Kirill Yukhin  <kirill.yukhin@intel.com>
1133             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1134
1135         * config/i386/sse.md
1136         (define_insn "vec_set<mode>_0"): Add EVEX version.
1137
1138 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1139             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1140             Anna Tikhonova  <anna.tikhonova@intel.com>
1141             Ilya Tocar  <ilya.tocar@intel.com>
1142             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1143             Ilya Verbin  <ilya.verbin@intel.com>
1144             Kirill Yukhin  <kirill.yukhin@intel.com>
1145             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1146
1147         * config/i386/sse.md
1148         (define_insn
1149         "<fixsuffix>fix_trunc<mode><sselongvecmodelower>2<mask_name><round_saeonly_name>"):
1150         New.
1151         (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
1152         (define_insn "ufix_trunc<mode><sseintvecmodelower>2<mask_name>"): Ditto.
1153         (define_insn "sse2_cvtss2sd<round_saeonly_name>"): Change
1154         "nonimmediate_operand" to "<round_saeonly_nimm_predicate>".
1155         (define_insn "avx_cvtpd2ps256<mask_name>"): Add masking.
1156         (define_expand "sse2_cvtpd2ps_mask): New.
1157         (define_insn "*sse2_cvtpd2ps<mask_name>"): Add masking.
1158         (define_insn "sse2_cvtps2pd<mask_name>"): Add masking.
1159
1160 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1161             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1162             Anna Tikhonova  <anna.tikhonova@intel.com>
1163             Ilya Tocar  <ilya.tocar@intel.com>
1164             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1165             Ilya Verbin  <ilya.verbin@intel.com>
1166             Kirill Yukhin  <kirill.yukhin@intel.com>
1167             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1168
1169         * config/i386/i386.c
1170         (avx512f_ufix_notruncv8dfv8si_mask_round): Rename to ...
1171         (ufix_notruncv8dfv8si2_mask_round): ... this.
1172         * config/i386/sse.md
1173         (define_insn "avx512f_cvtdq2pd512_2): Update TARGET check.
1174         (define_insn "avx_cvtdq2pd256_2"): Add EVEX version.
1175         (define_insn "sse2_cvtdq2pd<mask_name>"): Add masking.
1176         (define_insn "avx_cvtpd2dq256<mask_name>"): Ditto.
1177         (define_expand "sse2_cvtpd2dq"): Delete.
1178         (define_insn "sse2_cvtpd2dq<mask_name>"): Add masking and
1179         make 2nd operand const0 vector.
1180         (define_insn "avx512f_ufix_notruncv8dfv8si<mask_name><round_name>"):
1181         Delete.
1182         (define_mode_attr pd2udqsuff): New.
1183         (define_insn
1184         "ufix_notrunc<mode><si2dfmodelower>2<mask_name><round_name>"): Ditto.
1185         (define_insn "ufix_notruncv2dfv2si2<mask_name>"): Ditto.
1186         (define_insn "*avx_cvttpd2dq256_2"): Delete.
1187         (define_expand "sse2_cvttpd2dq"): Ditto.
1188         (define_insn "sse2_cvttpd2dq<mask_name>"): Add masking and
1189         make 2nd operand const0 vector.
1190
1191 2014-09-25  Jakub Jelinek  <jakub@redhat.com>
1192
1193         PR tree-optimization/63341
1194         * tree-vectorizer.h (vect_create_data_ref_ptr,
1195         vect_create_addr_base_for_vector_ref): Add another tree argument
1196         defaulting to NULL_TREE.
1197         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add byte_offset
1198         argument, pass it down to vect_create_addr_base_for_vector_ref.
1199         (vect_create_addr_base_for_vector_ref): Add byte_offset argument,
1200         add that to base_offset too if non-NULL.
1201         * tree-vect-stmts.c (vectorizable_load): Add byte_offset variable,
1202         for dr_explicit_realign_optimized set it to vector byte size
1203         - 1 instead of setting offset, pass byte_offset down to
1204         vect_create_data_ref_ptr.
1205
1206 2014-09-24  Jan Hubicka  <hubicka@ucw.cz>
1207
1208         * ipa-devirt.c (possible_polymorphic_call_targets): Remove
1209         forgotten debug output; canonicalize querries more wtih LTO.
1210
1211 2014-09-24  Jan Hubicka  <hubicka@ucw.cz>
1212
1213         * cgraph.h (class ipa_polymorphic_call_context): Move here from
1214         ipa-utils.h; add stream_int and stream_out methods.
1215         (cgraph_indirect_call_info): Remove SPECILATIVE_OFFSET,
1216         OUTER_TYPE, SPECULATIVE_OUTER_TYPE, MAYBE_IN_CONSTRUCTION
1217         MAYBE_DERIVED_TYPE and SPECULATIEVE_MAYBE_DERIVED_TYPE;
1218         add CONTEXT.
1219         (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
1220         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
1221         ipa_polymorphic_call_context::clear_speculation,
1222         ipa_polymorphic_call_context::clear_outer_type): Move here from
1223         ipa-utils.h
1224         * ipa-utils.h (class ipa_polymorphic_call_context): Move to cgraph.h
1225         (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
1226         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
1227         ipa_polymorphic_call_context::clear_speculation,
1228         ipa_polymorphic_call_context::clear_outer_type): Likewise.
1229         * ipa-devirt.c: Include data-streamer.h, lto-streamer.h and
1230         streamer-hooks.h
1231         (ipa_polymorphic_call_context::stream_out): New method.
1232         (ipa_polymorphic_call_context::stream_in): New method.
1233         (noncall_stmt_may_be_vtbl_ptr_store): Add forgotten static.
1234         * ipa-prop.c (ipa_analyze_indirect_call_uses): Do not care about
1235         OUTER_TYPE.
1236         (ipa_analyze_call_uses): Simplify.
1237         (update_indirect_edges_after_inlining): Do not care about outer_type.
1238         (ipa_write_indirect_edge_info): Update.
1239         (ipa_write_indirect_edge_info): Likewise.
1240         * cgraph.c (cgraph_node::create_indirect_edge): Simplify.
1241         (dump_edge_flags): Break out from ...
1242         (cgraph_node::dump): ... here; dump indirect edges.
1243
1244 2014-09-24  Jan Hubicka  <hubicka@ucw.cz>
1245
1246         * ipa-utils.h (polymorphic_call_context): Add
1247         metdhos dump, debug and clear_outer_type.
1248         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
1249         (ipa_polymorphic_call_context::clear_outer_type): New method.
1250         * ipa-prop.c (ipa_analyze_call_uses): Do not overwrite offset.
1251         * ipa-devirt.c (types_odr_comparable): New function.
1252         (types_must_be_same_for_odr): New function.
1253         (odr_subtypes_equivalent_p): Simplify.
1254         (possible_placement_new): Break out from ...
1255         (ipa_polymorphic_call_context::restrict_to_inner_type): ... here;
1256         be more cuatious about returning false in cases the context may be
1257         valid in derived type or via placement new.
1258         (contains_type_p): Clear maybe_derived_type
1259         (ipa_polymorphic_call_context::dump): New method.
1260         (ipa_polymorphic_call_context::debug): New method.
1261         (ipa_polymorphic_call_context::set_by_decl): Cleanup comment.
1262         (ipa_polymorphic_call_context::set_by_invariant): Simplify.
1263         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
1264         (possible_polymorphic_call_targets): Trust context.restrict_to_inner_class
1265         to suceed on all valid cases; remove confused sanity check.
1266         (dump_possible_polymorphic_call_targets): Simplify.
1267
1268 2014-09-24  Aldy Hernandez  <aldyh@redhat.com>
1269
1270         * cgraph.h, dbxout.c, dwarfout2.c, gimple-fold.c,
1271         lto-streamer-out.c, print-tree.c, symtab.c, tree-inline.c,
1272         tree-streamer-in.c, tree-streamer-out.c, tree.c, tree.h,
1273         varpool.c: Rename all instances of DECL_ABSTRACT to
1274         DECL_ABSTRACT_P.
1275
1276 2014-09-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1277
1278         * config/rs6000/rs6000.c (insn_is_swappable_p): Don't provide
1279         special handling for stores whose SET_SRC is an UNSPEC (such as
1280         UNSPEC_STVE).
1281
1282 2014-09-24  Jiong Wang  <jiong.wang@arm.com>
1283
1284         * shrink-wrap.c (move_insn_for_shrink_wrap): Add further check when
1285         !REG_P (src) to release more instruction sink opportunities.
1286
1287 2014-09-24  Wilco Dijkstra  <wilco.dijkstra@arm.com>
1288
1289         * config/aarch64/aarch64.c (aarch64_register_move_cost): Add register
1290         move costs for 128-bit types.
1291
1292 2014-09-24  Martin Jambor  <mjambor@suse.cz>
1293
1294         * ipa-prop.c (ipa_edge_duplication_hook): Update controlled_use_count
1295         when duplicating a PASS_THROUGH jump function when creating a
1296         speculative edge.
1297
1298 2014-09-24  Marek Polacek  <polacek@redhat.com>
1299
1300         PR c/61405
1301         PR c/53874
1302         * asan.c (maybe_instrument_call): Add default case.
1303         * ipa-pure-const.c (special_builtin_state): Likewise.
1304         * predict.c (expr_expected_value_1): Likewise.
1305         * lto-streamer-out.c (write_symbol): Initialize variable.
1306
1307 2014-09-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1308
1309         * config/aarch64/arm_neon.h (vmuld_lane_f64): Use macro for getting
1310         the lane.
1311         (vmuld_laneq_f64): Likewise.
1312         (vmuls_lane_f32): Likewise.
1313         (vmuls_laneq_f32): Likewise.
1314
1315 2014-09-24  Kirill Yukhin  <kirill.yukhin@intel.com>
1316
1317         PR bootstrap/63235
1318         * varpool.c (varpool_node::add): Pass decl attributes
1319         to lookup_attribute.
1320
1321 2014-09-24  Jakub Jelinek  <jakub@redhat.com>
1322
1323         PR sanitizer/63316
1324         * asan.c (asan_expand_check_ifn): Fix up align >= 8 optimization.
1325
1326 2014-09-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1327
1328         PR tree-optimization/63266
1329         * tree-ssa-math-opts.c (struct symbolic_number): Add comment about
1330         marker for unknown byte value.
1331         (MARKER_MASK): New macro.
1332         (MARKER_BYTE_UNKNOWN): New macro.
1333         (HEAD_MARKER): New macro.
1334         (do_shift_rotate): Mark bytes with unknown values due to sign
1335         extension when doing an arithmetic right shift. Replace hardcoded
1336         mask for marker by new MARKER_MASK macro.
1337         (find_bswap_or_nop_1): Likewise and adjust ORing of two symbolic
1338         numbers accordingly.
1339
1340 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1341             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1342             Anna Tikhonova  <anna.tikhonova@intel.com>
1343             Ilya Tocar  <ilya.tocar@intel.com>
1344             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1345             Ilya Verbin  <ilya.verbin@intel.com>
1346             Kirill Yukhin  <kirill.yukhin@intel.com>
1347             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1348
1349         * config/i386/sse.md
1350         (define_insn
1351         "<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode><mask_name>"):
1352         Add masking.
1353         (define_insn "fix_truncv8sfv8si2<mask_name>"): Ditto.
1354         (define_insn "fix_truncv4sfv4si2<mask_name>"): Ditto.
1355
1356 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1357             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1358             Anna Tikhonova  <anna.tikhonova@intel.com>
1359             Ilya Tocar  <ilya.tocar@intel.com>
1360             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1361             Ilya Verbin  <ilya.verbin@intel.com>
1362             Kirill Yukhin  <kirill.yukhin@intel.com>
1363             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1364
1365         * config/i386/sse.md
1366         (define_c_enum "unspec"): Add UNSPEC_PSHUFHW, UNSPEC_PSHUFLW.
1367         (define_insn "<mask_codefor>avx512bw_pshuflwv32hi<mask_name>"): New.
1368         (define_expand "avx512vl_pshuflwv3_mask"): Ditto.
1369         (define_insn "avx2_pshuflw_1<mask_name>"): Add masking.
1370         (define_expand "avx512vl_pshuflw_mask"): New.
1371         (define_insn "sse2_pshuflw_1<mask_name>"): Add masking.
1372         (define_insn "<mask_codefor>avx512bw_pshufhwv32hi<mask_name>"): New.
1373         (define_expand "avx512vl_pshufhwv3_mask"): Ditto.
1374         (define_insn "avx2_pshufhw_1<mask_name>"): Add masking.
1375         (define_expand "avx512vl_pshufhw_mask"): New.
1376         (define_insn "sse2_pshufhw_1<mask_name>"): Add masking.
1377
1378 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1379             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1380             Anna Tikhonova  <anna.tikhonova@intel.com>
1381             Ilya Tocar  <ilya.tocar@intel.com>
1382             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1383             Ilya Verbin  <ilya.verbin@intel.com>
1384             Kirill Yukhin  <kirill.yukhin@intel.com>
1385             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1386
1387         * config/i386/i386.c
1388         (ix86_expand_args_builtin): Handle CODE_FOR_sse2_shufpd,
1389         CODE_FOR_sse2_sse2_shufpd_mask, CODE_FOR_sse2_avx512dq_shuf_f64x2_mask,
1390         CODE_FOR_sse2_avx512dq_shuf_i64x2_mask,
1391         CODE_FOR_sse2_avx512vl_shuf_i32x4_mask and
1392         CODE_FOR_sse2_avx512vl_shuf_f32x4_mask.
1393         * config/i386/sse.md
1394         (define_expand "avx512dq_shuf_<shuffletype>64x2_mask"): New.
1395         (define_insn
1396         "<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>"): Ditto.
1397         (define_expand "avx512vl_shuf_<shuffletype>32x4_mask"): Ditto.
1398         (define_insn
1399         "<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>"): Ditto.
1400         (define_expand "avx512vl_pshufdv3_mask"): Ditto.
1401         (define_insn "avx2_pshufd_1<mask_name>"): Add masking.
1402         (define_expand "avx512vl_pshufd_mask"): New.
1403         (define_insn "sse2_pshufd_1<mask_name>"): Add masking.
1404
1405 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1406             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1407             Anna Tikhonova  <anna.tikhonova@intel.com>
1408             Ilya Tocar  <ilya.tocar@intel.com>
1409             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1410             Ilya Verbin  <ilya.verbin@intel.com>
1411             Kirill Yukhin  <kirill.yukhin@intel.com>
1412             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1413
1414         * config/i386/i386.c
1415         (CODE_FOR_avx2_extracti128): Rename to ...
1416         (CODE_FOR_avx_vextractf128v4di): this.
1417         (CODE_FOR_avx2_inserti128): Rename to ...
1418         (CODE_FOR_avx_vinsertf128v4di): this.
1419         (ix86_expand_args_builtin): Handle CODE_FOR_avx_vinsertf128v4di,
1420         CODE_FOR_avx_vextractf128v4di.
1421         (ix86_expand_args_builtin): Handle CODE_FOR_avx512dq_vinsertf32x8_mask,
1422         CODE_FOR_avx512dq_vinserti32x8_mask, CODE_FOR_avx512vl_vinsertv4df,
1423         CODE_FOR_avx512vl_vinsertv4di, CODE_FOR_avx512vl_vinsertv8sf,
1424         CODE_FOR_avx512vl_vinsertv8si.
1425         * config/i386/sse.md
1426         (define_expand
1427         "<extract_type>_vinsert<shuffletype><extract_suf>_mask"): Use
1428         AVX512_VEC mode iterator.
1429         (define_insn
1430         "<mask_codefor><extract_type>_vinsert<shuffletype><extract_suf>_1<mask_name>"):
1431         Ditto.
1432         (define_expand
1433         "<extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask"): Use
1434         AVX512_VEC_2 mode iterator.
1435         (define_insn "vec_set_lo_<mode><mask_name>"): New.
1436         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
1437         (define_expand "avx512vl_vinsert<mode>"): Ditto.
1438         (define_insn "avx2_vec_set_lo_v4di"): Delete.
1439         (define_insn "avx2_vec_set_hi_v4di"): Ditto.
1440         (define_insn "vec_set_lo_<mode><mask_name>"): Add masking.
1441         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
1442         (define_insn "vec_set_lo_<mode><mask_name>"): Ditto.
1443         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
1444         (define_expand "avx2_extracti128"): Delete.
1445         (define_expand "avx2_inserti128"): Ditto.
1446
1447 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1448             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1449             Anna Tikhonova  <anna.tikhonova@intel.com>
1450             Ilya Tocar  <ilya.tocar@intel.com>
1451             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1452             Ilya Verbin  <ilya.verbin@intel.com>
1453             Kirill Yukhin  <kirill.yukhin@intel.com>
1454             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1455
1456         * config/i386/sse.md
1457         (define_insn "avx2_<code>v16qiv16hi2<mask_name>"): Add masking.
1458         (define_insn "avx512bw_<code>v32qiv32hi2<mask_name>"): New.
1459         (define_insn "sse4_1_<code>v8qiv8hi2<mask_name>"): Add masking.
1460         (define_insn "avx2_<code>v8qiv8si2<mask_name>"): Ditto.
1461         (define_insn "sse4_1_<code>v4qiv4si2<mask_name>"): Ditto.
1462         (define_insn "avx2_<code>v8hiv8si2<mask_name>"): Ditto.
1463         (define_insn "sse4_1_<code>v4hiv4si2<mask_name>"): Ditto.
1464         (define_insn "avx2_<code>v4qiv4di2<mask_name>"): Ditto.
1465         (define_insn "sse4_1_<code>v2qiv2di2<mask_name>"): Ditto.
1466         (define_insn "avx2_<code>v4hiv4di2<mask_name>"): Ditto.
1467         (define_insn "sse4_1_<code>v2hiv2di2<mask_name>"): Ditto.
1468         (define_insn "avx2_<code>v4siv4di2<mask_name>"): Ditto.
1469         (define_insn "sse4_1_<code>v2siv2di2<mask_name>"): Ditto.
1470
1471 2014-09-24  Zhenqiang Chen  <zhenqiang.chen@arm.com>
1472
1473         PR rtl-optimization/63210
1474         * ira-color.c (assign_hard_reg): Ignore conflict cost if the
1475         HARD_REGNO is not available for CONFLICT_A.
1476
1477 2014-09-23  Andi Kleen  <ak@linux.intel.com>
1478
1479         * cgraph.h (symtab_node): Add no_reorder attribute.
1480         (symbol_table::output_asm_statements): Remove.
1481         * cgraphclones.c (cgraph_node::create_clone): Copy no_reorder.
1482         (cgraph_node::create_version_clone): Dito.
1483         (symbol_table::output_asm_statements): Remove.
1484         * trans-mem.c (ipa_tm_create_version_alias): Dito.
1485         * cgraphunit.c (varpool_node::finalize_decl): Check no_reorder.
1486         (output_in_order): Add no_reorder flag. Only handle no_reorder
1487         nodes when set.
1488         (symbol_table::compile): Add separate pass for no_reorder nodes.
1489         (process_common_attributes): Set no_reorder flag in symtab node.
1490         Add node argument.
1491         (process_function_and_variable_attributes): Pass symtab nodes to
1492         process_common_attributes.
1493         * doc/extend.texi (no_reorder): Document no_reorder attribute.
1494         * lto-cgraph.c (lto_output_node): Serialize no_reorder.
1495         (lto_output_varpool_node): Dito.
1496         (input_overwrite_node): Dito.
1497         (input_varpool_node): Dito.
1498         * varpool.c (varpool_node::add): Set no_reorder attribute.
1499         (symbol_table::remove_unreferenced_decls): Handle no_reorder.
1500         (symbol_table::output_variables): Dito.
1501         * symtab.c (symtab_node::dump_base): Print no_reorder.
1502
1503 2014-09-23  Jiong Wang  <jiong.wang@arm.com>
1504
1505         * shrink-wrap.c (try_shrink_wrapping): Check PIC_OFFSET_TABLE_REGNUM not
1506         be INVALID_REGNUM.
1507
1508 2014-09-23  Thomas Schwinge  <thomas@codesourcery.com>
1509
1510         * configure: Regenerate.
1511
1512 2014-09-23  Alan Lawrence  <alan.lawrence@arm.com>
1513
1514         * combine.c (simplify_shift_const_1): Allow commuting (ashiftrt (xor))
1515         when result_mode == shift_mode.
1516
1517 2014-09-23  Kostya Serebryany  <kcc@google.com>
1518
1519         Update to match the changed asan API.
1520         * asan.c (asan_global_struct): Update the __asan_global definition
1521         to match the new API.
1522         (asan_add_global): Ditto.
1523         * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v3
1524         to __asan_init_v4.
1525
1526 2014-09-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
1527
1528         * config/rs6000/rs6000.md (f32_vsx): New mode attributes to
1529         refine the constraints used on 32/64-bit floating point moves.
1530         (f32_av): Likewise.
1531         (f64_vsx): Likewise.
1532         (f64_dm): Likewise.
1533         (f64_av): Likewise.
1534         (BOOL_REGS_OUTPUT): Use wt constraint for TImode instead of wa.
1535         (BOOL_REGS_OP1): Likewise.
1536         (BOOL_REGS_OP2): Likewise.
1537         (BOOL_REGS_UNARY): Likewise.
1538         (mov<mode>_hardfloat, SFmode/SDmode): Tighten down constraints for
1539         32/64-bit floating point moves.  Do not use wa, instead use ww/ws
1540         for moves involving VSX registers.  Do not use constraints that
1541         target VSX registers for decimal types.
1542         (mov<mode>_hardfloat32, DFmode/DDmode): Likewise.
1543         (mov<mode>_hardfloat64, DFmode/DDmode): Likewise.
1544
1545 2014-09-23  Jan Hubicka  <hubicka@ucw.cz>
1546
1547         * tree.h (int_bit_position): Turn into inline function;
1548         implement using wide int.
1549         * tree.c (int_bit_position): Remove.
1550
1551 2014-09-23  Richard Sandiford  <richard.sandiford@arm.com>
1552
1553         PR bootstrap/63280
1554         * target-globals.c (target_globals::~target_globals): Fix location
1555         of ira_int destruction.
1556
1557 2014-09-23  Renlin Li  <renlin.li@arm.com>
1558
1559         * config/aarch64/aarch64.md (return): New.
1560         (simple_return): Likewise.
1561         * config/aarch64/aarch64.c (aarch64_use_return_insn_p): New.
1562         * config/aarch64/aarch64-protos.h (aarch64_use_return_insn_p): New.
1563
1564 2014-09-23  Wilco Dijkstra  <wdijkstr@arm.com>
1565
1566         * common/config/aarch64/aarch64-common.c:
1567         (default_options aarch_option_optimization_table):
1568         Default to -fsched-pressure.
1569
1570 2014-09-23  Ilya Enkovich  <ilya.enkovich@intel.com>
1571
1572         * cfgcleanup.c (try_optimize_cfg): Do not remove label
1573         with LABEL_PRESERVE_P flag set.
1574
1575 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1576             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1577             Anna Tikhonova  <anna.tikhonova@intel.com>
1578             Ilya Tocar  <ilya.tocar@intel.com>
1579             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1580             Ilya Verbin  <ilya.verbin@intel.com>
1581             Kirill Yukhin  <kirill.yukhin@intel.com>
1582             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1583
1584         * config/i386/sse.md
1585         (define_expand "avx_shufpd256<mask_expand4_name>"): Add masking.
1586         (define_insn "avx_shufpd256_1<mask_name>"): Ditto.
1587         (define_expand "sse2_shufpd<mask_expand4_name>"): Ditto.
1588         (define_insn "sse2_shufpd_v2df_mask"): New.
1589
1590 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1591             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1592             Anna Tikhonova  <anna.tikhonova@intel.com>
1593             Ilya Tocar  <ilya.tocar@intel.com>
1594             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1595             Ilya Verbin  <ilya.verbin@intel.com>
1596             Kirill Yukhin  <kirill.yukhin@intel.com>
1597             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1598
1599         * config/i386/sse.md
1600         (define_expand "avx_shufps256<mask_expand4_name>"): Add masking.
1601         (define_insn "avx_shufps256_1<mask_name>"): Ditto.
1602         (define_expand "sse_shufps<mask_expand4_name>"): Ditto.
1603         (define_insn "sse_shufps_v4sf_mask"): New.
1604
1605 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1606             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1607             Anna Tikhonova  <anna.tikhonova@intel.com>
1608             Ilya Tocar  <ilya.tocar@intel.com>
1609             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1610             Ilya Verbin  <ilya.verbin@intel.com>
1611             Kirill Yukhin  <kirill.yukhin@intel.com>
1612             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1613
1614         * config/i386/sse.md
1615         (define_insn "avx_unpckhps256<mask_name>"): Add masking.
1616         (define_insn "vec_interleave_highv4sf<mask_name>"): Ditto.
1617         (define_insn "avx_unpcklps256<mask_name>"): Ditto.
1618         (define_insn "unpcklps128_mask"): New.
1619
1620 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1621             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1622             Anna Tikhonova  <anna.tikhonova@intel.com>
1623             Ilya Tocar  <ilya.tocar@intel.com>
1624             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1625             Ilya Verbin  <ilya.verbin@intel.com>
1626             Kirill Yukhin  <kirill.yukhin@intel.com>
1627             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1628
1629         * config/i386/sse.md
1630         (define_insn "avx_unpckhpd256<mask_name>"): Add masking.
1631         (define_insn "avx512vl_unpckhpd128_mask"): New.
1632         (define_expand "avx_movddup256<mask_name>"): Add masking.
1633         (define_expand "avx_unpcklpd256<mask_name>"): Ditto.
1634         (define_insn "*avx_unpcklpd256<mask_name>"): Ditto.
1635         (define_insn "avx512vl_unpcklpd128_mask"): New.
1636
1637 2014-09-22  Joseph Myers  <joseph@codesourcery.com>
1638
1639         * doc/tm.texi.in (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1640         * doc/tm.texi: Regenerate.
1641         * system.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Poison.
1642         * config/alpha/alpha.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1643         * config/i386/i386-interix.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
1644         Remove.
1645         * config/i386/i386.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1646         * config/i386/rtemself.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1647         * config/ia64/ia64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1648         * config/m68k/m68k.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1649         * config/m68k/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
1650         Remove.
1651         * config/mips/mips.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1652         * config/mips/n32-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1653         * config/msp430/msp430.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1654         * config/rl78/rl78.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1655         * config/rs6000/rs6000.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1656         * config/rx/rx.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1657         * config/s390/s390.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1658         * config/sparc/freebsd.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1659         * config/sparc/linux.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1660         * config/sparc/linux64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1661         * config/sparc/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
1662         Remove.
1663
1664 2014-09-22  Jan Hubicka  <hubicka@ucw.cz>
1665
1666         * tree-ssa-ccp.c (prop_value_d): Rename to ...
1667         (ccp_prop_value_t): ... this one to avoid ODR violation; update uses.
1668         * ipa-prop.c (struct type_change_info): Rename to ...
1669         (prop_type_change_info): ... this; update uses.
1670         * ggc-page.c (globals): Rename to ...
1671         (static struct ggc_globals): ... this; update uses.
1672         * tree-ssa-loop-im.c (mem_ref): Rename to ...
1673         (im_mem_ref): ... this; update uses.
1674         * ggc-common.c (loc_descriptor): Rename to ...
1675         (ggc_loc_descriptor): ... this; update uses.
1676         * lra-eliminations.c (elim_table): Rename to ...
1677         (lra_elim_table): ... this; update uses.
1678         * bitmap.c (output_info): Rename to ...
1679         (bitmap_output_info): ... this; update uses.
1680         * gcse.c (expr): Rename to ...
1681         (gcse_expr) ... this; update uses.
1682         (occr): Rename to ...
1683         (gcse_occr): .. this; update uses.
1684         * tree-ssa-copy.c (prop_value_d): Rename to ...
1685         (prop_value_t): ... this.
1686         * predict.c (block_info_def): Rename to ...
1687         (block_info): ... this; update uses.
1688         (edge_info_def): Rename to ...
1689         (edge_info): ... this; update uses.
1690         * profile.c (bb_info): Rename to ...
1691         (bb_profile_info): ... this; update uses.
1692         * alloc-pool.c (output_info): Rename to ...
1693         (pool_output_info): ... this; update uses.
1694         * ipa-cp.c (topo_info): Rename to ..
1695         (ipa_topo_info): ... this; update uses.
1696         * tree-nrv.c (nrv_data): Rename to ...
1697         (nrv_data_t): ... this; update uses.
1698         * ipa-split.c (bb_info): Rename to ...
1699         (split_bb_info): ... this one.
1700         * profile.h (edge_info): Rename to ...
1701         (edge_profile_info): ... this one; update uses.
1702         * dse.c (bb_info): Rename to ...
1703         (dse_bb_info): ... this one; update uses.
1704         * cprop.c (occr): Rename to ...
1705         (cprop_occr): ... this one; update uses.
1706         (expr): Rename to ...
1707         (cprop_expr): ... this one; update uses.
1708
1709 2014-09-22  Jason Merrill  <jason@redhat.com>
1710
1711         * Makefile.in (check-parallel-%): Add @.
1712
1713 2014-09-22  James Greenhalgh  <james.greenhalgh@arm.com>
1714
1715         * config/aarch64/geniterators.sh: New.
1716         * config/aarch64/iterators.md (VDQF_DF): New.
1717         * config/aarch64/t-aarch64: Generate aarch64-builtin-iterators.h.
1718         * config/aarch64/aarch64-builtins.c (BUILTIN_*) Remove.
1719
1720 2014-09-22  Peter A. Bigot  <pab@pabigot.com>
1721
1722         * config/msp430/msp430.h (LIB_SPEC): Remove automatic addition of
1723         -lnosys when -msim absent.
1724
1725 2014-09-22  Alan Lawrence  <alan.lawrence@arm.com>
1726
1727         * fold-const.c (tree_swap_operands_p): Strip only sign-preserving NOPs.
1728
1729 2014-09-22  Richard Biener  <rguenther@suse.de>
1730
1731         * gimplify.c (gimplify_init_constructor): Do not leave
1732         non-GIMPLE vector constructors around.
1733         * tree-cfg.c (verify_gimple_assign_single): Verify that
1734         CONSTRUCTORs have gimple elements.
1735
1736 2014-09-22  Jakub Jelinek  <jakub@redhat.com>
1737
1738         PR debug/63328
1739         * omp-low.c (ipa_simd_modify_stmt_ops): For debug stmts
1740         insert a debug source bind stmt setting DEBUG_EXPR_DECL
1741         instead of a normal gimple assignment stmt.
1742
1743 2014-09-22  James Greenhalgh  <james.greenhalgh@arm.com>
1744
1745         * config/bfin/bfin.md: Fix use of constraints in define_split.
1746
1747 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
1748
1749         * config/i386/i386.c (ix86_cannot_change_mode_class): Remove
1750         GET_MODE_SIZE (to) < GET_MODE_SIZE (from) test.
1751
1752 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
1753
1754         * hard-reg-set.h: Include hash-table.h.
1755         (target_hard_regs): Add a finalize method and a x_simplifiable_subregs
1756         field.
1757         * target-globals.c (target_globals::~target_globals): Call
1758         hard_regs->finalize.
1759         * rtl.h (subreg_shape): New structure.
1760         (shape_of_subreg): New function.
1761         (simplifiable_subregs): Declare.
1762         * reginfo.c (simplifiable_subreg): New structure.
1763         (simplifiable_subregs_hasher): Likewise.
1764         (simplifiable_subregs): New function.
1765         (invalid_mode_changes): Delete.
1766         (alid_mode_changes, valid_mode_changes_obstack): New variables.
1767         (record_subregs_of_mode): Remove subregs_of_mode parameter.
1768         Record valid mode changes in valid_mode_changes.
1769         (find_subregs_of_mode): Remove subregs_of_mode parameter.
1770         Update calls to record_subregs_of_mode.
1771         (init_subregs_of_mode): Remove invalid_mode_changes and bitmap
1772         handling.  Initialize new variables.  Update call to
1773         find_subregs_of_mode.
1774         (invalid_mode_change_p): Check new variables instead of
1775         invalid_mode_changes.
1776         (finish_subregs_of_mode): Finalize new variables instead of
1777         invalid_mode_changes.
1778         (target_hard_regs::finalize): New function.
1779         * ira-costs.c (print_allocno_costs): Call invalid_mode_change_p
1780         even when CLASS_CANNOT_CHANGE_MODE is undefined.
1781
1782 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
1783
1784         * combine.c (subst): Use simplify_subreg_regno rather than
1785         REG_CANNOT_CHANGE_MODE_P to detect invalid mode changes.
1786
1787 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
1788
1789         * rtl.h (subreg_info): Expand commentary
1790         * rtlanal.c (subreg_get_info): Likewise.
1791
1792 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
1793
1794         * hard-reg-set.h (COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
1795         (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
1796         (IOR_COMPL_HARD_REG_SET): Allow the "from" set to be constant.
1797
1798 2014-09-22  Zhenqiang Chen  <zhenqiang.chen@arm.com>
1799
1800         * config/arm/arm.c: #include "tm-constrs.h"
1801         (thumb1_size_rtx_costs): Adjust rtx costs.
1802
1803 2014-09-22  Hans-Peter Nilsson  <hp@axis.com>
1804
1805         * configure.ac (target_header_dir): Move block defining
1806         this to before the block setting inhibit_libc.
1807         (inhibit_libc): When considering $with_headers, just
1808         check it it's explicitly "no".  If not, also check if
1809         $target_header_dir/stdio.h is present.  If not, set
1810         inhibit_libc=true.
1811         * configure: Regenerate.
1812
1813 2014-09-21  Patrick Oppenlander  <pattyo.lists@gmail.com>
1814
1815         * config/rs6000/t-spe (MULTILIB_EXCEPTIONS): Allow isel without SPE.
1816
1817 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
1818
1819         * config/rs6000/rs6000.md (div<mode>3): Fix comment.  Use a different
1820         insn for divides by integer powers of two.
1821         (div<mode>3_sra, *div<mode>3_sra_dot, *div<mode>3_sra_dot2): New.
1822         (mod<mode>3): Fix formatting.
1823         (three anonymous define_insn and two define_split): Delete.
1824
1825 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
1826
1827         * config/rs6000/rs6000.md (ashr<mode>3, *ashr<mode>3, *ashrsi3_64,
1828         *ashr<mode>3_dot, *ashr<mode>3_dot2): Clobber CA_REGNO.
1829         (floatdisf2_internal2): Ditto.
1830         (ashrdi3_no_power): Ditto.  Fix formatting.
1831
1832 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
1833
1834         * config/rs6000/rs6000.md (ctz<mode>2, ffs<mode>2, popcount<mode>2,
1835         popcntb<mode>2, popcntd<mode>2, parity<mode>2, parity<mode>2_cmpb):
1836         Tidy.
1837
1838 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
1839
1840         * config/rs6000/rs6000.md (strlensi): Don't use subsi3 with a
1841         constant, use addsi3 directly.
1842         (three anonymous define_insn, two define_split): Delete.
1843         (sub<mode>3): Move.  Do not allow constant second operand.
1844         Generate different insn for constant first operand.
1845         (*subf<mode>3, *subf<mode>3_dot, *subf<mode>3_dot2): New.
1846         (subf<mode>3_imm): New.
1847         (ctz<mode>2, ffs<mode>2): Clobber CA_REGNO where required.
1848         (*plus_ltu<mode>): Only handle registers.
1849         (*plus_ltu<mode>_1): New.  Handle integer third operand.
1850         (*plus_gtu<mode>): Only handle registers.
1851         (*plus_gtu<mode>_1): New.  Handle integer third operand.
1852
1853 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
1854
1855         * config/rs6000/rs6000.md (iorxor): New code_iterator.
1856         (iorxor): New code_attr.
1857         (IORXOR): New code_attr.
1858         (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): Delete.
1859         (ior<mode>3, xor<mode>3): Delete.
1860         (<iorxor><mode>3): New.
1861         (splitter for "big" integer ior, xor): New.
1862         (*bool<mode>3): Move.  Also handle AND.
1863         (*bool<mode>3_dot, *bool<mode>3_dot2): Also handle AND.
1864         (splitter for "big" integer ior, xor): Delete.
1865
1866 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
1867
1868         * config/rs6000/rs6000.md (*neg<mode>2_internal): Delete.
1869         (two anonymous define_insn and two define_split): Delete.
1870         (*neg<mode>2, *neg<mode>2_dot, *neg<mode>2_dot2): New.
1871
1872 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
1873
1874         * config/rs6000/rs6000.md (*one_cmpl<mode>2): Generate "not" insn.
1875         (two anonymous define_insn and two define_split): Delete.
1876         (*one_cmpl<mode>2_dot, *one_cmpl<mode>2_dot2): New.
1877
1878 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
1879
1880         * config/rs6000/rs6000.c (rs6000_rtx_costs) <NE>: New.
1881
1882 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
1883
1884         * config/rs6000/predicates.md (ca_operand): Allow subregs.
1885         (input_operand): Do not allow ca_operand.
1886         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): For the
1887         carry bit, allow SImode and Pmode.
1888         (rs6000_init_hard_regno_mode_ok): Make the carry bit class NO_REGS.
1889
1890 2014-09-21  Uros Bizjak  <ubizjak@gmail.com>
1891
1892         * config/i386/i386.c (ix86_expand_call): Generate MS->SYSV extra
1893         clobbered registers using clobber_reg.  Remove UNSPEC decoration.
1894         * config/i386/i386.md (unspec) <UNSPEC_MS_TO_SYSV_CALL>: Remove.
1895         (*call_rex64_ms_sysv): Remove.
1896         (*call_value_rex64_ms_sysv): Ditto.
1897         * config/i386/predicates.md (call_rex64_ms_sysv_operation): Remove.
1898
1899 2014-09-20  Joern Rennecke  <joern.rennecke@embecosm.com>
1900
1901         * config/epiphany/epiphany.md (sub_f_add_imm): Change constraint of
1902         operand 3 to "CnL".
1903
1904 2014-09-20  Andreas Schwab  <schwab@suse.de>
1905
1906         * config/ia64/ia64.md: Remove constraints from define_split
1907         patterns.
1908
1909 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
1910
1911         * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
1912         (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
1913         possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
1914         (get_dynamic_type): Remove.
1915         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
1916         (clear_speculation): Bring to ipa-deivrt.h
1917         (get_class_context): Rename to ...
1918         (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
1919         (contains_type_p): Update.
1920         (get_dynamic_type): Rename to ...
1921         ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
1922         (possible_polymorphic_call_targets): UPdate.
1923         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
1924         * ipa-prop.c (ipa_analyze_call_uses): Update.
1925
1926 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
1927
1928         * ipa-visibility.c (varpool_node::externally_visible_p): Do not
1929         privatize dynamic TLS variables.
1930
1931 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
1932
1933         * diagnostic.c (warning_n): New function.
1934         * diagnostic-core.h (warning_n): Declare.
1935         * ipa-devirt.c (ipa_devirt): Handle singulars correctly;
1936         output dynamic counts when available.
1937
1938 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
1939
1940         PR tree-optimization/63255
1941         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering
1942         issue in setting body_removed flag.
1943
1944 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
1945
1946         PR c++/61825
1947         * c-family/c-common.c (handle_alias_ifunc_attribute): Check
1948         that visibility change is possible
1949         (handle_weakref_attribute): Likewise.
1950         * cgraph.h (symtab_node): Add method get_create and
1951         field refuse_visibility_changes.
1952         (symtab_node::get_create): New method.
1953         * fold-const.c (tree_single_nonzero_warnv_p): Use get_create.
1954         * varasm.c (mark_weak): Verify that visibility change is
1955         possible.
1956
1957 2014-09-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
1958
1959         * config/rs6000/predicates.md (fusion_gpr_mem_load): Move testing
1960         for base_reg_operand to be common between LO_SUM and PLUS.
1961         (fusion_gpr_mem_combo): New predicate to match a fused address
1962         that combines the addis and memory offset address.
1963
1964         * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Change
1965         calling signature.
1966         (emit_fusion_gpr_load): Likewise.
1967
1968         * config/rs6000/rs6000.c (fusion_gpr_load_p): Change calling
1969         signature to pass each argument separately, rather than
1970         using an operands array.  Rewrite the insns found by peephole2 to
1971         be a single insn, rather than hoping the insns will still be
1972         together when the peephole pass is done.  Drop being called via a
1973         normal peephole.
1974         (emit_fusion_gpr_load): Change calling signature to be called from
1975         the fusion_gpr_load_<mode> insns with a combined memory address
1976         instead of the peephole pass passing the addis and offset
1977         separately.
1978
1979         * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): New unspec for GPR
1980         fusion.
1981         (power8 fusion peephole): Drop support for doing power8 via a
1982         normal peephole that was created by the peephole2 pass.
1983         (power8 fusion peephole2): Create a new insn with the fused
1984         address, so that the fused operation is kept together after
1985         register allocation is done.
1986         (fusion_gpr_load_<mode>): Likewise.
1987
1988 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
1989
1990         PR lto/63286
1991         * tree.c (need_assembler_name_p): Do not mangle variadic types.
1992
1993 2014-09-19  Segher Boessenkool  <segher@kernel.crashing.org>
1994
1995         * recog.c (scratch_operand): Do not simply allow all hard registers:
1996         only allow those that are allocatable.
1997
1998 2014-09-19  Felix Yang  <felix.yang@huawei.com>
1999
2000         * cfgrtl.c ira.c ira-color.c ira-conflicts ira-lives.c: Update
2001         comments and fix spacing to conform to coding style.
2002
2003 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
2004
2005         * genrecog.c (validate_pattern): Allow empty constraints in
2006         a match_scratch.
2007
2008 2014-09-19  Aldy Hernandez  <aldyh@redhat.com>
2009
2010         * dwarf2out.c (decl_ultimate_origin): Update comment.
2011         * tree.c (block_ultimate_origin): Same.
2012
2013 2014-09-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2014
2015         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
2016         Update GCC version name to GCC 5.
2017         (rs6000_function_arg_boundary): Likewise.
2018         (rs6000_function_arg): Likewise.
2019
2020 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
2021
2022         * config/sh/sh.md: Fix use of constraints in define_split.
2023
2024 2014-09-19  Markus Trippelsdorf  <markus@trippelsdorf.de>
2025
2026         PR ipa/61998
2027         * ipa-devirt.c (ipa_devirt): Bail out if odr_types_ptr is NULL.
2028
2029 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
2030
2031         * doc/md.texi (Modifiers): Consistently use "read/write"
2032         nomenclature rather than "input/output".
2033         * genrecog.c (constraints_supported_in_insn_p): New.
2034         (validate_pattern): If needed, also check constraints on
2035         MATCH_SCRATCH operands.
2036         * genoutput.c (validate_insn_alternatives): Catch earlyclobber
2037         operands with no '=' or '+' modifier.
2038
2039 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
2040
2041         * config/aarch64/aarch64.md (stack_protect_test_<mode>): Mark
2042         scratch register as written.
2043
2044 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2045
2046         * config/s390/s390.c (s390_emit_epilogue): Remove bogus
2047         assignment.
2048
2049 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2050
2051         * config/s390/s390.md ("trunctdsd2", "extendsdtd2"): New
2052         expanders.
2053
2054 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2055
2056         PR target/62662
2057         * config/s390/s390.c (s390_emit_epilogue): When doing the return
2058         address load optimization force s390_optimize_prologue to leave it
2059         that way.  Only do the optimization if we already decided to push
2060         r14 into a stack slot.
2061
2062 2014-09-19  Marat Zakirov  <m.zakirov@samsung.com>
2063
2064         * asan.c (build_check_stmt): Alignment arg was added.
2065         (asan_expand_check_ifn): Optimization for alignment >= 8.
2066
2067 2014-09-19  Olivier Hainque  <hainque@adacore.com>
2068
2069         * config/i386/vxworksae.h: Remove obsolete definitions.
2070         (STACK_CHECK_PROTECT): Define.
2071         * config/i386/vx-common.h: Remove.  Merge contents within
2072         config/i386/vxworks.h.
2073         * config.gcc (i?86-vxworks*): Use i386/vxworks.h instead of
2074         i386/vx-common.h.
2075
2076 2014-09-19  Olivier Hainque  <hainque@adacore.com>
2077
2078         * config.gcc (powerpc-wrs-vxworksmils): New configuration.
2079         * config/rs6000/t-vxworksmils: New file.
2080         * config/rs6000/vxworksmils.h: New file.
2081
2082 2014-09-19  Olivier Hainque  <hainque@adacore.com>
2083
2084         * varasm.c (default_section_type_flags): Flag .persistent.bss
2085         sections as SECTION_BSS.
2086
2087 2014-09-19  Nick Clifton  <nickc@redhat.com>
2088
2089         * config/rl78/rl78.c (rl78_expand_epilogue): Generate a USE of the
2090         pop'ed registers so that DCE does not eliminate them.
2091
2092 2014-09-18  Jan Hubicka  <hubicka@ucw.cz>
2093
2094         PR lto/63298
2095         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix thinko in a condition.
2096
2097 2014-09-18  Joseph Myers  <joseph@codesourcery.com>
2098
2099         * system.h (LIBGCC2_TF_CEXT): Poison.
2100         * config/i386/cygming.h (LIBGCC2_TF_CEXT): Remove.
2101         * config/i386/darwin.h (LIBGCC2_TF_CEXT): Likewise.
2102         * config/i386/dragonfly.h (LIBGCC2_TF_CEXT): Likewise.
2103         * config/i386/freebsd.h (LIBGCC2_TF_CEXT): Likewise.
2104         * config/i386/gnu-user-common.h (LIBGCC2_TF_CEXT): Likewise.
2105         * config/i386/openbsdelf.h (LIBGCC2_TF_CEXT): Likewise.
2106         * config/i386/sol2.h (LIBGCC2_TF_CEXT): Likewise.
2107         * config/ia64/ia64.h (LIBGCC2_TF_CEXT): Likewise.
2108         * config/ia64/linux.h (LIBGCC2_TF_CEXT): Likewise.
2109
2110 2014-09-19  Kito Cheng  <kito@0xlab.org>
2111
2112         * except.h: Fix header guard.
2113         * addresses.h: Add missing header guard.
2114         * cfghooks.h: Likewise.
2115         * collect-utils.h: Likewise.
2116         * collect2-aix.h: Likewise.
2117         * conditions.h: Likewise.
2118         * cselib.h: Likewise.
2119         * dwarf2asm.h: Likewise.
2120         * graphds.h: Likewise.
2121         * graphite-scop-detection.h: Likewise.
2122         * gsyms.h: Likewise.
2123         * hw-doloop.h: Likewise.
2124         * incpath.h: Likewise.
2125         * ipa-inline.h: Likewise.
2126         * ipa-ref.h: Likewise.
2127         * ira-int.h: Likewise.
2128         * ira.h: Likewise.
2129         * lra-int.h: Likewise.
2130         * lra.h: Likewise.
2131         * lto-section-names.h: Likewise.
2132         * read-md.h: Likewise.
2133         * reload.h: Likewise.
2134         * rtl-error.h: Likewise.
2135         * sdbout.h: Likewise.
2136         * targhooks.h: Likewise.
2137         * tree-affine.h: Likewise.
2138         * xcoff.h: Likewise.
2139         * xcoffout.h: Likewise.
2140
2141 2014-09-18  Vladimir Makarov  <vmakarov@redhat.com>
2142
2143         PR debug/63285
2144         * haifa-sched.c (schedule_block): Advance cycle at the end of BB
2145         if advance != 0.
2146
2147 2014-09-18  Vladimir Makarov  <vmakarov@redhat.com>
2148
2149         PR target/61360
2150         * lra.c (lra): Call recog_init.
2151
2152 2014-09-18  Jakub Jelinek  <jakub@redhat.com>
2153
2154         PR c++/62017
2155         * asan.c (transform_statements): Don't instrument clobber statements.
2156
2157 2014-09-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2158
2159         * config/arm/neon.md (*movmisalign<mode>_neon_load): Change type
2160         to neon_load1_1reg<q>.
2161
2162 2014-09-17  Jakub Jelinek  <jakub@redhat.com>
2163
2164         PR debug/63284
2165         * tree-cfgcleanup.c (fixup_noreturn_call): Don't split block
2166         if there are only debug stmts after the noreturn call, instead
2167         remove the debug stmts.
2168
2169 2014-09-17  Jan Hubicka  <hubicka@ucw.cz>
2170
2171         * ipa-devirt.c (type_pair, default_hashset_traits): New types.
2172         (odr_types_equivalent_p): Use pair hash.
2173         (odr_subtypes_equivalent_p): Likewise, do structural compare
2174         on ODR types that may be mismatched.
2175         (warn_odr): Support warning when only one field is given.
2176         (odr_types_equivalent_p): Strenghten comparsions made;
2177         support VOIDtype.
2178         (add_type_duplicate): Update VISITED hash set.
2179
2180 2014-09-17  Sebastian Huber  <sebastian.huber@embedded-brains.de>
2181
2182         * config.gcc (*-*-rtems*): Default to 'rtems' thread model.
2183         Enable selection of 'posix' or no thread model.
2184
2185 2014-09-17  Andrew Stubbs  <ams@codesourcery.com>
2186
2187         * config/arm/arm.c (arm_option_override): Reject -mfpu=neon
2188         when architecture is older than ARMv7.
2189
2190 2014-09-16  John David Anglin  <danglin@gcc.gnu.org>
2191
2192         PR target/61853
2193         * config/pa/pa.c (pa_function_value): Directly handle aggregates
2194         that fit exactly in a word or double word.
2195
2196 2014-09-16  Ilya Tocar  <ilya.tocar@intel.com>
2197
2198         * config/i386/driver-i386.c (host_detect_local_cpu): Detect lack of
2199         zmm/k regs support.
2200
2201 2014-09-16  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2202             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2203             Anna Tikhonova  <anna.tikhonova@intel.com>
2204             Ilya Tocar  <ilya.tocar@intel.com>
2205             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2206             Ilya Verbin  <ilya.verbin@intel.com>
2207             Kirill Yukhin  <kirill.yukhin@intel.com>
2208             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2209
2210         * config/i386/i386.c
2211         (ix86_expand_vector_extract): Handle V32HI and V64QI modes.
2212         * config/i386/sse.md
2213         (define_mode_iterator VI48F_256): New.
2214         (define_mode_attr extract_type): Ditto.
2215         (define_mode_attr extract_suf): Ditto.
2216         (define_mode_iterator AVX512_VEC): Ditto.
2217         (define_expand
2218         "<extract_type>_vextract<shuffletype><extract_suf>_mask"): Use
2219         AVX512_VEC.
2220         (define_insn "avx512dq_vextract<shuffletype>64x2_1_maskm"): New.
2221         (define_insn
2222         "<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>"):
2223         Ditto.
2224         (define_mode_attr extract_type_2): Ditto.
2225         (define_mode_attr extract_suf_2): Ditto.
2226         (define_mode_iterator AVX512_VEC_2): Ditto.
2227         (define_expand
2228         "<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask"): Use
2229         AVX512_VEC_2 mode iterator.
2230         (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
2231         (define_expand "avx512vl_vextractf128<mode>"): Ditto.
2232         (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
2233         (define_insn "vec_extract_lo_<mode><mask_name>"): New.
2234         (define_split for V16FI mode): Ditto.
2235         (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
2236         (define_insn "vec_extract_lo_<mode><mask_name>"): New.
2237         (define_split for VI8F_256 mode): Ditto.
2238         (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
2239         (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
2240         (define_insn "vec_extract_lo_<mode><mask_name>"): New.
2241         (define_split for VI4F_256 mode): Ditto.
2242         (define_insn "vec_extract_lo_<mode>_maskm"): Ditto.
2243         (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
2244         (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
2245         (define_mode_iterator VEC_EXTRACT_MODE): Add V64QI and V32HI modes.
2246         (define_insn "vcvtph2ps<mask_name>"): Fix pattern condition.
2247         (define_insn "avx512f_vextract<shuffletype>32x4_1_maskm"): Ditto.
2248         (define_insn "<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>"):
2249         Update `type' attribute, remove explicit `memory' attribute calculation.
2250
2251 2014-09-16  Kito Cheng  <kito@0xlab.org>
2252
2253         * ira.c (ira): Don't initialize ira_spilled_reg_stack_slots and
2254         ira_spilled_reg_stack_slots_num if using lra.
2255         (do_reload): Remove release ira_spilled_reg_stack_slots part.
2256         * ira-color.c (ira_sort_regnos_for_alter_reg): Add assertion to
2257         make sure not using lra.
2258         (ira_reuse_stack_slot): Likewise.
2259         (ira_mark_new_stack_slot): Likewise.
2260
2261 2014-09-15  Andi Kleen  <ak@linux.intel.com>
2262
2263         * function.c (allocate_struct_function): Force
2264         DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT to one when
2265         profiling is disabled.
2266
2267 2014-09-15  Trevor Saunders  <tsaunders@mozilla.com>
2268
2269         * cfgrtl.c, combine.c, config/arc/arc.c, config/mcore/mcore.c,
2270         config/rs6000/rs6000.c, config/sh/sh.c, cprop.c, dwarf2out.c,
2271         emit-rtl.c, final.c, function.c, gcse.c, jump.c, reg-stack.c,
2272         reload1.c, reorg.c, resource.c, sel-sched-ir.c: Replace INSN_DELETED_P
2273         macro with statically checked member functions.
2274         * rtl.h (rtx_insn::deleted): New method.
2275         (rtx_insn::set_deleted): Likewise.
2276         (rtx_insn::set_undeleted): Likewise.
2277         (INSN_DELETED_P): Remove.
2278
2279 2014-09-15  Trevor Saunders  <tsaunders@mozilla.com>
2280
2281         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Assign the
2282         result of emit_jump_insn_before to a new variable.
2283         * jump.c (mark_jump_label): Change the type of insn to rtx_insn *.
2284         (mark_jump_label_1): Likewise.
2285         (mark_jump_label_asm): Likewise.
2286         * reload1.c (gen_reload): Change type of tem to rtx_insn *.
2287         * rtl.h (mark_jump_label): Adjust.
2288
2289 2014-09-15  Jakub Jelinek  <jakub@redhat.com>
2290
2291         * Makefile.in (dg_target_exps): Remove.
2292         (check_gcc_parallelize): Change to just an upper bound number.
2293         (check-%-subtargets): Always print the non-parallelized goals.
2294         (check_p_vars, check_p_comma, check_p_subwork): Remove.
2295         (check_p_count, check_p_numbers0, check_p_numbers1, check_p_numbers2,
2296         check_p_numbers3, check_p_numbers4, check_p_numbers5,
2297         check_p_numbers6): New variables.
2298         (check_p_numbers): Set to sequence from 1 to 9999.
2299         (check_p_subdirs): Set to sequence from 1 to minimum of
2300         $(check_p_count) and either GCC_TEST_PARALLEL_SLOTS env var if set,
2301         or 128.
2302         (check-%, check-parallel-%): Rewritten so that for parallelized
2303         testing each job runs all the *.exp files, with
2304         GCC_RUNTEST_PARALLELIZE_DIR set in environment.
2305
2306 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
2307
2308         * config/arc/arc-protos.h (arc_attr_type): Strengthen param from
2309         rtx to rtx_insn *.
2310         (arc_sets_cc_p): Likewise.
2311         * config/arc/arc.c (arc_print_operand): Use methods of
2312         "final_sequence" for clarity, and to enable strengthening of
2313         locals "jump" and "delay" from rtx to rtx_insn *.
2314         (arc_adjust_insn_length): Strengthen local "prev" from rtx to
2315         rtx_insn *; use method of rtx_sequence for typesafety.
2316         (arc_get_insn_variants): Use insn method of rtx_sequence for
2317         typesafety.
2318         (arc_pad_return): Likewise.
2319         (arc_attr_type): Strengthen param from rtx to rtx_insn *.
2320         (arc_sets_cc_p): Likewise.  Also, convert a GET_CODE check to a
2321         dyn_cast to rtx_sequence *, using insn method for typesafety.
2322         * config/arc/arc.h (ADJUST_INSN_LENGTH): Add checked casts to
2323         rtx_sequence * and use insn method when invoking get_attr_length.
2324         * config/bfin/bfin.c (type_for_anomaly): Strengthen param from rtx
2325         to rtx_insn *.  Replace a GET_CODE check with a dyn_cast to
2326         rtx_sequence *, introducing a local "seq", using its insn method
2327         from typesafety and clarity.
2328         (add_sched_insns_for_speculation): Strengthen local "next" from
2329         rtx to rtx_insn *.
2330         * config/c6x/c6x.c (get_insn_side): Likewise for param "insn".
2331         (predicate_insn): Likewise.
2332         * config/cris/cris-protos.h (cris_notice_update_cc): Likewise for
2333         second param.
2334         * config/cris/cris.c (cris_notice_update_cc): Likewise.
2335         * config/epiphany/epiphany-protos.h
2336         (extern void epiphany_insert_mode_switch_use): Likewise for param
2337         "insn".
2338         (get_attr_sched_use_fpu): Likewise for param.
2339         * config/epiphany/epiphany.c (epiphany_insert_mode_switch_use):
2340         Likewise for param "insn".
2341         * config/epiphany/mode-switch-use.c (insert_uses): Likewise for
2342         param "insn" of "target_insert_mode_switch_use" callback.
2343         * config/frv/frv.c (frv_insn_unit): Likewise for param "insn".
2344         (frv_issues_to_branch_unit_p): Likewise.
2345         (frv_pack_insn_p): Likewise.
2346         (frv_compare_insns): Strengthen locals "insn1" and "insn2" from
2347         const rtx * (i.e. mutable rtx_def * const *) to
2348         rtx_insn * const *.
2349         * config/i386/i386-protos.h (standard_sse_constant_opcode):
2350         Strengthen first param from rtx to rtx_insn *.
2351         (output_fix_trunc): Likewise.
2352         * config/i386/i386.c (standard_sse_constant_opcode): Likewise.
2353         (output_fix_trunc): Likewise.
2354         (core2i7_first_cycle_multipass_filter_ready_try): Likewise for
2355         local "insn".
2356         (min_insn_size): Likewise for param "insn".
2357         (get_mem_group): Likewise.
2358         (is_cmp): Likewise.
2359         (get_insn_path): Likewise.
2360         (get_insn_group): Likewise.
2361         (count_num_restricted): Likewise.
2362         (fits_dispatch_window): Likewise.
2363         (add_insn_window): Likewise.
2364         (add_to_dispatch_window): Likewise.
2365         (debug_insn_dispatch_info_file): Likewise.
2366         * config/m32c/m32c-protos.h (m32c_output_compare): Likewise for
2367         first param.
2368         * config/m32c/m32c.c (m32c_compare_redundant): Likewise for param
2369         "cmp" and local "prev".
2370         (m32c_output_compare): Likewise for param "insn".
2371         * config/m32r/predicates.md (define_predicate "small_insn_p"): Add
2372         a checked cast to rtx_insn * on "op" after we know it's an INSN_P.
2373         (define_predicate "large_insn_p"): Likewise.
2374         * config/m68k/m68k-protos.h (m68k_sched_attr_size): Strengthen
2375         param from rtx to rtx_insn *.
2376         (attr_op_mem m68k_sched_attr_op_mem): Likewise.
2377         * config/m68k/m68k.c (sched_get_attr_size_int): Likewise.
2378         (m68k_sched_attr_size): Likewise.
2379         (sched_get_opxy_mem_type): Likewise for param "insn".
2380         (m68k_sched_attr_op_mem): Likewise.
2381         (sched_mem_operand_p): Likewise.
2382         * config/mep/mep-protos.h (mep_multi_slot): Likewise for param.
2383         * config/mep/mep.c (mep_multi_slot): Likewise.
2384         * config/mips/mips-protos.h (mips_output_sync_loop): Likewise for
2385         first param.
2386         (mips_sync_loop_insns): Likewise.
2387         * config/mips/mips.c (mips_print_operand_punctuation): Use insn
2388         method of "final_sequence" for typesafety.
2389         (mips_process_sync_loop): Strengthen param "insn" from rtx to
2390         rtx_insn *.
2391         (mips_output_sync_loop): Likewise.
2392         (mips_sync_loop_insns): Likewise.
2393         (mips_74k_agen_init): Likewise.
2394         (mips_sched_init): Use NULL rather than NULL_RTX when working with
2395         insns.
2396         * config/nds32/nds32-fp-as-gp.c (nds32_symbol_load_store_p):
2397         Strengthen param "insn" from rtx to rtx_insn *.
2398         * config/nds32/nds32.c (nds32_target_alignment): Likewise for
2399         local "insn".
2400         * config/pa/pa-protos.h (pa_insn_refs_are_delayed): Likewise for
2401         param.
2402         * config/pa/pa.c (pa_output_function_epilogue): Likewise for local
2403         "insn".  Use method of rtx_sequence for typesafety.
2404         (branch_to_delay_slot_p): Strengthen param "insn" from rtx to
2405         rtx_insn *.
2406         (branch_needs_nop_p): Likewise.
2407         (use_skip_p): Likewise.
2408         (pa_insn_refs_are_delayed): Likewise.
2409         * config/rl78/rl78.c (rl78_propogate_register_origins): Likewise
2410         for locals "insn", "ninsn".
2411         * config/rs6000/rs6000.c (is_microcoded_insn): Likewise for param
2412         "insn".
2413         (is_cracked_insn): Likewise.
2414         (is_branch_slot_insn): Likewise.
2415         (is_nonpipeline_insn): Likewise.
2416         (insn_terminates_group_p): Likewise.
2417         (insn_must_be_first_in_group): Likewise.
2418         (insn_must_be_last_in_group): Likewise.
2419         (force_new_group): Likewise for param "next_insn".
2420         * config/s390/s390.c (s390_get_sched_attrmask): Likewise for param
2421         "insn".
2422         (s390_sched_score): Likewise.
2423         * config/sh/sh-protos.h (output_branch): Likewise for param 2.
2424         (rtx sfunc_uses_reg): Likewise for sole param.
2425         * config/sh/sh.c (sh_print_operand): Use insn method of
2426         final_sequence for typesafety.
2427         (output_branch): Strengthen param "insn" from rtx to rtx_insn *.
2428         Use insn method of final_sequence for typesafety.
2429         (sfunc_uses_reg): Strengthen param "insn" from rtx to rtx_insn *.
2430         * config/sparc/sparc-protos.h (eligible_for_call_delay): Likewise
2431         for param.
2432         (eligible_for_return_delay): Likewise.
2433         (eligible_for_sibcall_delay): Likewise.
2434         * config/sparc/sparc.c (eligible_for_call_delay): Likewise.
2435         (eligible_for_return_delay): Likewise.
2436         (eligible_for_sibcall_delay): Likewise.
2437         * config/stormy16/stormy16-protos.h
2438         (xstormy16_output_cbranch_hi): Likewise for final param.
2439         (xstormy16_output_cbranch_si): Likewise.
2440         * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi): LIkewise.
2441         (xstormy16_output_cbranch_si): Likewise.
2442         * config/v850/v850-protos.h (notice_update_cc): Likewise.
2443         * config/v850/v850.c (notice_update_cc): Likewise.
2444
2445         * final.c (get_attr_length_1): Strengthen param "insn" and param
2446         of "fallback_fn" from rtx to rtx_insn *, eliminating a checked cast.
2447         (get_attr_length): Strengthen param "insn" from rtx to rtx_insn *.
2448         (get_attr_min_length): Likewise.
2449         (shorten_branches): Likewise for signature of locals "length_fun"
2450         and "inner_length_fun".  Introduce local rtx_sequence * "seqn"
2451         from a checked cast and use its methods for clarity and to enable
2452         strengthening local "inner_insn" from rtx to rtx_insn *.
2453         * genattr.c (gen_attr): When writing out the prototypes of the
2454         various generated "get_attr_" functions, strengthen the params of
2455         the non-const functions from rtx to rtx_insn *.
2456         Similarly, strengthen the params of insn_default_length,
2457         insn_min_length, insn_variable_length_p, insn_current_length.
2458         (main): Similarly, strengthen the param of num_delay_slots,
2459         internal_dfa_insn_code, insn_default_latency, bypass_p,
2460         insn_latency, min_issue_delay, print_reservation,
2461         insn_has_dfa_reservation_p and of the "internal_dfa_insn_code" and
2462         "insn_default_latency" callbacks.  Rename hook_int_rtx_unreachable
2463         to hook_int_rtx_insn_unreachable.
2464         * genattrtab.c (write_attr_get): When writing out the generated
2465         "get_attr_" functions, strengthen the param "insn" from rtx to
2466         rtx_insn *, eliminating a checked cast.
2467         (make_automaton_attrs): When writing out prototypes of
2468         "internal_dfa_insn_code_", "insn_default_latency_" functions
2469         and the "internal_dfa_insn_code" and "insn_default_latency"
2470         callbacks, strengthen their params from rtx to rtx_insn *
2471         * genautomata.c (output_internal_insn_code_evaluation): When
2472         writing out code, add a checked cast from rtx to rtx_insn * when
2473         invoking DFA_INSN_CODE_FUNC_NAME aka dfa_insn_code.
2474         (output_dfa_insn_code_func): Strengthen param of generated
2475         function "dfa_insn_code_enlarge" from rtx to rtx_insn *.
2476         (output_trans_func): Likewise for generated function
2477         "state_transition".
2478         (output_internal_insn_latency_func): When writing out generated
2479         function "internal_insn_latency", rename params from "insn" and
2480         "insn2" to "insn_or_const0" and "insn2_or_const0".  Reintroduce
2481         locals "insn" and "insn2" as rtx_insn * with checked casts once
2482         we've proven that we're not dealing with const0_rtx.
2483         (output_insn_latency_func):  Strengthen param of generated
2484         function "insn_latency" from rtx to rtx_insn *.
2485         (output_print_reservation_func): Likewise for generated function
2486         "print_reservation".
2487         (output_insn_has_dfa_reservation_p): Likewise for generated
2488         function "insn_has_dfa_reservation_p".
2489         * hooks.c (hook_int_rtx_unreachable): Rename to...
2490         (hook_int_rtx_insn_unreachable): ...this, and strengthen param
2491         from rtx to rtx_insn *.
2492         * hooks.h (hook_int_rtx_unreachable): Likewise.
2493         (extern int hook_int_rtx_insn_unreachable): Likewise.
2494         * output.h (get_attr_length): Strengthen param from rtx to rtx_insn *.
2495         (get_attr_min_length): Likewise.
2496         * recog.c (get_enabled_alternatives): Likewise.
2497         * recog.h (alternative_mask get_enabled_alternatives): Likewise.
2498         * reorg.c (find_end_label): Introduce local rtx "pat" and
2499         strengthen local "insn" from rtx to rtx_insn *.
2500         (redundant_insn): Use insn method of "seq" rather than element for
2501         typesafety; strengthen local "control" from rtx to rtx_insn *.
2502         * resource.c (mark_referenced_resources): Add checked cast to
2503         rtx_insn * within INSN/JUMP_INSN case.
2504         (mark_set_resources): Likewise.
2505         * sel-sched.c (estimate_insn_cost): Strengthen param "insn" from
2506         rtx to rtx_insn *.
2507
2508 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
2509
2510         * config/rs6000/rs6000.c (rs6000_loop_align_max_skip): Strengthen
2511         param "label" from rtx to rtx_insn *.
2512         * config/rx/rx.c (rx_max_skip_for_label): Likewise for param "lab"
2513         and local "op".
2514         * doc/tm.texi (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Autogenerated changes.
2515         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Likewise.
2516         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
2517         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
2518         * final.c (default_label_align_after_barrier_max_skip): Strengthen
2519         param from rtx to rtx_insn *.
2520         (default_loop_align_max_skip): Likewise.
2521         (default_label_align_max_skip): Likewise.
2522         (default_jump_align_max_skip): Likewise.
2523         * target.def (label_align_after_barrier_max_skip): Likewise.
2524         (loop_align_max_skip): Likewise.
2525         (label_align_max_skip): Likewise.
2526         (jump_align_max_skip): Likewise.
2527         * targhooks.h (default_label_align_after_barrier_max_skip):
2528         Likewise.
2529         (default_loop_align_max_skip): Likewise.
2530         (default_label_align_max_skip): Likewise.
2531         (default_jump_align_max_skip): Likewise.
2532
2533 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
2534
2535         * config/arc/arc.c (arc_can_follow_jump): Strengthen both params
2536         from const_rtx to const rtx_insn *.  Update union members from rtx
2537         to rtx_insn *.
2538         * doc/tm.texi (TARGET_CAN_FOLLOW_JUMP): Autogenerated change.
2539         * hooks.c (hook_bool_const_rtx_const_rtx_true): Rename to...
2540         (hook_bool_const_rtx_insn_const_rtx_insn_true): ...this, and
2541         strengthen both params from const_rtx to const rtx_insn *.
2542         * hooks.h (hook_bool_const_rtx_const_rtx_true): Likewise.
2543         (hook_bool_const_rtx_insn_const_rtx_insn_true): Likewise.
2544         * reorg.c (follow_jumps): Strengthen param "jump" from rtx to
2545         rtx_insn *.
2546         * target.def (can_follow_jump): Strengthen both params from
2547         const_rtx to const rtx_insn *, and update default implementation
2548         from hook_bool_const_rtx_const_rtx_true to
2549         hook_bool_const_rtx_insn_const_rtx_insn_true.
2550
2551 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
2552
2553         * sched-deps.c (deps_start_bb): Strengthen param "head" and local
2554         "insn" from rtx to rtx_insn *.
2555         * sched-int.h (deps_start_bb): Likewise for 2nd param.
2556
2557 2014-09-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2558             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2559             Anna Tikhonova  <anna.tikhonova@intel.com>
2560             Ilya Tocar  <ilya.tocar@intel.com>
2561             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2562             Ilya Verbin  <ilya.verbin@intel.com>
2563             Kirill Yukhin  <kirill.yukhin@intel.com>
2564             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2565
2566         * config/i386/sse.md
2567         (define_insn "vcvtph2ps<mask_name>"): Add masking.
2568         (define_insn "*vcvtph2ps_load<mask_name>"): Ditto.
2569         (define_insn "vcvtph2ps256<mask_name>"): Ditto.
2570         (define_expand "vcvtps2ph_mask"): New.
2571         (define_insn "*vcvtps2ph<mask_name>"): Add masking.
2572         (define_insn "*vcvtps2ph_store<mask_name>"): Ditto.
2573         (define_insn "vcvtps2ph256<mask_name>"): Ditto.
2574
2575 2014-09-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2576             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2577             Anna Tikhonova  <anna.tikhonova@intel.com>
2578             Ilya Tocar  <ilya.tocar@intel.com>
2579             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2580             Ilya Verbin  <ilya.verbin@intel.com>
2581             Kirill Yukhin  <kirill.yukhin@intel.com>
2582             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2583
2584         * config/i386/sse.md (define_mode_iterator VI248_AVX512BW_AVX512VL):
2585         New.
2586         (define_mode_iterator VI24_AVX512BW_1): Ditto.
2587         (define_insn "<mask_codefor>ashr<mode>3<mask_name>"): Ditto.
2588         (define_insn "<mask_codefor>ashrv2di3<mask_name>"): Ditto.
2589         (define_insn "ashr<VI248_AVX512BW_AVX512VL:mode>3<mask_name>"): Enable
2590         also for TARGET_AVX512VL.
2591         (define_expand "ashrv2di3"): Update to enable TARGET_AVX512VL.
2592
2593 2014-09-15  Markus Trippelsdorf  <markus@trippelsdorf.de>
2594
2595         * doc/install.texi (Options specification): add
2596         --disable-libsanitizer item.
2597
2598 2014-09-14  James Clarke  <jrtc27@jrtc27.com>
2599             Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2600
2601         PR target/61407
2602         * config/darwin-c.c (version_as_macro): Added extra 0 for OS X 10.10
2603         and above.
2604         * config/darwin-driver.c (darwin_find_version_from_kernel): Removed
2605         kernel version check to avoid incrementing it after every major OS X
2606         release.
2607         (darwin_default_min_version): Avoid static memory buffer.
2608
2609 2014-09-13  Jan Hubicka  <hubicka@ucw.cz>
2610
2611         * tree.c (need_assembler_name_p): Store C++ type mangling only
2612         for aggregates.
2613
2614 2014-09-13  Marek Polacek  <polacek@redhat.com>
2615
2616         * tree.c (protected_set_expr_location): Don't check whether T is
2617         non-null here.
2618
2619 2014-09-12  DJ Delorie  <dj@redhat.com>
2620
2621         * config/msp430/msp430.md (extendhipsi2): Use 20-bit form of RLAM/RRAM.
2622         (extend_and_shift1_hipsi2): Likewise.
2623         (extend_and_shift2_hipsi2): Likewise.
2624
2625 2014-09-12  David Malcolm  <dmalcolm@redhat.com>
2626
2627         * config/alpha/alpha.c (alpha_ra_ever_killed): Replace NULL_RTX
2628         with NULL when dealing with an insn.
2629         * config/sh/sh.c (sh_reorg): Strengthen local "last_float_move"
2630         from rtx to rtx_insn *.
2631         * rtl.h (reg_set_between_p): Strengthen params 2 and 3 from
2632         const_rtx to const rtx_insn *.
2633         * rtlanal.c (reg_set_between_p): Likewise, removing a checked cast.
2634
2635 2014-09-12  Trevor Saunders  <tsaunders@mozilla.com>
2636
2637         * hash-table.h (gt_pch_nx): Don't call gt_pch_note_object within an
2638         assert.
2639
2640 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
2641
2642         * target.def (libgcc_floating_mode_supported_p): New hook.
2643         * targhooks.c (default_libgcc_floating_mode_supported_p): New
2644         function.
2645         * targhooks.h (default_libgcc_floating_mode_supported_p): Declare.
2646         * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE, LIBGCC2_HAS_XF_MODE)
2647         (LIBGCC2_HAS_TF_MODE): Remove.
2648         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): New @hook.
2649         * doc/tm.texi: Regenerate.
2650         * genmodes.c (emit_insn_modes_h): Define HAVE_%smode for each
2651         machine mode.
2652         * system.h (LIBGCC2_HAS_SF_MODE, LIBGCC2_HAS_DF_MODE)
2653         (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE): Poison.
2654         * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE): Remove.
2655         * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE): Remove.
2656         * config/i386/djgpp.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
2657         * config/i386/dragonfly.h (LIBGCC2_HAS_TF_MODE): Remove.
2658         * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE): Remove.
2659         * config/i386/gnu-user-common.h (LIBGCC2_HAS_TF_MODE): Remove.
2660         * config/i386/i386-interix.h (IX86_NO_LIBGCC_TFMODE): Define.
2661         * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p): New
2662         function.
2663         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
2664         * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
2665         * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
2666         * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
2667         * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
2668         * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
2669         * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
2670         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE): Remove.
2671         * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Define.
2672         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Remove.
2673         * config/i386/vx-common.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
2674         * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Define.
2675         * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Define.
2676         * config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE):
2677         Remove.
2678         * config/ia64/ia64.c (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P):
2679         New macro.
2680         (ia64_libgcc_floating_mode_supported_p): New function.
2681         * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): Remove.
2682         * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
2683         (IA64_NO_LIBGCC_TFMODE): Define.
2684         * config/msp430/msp430.h (LIBGCC2_HAS_DF_MODE): Remove.
2685         * config/pdp11/pdp11.c (TARGET_SCALAR_MODE_SUPPORTED_P): New
2686         macro.
2687         (pdp11_scalar_mode_supported_p): New function.
2688         * config/rl78/rl78.h (LIBGCC2_HAS_DF_MODE): Remove.
2689         * config/rx/rx.h (LIBGCC2_HAS_DF_MODE): Remove.
2690
2691 2014-09-12  Richard Biener  <rguenther@suse.de>
2692
2693         PR middle-end/63237
2694         * gimple-fold.c (get_maxval_strlen): Gimplify string length.
2695
2696 2014-09-12  Marc Glisse  <marc.glisse@inria.fr>
2697
2698         * tree.c (integer_each_onep): New function.
2699         * tree.h (integer_each_onep): Declare it.
2700         * fold-const.c (fold_binary_loc): Use it for ~A + 1 to -A and
2701         -A - 1 to ~A.  Disable (X & 1) ^ 1, (X ^ 1) & 1 and ~X & 1 to
2702         (X & 1) == 0 for vector and complex.
2703
2704 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
2705
2706         * gcc/config/aarch64/aarch64.c (cortexa57_regmove_cost): New cost table
2707         for A57.
2708         (cortexa53_regmove_cost): New cost table for A53.  Increase GP2FP/FP2GP
2709         cost to spilling from integer to FP registers.
2710
2711 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
2712
2713         * config/aarch64/aarch64.c (aarch64_register_move_cost): Fix Q register
2714         move handling.
2715         (generic_regmove_cost): Undo raised FP2FP move cost as Q register moves
2716         are now handled correctly.
2717
2718 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
2719
2720         * config/aarch64/aarch64.c (aarch64_register_move_cost): Add cost
2721         handling of CALLER_SAVE_REGS and POINTER_REGS.
2722
2723 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
2724
2725         * gcc/ree.c (combine_reaching_defs): Ensure inserted copy don't change
2726         the number of hard registers.
2727
2728 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2729             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2730             Anna Tikhonova  <anna.tikhonova@intel.com>
2731             Ilya Tocar  <ilya.tocar@intel.com>
2732             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2733             Ilya Verbin  <ilya.verbin@intel.com>
2734             Kirill Yukhin  <kirill.yukhin@intel.com>
2735             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2736
2737         * config/i386/sse.md
2738         (define_mode_iterator VI48_AVX512VL): New.
2739         (define_expand "<avx512>_vternlog<mode>_maskz"): Rename from
2740         "avx512f_vternlog<mode>_maskz" and update mode iterator.
2741         (define_insn "<avx512>_vternlog<mode><sd_maskz_name>"): Rename
2742         from "avx512f_vternlog<mode><sd_maskz_name>" and update mode iterator.
2743         (define_insn "<avx512>_vternlog<mode>_mask"): Rename from
2744         "avx512f_vternlog<mode>_mask" and update mode iterator.
2745         (define_insn "<mask_codefor><avx512>_align<mode><mask_name>"): Rename
2746         from "<mask_codefor>avx512f_align<mode><mask_name>" and update mode
2747         iterator.
2748         (define_insn "<avx512>_<rotate>v<mode><mask_name>"): Rename from
2749         "avx512f_<rotate>v<mode><mask_name>" and update mode iterator.
2750         (define_insn "<avx512>_<rotate><mode><mask_name>"): Rename from
2751         "avx512f_<rotate><mode><mask_name>" and update mode iterator.
2752         (define_insn "clz<mode>2<mask_name>"): Use VI48_AVX512VL mode iterator.
2753         (define_insn "<mask_codefor>conflict<mode><mask_name>"): Ditto.
2754
2755 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2756             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2757             Anna Tikhonova  <anna.tikhonova@intel.com>
2758             Ilya Tocar  <ilya.tocar@intel.com>
2759             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2760             Ilya Verbin  <ilya.verbin@intel.com>
2761             Kirill Yukhin  <kirill.yukhin@intel.com>
2762             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2763
2764         * config/i386/sse.md (VI128_256): Delete.
2765         (define_mode_iterator VI124_256): New.
2766         (define_mode_iterator VI124_256_AVX512F_AVX512BW): Ditto.
2767         (define_expand "<code><mode>3<mask_name><round_name>"): Delete.
2768         (define_expand "<code><VI124_256_AVX512F_AVX512BW:mode>3"): New.
2769         (define_insn "*avx2_<code><VI124_256:mode>3"): Rename from
2770         "*avx2_<code><mode>3<mask_name><round_name>" and update mode iterator.
2771         (define_expand "<code><VI48_AVX512VL:mode>3_mask"): New.
2772         (define_insn "*avx512bw_<code><VI48_AVX512VL:mode>3<mask_name>"): Ditto.
2773         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Update mode
2774         iterator.
2775         (define_expand "<code><VI8_AVX2:mode>3"): Update pettern generation
2776         in presence of AVX-512.
2777
2778 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2779             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2780             Anna Tikhonova  <anna.tikhonova@intel.com>
2781             Ilya Tocar  <ilya.tocar@intel.com>
2782             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2783             Ilya Verbin  <ilya.verbin@intel.com>
2784             Kirill Yukhin  <kirill.yukhin@intel.com>
2785             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2786
2787         * config/i386/sse.md
2788         (define_expand "<avx512>_gathersi<mode>"): Rename from
2789         "avx512f_gathersi<mode>".
2790         (define_insn "*avx512f_gathersi<mode>"): Use VI48F.
2791         (define_insn "*avx512f_gathersi<mode>_2"): Ditto.
2792         (define_expand "<avx512>_gatherdi<mode>"): Rename from
2793         "avx512f_gatherdi<mode>".
2794         (define_insn "*avx512f_gatherdi<mode>"): Use VI48F.
2795         (define_insn "*avx512f_gatherdi<mode>_2"): Use VI48F, add 128/256-bit
2796         wide versions.
2797         (define_expand "<avx512>_scattersi<mode>"): Rename from
2798         "avx512f_scattersi<mode>".
2799         (define_insn "*avx512f_scattersi<mode>"): Use VI48F.
2800         (define_expand "<avx512>_scatterdi<mode>"): Rename from
2801         "avx512f_scatterdi<mode>".
2802         (define_insn "*avx512f_scatterdi<mode>"): Use VI48F.
2803
2804 2014-09-12  Richard Sandiford  <richard.sandiford@arm.com>
2805
2806         * ira.h (ira_finish_once): Delete.
2807         * ira-int.h (target_ira_int::~target_ira_int): Declare.
2808         (target_ira_int::free_ira_costs): Likewise.
2809         (target_ira_int::free_register_move_costs): Likewise.
2810         (ira_finish_costs_once): Delete.
2811         * ira.c (free_register_move_costs): Replace with...
2812         (target_ira_int::free_register_move_costs): ...this new function.
2813         (target_ira_int::~target_ira_int): Define.
2814         (ira_init): Call free_register_move_costs as a member function rather
2815         than a global function.
2816         (ira_finish_once): Delete.
2817         * ira-costs.c (free_ira_costs): Replace with...
2818         (target_ira_int::free_ira_costs): ...this new function.
2819         (ira_init_costs): Call free_ira_costs as a member function rather
2820         than a global function.
2821         (ira_finish_costs_once): Delete.
2822         * target-globals.c (target_globals::~target_globals): Call the
2823         target_ira_int destructor.
2824         * toplev.c: Include lra.h.
2825         (finalize): Call lra_finish_once rather than ira_finish_once.
2826
2827 2014-09-11  Jan Hubicka  <hubicka@ucw.cz>
2828
2829         * common.opt (flto-odr-type-merging): New flag.
2830         * ipa-deivrt.c (hash_type_name): Use ODR names for hasing if availale.
2831         (types_same_for_odr): Likewise.
2832         (odr_subtypes_equivalent_p): Likewise.
2833         (add_type_duplicate): Do not walk type variants.
2834         (register_odr_type): New function.
2835         * ipa-utils.h (register_odr_type): Declare.
2836         (odr_type_p): New function.
2837         * langhooks.c (lhd_set_decl_assembler_name): Do not compute
2838         TYPE_DECLs
2839         * doc/invoke.texi (-flto-odr-type-merging): Document.
2840         * tree.c (need_assembler_name_p): Compute ODR names when asked
2841         for it.
2842         * tree.h (DECL_ASSEMBLER_NAME): Update comment.
2843
2844 2014-09-11  H.J. Lu  <hongjiu.lu@intel.com>
2845
2846         PR target/63228
2847         * config/i386/i386.c (ix86_option_override_internal): Also turn
2848         off OPTION_MASK_ABI_X32 for -m16.
2849
2850 2014-09-11  Segher Boessenkool  <segher@kernel.crashing.org>
2851
2852         * config/rs6000/rs6000.md (rs6000_mftb_<mode>): Use mode iterator
2853         GPR instead of P.
2854
2855 2014-09-11  Marc Glisse  <marc.glisse@inria.fr>
2856
2857         PR target/58757
2858         * ginclude/float.h (FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
2859         Directly forward to __*_DENORM_MIN__.
2860
2861 2014-09-11  David Malcolm  <dmalcolm@redhat.com>
2862
2863         * rtl.h (LABEL_REF_LABEL): New macro.
2864
2865         * alias.c (rtx_equal_for_memref_p): Use LABEL_REF_LABEL in place
2866         of XEXP (, 0), where we know that we have a LABEL_REF.
2867         * cfgbuild.c (make_edges): Likewise.
2868         (purge_dead_tablejump_edges): Likewise.
2869         * cfgexpand.c (convert_debug_memory_address): Likewise.
2870         * cfgrtl.c (patch_jump_insn): Likewise.
2871         * combine.c (distribute_notes): Likewise.
2872         * cse.c (hash_rtx_cb): Likewise.
2873         (exp_equiv_p): Likewise.
2874         (fold_rtx): Likewise.
2875         (check_for_label_ref): Likewise.
2876         * cselib.c (rtx_equal_for_cselib_1): Likewise.
2877         (cselib_hash_rtx): Likewise.
2878         * emit-rtl.c (mark_label_nuses): Likewise.
2879         * explow.c (convert_memory_address_addr_space): Likewise.
2880         * final.c (output_asm_label): Likewise.
2881         (output_addr_const): Likewise.
2882         * gcse.c (add_label_notes): Likewise.
2883         * genconfig.c (walk_insn_part): Likewise.
2884         * genrecog.c (validate_pattern): Likewise.
2885         * ifcvt.c (cond_exec_get_condition): Likewise.
2886         (noce_emit_store_flag): Likewise.
2887         (noce_get_alt_condition): Likewise.
2888         (noce_get_condition): Likewise.
2889         * jump.c (maybe_propagate_label_ref): Likewise.
2890         (mark_jump_label_1): Likewise.
2891         (redirect_exp_1): Likewise.
2892         (rtx_renumbered_equal_p): Likewise.
2893         * lra-constraints.c (operands_match_p): Likewise.
2894         * reload.c (operands_match_p): Likewise.
2895         (find_reloads): Likewise.
2896         * reload1.c (set_label_offsets): Likewise.
2897         * reorg.c (get_branch_condition): Likewise.
2898         * rtl.c (rtx_equal_p_cb): Likewise.
2899         (rtx_equal_p): Likewise.
2900         * rtlanal.c (reg_mentioned_p): Likewise.
2901         (rtx_referenced_p): Likewise.
2902         (get_condition): Likewise.
2903         * sched-vis.c (print_value): Likewise.
2904         * varasm.c (const_hash_1): Likewise.
2905         (compare_constant): Likewise.
2906         (const_rtx_hash_1): Likewise.
2907         (output_constant_pool_1): Likewise.
2908
2909 2014-09-11  Segher Boessenkool  <segher@kernel.crashing.org>
2910
2911         * config/rs6000/htm.md (tabort, tabortdc, tabortdci, tabortwc,
2912         tabortwci, tbegin, tcheck, tend, trechkpt, treclaim, tsr): Use xor
2913         instead of minus.
2914         * config/rs6000/vector.md (cr6_test_for_zero_reverse,
2915         cr6_test_for_lt_reverse): Ditto.
2916
2917 2014-09-11  Paolo Carlini  <paolo.carlini@oracle.com>
2918
2919         PR c++/61489
2920         * doc/invoke.texi ([-Wmissing-field-initializers]): Update.
2921
2922 2014-09-11  Alan Lawrence  <alan.lawrence@arm.com>
2923
2924         * config/aarch64/aarch64-builtins.c (aarch64_types_unop_su_qualifiers,
2925         TYPES_REINTERP_SU, aarch64_types_unop_sp_qualifiers, TYPE_REINTERP_SP,
2926         aarch64_types_unop_us_qualifiers, TYPES_REINTERP_US,
2927         aarch64_types_unop_ps_qualifiers, TYPES_REINTERP_PS, BUILTIN_VD):
2928         Delete.
2929
2930         (aarch64_fold_builtin): Remove all reinterpret cases.
2931
2932         * config/aarch64/aarch64-protos.h (aarch64_simd_reinterpret): Delete.
2933
2934         * config/aarch64/aarch64-simd-builtins.def (reinterpret*) : Delete.
2935
2936         * config/aarch64/aarch64-simd.md (aarch64_reinterpretv8qi<mode>,
2937         aarch64_reinterpretv4hi<mode>, aarch64_reinterpretv2si<mode>,
2938         aarch64_reinterpretv2sf<mode>, aarch64_reinterpretdi<mode>,
2939         aarch64_reinterpretv1df<mode>, aarch64_reinterpretv16qi<mode>,
2940         aarch64_reinterpretv8hi<mode>, aarch64_reinterpretv4si<mode>,
2941         aarch64_reinterpretv4sf<mode>, aarch64_reinterpretv2di<mode>,
2942         aarch64_reinterpretv2df<mode>): Delete.
2943
2944         * config/aarch64/aarch64.c (aarch64_simd_reinterpret): Delete.
2945
2946         * config/aarch64/arm_neon.h (vreinterpret_p8_f64,
2947         vreinterpret_p16_f64, vreinterpret_f32_f64, vreinterpret_f64_f32,
2948         vreinterpret_f64_p8, vreinterpret_f64_p16, vreinterpret_f64_s8,
2949         vreinterpret_f64_s16, vreinterpret_f64_s32, vreinterpret_f64_u8,
2950         vreinterpret_f64_u16, vreinterpret_f64_u32, vreinterpret_s64_f64,
2951         vreinterpret_u64_f64, vreinterpret_s8_f64, vreinterpret_s16_f64,
2952         vreinterpret_s32_f64, vreinterpret_u8_f64, vreinterpret_u16_f64,
2953         vreinterpret_u32_f64): Use cast.
2954
2955         * config/aarch64/iterators.md (VD_RE): Delete.
2956
2957 2014-09-11  Alan Lawrence  <alan.lawrence@arm.com>
2958
2959         * config/aarch64/arm_neon.h (aarch64_vset_lane_any): New (*2).
2960         (vset_lane_f32, vset_lane_f64, vset_lane_p8, vset_lane_p16,
2961         vset_lane_s8, vset_lane_s16, vset_lane_s32, vset_lane_s64,
2962         vset_lane_u8, vset_lane_u16, vset_lane_u32, vset_lane_u64,
2963         vsetq_lane_f32, vsetq_lane_f64, vsetq_lane_p8, vsetq_lane_p16,
2964         vsetq_lane_s8, vsetq_lane_s16, vsetq_lane_s32, vsetq_lane_s64,
2965         vsetq_lane_u8, vsetq_lane_u16, vsetq_lane_u32, vsetq_lane_u64):
2966         Replace inline assembler with __aarch64_vset_lane_any.
2967
2968 2014-09-11  James Greenhalgh  <james.greenhalgh@arm.com>
2969
2970         * config/aarch64/arm_neon.h (vmull_high_lane_s16): Fix argument
2971         types.
2972         (vmull_high_lane_s32): Likewise.
2973         (vmull_high_lane_u16): Likewise.
2974         (vmull_high_lane_u32): Likewise.
2975
2976 2014-09-11  Jason Merrill  <jason@redhat.com>
2977
2978         PR c++/58678
2979         * ipa-devirt.c (ipa_devirt): Don't check DECL_COMDAT.
2980
2981 2014-09-11  Georg-Johann Lay  <avr@gjlay.de>
2982
2983         PR target/63223
2984         * config/avr/avr.md (*tablejump.3byte-pc): New insn.
2985         (*tablejump): Restrict to !AVR_HAVE_EIJMP_EICALL.  Add void clobber.
2986         (casesi): Expand to *tablejump.3byte-pc if AVR_HAVE_EIJMP_EICALL.
2987
2988 2014-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2989             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2990             Anna Tikhonova  <anna.tikhonova@intel.com>
2991             Ilya Tocar  <ilya.tocar@intel.com>
2992             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2993             Ilya Verbin  <ilya.verbin@intel.com>
2994             Kirill Yukhin  <kirill.yukhin@intel.com>
2995             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2996
2997         * config/i386/sse.md
2998         (define_expand "<avx512>_vpermi2var<VI48F:mode>3_maskz"): Rename from
2999         "avx512f_vpermi2var<mode>3_maskz" and update mode iterator.
3000         (define_expand "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_maskz"):
3001         New.
3002         (define_insn "<avx512>_vpermi2var<VI48F:mode>3<sd_maskz_name>"): Rename
3003         from "avx512f_vpermi2var<mode>3<sd_maskz_name>" and update mode
3004         iterator.
3005         (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
3006         New.
3007         (define_insn "<avx512>_vpermi2var<VI48F:mode>3_mask"): Rename from
3008         "avx512f_vpermi2var<mode>3_mask" and update mode iterator.
3009         (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_mask"): New.
3010         (define_expand "<avx512>_vpermt2var<VI48F:mode>3_maskz"): Rename from
3011         "avx512f_vpermt2var<mode>3_maskz" and update mode iterator.
3012         (define_expand "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_maskz"): New.
3013         (define_insn "<avx512>_vpermt2var<VI48F:mode>3<sd_maskz_name>"): Rename
3014         from "avx512f_vpermt2var<mode>3<sd_maskz_name>" and update mode
3015         iterator.
3016         (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
3017         New.
3018         (define_insn "<avx512>_vpermt2var<VI48F:mode>3_mask"): Rename from
3019         "avx512f_vpermt2var<mode>3_mask" and update mode iterator.
3020         (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_mask"): New.
3021
3022 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
3023
3024         * varpool.c (varpool_node::ctor_useable_for_folding_p): Do not try
3025         to access removed nodes.
3026
3027 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
3028
3029         PR tree-optimization/63186
3030         * ipa-split.c (test_nonssa_use): Skip nonforced labels.
3031         (mark_nonssa_use): Likewise.
3032         (verify_non_ssa_vars): Verify all header blocks for label
3033         definitions.
3034
3035 2014-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3036             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3037             Anna Tikhonova  <anna.tikhonova@intel.com>
3038             Ilya Tocar  <ilya.tocar@intel.com>
3039             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3040             Ilya Verbin  <ilya.verbin@intel.com>
3041             Kirill Yukhin  <kirill.yukhin@intel.com>
3042             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3043
3044         * config/i386/sse.md
3045         (define_mode_attr avx2_avx512): Rename from avx2_avx512bw.
3046         (define_mode_iterator VI48F_256_512): Extend to AVX-512VL.
3047         (define_insn "<avx2_avx512>_permvar<mode><mask_name>"): Rename from
3048         "<avx2_avx512f>_permvar<mode><mask_name>".
3049         (define_insn "<avx512>_permvar<mode><mask_name>"): New.
3050         (define_insn "<avx2_avx512>_ashrv<VI48_AVX512F_AVX512VL:mode><mask_name>"):
3051         Rename from "<avx2_avx512f>_ashrv<mode><mask_name>".
3052         (define_insn "<avx2_avx512>_ashrv<VI2_AVX512VL:mode><mask_name>"):
3053         Ditto.
3054         (define_insn "<avx2_avx512>_<shift_insn>v<VI48_AVX512F:mode><mask_name>"):
3055         Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
3056         (define_insn "<avx2_avx512>_<shift_insn>v<VI2_AVX512VL:mode><mask_name>"):
3057         Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
3058
3059 2014-09-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
3060
3061         * config/rs6000/vsx.md (vsx_fmav4sf4): Use correct constraints for
3062         V2DF, V4SF, DF, and DI modes.
3063         (vsx_fmav2df2): Likewise.
3064         (vsx_float_fix_<mode>2): Likewise.
3065         (vsx_reduc_<VEC_reduc_name>_v2df_scalar): Likewise.
3066
3067 2014-09-10  Xinliang David Li  <davidxl@google.com>
3068
3069         PR target/63209
3070         * config/arm/arm.md (movcond_addsi): Handle case where source
3071         and target operands are the same.
3072
3073 2014-09-10  David Malcolm  <dmalcolm@redhat.com>
3074
3075         * final.c (this_is_asm_operands): Strengthen this variable from
3076         rtx to const rtx_insn *.
3077         * output.h (this_is_asm_operands): Likewise.
3078         * rtl-error.c (location_for_asm): Strengthen param "insn" from
3079         const_rtx to const rtx_insn *.
3080         (diagnostic_for_asm): Likewise.
3081         * rtl-error.h (error_for_asm): Likewise.
3082         (warning_for_asm): Likewise.
3083
3084 2014-09-10  David Malcolm  <dmalcolm@redhat.com>
3085
3086         * genextract.c (print_header): When writing out insn_extract to
3087         insn-extract.c, strengthen the param "insn" from rtx to rtx_insn *.
3088         * recog.h (insn_extract): Strengthen the param from rtx to
3089         rtx_insn *.
3090
3091 2014-09-10  Mike Stump  <mikestump@comcast.net>
3092
3093         * doc/install.texi (Prerequisites): Note Tcl 8.6 bug fixed in
3094         8.6.1.
3095
3096 2014-09-10  Martin Jambor  <mjambor@suse.cz>
3097
3098         * cgraphunit.c (expand_thunk): If not expanding, set analyzed flag.
3099         (analyze): Do not set analyze flag if expand_thunk returns false;.
3100         (create_wrapper): Likewise.
3101         * cgraphclones.c (duplicate_thunk_for_node): Likewise.
3102
3103 2014-09-10  Martin Jambor  <mjambor@suse.cz>
3104
3105         PR ipa/61654
3106         * cgraphclones.c (duplicate_thunk_for_node): Copy arguments of the
3107         new decl properly.  Analyze the new thunk if it is expanded.
3108
3109 2014-09-10  Andreas Schwab  <schwab@suse.de>
3110
3111         * coretypes.h (struct _dont_use_rtx_insn_here_, rtx_insn)
3112         [USED_FOR_TARGET]: Define.
3113
3114 2014-09-10  Matthew Fortune  <matthew.fortune@imgtec.com>
3115
3116         * config/mips/mips.c (mips_secondary_reload_class): Handle
3117         regno < 0 case.
3118
3119 2014-09-10  Robert Suchanek   <robert.suchanek@imgtec.com>
3120
3121         * lra-lives.c (process_bb_lives): Replace assignment with bitwise OR
3122         assignment.
3123
3124 2014-09-10  Jakub Jelinek  <jakub@redhat.com>
3125
3126         * flag-types.h (enum sanitize_code): Add SANITIZE_NONNULL_ATTRIBUTE
3127         and SANITIZE_RETURNS_NONNULL_ATTRIBUTE, or them into SANITIZE_UNDEFINED.
3128         * opts.c (common_handle_option): Handle SANITIZE_NONNULL_ATTRIBUTE and
3129         SANITIZE_RETURNS_NONNULL_ATTRIBUTE and disable
3130         flag_delete_null_pointer_checks for them.
3131         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
3132         BUILT_IN_UBSAN_HANDLE_NONNULL_ARG_ABORT,
3133         BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN,
3134         BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_ABORT): New.
3135         * ubsan.c (instrument_bool_enum_load): Set *gsi back to
3136         stmt's iterator.
3137         (instrument_nonnull_arg, instrument_nonnull_return): New functions.
3138         (pass_ubsan::gate): Return true even for SANITIZE_NONNULL_ATTRIBUTE
3139         or SANITIZE_RETURNS_NONNULL_ATTRIBUTE.
3140         (pass_ubsan::execute): Call instrument_nonnull_{arg,return}.
3141         * doc/invoke.texi (-fsanitize=nonnull-attribute,
3142         -fsanitize=returns-nonnull-attribute): Document.
3143
3144         * ubsan.h (struct ubsan_mismatch_data): Removed.
3145         (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
3146         * ubsan.c (ubsan_source_location): For unknown locations,
3147         pass { NULL, 0, 0 } instead of { "<unknown>", x, y }.
3148         (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
3149         Allow more than one location and arbitrary extra arguments passed
3150         in ... instead of through MISMATCH pointer.
3151         (ubsan_instrument_unreachable, ubsan_expand_bounds_ifn,
3152         ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
3153         instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
3154         callers.
3155
3156 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3157             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3158             Anna Tikhonova  <anna.tikhonova@intel.com>
3159             Ilya Tocar  <ilya.tocar@intel.com>
3160             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3161             Ilya Verbin  <ilya.verbin@intel.com>
3162             Kirill Yukhin  <kirill.yukhin@intel.com>
3163             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3164
3165         * config/i386/sse.md
3166         (define_mode_iterator VI48F): New.
3167         (define_insn "<avx512>_compress<mode>_mask"): Rename from
3168         "avx512f_compress<mode>_mask" and update mode iterator.
3169         (define_insn "<avx512>_compressstore<mode>_mask"): Rename from
3170         "avx512f_compressstore<mode>_mask" and update mode iterator.
3171         (define_expand "<avx512>_expand<mode>_maskz"): Rename from
3172         "avx512f_expand<mode>_maskz" and update mode iterator.
3173         (define_insn "<avx512>_expand<mode>_mask"): Rename from
3174         "avx512f_expand<mode>_mask" and update mode iterator.
3175
3176 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3177             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3178             Anna Tikhonova  <anna.tikhonova@intel.com>
3179             Ilya Tocar  <ilya.tocar@intel.com>
3180             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3181             Ilya Verbin  <ilya.verbin@intel.com>
3182             Kirill Yukhin  <kirill.yukhin@intel.com>
3183             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3184
3185         * config/i386/i386.c
3186         (ix86_expand_args_builtin): Handle avx512dq_rangepv8df_mask_round,
3187         avx512dq_rangepv16sf_mask_round, avx512dq_rangepv4df_mask,
3188         avx512dq_rangepv8sf_mask, avx512dq_rangepv2df_mask,
3189         avx512dq_rangepv4sf_mask.
3190         * config/i386/sse.md
3191         (define_c_enum "unspec"): Add UNSPEC_REDUCE, UNSPEC_FPCLASS,
3192         UNSPEC_RANGE.
3193         (define_insn "<mask_codefor>reducep<mode><mask_name>"): New.
3194         (define_insn "reduces<mode>"): Ditto.
3195         (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
3196         Ditto.
3197         (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Ditto.
3198         (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Ditto.
3199         (define_insn "avx512dq_vmfpclass<mode>"): Ditto..
3200
3201 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3202             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3203             Anna Tikhonova  <anna.tikhonova@intel.com>
3204             Ilya Tocar  <ilya.tocar@intel.com>
3205             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3206             Ilya Verbin  <ilya.verbin@intel.com>
3207             Kirill Yukhin  <kirill.yukhin@intel.com>
3208             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3209
3210         * config/i386/i386.c
3211         (avx512f_vgetmantv2df_round): Rename from "avx512f_getmantv2df_round".
3212         (avx512f_vgetmantv4sf_round): Rename from "avx512f_vgetmantv4sf_round".
3213         (ix86_expand_args_builtin): Handle avx512vl_getmantv8sf_mask,
3214         avx512vl_getmantv4df_mask, avx512vl_getmantv4sf_mask,
3215         avx512vl_getmantv2df_mask.
3216         (ix86_expand_round_builtin): Handle avx512f_vgetmantv2df_round,
3217         avx512f_vgetmantv4sf_round.
3218         * config/i386/sse.md
3219         (define_insn "<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask"):
3220         Rename from "avx512f_storeu<ssemodesuffix>512_mask" and update
3221         mode iterator.
3222         (define_insn "<mask_codefor>rcp14<mode><mask_name>"): Use VF_AVX512VL.
3223         (define_insn "<mask_codefor>rsqrt14<mode><mask_name>"): Ditto.
3224         (define_insn "<avx512>_scalef<mode><mask_name><round_name>"): Rename
3225         from "avx512f_scalef<mode><mask_name><round_name>" and update mode
3226         iterator..
3227         (define_insn "<avx512>_getexp<mode><mask_name><round_saeonly_name>"):
3228         Rename from "avx512f_getexp<mode><mask_name><round_saeonly_name>" and
3229         update mode iterator.
3230         (define_expand
3231         "<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>"): Rename from
3232         "avx512f_fixupimm<mode>_maskz<round_saeonly_expand_name>" and update
3233         mode iterator.
3234         (define_insn
3235         "<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>"): Rename
3236         from "avx512f_fixupimm<mode><sd_maskz_name><round_saeonly_name>" and
3237         update mode iterator.
3238         (define_insn "<avx512>_fixupimm<mode>_mask<round_saeonly_name>"): Rename
3239         from "avx512f_fixupimm<mode>_mask<round_saeonly_name>" and update mode
3240         iterator..
3241         (define_insn
3242         "<avx512>_rndscale<mode><mask_name><round_saeonly_name>"): rename from
3243         "avx512f_rndscale<mode><mask_name><round_saeonly_name>" and update
3244         mode iterator..
3245         (define_insn "<avx512>_getmant<mode><mask_name><round_saeonly_name>"):
3246         Rename from "avx512f_getmant<mode><mask_name><round_saeonly_name>" and
3247         update mode iterator.
3248         (define_insn "avx512f_vgetmant<mode><round_saeonly_name>"): Rename from
3249         "avx512f_getmant<mode><round_saeonly_name>".
3250
3251 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
3252
3253         PR ipa/63166
3254         * ipa-prop.c (compute_known_type_jump_func): Fix conditional.
3255
3256 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3257             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3258             Anna Tikhonova  <anna.tikhonova@intel.com>
3259             Ilya Tocar  <ilya.tocar@intel.com>
3260             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3261             Ilya Verbin  <ilya.verbin@intel.com>
3262             Kirill Yukhin  <kirill.yukhin@intel.com>
3263             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3264
3265         * config/i386/sse.md (define_mode_iterator VF_AVX512VL): New.
3266         (define_mode_iterator FMAMODEM): Allow 128/256bit EVEX version.
3267         (define_mode_iterator FMAMODE_AVX512): New.
3268         (define_mode_iterator FMAMODE): Remove conditions.
3269         (define_expand "fma4i_fmadd_<mode>"): Use FMAMODE_AVX512 mode iterator.
3270         (define_expand "<avx512>_fmadd_<mode>_maskz<round_expand_name>"): Rename
3271         from "<avx512>_fmadd_<mode>_maskz<round_expand_name>" and use VF_AVX512VL
3272         mode iterator.
3273         (define_mode_iterator FMAMODE_NOVF512): Remove.
3274         (define_insn "*fma_fmadd_<mode>"): Rename from
3275         "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>" and use
3276         FMAMODE mode iterator.
3277         (define_mode_iterator VF_SF_AVX512VL): New.
3278         (define_insn "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>"):
3279         Use VF_SF_AVX512VL mode iterator.
3280         (define_insn "<avx512>_fmadd_<mode>_mask<round_name>"): Rename from
3281         "avx512f_fmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
3282         iterator.
3283         (define_insn "<avx512>_fmadd_<mode>_mask3<round_name>"): Rename from
3284         "avx512f_fmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
3285         iterator.
3286         (define_insn "*fma_fmsub_<mode>"): Rename from
3287         "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>" and use
3288         FMAMODE mode iterator.
3289         (define_insn "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>"):
3290         Use VF_SF_AVX512VL mode iterator.
3291         (define_insn "<avx512>_fmsub_<mode>_mask<round_name>"): Rename from
3292         "avx512f_fmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
3293         iterator.
3294         (define_insn "<avx512>_fmsub_<mode>_mask3<round_name>"): Rename from
3295         "avx512f_fmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
3296         iterator.
3297         (define_insn "*fma_fnmadd_<mode>"): Rename from
3298         "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>" and
3299         use FMAMODE mode iterator.
3300         (define_insn "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>"):
3301         Use VF_SF_AVX512VL mode iterator.
3302         (define_insn "<avx512>_fnmadd_<mode>_mask<round_name>"): Rename from
3303         "avx512f_fnmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
3304         iterator.
3305         (define_insn "<avx512>_fnmadd_<mode>_mask3<round_name>"): Rename from
3306         "avx512f_fnmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
3307         iterator.
3308         (define_insn "*fma_fnmsub_<mode>"): Rename from
3309         "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>" and use
3310         FMAMODE mode iterator.
3311         (define_insn "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>"):
3312         Use VF_SF_AVX512VL mode iterator.
3313         (define_insn "<avx512>_fnmsub_<mode>_mask<round_name>"): Rename from
3314         "avx512f_fnmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
3315         iterator.
3316         (define_insn "<avx512>_fnmsub_<mode>_mask3<round_name>"): Rename from
3317         "avx512f_fnmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
3318         iterator.
3319         (define_expand "<avx512>_fmaddsub_<mode>_maskz<round_expand_name>"):
3320         Rename from "avx512f_fmaddsub_<mode>_maskz<round_expand_name>" and
3321         use VF_AVX512VL mode iterator.
3322         (define_insn "*fma_fmaddsub_<mode>"): Rename from
3323         "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>" and
3324         remove subst usage.
3325         (define_insn "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>"):
3326         Use VF_SF_AVX512VL mode iterator.
3327         (define_insn "<avx512>_fmaddsub_<mode>_mask<round_name>"): Rename from
3328         "avx512f_fmaddsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
3329         iterator.
3330         (define_insn "<avx512>_fmaddsub_<mode>_mask3<round_name>"): Rename from
3331         "avx512f_fmaddsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
3332         iterator.
3333         (define_insn "*fma_fmsubadd_<mode>"): Rename from
3334         "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>" and
3335         remove usage of subst.
3336         (define_insn "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>"):
3337         Use VF_SF_AVX512VL mode iterator.
3338         (define_insn "<avx512>_fmsubadd_<mode>_mask<round_name>"): Rename from
3339         "avx512f_fmsubadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
3340         iterator.
3341         (define_insn "<avx512>_fmsubadd_<mode>_mask3<round_name>"): Rename from
3342         "avx512f_fmsubadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
3343         iterator.
3344
3345 2014-09-10  Kugan Vivekanandarajah  <kuganv@linaro.org>
3346
3347         Revert r213751:
3348         * calls.c (precompute_arguments): Check
3349          promoted_for_signed_and_unsigned_p and set the promoted mode.
3350         (promoted_for_signed_and_unsigned_p): New function.
3351         (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
3352         and set the promoted mode.
3353         * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
3354         * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
3355         SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
3356
3357 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3358
3359         * opth-gen.awk: Generate mapping from cpp message reasons to the
3360         options that enable them.
3361         * doc/options.texi (CppReason): Document.
3362
3363 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3364
3365         * doc/invoke.texi (Wnormalized=): Update.
3366
3367 2014-09-09  Segher Boessenkool  <segher@kernel.crashing.org>
3368
3369         PR target/63195
3370         * config/rs6000/rs6000.md (*bool<mode>3): Allow only register
3371         operands.  Split off the constant operand alternative to ...
3372         (*bool<mode>3_imm): New.
3373
3374 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
3375
3376         * rtl.h (single_set_2): Strengthen first param from const_rtx to
3377         const rtx_insn *, and move prototype to above...
3378         (single_set): ...this.  Convert this from a macro to an inline
3379         function, enforcing the requirement that the param is a const
3380         rtx_insn *.
3381         (find_args_size_adjust): Strengthen param from rtx to rtx_insn *.
3382
3383         * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
3384         Strengthen both params from rtx to rtx_insn *.
3385         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
3386         Likewise; introduce locals "producer_set", "consumer_set", using
3387         them in place of "producer" and "consumer" when dealing with SET
3388         rather than insn.
3389         * config/avr/avr.c (avr_out_plus): Add checked cast to rtx_insn *
3390         when invoking single_set in region guarded by INSN_P.
3391         (avr_out_bitop): Likewise.
3392         (_reg_unused_after): Introduce local rtx_sequence * "seq" in
3393         region guarded by GET_CODE check, using methods to strengthen
3394         local "this_insn" from rtx to rtx_insn *, and for clarity.
3395         * config/avr/avr.md (define_insn_and_split "xload8<mode>_A"):
3396         Strengthen local "insn" from rtx to rtx_insn *.
3397         (define_insn_and_split "xload<mode>_A"): Likewise.
3398         * config/bfin/bfin.c (trapping_loads_p): Likewise for param
3399         "insn".
3400         (find_load): Likewise for return type.
3401         (workaround_speculation): Likewise for both locals named
3402         "load_insn".
3403         * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise for
3404         local "cc0_user".
3405         * config/cris/cris.md (define_peephole2 ; moversideqi): Likewise
3406         for local "prev".
3407         * config/h8300/h8300-protos.h (notice_update_cc): Likewise for
3408         param 2.
3409         * config/h8300/h8300.c (notice_update_cc): Likewise.
3410         * config/i386/i386.c (ix86_flags_dependent): Likewise for params
3411         "insn" and "dep_insn".
3412         (exact_store_load_dependency): Likewise for both params.
3413         (ix86_macro_fusion_pair_p): Eliminate local named "single_set"
3414         since this now clashes with inline function.  Instead, delay
3415         calling single_set until the point where its needed, and then
3416         assign the result to "compare_set" and rework the conditional that
3417         follows.
3418         * config/ia64/ia64.md (define_expand "tablejump"): Strengthen
3419         local "last" from rtx to rtx_insn *.
3420         * config/mips/mips-protos.h (mips_load_store_insns): Likewise for
3421         second param.
3422         (mips_store_data_bypass_p): Likewise for both params.
3423         * config/mips/mips.c (mips_load_store_insns): Likewise for second
3424         param.
3425         (mips_store_data_bypass_p): Likewise for both params.
3426         (mips_orphaned_high_part_p): Likewise for param "insn".
3427         * config/mn10300/mn10300.c (extract_bundle): Likewise.
3428         (mn10300_bundle_liw): Likewise for locals "r", "insn1", "insn2".
3429         Introduce local rtx "insn2_pat".
3430         * config/rl78/rl78.c (move_elim_pass): Likewise for locals "insn",
3431         "ninsn".
3432         (rl78_remove_unused_sets): Likewise for locals "insn", "ninsn".
3433         Introduce local rtx "set", using it in place of "insn" for the
3434         result of single_set.  This appears to fix a bug, since the call
3435         to find_regno_note on a SET does nothing.
3436         * config/rs6000/rs6000.c (set_to_load_agen): Strengthen both
3437         params from rtx to rtx_insn *.
3438         (set_to_load_agen): Likewise.
3439         * config/s390/s390.c (s390_label_align): Likewise for local
3440         "prev_insn".  Introduce new rtx locals "set" and "src", using
3441         them in place of "prev_insn" for the results of single_set
3442         and SET_SRC respectively.
3443         (s390_swap_cmp): Strengthen local "jump" from rtx to rtx_insn *.
3444         Introduce new rtx local "set" using in place of "jump" for the
3445         result of single_set.  Use SET_SRC (set) rather than plain
3446         XEXP (set, 1).
3447         * config/sh/sh.c (noncall_uses_reg): Strengthen param 2from
3448         rtx to rtx_insn *.
3449         (noncall_uses_reg): Likewise.
3450         (reg_unused_after): Introduce local rtx_sequence * "seq" in region
3451         guarded by GET_CODE check, using its methods for clarity, and to
3452         enable strengthening local "this_insn" from rtx to rtx_insn *.
3453         * config/sh/sh.md (define_expand "mulhisi3"): Strengthen local
3454         "insn" from rtx to rtx_insn *.
3455         (define_expand "umulhisi3"): Likewise.
3456         (define_expand "smulsi3_highpart"): Likewise.
3457         (define_expand "umulsi3_highpart"): Likewise.
3458         * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
3459         local "after".  Replace GET_CODE check with a dyn_cast,
3460         introducing new local rtx_sequence * "seq", using insn method for
3461         typesafety.
3462
3463         * dwarf2cfi.c (dwarf2out_frame_debug): Strengthen param "insn"
3464         from rtx to rtx_insn *.  Introduce local rtx "pat", using it in
3465         place of "insn" once we're dealing with patterns rather than the
3466         input insn.
3467         (scan_insn_after): Strengthen param "insn" from rtx to rtx_insn *.
3468         (scan_trace): Likewise for local "elt", updating lookups within
3469         sequence to use insn method rather than element method.
3470         * expr.c (find_args_size_adjust): Strengthen param "insn" from rtx
3471         to rtx_insn *.
3472         * gcse.c (gcse_emit_move_after): Likewise for local "new_rtx".
3473         * ifcvt.c (noce_try_abs): Likewise for local "insn".
3474         * ira.c (fix_reg_equiv_init): Add checked cast to rtx_insn * when
3475         invoking single_set.
3476         * lra-constraints.c (insn_rhs_dead_pseudo_p): Strengthen param
3477         "insn" from rtx to rtx_insn *.
3478         (skip_usage_debug_insns): Likewise for return type, adding a
3479         checked cast.
3480         (check_secondary_memory_needed_p): Likewise for local "insn".
3481         (inherit_reload_reg): Likewise.
3482         * modulo-sched.c (sms_schedule): Likewise for local "count_init".
3483         * recog.c (peep2_attempt): Likewise for local "old_insn", adding
3484         checked casts.
3485         (store_data_bypass_p): Likewise for both params.
3486         (if_test_bypass_p): Likewise.
3487         * recog.h (store_data_bypass_p): Likewise for both params.
3488         (if_test_bypass_p): Likewise.
3489         * reload.c (find_equiv_reg): Likewise for local "where".
3490         * reorg.c (delete_jump): Likewise for param "insn".
3491         * rtlanal.c (single_set_2): Strenghen param "insn" from const_rtx
3492         to const rtx_insn *.
3493         * store-motion.c (replace_store_insn): Likewise for param "del".
3494         (delete_store): Strengthen local "i" from rtx to rtx_insn_list *,
3495         and use its methods for clarity, and to strengthen local "del"
3496         from rtx to rtx_insn *.
3497         (build_store_vectors): Use insn method of "st" when calling
3498         replace_store_insn for typesafety and clarity.
3499
3500 2014-09-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3501
3502         * config/rs6000/rs6000.c (rtx_is_swappable_p): Add
3503         UNSPEC_VSX_CVDPSPN as an unswappable operand, and add commentary
3504         on how to make it legal in future.
3505
3506 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
3507
3508         * caller-save.c (rtx saveinsn): Strengthen this variable from rtx
3509         to rtx_insn *.
3510         (restinsn): Likewise.
3511         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
3512         Likewise for param.
3513         * config/aarch64/aarch64.c (aarch64_simd_attr_length_move):
3514         Likewise.
3515         * config/arc/arc-protos.h (arc_adjust_insn_length): Likewise for
3516         first param.
3517         (arc_hazard): Likewise for both params.
3518         * config/arc/arc.c (arc600_corereg_hazard): Likewise, adding
3519         checked casts to rtx_sequence * and uses of the insn method for
3520         type-safety.
3521         (arc_hazard): Strengthen both params from rtx to rtx_insn *.
3522         (arc_adjust_insn_length): Likewise for param "insn".
3523         (struct insn_length_parameters_s): Likewise for first param of
3524         "get_variants" callback field.
3525         (arc_get_insn_variants): Likewise for first param and local
3526         "inner".  Replace a check of GET_CODE with a dyn_cast to
3527         rtx_sequence *, using methods for type-safety and clarity.
3528         * config/arc/arc.h (ADJUST_INSN_LENGTH): Use casts to
3529         rtx_sequence * and uses of the insn method for type-safety when
3530         invoking arc_adjust_insn_length.
3531         * config/arm/arm-protos.h (arm_attr_length_move_neon): Likewise
3532         for param.
3533         (arm_address_offset_is_imm): Likewise.
3534         (struct tune_params): Likewise for params 1 and 3 of the
3535         "sched_adjust_cost" callback field.
3536         * config/arm/arm.c (cortex_a9_sched_adjust_cost): Likewise for
3537         params 1 and 3 ("insn" and "dep").
3538         (xscale_sched_adjust_cost): Likewise.
3539         (fa726te_sched_adjust_cost): Likewise.
3540         (cortexa7_older_only): Likewise for param "insn".
3541         (cortexa7_younger): Likewise.
3542         (arm_attr_length_move_neon): Likewise.
3543         (arm_address_offset_is_imm): Likewise.
3544         * config/avr/avr-protos.h (avr_notice_update_cc): Likewise.
3545         * config/avr/avr.c (avr_notice_update_cc): Likewise.
3546         * config/bfin/bfin.c (hwloop_pattern_reg): Likewise.
3547         (workaround_speculation): Likewise for local "last_condjump".
3548         * config/c6x/c6x.c (shadow_p): Likewise for param "insn".
3549         (shadow_or_blockage_p): Likewise.
3550         (get_unit_reqs): Likewise.
3551         (get_unit_operand_masks): Likewise.
3552         (c6x_registers_update): Likewise.
3553         (returning_call_p): Likewise.
3554         (can_use_callp): Likewise.
3555         (convert_to_callp): Likewise.
3556         (find_last_same_clock): Likwise for local "t".
3557         (reorg_split_calls): Likewise for local "shadow".
3558         (hwloop_pattern_reg): Likewise for param "insn".
3559         * config/frv/frv-protos.h (frv_final_prescan_insn): Likewise.
3560         * config/frv/frv.c (frv_final_prescan_insn): Likewise.
3561         (frv_extract_membar): Likewise.
3562         (frv_optimize_membar_local): Strengthen param "last_membar" from
3563         rtx * to rtx_insn **.
3564         (frv_optimize_membar_global): Strengthen param "membar" from rtx
3565         to rtx_insn *.
3566         (frv_optimize_membar): Strengthen local "last_membar" from rtx *
3567         to rtx_insn **.
3568         * config/ia64/ia64-protos.h (ia64_st_address_bypass_p): Strengthen
3569         both params from rtx to rtx_insn *.
3570         (ia64_ld_address_bypass_p): Likewise.
3571         * config/ia64/ia64.c (ia64_safe_itanium_class): Likewise for param
3572         "insn".
3573         (ia64_safe_type): Likewise.
3574         (group_barrier_needed): Likewise.
3575         (safe_group_barrier_needed): Likewise.
3576         (ia64_single_set): Likewise.
3577         (is_load_p): Likewise.
3578         (record_memory_reference): Likewise.
3579         (get_mode_no_for_insn): Likewise.
3580         (important_for_bundling_p): Likewise.
3581         (unknown_for_bundling_p): Likewise.
3582         (ia64_st_address_bypass_p): Likewise for both params.
3583         (ia64_ld_address_bypass_p): Likewise.
3584         (expand_vselect): Introduce new local rtx_insn * "insn", using it
3585         in place of rtx "x" after the emit_insn call.
3586         * config/i386/i386-protos.h (x86_extended_QIreg_mentioned_p):
3587         Strengthen param from rtx to rtx_insn *.
3588         (ix86_agi_dependent): Likewise for both params.
3589         (ix86_attr_length_immediate_default): Likewise for param 1.
3590         (ix86_attr_length_address_default): Likewise for param.
3591         (ix86_attr_length_vex_default): Likewise for param 1.
3592         * config/i386/i386.c (ix86_attr_length_immediate_default):
3593         Likewise for param "insn".
3594         (ix86_attr_length_address_default): Likewise.
3595         (ix86_attr_length_vex_default): Likewise.
3596         (ix86_agi_dependent): Likewise for both params.
3597         (x86_extended_QIreg_mentioned_p): Likewise for param "insn".
3598         (vselect_insn): Likewise for this variable.
3599         * config/m68k/m68k-protos.h (m68k_sched_attr_opx_type): Likewise
3600         for param 1.
3601         (m68k_sched_attr_opy_type): Likewise.
3602         * config/m68k/m68k.c (sched_get_operand): Likewise.
3603         (sched_attr_op_type): Likewise.
3604         (m68k_sched_attr_opx_type): Likewise.
3605         (m68k_sched_attr_opy_type): Likewise.
3606         (sched_get_reg_operand): Likewise.
3607         (sched_get_mem_operand): Likewise.
3608         (m68k_sched_address_bypass_p): Likewise for both params.
3609         (sched_get_indexed_address_scale): Likewise.
3610         (m68k_sched_indexed_address_bypass_p): Likewise.
3611         * config/m68k/m68k.h (m68k_sched_address_bypass_p): Likewise.
3612         (m68k_sched_indexed_address_bypass_p): Likewise.
3613         * config/mep/mep.c (mep_jmp_return_reorg): Strengthen locals
3614         "label", "ret" from rtx to rtx_insn *, adding a checked cast and
3615         removing another.
3616         * config/mips/mips-protos.h (mips_linked_madd_p): Strengthen both
3617         params from rtx to rtx_insn *.
3618         (mips_fmadd_bypass): Likewise.
3619         * config/mips/mips.c (mips_fmadd_bypass): Likewise.
3620         (mips_linked_madd_p): Likewise.
3621         (mips_macc_chains_last_hilo): Likewise for this variable.
3622         (mips_macc_chains_record): Likewise for param.
3623         (vr4130_last_insn): Likewise for this variable.
3624         (vr4130_swap_insns_p): Likewise for both params.
3625         (mips_ls2_variable_issue): Likewise for param.
3626         (mips_need_noat_wrapper_p): Likewise for param "insn".
3627         (mips_expand_vselect): Add a new local rtx_insn * "insn", using it
3628         in place of "x" after the emit_insn.
3629         * config/pa/pa-protos.h (pa_fpstore_bypass_p): Strengthen both
3630         params from rtx to rtx_insn *.
3631         * config/pa/pa.c (pa_fpstore_bypass_p): Likewise.
3632         (pa_combine_instructions): Introduce local "par" for result of
3633         gen_rtx_PARALLEL, moving decl and usage of new_rtx for after call
3634         to make_insn_raw.
3635         (pa_can_combine_p): Strengthen param "new_rtx" from rtx to rtx_insn *.
3636         * config/rl78/rl78.c (insn_ok_now): Likewise for param "insn".
3637         (rl78_alloc_physical_registers_op1): Likewise.
3638         (rl78_alloc_physical_registers_op2): Likewise.
3639         (rl78_alloc_physical_registers_ro1): Likewise.
3640         (rl78_alloc_physical_registers_cmp): Likewise.
3641         (rl78_alloc_physical_registers_umul): Likewise.
3642         (rl78_alloc_address_registers_macax): Likewise.
3643         (rl78_alloc_physical_registers): Likewise for locals "insn", "curr".
3644         * config/s390/predicates.md (execute_operation): Likewise for
3645         local "insn".
3646         * config/s390/s390-protos.h (s390_agen_dep_p): Likewise for both
3647         params.
3648         * config/s390/s390.c (s390_safe_attr_type): Likewise for param.
3649         (addr_generation_dependency_p): Likewise for param "insn".
3650         (s390_agen_dep_p): Likewise for both params.
3651         (s390_fpload_toreg): Likewise for param "insn".
3652         * config/sh/sh-protos.h (sh_loop_align): Likewise for param.
3653         * config/sh/sh.c (sh_loop_align): Likewise for param and local
3654         "next".
3655         * config/sh/sh.md (define_peephole2): Likewise for local "insn2".
3656         * config/sh/sh_treg_combine.cc
3657         (sh_treg_combine::make_inv_ccreg_insn): Likewise for return type
3658         and local "i".
3659         (sh_treg_combine::try_eliminate_cstores): Likewise for local "i".
3660         * config/stormy16/stormy16.c (combine_bnp): Likewise for locals
3661         "and_insn", "load", "shift".
3662         * config/tilegx/tilegx.c (match_pcrel_step2): Likewise for param
3663         "insn".
3664         * final.c (final_scan_insn): Introduce local rtx_insn * "other"
3665         for XEXP (note, 0) of the REG_CC_SETTER note.
3666         (cleanup_subreg_operands): Strengthen param "insn" from rtx to
3667         rtx_insn *, eliminating a checked cast made redundant by this.
3668         * gcse.c (process_insert_insn): Strengthen local "insn" from rtx
3669         to rtx_insn *.
3670         * genattr.c (main): When writing out the prototype to
3671         const_num_delay_slots, strengthen the param from rtx to
3672         rtx_insn *.
3673         * genattrtab.c (write_const_num_delay_slots): Likewise when
3674         writing out the implementation of const_num_delay_slots.
3675         * hw-doloop.h (struct hw_doloop_hooks): Strengthen the param
3676         "insn" of callback field "end_pattern_reg" from rtx to rtx_insn *.
3677         * ifcvt.c (noce_emit_store_flag): Eliminate local rtx "tmp" in
3678         favor of new rtx locals "src" and "set" and new local rtx_insn *
3679         "insn" and "seq".
3680         (noce_emit_move_insn): Strengthen locals "seq" and "insn" from rtx
3681         to rtx_insn *.
3682         (noce_emit_cmove): Eliminate local rtx "tmp" in favor of new rtx
3683         locals "cond", "if_then_else", "set" and new rtx_insn * locals
3684         "insn" and "seq".
3685         (noce_try_cmove_arith): Strengthen locals "insn_a" and "insn_b",
3686         "last" from rtx to rtx_insn *.  Likewise for a local "tmp",
3687         renaming to "tmp_insn".  Eliminate the other local rtx "tmp" from
3688         the top-level scope, replacing with new more tightly-scoped rtx
3689         locals "reg", "pat", "mem" and rtx_insn * "insn", "copy_of_a",
3690         "new_insn", "copy_of_insn_b", and make local rtx "set" more
3691         tightly-scoped.
3692         * ira-int.h (ira_setup_alts): Strengthen param "insn" from rtx to
3693         rtx_insn *.
3694         * ira.c (setup_prohibited_mode_move_regs): Likewise for local
3695         "move_insn".
3696         (ira_setup_alts): Likewise for param "insn".
3697         * lra-constraints.c (emit_inc): Likewise for local "add_insn".
3698         * lra.c (emit_add3_insn): Split local rtx "insn" in two, an rtx
3699         and an rtx_insn *.
3700         (lra_emit_add): Eliminate top-level local rtx "insn" in favor of
3701         new more-tightly scoped rtx locals "add3_insn", "insn",
3702         "add2_insn" and rtx_insn * "move_insn".
3703         * postreload-gcse.c (eliminate_partially_redundant_load): Add
3704         checked cast on result of gen_move_insn when invoking
3705         extract_insn.
3706         * recog.c (insn_invalid_p): Strengthen param "insn" from rtx to
3707         rtx_insn *.
3708         (verify_changes): Add a checked cast on "object" when invoking
3709         insn_invalid_p.
3710         (extract_insn_cached): Strengthen param "insn" from rtx to
3711         rtx_insn *.
3712         (extract_constrain_insn_cached): Likewise.
3713         (extract_insn): Likewise.
3714         * recog.h (insn_invalid_p): Likewise for param 1.
3715         (recog_memoized): Likewise for param.
3716         (extract_insn): Likewise.
3717         (extract_constrain_insn_cached): Likewise.
3718         (extract_insn_cached): Likewise.
3719         * reload.c (can_reload_into): Likewise for local "test_insn".
3720         * reload.h (cleanup_subreg_operands): Likewise for param.
3721         * reload1.c (emit_insn_if_valid_for_reload): Rename param from
3722         "insn" to "pat", reintroducing "insn" as an rtx_insn * on the
3723         result of emit_insn.  Remove a checked cast made redundant by this
3724         change.
3725         * sel-sched-ir.c (sel_insn_rtx_cost): Strengthen param "insn" from
3726         rtx to rtx_insn *.
3727         * sel-sched.c (get_reg_class): Likewise.
3728
3729 2014-09-09  Marcus Shawcroft  <marcus.shawcroft@arm.com>
3730         Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3731
3732          * config/aarch64/aarch64-elf-raw.h (ENDFILE_SPEC): Add crtfastmath.o.
3733          * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_MATH_ENDFILE_SPEC):
3734         Define.
3735         (ENDFILE_SPEC): Define and use GNU_USER_TARGET_MATH_ENDFILE_SPEC.
3736
3737 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
3738
3739         * rtl.h (INSN_LOCATION): Strengthen param from const_rtx to
3740         const rtx_insn *, and from rtx to rtx_insn * for the other
3741         overloaded variant.
3742         (RTL_LOCATION): Add a checked cast to rtx_insn * when invoking
3743         INSN_LOCATION, since we know INSN_P holds.
3744         (insn_line): Strengthen param from const_rtx to const rtx_insn *.
3745         (insn_file): Likewise.
3746         (insn_scope): Likewise.
3747         (insn_location): Likewise.
3748
3749         * config/mips/mips.c (mips16_gp_pseudo_reg): Strengthen local
3750         "insn" from rtx to rtx_insn *, introducing a new local rtx "set"
3751         for the result of gen_load_const_gp.
3752         * config/rs6000/rs6000-protos.h (output_call): Strengthen first
3753         param from rtx to rtx_insn *.
3754         * config/rs6000/rs6000.c (output_call): Likewise.
3755         * dwarf2out.c (dwarf2out_var_location): Likewise for local "prev",
3756         introducing a checked cast to rtx_sequence * and use of the insn
3757         method.
3758         * emit-rtl.c (emit_copy_of_insn_after): Strengthen both params
3759         from rtx to rtx_insn *.
3760         (insn_scope): Strengthen param from const_rtx to const rtx_insn *.
3761         (insn_line): Likewise.
3762         (insn_file): Likewise.
3763         (insn_location): Likewise.
3764         * emit-rtl.h (emit_copy_of_insn_after): Strengthen both params
3765         from rtx to rtx_insn *.
3766         * print-rtl.c (print_rtx): Introduce local "in_insn" via a checked
3767         cast, using it for calls to INSN_HAS_LOCATION and insn_location.
3768         * recog.c (peep2_attempt): Introduce local rtx_insn * "peepinsn"
3769         via a checked cast.
3770         * reorg.c (relax_delay_slots): Strengthen locals named "after"
3771         from rtx to rtx_insn *; use methods of "pat" for type-safety.
3772
3773 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
3774
3775         * combine.c (try_combine): Eliminate checked cast on result of
3776         gen_rtx_INSN.
3777         * emit-rtl.c (gen_rtx_INSN): New function, improving over the prior
3778         autogenerated one by strengthening the return type and params 2 and 3
3779         from rtx to rtx_insn *, and by naming the params.
3780         * gengenrtl.c (special_rtx): Add INSN to those that are
3781         special-cased.
3782         * rtl.h (gen_rtx_INSN): New prototype.
3783
3784 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
3785
3786         * ira.c (ira_update_equiv_info_by_shuffle_insn): Use NULL rather
3787         than NULL_RTX.
3788         (no_equiv): Likewise.
3789         (update_equiv_regs): Likewise.
3790         (setup_reg_equiv): Likewise.  Strengthen locals "elem",
3791         "prev_elem", "next_elem" from rtx to rtx_insn_list *, and "insn"
3792         from rtx to rtx_insn *.  Use methods of "elem" for typesafety and
3793         clarity.
3794         * ira.h (struct ira_reg_equiv_s): Strengthen field "init_insns"
3795         from rtx to rtx_insn_list *.
3796         * lra-assigns.c (spill_for): Strengthen local "x" from rtx to
3797         rtx_insn_list * and use methods for clarity and typesafety.
3798         * lra-constraints.c (contains_deleted_insn_p): Likewise for param
3799         "list".
3800         (init_insn_rhs_dead_pseudo_p): Likewise for local "insns".  Remove
3801         redundant check on INSN_P (insns): this cannot hold, as "insns" is
3802         an INSN_LIST, not an insn.
3803         (reverse_equiv_p): Strengthen local "insns" from rtx to
3804         rtx_insn_list * and use methods for clarity and typesafety.
3805         (contains_reloaded_insn_p): Likewise for local "list".
3806
3807 2014-09-09  Jiong Wang  <jiong.wang@arm.com>
3808
3809         * config/arm/arm.c (NEON_COPYSIGNF): New enum.
3810         (arm_init_neon_builtins): Support NEON_COPYSIGNF.
3811         (arm_builtin_vectorized_function): Likewise.
3812         * config/arm/arm_neon_builtins.def: New macro for copysignf.
3813         * config/arm/neon.md (neon_copysignf<mode>): New pattern for vector copysignf.
3814
3815 2014-09-09  Richard Sandiford  <richard.sandiford@arm.com>
3816
3817         * bb-reorder.h (default_target_bb_reorder): Remove redundant GTY.
3818         * builtins.h (default_target_builtins): Likewise.
3819         * gcse.h (default_target_gcse): Likewise.
3820         * target-globals.h (target_globals): Add a destructor.  Convert
3821         void-pointer fields back to their real type and change from
3822         GTY((atomic)) to GTY((skip)).
3823         (restore_target_globals): Remove casts accordingly.
3824         * target-globals.c (save_target_globals): Use XCNEW rather than
3825         ggc_internal_cleared_alloc to allocate non-GC structures.
3826         Use ggc_cleared_alloc to allocate the target_globals structure
3827         itself.
3828         (target_globals::~target_globals): Define.
3829
3830 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3831
3832         * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use vldm
3833         mnemonic instead of fldmfdd.
3834         * config/arm/arm.c (vfp_output_fstmd): Rename to...
3835         (vfp_output_vstmd): ... This.  Convert output to UAL syntax.
3836         Output vpush when address register is SP.
3837         * config/arm/arm-protos.h (vfp_output_fstmd): Rename to...
3838         (vfp_output_vstmd): ... This.
3839         * config/arm/vfp.md (push_multi_vfp): Update call to
3840         vfp_output_vstmd.
3841
3842 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3843
3844         * config/arm/vfp.md (*movcc_vfp): Use UAL syntax.
3845
3846 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3847
3848         * config/arm/vfp.md (*sqrtsf2_vfp): Use UAL assembly syntax.
3849         (*sqrtdf2_vfp): Likewise.
3850         (*cmpsf_vfp): Likewise.
3851         (*cmpsf_trap_vfp): Likewise.
3852         (*cmpdf_vfp): Likewise.
3853         (*cmpdf_trap_vfp): Likewise.
3854
3855 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3856
3857         * config/arm/vfp.md (*extendsfdf2_vfp): Use UAL assembly syntax.
3858         (*truncdfsf2_vfp): Likewise.
3859         (*truncsisf2_vfp): Likewise.
3860         (*truncsidf2_vfp): Likewise.
3861         (fixuns_truncsfsi2): Likewise.
3862         (fixuns_truncdfsi2): Likewise.
3863         (*floatsisf2_vfp): Likewise.
3864         (*floatsidf2_vfp): Likewise.
3865         (floatunssisf2): Likewise.
3866         (floatunssidf2): Likewise.
3867
3868 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3869
3870         * config/arm/vfp.md (*mulsf3_vfp): Use UAL assembly syntax.
3871         (*muldf3_vfp): Likewise.
3872         (*mulsf3negsf_vfp): Likewise.
3873         (*muldf3negdf_vfp): Likewise.
3874         (*mulsf3addsf_vfp): Likewise.
3875         (*muldf3adddf_vfp): Likewise.
3876         (*mulsf3subsf_vfp): Likewise.
3877         (*muldf3subdf_vfp): Likewise.
3878         (*mulsf3negsfaddsf_vfp): Likewise.
3879         (*fmuldf3negdfadddf_vfp): Likewise.
3880         (*mulsf3negsfsubsf_vfp): Likewise.
3881         (*muldf3negdfsubdf_vfp): Likewise.
3882
3883 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3884
3885         * config/arm/vfp.md (*abssf2_vfp): Use UAL assembly syntax.
3886         (*absdf2_vfp): Likewise.
3887         (*negsf2_vfp): Likewise.
3888         (*negdf2_vfp): Likewise.
3889         (*addsf3_vfp): Likewise.
3890         (*adddf3_vfp): Likewise.
3891         (*subsf3_vfp): Likewise.
3892         (*subdf3_vfp): Likewise.
3893         (*divsf3_vfp): Likewise.
3894         (*divdf3_vfp): Likewise.
3895
3896 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3897
3898         * config/arm/arm.c (output_move_vfp): Use UAL syntax for load/store
3899         multiple.
3900         (arm_print_operand): Don't convert real values to decimal
3901         representation in default case.
3902         (fp_immediate_constant): Delete.
3903         * config/arm/arm-protos.h (fp_immediate_constant): Likewise.
3904         * config/arm/vfp.md (*arm_movsi_vfp): Convert to VFP moves to UAL
3905         syntax.
3906         (*thumb2_movsi_vfp): Likewise.
3907         (*movdi_vfp): Likewise.
3908         (*movdi_vfp_cortexa8): Likewise.
3909         (*movhf_vfp_neon): Likewise.
3910         (*movhf_vfp): Likewise.
3911         (*movsf_vfp): Likewise.
3912         (*thumb2_movsf_vfp): Likewise.
3913         (*movdf_vfp): Likewise.
3914         (*thumb2_movdf_vfp): Likewise.
3915         (*movsfcc_vfp): Likewise.
3916         (*thumb2_movsfcc_vfp): Likewise.
3917         (*movdfcc_vfp): Likewise.
3918         (*thumb2_movdfcc_vfp): Likewise.
3919
3920 2014-09-09  James Greenhalgh  <james.greenhalgh@arm.com>
3921
3922         * doc/invoke.texi (-march): Use GNU/Linux rather than Linux.
3923         (-mtune): Likewise.
3924         (-mcpu): Likewise.
3925
3926 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3927
3928         PR target/61749
3929         * config/aarch64/aarch64-builtins.c (aarch64_types_quadop_qualifiers):
3930         Use qualifier_immediate for last operand.  Rename to...
3931         (aarch64_types_ternop_lane_qualifiers): ... This.
3932         (TYPES_QUADOP): Rename to...
3933         (TYPES_TERNOP_LANE): ... This.
3934         (aarch64_simd_expand_args): Return const0_rtx when encountering user
3935         error.  Change return of 0 to return of NULL_RTX.
3936         (aarch64_crc32_expand_builtin): Likewise.
3937         (aarch64_expand_builtin): Return NULL_RTX instead of 0.
3938         ICE when expanding unknown builtin.
3939         * config/aarch64/aarch64-simd-builtins.def (sqdmlal_lane): Use
3940         TERNOP_LANE qualifiers.
3941         (sqdmlsl_lane): Likewise.
3942         (sqdmlal_laneq): Likewise.
3943         (sqdmlsl_laneq): Likewise.
3944         (sqdmlal2_lane): Likewise.
3945         (sqdmlsl2_lane): Likewise.
3946         (sqdmlal2_laneq): Likewise.
3947         (sqdmlsl2_laneq): Likewise.
3948
3949 2014-09-09  Nick Clifton  <nickc@redhat.com>
3950
3951         * doc/invoke.texi (Optimization Options): Add missing @gol to the
3952         end of a line.
3953         (S/390 and zSeries Options): Remove superfluous word from the
3954         description of the -mhotpatch option.
3955
3956 2014-09-09  Zhenqiang Chen  <zhenqiang.chen@arm.com>
3957
3958         * shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED.
3959         * ira.c: #include "shrink-wrap.h"
3960         (split_live_ranges_for_shrink_wrap): Use SHRINK_WRAPPING_ENABLED.
3961         * ifcvt.c: #include "shrink-wrap.h"
3962         (dead_or_predicable): Use SHRINK_WRAPPING_ENABLED.
3963
3964 2014-09-08  Trevor Saunders  <tsaunders@mozilla.com>
3965
3966         * common/config/picochip/picochip-common.c: Remove.
3967         * config.gcc: Remove support for picochip.
3968         * config/picochip/constraints.md: Remove.
3969         * config/picochip/dfa_space.md: Remove.
3970         * config/picochip/dfa_speed.md: Remove.
3971         * config/picochip/picochip-protos.h: Remove.
3972         * config/picochip/picochip.c: Remove.
3973         * config/picochip/picochip.h: Remove.
3974         * config/picochip/picochip.md: Remove.
3975         * config/picochip/picochip.opt: Remove.
3976         * config/picochip/predicates.md: Remove.
3977         * config/picochip/t-picochip: Remove.
3978         * doc/md.texi: Don't document picochi.
3979
3980 2014-09-08  David Malcolm  <dmalcolm@redhat.com>
3981
3982         * basic-block.h (control_flow_insn_p): Strengthen param from
3983         const_rtx to const rtx_insn *.
3984         * cfgbuild.c (control_flow_insn_p): Likewise.
3985
3986 2014-09-08  David Malcolm  <dmalcolm@redhat.com>
3987
3988         * gcse.c (modify_mem_list): Strengthen this variable from
3989         vec<rtx> * to vec<rtx_insn *> *.
3990         (vec_rtx_heap): Strengthen this typedef from vec<rtx> to
3991         vec<rtx_insn *>.
3992         (load_killed_in_block_p): Strengthen local "list" from vec<rtx> to
3993         vec<rtx_insn *>, and local "setter" from rtx to rtx_insn *.
3994         (record_last_mem_set_info): Strengthen param "insn" from rtx to
3995         rtx_insn *.
3996         (record_last_set_info): Likewise for local "last_set_insn".
3997
3998 2014-09-08  DJ Delorie  <dj@redhat.com>
3999
4000         * doc/invoke.texi (MSP430 Options): Add -minrt.
4001
4002 2014-09-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4003
4004         * config/rs6000/rs6000.c (special_handling_values):  Add SH_SPLAT.
4005         (rtx_is_swappable_p): Convert UNSPEC cascading ||s to a switch
4006         statement; allow optimization of UNSPEC_VSPLT_DIRECT with special
4007         handling SH_SPLAT.
4008         (adjust_extract): Fix test for VEC_DUPLICATE case; fix adjustment
4009         of extracted lane.
4010         (adjust_splat): New function.
4011         (handle_special_swappables): Call adjust_splat for SH_SPLAT.
4012         (dump_swap_insn_table): Add case for SH_SPLAT.
4013
4014 2014-09-08  Richard Biener  <rguenther@suse.de>
4015
4016         PR ipa/63196
4017         * tree-inline.c (copy_loops): The source loop header should
4018         always be non-NULL.
4019         (tree_function_versioning): If loops need fixup after removing
4020         unreachable blocks fix them.
4021         * omp-low.c (simd_clone_adjust): Do not add incr block to
4022         loop under construction.
4023
4024 2014-09-08  Alan Lawrence  <alan.lawrence@arm.com>
4025
4026         * config/aarch64/aarch64-builtins.c
4027         (aarch64_types_cmtst_qualifiers, TYPES_TST): Remove as unused.
4028
4029 2014-09-08  Joseph Myers  <joseph@codesourcery.com>
4030
4031         * config/i386/cygming.h (TF_SIZE): Remove.
4032         * config/i386/darwin.h (TF_SIZE): Remove.
4033         * config/i386/dragonfly.h (TF_SIZE): Remove.
4034         * config/i386/freebsd.h (TF_SIZE): Remove.
4035         * config/i386/gnu-user-common.h (TF_SIZE): Remove.
4036         * config/i386/openbsdelf.h (TF_SIZE): Remove.
4037         * config/i386/sol2.h (TF_SIZE): Remove.
4038         * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Remove.
4039         * config/ia64/linux.h (TF_SIZE): Remove.
4040         * doc/tm.texi.in (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Remove.
4041         * doc/tm.texi: Regenerate.
4042         * system.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Poison.
4043
4044 2014-09-08  Joseph Myers  <joseph@codesourcery.com>
4045
4046         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
4047         Remove.
4048         * doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
4049         Remove.
4050         * doc/tm.texi: Regenerate.
4051         * system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
4052         Poison.
4053         * config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
4054         * config/cris/cris.h (__make_dp): Remove.
4055
4056 2014-09-08  Richard Biener  <rguenther@suse.de>
4057
4058         PR bootstrap/63204
4059         * cfgloop.c (mark_loop_for_removal): Track former header
4060         unconditionally.
4061         * cfgloop.h (struct loop): Add former_header member unconditionally.
4062         * loop-init.c (fix_loop_structure): Enable bogus loop removal
4063         diagnostic unconditionally.
4064
4065 2014-09-07 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
4066
4067         PR target/63190
4068         * config/aarch64/aarch64.md (stack_protect_test_<mode>) Add register
4069         constraint for operand0 and remove write only modifier from operand3.
4070
4071 2014-09-07  Richard Sandiford  <richard.sandiford@arm.com>
4072
4073         PR rtl-optimization/62208
4074         * simplify-rtx.c (simplify_relational_operation_1): Use CONST0_RTX
4075         rather than const0_rtx in eq/ne-xor simplifications.
4076
4077 2014-09-06  Joern Rennecke  <joern.rennecke@embecosm.com>
4078
4079         * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
4080         (arc_output_mi_thunk): Likewise.
4081
4082         * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
4083         arguments to silence bogus warning.
4084
4085 2014-09-06  Richard Sandiford  <richard.sandiford@arm.com>
4086
4087         PR middle-end/63171
4088         * rtlanal.c (tls_referenced_p): Don't skip constant subrtxes.
4089
4090 2014-09-06  Tom de Vries  <tom@codesourcery.com>
4091
4092         * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
4093         IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
4094         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
4095
4096 2014-09-05  Dominique Dhumieres  <dominiq@lps.ens.fr>
4097
4098         PR target/63188
4099         * config/darwin.h (INIT_SECTION_ASM_OP): Define to "".
4100         * config/pa/pa64-hpux.h (INIT_SECTION_ASM_OP): Likewise.
4101
4102 2014-09-05  Easwaran Raman  <eraman@google.com>
4103
4104         PR rtl-optimization/62146
4105         * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
4106         hoisted instruction unconditional.
4107
4108 2014-09-05  Segher Boessenkool  <segher@kernel.crashing.org>
4109
4110         PR target/63187
4111         * config/rs6000/rs6000.md (*and<mode>3_imm_dot, *and<mode>3_imm_dot2):
4112         Do not allow any_mask_operand for operands[2].
4113         (*and<mode>3_imm_mask_dot, *and<mode>3_imm_mask_dot2): New.
4114
4115 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
4116
4117         * config/arc/arc.c (arc_print_operand): Use insn method of
4118         final_sequence for type-safety.
4119         * config/bfin/bfin.c (bfin_hardware_loop): Strengthen param
4120         "insn" from rtx to rtx_insn *.
4121         * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
4122         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
4123         Likewise for locals "branch", "label".
4124         * config/h8300/h8300.c (same_cmp_preceding_p): Likewise for
4125         locals "i1", "i2".  Use NULL rather than NULL_RTX in comparisons.
4126         (same_cmp_following_p): Likewise for locals "i2", "i3".
4127         * config/sh/sh_optimize_sett_clrt.cc
4128         (sh_optimize_sett_clrt::sh_cbranch_ccreg_value): Likewise for
4129         param "cbranch_insn".
4130         * function.c (convert_jumps_to_returns): Likewis for local "jump".
4131         * ifcvt.c (cond_exec_get_condition): Likewise for param "jump".
4132         * jump.c (simplejump_p): Strengthen param "insn" from const_rtx to
4133         const rtx_insn *.
4134         (condjump_p): Likewise.
4135         (condjump_in_parallel_p): Likewise.
4136         (pc_set): Likewise.
4137         (any_uncondjump_p): Likewise.
4138         (any_condjump_p): Likewise.
4139         (condjump_label): Likewise.
4140         (returnjump_p): Strengthen param "insn" from rtx to
4141         const rtx_insn *.
4142         (onlyjump_p): Strengthen param "insn" from const_rtx to
4143         const rtx_insn *.
4144         (jump_to_label_p): Likewise.
4145         (invert_jump_1): Strengthen param "jump" from rtx to rtx_insn *.
4146         (invert_jump): Likewise.
4147         * reorg.c (simplejump_or_return_p): Add checked cast when calling
4148         simplejump_p.
4149         (get_jump_flags): Strengthen param "insn" from rtx to
4150         const rtx_insn *.
4151         (get_branch_condition): Likewise.
4152         (condition_dominates_p): Likewise.
4153         (make_return_insns): Move declaration of local "pat" earlier, to
4154         after we've handled NONJUMP_INSN_P and non-sequences, using its
4155         methods to simplify the code and for type-safety.
4156         * rtl.h (find_constant_src): Strengthen param from const_rtx to
4157         const rtx_insn *.
4158         (jump_to_label_p): Strengthen param from rtx to const rtx_insn *.
4159         (condjump_p): Strengthen param from const_rtx to
4160         const rtx_insn *.
4161         (any_condjump_p): Likewise.
4162         (any_uncondjump_p): Likewise.
4163         (pc_set): Likewise.
4164         (condjump_label): Likewise.
4165         (simplejump_p): Likewise.
4166         (returnjump_p): Likewise.
4167         (onlyjump_p): Likewise.
4168         (invert_jump_1): Strengthen param 1 from rtx to rtx_insn *.
4169         (invert_jump): Likewise.
4170         (condjump_in_parallel_p): Strengthen param from const_rtx to
4171         const rtx_insn *.
4172         * rtlanal.c (find_constant_src): Strengthen param from const_rtx
4173         to const rtx_insn *.
4174         * sel-sched-ir.c (fallthru_bb_of_jump): Strengthen param from rtx
4175         to const rtx_insn *.
4176         * sel-sched-ir.h (fallthru_bb_of_jump): Likewise.
4177
4178 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
4179
4180         * reorg.c (relax_delay_slots): Move declaration of "trial_seq"
4181         above the conditional, and convert the check on GET_CODE to a
4182         dyn_cast, so that "trial_seq" is available as an rtx_sequence * in
4183         the conditional.  Simplify the conditional by using methods of
4184         "trial_seq".
4185
4186 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
4187
4188         * haifa-sched.c (check_clobbered_conditions): Strengthen local
4189         "link" from rtx to rtx_insn_list *, and use its methods for
4190         clarity and type-safety.
4191         (toggle_cancelled_flags): Likewise.
4192         (restore_last_backtrack_point): Likewise.
4193         (queue_to_ready): Use insn method of "link" in one place.
4194         (schedule_block): Strengthen local "link" from rtx to
4195         rtx_insn_list *, and use its methods for clarity and type-safety.
4196
4197 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
4198
4199         * sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
4200         param "insn" from const_rtx to const rtx_insn *.
4201         (sched_get_reverse_condition_uncached): Likewise.
4202         (sched_get_condition_with_rev): Likewise.
4203         (sched_has_condition_p): Likewise.
4204         (sched_insns_conditions_mutex_p): Likewise for both params.
4205         (sched_insn_is_legitimate_for_speculation_p): Likewise for param
4206         "insn"; conver use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
4207         (setup_insn_reg_uses): Move local "list" to be more tightly
4208         scoped, strengthening it from an rtx to an rtx_insn_list *.  Use
4209         its methods for clarity and type-safety.
4210         (sched_analyze_1): Strengthen local "pending" from rtx to
4211         rtx_insn_list *, and local "pending_mem" from rtx to
4212         rtx_expr_list *.  Use methods of each for clarity and type-safety.
4213         (sched_analyze_2): Likewise.
4214         (sched_analyze_insn): Likewise.
4215
4216         * sched-int.h (sched_get_reverse_condition_uncached): Strengthen
4217         param from const_rtx to const rtx_insn *.
4218         (sched_insns_conditions_mutex_p): Likewise for both params.
4219         (sched_insn_is_legitimate_for_speculation_p): Likewise for first
4220         param.
4221
4222         * system.h (CONST_CAST_RTX_INSN): New macro.
4223
4224 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
4225
4226         * recog.c (peep2_attempt): Strengthen return type from rtx to
4227         rtx_insn *.
4228         (peep2_update_life): Likewise for params "last", "prev", removing
4229         a checked cast made redundant by this.
4230         (peephole2_optimize): Likewise for local "last".
4231
4232 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
4233
4234         * basic-block.h (set_block_for_insn): Eliminate this macro in
4235         favor of...
4236         * rtl.h (set_block_for_insn): New inline function, imposing the
4237         requirement that the "insn" param is an rtx_insn *.
4238
4239 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
4240
4241         * caller-save.c (setup_save_areas): Strengthen local "insn" from
4242         rtx to rtx_insn *.
4243         * final.c (get_call_reg_set_usage): Likewise for first param,
4244         eliminating a checked cast.
4245         * regs.h (get_call_reg_set_usage): Likewise for first param.
4246         * resource.c (mark_set_resources): Introduce local rtx_call_insn *
4247         "call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
4248         cast, replacing references to "x" with "call_insn" where
4249         appropriate.
4250         (mark_target_live_regs): Strengthen local "real_insn" from rtx to
4251         rtx_insn *, adding a checked cast.
4252
4253 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
4254
4255         * output.h (final_scan_insn): Strengthen first param from rtx to
4256         rtx_insn *.
4257
4258         * final.c (final_scan_insn): Likewise, renaming it back from
4259         "uncast_insn" to "insn", eliminating the checked cast.
4260
4261         * config/h8300/h8300.md (define_insn "jump"): Replace local rtx
4262         "vec" with an rtx_sequence * "seq", taking a copy of
4263         "final_sequence", and using methods of "seq" for clarity, and for
4264         type-safety in the calls to final_scan_insn.
4265         * config/mips/mips.c (mips_output_conditional_branch): Use methods
4266         of "final_sequence" for clarity, and for type-safety in the call to
4267         final_scan_insn.
4268         * config/sh/sh.c (print_slot): Strengthen param from rtx to
4269         rtx_sequence * and rename from "insn" to "seq".
4270
4271 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
4272
4273         * jump.c (delete_related_insns): Introduce a new local "table" by
4274         replacing JUMP_TABLE_DATA_P with a dyn_cast, then use the
4275         get_labels method of "table" to simplify access to the labels in
4276         the jump table.
4277
4278 2014-09-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4279
4280         * config/arm/cortex-a53.md (cortex_a53_fpalu): Add f_rints, f_rintd,
4281         f_minmaxs, f_minmaxd types.
4282
4283 2014-09-05  Richard Biener  <rguenther@suse.de>
4284
4285         * cfgloop.c (mark_loop_for_removal): Record former header
4286         when ENABLE_CHECKING.
4287         * cfgloop.h (strut loop): Add former_header member when
4288         ENABLE_CHECKING.
4289         * loop-init.c (fix_loop_structure): Sanity check loops
4290         marked for removal if they re-appeared.
4291
4292 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
4293
4294         * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
4295         uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
4296
4297         (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
4298         vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
4299         vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
4300         vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
4301         vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
4302         vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
4303         vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
4304         vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
4305         vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
4306         vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
4307         vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
4308         vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
4309         vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
4310         vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
4311         vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
4312         vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
4313         vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
4314         vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
4315         vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
4316         vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
4317         with int{32,16,8}_t.
4318
4319 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
4320
4321         * config/aarch64/arm_neon.h (__GET_HIGH): New macro.
4322         (vget_high_f32, vget_high_f64, vget_high_p8, vget_high_p16,
4323         vget_high_s8, vget_high_s16, vget_high_s32, vget_high_s64,
4324         vget_high_u8, vget_high_u16, vget_high_u32, vget_high_u64):
4325         Remove temporary __asm__ and reimplement.
4326
4327 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
4328
4329         * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Remove code
4330         handling cmge, cmgt, cmeq, cmtst.
4331
4332         * config/aarch64/aarch64-simd-builtins.def (cmeq, cmge, cmgt, cmle,
4333         cmlt, cmgeu, cmgtu, cmtst): Remove.
4334
4335         * config/aarch64/arm_neon.h (vceq_*, vceqq_*, vceqz_*, vceqzq_*,
4336         vcge_*, vcgeq_*, vcgez_*, vcgezq_*, vcgt_*, vcgtq_*, vcgtz_*,
4337         vcgtzq_*, vcle_*, vcleq_*, vclez_*, vclezq_*, vclt_*, vcltq_*,
4338         vcltz_*, vcltzq_*, vtst_*, vtstq_*): Use gcc vector extensions.
4339
4340 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
4341
4342         * config/aarch64/aarch64-builtins.c (aarch64_types_cmtst_qualifiers,
4343         TYPES_TST): Define.
4344         (aarch64_fold_builtin): Update pattern for cmtst.
4345
4346         * config/aarch64/aarch64-protos.h (aarch64_const_vec_all_same_int_p):
4347         Declare.
4348
4349         * config/aarch64/aarch64-simd-builtins.def (cmtst): Update qualifiers.
4350
4351         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>):
4352         Switch operands, separate out more cases, refactor.
4353
4354         (aarch64_cmtst<mode>): Rewrite pattern to match (plus ... -1).
4355
4356         * config/aarch64.c (aarch64_const_vec_all_same_int_p): Take single
4357         argument; rename old version to...
4358         (aarch64_const_vec_all_same_in_range_p): ...this.
4359         (aarch64_print_operand, aarch64_simd_shift_imm_p): Follow renaming.
4360
4361         * config/aarch64/predicates.md (aarch64_simd_imm_minus_one): Define.
4362
4363 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
4364
4365         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
4366         Remove qualifier_const_pointer, update comment.
4367
4368 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
4369
4370         * config/aarch64/aarch64.md (adddi3_aarch64): set type to neon_add.
4371
4372 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
4373
4374         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Replace
4375         varargs with pointer parameter.
4376         (aarch64_simd_expand_builtin): pass pointer into previous.
4377
4378 2014-09-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4379
4380         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add alu_ext,
4381         alus_ext.
4382
4383 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
4384
4385         * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
4386         * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
4387         * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
4388         Replace temporary asm with call to builtin.
4389         (vrbit_p8, vrbitq_p8): New functions.
4390
4391 2014-09-05  Richard Biener  <rguenther@suse.de>
4392
4393         * cfgloop.c (mark_loop_for_removal): New function.
4394         * cfgloop.h (mark_loop_for_removal): Declare.
4395         * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
4396         (merge_blocks): Likewise.
4397         (duplicate_block): Likewise.
4398         * except.c (sjlj_emit_dispatch_table): Likewise.
4399         * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
4400         * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
4401         (thread_through_loop_header): Likewise.
4402
4403 2014-09-05  Richard Biener  <rguenther@suse.de>
4404
4405         PR middle-end/63148
4406         * fold-const.c (try_move_mult_to_index): Remove.
4407         (fold_binary_loc): Do not call it.
4408         * tree-data-ref.c (dr_analyze_indices): Strip conversions
4409         from the base object again.
4410
4411 2014-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
4412
4413         * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
4414         DImode.
4415
4416 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
4417
4418         PR target/55701
4419         * config/arm/arm.md (setmem): New pattern.
4420         * config/arm/arm-protos.h (struct tune_params): New fields.
4421         (arm_gen_setmem): New prototype.
4422         * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
4423         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
4424         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
4425         (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
4426         (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
4427         (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
4428         (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
4429         (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
4430         (arm_const_inline_cost): New function.
4431         (arm_block_set_max_insns): New function.
4432         (arm_block_set_non_vect_profit_p): New function.
4433         (arm_block_set_vect_profit_p): New function.
4434         (arm_block_set_unaligned_vect): New function.
4435         (arm_block_set_aligned_vect): New function.
4436         (arm_block_set_unaligned_non_vect): New function.
4437         (arm_block_set_aligned_non_vect): New function.
4438         (arm_block_set_vect, arm_gen_setmem): New functions.
4439
4440 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
4441
4442         * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
4443
4444 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
4445
4446         * config/arm/arm.c (output_move_neon): Handle REG explicitly.
4447
4448 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
4449
4450         * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
4451         an rtx.
4452         * valtrack.h: Adjust.
4453
4454 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
4455
4456         * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
4457         an rtx.
4458         (emit_jump_insn_before_noloc): Likewise.
4459         (emit_call_insn_before_noloc): Likewise.
4460         (emit_label_before): Likewise.
4461         (emit_label_after): Likewise.
4462         (emit_insn_before_setloc): Likewise.
4463         (emit_jump_insn_before_setloc): Likewise.
4464         (emit_call_insn_before_setloc): Likewise.
4465         (emit_call_insn_before): Likewise.
4466         * rtl.h: Adjust.
4467
4468 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
4469
4470         * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
4471         rtx_insn *, eliminating a checked cast.
4472
4473 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
4474
4475         * rtl.h (modified_between_p): Strengthen params 2 and 3 from
4476         const_rtx to const rtx_insn *.
4477         * rtlanal.c (modified_between_p): Likewise, eliminating a checked
4478         cast.
4479
4480 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
4481
4482         * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
4483         fixup_args_size_notes.
4484         * expr.c (fixup_args_size_notes): Strengthen first two params from
4485         rtx to rtx_insn *, eliminating a checked cast.
4486         * rtl.h (fixup_args_size_notes): Strengthen first two params from
4487         rtx to rtx_insn *.
4488
4489 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
4490
4491         * haifa-sched.c (get_ready_element): Strengthen return type from
4492         rtx to rtx_insn *.
4493         * sched-int.h (get_ready_element): Likewise.
4494
4495 2014-09-04  Segher Boessenkool  <segher@kernel.crashing.org>
4496
4497         PR target/63165
4498         * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
4499         indexed_or_indirect_operand instead of memory_operand.
4500         (floatsi<mode>2_lfiwzx_mem): Ditto.
4501
4502 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
4503
4504         * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
4505         config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
4506         ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
4507
4508 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
4509
4510         * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
4511         rtx.
4512         (get_last_nonnote_insn): Likewise.
4513         (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
4514         * resource.c (find_basic_block): Likewise.
4515         * rtl.h: Adjust.
4516         * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
4517         const_rtx.
4518
4519 2014-09-04  David Malcolm  <dmalcolm@redhat.com>
4520
4521         * genattr.c (main): Within the prototype of insn_latency written
4522         out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
4523         * genautomata.c (output_internal_maximal_insn_latency_func):
4524         Within the implementation of insn_latency written out to
4525         insn-automata.c, strengthen both params from rtx to rtx_insn *,
4526         eliminating a pair of checked casts.
4527
4528 2014-09-04  David Malcolm  <dmalcolm@redhat.com>
4529
4530         * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
4531         rtx_insn *.
4532
4533         * rtl.h (eh_returnjump_p): Likewise.
4534
4535 2014-09-04  Aldy Hernandez  <aldyh@redhat.com>
4536
4537         * Makefile.in (TAGS): Handle constructs in timevar.def.
4538
4539 2014-09-04  Guozhi Wei  <carrot@google.com>
4540
4541         PR target/62040
4542         * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
4543         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
4544         it into two patterns.
4545         (move_lo_quad_internal_be_<mode>): Likewise.
4546
4547 2014-09-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4548
4549         * doc/options.texi: Document that Var and Init are required if CPP
4550         is given.
4551         * optc-gen.awk: Require Var and Init if CPP is given.
4552         * common.opt (Wpedantic): Use Init.
4553
4554 2014-09-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4555
4556         * config/rs6000/rs6000.c (special_handling_values): Add
4557         SH_EXTRACT.
4558         (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
4559         wrapped in a VEC_DUPLICATE, representing an extract.  Mark these
4560         as swappable with special handling SH_EXTRACT.  Remove
4561         UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
4562         optimization.
4563         (adjust_extract): New function.
4564         (handle_special_swappables): Add default to case statement; add
4565         case for SH_EXTRACT that calls adjust_extract.
4566         (dump_swap_insn_table): Handle SH_EXTRACT.
4567
4568 2014-09-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4569
4570         * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
4571         selection of 0th memory doubleword, regardless of endianness.
4572
4573 2014-09-04  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
4574
4575         * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
4576
4577 2014-09-04  Alan Modra  <amodra@gmail.com>
4578
4579         PR debug/60655
4580         * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
4581         can't be output.
4582
4583 2014-09-03  Matthew Fortune  <matthew.fortune@imgtec.com>
4584
4585         * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
4586         * targhooks.c (default_dwarf_frame_reg_mode): New function.
4587         * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
4588         * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
4589         * doc/tm.texi: Regenerate.
4590         * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
4591         selection logic to default_dwarf_frame_reg_mode.
4592
4593 2014-09-03  Marek Polacek  <polacek@redhat.com>
4594
4595         * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
4596         by -Wall.
4597
4598 2014-09-03  Richard Sandiford  <richard.sandiford@arm.com>
4599
4600         * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
4601         the automodified register.
4602
4603 2014-09-03  Richard Sandiford  <richard.sandiford@arm.com>
4604
4605         * output.h (get_some_local_dynamic_name): Declare.
4606         * final.c (some_local_dynamic_name): New variable.
4607         (get_some_local_dynamic_name): New function.
4608         (final_end_function): Clear some_local_dynamic_name.
4609         * config/alpha/alpha.c (machine_function): Remove some_ld_name.
4610         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
4611         (print_operand): Report an error if '%&' is used inappropriately.
4612         * config/i386/i386.c (get_some_local_dynamic_name): Delete.
4613         (get_some_local_dynamic_name_1): Delete.
4614         * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
4615         (rs6000_get_some_local_dynamic_name): Delete.
4616         (rs6000_get_some_local_dynamic_name_1): Delete.
4617         (print_operand): Report an error if '%&' is used inappropriately.
4618         * config/s390/s390.c (machine_function): Remove some_ld_name.
4619         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
4620         (print_operand): Assert that get_some_local_dynamic_name is nonnull.
4621         * config/sparc/sparc.c: Include rtl-iter.h.
4622         (machine_function): Remove some_ld_name.
4623         (sparc_print_operand): Report an error if '%&' is used inappropriately.
4624         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
4625
4626 2014-09-03  Richard Henderson  <rth@redhat.com>
4627
4628         * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
4629         (aarch64_popwb_pair_reg): Remove.
4630         (aarch64_set_frame_expr): Remove.
4631         (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
4632         the restore ops performed by the insns generated.
4633         (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
4634         insn.  Perform the calls_eh_return addition later; do not attempt to
4635         preserve the CFA in that case.  Don't use aarch64_set_frame_expr.
4636         (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
4637         special markup at all.  Load cfun->machine->frame.hard_fp_offset
4638         into a local variable.
4639         (aarch64_frame_pointer_required): Don't check calls_alloca.
4640
4641 2014-09-03  Richard Biener  <rguenther@suse.de>
4642
4643         * opts.c (default_options_optimization): Adjust
4644         max-combine-insns to 2 for -Og.
4645
4646 2014-09-03  Martin Jambor  <mjambor@suse.cz>
4647
4648         PR ipa/62015
4649         * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
4650         pass-trough jump functions correctly.
4651
4652 2014-09-03  Martin Jambor  <mjambor@suse.cz>
4653
4654         PR ipa/61986
4655         * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
4656         created replacements in ascending order of offsets.
4657         (known_aggs_to_agg_replacement_list): Likewise.
4658
4659 2014-09-03  Martin Liska  <mliska@suse.cz>
4660
4661         * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
4662         is set to set uninitialized value for vnresult.
4663
4664 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
4665
4666         * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
4667         for TARGET_MUST_PASS_IN_STACK.
4668
4669 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
4670
4671         * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
4672         for TARGET_ARG_PARTIAL_BYTES.
4673
4674 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
4675
4676         * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
4677         instructions for varargs implementation.
4678         (nds32_expand_epilogue): Emit stack adjustment instructions for
4679         varargs implementation.
4680
4681 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
4682
4683         * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
4684         optimization detection.
4685
4686 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
4687
4688         * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
4689         arguments.
4690         (nds32_function_arg_advance): Deal with nameless arguments.
4691         * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
4692         (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
4693         (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
4694
4695 2014-09-03  Richard Biener  <rguenther@suse.de>
4696
4697         * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
4698         (struct bb_bitmap_sets): Remove deferred member.
4699         (BB_DEFERRED): Remove.
4700         (defer_or_phi_translate_block): Remove.
4701         (compute_antic_aux): Remove deferring of blocks, assert
4702         proper iteration order.
4703         (compute_antic): Do not set BB_DEFERRED.
4704         (eliminate): Allocate el_avail of proper size initially.
4705
4706 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
4707
4708         * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
4709         according to the value of crtl->args.pretend_args_size.
4710
4711 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
4712
4713         * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
4714         varargs information.
4715
4716 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
4717
4718         * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
4719         implementation for TARGET_SETUP_INCOMING_VARARGS.
4720         (nds32_strict_argument_naming): Refine comment.
4721         * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
4722         Define for future implementation.
4723
4724 2014-09-03  Ilya Tocar  <ilya.tocar@intel.com>
4725
4726         * config/i386/adxintrin.h (_subborrow_u32): New.
4727         (_addcarry_u32): Ditto.
4728         (_subborrow_u64): Ditto.
4729         (_addcarry_u64): Ditto.
4730         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
4731         IX86_BUILTIN_SBB64.
4732         (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
4733         __builtin_ia32_sbb_u64
4734
4735 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
4736
4737         * config/nds32/nds32.c (nds32_function_arg): Define and rename some
4738         GPR-specific stuff.
4739         (nds32_function_arg_advance): Likewise.
4740         (nds32_init_cumulative_args): Likewise.
4741         * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
4742         (NDS32_FIRST_GPR_REGNUM): Define.
4743         (NDS32_LAST_GPR_REGNUM): Define.
4744         (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
4745         (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
4746         (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
4747         (machine_function): Use GRP-specific stuff.
4748
4749 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
4750
4751         * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
4752         (nds32_expand_epilogue): Likewise.
4753         (nds32_expand_prologue_v3push): Likewise.
4754         (nds32_expand_epilogue_v3pop): Likewise.
4755
4756 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
4757
4758         * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
4759         v3push/v3pop for variadic function.
4760         * config/nds32/nds32.md (prologue, epilogue): Likewise.
4761
4762 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
4763
4764         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
4765         Check rtx for varargs implementation.
4766         (nds32_output_stack_pop): Likewise.
4767         * config/nds32/nds32-protos.h: Have a rtx argument for
4768         nds32_output_stack_push and nds32_output_stack_pop.
4769         * config/nds32/nds32.md: Likewise.
4770
4771 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
4772
4773         * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
4774         to check if FUNC is an interrupt service routine.
4775         * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
4776
4777 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
4778
4779         * config/nds32/nds32.h (machine_function): Add some fields for variadic
4780         arguments implementation.
4781
4782 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
4783
4784         * config/nds32/nds32-predicates.c
4785         (nds32_valid_stack_push_pop): Rename to ...
4786         (nds32_valid_stack_push_pop_p): ... this.
4787         * config/nds32/nds32-protos.h: Likewise.
4788         * config/nds32/predicates.md: Likewise.
4789
4790 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
4791
4792         * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
4793         (nds32_emit_stack_v3push): ... this.
4794         (nds32_gen_stack_v3pop): Rename to ...
4795         (nds32_emit_stack_v3pop): ... this and consider CFA restore
4796         information.
4797
4798 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
4799
4800         * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
4801         (nds32_emit_stack_push_multiple): ... this.
4802         (nds32_gen_stack_pop_multiple): Rename to ...
4803         (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
4804         information.
4805
4806 2014-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4807
4808         PR target/61078
4809         * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
4810         and add a second splitter to handle the remaining cases.
4811
4812 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
4813
4814         * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
4815
4816 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
4817
4818         * cfgexpand.c (label_rtx_for_bb): Change type to
4819         hash_map<basic_block, rtx_code_label *> *.
4820         (expand_gimple_basic_block): Adjust.
4821         (pass_expand::execute): Likewise.
4822
4823 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
4824
4825         * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
4826         config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
4827         config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
4828         config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
4829         config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
4830         config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
4831         stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
4832         of rtx.
4833
4834 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
4835
4836         * alloc-pool.c: Include coretypes.h.
4837         * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
4838         function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
4839         hash_set instead of htab.
4840         * ggc-page.c (in_gc): New variable.
4841         (ggc_free): Do nothing if a collection is taking place.
4842         (ggc_collect): Set in_gc appropriately.
4843         * ggc.h (gt_ggc_mx(const char *)): New function.
4844         (gt_pch_nx(const char *)): Likewise.
4845         (gt_ggc_mx(int)): Likewise.
4846         (gt_pch_nx(int)): Likewise.
4847         * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
4848         (hash_map::hash_entry::pch_nx): Likewise.
4849         (hash_map::hash_entry::pch_nx_helper): Likewise.
4850 (hash_map::hash_map): Adjust.
4851 (hash_map::create_ggc): New function.
4852 (gt_ggc_mx): Likewise.
4853 (gt_pch_nx): Likewise.
4854         * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
4855 (default_hashset_traits::pch_nx): Likewise.
4856 (hash_set::hash_entry::ggc_mx): Likewise.
4857 (hash_set::hash_entry::pch_nx): Likewise.
4858 (hash_set::hash_entry::pch_nx_helper): Likewise.
4859 (hash_set::hash_set): Adjust.
4860 (hash_set::create_ggc): New function.
4861 (hash_set::elements): Likewise.
4862 (gt_ggc_mx): Likewise.
4863 (gt_pch_nx): Likewise.
4864         * hash-table.h (hash_table::hash_table): Adjust.
4865 (hash_table::m_ggc): New member.
4866         (hash_table::~hash_table): Adjust.
4867         (hash_table::expand): Likewise.
4868         (hash_table::empty): Likewise.
4869 (gt_ggc_mx): New function.
4870         (hashtab_entry_note_pointers): Likewise.
4871 (gt_pch_nx): Likewise.
4872
4873 2014-09-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4874
4875         * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE):  New
4876         built-in definition.
4877         (XVCVUXDDP_SCALE): Likewise.
4878         (XVCVDPSXDS_SCALE): Likewise.
4879         (XVCVDPUXDS_SCALE): Likewise.
4880         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins):  Add
4881         entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
4882         VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
4883         VSX_BUILTIN_XVCVDPUXDS_SCALE.
4884         * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
4885         prototype.
4886         * config/rs6000/rs6000.c (real.h): New include.
4887         (rs6000_scale_v2df): New function.
4888         * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
4889         (UNSPEC_VSX_XVCVUXDDP): Likewise.
4890         (UNSPEC_VSX_XVCVDPSXDS): Likewise.
4891         (UNSPEC_VSX_XVCVDPUXDS): Likewise.
4892         (vsx_xvcvsxddp_scale): New define_expand.
4893         (vsx_xvcvsxddp): New define_insn.
4894         (vsx_xvcvuxddp_scale): New define_expand.
4895         (vsx_xvcvuxddp): New define_insn.
4896         (vsx_xvcvdpsxds_scale): New define_expand.
4897         (vsx_xvcvdpsxds): New define_insn.
4898         (vsx_xvcvdpuxds_scale): New define_expand.
4899         (vsx_xvcvdpuxds): New define_insn.
4900         * doc/extend.texi (vec_ctf): Add new prototypes.
4901         (vec_cts): Likewise.
4902         (vec_ctu): Likewise.
4903         (vec_splat): Likewise.
4904         (vec_div): Likewise.
4905         (vec_mul): Likewise.
4906
4907 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4908
4909         PR target/62275
4910         * config/arm/neon.md
4911         (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
4912         <v_cmp_result>): New pattern.
4913         * config/arm/iterators.md (NEON_VCVT): New int iterator.
4914         * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
4915         vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
4916         vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
4917         * config/arm/arm.c (arm_builtin_vectorized_function): Handle
4918         BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
4919
4920 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4921
4922         PR target/62275
4923         * config/arm/iterators.md (FIXUORS): New code iterator.
4924         (VCVT): New int iterator.
4925         (su_optab): New code attribute.
4926         (su): Likewise.
4927         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
4928
4929 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4930
4931         * config/aarch64/predicates.md (aarch64_comparison_operation):
4932         New special predicate.
4933         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
4934         aarch64_comparison_operation instead of matching an operator.
4935         Update operand numbers.
4936         (csinc3<mode>_insn): Likewise.
4937         (*csinv3<mode>_insn): Likewise.
4938         (*csneg3<mode>_insn): Likewise.
4939         (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
4940         * config/aarch64/aarch64.c (aarch64_get_condition_code):
4941         Return -1 instead of aborting on invalid condition codes.
4942         (aarch64_print_operand): Update aarch64_get_condition_code callsites
4943         to assert that the returned condition code is valid.
4944         * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
4945
4946 2014-09-02  Aldy Hernandez  <aldyh@redhat.com>
4947
4948         * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
4949         tree.def, and gimple.def
4950
4951 2014-09-02  Jakub Jelinek  <jakub@redhat.com>
4952             Balaji V. Iyer  <balaji.v.iyer@intel.com>
4953             Igor Zamyatin  <igor.zamyatin@intel.com>
4954
4955         * cilk-builtins.def (__cilkrts_cilk_for_32): New.
4956         (__cilkrts_cilk_for_64): Likewise.
4957         * cilk-common.c (declare_cilk_for_builtin): New function.
4958         (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
4959         __cilkrts_cilk_for_64 bultins.
4960         * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
4961         CILK_TI_F_LOOP_64.
4962         (cilk_for_32_fndecl): New define.
4963         (cilk_for_64_fndecl): Likewise.
4964         * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
4965         GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
4966         * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
4967         GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
4968         GF_OMP_FOR_COMBINED_INTO.
4969         * gimplify.c (gimplify_scan_omp_clauses): Added
4970         OMP_CLAUSE__CILK_FOR_COUNT_ case.
4971         (gimplify_adjust_omp_clauses): Ditto.
4972         (gimplify_omp_for): Added CILK_FOR case.
4973         (gimplify_expr): Ditto.
4974         * omp-low.c: Include cilk.h.
4975         (extract_omp_for_data): Set appropriate kind for
4976         GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
4977         (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
4978         (create_omp_child_function_name): Added second argument to handle
4979         cilk_for case.
4980         (cilk_for_check_loop_diff_type): New function.
4981         (expand_cilk_for_call): Likewise.
4982         (expand_cilk_for): Likewise.
4983         (create_omp_child_function): Set cilk_for_count; handle the cases when
4984         it is true; call create_omp_child_function_name with second argument.
4985         (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
4986         (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
4987         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
4988         * tree-nested.c (convert_nonlocal_omp_clauses): Added
4989         OMP_CLAUSE__CILK_FOR_COUNT_ case.
4990         (convert_local_omp_clauses): Ditto.
4991         * tree-pretty-print.c (dump_omp_clause): Added
4992         OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
4993         (dump_generic_node): Added CILK_FOR case.
4994         * tree.c (omp_clause_num_ops): New element
4995         OMP_CLAUSE__CILK_FOR_COUNT_ (1).
4996         (omp_clause_code_name): New element _Cilk_for_count_.
4997         (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
4998         * tree.def: Add tree code for CILK_FOR.
4999
5000 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
5001
5002         * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
5003         (ppc403-compare): Add "exts with dot" case.
5004         * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
5005         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
5006         * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
5007         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
5008         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
5009         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
5010         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
5011         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
5012         cell-cmp-microcoded): Similarly.
5013         * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
5014         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
5015         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
5016         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
5017         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
5018         * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
5019         * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
5020         * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
5021         (power6-compare): Add "exts with dot" case.
5022         * config/rs6000/power7.md (power7-integer, power7-compare): As before.
5023         * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
5024         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
5025
5026         * config/rs6000/predicates.md (lwa_operand): Don't allow memory
5027         if avoiding Cell microcode.
5028         * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
5029         (is_cracked_insn): Ditto.
5030         (insn_must_be_first_in_group): Ditto.
5031         * config/rs6000/rs6000.md (dot): Adjust comment.
5032         (cell_micro): Handle exts+dot.
5033         (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
5034         *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
5035         extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
5036         (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
5037         extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
5038         *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
5039         *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
5040
5041 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
5042
5043         * config/rs6000/rs6000.md (QHSI): Delete.
5044         (EXTQI, EXTHI, EXTSI): New mode iterators.
5045         (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
5046         *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
5047         *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
5048         9 anonymous instructions, and 8 splitters): Delete.
5049         (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
5050         *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
5051         *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
5052         zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
5053         *zero_extendsi<mode>2_dot2): New.
5054
5055 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
5056
5057         * config/rs6000/rs6000.md (any_extend): New code iterator.
5058         (u, su): New code attributes.
5059         (dmode, DMODE): New mode attributes.
5060         (<su>mul<mode>3_highpart): New.
5061         (*<su>mul<mode>3_highpart): New.
5062         (<su>mulsi3_highpart_le): New.
5063         (<su>muldi3_highpart_le): New.
5064         (<su>mulsi3_highpart_64): New.
5065         (<u>mul<mode><dmode>3): New.
5066         (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
5067         splitters): Delete.
5068         (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
5069         splitters): Delete.
5070
5071 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
5072
5073         * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
5074         *mulsi3_internal2, and two splitters): Delete.
5075         (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
5076         Delete.
5077         (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
5078
5079 2014-09-02  Richard Biener  <rguenther@suse.de>
5080
5081         PR tree-optimization/62695
5082         * tree-ssa-structalias.c (find_func_clobbers): Add missing
5083         vector truncate.
5084
5085 2014-09-01  Oleg Endo  <olegendo@gcc.gnu.org>
5086
5087         PR target/62312
5088         * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
5089
5090 2014-09-01  Andi Kleen  <ak@linux.intel.com>
5091
5092         * file-find.c (add_prefix_begin): Add.
5093         (do_add_prefix): Rename from add_prefix with first argument.
5094         (add_prefix): Add new wrapper.
5095         * file-find.h (add_prefix_begin): Add.
5096         * gcc-ar.c (main): Support -B option.
5097
5098 2014-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
5099
5100         * genemit.c: Include dumpfile.h.
5101         (gen_split): Print name of splitter function to dump file.
5102
5103 2014-09-01  Richard Biener  <rguenther@suse.de>
5104
5105         * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
5106         Use stack auto_vecs for constraint expressions.
5107         (find_func_aliases_for_call): Likewise.
5108         (find_func_aliases): Likewise.
5109         (find_func_clobbers): Likewise.
5110
5111 2014-09-01  Richard Biener  <rguenther@suse.de>
5112
5113         * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
5114         operands vector in most cases.  Remove redundant code.
5115
5116 2014-09-01  Olivier Hainque  <hainque@adacore.com>
5117
5118         * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
5119         $WIND_BASE instead of designating a harcoded arbitrary home dir.
5120         (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
5121
5122 2014-09-01  Richard Biener  <rguenther@suse.de>
5123
5124         * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
5125         copy_reference_ops_from_call, vn_nary_op_compute_hash,
5126         vn_reference_compute_hash, vn_reference_insert): Remove.
5127         (vn_reference_lookup_call): New function.
5128         * tree-ssa-sccvn.c (vn_reference_compute_hash,
5129         copy_reference_ops_from_ref, copy_reference_ops_from_call,
5130         vn_reference_insert, vn_nary_op_compute_hash): Make static.
5131         (create_reference_ops_from_call): Remove.
5132         (vn_reference_lookup_3): Properly update shared_lookup_references.
5133         (vn_reference_lookup_pieces): Assert that we updated
5134         shared_lookup_references properly.
5135         (vn_reference_lookup): Likewise.
5136         (vn_reference_lookup_call): New function.
5137         (visit_reference_op_call): Use it.  Avoid re-building the
5138         reference ops.
5139         (visit_reference_op_load): Remove redundant lookup.
5140         (visit_reference_op_store): Perform special tail-merging work
5141         only when possibly doing tail-merging.
5142         (visit_use): Likewise.
5143         * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
5144
5145 2014-09-01  Jakub Jelinek  <jakub@redhat.com>
5146
5147         PR target/62025
5148         * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
5149         returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
5150         (find_inc): Revert 2014-08-13 change.
5151
5152 2014-09-01  Marek Polacek  <polacek@redhat.com>
5153
5154         PR middle-end/61903
5155         * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
5156         Change the type of V to unsigned HOST_WIDE_INT.
5157
5158 2014-09-01  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5159
5160         * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
5161         the size of byte markers.
5162         (do_shift_rotate): Fix confusion between host, target and marker byte
5163         size.
5164         (verify_symbolic_number_p): Likewise.
5165         (find_bswap_or_nop_1): Likewise.
5166         (find_bswap_or_nop): Likewise.
5167
5168 2014-09-01  Olivier Hainque  <hainque@adacore.com>
5169
5170         * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
5171         INSTALL_SCRIPT and INSTALL_PROGRAM as well.
5172
5173 2014-09-01  Jakub Jelinek  <jakub@redhat.com>
5174
5175         * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
5176         * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
5177         (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
5178
5179 2014-09-01  Yury Gribov  <y.gribov@samsung.com>
5180
5181         PR sanitizer/61897
5182         PR sanitizer/62140
5183         * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
5184         (build_check_stmt): Likewise.
5185         (instrument_strlen_call): Likewise.
5186         (asan_expand_check_ifn): Likewise and fix types.
5187         (maybe_cast_to_ptrmode): New function.
5188
5189 2014-09-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
5190
5191         * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
5192
5193 2014-08-31  Gerald Pfeifer  <gerald@pfeifer.com>
5194
5195         * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
5196
5197 2014-08-30  John David Anglin  <danglin@gcc.gnu.org>
5198
5199         * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
5200         prefix to function labels when generating fast indirect calls.
5201
5202 2014-08-30  David Malcolm  <dmalcolm@redhat.com>
5203
5204         PR bootstrap/62304
5205
5206         * gcc/reorg.c (skip_consecutive_labels): Convert return type and
5207         param back from rtx_insn * to rtx.  Rename param from "label" to
5208         "label_or_return", reintroducing "label" as an rtx_insn * after
5209         we've ensured it's not a RETURN.
5210         (first_active_target_insn): Likewise for return type and param;
5211         add a checked cast to rtx_insn * once we've ensured "insn" is not
5212         a RETURN.
5213         (steal_delay_list_from_target): Convert param "pnew_thread" back
5214         from rtx_insn ** to rtx *.  Replace use of JUMP_LABEL_AS_INSN
5215         with JUMP_LABEL.
5216         (own_thread_p): Convert param "thread" back from an rtx_insn * to
5217         an rtx.  Introduce local rtx_insn * "thread_insn" with a checked
5218         cast once we've established we're not dealing with a RETURN,
5219         renaming subsequent uses of "thread" to "thread_insn".
5220         (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
5221         to JUMP_LABEL.
5222         (follow_jumps): Convert return type and param "label" from
5223         rtx_insn * back to rtx.  Move initialization of "value" to after
5224         the handling for ANY_RETURN_P, adding a checked cast there to
5225         rtx_insn *.  Convert local rtx_insn * "this_label" to an rtx and
5226         rename to "this_label_or_return", reintroducing "this_label" as
5227         an rtx_insn * once we've handled the case where it could be an
5228         ANY_RETURN_P.
5229         (fill_slots_from_thread): Rename param "thread" to
5230         "thread_or_return", converting from an rtx_insn * back to an rtx.
5231         Reintroduce name "thread" as an rtx_insn * local with a checked
5232         cast once we've handled the case of it being an ANY_RETURN_P.
5233         Convert local "new_thread" from an rtx_insn * back to an rtx.
5234         Add a checked cast when assigning to "trial" from "new_thread".
5235         Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL.  Add a
5236         checked cast to rtx_insn * from "new_thread" when invoking
5237         get_label_before.
5238         (fill_eager_delay_slots): Convert locals "target_label",
5239         "insn_at_target" from rtx_insn * back to rtx.
5240         Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
5241         (relax_delay_slots): Convert locals "trial", "target_label" from
5242         rtx_insn * back to rtx.  Convert uses of JUMP_LABEL_AS_INSN back
5243         to JUMP_LABEL.  Add a checked cast to rtx_insn * on "trial" when
5244         invoking update_block.
5245         (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
5246         JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
5247
5248         * resource.h (mark_target_live_regs): Undo erroneous conversion
5249         of second param of r214693, converting it back from rtx_insn * to
5250         rtx, since it could be a RETURN.
5251
5252         * resource.c (find_dead_or_set_registers): Similarly, convert
5253         param "jump_target" back from an rtx_insn ** to an rtx *, as we
5254         could be writing back a RETURN.  Rename local rtx_insn * "next" to
5255         "next_insn", and introduce "lab_or_return" as a local rtx,
5256         handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
5257         (mark_target_live_regs): Undo erroneous conversion
5258         of second param of r214693, converting it back from rtx_insn * to
5259         rtx, since it could be a RETURN.  Rename it from "target" to
5260         "target_maybe_return", reintroducing the name "target" as a local
5261         rtx_insn * with a checked cast, after we've handled the case of
5262         ANY_RETURN_P.
5263
5264 2014-08-29  DJ Delorie  <dj@redhat.com>
5265
5266         * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
5267         pointer size up to a power of two.
5268         * defaults.h (DWARF2_ADDR_SIZE): Round up.
5269         (POINTER_SIZE_UNITS): New, rounded up value.
5270         * dwarf2asm.c (size_of_encoded_value): Use it.
5271         (dw2_output_indirect_constant_1): Likewise.
5272         * expmed.c (init_expmed_one_conv): We now know the sizes of
5273         partial int modes.
5274         * loop-iv.c (iv_number_of_iterations): Use precision, not size.
5275         * optabs.c (expand_float): Use precision, not size.
5276         (expand_fix): Likewise.
5277         * simplify-rtx (simplify_unary_operation_1): Likewise.
5278         * tree-dfa.c (get_ref_base_and_extent): Likewise.
5279         * varasm.c (assemble_addr_to_section): Round up pointer sizes.
5280         (default_assemble_integer) Likewise.
5281         (dump_tm_clone_pairs): Likewise.
5282         * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
5283         * var-tracking.c (adjust_mems): Allow partial-int modes also.
5284         (prepare_call_arguments): Likewise.
5285         * stor-layout.c (finalize_type_size): Preserve precision.
5286         (layout_type): Use precision, not size.
5287
5288         * expr.c (convert_move): If the target has an explicit converter,
5289         use it.
5290
5291 2014-08-29  David Malcolm  <dmalcolm@redhat.com>
5292
5293         * gdbinit.in: Skip various inline functions in rtl.h when
5294         stepping.
5295
5296 2014-08-29  Richard Sandiford  <richard.sandiford@arm.com>
5297
5298         PR bootstrap/62301
5299         * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
5300
5301 2014-08-29  Richard Biener  <rguenther@suse.de>
5302
5303         PR tree-optimization/62291
5304         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
5305         exactly the vector size needed and use quick_push.
5306         (phi_translate_1): Adjust comment.
5307         (valid_in_sets): Remove block argument and remove pointless
5308         checking of NAMEs.
5309         (dependent_clean): Adjust for removal of block argument.
5310         (clean): Likewise.
5311         (compute_antic_aux): Likewise.
5312         (compute_partial_antic_aux): Likewise.
5313
5314 2014-08-29  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5315             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5316             Anna Tikhonova  <anna.tikhonova@intel.com>
5317             Ilya Tocar  <ilya.tocar@intel.com>
5318             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5319             Ilya Verbin  <ilya.verbin@intel.com>
5320             Kirill Yukhin  <kirill.yukhin@intel.com>
5321             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5322
5323         * config/i386/sse.md
5324         (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
5325         (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
5326         (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
5327         (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
5328
5329 2014-08-29  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5330             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5331             Anna Tikhonova  <anna.tikhonova@intel.com>
5332             Ilya Tocar  <ilya.tocar@intel.com>
5333             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5334             Ilya Verbin  <ilya.verbin@intel.com>
5335             Kirill Yukhin  <kirill.yukhin@intel.com>
5336             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5337
5338         * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
5339         * config/i386/sse.md
5340         (define_mode_iterator VI4_128_8_256): New.
5341         (define_mode_iterator VI2_128_4_256): Ditto.
5342         (define_mode_iterator PMOV_DST_MODE): Rename into
5343         (define_mode_iterator PMOV_DST_MODE_1): this.
5344         (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
5345         Use PMOV_DST_MODE_1 mode iterator.
5346         (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
5347         Ditto.
5348         (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
5349         Ditto.
5350         (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
5351         (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
5352         (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
5353         (define_mode_iterator PMOV_DST_MODE_2): New.
5354         (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
5355         (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
5356         (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
5357         Ditto.
5358         (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
5359         (define_mode_attr pmov_dst_3): Ditto.
5360         (define_mode_attr pmov_dst_zeroed_3): Ditto.
5361         (define_mode_attr pmov_suff_3): Ditto.
5362         (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
5363         (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
5364         (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
5365         (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
5366         (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
5367         (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
5368         (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
5369         (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
5370         (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
5371         (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
5372         (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
5373         (define_mode_attr pmov_dst_4): Ditto.
5374         (define_mode_attr pmov_dst_zeroed_4): Ditto.
5375         (define_mode_attr pmov_suff_4): Ditto.
5376         (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
5377         (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
5378         (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
5379         (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
5380         (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
5381         (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
5382         (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
5383         (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
5384         (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
5385         (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
5386         (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
5387
5388 2014-08-29  Richard Biener  <rguenther@suse.de>
5389
5390         * tree-cfg.c (verify_gimple_assign_unary): Do not allow
5391         NON_LVALUE_EXPR in gimple.
5392
5393 2014-08-29  Richard Biener  <rguenther@suse.de>
5394
5395         PR middle-end/62292
5396         * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
5397         from previous refactoring.
5398         (gimple_fold_builtin_strncpy): Likewise.
5399
5400 2014-08-29  David Malcolm  <dmalcolm@redhat.com>
5401
5402         PR bootstrap/62300
5403         * function.c (assign_parm_setup_reg): Remove erroneous checked
5404         cast to rtx_insn * on result of gen_extend_insn in favor of
5405         introducing a new local rtx "pat".
5406
5407 2014-08-29  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
5408
5409         * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
5410         to silence warning.
5411         * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
5412
5413 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
5414
5415         * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
5416         (next_insn): Likewise.
5417         * emit-rtl.c (next_insn): Likewise.
5418         (previous_insn): Likewise.
5419         * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
5420         "insn" and "next" from rtx to rtx_insn *.
5421         * config/picochip/picochip.c (picochip_reorg): Likewise for locals
5422         "insn", "insn1", "vliw_start",  "prologue_end_note",
5423         "last_insn_in_packet".
5424
5425 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
5426
5427         * shrink-wrap.h (active_insn_between): Strengthen both params from
5428         rtx to rtx_insn *.
5429         * function.c (active_insn_between): Likewise.
5430
5431 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
5432
5433         * genattr.c (main): When writing out insn-attr.h, strengthen param
5434         of dfa_clear_single_insn_cache from rtx to rtx_insn *.
5435         * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
5436         writing out the definition of dfa_clear_single_insn_cache to the
5437         generated insn-automata.c
5438
5439 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
5440
5441         * resource.h (clear_hashed_info_for_insn): Strengthen param from
5442         rtx to rtx_insn *.
5443         (incr_ticks_for_insn): Likewise.
5444         (init_resource_info): Likewise.
5445
5446         * resource.c (init_resource_info): Likewise.
5447         (clear_hashed_info_for_insn): Likewise.
5448         (incr_ticks_for_insn): Likewise.
5449
5450         * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
5451         rtx to rtx_insn *.
5452         (steal_delay_list_from_target): Use methods of "seq".
5453         (try_merge_delay_insns): Use methods of "merged_insns".
5454         (update_block): Strengthen param "insn" from rtx to rtx_insn *.
5455         (reorg_redirect_jump): Likewise for param "jump".
5456
5457 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
5458
5459         * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
5460         rtx to rtx_insn *.
5461         * config/s390/s390.c (s390_split_branches): Eliminate top-level
5462         local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
5463         "set_insn".
5464         (s390_mainpool_finish): In three places, split out a local rtx
5465         "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
5466         "insn".  Strengthen local "pool_end" from rtx to rtx_code_label *
5467          and split another local rtx "insn" out into rtx "pat" and
5468         rtx_insn * "insn".
5469         * config/sh/sh.c (output_branchy_insn): Rather than working
5470         directly on operands[9], introduce local rtx_code_label *
5471         variables named "lab" in two places, working on them, and then
5472         assigning them to operands[9], so that the intervening operations
5473         are known by the type system to be on insns.
5474
5475 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
5476
5477         * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
5478         const rtx_insn *.
5479
5480         * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
5481         in invocation of INSN_HAS_LOCATION.
5482
5483 2014-08-28  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5484
5485         * config/rs6000/altivec.h (vec_xl): New #define.
5486         (vec_xst): Likewise.
5487         * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
5488         (XXSPLTD_V2DI): Likewise.
5489         (DIV_V2DI): Likewise.
5490         (UDIV_V2DI): Likewise.
5491         (MUL_V2DI): Likewise.
5492         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
5493         entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
5494         VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
5495         VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
5496         * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
5497         (UNSPEC_VSX_DIVSD): Likewise.
5498         (UNSPEC_VSX_DIVUD): Likewise.
5499         (UNSPEC_VSX_MULSD): Likewise.
5500         (vsx_mul_v2di): New insn-and-split.
5501         (vsx_div_v2di): Likewise.
5502         (vsx_udiv_v2di): Likewise.
5503         (vsx_xxspltd_<mode>): New insn.
5504
5505 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
5506
5507         * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
5508         NEXT_INSN.
5509         (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
5510         (NEXT_INSN): Likewise.
5511         (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
5512         (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
5513         const rtx_insn *.
5514         (no_labels_between_p): Likewise for both params.
5515
5516         * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
5517         cast when using NEXT_INSN on operands[2].
5518         * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
5519         "insn" from rtx to rtx_insn *, adding a checked cast.
5520         (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
5521         rtx_insn *.
5522         * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
5523         for third param.
5524         (arc_text_label): Likewise for param "insn".
5525         * config/arc/arc.c (arc_expand_epilogue): Likewise for local
5526         "insn".
5527         (arc_ccfsm_record_condition): Likewise for param "jump".
5528         (arc_text_label): Likewise for local "label".
5529         * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
5530         Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
5531         a method for typesafety.  Add a checked cast.
5532         * config/arc/constraints.md (Clb): Add a checked cast when getting
5533         the CODE_LABEL from a LABEL_REF.
5534         * config/arm/arm.c (require_pic_register): Strengthen locals
5535         "seq", "insn" from rtx to rtx_insn *.
5536         (create_fix_barrier): Likewise for locals "selected", "next".
5537         (thumb1_reorg): Likewise for locals "prev", "insn".
5538         (arm_expand_prologue): Likewise for local "last".
5539         (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
5540         operands[0].
5541         (thumb2_output_casesi): Likewise for operands[2].
5542         * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
5543         strengthen local "insn" from rtx to rtx_insn *.
5544         * config/bfin/bfin.c (find_next_insn_start): Likewise for return
5545         type and param "insn".
5546         (find_prev_insn_start): Likewise.
5547         (hwloop_optimize): Likewise for locals "insn", "last_insn",
5548         "prev".
5549         (gen_one_bundle): Likewise for loal "t".
5550         (find_load): Likewise for param "insn".
5551         (workaround_speculation): Likewise for locals "insn", "next",
5552         "target", "next_tgt".
5553         * config/c6x/c6x.c (assign_reservations): Likewise for both params
5554         and for locals "insn", "within", "last".
5555         (count_unit_reqs): Likewise for params "head", "tail" and local
5556         "insn".
5557         (try_rename_operands): Likewise for params "head", "tail".
5558         (reshuffle_units): Likewise for locals "head", "tail", "insn".
5559         (struct c6x_sched_context): Likewise for fields
5560         "last_scheduled_insn", "last_scheduled_iter0".
5561         (init_sched_state): Replace NULL_RTX with NULL.
5562         (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
5563         to rtx_insn *.
5564         (undo_split_delayed_nonbranch): Likewise for param and for local
5565         "prev".
5566         (conditionalize_after_sched): Likewise for local "insn".
5567         (bb_earliest_end_cycle): Likewise.
5568         (filter_insns_above): Likewise for locals "insn", "next".
5569         (hwloop_optimize): Remove redundant checked cast.
5570         (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
5571         * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
5572         NULL_RTX with NULL.
5573         (cris_simple_epilogue): Likewise.
5574         (cris_expand_prologue): Likewise.
5575         (cris_expand_epilogue): Likewise.
5576         * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
5577         local "insn" from rtx to rtx_insn *.
5578         (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
5579         (struct frv_packet_group): Likewise for the elements within array
5580         fields "insns", "sorted", and for field "nop".
5581         (frv_packet): Likewise for the elements within array field
5582         "insns".
5583         (frv_add_insn_to_packet): Likewise for param "insn".
5584         (frv_insert_nop_in_packet): Likewise for param "insn" and local
5585         "last".
5586         (frv_for_each_packet): Likewise for locals "insn", "next_insn".
5587         (frv_sort_insn_group_1): Likewise for local "insn".
5588         (frv_optimize_membar_local): Likewise.
5589         (frv_align_label): Likewise for locals "x", "last", "barrier",
5590         "label".
5591         * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
5592         local.
5593         (ia64_sched_init): Likewise for local "insn".
5594         (scheduled_good_insn): Likewise for param "last".
5595         (struct _ia64_sched_context): Likewise for field
5596         "last_scheduled_insn".
5597         (ia64_init_sched_context): Replace NULL_RTX with NULL.
5598         (struct bundle_state): Likewise for field "insn".
5599         (issue_nops_and_insn): Likewise for param "insn".
5600         (get_next_important_insn): Likewise for return type and both
5601         params.
5602         (ia64_add_bundle_selector_before): Likewise for param "insn".
5603         (bundling): Likewise for params "prev_head_insn", "tail" and
5604         locals "insn", "next_insn", "b".  Eliminate top-level local rtx
5605         "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
5606         * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
5607         Strengthen final param from rtx to rtx_insn *.
5608         (iq2000_move_1word): Likewise for second param.
5609         * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
5610         param "cur_insn" and local "next_insn".
5611         (iq2000_move_1word): Likewise for param "insn".
5612         * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
5613         casts when using NEXT_INSN on operands[1].
5614         * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
5615         "insn" from rtx to rtx_insn *.
5616         * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
5617         "x", introducing local rtx_insn * "insn" for when working with the
5618         CODE_LABEL of the LABEL_REF.
5619         (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
5620         rtx_insn *.
5621         * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
5622         param.
5623         * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
5624         type.
5625         (conditionalize_block): Likewise for return type and param.
5626         (mcore_is_dead): Likewise for param "first" and local "insn".
5627         (emit_new_cond_insn): Likewise for return type.
5628         (conditionalize_block): Likewise for return type, param, and
5629         locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
5630         "newinsn".
5631         (conditionalize_optimization): Likewise for local "insn".
5632         * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
5633         using NEXT_INSN.
5634         * config/microblaze/microblaze.md: Add checked casts when using
5635         NEXT_INSN.
5636         * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
5637         rtx "insn" in favor of various more tightly-scoped rtx "insn" and
5638         and rtx_insn * "insn".
5639         * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
5640         checked cast when using NEXT_INSN on operands[2].
5641         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
5642         local "insn" from rtx to rtx_insn *.
5643         * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
5644         Likewise.
5645         * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
5646         Add a checked cast when using NEXT_INSN on operands[1].
5647         * config/pa/pa-protos.h (pa_following_call): Strengthen param from
5648         rtx to rtx_insn *.
5649         (pa_output_cbranch): Likewise for final param.
5650         (pa_output_lbranch): Likewise for second param.
5651         (pa_output_bb): Likewise for third param.
5652         (pa_output_bvb): Likewise.
5653         (pa_output_dbra): Likewise for second param.
5654         (pa_output_movb): Likewise.
5655         (pa_output_parallel_movb): Likewise.
5656         (pa_output_parallel_addb): Likewise.
5657         (pa_output_millicode_call): Likewise for first param.
5658         (pa_output_mul_insn): Likewise for second param.
5659         (pa_output_div_insn): Likewise for third param.
5660         (pa_output_mod_insn): Likewise for second param.
5661         (pa_jump_in_call_delay): Likewise for param.
5662         * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
5663         (pa_output_div_insn): Likewise.
5664         (pa_output_mod_insn): Likewise.
5665         (pa_output_cbranch): Likewise.
5666         (pa_output_lbranch): Likewise.
5667         (pa_output_bb): Likewise.
5668         (pa_output_bvb): Likewise.
5669         (pa_output_dbra): Likewise.
5670         (pa_output_movb): Likewise.
5671         (pa_output_millicode_call): Likewise; use method of rtx_sequence *
5672         to simplify and for typesafety.
5673         (pa_output_call): Use method of rtx_sequence *.
5674         (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
5675         (pa_jump_in_call_delay): Likewise.
5676         (pa_output_parallel_movb): Likewise.
5677         (pa_output_parallel_addb): Likewise.
5678         (pa_following_call): Likewise.
5679         (pa_combine_instructions): Likewise for locals "anchor",
5680         "floater".
5681         (pa_can_combine_p): Likewise for params "anchor", "floater" and
5682         locals "start", "end".
5683         * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
5684         param "insn" and local "local_insn".
5685         (picochip_final_prescan_insn): Likewise for local "local_insn".
5686         * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
5687         local "insn".
5688         (uses_TOC): Likewise.
5689         * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
5690         (s390_mainpool_finish): Eliminate top-level local rtx "insn",
5691         splitting out to more tightly-scoped locals, 3 as rtx and one as
5692         rtx_insn *.
5693         (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
5694         to rtx_insn *.
5695         (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
5696         where needed.
5697         * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
5698         to rtx_insn *.
5699         (fixup_addr_diff_vecs): Likewise.
5700         (reg_unused_after): Likewise for param 2.
5701         (sh_can_redirect_branch): Likewise for both params.
5702         (check_use_sfunc_addr): Likewise for param 1.
5703         * config/sh/sh.c (fixup_mova): Likewise for local "worker".
5704         (find_barrier): Likewise for local "last_got".
5705         (gen_block_redirect): Likewise for return type, param "jump" and
5706         locals "prev", "scan", "next", "insn".
5707         (struct far_branch): Likewise for fields "near_label",
5708         "insert_place", "far_label".
5709         (gen_far_branch): Likewise for local "jump".
5710         (fixup_addr_diff_vecs): Likewise for param "first" and locals
5711         "insn", "prev".
5712         (barrier_align): Likewise for param and for locals "prev", "x".
5713         Introduce local rtx_sequence * "prev_seq" and use insn method for
5714         typesafety and clarity.
5715         (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
5716         (get_dest_uid): Likewise for local "dest".
5717         (split_branches): Likewise for locals "next", "beyond", "label",
5718         "block", "far_label".  Add checked casts when assigning to
5719         bp->far_label and "far_label".
5720         (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
5721         (sequence_insn_p): Likewise.
5722         (mark_constant_pool_use): Likewise for locals "insn", "lab".  Add a
5723         more loop-scoped rtx "insn" when walking LABEL_REFS.
5724         (sh_can_redirect_branch): Strengthen both params from rtx to
5725         rtx_insn *.
5726         (check_use_sfunc_addr): Likewise for param "insn".  Introduce a
5727         new local rtx_sequence * "seq" via a dyn_cast, and use a method
5728         for clarity and typesafety.
5729         * config/sh/sh.md (define_expand "epilogue"): Strengthen local
5730         "insn" from rtx to rtx_insn *.
5731         (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
5732         when using NEXT_INSN on the CODE_LABEL in operands[2].
5733         (define_insn "casesi_worker_2"): Likewise.
5734         (define_insn "casesi_shift_media"): Likewise.
5735         (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
5736         operands[3].
5737         * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
5738         Strengthen field "insn" from rtx to rtx_insn *.
5739         (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
5740         (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
5741         param "start_insn" and local "start_insn".
5742         * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
5743         field "insn".
5744         (find_set_of_reg_bb): Likewise for param "insn".
5745         (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
5746         (trace_reg_uses): Likewise for param "start_insn".
5747         (sh_treg_combine::cbranch_trace): Likewise for field
5748         "cbranch_insn".
5749         (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
5750         param "insn".
5751         (sh_treg_combine::record_set_of_reg): Likewise for param
5752         "start_insn" and local "i".
5753         (sh_treg_combine::can_remove_cstore): Likewise for local
5754         "prev_insn".
5755         (sh_treg_combine::try_optimize_cbranch): Likewise for param
5756         "insn".
5757         (sh_treg_combine::execute): Likewise for local "i".
5758         * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
5759         param.
5760         (sparc_check_64): Likewise for second param.
5761         * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
5762         locals "insn", "next".  Introduce local rtx_sequence * "seq" via a
5763         dyn_cast, using its insn method for typesafety and clarity.
5764         (empty_delay_slot): Strengthen param "insn" from rtx to
5765         rtx_insn *.
5766         (set_extends): Likewise.
5767         (sparc_check_64): Likewise.
5768         * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
5769         for locals "seq", "last_insn".
5770         (combine_bnp): Likewise for param "insn".
5771         (xstormy16_reorg): Likewise for local "insn".
5772         * config/v850/v850.c (substitute_ep_register): Likewise for params
5773         "first_insn", "last_insn" and local "insn".
5774         (v850_reorg): Likewise for fields "first_insn", "last_insn" within
5775         elements of "regs" array, and local "insn".
5776         * except.c (emit_note_eh_region_end): Likewise for param "insn".
5777         * final.c (final_sequence): Strengthen this global from rtx to
5778         rtx_sequence *.
5779         (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
5780         rtx_insn *.
5781         (final_scan_insn): Update assignment to "final_sequence" to be
5782         from "seq", the cast version of "body", for type-safety.
5783         * function.c (assign_parm_setup_reg): Strengthen locals "insn",
5784         "insns" from rtx to rtx_insn *.
5785         (thread_prologue_and_epilogue_insns): Likewise for local "seq".
5786         * genattr.c (main): When writing out generated insn-attr.h,
5787         strengthen params 1 and 3 of eligible_for_delay,
5788         eligible_for_annul_true, eligible_for_annul_false from rtx to
5789         rtx_insn *.
5790         * genattrtab.c (write_eligible_delay): Likewise when writing out
5791         generated insn-attrtab.c; also local "insn" the generated
5792         functions.
5793         * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
5794         to rtx_insn *.
5795         * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
5796         "start_label" from rtx to rtx_insn *.
5797         * ira.c (decrease_live_ranges_number): Likewise for local "p".
5798         (ira_update_equiv_info_by_shuffle_insn): Likewise for param
5799         "insns" and local "insn".
5800         (validate_equiv_mem): Likewise for param "start" and local "insn".
5801         (memref_used_between_p): Likewise for params "start", "end" and
5802         local "insn".
5803         * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
5804         final param.
5805         * loop-doloop.c (doloop_optimize): Within region guarded by
5806         INSN_P (doloop_pat), introduce a new local rtx_insn *
5807         "doloop_insn" via a checked cast, and use it for typesafety,
5808         eventually writing the value back into doloop_pat.
5809         * output.h (final_sequence): Strengthen this global from rtx to
5810         rtx_sequence *.
5811         * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
5812         reintroducing "insn" as an rtx_insn * via a checked cast.
5813         Strengthen param "attempt" and local "new_insn"from rtx to
5814         rtx_insn *.
5815         (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
5816         to rtx_insn *.
5817         * ree.c (emit_note_eh_region_end): Likewise for local "insn".
5818         * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
5819         "p" in favor of more tightly-scoped replacements, sometimes rtx
5820         and sometimes rtx_insn *, as appropriate.
5821         (delete_output_reload): Eliminate top-level rtx "i1", splitting
5822         into two loop-scoped locals, one an rtx, the other an rtx_insn *.
5823         * reorg.c (delete_scheduled_jump): Add checked cast.  Strengthen
5824         local "trial" from rtx to rtx_insn *.
5825         (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
5826         rtx to rtx_insn *.  Strenghten local "pat" from rtx to
5827         rtx_sequence * and use methods for clarity and typesafety.
5828         (redirect_with_delay_list_safe_p): Strengthen param "jump" from
5829         rtx to rtx_insn *.  Strenghten local "li" from rtx to
5830         rtx_insn_list * and use its methods for clarity and typesafety.
5831         (steal_delay_list_from_target): Strengthen param "insn" from rtx
5832         to rtx_insn *.
5833         (steal_delay_list_from_fallthrough): Likewise.
5834         (try_merge_delay_insns): Likewise for param "thread" and locals
5835         "trial", "next_trial", "delay_insn".
5836         (redundant_insn): Likewise for param "target" and local "trial".
5837         (own_thread_p): Likewise for param "thread" and locals
5838         "active_insn", "insn".
5839         (get_label_before): Likewise for param "insn".
5840         (fill_simple_delay_slots): Likewise for local "new_label"; use
5841         JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
5842         (label_before_next_insn): Strengthen return type and local "insn"
5843         from rtx to rtx_insn *.
5844         (relax_delay_slots): Likewise for locals "other", "tmp".
5845         (make_return_insns): Likewise for param "first" and locals "insn",
5846         "jump_insn", "prev".  Move declaration of "pat" to its assignment
5847         and strengthen from rtx to rtx_sequence *.  Use its methods for
5848         clarity and typesafety.
5849         * rtlanal.c (no_labels_between_p): Strengthen params from
5850         const_rtx to const rtx_insn *.  Strengthen local "p" from rtx to
5851         rtx_insn *.
5852         (reg_used_between_p): Strengthen params "from_insn", "to_insn"
5853         from const_rtx to const rtx_insn *.
5854         (reg_set_between_p): Rename param "from_insn" to
5855         "uncast_from_insn", and reintroduce "from_insn" as a
5856         const rtx_insn * via a checked cast.
5857         (modified_between_p): Likewise for param "start" as "uncast_start".
5858         (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
5859         * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
5860         "tmp", head" from rtx to rtx_insn *.
5861         (recompute_rev_top_order): Likewise for local "insn".
5862         * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
5863         * store-motion.c (build_store_vectors): Likewise for local "insn".
5864         Strengthen local "st" from rtx to rtx_insn_list * and use methods
5865         for clarity and typesafety.
5866         * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
5867         rtx to rtx_insn *.
5868         (computation_cost): Likewise for local "seq".
5869         (get_address_cost): Likewise.
5870
5871 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
5872
5873         * rtl.h (tablejump_p): Strengthen first param from const_rtx to
5874         const rtx_insn *.
5875         (label_is_jump_target_p): Likewise for second param.
5876
5877         * rtlanal.c (tablejump_p): Likewise for param "insn".
5878         (label_is_jump_target_p): Likewise for param "jump_insn".
5879
5880 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
5881
5882         * rtl.h (find_first_parameter_load): Strengthen return type and
5883         both params from rtx to rtx_insn *.
5884         * rtlanal.c (find_first_parameter_load): Strengthen return type,
5885         both params and locals "before", "first_set" from rtx to
5886         rtx_insn *.  Remove now-redundant cast.
5887         * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
5888
5889 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
5890
5891         * rtl.h (find_last_value): Delete.
5892         * rtlanal.c (find_last_value): Delete.
5893
5894 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
5895
5896         * cfgexpand.c (pass_expand::execute): Strengthen local "after"
5897         from rtx to rtx_insn *.
5898         * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
5899         rtx "note" with new local rtx_insn * "new_head" when calculating
5900         head insn of new basic block.
5901         * combine.c (combine_split_insns): Strengthen return type and local
5902         "ret" from rtx to rtx_insn *.
5903         (likely_spilled_retval_p): Likewise for locals "use" and "p".
5904         (try_combine): Eliminate local "m_split", splitting into new
5905         locals "m_split_insn" and "m_split_pat".
5906         (find_split_point): Strengthen local "seq" from rtx into
5907         rtx_insn *.
5908         * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
5909         locals "label", "branch".
5910         * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
5911         for local "insn".
5912         (define_expand "umulsi3_highpart"): Likewise for local "insn".
5913         * dse.c (note_add_store_info): Likewise for fields "first",
5914         "current".
5915         (note_add_store): Likewise for local "insn".
5916         (emit_inc_dec_insn_before): Likewise for locals "insn",
5917         "new_insn", "cur".
5918         (find_shift_sequence): Likewise for locals "shift_seq", "insn".
5919         (replace_read): Likewise for locals "insns", "this_insn".
5920         * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
5921         (notice_eh_throw): Likewise for param "insn".
5922         (before_next_cfi_note): Likewise for return type, param, and local
5923         "prev".
5924         (connect_traces): Likewise for local "note".
5925         * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
5926         (verify_rtl_sharing): Likewise.
5927         (unshare_all_rtl_in_chain): Likewise for param "insn".
5928         (get_first_nonnote_insn): Likewise for local "insn".
5929         (get_last_nonnote_insn): Likewise.  Introduce local rtx_sequence *
5930         "seq" and use its methods to clarify things.
5931         (next_insn): Strengthen return type from rtx to rtx_insn *.
5932         Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
5933         local rtx_insn * using a checked cast, dropping a checked cast
5934         made redundant by this change.  Use a cast to and method of
5935         rtx_sequence to clarify the code.
5936         (previous_insn): Rename param "insn" to "uncast_insn" and
5937         reintroduce "insn" as a local rtx_insn * using a checked cast,
5938         dropping a checked cast made redundant by this change.  Use a cast
5939         to and method of rtx_sequence to clarify the code.
5940         (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
5941         reintroduce "insn" as a local rtx_insn * using a checked cast,
5942         dropping a checked cast made redundant by this change.
5943         (next_nonnote_insn_bb): Likewise.
5944         (prev_nonnote_insn): Likewise.
5945         (prev_nonnote_insn_bb): Likewise.
5946         (next_nondebug_insn): Likewise.
5947         (prev_nondebug_insn): Likewise.
5948         (next_nonnote_nondebug_insn): Likewise.
5949         (prev_nonnote_nondebug_insn): Likewise.
5950         (next_real_insn): Likewise.
5951         (prev_real_insn): Likewise.
5952         (next_active_insn): Likewise.
5953         (prev_active_insn): Likewise.
5954         (next_cc0_user): Likewise.  Use rtx_sequence and a method for
5955         clarity.
5956         (prev_cc0_setter): Likewise.
5957         (try_split): Rename param "trial" to "uncast_trial" and
5958         reintroduce "insn" as a local rtx_insn * using a checked cast,
5959         dropping checked casts made redundant by this change.
5960         Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
5961         rtx to rtx_insn *.
5962         (remove_insn): Rename param "insn" to "uncast_insn" and
5963         reintroduce "insn" as a local rtx_insn * using a checked cast.
5964         (emit_pattern_after_setloc): Likewise for param "after", as
5965         "uncast_after".
5966         (emit_pattern_after): Likewise.  Strengthen local "prev" from
5967         rtx to rtx_insn *.
5968         (emit_pattern_before_setloc): Rename param "before" to
5969         "uncast_before" and reintroduce "before" as a local rtx_insn *
5970         using a checked cast.  Strengthen locals "first", "last" from
5971         rtx to rtx_insn *.
5972         (emit_pattern_before): Likewise rename/cast param "before" to
5973         "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
5974         * except.c (copy_reg_eh_region_note_forward): Strengthen param
5975         "first" and local "insn" from rtx to rtx_insn *.
5976         (copy_reg_eh_region_note_backward): Likewise for param "last"
5977         and local "insn".
5978         * expr.c (fixup_args_size_notes): Rename param "last" to
5979         "uncast_last" and reintroduce "last" as a local rtx_insn *
5980         using a checked cast.  Strengthen local "insn" from rtx to
5981         rtx_insn *.
5982         * function.c (set_insn_locations): Strengthen param "insn" from
5983         rtx to rtx_insn *.
5984         (record_insns): Likewise for param "insns" and local "tmp".
5985         (active_insn_between): Rename param "tail" to
5986         "uncast_tail" and reintroduce "tail" as a local rtx_insn *
5987         using a checked cast.
5988         (thread_prologue_and_epilogue_insns): Split out top-level local
5989         rtx "seq" into three different rtx_insn * locals.  Strengthen
5990         local "prologue_seq" from rtx to rtx_insn *.
5991         * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
5992         from rtx to rtx_insn *.
5993         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
5994         (priority): Likewise for locals "prev_first", "twin".
5995         (setup_insn_max_reg_pressure): Likewise for param "after".
5996         (sched_setup_bb_reg_pressure_info): Likewise.
5997         (no_real_insns_p): Strengthen params from const_rtx to
5998         const rtx_insn *.
5999         (schedule_block): Strengthen local "next_tail" from rtx to
6000         rtx_insn *.
6001         * ifcvt.c (find_active_insn_before): Strengthen return type and
6002         param "insn" from rtx to rtx_insn *.
6003         (find_active_insn_after): Likewise.
6004         (cond_exec_process_insns): Likewise for param "start" and local "insn".
6005         (cond_exec_process_if_block): Likewise for locals "then_start",
6006         "then_end", "else_start", "else_end", "insn", "start", "end", "from".
6007         (noce_process_if_block): Likewise for local "jump".
6008         (merge_if_block): Likewise for two locals named "end".
6009         (cond_exec_find_if_block): Likewise for local "last_insn".
6010         * jump.c (delete_related_insns): Rename param "insn" to
6011         "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
6012         checked cast.  Strengthen local "p" from rtx to rtx_insn *.
6013         * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
6014         NULL.
6015         (split_reg): Likewise.
6016         * lra.c (lra_process_new_insns): Likewise.
6017         * modulo-sched.c (permute_partial_schedule): Strengthen param
6018         "last" from rtx to rtx_insn *.
6019         * optabs.c (add_equal_note): Likewise for param "insns" and local
6020         "last_insn".
6021         (expand_binop_directly): Add checked casts to rtx_insn * within
6022         NEXT_INSN (pat) uses.
6023         (expand_unop_direct): Likewise.
6024         (maybe_emit_unop_insn): Likewise.
6025         * recog.c (peep2_attempt): Strengthen locals "last",
6026         "before_try", "x" from rtx to rtx_insn *.
6027         * reorg.c (optimize_skip): Strengthen return type and local
6028         "delay_list" from rtx to rtx_insn_list *.  Strengthen param "insn"
6029         and locals "trial", "next_trial" from rtx to rtx_insn *.
6030         * resource.c (next_insn_no_annul): Strengthen return type and
6031         param "insn" from rtx to rtx_insn *.  Use a cast to and method of
6032         rtx_sequence to clarify the code.
6033         (mark_referenced_resources): Add a checked cast to rtx_insn *
6034         within PREV_INSN (x).
6035         (find_dead_or_set_registers): Strengthen return type, param
6036         "target", locals "insn", "next", "jump_insn", "this_jump_insn"
6037         from rtx to rtx_insn *.  Strengthen param "jump_target" from rtx *
6038         to rtx_insn **.
6039         (mark_target_live_regs): Strengthen params "insns" and "target",
6040         locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
6041         to rtx_insn *.  Use cast to and method of rtx_sequence to clarify
6042         the code.
6043         * resource.h (mark_target_live_regs): Strengthen params 1 and 2
6044         from rtx to rtx_insn *.
6045         * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
6046         from rtx to rtx_insn *.
6047         (copy_reg_eh_region_note_backward): Likewise.
6048         (unshare_all_rtl_in_chain): Likewise for sole param.
6049         (dump_rtl_slim): Strengthen second and third params from const_rtx
6050         to const rtx_insn *.
6051         * sched-deps.c (sched_free_deps): Strengthen params "head" and
6052         "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
6053         * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
6054         "next_tail" from rtx to rtx_insn *.
6055         (begin_move_insn): Likewise for local "next".
6056         * sched-int.h (sched_free_deps): Likewise for first and second
6057         params.
6058         (no_real_insns_p): Strengthen both params from const_rtx to
6059         const rtx_insn *.
6060         (sched_setup_bb_reg_pressure_info): Strengthen second params from
6061         rtx to rtx_insn *.
6062         * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
6063         "next_tail".
6064         * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
6065         and locals "insn", "tail" from const_rtx to const rtx_insn *.
6066         (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
6067         rtx_insn *.
6068         (debug_rtl_slim): Strengthen params "first" and "last" from
6069         const_rtx to const rtx_insn *.
6070         * shrink-wrap.c (try_shrink_wrapping): Strengthen param
6071         "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
6072         (convert_to_simple_return): Likewise for param "returnjump".
6073         * shrink-wrap.h (try_shrink_wrapping): Likewise for param
6074         "prologue_seq".
6075         (convert_to_simple_return): Likewise for param "returnjump".
6076         * valtrack.c (propagate_for_debug): Likewise for params
6077         "insn", "last".
6078         * valtrack.h (propagate_for_debug): Likewise for second param.
6079
6080 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
6081
6082         * output.h (insn_current_reference_address): Strengthen param
6083         from rtx to rtx_insn *.
6084         * final.c (insn_current_reference_address): Likewise.
6085
6086 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
6087
6088         * basic-block.h (inside_basic_block_p): Strengthen param from
6089         const_rtx to const rtx_insn *.
6090         * cfgbuild.c (inside_basic_block_p): Likewise.
6091
6092 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
6093
6094         * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
6095         rtx_insn *.
6096         (get_trace_info): Likewise for param "insn".
6097         (save_point_p): Likewise.
6098         (maybe_record_trace_start): Likewise for both params.
6099         (maybe_record_trace_start_abnormal): Likewise.
6100         (create_trace_edges): Likewise for sole param and for three of the
6101         locals named "lab".
6102         (scan_trace): Strengthen local "prev", "insn", "control" from rtx
6103         to rtx_insn *, and update a call to pat->element to pat->insn.
6104
6105 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
6106
6107         * function.h (struct expr_status): Convert field "x_forced_labels"
6108         from rtx_expr_list * to rtx_insn_list *.
6109
6110         * cfgbuild.c (make_edges): Convert local "x" from an
6111         rtx_expr_list * to an rtx_insn_list *, replacing use of
6112         "element" method with "insn" method.
6113         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
6114         * except.c (sjlj_emit_dispatch_table): Replace use of
6115         gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
6116         forced_labels.
6117         * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
6118         rtx_expr_list * to an rtx_insn_list *, replacing use of
6119         "element" method with "insn" method.
6120         * reload1.c (set_initial_label_offsets): Likewise for local "x".
6121         * stmt.c (label_rtx): Strengthen local "ref" from rtx to
6122         rtx_insn *, adding a checked cast.  Replace use of
6123         gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
6124         forced_labels.
6125         (expand_label): Likewise for local "label_r".
6126
6127 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
6128
6129         * function.h (struct rtl_data): Convert field
6130         "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
6131         rtx_insn_list *.
6132         * rtl.h (remove_node_from_insn_list): New prototype.
6133
6134         * builtins.c (expand_builtin): When prepending to
6135         nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
6136         gen_rtx_EXPR_LIST.
6137         * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
6138         to rtx_insn_list *, and use its "insn" method rather than
6139         "element" method.
6140         * cfgrtl.c (delete_insn): Use new function
6141         remove_node_from_insn_list rather than
6142         remove_node_from_expr_list.
6143         (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
6144         to rtx_insn_list *, and use its "insn" method rather than
6145         "element" method.
6146         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
6147         * reload1.c (set_initial_label_offsets): Likewise for local "x".
6148         * rtlanal.c (remove_node_from_insn_list): New function, adapted
6149         from remove_node_from_expr_list.
6150         * stmt.c (expand_label): When prepending to
6151         nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
6152         gen_rtx_EXPR_LIST.
6153
6154 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
6155
6156         * function.h (struct rtl_data): Strengthen fields "x_return_label"
6157         and "x_naked_return_label" from rtx to rtx_code_label *.
6158
6159 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
6160
6161         * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
6162         (SET_NEXT_INSN): Likewise.
6163         (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
6164
6165         * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
6166         rtx * to rtx_insn **.  Introduce a new local rtx "seq", using it
6167         to split out the SEQUENCE from local "bundle", strengthening the
6168         latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
6169         Strengthen locals "t" and "insn" from rtx to rtx_insn *.
6170         (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
6171         and the type of the elements of the "slot" array from rtx to
6172         rtx_insn *.
6173         (reorg_split_calls): Likewise for locals "insn" and "next", and
6174         the type of the elements of the "slot" array.
6175
6176         * config/frv/frv.c (frv_nops): Likewise for the elements of this
6177         array.
6178         (frv_function_prologue): Likewise for locals "insn", "next",
6179         "last_call".
6180         (frv_register_nop): Introduce a local "nop_insn" to be the
6181         rtx_insn * containing rtx "nop".
6182
6183         * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
6184         used as an insn and sometimes as a pattern, so rename it to
6185         "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
6186         using it where dealing with the core insn.
6187
6188         * config/picochip/picochip.c (reorder_var_tracking_notes):
6189         Strengthen locals "insn", "next", "last_insn", "queue",
6190         "next_queue", "prev" from rtx to rtx_insn *.
6191
6192         * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
6193         the second param is an rtx_insn ** rather than an rtx **.
6194         (link_insn_into_chain): Strengthen locals "seq" and "sequence"
6195         from rtx to rtx_sequence *, and introduce local named "sequence",
6196         using methods of rtx_sequence to clarify the code.
6197         (remove_insn): Introduce local rtx_sequence * named "sequence" and
6198         use its methods.
6199         (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
6200         Rename param "after" to "uncast_after", reintroducing "after" as a
6201         local rtx_insn * with a checked cast.
6202         (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
6203         reintroducing "after" as a local rtx_insn * with a checked cast.
6204         Strengthen local "last" from rtx to rtx_insn * and remove the
6205         now-redundant checked casts.
6206         (copy_delay_slot_insn): Strengthen return type and param from rtx
6207         to rtx_insn *.
6208
6209         * haifa-sched.c (reemit_notes): Strengthen params "insn" and
6210         "last" from rtx to rtx_insn *.
6211
6212 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
6213
6214         * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
6215         param from rtx to rtx_insn *.
6216
6217         * emit-rtl.c (copy_delay_slot_insn): Likewise.
6218
6219         * reorg.c (skip_consecutive_labels): Strengthen return type, param
6220         and local "insn" from rtx to rtx_insn *.
6221         (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
6222         (unfilled_slots_next): Likewise.
6223         (function_return_label): Strengthen from rtx to rtx_code_label *.
6224         (function_simple_return_label): Likewise.
6225         (first_active_target_insn): Strengthen return type and param from
6226         rtx to rtx_insn *.
6227         (find_end_label): Strengthen return type from rtx to
6228         rtx_code_label *; strengthen locals as appropriate.
6229         (emit_delay_sequence): Strengthen return type, param "insn" and
6230         local "seq_insn" from rtx to rtx_insn *.  Strengthen param "list"
6231         and local "li" from rtx to rtx_insn_list *, using methods of
6232         rtx_insn_list for clarity and typesafety.
6233         (add_to_delay_list): Strengthen return type and param "insn" from
6234         rtx to rtx_insn *.  Strengthen param "delay_list" from rtx to
6235         rtx_insn_list * and use methods of rtx_insn_list.
6236         (delete_from_delay_slot): Strengthen return type, param "insn",
6237         locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
6238         Strengthen local "seq" from rtx to rtx_sequence *, and local
6239         "delay_list" from rtx to rtx_insn_list *, using methods of
6240         rtx_sequence for clarity and type-safety.
6241         (delete_scheduled_jump): Add checked cast when invoking
6242         delete_from_delay_slot.  Strengthen local "trial" from rtx to
6243         rtx_insn *.
6244         (optimize_skip): Strengthen return type and local "delay_list"
6245         from rtx to rtx_insn_list *.  Strengthen local "trial" from rtx to
6246         rtx_insn *.
6247         (steal_delay_list_from_target): Strengthen return type, param
6248         "delay_list" and local "new_delay_list" from rtx to
6249         rtx_insn_list *.  Strengthen param "seq" from rtx to
6250         rtx_sequence *.  Strengthen param "pnew_thread" from rtx * to
6251         rtx_insn **.
6252         Split out local "temp" into multiple more-tightly scoped locals:
6253         sometimes an rtx_insn_list *, and once a rtx_insn *.  Use methods
6254         of rtx_insn_list and rtx_sequence for clarity and typesafety.
6255         Strengthen locals named "trial" from rtx to rtx_insn *.
6256         (steal_delay_list_from_fallthrough): Strengthen return type and
6257         param "delay_list" from rtx to rtx_insn_list *.  Strengthen param
6258         "seq" from rtx to rtx_sequence *.  Use methods of rtx_sequence.
6259         Strengthen local "trial" from rtx to rtx_insn *.
6260         (try_merge_delay_insns): Strength local "merged_insns" from rtx
6261         to rtx_insn_list * and use its methods.  Strengthen local "pat"
6262         from rtx to rtx_sequence * and use its methods.  Strengthen locals
6263         "dtrial" and "new_rtx" from rtx to rtx_insn *.
6264         (get_label_before): Strengthen return type and local "label" from
6265         rtx to rtx_insn *.
6266         (fill_simple_delay_slots): Likewise for locals "insn", "trial",
6267         "next_trial", "next", prev".  Strengthen local "delay_list" from
6268         rtx to rtx_insn_list *  Strengthen local "tmp" from rtx * to
6269         rtx_insn **.
6270         (follow_jumps): Strengthen return type, param "label" and locals
6271         "insn", "next", "value", "this_label" from rtx to rtx_insn *.
6272         (fill_slots_from_thread): Strengthen return type, param
6273         "delay_list" from rtx to rtx_insn_list *.  Strengthen params
6274         "insn", "thread", "opposite_thread" and locals "new_thread",
6275         "trial", "temp", "ninsn" from rtx to rtx_insn *.  Introduce local
6276         "sequence" from a checked cast to rtx_sequence so that we can call
6277         steal_delay_list_from_target and steal_delay_list_from_fallthrough
6278         with an rtx_sequence *.
6279         (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
6280         "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
6281         Strengthen local "delay_list" from rtx to rtx_insn_list *.
6282         (relax_delay_slots): Strengthen param "first" and locals "insn",
6283         "next", "trial", "delay_insn", "target_label" from rtx to
6284         rtx_insn *.  Strengthen local "pat" from rtx to rtx_sequence *.
6285         Introduce a local "trial_seq" for PATTERN (trial) of type
6286         rtx_sequence *, in both cases using methods of rtx_sequence.
6287         (dbr_schedule): Strengthen param "first" and locals "insn",
6288         "next", "epilogue_insn" from rtx to rtx_insn *.
6289
6290 2014-08-28  Richard Biener  <rguenther@suse.de>
6291
6292         PR tree-optimization/62283
6293         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
6294         Do not peel loops for alignment where the vector loop likely
6295         doesn't run at least VF times.
6296
6297 2014-08-28  Bin Cheng  <bin.cheng@arm.com>
6298
6299         * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
6300         important_candidates.  Consider all important candidates if
6301         IVS doesn't give any result.  Remove check on ivs->upto.
6302         (try_add_cand_for): Call iv_ca_add_use only once.
6303
6304 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6305             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6306             Anna Tikhonova  <anna.tikhonova@intel.com>
6307             Ilya Tocar  <ilya.tocar@intel.com>
6308             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6309             Ilya Verbin  <ilya.verbin@intel.com>
6310             Kirill Yukhin  <kirill.yukhin@intel.com>
6311             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6312
6313         (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
6314         (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
6315         masking.
6316         (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
6317         (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
6318         (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
6319         (define_insn "*mul<mode>3"): Add EVEX version.
6320
6321 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6322             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6323             Anna Tikhonova  <anna.tikhonova@intel.com>
6324             Ilya Tocar  <ilya.tocar@intel.com>
6325             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6326             Ilya Verbin  <ilya.verbin@intel.com>
6327             Kirill Yukhin  <kirill.yukhin@intel.com>
6328             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6329
6330         * config/i386/sse.md
6331         (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
6332         (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
6333         (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
6334         (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
6335         (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
6336         (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
6337         (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
6338         (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
6339         (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
6340         (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
6341         (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
6342         (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
6343         (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
6344         (define_insn "vec_interleave_highv16qi<mask_name>"): New.
6345         (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
6346         (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
6347
6348 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6349             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6350             Anna Tikhonova  <anna.tikhonova@intel.com>
6351             Ilya Tocar  <ilya.tocar@intel.com>
6352             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6353             Ilya Verbin  <ilya.verbin@intel.com>
6354             Kirill Yukhin  <kirill.yukhin@intel.com>
6355             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6356
6357         * config/i386/sse.md
6358         (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
6359         (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
6360         (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
6361
6362 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6363             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6364             Anna Tikhonova  <anna.tikhonova@intel.com>
6365             Ilya Tocar  <ilya.tocar@intel.com>
6366             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6367             Ilya Verbin  <ilya.verbin@intel.com>
6368             Kirill Yukhin  <kirill.yukhin@intel.com>
6369             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6370
6371         * config/i386/sse.md
6372         (define_mode_iterator VI128_256): New.
6373         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
6374
6375 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6376             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6377             Anna Tikhonova  <anna.tikhonova@intel.com>
6378             Ilya Tocar  <ilya.tocar@intel.com>
6379             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6380             Ilya Verbin  <ilya.verbin@intel.com>
6381             Kirill Yukhin  <kirill.yukhin@intel.com>
6382             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6383
6384         * config/i386/sse.md
6385         (define_mode_iterator VI8_256_512): New.
6386         (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
6387         Ditto.
6388         (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
6389         (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
6390         Ditto.
6391         (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
6392
6393 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6394
6395         * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx.  Remove the
6396         pointer to the cumulative reloc value and return the value for
6397         this reloc instead.
6398         (compute_reloc_for_rtx): Take a const_rtx.  Call
6399         compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
6400         avoiding any recursion.  Use FOR_EACH_SUBRTX rather than
6401         for_each_rtx for the CONST case.
6402
6403 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6404
6405         * varasm.c (mark_constant): Replace this for_each_rtx callback with...
6406         (mark_constants_in_pattern): ...this new function to iterate over
6407         all the subrtxes.
6408         (mark_constants): Update accordingly.
6409
6410 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6411
6412         * varasm.c: Include rtl-iter.h.
6413         (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
6414         Remove the pointer to the cumulative hashval_t and just return
6415         the hash for this rtx instead.  Remove recursive CONST_VECTOR case.
6416         (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
6417         Accumulate the hashval_ts here instead of const_rtx_hash_1.
6418
6419 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6420
6421         * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
6422         Give real type of data parameter.  Remove return value.
6423         (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
6424         to iterate over subrtxes.
6425
6426 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6427
6428         * var-tracking.c (use_narrower_mode_test): Turn from being a
6429         for_each_rtx callback to being a function that examines each
6430         subrtx itself.
6431         (adjust_mems): Update accordingly.
6432
6433 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6434
6435         * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
6436         callback to being a function that examines each subrtx itself.
6437         Remove handling of null rtxes.
6438         (add_uses): Update accordingly.
6439
6440 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6441
6442         * var-tracking.c: Include rtl-iter.h.
6443         (rtx_debug_expr_p): Turn from being a for_each_rtx callback
6444         to being a function that examines each subrtx itself.
6445         (use_type): Update accordingly.
6446
6447 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6448
6449         * store-motion.c: Include rtl-iter.h.
6450         (extract_mentioned_regs_1): Delete.
6451         (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
6452         for_each_rtx to iterate over subrtxes.
6453
6454 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6455
6456         * sel-sched.c: Include rtl-iter.h
6457         (count_occurrences_1): Delete.
6458         (count_occurrences_equiv): Turn rtxes into const_rtxes.
6459         Use FOR_EACH_SUBRTX rather than for_each_rtx.
6460
6461 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6462
6463         * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
6464         * rtlanal.c (tls_referenced_p_1): Delete.
6465         (tls_referenced_p): Take a const_rtx rather than an rtx.
6466         Use FOR_EACH_SUBRTX rather than for_each_rtx.
6467
6468 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6469
6470         * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
6471         (for_each_inc_dec): Take an rtx rather than an rtx *.
6472         * cselib.c (cselib_record_autoinc_cb): Update accordingly.
6473         (cselib_record_sets): Likewise.
6474         * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
6475         (check_for_inc_dec): Likewise.
6476         * rtlanal.c (for_each_inc_dec_ops): Delete.
6477         (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
6478         rather than a pointer to the memory address.  Replace
6479         for_each_inc_dec_ops argument with separate function and data
6480         arguments.  Abort on non-autoinc addresses.
6481         (for_each_inc_dec_find_mem): Delete.
6482         (for_each_inc_dec): Take an rtx rather than an rtx *.  Use
6483         FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
6484
6485 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6486
6487         * rtl.h (find_all_hard_regs): Declare.
6488         * rtlanal.c (find_all_hard_regs): New function.
6489         (record_hard_reg_uses_1): Delete.
6490         (record_hard_reg_uses): Use find_all_hard_regs.
6491
6492 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6493
6494         * rtl.h (replace_label_data): Delete.
6495         (replace_label): Take the old label, new label and update-nuses flag
6496         as direct arguments.  Return void.
6497         * cfgcleanup.c (outgoing_edges_match): Update accordingly.
6498         * rtlanal.c (replace_label): Update interface as above.  Handle
6499         JUMP_TABLE_DATA as a special case.  Handle JUMPs outside the
6500         iterator.  Use FOR_EACH_SUBRTX_PTR.
6501
6502 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6503
6504         * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
6505         with const_rtx parameters.
6506         * varasm.c (get_pool_constant): Likewise.
6507         * rtlanal.c (rtx_referenced_p_1): Delete.
6508         (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
6509         Assert that the rtx we're looking for is nonnull.  Allow searches
6510         for constant pool SYMBOL_REFs.
6511
6512 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6513
6514         * reload1.c: Include rtl-iter.h.
6515         (note_reg_elim_costly): Turn from being a for_each_rtx callback
6516         to being a function that examines each subrtx itself.
6517         (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
6518
6519 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6520
6521         * regcprop.c (cprop_find_used_regs_1): Delete.
6522         (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
6523
6524 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6525
6526         * regcprop.c: Include rtl-iter.h.
6527         (kill_value): Take a const_rtx.
6528         (kill_autoinc_value): Turn from being a for_each_rtx callback
6529         to being a function that examines each subrtx itself.
6530         (copyprop_hardreg_forward_1): Update accordingly.
6531
6532 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6533
6534         * reg-stack.c: Include rtl-iter.h.
6535         (subst_stack_regs_in_debug_insn): Delete.
6536         (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
6537         instead of for_each_rtx.
6538
6539 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6540
6541         * lower-subreg.c (find_decomposable_subregs): Turn from being
6542         a for_each_rtx callback to being a function that examines each
6543         subrtx itself.  Remove handling of null rtxes.
6544         (decompose_multiword_subregs): Update accordingly.
6545
6546 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6547
6548         * lower-subreg.c (adjust_decomposed_uses): Delete.
6549         (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
6550         Remove handling of null rtxes.
6551
6552 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6553
6554         * lower-subreg.c: Include rtl-iter.h.
6555         (resolve_subreg_use): Turn from being a for_each_rtx callback
6556         to being a function that examines each subrtx itself.  Remove
6557         handling of null rtxes.
6558         (resolve_reg_notes, resolve_simple_move): Update accordingly.
6559         (decompose_multiword_subregs): Likewise.
6560
6561 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6562
6563         * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
6564         to being a function that examines each subrtx itself.
6565         (simplify_using_condition, simplify_using_initial_values): Update
6566         accordingly.
6567
6568 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6569
6570         * loop-iv.c: Include rtl-iter.h.
6571         (find_single_def_src): New function.
6572         (replace_single_def_regs): Turn from being a for_each_rtx callback
6573         to being a function that examines each subrtx itself.
6574         (replace_in_expr, simplify_using_initial_values): Update accordingly.
6575
6576 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6577
6578         * jump.c (eh_returnjump_p_1): Delete.
6579         (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
6580         Remove handling of null rtxes.
6581
6582 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6583
6584         * jump.c: Include rtl-iter.h.
6585         (returnjump_p_1): Delete.
6586         (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
6587         Remove handling of null rtxes.
6588
6589 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6590
6591         * ira.c: Include rtl-iter.h.
6592         (set_paradoxical_subreg): Turn from being a for_each_rtx callback
6593         to being a function that examines each subrtx itself.  Remove
6594         handling of null rtxes.
6595         (update_equiv_regs): Update call accordingly.
6596
6597 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6598
6599         * fwprop.c: Include rtl-iter.h.
6600         (varying_mem_p): Turn from being a for_each_rtx callback to being
6601         a function that examines each subrtx itself.
6602         (propagate_rtx): Update accordingly.
6603
6604 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6605
6606         * function.c: Include rtl-iter.h
6607         (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
6608         callback to being a function that examines each subrtx itself.
6609         Return the changed flag.
6610         (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
6611         (instantiate_virtual_regs): Update calls accordingly.
6612
6613 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6614
6615         * final.c: Include rtl-iter.h.
6616         (mark_symbol_ref_as_used): Delete.
6617         (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
6618         for_each_rtx.
6619
6620 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6621
6622         * emit-rtl.c: Include rtl-iter.h.
6623         (find_auto_inc): Turn from being a for_each_rtx callback to being
6624         a function that examines each subrtx itself.  Assume the first operand
6625         to an RTX_AUTOINC is the automodified register.
6626         (try_split): Update call accordingly.
6627
6628 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6629
6630         * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
6631         Return a bool, inverting the result so that 0/false means "not ok".
6632         Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
6633         subrtxes of a CONST.
6634         (mem_loc_descriptor, add_const_value_attribute)
6635         (resolve_addr_in_expr): Update calls accordingly.
6636
6637 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6638
6639         * dwarf2out.c: Include rtl-iter.h.
6640         (const_ok_for_output_1): Take the rtx instead of a pointer to it.
6641         Remove unused data parameter.  Return a bool, inverting the result
6642         so that 0/false means "not ok".
6643         (const_ok_for_output): Update accordingly.  Use FOR_EACH_SUBRTX_VAR
6644         instead of for_each_rtx.
6645
6646 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6647
6648         * dse.c: Include rtl-iter.h.
6649         (check_mem_read_rtx): Change void * parameter to real type.
6650         Remove return value.
6651         (check_mem_read_use): Fix comment.  Use FOR_EACH_SUBRTX_PTR instead of
6652         for_each_rtx.  Don't handle null rtxes.
6653
6654 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6655
6656         * df-problems.c: Include rtl-iter.h.
6657         (find_memory): Turn from being a for_each_rtx callback to being
6658         a function that examines each subrtx itself.  Continue to look for
6659         volatile references even after a nonvolatile one has been found.
6660         (can_move_insns_across): Update calls accordingly.
6661
6662 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6663
6664         * ddg.c (walk_mems_2, walk_mems_1): Delete.
6665         (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
6666         to iterate over subrtxes.  Return a bool rather than an int.
6667
6668 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6669
6670         * ddg.c: Include rtl-iter.h.
6671         (mark_mem_use_1): Rename to...
6672         (mark_mem_use): ...deleting old mark_mem_use.  Use FOR_EACH_SUBRTX
6673         instead of for_each_rtx.
6674         (mem_read_insn_p): Update accordingly.
6675
6676 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6677
6678         * cse.c (change_cc_mode_args): Delete.
6679         (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
6680         a function that examines each subrtx itself.  Take the fields of
6681         change_cc_mode_args as argument and return void.
6682         (cse_change_cc_mode_insn): Update calls accordingly.
6683
6684 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6685
6686         * cse.c (is_dead_reg): Change argument to const_rtx.
6687         (dead_debug_insn_data): Delete.
6688         (is_dead_debug_insn): Expand commentary.  Turn from being a
6689         for_each_rtx callback to being a function that examines
6690         each subrtx itself.  Take the fields of dead_debug_insn_data
6691         as argument.
6692         (delete_trivially_dead_insns): Update call accordingly.
6693
6694 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6695
6696         * cse.c (check_for_label_ref): Move earlier in file.  Turn from
6697         being a for_each_rtx callback to being a function that examines
6698         each subrtx itself.
6699         (cse_extended_basic_block): Update call accordingly.
6700
6701 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6702
6703         * cse.c (check_dependence_data): Delete.
6704         (check_dependence): Change from being a for_each_rtx callback to being
6705         a function that examines all subrtxes itself.  Don't handle null rtxes.
6706         (invalidate): Update call accordingly.
6707
6708 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6709
6710         * cse.c: Include rtl-iter.h.
6711         (approx_reg_cost_1): Delete.
6712         (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
6713         Don't handle null rtxes.
6714
6715 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6716
6717         * cfgcleanup.c: Include rtl-iter.h.
6718         (mentions_nonequal_regs): Turn from being a for_each_rtx callback
6719         to being a function that examines each subrtx itself.
6720         (thread_jump): Update accordingly.
6721
6722 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6723
6724         * combine-stack-adj.c: Include rtl-iter.h.
6725         (record_stack_refs_data): Delete.
6726         (record_stack_refs): Turn from being a for_each_rtx callback
6727         to being a function that examines each subrtx itself.
6728         Take a pointer to the reflist.  Invert sense of return value
6729         so that true means success and false means failure.  Don't
6730         handle null rtxes.
6731         (combine_stack_adjustments_for_block): Update accordingly.
6732
6733 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6734
6735         * combine.c (record_truncated_value): Turn from being a for_each_rtx
6736         callback to a function that takes an rtx and returns a bool
6737         (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
6738         for_each_rtx.
6739
6740 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6741
6742         * combine.c: Include rtl-iter.h.
6743         (unmentioned_reg_p_1): Delete.
6744         (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
6745         Don't handle null rtxes.
6746
6747 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6748
6749         * calls.c: Include rtl-iter.h.
6750         (internal_arg_pointer_based_exp_1): Delete.
6751         (internal_arg_pointer_based_exp): Take a const_rtx.
6752         Use FOR_EACH_SUBRTX to iterate over subrtxes.
6753
6754 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6755
6756         * caller-save.c: Include rtl-iter.h.
6757         (add_used_regs_1): Delete.
6758         (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
6759         to iterate over subrtxes.  Assert that any remaining pseudos
6760         have been spilled.
6761
6762 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6763
6764         * bt-load.c: Include rtl-iter.h.
6765         (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
6766         (find_btr_use): Move further up file.  Use FOR_EACH_SUBRTX_PTR
6767         to iterate over subrtxes.
6768         (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
6769         find_btr_use rather than btr_referenced_p.
6770
6771 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6772
6773         * alias.c: Include rtl-iter.h.
6774         (refs_newer_value_cb): Delete.
6775         (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
6776
6777 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6778
6779         * rtl-iter.h: New file.
6780         * rtlanal.c: Include it.
6781         (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
6782         (generic_subrtx_iterator <T>::add_single_to_queue)
6783         (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
6784         (generic_subrtx_iterator <T>::free_array): New functions.
6785         (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
6786         (generic_subrtx_iterator <const_rtx_accessor>)
6787         (generic_subrtx_iterator <rtx_var_accessor>
6788         (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
6789         (setup_reg_subrtx_bounds): New function.
6790         (init_rtlanal): Call it.
6791
6792 2014-08-27  Kaz Kojima  <kkojima@gcc.gnu.org>
6793
6794         PR target/62261
6795         * config/sh/sh.md (ashlsi3): Handle negative shift count for
6796         TARGET_SHMEDIA.
6797         (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
6798
6799 2014-08-27  Richard Sandiford  <rdsandiford@googlemail.com>
6800
6801         * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
6802
6803 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6804
6805         * rtl.h (JUMP_LABEL_AS_INSN): New.
6806
6807 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6808
6809         * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
6810         rtx_expr_list **.
6811         (alloc_EXPR_LIST): Strengthen return type from rtx to
6812         rtx_expr_list *.
6813         (remove_free_EXPR_LIST_node): Likewise for param.
6814         * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
6815         from rtx to rtx_expr_list *.
6816         * sched-int.h (struct deps_desc): Strengthen fields
6817         "pending_read_mems" and "pending_write_mems" from rtx to
6818         rtx_expr_list *.
6819
6820         * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
6821         rtx to rtx_expr_list *.
6822         * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
6823         (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
6824         rtx_expr_list **.
6825         (remove_free_EXPR_LIST_node): Likewise.  Strengthen local "node"
6826         from rtx to rtx_expr_list *.
6827         * loop-iv.c (simplify_using_initial_values): Strengthen local
6828         "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
6829         "pnote_next" from rtx * to rtx_expr_list **.
6830         * sched-deps.c (remove_from_both_dependence_lists):  Strengthen
6831         param "exprp" from rtx * to rtx_expr_list **.
6832         (add_insn_mem_dependence): Strengthen local "mem_list" from
6833         rtx * to rtx_expr_list **.  Strengthen local "mem_node" from rtx
6834         to rtx_expr_list *.
6835         * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
6836         and local "new_mems" from rtx to rtx_expr_list *.  Strengthen
6837         param "old_mems_p" from rtx * to rtx_expr_list **.
6838         * var-tracking.c (struct adjust_mem_data): Strengthen field
6839         "side_effects" from rtx to rtx_expr_list *.
6840         (adjust_insn): Replace NULL_RTX with NULL when assigning to
6841         rtx_expr_list *.
6842         (prepare_call_arguments): Likewise.
6843
6844 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6845
6846         * function.h (struct rtl_data): Strengthen field
6847         "x_stack_slot_list" from rtx to rtx_expr_list *.
6848
6849         * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
6850         when assigning to stack_slot_list.
6851
6852 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6853
6854         * function.h (struct rtl_data): Strengthen field
6855         x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
6856         * rtl.h (remove_node_from_expr_list): Strengthen second param from
6857         rtx * to rtx_expr_list **.
6858
6859         * cfgbuild.c (make_edges): In loop over
6860         nonlocal_goto_handler_labels, strengthen local "x" from rtx to
6861         rtx_expr_list *, and use methods of the latter class to clarify
6862         the code.
6863         * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
6864         rtx_expr_list *, and use methods of the latter class to clarify
6865         the code.
6866         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
6867         * reload1.c (set_initial_label_offsets): Likewise for local "x".
6868         * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
6869         from rtx * to rtx_expr_list **.  Strengthen local "temp" from rtx
6870         to rtx_expr_list *.  Use methods of the latter class to clarify
6871         the code.
6872
6873 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6874
6875         * function.h (struct expr_status): Strengthen field
6876         "x_forced_labels" from rtx to rtx_expr_list *.
6877
6878         * cfgbuild.c (make_edges): Split local "x" into two locals,
6879         strengthening one from rtx to rtx_expr_list *, and using methods
6880         of said class.
6881         * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
6882         loop over forced_labels, introduce strengthen it from rtx to
6883         rtx_expr_list *, using methods to clarify the code.
6884         * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
6885         to rtx_expr_list *, using methods of said class to clarify the
6886         code.
6887         * reload1.c (set_initial_label_offsets): Split local "x" into two
6888         per-loop variables, strengthening the first from rtx to
6889         rtx_expr_list * and using methods.
6890
6891 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6892
6893         * coretypes.h (class rtx_expr_list): Add forward declaration.
6894         * emit-rtl.c (gen_rtx_EXPR_LIST): New.
6895         * gengenrtl.c (special_rtx): Add EXPR_LIST.
6896         * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
6897         invariant: GET_CODE (X) == EXPR_LIST.
6898         (is_a_helper <rtx_expr_list *>::test): New.
6899         (rtx_expr_list::next): New.
6900         (rtx_expr_list::element): New.
6901         (gen_rtx_EXPR_LIST): New.
6902
6903 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6904
6905         * varasm.c (mark_constants): Convert a GET_CODE check into a
6906         dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
6907         Use methods of rtx_sequence to clarify the code.
6908
6909 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6910
6911         * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
6912         local "seq" via a checked cast, and use methods of rtx_sequence
6913         to simplify the code.
6914
6915 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6916
6917         * resource.c (mark_referenced_resources): Strengthen local
6918         "sequence" from rtx to rtx_sequence *, adding a checked cast, and
6919         using methods of rtx_sequence to clarify the code.
6920         (find_dead_or_set_registers): Within the switch statement, convert
6921         a GET_CODE check to a dyn_cast, introducing local "seq".  Within
6922         the JUMP_P handling, introduce another local "seq", adding a
6923         checked cast to rtx_sequence *.  In both cases, use methods of
6924         rtx_sequence to clarify the code.
6925         (mark_set_resources): Within SEQUENCE case, introduce local "seq"
6926         via a checked cast, and use methods of rtx_sequence to simplify
6927         the code.
6928
6929 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6930
6931         * reorg.c (redundant_insn): In two places in the function, replace
6932         a check of GET_CODE with a dyn_cast, introducing local "seq", and
6933         usings methods of rtx_sequence to clarify the code.
6934
6935 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6936
6937         * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
6938         local "seq" with a checked cast, and use methods of rtx_sequence
6939         to clarify the code.
6940
6941 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6942
6943         * function.c (contains): Introduce local "seq" for PATTERN (insn),
6944         with a checked cast, in the region for where we know it's a
6945         SEQUENCE.  Use methods of rtx_sequence.
6946
6947 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6948
6949         * final.c (get_attr_length_1): Replace GET_CODE check with a
6950         dyn_cast, introducing local "seq" and the use of methods of
6951         rtx_sequence.
6952         (shorten_branches): Likewise, introducing local "body_seq".
6953         Strengthen local "inner_insn" from rtx to rtx_insn *.
6954         (reemit_insn_block_notes): Replace GET_CODE check with a
6955         dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
6956         Use methods of rtx_sequence.
6957         (final_scan_insn): Likewise, introducing local "seq" for when
6958         "body" is known to be a SEQUENCE, using its methods.
6959
6960 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6961
6962         * except.c (can_throw_external): Strengthen local "seq" from rtx
6963         to rtx_sequence *.  Use methods of rtx_sequence.
6964         (insn_nothrow_p): Likewise.
6965
6966 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6967
6968         * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
6969         dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
6970         Use methods of rtx_sequence.
6971         (scan_trace): Likewise for local "pat".
6972
6973 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6974
6975         * coretypes.h (class rtx_sequence): Add forward declaration.
6976         * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
6977         invariant: GET_CODE (X) == SEQUENCE.
6978         (is_a_helper <rtx_sequence *>::test): New.
6979         (is_a_helper <const rtx_sequence *>::test): New.
6980         (rtx_sequence::len): New.
6981         (rtx_sequence::element): New.
6982         (rtx_sequence::insn): New.
6983
6984 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6985
6986         * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
6987         rtx_insn_list **.
6988         (alloc_INSN_LIST): Strengthen return type from rtx to
6989         rtx_insn_list *.
6990         (copy_INSN_LIST): Likewise for return type and param.
6991         (concat_INSN_LIST): Likewise for both params and return type.
6992         (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
6993         rtx_insn *.  Strengthen second param from rtx * to rtx_insn_list **.
6994         (remove_free_INSN_LIST_node): Strenghten return type from rtx to
6995         rtx_insn *.  Strengthen param from rtx * to rtx_insn_list **.
6996
6997         * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
6998         "implicit_sets", "control_uses", "clobbers" from rtx to
6999         rtx_insn_list *.
7000         (struct deps_desc): Likewise for fields "pending_read_insns",
7001         "pending_write_insns", "pending_jump_insns",
7002         "last_pending_memory_flush", "last_function_call",
7003         "last_function_call_may_noreturn", "sched_before_next_call",
7004         "sched_before_next_jump".
7005         (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
7006         (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
7007
7008         * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
7009         from rtx to rtx_insn_list *.
7010         (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
7011         rtx_insn_list *.
7012
7013         * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
7014         to rtx_insn_list **.
7015         (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
7016         rtx_insn_list *.
7017         (queue_insn): Likewise for local "link".
7018         (struct haifa_saved_data): Strengthen field "insn_queue" from
7019         rtx * to rtx_insn_list **.
7020         (save_backtrack_point): Update allocation of save->insn_queue to
7021         reflect the strengthening of elements from rtx to rtx_insn_list *.
7022         (queue_to_ready): Strengthen local "link" from rtx to
7023         rtx_insn_list *; use methods "next" and "insn" when traversing the
7024         list.
7025         (early_queue_to_ready): Likewise for locals "link", "next_link",
7026         "prev_link".
7027         (schedule_block): Update allocation of insn_queue to reflect the
7028         strengthening of elements from rtx to rtx_insn_list *.  Strengthen
7029         local "link" from rtx to rtx_insn_list *, and use methods when
7030         working it.
7031         (add_to_speculative_block): Strengthen locals "twins" and
7032         "next_node" from rtx to rtx_insn_list *, and use methods when
7033         working with them.  Strengthen local "twin" from rtx to
7034         rtx_insn *, eliminating a checked cast.
7035         (fix_recovery_deps): Strengthen locals "ready_list" and "link"
7036         from rtx to rtx_insn_list *, and use methods when working with
7037         them.
7038
7039         * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
7040         from rtx to rtx_insn_list *, adding a checked cast.
7041         (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
7042         rtx_insn_list **.
7043         (copy_INSN_LIST): Strengthen return type and locals "new_queue",
7044         "newlink" from rtx to rtx_insn_list *.  Strengthen local
7045         "pqueue" from rtx * to rtx_insn_list **.  Strengthen local "x"
7046         from rtx to rtx_insn *.
7047         (concat_INSN_LIST): Strengthen return type and local "new_rtx",
7048         from rtx to rtx_insn_list *.  Use methods of the latter class.
7049         (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
7050         rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
7051         (remove_free_INSN_LIST_node): Strengthen return type and local
7052         "elem" from rtx to rtx_insn *.  Strenghten param "listp" from
7053         rtx * to rtx_insn_list **.  Strengthen local "node" from rtx to
7054         rtx_insn_list *, using "insn" method.
7055
7056         * sched-deps.c (add_dependence_list):  Strengthen param "list"
7057         from rtx to rtx_insn_list *, and use methods when working with it.
7058         (add_dependence_list_and_free):  Strengthen param "listp" from
7059         rtx * to rtx_insn_list **.
7060         (remove_from_dependence_list): Strenghten param "listp" from rtx *
7061         to rtx_insn_list **, and use methods when working with *listp.
7062         (remove_from_both_dependence_lists): Strengthen param "listp" from
7063         rtx * to rtx_insn_list **
7064         (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
7065         to rtx_insn_list **.  Eliminate local "link", in favor of two new
7066         locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
7067         respectively.
7068         (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
7069         by introducing local "cond_deps".
7070         (remove_from_deps): Strengthen param "insn" from rtx to
7071         rtx_insn *.
7072
7073         * sched-rgn.c (concat_insn_mem_list): Strengthen param
7074         "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
7075         Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
7076         Use methods of rtx_insn_list.
7077
7078         * store-motion.c (struct st_expr): Strengthen fields
7079         "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
7080         (st_expr_entry): Replace NULL_RTX with NULL when dealing with
7081         rtx_insn_list *.
7082         (find_moveable_store): Split out "tmp" into multiple more-tightly
7083         scoped locals.  Use methods of rtx_insn_list *.
7084         (compute_store_table): Strengthen local "tmp" from rtx to
7085         rtx_insn *.  Use methods of rtx_insn_list *.
7086
7087 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
7088
7089         * coretypes.h (class rtx_insn_list): Add forward declaration.
7090         * rtl.h (class rtx_insn_list): New subclass of rtx_def
7091         (is_a_helper <rtx_insn_list *>::test): New.
7092         (rtx_insn_list::next): New.
7093         (rtx_insn_list::insn): New.
7094         (gen_rtx_INSN_LIST): Add prototype.
7095         * emit-rtl.c (gen_rtx_INSN_LIST): New.
7096         * gengenrtl.c (special_rtx): Add INSN_LIST.
7097
7098 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
7099
7100         * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
7101         "prev" from rtx to rtx_insn *.
7102
7103 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
7104
7105         * rtl.h (INSN_UID): Convert from a macro to a pair of inline
7106         functions.  Require merely an rtx for now, not an rtx_insn *.
7107         (BLOCK_FOR_INSN): Likewise.
7108         (INSN_LOCATION): Likewise.
7109         (INSN_HAS_LOCATION): Convert from a macro to an inline function.
7110
7111 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
7112
7113         * rtl.h (PATTERN): Convert this macro into a pair of inline
7114         functions, for now, requiring const_rtx and rtx.
7115
7116 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
7117
7118         * target.def (unwind_emit): Strengthen param "insn" from rtx to
7119         rtx_insn *.
7120         (final_postscan_insn): Likewise.
7121         (adjust_cost): Likewise.
7122         (adjust_priority): Likewise.
7123         (variable_issue): Likewise.
7124         (macro_fusion_pair_p): Likewise.
7125         (dfa_post_cycle_insn): Likewise.
7126         (first_cycle_multipass_dfa_lookahead_guard): Likewise.
7127         (first_cycle_multipass_issue): Likewise.
7128         (dfa_new_cycle): Likewise.
7129         (adjust_cost_2): Likewise for params "insn" and "dep_insn".
7130         (speculate_insn): Likewise for param "insn".
7131         (gen_spec_check): Likewise for params "insn" and "label".
7132         (get_insn_spec_ds): Likewise for param "insn".
7133         (get_insn_checked_ds): Likewise.
7134         (dispatch_do): Likewise.
7135         (dispatch): Likewise.
7136         (cannot_copy_insn_p): Likewise.
7137         (invalid_within_doloop): Likewise.
7138         (legitimate_combined_insn): Likewise.
7139         (needed): Likewise.
7140         (after): Likewise.
7141
7142         * doc/tm.texi: Automatically updated to reflect changes to
7143         target.def.
7144
7145         * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
7146         working with insn.
7147         (schedule_block): Likewise.
7148         (sched_init): Likewise.
7149         (sched_speculate_insn): Strengthen param "insn" from rtx to
7150         rtx_insn *.
7151         (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
7152         working with insn.
7153         * hooks.c (hook_bool_rtx_true): Rename to...
7154         hook_bool_rtx_insn_true): ...this, and strengthen first param from
7155         rtx to rtx_insn *.
7156         (hook_constcharptr_const_rtx_null): Rename to...
7157         (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
7158         first param from const_rtx to const rtx_insn *.
7159         (hook_bool_rtx_int_false): Rename to...
7160         (hook_bool_rtx_insn_int_false): ...this, and strengthen first
7161         param from rtx to rtx_insn *.
7162         (hook_void_rtx_int): Rename to...
7163         (hook_void_rtx_insn_int): ...this, and strengthen first param from
7164         rtx to rtx_insn *.
7165
7166         * hooks.h (hook_bool_rtx_true): Rename to...
7167         (hook_bool_rtx_insn_true): ...this, and strengthen first param from
7168         rtx to rtx_insn *.
7169         (hook_bool_rtx_int_false): Rename to...
7170         (hook_bool_rtx_insn_int_false): ...this, and strengthen first
7171         param from rtx to rtx_insn *.
7172         (hook_void_rtx_int): Rename to...
7173         (hook_void_rtx_insn_int): ...this, and strengthen first param from
7174         rtx to rtx_insn *.
7175         (hook_constcharptr_const_rtx_null): Rename to...
7176         (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
7177         first param from const_rtx to const rtx_insn *.
7178
7179         * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
7180         and local "prev" from rtx to rtx_insn *.
7181
7182         * sched-int.h (sched_speculate_insn): Strengthen first param from
7183         rtx to rtx_insn *.
7184
7185         * sel-sched.c (create_speculation_check): Likewise for local "label".
7186         * targhooks.c (default_invalid_within_doloop): Strengthen param
7187         "insn" from const_rtx to const rtx_insn *.
7188         * targhooks.h (default_invalid_within_doloop): Strengthen param
7189         from const_rtx to const rtx_insn *.
7190
7191         * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
7192         (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
7193
7194         * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
7195         "insn".
7196         (arc_invalid_within_doloop): Likewise, with const.
7197
7198         * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
7199         (arm_cannot_copy_insn_p): Likewise for param "insn".
7200         (arm_unwind_emit): Likewise.
7201
7202         * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
7203         "dep_insn".
7204
7205         * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
7206         (c6x_variable_issue): Likewise.  Removed now-redundant checked
7207         cast.
7208         (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
7209
7210         * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
7211         Likewise for param "insn".
7212         (epiphany_mode_after): Likewise.
7213         * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
7214         params "insn", "dep_insn".
7215         (epiphany_mode_needed): Likewise for param "insn".
7216         (epiphany_mode_after): Likewise.
7217
7218         * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
7219         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
7220         (ix86_avx_u128_mode_needed): Likewise.
7221         (ix86_i387_mode_needed): Likewise.
7222         (ix86_mode_needed): Likewise.
7223         (ix86_avx_u128_mode_after): Likewise.
7224         (ix86_mode_after): Likewise.
7225         (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
7226         (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
7227         (ix86_adjust_priority): Likewise for param "insn".
7228         (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
7229         (do_dispatch): Likewise.
7230         (has_dispatch): Likewise.
7231         * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
7232
7233         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
7234         reflect renaming of default hook implementation from
7235         hook_constcharptr_const_rtx_null to
7236         hook_constcharptr_const_rtx_insn_null.
7237         (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
7238         rtx to rtx_insn *.
7239         (ia64_variable_issue): Likewise for param "insn".
7240         (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
7241         (ia64_dfa_new_cycle): Likewise.
7242         (ia64_get_insn_spec_ds): Likewise.
7243         (ia64_get_insn_checked_ds): Likewise.
7244         (ia64_speculate_insn): Likewise.
7245         (ia64_gen_spec_check): Likewise for params "insn", "label".
7246         (ia64_asm_unwind_emit): Likewise for param "insn".
7247
7248         * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
7249
7250         * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
7251         "insn", "def_insn".
7252         (m68k_sched_variable_issue): Likewise for param "insn".
7253
7254         * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
7255         "def_insn".
7256
7257         * config/microblaze/microblaze.c (microblaze_adjust_cost):
7258         Likewise for params "insn", "dep".
7259
7260         * config/mips/mips.c (mips_adjust_cost): Likewise.
7261         (mips_variable_issue): Likewise for param "insn".
7262         (mips_final_postscan_insn): Likewise.
7263
7264         * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
7265         for params "insn", "dep".
7266
7267         * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
7268         "dep_insn".
7269         (pa_adjust_priority): Likewise for param "insn".
7270
7271         * config/picochip/picochip.c (picochip_sched_adjust_cost):
7272         Likewise for params "insn", "dep_insn".
7273
7274         * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
7275         param "insn".
7276         (rs6000_variable_issue): Likewise.
7277         (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
7278         (rs6000_debug_adjust_cost): Likewise.
7279         (rs6000_adjust_priority): Likewise for param "insn".
7280         (rs6000_use_sched_lookahead_guard): Likewise.
7281         (get_next_active_insn): Likewise for return type and both params.
7282         (redefine_groups): Likewise for params "prev_head_insn", "tail"
7283         and locals "insn", "next_insn".
7284         (pad_groups): Likewise.
7285
7286         * config/s390/s390.c (s390_adjust_priority): Likewise for param
7287         "insn".
7288         (s390_cannot_copy_insn_p): Likewise.
7289         (s390_sched_variable_issue): Likewise for third param, eliminating
7290         checked cast.
7291         (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
7292         default hook implementation from hook_constcharptr_const_rtx_null
7293         to hook_constcharptr_const_rtx_insn_null.
7294
7295         * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
7296         from rtx to rtx_insn *.
7297         (sh_adjust_cost): Likewise for params "insn", "dep_insn".
7298         (sh_variable_issue): Likewise for param "insn".
7299         (sh_dfa_new_cycle): Likewise.
7300         (sh_mode_needed): Likewise.
7301         (sh_mode_after): Likewise.
7302
7303         * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
7304         params "insn", "dep_insn".
7305         (hypersparc_adjust_cost): Likewise.
7306         (sparc_adjust_cost): Likewise.
7307
7308         * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
7309         param, eliminated checked cast.
7310         (spu_sched_adjust_cost): Likewise for first and third params.
7311
7312         * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
7313         params "insn" and "dep_insn" from rtx to rtx_insn *.
7314
7315         * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
7316
7317 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
7318
7319         * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
7320         (set_is_load_p): ...this, updating to work on a SET pattern rather
7321         than an insn.
7322         (is_store_insn): Rename to...
7323         (set_is_store_p): ...this, updating to work on a SET pattern
7324         rather than an insn.
7325         (mn10300_adjust_sched_cost): Move call to get_attr_timings from
7326         top of function to where it is needed.  Rewrite the bogus
7327         condition that checks for "insn" and "dep" being PARALLEL to
7328         instead use single_set, introducing locals "insn_set" and
7329         "dep_set".  Given that we only ever returned "cost" for a non-pair
7330         of SETs, bail out early if we don't have a pair of SET.
7331         Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
7332         use the new locals "insn_set" and "dep_set", and update calls to
7333         is_load_insn and is_store_insn to be calls to set_is_load_p and
7334         set_is_store_p.
7335
7336 2014-08-27  Guozhi Wei  <carrot@google.com>
7337
7338         PR target/62262
7339         * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
7340         amount before using it.
7341
7342 2014-08-27  Richard Biener  <rguenther@suse.de>
7343
7344         * gimple-fold.c (get_maxval_strlen): Add overload wrapping
7345         get_maxval_strlen inside a more useful API.
7346         (gimple_fold_builtin_with_strlen): Remove and fold into ...
7347         (gimple_fold_builtin): ... caller.
7348         (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
7349         gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
7350         gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
7351         gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
7352         gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
7353         gimple_fold_builtin_sprintf): Adjust to compute maxval
7354         themselves.
7355
7356 2014-08-27  Yvan Roux  <yvan.roux@linaro.org>
7357
7358         PR other/62248
7359         * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
7360
7361 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7362             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
7363             Anna Tikhonova  <anna.tikhonova@intel.com>
7364             Ilya Tocar  <ilya.tocar@intel.com>
7365             Andrey Turetskiy  <andrey.turetskiy@intel.com>
7366             Ilya Verbin  <ilya.verbin@intel.com>
7367             Kirill Yukhin  <kirill.yukhin@intel.com>
7368             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
7369
7370         * config/i386/sse.md
7371         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
7372         Use `concat_tg_mode' attribute to determine asm register size.
7373
7374 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7375             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
7376             Anna Tikhonova  <anna.tikhonova@intel.com>
7377             Ilya Tocar  <ilya.tocar@intel.com>
7378             Andrey Turetskiy  <andrey.turetskiy@intel.com>
7379             Ilya Verbin  <ilya.verbin@intel.com>
7380             Kirill Yukhin  <kirill.yukhin@intel.com>
7381             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
7382
7383         * config/i386/sse.md
7384         (define_mode_iterator VI48_AVX512VL): New.
7385         (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
7386         (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
7387         (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
7388         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
7389         with VI1): Change mode iterator.
7390         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
7391         with VI_ULOADSTORE_BW_AVX512VL): New.
7392         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
7393         with VI_ULOADSTORE_F_AVX512VL): Ditto.
7394         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
7395         with VI1): Change mode iterator.
7396         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
7397         with VI_ULOADSTORE_BW_AVX512VL): New.
7398         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
7399         with VI_ULOADSTORE_F_AVX512VL): Ditto.
7400         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
7401         with VI1): Change mode iterator.
7402         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
7403         with VI_ULOADSTORE_BW_AVX512VL): New.
7404         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
7405         with VI_ULOADSTORE_BW_AVX512VL): Ditto.
7406         (define_insn "avx512f_storedqu<mode>_mask"): Delete.
7407         (define_insn "<avx512>_storedqu<mode>_mask" with
7408         VI48_AVX512VL): New.
7409         (define_insn "<avx512>_storedqu<mode>_mask" with
7410         VI12_AVX512VL): Ditto.
7411
7412 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7413             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
7414             Anna Tikhonova  <anna.tikhonova@intel.com>
7415             Ilya Tocar  <ilya.tocar@intel.com>
7416             Andrey Turetskiy  <andrey.turetskiy@intel.com>
7417             Ilya Verbin  <ilya.verbin@intel.com>
7418             Kirill Yukhin  <kirill.yukhin@intel.com>
7419             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
7420
7421         * config/i386/sse.md
7422         (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
7423         (define_mode_iterator VI48_AVX512BW): New.
7424         (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
7425         (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
7426         with VI48_AVX2_48_AVX512F): New.
7427         (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
7428         with VI2_AVX512VL): Ditto.
7429
7430 2014-08-27  Richard Biener  <rguenther@suse.de>
7431
7432         PR middle-end/62239
7433         * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
7434         (fold_builtin_3): Do not fold strcat_chk here.
7435         * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
7436         from builtins.c.
7437         (gimple_fold_builtin): Fold strcat_chk here.
7438
7439 2014-08-26  Aldy Hernandez  <aldyh@redhat.com>
7440
7441         * dwarf2out.h (dwarf2out_decl): Remove prototype.
7442         * dwarf2out.c (dwarf2out_decl): Make static.
7443
7444 2014-08-26  Joel Sherrill <joel.sherrill@oarcorp.com>
7445
7446         * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
7447
7448 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7449
7450         * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
7451         from rtx to rtx_insn *.
7452         (cselib_lookup_from_insn): Likewise for final param.
7453         (cselib_subst_to_values_from_insn): Likewise.
7454         (cselib_add_permanent_equiv): Likewise.
7455
7456         * cselib.c (cselib_current_insn): Likewise for this variable.
7457         (cselib_subst_to_values_from_insn): Likewise for param "insn".
7458         (cselib_lookup_from_insn): Likewise.
7459         (cselib_add_permanent_equiv): Likewise for param "insn" and local
7460         "save_cselib_current_insn".
7461         (cselib_process_insn): Replace use of NULL_RTX with NULL.
7462
7463         * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
7464         from rtx to rtx_insn *.
7465
7466 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7467
7468         * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
7469         rtx_insn *.
7470
7471 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7472
7473         * df.h (df_dump_insn_problem_function): Strengthen first param of
7474         this callback from const_rtx to const rtx_insn *.
7475         (struct df_insn_info): Strengthen field "insn" from rtx to
7476         rtx_insn *.
7477         (DF_REF_INSN): Eliminate this function, reinstating the older
7478         macro definition.
7479         (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
7480         (df_reg_defined): Likewise.
7481         (df_find_use): Likewise.
7482         (df_reg_used): Likewise.
7483         (df_dump_insn_top): Strengthen param 1 from const_rtx to
7484         const rtx_insn *.
7485         (df_dump_insn_bottom): Likewise.
7486         (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
7487         (df_insn_debug_regno): Likewise.
7488         (debug_df_insn): Likewise.
7489         (df_rd_simulate_one_insn): Likewise for param 2.
7490         (df_word_lr_simulate_defs): Likewise for param 1.
7491         (df_word_lr_simulate_uses): Likewise.
7492         (df_md_simulate_one_insn): Likewise for param 2.
7493         (df_simulate_find_noclobber_defs): Likewise for param 1.
7494         (df_simulate_find_defs): Likewise.
7495         (df_simulate_defs): Likewise.
7496         (df_simulate_uses): Likewise.
7497         (df_simulate_one_insn_backwards): Likewise for param 2.
7498         (df_simulate_one_insn_forwards): Likewise.
7499         (df_uses_create): Likewise for param 2.
7500         (df_insn_create_insn_record): Likewise for param 1.
7501         (df_insn_delete): Likewise.
7502         (df_insn_rescan): Likewise.
7503         (df_insn_rescan_debug_internal): Likewise.
7504         (df_insn_change_bb): Likewise.
7505         (df_notes_rescan): Likewise.
7506         * rtl.h (remove_death): Likewise for param 2.
7507         (print_rtl_with_bb): Strengthen param 2 from const_rtx to
7508         const rtx_insn *.
7509         * sched-int.h (reemit_notes): Strengthen param from rtx to
7510         rtx_insn *.
7511         * valtrack.h (propagate_for_debug): Likewise for param 1.
7512
7513         * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
7514         local "tmp_rtx" from const_rtx to const rtx_insn *.
7515         * combine.c (remove_death): Strengthen param "insn" from rtx to
7516         rtx_insn *.
7517         (move_deaths): Likewise for local "where_dead".
7518         * cse.c (delete_trivially_dead_insns): Introduce local
7519         "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
7520         * df-core.c (df_find_def): Strengthen param "insn" from rtx to
7521         rtx_insn *.
7522         (df_reg_defined): Likewise.
7523         (df_find_use): Likewise.
7524         (df_reg_used): Likewise.
7525         (df_dump_insn_problem_data): Strengthen param "insn" from
7526         const_rtx to const rtx_insn *.
7527         (df_dump_insn_top): Likewise.
7528         (df_dump_insn_bottom): Likewise.
7529         (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
7530         (df_insn_debug_regno): Likewise.
7531         (debug_df_insn): Likewise.
7532         (DF_REF_INSN): Delete.
7533         * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
7534         from rtx to rtx_insn *.
7535         (df_chain_insn_top_dump): Strengthen param "insn" from
7536         const_rtx to const rtx_insn *.
7537         (df_chain_insn_bottom_dump): Likewise.
7538         (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
7539         rtx_insn *.
7540         (df_word_lr_simulate_uses): Likewise.
7541         (df_print_note): Likewise.
7542         (df_remove_dead_and_unused_notes): Likewise.
7543         (df_set_unused_notes_for_mw): Likewise.
7544         (df_set_dead_notes_for_mw): Likewise.
7545         (df_create_unused_note): Likewise.
7546         (df_simulate_find_defs): Likewise.
7547         (df_simulate_find_uses): Likewise.
7548         (df_simulate_find_noclobber_defs): Likewise.
7549         (df_simulate_defs): Likewise.
7550         (df_simulate_uses): Likewise.
7551         (df_simulate_one_insn_backwards): Likewise.
7552         (df_simulate_one_insn_forwards): Likewise.
7553         (df_md_simulate_one_insn): Likewise.
7554         * df-scan.c (df_uses_create): Likewise.
7555         (df_insn_create_insn_record): Likewise.
7556         (df_insn_delete): Likewise.
7557         (df_insn_rescan): Likewise.
7558         (df_insn_rescan_debug_internal): Likewise.
7559         (df_insn_change_bb): Likewise.
7560         (df_notes_rescan): Likewise.
7561         (df_refs_add_to_chains): Likewise.
7562         (df_insn_refs_verify): Likewise.
7563         * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
7564         when invoking df_insn_delete.
7565         (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
7566         (set_unique_reg_note): Add checked cast.
7567         * final.c (cleanup_subreg_operands): Likewise.
7568         * gcse.c (update_ld_motion_stores): Likewise, strengthening local
7569         "insn" from rtx to rtx_insn *.
7570         * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
7571         "last" from rtx to rtx_insn *.
7572         * ira-emit.c (change_regs_in_insn): New function.
7573         (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
7574         Invoke change_regs_in_insn rather than change_regs.
7575         * ira.c (update_equiv_regs): Strengthen locals "insn",
7576         "init_insn", "new_insn" from rtx to rtx_insn *.  Invoke
7577         for_each_rtx_in_insn rather than for_each_rtx.
7578         * recog.c (confirm_change_group): Add checked casts.
7579         (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
7580         Add checked cast.
7581         (peep2_fill_buffer): Add checked cast.
7582         * rtlanal.c (remove_note): Likewise.
7583         * valtrack.c (propagate_for_debug): Strengthen param "insn" and
7584         locals "next" "end" from rtx to rtx_insn *.
7585
7586 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7587
7588         * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
7589         to rtx_insn *.
7590         (struct reg_use_data): Likewise for field "insn".
7591         (insn_cost): Likewise for param.
7592         (real_insn_for_shadow): Likewise for return type and param.
7593         (increase_insn_priority): Likewise for param 1.
7594         (debug_dependencies): Likewise for both params.
7595
7596         * haifa-sched.c (insn_delay): Likewise for param "insn".
7597         (real_insn_for_shadow): Likewise for return type and param "insn".
7598         (update_insn_after_change): Likewise for param "insn".
7599         (recompute_todo_spec): Likewise for param "next" and locals "pro",
7600         "other".
7601         (insn_cost): Likewise for param "insn".
7602         (increase_insn_priority): Likewise.
7603         (calculate_reg_deaths): Likewise.
7604         (setup_insn_reg_pressure_info): Likewise.
7605         (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
7606         (model_index): Strengthen param "insn" from rtx to rtx_insn *.
7607         (model_recompute): Likewise.
7608         (must_restore_pattern_p): Likewise for param "next".
7609         (model_excess_cost): Likewise for param "insn".
7610         (queue_remove): Likewise.
7611         (adjust_priority): Likewise for param "prev".
7612         (update_register_pressure): Likewise for param "insn".
7613         (setup_insn_max_reg_pressure): Likewise for local "insn".
7614         (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
7615         (model_add_to_schedule): Likewise.
7616         (model_reset_queue_indices): Likewise for local "insn".
7617         (unschedule_insns_until): Strengthen local "recompute_vec" from
7618         auto_vec<rtx> to auto_vec<rtx_insn *>.  Strengthen locals "last",
7619         "con" from rtx to rtx_insn *.
7620         (restore_last_backtrack_point): Likewise for both locals "x". Add
7621         checked casts.
7622         (estimate_insn_tick): Likewise for param "insn".
7623         (commit_schedule): Likewise for params "prev_head", "tail" and
7624         local "x".
7625         (verify_shadows): Likewise for locals "i1", "i2".
7626         (dump_insn_stream): Likewise for params "head", "tail" and locals
7627         "next_tail", "insn".
7628         (schedule_block): Likewise for locals "insn", "x".  Add a checked
7629         cast.
7630         (fix_inter_tick): Likewise for params "head", "tail".
7631         (create_check_block_twin): Likewise for local "jump".
7632         (haifa_change_pattern): Likewise for param "insn".
7633         (haifa_speculate_insn): Likewise.
7634         (dump_new_block_header): Likewise for params "head", "tail".
7635         (fix_jump_move): Likewise for param "jump".
7636         (move_block_after_check): Likewise.
7637         (sched_init_insn_luid): Likewise for param "insn".
7638         (sched_init_luids): Likewise for local "insn".
7639         (insn_luid): Likewise for param "insn".
7640         (init_h_i_d): Likewise.
7641         (haifa_init_h_i_d): Likewise for local "insn".
7642         (haifa_init_insn): Likewise for param "insn".
7643         * sched-deps.c (add_dependence): Likewise for local "real_pro",
7644         "other".
7645         (create_insn_reg_use): Likewise for param "insn".
7646         (setup_insn_reg_uses): Likewise.  Add a checked cast.
7647         * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
7648         "tail" from rtx to rtx_insn *.
7649         * sched-rgn.c (void debug_dependencies): Likewise, also for locals
7650         "insn", "next_tail".
7651
7652 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7653
7654         * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
7655         from rtx to rtx_insn *.
7656         (model_add_to_schedule): Likewise for locals "start", "end",
7657         "iter".
7658
7659 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7660
7661         * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
7662         rtx_insn *.
7663         * cfgrtl.c (duplicate_insn_chain): Likewise for  params "from",
7664         "to" and locals "insn", "next", "copy".  Remove now-redundant
7665         checked cast.
7666
7667 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7668
7669         * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
7670         rtx_insn * and param 4 from rtx * to rtx_insn **.
7671         (get_condition): Strengthen param 1 from rtx to rtx_insn * and
7672         param 2 from rtx * to rtx_insn **.
7673
7674         * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
7675         rtx_insn * and final param from rtx * to rtx_insn **.
7676
7677         * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
7678         from rtx to rtx_insn *.
7679         (try_head_merge_bb): Likewise for both locals named "move_upto".
7680         * df-problems.c (can_move_insns_across): Likewise for params
7681         "from", "to", "across_from", "across_to" and locals "insn",
7682         "next", "max_to".  Strengthen param "pmove_upto" from rtx * to
7683         rtx_insn **.
7684         * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
7685         from rtx to rtx_insn *.
7686         (noce_get_alt_condition): Strengthen param "earliest" from rtx *
7687         to rtx_insn **.  Strengthen local "insn" from rtx to rtx_insn *.
7688         (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
7689         rtx_insn *.
7690         (noce_try_abs): Likewise.
7691         (noce_get_condition): Likewise for param "jump".  Strengthen param
7692         "earliest" from rtx * to rtx_insn **.
7693         (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
7694         rtx_insn *.
7695         (find_cond_trap): Likewise.
7696         (dead_or_predicable): Likewise for local "earliest".
7697         * loop-iv.c (check_simple_exit): Likewise for local "at".  Add
7698         checked cast.
7699         * rtlanal.c (canonicalize_condition): Likewise for param "insn"
7700         and local "prev".  Strengthen param "earliest" from rtx * to
7701         rtx_insn **.
7702         (get_condition): Strengthen param "jump" from rtx to rtx_insn *
7703         Strengthen param "earliest" from rtx * to rtx_insn **.
7704
7705 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7706
7707         * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
7708         "to" and local "insn" from rtx to rtx_insn *.
7709
7710 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7711
7712         * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
7713         from rtx to rtx_insn *.
7714         (need_nop_to_preserve_insn_bb): Likewise for param "insn".
7715         (code_motion_path_driver): Likewise for local "last_insn".
7716         (simplify_changed_insns): Likewise for local "insn".
7717
7718 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7719
7720         * rtl.h (push_to_sequence): Strengthen param from rtx to
7721         rtx_insn *.
7722         (push_to_sequence2): Likewise for both params.
7723         (delete_insns_since): Likewise for param.
7724         (reorder_insns_nobb): Likewise for all three params.
7725         (set_new_first_and_last_insn): Likewise for both params.
7726
7727         * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
7728         rtx_insn *.  Remove now-redundant cast.
7729         (set_last_insn): Likewise.
7730
7731         * builtins.c (expand_builtin_return): Strengthen local
7732         "call_fusage" from rtx to rtx_insn *.
7733         * cfgrtl.c (create_basic_block_structure): Likewise for local
7734         "after".
7735         * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
7736         "first", "last" and local "insn".
7737         (delete_insns_since): Likewise for param "from".
7738         (reorder_insns_nobb): Likewise for params "from", "to", "after"
7739         and local "x".
7740         (push_to_sequence): Likewise for param "first" and local "last".
7741         (push_to_sequence2): Likewise for params "first" and "last".
7742         * lra.c (emit_add3_insn): Likewise for local "last".
7743         (lra_emit_add): Likewise.
7744         * lra-constraints.c (base_to_reg): Likewise for locals "insn",
7745         "last_insn".
7746         (process_address_1): Likewise for locals "insn", last".
7747         * modulo-sched.c (ps_first_note): Likewise for return type.
7748         * optabs.c (expand_binop_directly): Likewise for param "last".
7749
7750 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7751
7752         * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
7753         to rtx_insn*.
7754         * emit-rtl.c (get_last_insn_anywhere): Likewise.
7755
7756 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7757
7758         * function.h (struct sequence_stack): Strengthen fields "first"
7759         and "last" from rtx to rtx_insn *.
7760         (struct emit_status): Likewise for fields "x_first_insn" and
7761         "x_last_insn".
7762
7763         * emit-rtl.h (get_insns): Remove now-redundant checked cast.
7764         (set_first_insn): Add checked cast.
7765         (get_last_insn): Remove now-redundant checked cast.
7766         (set_last_insn): Add checked cast.
7767
7768         * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
7769         "saved_first" and "saved_last" from rtx to rtx_insn *.
7770
7771 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7772
7773         * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
7774         (unlink_insn_chain): Strengthen both params from rtx to
7775         rtx_insn *.
7776
7777         * cfgrtl.c (cfg_layout_function_header): Likewise for this
7778         variable.
7779         (unlink_insn_chain): Likewise for params "first" and "last".
7780         Remove now-redundant checked cast.
7781         (record_effective_endpoints): Replace use of NULL_RTX with NULL.
7782         (fixup_reorder_chain): Strengthen local "insn" from rtx to
7783         rtx_insn *.
7784         * emit-rtl.c (link_insn_into_chain): Likewise for all three
7785         params.
7786         (add_insn): Likewise for param "insn" and local "prev".
7787         (add_insn_after_nobb): Likewise for both params and local "next".
7788         (add_insn_before_nobb): Likewise for both params and local "prev".
7789         (add_insn_after): Rename param "after" to "uncast_after",
7790         introducing local "after" with another checked cast.
7791         (add_insn_before): Rename params "insn" and "before", giving them
7792         "uncast_" prefixes, adding the old names back using checked casts.
7793         (emit_note_after): Likewise for param "after".
7794         (emit_note_before): Likewise for param "before".
7795         (emit_label): Add a checked cast.
7796
7797 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7798
7799         * cselib.h (cselib_record_sets_hook):  Strengthen initial param
7800         "insn" from rtx to rtx_insn *.
7801
7802         * cselib.c (cselib_record_sets_hook): Likewise.
7803
7804         * var-tracking.c (add_with_sets): Likewise, renaming back from
7805         "uncast_insn" to "insn" and eliminating the checked cast from rtx
7806         to rtx_insn *.
7807
7808 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7809
7810         * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
7811         and "header_" from rtx to rtx_insn *.
7812         (struct basic_block_d): Likewise for field "head_" within "x"
7813         field of union basic_block_il_dependent.
7814         (BB_HEAD): Drop function...
7815         (SET_BB_HEAD): ...and this function in favor of...
7816         (BB_HEAD): ...reinstate macro.
7817         (BB_END): Drop function...
7818         (SET_BB_END): ...and this function in favor of...
7819         (BB_END): ...reinstate macro.
7820         (BB_HEADER): Drop function...
7821         (SET_BB_HEADER): ...and this function in favor of...
7822         (BB_HEADER): ...reinstate macro.
7823
7824         * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
7825         (fix_crossing_unconditional_branches): Likewise.
7826         * caller-save.c (save_call_clobbered_regs): Likewise.
7827         (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
7828         * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
7829         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
7830         (merge_blocks_move_successor_nojumps): Likewise.
7831         (outgoing_edges_match): Update use of for_each_rtx to
7832         for_each_rtx_in_insn.
7833         * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
7834         (expand_gimple_cond): Likewise.
7835         (expand_gimple_tailcall): Likewise.
7836         (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
7837         SET_BB_END.
7838         (construct_exit_block): Drop use of SET_BB_END.
7839         * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
7840         rtx_insn *.
7841         (delete_insn): Rename param "insn" to "uncast_insn", introducing
7842         a new local "insn" with a checked cast to rtx_insn *.  Drop use of
7843         SET_BB_HEAD and SET_BB_END.
7844         (create_basic_block_structure): Drop use of SET_BB_HEAD and
7845         SET_BB_END.
7846         (rtl_delete_block): Drop use of SET_BB_HEAD.
7847         (rtl_split_block): Drop use of SET_BB_END.
7848         (emit_nop_for_unique_locus_between): Likewise.
7849         (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
7850         (block_label): Drop use of SET_BB_HEAD.
7851         (fixup_abnormal_edges): Drop use of SET_BB_END.
7852         (record_effective_endpoints): Drop use of SET_BB_HEADER.
7853         (relink_block_chain): Likewise.
7854         (fixup_reorder_chain): Drop use of SET_BB_END.
7855         (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
7856         (cfg_layout_delete_block): Strengthen local "to" from rtx * to
7857         rtx_insn **.  Drop use of SET_BB_HEADER.
7858         (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
7859         SET_BB_HEAD.
7860         (BB_HEAD): Delete this function.
7861         (SET_BB_HEAD): Likewise.
7862         (BB_END): Likewise.
7863         (SET_BB_END): Likewise.
7864         (BB_HEADER): Likewise.
7865         (SET_BB_HEADER): Likewise.
7866         * emit-rtl.c (add_insn_after):  Rename param "insn" to
7867         "uncast_insn", adding a new local "insn" and a checked cast to
7868         rtx_insn *.  Drop use of SET_BB_END.
7869         (remove_insn): Strengthen locals "next" and "prev" from rtx to
7870         rtx_insn *.  Drop use of SET_BB_HEAD and SET_BB_END.
7871         (reorder_insns): Drop use of SET_BB_END.
7872         (emit_insn_after_1): Strengthen param "first" and locals "last",
7873         "after_after" from rtx to rtx_insn *.  Drop use of SET_BB_END.
7874         (emit_pattern_after_noloc): Add checked cast.
7875         * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
7876         (restore_other_notes): Likewise.
7877         (move_insn): Likewise.
7878         (sched_extend_bb): Likewise.
7879         (fix_jump_move): Likewise.
7880         * ifcvt.c (noce_process_if_block): Likewise.
7881         (dead_or_predicable): Likewise.
7882         * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
7883         * reg-stack.c (change_stack): Drop use of SET_BB_END.
7884         * sel-sched-ir.c (sel_move_insn): Likewise.
7885         * sel-sched.c (move_nop_to_previous_block): Likewise.
7886
7887         * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
7888         SET_BB_END.
7889         * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
7890
7891 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7892
7893         * basic-block.h (create_basic_block_structure): Strengthen params
7894         1 "head" and 2 "end" from rtx to rtx_insn *.
7895         * cfgrtl.c (create_basic_block_structure): Likewise.
7896         (rtl_create_basic_block): Update casts from void * to rtx to
7897         rtx_insn *, so that we can pass them as rtx_insn * to
7898         create_basic_block_structure.
7899         * sel-sched-ir.c (sel_create_basic_block): Likewise.
7900
7901 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7902
7903         * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
7904         rtx_insn **.
7905         (check_for_inc_dec): Strengthen param "insn" from rtx to
7906         rtx_insn *.
7907
7908         * cselib.h (cselib_process_insn): Likewise.
7909
7910         * cselib.c (cselib_record_sets): Likewise.
7911         (cselib_process_insn): Likewise.
7912
7913         * dse.c (struct insn_info): Likewise for field "insn".
7914         (check_for_inc_dec_1): Likewise for local "insn".
7915         (check_for_inc_dec): Likewise for param "insn".
7916         (scan_insn): Likewise.
7917         (dse_step1): Likewise for local "insn".
7918
7919         * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
7920         rtx_insn **.  Use for_each_rtx_in_insn rather than for_each_rtx.
7921
7922 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7923
7924         * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
7925         from rtx to rtx_insn *.
7926         (DEP_PRO): Delete this function and...
7927         (SET_DEP_PRO): ...this function in favor of...
7928         (DEP_PRO): ...reinstate this macro.
7929         (DEP_CON): Delete this function and...
7930         (SET_DEP_CON): ...this function in favor of...
7931         (DEP_CON): ...reinstate this old macro.
7932         (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
7933         (init_dep): Likewise.
7934         (set_priorities): Likewise for both params.
7935         (sd_copy_back_deps): Likewise for params 1 and 2.
7936
7937         * haifa-sched.c (priority): Likewise for param "insn" and local
7938         "next".
7939         (set_priorities): Likewise for params "head" and "tail" and local
7940         "insn".
7941         (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
7942         local "consumer".
7943         (add_to_speculative_block): Add a checked cast.
7944         (create_check_block_twin): Drop use of SET_DEP_CON.
7945         (add_jump_dependencies): Strengthen params "insn" and "jump" from
7946         rtx to rtx_insn *.
7947
7948         * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
7949         Drop use of SET_DEP_PRO
7950         (init_dep): Strengthen params "pro" and "con" from rtx to
7951         rtx_insn *.
7952         (sd_copy_back_deps): Likewise for params "to" and "from".  Drop
7953         use of SET_DEP_CON.
7954         (DEP_PRO): Delete.
7955         (DEP_CON): Delete.
7956         (SET_DEP_PRO): Delete.
7957         (SET_DEP_CON): Delete.
7958
7959 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7960
7961         * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
7962         from rtx to rtx_insn *.
7963         (VINSN_INSN_RTX): Eliminate rvalue function and...
7964         (SET_VINSN_INSN): ...lvalue function in favor of...
7965         (VINSN_INSN_RTX): reinstate this old macro.
7966
7967         * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
7968         in favor of VINSN_INSN_RTX.
7969         (VINSN_INSN_RTX): Delete this function.
7970         (SET_VINSN_INSN_RTX): Likewise.
7971
7972 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7973
7974         * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
7975         (BND_TO): Delete this function and...
7976         (SET_BND_TO): ...this functions in favor of...
7977         (BND_TO): ...reinstating this macro.
7978         (struct _fence): Strengthen field "executing_insns" from
7979         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.  Strengthen fields
7980         "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
7981         (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
7982         and param "insn" from rtx to insn_t.
7983         (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
7984         rtx_insn *.
7985
7986         * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
7987         vec<rtx_insn *> .
7988         (rtx_vec_t): Likewise.
7989         (struct sched_deps_info_def): Strengthen param of "start_insn"
7990         callback from rtx to rtx_insn *.  Likewise for param "insn2" of
7991         "note_mem_dep" callback and first param of "note_dep" callback.
7992
7993         * haifa-sched.c (add_to_speculative_block): Strengthen param
7994         "insn" from rtx to rtx_insn *.
7995         (clear_priorities): Likewise.
7996         (calc_priorities): Likewise for local "insn".
7997
7998         * sched-deps.c (haifa_start_insn): Likewise for param "insn".
7999         Remove redundant checked cast.
8000         (haifa_note_mem_dep): Likewise for param "pending_insn".
8001         (haifa_note_dep): Likewise for param "elem".
8002         (note_mem_dep): Likewise for param "e".
8003         (sched_analyze_1): Add checked casts.
8004         (sched_analyze_2): Likewise.
8005
8006         * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
8007         from rtx to rtx_insn *.
8008         (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
8009         from vec<rtx> * to vec<rtx_insn *> *.
8010
8011         * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
8012         scaffolding.
8013         (flist_add): Strengthen param "executing_insns" from
8014         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
8015         (advance_deps_context): Remove now-redundant checked cast.
8016         (init_fences): Replace uses of NULL_RTX with NULL.
8017         (merge_fences): Strengthen params "last_scheduled_insn" and
8018         "sched_next" from rtx to rtx_insn * and "executing_insns" from
8019         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
8020         (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
8021         (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
8022         an instruction, rather than doing double-duty as a pattern.
8023         (return_nop_to_pool): Update for change of insn_t.
8024         (deps_init_id): Remove now-redundant checked cast.
8025         (struct sched_scan_info_def): Strengthen param of "init_insn"
8026         callback from rtx to insn_t.
8027         (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
8028         (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
8029         NULL.
8030         (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
8031         "end" from rtx to rtx_insn *.
8032         (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
8033         (rtx insn_rtx, bool force_unique_p)
8034         (BND_TO): Delete function.
8035         (SET_BND_TO): Delete function.
8036
8037         * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
8038         rtx to rtx_insn *.
8039         (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
8040         (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
8041         rtx to rtx_insn *.
8042         (undo_transformations): Likewise for param "insn".
8043         (update_liveness_on_insn): Likewise.
8044         (compute_live_below_insn): Likewise for param "insn" and local
8045         "succ".
8046         (update_data_sets): Likewise for param "insn".
8047         (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
8048         (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
8049         (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
8050         rtx_insn *.
8051         (move_cond_jump): Likewise for param "insn".
8052         (move_cond_jump): Drop use of SET_BND_TO.
8053         (compute_av_set_on_boundaries): Likewise.
8054         (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
8055         (update_and_record_unavailable_insns): Strengthen local "bb_end"
8056         from rtx to rtx_insn *.
8057         (maybe_emit_renaming_copy): Likewise for param "insn".
8058         (maybe_emit_speculative_check): Likewise.
8059         (handle_emitting_transformations): Likewise.
8060         (remove_insn_from_stream): Likewise.
8061         (code_motion_process_successors): Strengthen local "succ" from rtx
8062         to insn_t.
8063
8064 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
8065
8066         * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
8067         ilist_t, not _xlist_t;
8068         (ILIST_INSN): Define in terms of new union field "insn".
8069         (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
8070         _XLIST_NEXT.
8071         (struct _list_node): Add new field "insn" to the union, of type
8072         insn_t.
8073         (ilist_add): Replace macro with an inline function, requiring an
8074         insn_t.
8075         (ilist_remove): Define this macro directly in terms of
8076         _list_remove, rather than indirectly via _xlist_remove.
8077         (ilist_clear): Likewise, in terms of _list_clear rather than
8078         _xlist_clear.
8079         (ilist_is_in_p): Replace macro with an inline function, requiring
8080         an insn_t.
8081         (_list_iter_cond_insn): New function.
8082         (ilist_iter_remove): Define this macro directly in terms of
8083         _list_iter_remove, rather than indirectly via _xlist_iter_remove.
8084         (ilist_iterator): Define directly in terms of _list_iterator
8085         rather than indirectly through _xlist_iterator.
8086         (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
8087         than in terms of _FOR_EACH_X.
8088         (FOR_EACH_INSN_1): Likewise.
8089
8090 2014-08-26  Joseph Myers  <joseph@codesourcery.com>
8091
8092         PR target/60606
8093         PR target/61330
8094         * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
8095         DECL_HARD_REGISTER and return for invalid register specifications.
8096         * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
8097         DECL_HARD_REGISTER, call expand_one_error_var.
8098         * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
8099         CC_REGNUM with non-MODE_CC modes.
8100         (arm_regno_class): Return NO_REGS for PC_REGNUM.
8101
8102 2014-08-26  Marek Polacek  <polacek@redhat.com>
8103
8104         PR c/61271
8105         * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
8106
8107 2014-08-26  Evandro Menezes <e.menezes@samsung.com>
8108
8109         * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
8110         qi cost; add di cost.
8111         (cortexa57_addrcost_table): Likewise.
8112
8113 2014-08-26  Marek Polacek  <polacek@redhat.com>
8114
8115         PR c/61271
8116         * expr.c (is_aligning_offset): Remove logical not.
8117
8118 2014-08-26  Marek Polacek  <polacek@redhat.com>
8119
8120         PR c/61271
8121         * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
8122         LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
8123
8124 2014-08-26  Richard Biener  <rguenther@suse.de>
8125
8126         PR tree-optimization/62175
8127         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
8128         expand possibly trapping operations.
8129
8130 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
8131
8132         * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
8133         "insn" from rtx to rtx_insn *.
8134         (permute_load): Likewise for param "insn".
8135         (permute_store): Likewise.
8136         (handle_special_swappables): Likewise for local "insn".
8137         (replace_swap_with_copy): Likewise for locals "insn" and
8138         "new_insn".
8139         (rs6000_analyze_swaps): Likewise for local "insn".
8140
8141 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8142
8143         * regrename.h (struct du_chain): Strengthen field "insn" from rtx
8144         to rtx_insn *.
8145
8146 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8147
8148         * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
8149         "note_list" from rtx to rtx_insn *.
8150         (BB_NOTE_LIST): Replace this function and...
8151         (SET_BB_NOTE_LIST): ...this function with...
8152         (BB_NOTE_LIST): ...the former macro implementation.
8153
8154         * sched-int.h (concat_note_lists): Strengthen param "from_end" and
8155         local "from_start" from rtx to rtx_insn *.  Strengthen param
8156         "to_endp" from rtx * to rtx_insn **.
8157
8158         * haifa-sched.c (concat_note_lists): Likewise.
8159         * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
8160         BB_NOTE_LIST.
8161         (sel_restore_notes): Likewise.
8162         (move_bb_info): Likewise.
8163         (BB_NOTE_LIST): Delete this function.
8164         (SET_BB_NOTE_LIST): Delete this function.
8165         * sel-sched.c (create_block_for_bookkeeping): Eliminate
8166         SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
8167
8168 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8169
8170         * target.def (reorder): Strengthen param "ready" of this DEFHOOK
8171         from rtx * to rtx_insn **.
8172         (reorder2): Likewise.
8173         (dependencies_evaluation_hook): Strengthen params "head", "tail"
8174         from rtx to rtx_insn *.
8175
8176         * doc/tm.texi: Update mechanically for above change to target.def.
8177
8178         * sched-int.h (note_list): Strengthen this variable from rtx to
8179         rtx_insn *.
8180         (remove_notes): Likewise for both params.
8181         (restore_other_notes): Likewise for return type and first param.
8182         (struct ready_list): Strengthen field "vec" from rtx * to
8183         rtx_insn **.
8184         (struct dep_replacement): Strenghten field "insn" from rtx to
8185         rtx_insn *.
8186         (struct deps_desc): Likewise for fields "last_debug_insn",
8187         "last_args_size".
8188         (struct haifa_sched_info): Likewise for callback field
8189         "can_schedule_ready_p"'s param, for first param of "new_ready"
8190         callback field, for both params of "rank" callback field, for
8191         first field of "print_insn" callback field (with a const), for
8192         both params of "contributes_to_priority" callback, for param
8193         of "insn_finishes_block_p" callback, for fields "prev_head",
8194         "next_tail", "head", "tail", for first param of "add_remove_insn"
8195         callback, for first param of "begin_schedule_ready" callback, for
8196         both params of "begin_move_insn" callback, and for second param
8197         of "advance_target_bb" callback.
8198         (add_dependence): Likewise for params 1 and 2.
8199         (sched_analyze): Likewise for params 2 and 3.
8200         (deps_analyze_insn): Likewise for param 2.
8201         (ready_element): Likewise for return type.
8202         (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
8203         (try_ready): Strenghten param from rtx to rtx_insn *.
8204         (sched_emit_insn): Likewise for return type.
8205         (record_delay_slot_pair): Likewise for params 1 and 2.
8206         (add_delay_dependencies): Likewise for param.
8207         (contributes_to_priority): Likewise for both params.
8208         (find_modifiable_mems): Likewise.
8209
8210         * config/arm/arm.c (cortexa7_sched_reorder):  Strengthen param
8211         "ready" from rtx * to rtx_insn **.  Strengthen locals "insn",
8212         "first_older_only_insn" from rtx to rtx_insn *.
8213         (arm_sched_reorder):  Strengthen param "ready"  from rtx * to
8214         rtx_insn **.
8215
8216         * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
8217         "last_scheduled_iter0" from rtx to rtx_insn *.
8218         (init_sched_state): Replace use of NULL_RTX with NULL for insn.
8219         (c6x_sched_reorder_1): Strengthen param "ready" and locals
8220         "e_ready", "insnp" from rtx * to rtx_insn **.  Strengthen local
8221         "insn" from rtx to rtx_insn *.
8222         (c6x_sched_reorder): Strengthen param "ready" from rtx * to
8223         rtx_insn **.
8224         (c6x_sched_reorder2): Strengthen param "ready" and locals
8225         "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
8226         "insn" from rtx to rtx_insn *.
8227         (c6x_variable_issue):  Add a checked cast when assigning from insn
8228         to ss.last_scheduled_iter0.
8229         (split_delayed_branch): Strengthen param "insn" and local "i1"
8230         from rtx to rtx_insn *.
8231         (split_delayed_nonbranch): Likewise.
8232         (undo_split_delayed_nonbranch): Likewise for local "insn".
8233         (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
8234         "entry_after", "end_packet", "head_insn", "tail_insn",
8235         "new_insns", "last_insn", "this_iter", "prev_stage_insn".
8236         Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
8237         to rtx_insn **.  Remove now-redundant checked cast on last_insn,
8238         but add a checked cast on loop->start_label.  Consolidate calls to
8239         avoid assigning result of gen_spkernel to "insn", now an
8240         rtx_insn *.
8241
8242         * config/i386/i386.c (do_reorder_for_imul): Strengthen param
8243         "ready" from rtx * to rtx_insn **.  Strengthen local "insn" from
8244         rtx to rtx_insn *.
8245         (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
8246         rtx_insn **.  Strengthen locals "top", "next" from rtx to
8247         rtx_insn *.
8248         (ix86_sched_reorder): Strengthen param "ready" from rtx * to
8249         rtx_insn **.  Strengthen local "insn" from rtx to rtx_insn *.
8250         (add_parameter_dependencies): Strengthen params "call", "head" and
8251         locals "insn", "last", "first_arg" from rtx to rtx_insn *.
8252         (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
8253         (add_dependee_for_func_arg): Likewise for param "arg" and local
8254         "insn".
8255         (ix86_dependencies_evaluation_hook): Likewise for params "head",
8256         "tail" and locals "insn", "first_arg".
8257
8258         * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
8259         for params "head", "tail" and locals "insn", "next", "next_tail".
8260         (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
8261         "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
8262         "insn", "lowest", "highest" from rtx to rtx_insn *.
8263         (ia64_sched_reorder): Strengthen param "ready" from rtx * to
8264         rtx_insn **.
8265         (ia64_sched_reorder2): Likewise.
8266
8267         * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
8268         and local "insn" from rtx to rtx_insn *.  Strengthen param "ready"
8269         from rtx * to rtx_insn **.
8270         (mep_move_ready_insn): Strengthen param "ready" from rtx * to
8271         rtx_insn **.
8272         (mep_print_sched_insn): Strengthen param "insn" from rtx to
8273         rtx_insn *.
8274         (mep_sched_reorder): Strengthen param "ready" from rtx * to
8275         rtx_insn **.  Strengthen locals "core_insn", "cop_insn" from rtx
8276         to rtx_insn *.
8277
8278         * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
8279         from rtx * to rtx_insn **.  Strengthen local "new_head" from rtx
8280         to rtx_insn *.
8281         (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
8282         rtx_insn **.  Strengthen local "temp" from rtx to rtx_insn *.
8283         (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
8284         rtx_insn **.
8285         (vr4130_reorder): Likewise.
8286         (mips_74k_agen_reorder): Likewise.  Strengthen local "insn" from
8287         rtx to rtx_insn *.
8288         (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
8289         rtx_insn **.
8290         (mips_sched_reorder): Likewise.
8291         (mips_sched_reorder2): Likewise.
8292
8293         * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
8294
8295         * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
8296         Strengthen local "tmp" from rtx to rtx_insn *.
8297         (rs6000_sched_reorder2): Likewise.
8298
8299         * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
8300         Likewise.  Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
8301         (s390_sched_reorder): Strengthen param "ready" from rtx * to
8302         rtx_insn **.  Strengthen local "tmp" from rtx to rtx_insn *.
8303
8304         * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
8305         "tmp2" from rtx to rtx_insn *.
8306         (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
8307         Strengthen local "insn" from rtx to rtx_insn *.
8308         (ready_reorder): Strengthen param "ready" from rtx * to
8309         rtx_insn **.  Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
8310         (sh_reorder):  Strengthen param "ready" from rtx * to rtx_insn **.
8311         (sh_reorder2): Likewise.
8312
8313         * config/spu/spu.c (spu_sched_reorder): Likewise.  Strengthen
8314         local "insn" from rtx to rtx_insn *.
8315
8316         * haifa-sched.c (note_list): Strengthen this variable from rtx to
8317         rtx_insn *.
8318         (scheduled_insns): Strengthen this variable from vec<rtx> to
8319         vec<rtx_insn *>.
8320         (set_modulo_params): Likewise for locals "i1", "i2".
8321         (record_delay_slot_pair): Likewise for params "i1", "i2".
8322         (add_delay_dependencies): Likewise for param "insn".
8323         (cond_clobbered_p): Likewise.
8324         (recompute_todo_spec): Likewise for local "prev".
8325         (last_scheduled_insn): Likewise for this variable.
8326         (nonscheduled_insns_begin): Likewise.
8327         (model_set_excess_costs): Strengthen param "insns" from rtx * to
8328         rtx_insn **.
8329         (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
8330         rtx_insn *.
8331         (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
8332         Strengthen local "insn" from rtx to rtx_insn *.
8333         (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
8334         (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
8335         (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
8336         (ready_remove_first): Likewise for return type and local "t".
8337         (ready_element): Likewise for return type.
8338         (ready_remove): Likewise for return type and local "t".
8339         (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
8340         (check_clobbered_conditions): Strengthen local "x" from rtx to
8341         rtx_insn *, adding a checked cast.
8342         (schedule_insn): Likewise for param "insn".
8343         (remove_notes): Likewise for params "head", "tail" and locals
8344         "next_tail", "insn", "next".
8345         (struct haifa_saved_data): Likewise for fields
8346         "last_scheduled_insn", "nonscheduled_insns_begin".
8347         (save_backtrack_point): Update for change to field "vec" of
8348         struct ready_list.
8349         (toggle_cancelled_flags): Strengthen local "first" from rtx * to
8350         rtx_insn **.
8351         (restore_last_backtrack_point): Likewise.  Strengthen local "insn"
8352         from rtx to rtx_insn *
8353         (resolve_dependencies): Strengthen param "insn" from rtx to
8354         rtx_insn *
8355         (restore_other_notes): Likewise for return type, for param "head"
8356         and local "note_head".
8357         (undo_all_replacements): Likewise for local "insn".
8358         (first_nonscheduled_insn): Likewise for return type and local "insn".
8359         (queue_to_ready): Likewise for local "insn", adding checked casts.
8360         (early_queue_to_ready): Likewise for local "insn".
8361         (debug_ready_list_1): Strengthen local "p" from rtx * to
8362         rtx_insn **.
8363         (move_insn): Strengthen param "insn" and local "note" from rtx to
8364         rtx_insn *
8365         (insn_finishes_cycle_p): Likewise for param "insn".
8366         (max_issue): Likewise for local "insn".
8367         (choose_ready): Likewise.  Strengthen param "insn_ptr" from rtx *
8368         to rtx_insn **.
8369         (commit_schedule): Strengthen param "prev_head" and local "insn"
8370         from rtx to rtx_insn *
8371         (prune_ready_list): Likewise for local "insn".
8372         (schedule_block): Likewise for locals "prev_head", "head", "tail",
8373         "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
8374         (set_priorities): Likewise for local "prev_head".
8375         (try_ready): Likewise for param "next".
8376         (fix_tick_ready): Likewise.
8377         (change_queue_index): Likewise.
8378         (sched_extend_ready_list): Update for change to field "vec" of
8379         struct ready_list.
8380         (generate_recovery_code): Strengthen param "insn" from rtx to
8381         rtx_insn *.
8382         (begin_speculative_block): Likewise.
8383         (create_check_block_twin): Likewise for param "insn" and locals
8384         "label", "check", "twin".  Introduce local "check_pat" to avoid
8385         "check" being used as a plain rtx before being used as an insn.
8386         (fix_recovery_deps): Add a checked cast to rtx_insn * when
8387         extracting elements from ready_list.
8388         (sched_remove_insn): Strengthen param "insn" from rtx to
8389         rtx_insn *.
8390         (sched_emit_insn): Likewise for return type.
8391         (ready_remove_first_dispatch): Likewise for return type and local
8392         "insn".
8393
8394         * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
8395
8396         * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
8397         const rtx_insn *.
8398
8399         * sched-deps.c (add_dependence): Strengthen params "con", "pro"
8400         from rtx to rtx_insn *.
8401         (add_dependence_list): Likewise for param "insn".  Add a checked
8402         cast.
8403         (add_dependence_list_and_free): Strengthen param "insn" from rtx
8404         to rtx_insn *.  Strengthen param "list_p" from rtx * to
8405         rtx_insn **.
8406         (chain_to_prev_insn): Strengthen param "insn" and locals
8407         "prec_nonnote", "i" from rtx to rtx_insn *.
8408         (flush_pending_lists): Likewise for param "insn".
8409         (cur_insn): Likewise for this variable.
8410         (haifa_start_insn): Add a checked cast.
8411         (note_dep): Strengthen param "e" from rtx to rtx_insn *.
8412         (sched_analyze_reg): Likewise for param "insn".
8413         (sched_analyze_1): Likewise.
8414         (sched_analyze_2): Likewise.  Add checked casts.
8415         (sched_analyze_insn): Likewise.  Also for local "prev".
8416         (deps_analyze_insn): Likewise for param "insn".
8417         (sched_analyze): Likewise for params "head", "tail" and local "insn".
8418         (add_dependence_1): Likewise for params "insn", "elem".
8419         (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
8420         (parse_add_or_inc): Likewise for param "insn".
8421         (find_inc): Likewise for local "inc_cand".
8422         (find_modifiable_mems): Likewise for params "head", "tail" and
8423         locals "insn", "next_tail".
8424
8425         * sched-ebb.c (init_ready_list): Likewise for local "insn".
8426         (begin_schedule_ready): Likewise for param "insn".
8427         (begin_move_insn): Likewise for params "insn" and "last".
8428         (ebb_print_insn): Strengthen param "insn" from const_rtx to
8429         const rtx_insn *.
8430         (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
8431         (ebb_contributes_to_priority): Likewise for params "next", "insn".
8432         (ebb_add_remove_insn): Likewise for param "insn".
8433         (advance_target_bb): Likewise.
8434
8435         * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
8436         "insn".
8437         (check_live): Likewise for param "insn".
8438         (init_ready_list): Likewise for local "insn".
8439         (can_schedule_ready_p): Likewise for param "insn".
8440         (begin_schedule_ready): Likewise.
8441         (new_ready): Likewise for param "next".
8442         (rgn_print_insn): Likewise for param "insn".
8443         (rgn_rank): Likewise for params "insn1", "insn2".
8444         (contributes_to_priority): Likewise for params "next", "insn".
8445         (rgn_insn_finishes_block_p): Likewise for param "insn".
8446         (add_branch_dependences): Likewise for params "head", "tail" and
8447         locals "insn", "last".
8448         (rgn_add_remove_insn): Likewise for param "insn".
8449         (advance_target_bb): Likewise.
8450
8451         * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
8452         const_rtx to const rtx_insn *.
8453
8454         * sel-sched-dump.h (sel_print_insn): Likewise.
8455
8456         * sel-sched-ir.c (advance_deps_context): Add a checked cast.
8457         (deps_init_id): Likewise.
8458
8459         * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
8460         (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
8461         rtx_insn **.
8462
8463 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8464
8465         * output.h (final_start_function): Strengthen param 1 from rtx to
8466         rtx_insn *.
8467
8468         * final.c (final_start_function): Likewise, renaming back from
8469         "uncast_first" to "first", and dropping the checked cast from rtx
8470         to rtx_insn *.
8471
8472 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8473
8474         * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
8475         * final.c (final): Likewise.  Rename param back from
8476         "uncast_first" to "first" and eliminate the checked cast from rtx
8477         to rtx_insn *.
8478
8479 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8480
8481         * output.h (shorten_branches): Strengthen param from rtx to
8482         rtx_insn *.
8483
8484         * final.c (shorten_branches): Likewise, renaming param back from
8485         "uncast_first" to "first", and dropping the checked cast from rtx
8486         to rtx_insn *.
8487
8488         * genattr.c (gen_attr): Likewise when writing out the prototype of
8489         shorten_branches.
8490
8491 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8492
8493         * sched-int.h (struct haifa_sched_info): Strengthen fields
8494         "prev_head" and "next_tail" from rtx to rtx_insn *.
8495
8496 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8497
8498         * rtl.h (rtx_jump_table_data::get_labels): New method.
8499         * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
8500         with use of the new rtx_jump_table_data::get_labels method.
8501         (purge_dead_tablejump_edges): Strengthen param "table" from rtx
8502         to rtx_jump_table_data *.  Simplify by using get_labels method.
8503         * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
8504         a dyn_cast, introducing local "table", using it to replace
8505         label-lookup logic with a get_labels method call.
8506         (patch_jump_insn): Simplify using get_labels method.
8507         * dwarf2cfi.c (create_trace_edges): Likewise.
8508         * rtlanal.c (label_is_jump_target_p): Likewise.
8509
8510 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8511
8512         * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
8513         to rtx_insn *.
8514
8515         * emit-rtl.c (unshare_all_rtl_1): Likewise.
8516         (unshare_all_rtl_again): Likewise, also for local "p".
8517
8518 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8519
8520         * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
8521         to rtx_insn *.
8522         * cfgrtl.c (delete_insn_and_edges): Likewise.
8523
8524 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8525
8526         * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
8527         from rtx to rtx_insn *.
8528
8529         * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
8530
8531 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8532
8533         * function.c (thread_prologue_and_epilogue_insns): Likewise for
8534         locals "returnjump", "epilogue_end", "insn", "next".
8535
8536         * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
8537         "returnjump" from rtx * to rtx_insn **.
8538         * shrink-wrap.c (get_unconverted_simple_return): Likewise.
8539
8540 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8541
8542         * basic-block.h (struct edge_def). Strengthen "r" within
8543         union edge_def_insns from rtx to rtx_insn *.
8544
8545         * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
8546         from rtx to rtx_insn *.  Strengthen local "insns" from rtx to
8547         rtx_insn *.
8548         * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
8549         from rtx to rtx_insn *.
8550         * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
8551         rtx_insn *.
8552         * postreload-gcse.c (reg_killed_on_edge): Likewise.
8553         (reg_used_on_edge): Likewise.
8554         * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
8555         (gt_pch_nx): New overload for rtx_insn *&.
8556         * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
8557         from rtx to rtx_insn *.
8558
8559 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8560
8561         * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
8562         from rtx to rtx_insn *.
8563         (BB_FOOTER): Replace function with access macro.
8564         (SET_BB_FOOTER): Delete.
8565
8566         * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
8567         with BB_FOOTER.
8568         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
8569         (emit_barrier_after_bb): Likewise.
8570         (record_effective_endpoints): Likewise.
8571         (relink_block_chain): Likewise.
8572         (fixup_fallthru_exit_predecessor): Likewise.
8573         (cfg_layout_duplicate_bb): Likewise.
8574         (cfg_layout_split_block): Likewise.
8575         (cfg_layout_delete_block): Likewise.
8576         (cfg_layout_merge_blocks): Likewise.
8577         (BB_FOOTER): Delete function.
8578         (SET_BB_FOOTER): Delete function.
8579         * combine.c (update_cfg_for_uncondjump): Replace uses of
8580         SET_BB_FOOTER with BB_FOOTER.
8581
8582 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8583
8584         * except.h (struct eh_landing_pad_d): Strengthen field
8585         "landing_pad" from rtx to rtx_code_label *.
8586
8587         * except.c (sjlj_emit_dispatch_table): Likewise for param
8588         "dispatch_label"
8589         (sjlj_build_landing_pads): Likewise for local "dispatch_label".
8590
8591 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8592
8593         * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
8594         first param from rtx to rtx_insn *.
8595         * config/xtensa/xtensa.c (struct machine_function): Likewise for
8596         field "set_frame_ptr_insn".
8597         (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
8598         "csend" from rtx to rtx_code_label *.
8599         (xtensa_expand_atomic): Likewise for local "csloop".
8600         (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
8601         rtx_insn *.
8602         (xtensa_call_tls_desc): Likewise for return type and locals
8603         "call_insn", "insns".
8604         (xtensa_legitimize_tls_address): Likewise for local "insns".
8605         (xtensa_expand_prologue): Likewise for locals "insn", "first".
8606
8607 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8608
8609         * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
8610         first param from rtx to rtx_insn *.
8611         * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
8612         "insn".
8613
8614 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8615
8616         * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
8617         Strengthen param 1 from rtx to rtx_insn *.
8618         (tilepro_output_cbranch): Likewise.
8619         (tilepro_adjust_insn_length): Likewise.
8620         (tilepro_final_prescan_insn): Likewise for sole param.
8621
8622         * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
8623         Likewise for local "last".
8624         (cbranch_predicted_p): Likewise for param "insn".
8625         (tilepro_output_simple_cbranch_with_opcode): Likewise.
8626         (tilepro_output_cbranch_with_opcode): Likewise.
8627         (tilepro_output_cbranch): Likewise.
8628         (frame_emit_load): Likewise for return type and locals "seq",
8629         "insn".
8630         (emit_sp_adjust): Likewise for return type and local "insn".
8631         (tilepro_expand_epilogue): Likewise for locals "last_insn",
8632         "insn".
8633         (tilepro_adjust_insn_length): Likewise for param "insn".
8634         (next_insn_to_bundle): Likewise for return type and params
8635         "r", "end".
8636         (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
8637         (replace_pc_relative_symbol_ref): Likewise for param "insn" and
8638         local "new_insns".
8639         (match_addli_pcrel): Likewise for param "insn".
8640         (replace_addli_pcrel): Likewise.
8641         (match_auli_pcrel): Likewise.
8642         (replace_auli_pcrel): Likewise.
8643         (tilepro_fixup_pcrel_references): Likewise for locals "insn",
8644         "next_insn".
8645         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
8646         "queue", "next_queue", "prev".
8647         (tilepro_asm_output_mi_thunk): Likewise for local "insn".
8648         (tilepro_final_prescan_insn): Likewise for param "insn".
8649
8650 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8651
8652         * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
8653         Strengthen param 1 from rtx to rtx_insn *.
8654         (tilegx_output_cbranch): Likewise.
8655         (tilegx_adjust_insn_length): Likewise.
8656         (tilegx_final_prescan_insn): Likewise for sole param.
8657
8658         * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
8659         or local "last".
8660         (cbranch_predicted_p): Likewise for param "insn".
8661         (tilegx_output_simple_cbranch_with_opcode): Likewise.
8662         (tilegx_output_cbranch_with_opcode): Likewise.
8663         (tilegx_output_cbranch): Likewise.
8664         (frame_emit_load): Likewise for return type.
8665         (set_frame_related_p): Likewise for locals "seq", "insn".
8666         (emit_sp_adjust): Likewise for return type, and for local "insn".
8667         Introduce local "pat" for use in place of "insn" where the latter
8668         isn't an instruction.
8669         (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
8670         from rtx to rtx_insn *.
8671         (tilegx_adjust_insn_length): Likewise for param "insn".
8672         (next_insn_to_bundle): Likewise for return type and params "r" and
8673         "end".
8674         (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
8675         "end".
8676         (replace_insns): Likewise for params "old_insn", "new_insns".
8677         (replace_mov_pcrel_step1): Likewise for param "insn" and local
8678         "new_insns".
8679         (replace_mov_pcrel_step2): Likewise.
8680         (replace_mov_pcrel_step3): Likewise.
8681         (tilegx_fixup_pcrel_references): Likewise for locals "insn",
8682         "next_insn".
8683         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
8684         "queue", "next_queue", "prev".
8685         (tilegx_output_mi_thunk): Likewise for local "insn".
8686         (tilegx_final_prescan_insn): Likewise for param "insn".
8687
8688 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8689
8690         * config/spu/spu.c (frame_emit_store): Strengthen return type from
8691         rtx to rtx_insn *.
8692         (frame_emit_load): Likewise.
8693         (frame_emit_add_imm): Likewise, also for local "insn".
8694         (spu_expand_prologue): Likewise for local "insn".
8695         (struct spu_bb_info): Likewise for field "prop_jump".
8696         (emit_nop_for_insn): Likewise for param "insn" and local
8697         "new_insn".
8698         (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
8699         "hbr_insn".
8700         (spu_emit_branch_hint): Likewise for params "before", "branch" and
8701         locals "hint", "insn".
8702         (get_branch_target): Likewise for param "branch".
8703         (insn_clobbers_hbr): Likewise for param "insn".
8704         (insert_hbrp_for_ilb_runout): Likewise for param "first" and
8705         locals "insn", "before_4", "before_16".
8706         (insert_hbrp): Likewise for local "insn".
8707         (spu_machine_dependent_reorg): Likewise for locals "branch",
8708         "insn", "next", "bbend".
8709         (uses_ls_unit): Likewise for param "insn".
8710         (get_pipe): Likewise.
8711         (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
8712         introducing a checked cast.
8713         (spu_sched_adjust_cost): Likewise for params "insn" and
8714         "dep_insn".
8715         (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
8716         (spu_sms_res_mii): Likewise.
8717
8718 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8719
8720         * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
8721         from rtx to rtx_insn *.
8722         (output_cbranch): Likewise for param 6.
8723         (output_return): Likewise for param 1.
8724         (output_sibcall): Likewise.
8725         (output_v8plus_shift): Likewise.
8726         (output_v8plus_mult): Likewise.
8727         (output_v9branch): Likewise for param 7.
8728         (output_cbcond):  Likewise for param 3.
8729
8730         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
8731         for local "insn".
8732         (sparc_legitimize_pic_address): Likewise.
8733         (sparc_emit_call_insn): Likewise.
8734         (emit_save_or_restore_regs): Likewise.
8735         (emit_window_save): Likewise for return type and local "insn".
8736         (sparc_expand_prologue): Likewise for local "insn".
8737         (sparc_flat_expand_prologue): Likewise.
8738         (output_return): Likewise for param "insn".
8739         (output_sibcall): Likewise for param "insn" and local "delay".
8740         (output_ubranch): Likewise for param "insn".
8741         (output_cbranch): Likewise.
8742         (output_cbcond): Likewise.
8743         (output_v9branch): Likewise.
8744         (output_v8plus_shift): Likewise.
8745         (sparc_output_mi_thunk): Likewise for local "insn".
8746         (get_some_local_dynamic_name): Likewise.
8747         (output_v8plus_mult): Likewise for param "insn".
8748
8749 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8750
8751         * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
8752         from rtx to rtx_insn *.
8753         (output_branchy_insn): Likewise for param 3.
8754         (output_far_jump): Likewise for param 1.
8755         (final_prescan_insn): Likewise.
8756         (sh_insn_length_adjustment): Likewise for sole param.
8757
8758         * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
8759         (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
8760         rtx_code_label *.
8761         (sh_emit_compare_and_set): Likewise for local "lab".
8762         (output_far_jump): Strengthen param "insn" and local "prev" from
8763         rtx to rtx_insn *.
8764         (output_branchy_insn): Likewise for param "insn" and local
8765         "next_insn".
8766         (output_ieee_ccmpeq): Likewise for param "insn".
8767         (struct label_ref_list_d): Strengthen field "label" from rtx to
8768         rtx_code_label *.
8769         (pool_node): Likewise.
8770         (pool_window_label): Likewise for this global.
8771         (add_constant): Likewise for return type and locals "lab", "new_rtx".
8772         (dump_table): Strengthen params "start", "barrier" and local
8773         "scan" from rtx to rtx_insn *.
8774         (broken_move): Likewise for param "insn".
8775         (untangle_mova): Likewise for params "first_mova" and "new_mova".
8776         Strengthen param "first_mova" from rtx * to rtx_insn **.
8777         (mova_p): Likewise for param "insn".
8778         (fixup_mova): Likewise for param "mova".
8779         (find_barrier): Likewise for return type, params "mova" and
8780         "from", and locals "barrier_before_mova", "found_barrier",
8781         "good_barrier", "orig", "last_symoff", "next".  Strengthen local
8782         "label" from rtx to rtx_code_label *.
8783         (sh_loop_align): Strengthen locals "first", "insn", "mova" from
8784         rtx to rtx_insn *.
8785         (sh_reorg): Likewise for locals "link", "scan", "barrier".
8786         (split_branches): Likewise for param "first" and local "insn".
8787         (final_prescan_insn): Likewise for param "insn".
8788         (sequence_insn_p): Likewise for locals "prev", "next".
8789         (sh_insn_length_adjustment): Likewise for param "insn".
8790         (sh_can_redirect_branch): Likewise for local "insn".
8791         (find_r0_life_regions): Likewise for locals "end", "insn".
8792         (sh_output_mi_thunk): Likewise for local "insns".
8793
8794 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8795
8796         * config/score/score.c (score_output_mi_thunk): Strengthen local
8797         "insn" from rtx to rtx_insn *.
8798         (score_prologue): Likewise.
8799
8800 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8801
8802         * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
8803         1 from rtx to rtx_insn *.
8804         (s390_emit_jump): Likewise for return type.
8805         (s390_emit_call): Likewise.
8806         (s390_load_got): Likewise.
8807
8808         * config/s390/s390.c (last_scheduled_insn): Likewise for this
8809         variable.
8810         (s390_match_ccmode): Likewise for param "insn".
8811         (s390_emit_jump): Likewise for return type.
8812         (s390_split_branches): Likewise for local "label".
8813         (struct constant): Strengthen field "label" from rtx to
8814         rtx_code_label *.
8815         (struct constant_pool): Likewise for field "label".  Strengthen
8816         fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
8817         rtx_insn *.
8818         (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
8819         insns.
8820         (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
8821         (s390_end_pool): Likewise.
8822         (s390_dump_pool): Likewise for local "insn".
8823         (s390_mainpool_start): Likewise.
8824         (s390_chunkify_start): Likewise.
8825         (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
8826         with insns.  Strengthen locals "label", "jump", "barrier", "next",
8827         "prev", "vec_insn", "insn" from rtx to rtx_insn *.
8828         (s390_chunkify_finish): Strengthen local "insn" from rtx to
8829         rtx_insn *.
8830         (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
8831         "jump", "label", "next_insn".
8832         (s390_regs_ever_clobbered): Likewise for local "cur_insn".
8833         (s390_optimize_nonescaping_tx): Likewise for locals "insn",
8834         "tbegin_insn".
8835         (s390_load_got): Likewise for return type and local "insns".
8836         (s390_save_gprs_to_fprs): Likewise for local "insn".
8837         (s390_restore_gprs_from_fprs): Likewise.
8838         (pass_s390_early_mach::execute): Likewise.
8839         (s390_emit_prologue): Likewise for local "insns".
8840         (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
8841         rtx_code_label *.
8842         (s390_emit_call): Strengthen return type and local "insn" from
8843         rtx to rtx_insn *.
8844         (s390_emit_tpf_eh_return): Likewise for local "insn".
8845         (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
8846         "next_insn", introducing locals "s_pat", "rpat" to allow this.
8847         (s390_fix_long_loop_prediction): Likewise for param "insn" and
8848         local "cur_insn".
8849         (s390_non_addr_reg_read_p): Likewise for param "insn".
8850         (find_cond_jump): Likewise for return type and param "insn".
8851         (s390_swap_cmp): Likewise for param "insn".
8852         (s390_z10_optimize_cmp): Likewise for param "insn" and locals
8853         "prev_insn", "next_insn".
8854         (s390_reorg): Likewise for locals "insn", "target".
8855         (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
8856         (s390_sched_variable_issue): For now, rename param "insn" to
8857         "uncast_insn", introducing a checked cast.
8858         (s390_sched_init): Replace NULL_RTX with NULL when dealing with
8859         insn.
8860         (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
8861         rtx_insn *.  Use for_each_rtx_in_insn rather than for_each_rtx.
8862
8863 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8864
8865         * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
8866         param from rtx to rtx_insn *.
8867         * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
8868
8869 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8870
8871         * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
8872         4 from rtx to rtx_insn *.
8873         (rs6000_final_prescan_insn): Likewise for first param.
8874         * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
8875         local "insn".
8876         (rs6000_get_some_local_dynamic_name): Likewise.
8877         (output_cbranch): Likewise for param "insn".
8878         (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
8879         (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
8880         (rs6000_emit_allocate_stack): Likewise for local "insn".
8881         (load_cr_save): Likewise.
8882         (restore_saved_cr): Likewise.
8883         (restore_saved_lr): Likewise.
8884         (emit_cfa_restores): Likewise.
8885         (rs6000_output_function_epilogue): Likewise for locals "insn" and
8886         "deleted_debug_label".
8887         (rs6000_output_mi_thunk): Likewise for local "insn".
8888         (rs6000_final_prescan_insn): Likewise for param "insn".
8889
8890 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8891
8892         * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
8893         Strengthen param "insn" from rtx to rtx_insn *.
8894         * config/picochip/picochip.c (picochip_current_prescan_insn):
8895         Likewise for this variable.
8896         (picochip_final_prescan_insn): Likewise for param "insn".
8897
8898 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8899
8900         * config/pa/pa-protos.h (pa_output_call): Strengthen first param
8901         from rtx to rtx_insn *.
8902         (pa_output_indirect_call): Likewise.
8903         (pa_adjust_insn_length): Likewise.
8904         (pa_attr_length_millicode_call): Likewise.
8905         (pa_attr_length_call): Likewise.
8906         (pa_attr_length_indirect_call): Likewise.
8907
8908         * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
8909         "insn".
8910         (pa_attr_length_millicode_call): Likewise.
8911         (pa_attr_length_call): Likewise.
8912         (pa_output_call): Likewise.
8913         (pa_attr_length_indirect_call): Likewise.
8914         (pa_output_indirect_call): Likewise.
8915
8916 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8917
8918         * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
8919         Strengthen first param from rtx to rtx_insn *.
8920         * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
8921         param "insn".
8922
8923 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8924
8925         * config/mips/mips-protos.h (mips_emit_move): Strengthen return
8926         type from rtx to rtx_insn *.
8927         (mips_expand_call): Likewise.
8928         (mips_adjust_insn_length): Likewise for first param.
8929         (mips_output_conditional_branch): Likewise.
8930         (mips_output_order_conditional_branch): Likewise.
8931         (mips_final_prescan_insn): Likewise.
8932
8933         * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
8934         rtx_insn * for the SEQUENCE case.
8935         (SEQ_END): Likewise.
8936         (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
8937         (mips_emit_call_insn): Likewise, also for local "insn".
8938         (mips16_gp_pseudo_reg): Likewise for local "scan".
8939         (mips16_build_call_stub): Likewise for return type and for local
8940         "insn".  Introduce a new local "pattern" so that "insn" can indeed
8941         be an insn.
8942         (mips_expand_call): Strengthen return type and local "insn" from
8943         rtx to rtx_insn *.
8944         (mips_block_move_loop): Strengthen local "label" from rtx to
8945         rtx_code_label *.
8946         (mips_expand_synci_loop): Likewise for locals "label",
8947         "end_label".
8948         (mips_set_frame_expr): Strengthen local "insn" from rtx to
8949         rtx_insn *.
8950         (mips16e_collect_argument_saves): Likewise for locals "insn",
8951         "next".
8952         (mips_find_gp_ref): Likewise for param of callback for "pred"
8953         param, and for local "insn".
8954         (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
8955         (mips_insn_has_flexible_gp_ref_p): Likewise.
8956         (mips_epilogue_emit_cfa_restores): Likewise for return type and
8957         local "insn".
8958         (mips_epilogue_set_cfa): Likewise for local "insn".
8959         (mips_expand_epilogue): Likewise.
8960         (mips_adjust_insn_length): Likewise for param "insn".
8961         (mips_output_conditional_branch): Likewise.
8962         (mips_output_order_conditional_branch): Likewise.
8963         (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
8964         "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
8965         "falu2_turn_enabled_insn".
8966         (mips_builtin_branch_and_move): Strengthen locals "true_label",
8967         "done_label" from rtx to rtx_code_label *.
8968         (struct mips16_constant): Likewise for field "label".
8969         (mips16_add_constant): Likewise for return type.
8970         (mips16_emit_constants_1): Strengthen return type and param "insn"
8971         from rtx to rtx_insn *.
8972         (mips16_emit_constants): Likewise for param "insn".
8973         (mips16_insn_length): Likewise.
8974         (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
8975         to rtx_code_label *.
8976         (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
8977         from rtx to rtx_insn *.
8978         (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
8979         "jump".  Strengthen local "label" from rtx to rtx_code_label *.
8980         (r10k_simplify_address): Strengthen param "insn" and local
8981         "def_insn" from rtx to rtx_insn *.
8982         (r10k_safe_address_p): Strengthen param "insn" from rtx to
8983         rtx_insn *.
8984         (r10k_needs_protection_p_1): Update target type of cast of data
8985         from to rtx to rtx_insn *.
8986         (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
8987         rtx * to rtx_insn **.
8988         (r10k_needs_protection_p): Strengthen param "insn" from rtx to
8989         rtx_insn *.
8990         (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
8991         (mips_call_expr_from_insn): Likewise for param "insn".
8992         (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
8993         (mips_find_pic_call_symbol): Likewise for param "insn".
8994         (mips_annotate_pic_calls): Likewise for local "insn".
8995         (mips_sim_insn): Likewise for this variable.
8996         (struct mips_sim): Likewise for field "insn" within elements of
8997         last_set array.
8998         (mips_sim_wait_reg): Likewise for param "insn".
8999         (mips_sim_wait_regs): Likewise.
9000         (mips_sim_wait_units): Likewise.
9001         (mips_sim_wait_insn): Likewise.
9002         (mips_sim_issue_insn): Likewise.
9003         (mips_sim_finish_insn): Likewise.
9004         (mips_seq_time): Likewise for param "seq" and local "insn".
9005         (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
9006         locals "first", "second".
9007         (vr4130_align_insns): Likewise for locals "insn", "subinsn",
9008         "last", "last2", "next".
9009         (mips_avoid_hazard): Likewise for params "after", "insn".
9010         (mips_reorg_process_insns): Likewise for locals "insn",
9011         "last_insn", "subinsn", "next_insn".
9012         (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
9013         (mips16_split_long_branches): Likewise for locals "insn" "jump",
9014         "jump_sequence".
9015         (mips_output_mi_thunk): Likewise for local "insn".
9016         (mips_final_prescan_insn): Likewise for param "insn".
9017
9018 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9019
9020         * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
9021         Strengthen return type and local "insns" from rtx to rtx_insn *.
9022         (microblaze_legitimize_tls_address): Likewise for local "insns".
9023         (microblaze_block_move_loop): Strengthen local "label" from rtx
9024         to rtx_code_label *.
9025         (microblaze_expand_prologue): Strengthen two locals named "insn"
9026         from rtx to rtx_insn *.
9027         (microblaze_asm_output_mi_thunk): Likewise for local "insn".
9028         (microblaze_expand_divide): Likewise for locals "jump", "cjump",
9029         "insn".  Strengthen locals "div_label", "div_end_label" from rtx
9030         to rtx_code_label *.
9031
9032 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9033
9034         * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
9035         param from rtx to rtx_insn *.
9036         (mep_reuse_lo): Likewise for third param.
9037         (mep_use_post_modify_p): Likewise for first param.
9038         (mep_core_address_length): Likewise.
9039         (mep_cop_address_length): Likewise.
9040         (mep_final_prescan_insn): Likewise.
9041         (mep_store_data_bypass_p): Likewise for both params.
9042         (mep_mul_hilo_bypass_p): Likewise.
9043         (mep_ipipe_ldc_p): Likewise for param.
9044
9045         * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
9046         (mep_rewrite_mult): Likewise.
9047         (mep_rewrite_mulsi3): Likewise.
9048         (mep_rewrite_maddsi3): Likewise.
9049         (mep_reuse_lo_p_1): Likewise.
9050         (mep_reuse_lo_p): Likewise.
9051         (mep_frame_expr): Likewise.
9052         (mep_make_parallel): Likewise for both params.
9053         (mep_use_post_modify_p_1): Likewise for param "set_insn" and
9054         local "insn".
9055         (mep_use_post_modify_p): Likewise for param "insn".
9056         (mep_core_address_length): Likewise.
9057         (mep_cop_address_length): Likewise.
9058         (mep_reg_set_in_function): Likewise for local "insn".
9059         (mep_asm_without_operands_p): Likewise.
9060         (F): Likewise for return type and param "x".
9061         (add_constant): Likewise for local "insn".
9062         (maybe_dead_move): Likewise for return type and local "insn".
9063         (mep_expand_prologue): Likewise for local "insn".
9064         (mep_final_prescan_insn): Likewise for param "insn".
9065         (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
9066         "next", "follow", "x".
9067         (mep_insert_repeat_label_last): Likewise for return type, param
9068         "last_insn", and locals "next", "prev".  Strengthen param "label"
9069         from rtx to rtx_code_label *.
9070         (struct mep_doloop_begin): Strengthen field "insn" from rtx to
9071         rtx_insn *.
9072         (struct mep_doloop_end): Likewise for fields "insn" and
9073         "fallthrough".
9074         (mep_reorg_repeat): Likewise for param "insns" and local "insn".
9075         Strengthen local "repeat_label" from rtx to rtx_code_label *.
9076         (mep_invertable_branch_p): Strengthen param "insn" from rtx to
9077         rtx_insn *.
9078         (mep_invert_branch): Likewise for params "insn" and "after".
9079         (mep_reorg_erepeat): Likewise for param "insns" and locals
9080         "insn", "prev", "new_last", "barrier", "user".  Strengthen local
9081         "l" from rtx to rtx_code_label *.
9082         (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
9083         from rtx to rtx_insn *.
9084         (mep_reorg_addcombine): Likewise for param "insns" and locals
9085         "i", "n".
9086         (add_sp_insn_p): Likewise for param "insn".
9087         (mep_reorg_noframe): Likewise for param "insns" and locals
9088         "start_frame_insn", "end_frame_insn", "next".
9089         (mep_reorg): Likewise for local "insns".
9090         (mep_store_data_bypass_1): Likewise for param "prev".  Add checked
9091         cast.
9092         (mep_store_data_bypass_p): Likewise for params "prev", "insn".
9093         (mep_mul_hilo_bypass_p): Likewise.
9094         (mep_ipipe_ldc_p): Likewise for param "insn".
9095         (mep_make_bundle): Likewise for return type, param "cop" and local
9096         "insn", splitting out the latter into a new local "seq" for when it
9097         is a SEQUENCE rather than an insn.
9098         (core_insn_p): Likewise for param "insn".
9099         (mep_bundle_insns): Likewise for param "insns" and locals "insn",
9100         "last", "first", "note", "prev", "core_insn".
9101
9102 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9103
9104         * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
9105         rtx to rtx_insn *.
9106         (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
9107         (m68k_final_prescan_insn): Likewise for first param.
9108
9109         * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
9110         (m68k_set_frame_related): Likewise for param "insn".
9111         (output_btst): Likewise for param "insn".
9112         (m68k_final_prescan_insn): Likewise.
9113         (m68k_move_to_reg): Likewise for local "insn".
9114         (m68k_call_tls_get_addr): Likewise for local "insns".
9115         (m68k_call_m68k_read_tp): Likewise.
9116         (strict_low_part_peephole_ok): Likewise for param "first_insn".
9117         (m68k_output_mi_thunk): Likewise for local "insn".
9118
9119 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9120
9121         * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
9122         first param from rtx to rtx_insn *.
9123         (iq2000_adjust_insn_length): Likewise.
9124         (iq2000_output_conditional_branch): Likewise.
9125         * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
9126         "insn" and local "nop_insn".
9127         (iq2000_annotate_frame_insn): Likewise for param "insn".
9128         (iq2000_expand_prologue): Likewise for both locals "insn".
9129         (iq2000_adjust_insn_length): Likewise for param "insn".
9130         (iq2000_output_conditional_branch): Likewise.
9131
9132 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9133
9134         * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
9135         "insns" from rtx to rtx_insn *.
9136         (ia64_emit_cond_move): Likewise for locals "insn", "first".
9137         (struct spill_fill_data): Likewise for field "init_after" and for
9138         elements of array field "prev_insn".
9139         (spill_restore_mem): Likewise for locals "insn", "first".
9140         (do_spill): Likewise for local "insn".
9141         (do_restore): Likewise.
9142         (ia64_expand_prologue): Likewise.
9143         (ia64_expand_epilogue): Likewise.
9144         (emit_insn_group_barriers): Likewise for locals "insn",
9145         "last_label".
9146         (emit_all_insn_group_barriers): Likewise for locals "insn",
9147         "last".
9148         (dfa_stop_insn): Likewise for this global.
9149         (dfa_pre_cycle_insn): Likewise.
9150         (ia64_nop): Likewise.
9151         (final_emit_insn_group_barriers): Likewise for locals "insn",
9152         "last".
9153         (emit_predicate_relation_info): Likewise for locals "head", "n",
9154         "insn", "b", "a".
9155         (ia64_reorg): Likewise for local "insn".
9156         (ia64_output_mi_thunk): Likewise.
9157         (expand_vec_perm_interleave_2): Likewise for local "seq".
9158
9159 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9160
9161         * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
9162         param 1 "insn" from rtx to rtx_insn *.
9163         (ix86_use_lea_for_mov): Likewise.
9164         (ix86_avoid_lea_for_addr): Likewise.
9165         (ix86_split_lea_for_addr): Likewise.
9166         (ix86_lea_for_add_ok): Likewise.
9167         (ix86_output_call_insn): Likewise.
9168
9169         * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
9170         (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
9171         (ix86_output_function_epilogue): Likewise for locals "insn",
9172         "deleted_debug_label".
9173         (legitimize_tls_address): Likewise for local "insn".
9174         (get_some_local_dynamic_name): Likewise.
9175         (increase_distance): Likewise for params "prev", "next".
9176         (distance_non_agu_define_in_bb): Likewise for params "insn",
9177         "start" and locals "prev", "next".
9178         (distance_non_agu_define): Likewise for param "insn".
9179         (distance_agu_use_in_bb): Likewise for params "insn", "start" and
9180         locals "next", "prev".
9181         (distance_agu_use): Likewise for param "insn".
9182         (ix86_lea_outperforms): Likewise.
9183         (ix86_ok_to_clobber_flags): Likewise.
9184         (ix86_avoid_lea_for_add): Likewise.
9185         (ix86_use_lea_for_mov): Likewise.
9186         (ix86_avoid_lea_for_addr): Likewise.
9187         (find_nearest_reg_def): Likewise, also for locals "prev", "start".
9188         (ix86_split_lea_for_addr): Likewise for param "insn".
9189         (ix86_lea_for_add_ok): Likewise for param "insn".
9190         (ix86_expand_carry_flag_compare): Likewise for local
9191         "compare_seq".
9192         (ix86_expand_int_movcc): Likewise.
9193         (ix86_output_call_insn): Likewise for param "insn".
9194         (ix86_output_call_insn): Likewise for local "i".
9195         (x86_output_mi_thunk): Introduce local "insn", using it in place
9196         of "tmp" when dealing with insns.
9197         (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
9198         "start".
9199         (ix86_pad_returns): Likewise for locals "ret", "prev".
9200         (ix86_count_insn_bb): Likewise for local "insn".
9201         (ix86_pad_short_function): Likewise for locals "ret", "insn".
9202         (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
9203         (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
9204         (expand_vec_perm_interleave2): Likewise for local "seq".
9205         (expand_vec_perm_vperm2f128_vblend): Likewise.
9206         (ix86_loop_unroll_adjust): Likewise for local "insn".  Convert
9207         call to for_each_rtx with for_each_rtx_in_insn.
9208
9209 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9210
9211         * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
9212         "label" from rtx to rtx_code_label *.
9213         (ix86_expand_prologue): Likewise.
9214         (ix86_expand_split_stack_prologue): Likewise for locals "label",
9215         "varargs_label".
9216         (ix86_split_idivmod): Likewise for locals "end_label" and
9217         "qimode_label".
9218         (ix86_expand_branch): Likewise for local "label2".
9219         (ix86_expand_aligntest): Likewise for return type and local "label".
9220         (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
9221         "top_label".
9222         (expand_movmem_epilogue): Likewise for the various locals named
9223         "label".
9224         (expand_setmem_epilogue): Likewise.
9225         (expand_small_movmem_or_setmem): Likewise for local "label".
9226         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
9227         Strengthen param "done_label" from rtx * to rtx_code_label **.
9228         Strengthen locals "loop_label" and "label" from rtx to
9229         rtx_code_label *.
9230         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
9231         Likewise for locals "loop_label", "label".
9232         (ix86_expand_set_or_movmem): Likewise for locals "label",
9233         "jump_around_label", "hot_label".
9234         (ix86_expand_strlensi_unroll_1): Likewise for locals
9235         "align_2_label", align_3_label", "align_4_label", "end_0_label",
9236         "end_2_label".
9237         (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
9238         (void ix86_emit_i387_log1p): Likewise for locals "label1",
9239         "label2", "jump_label".
9240         (ix86_expand_sse_compare_and_jump): Likewise for return type and
9241         local "label".
9242         (ix86_expand_lfloorceil): Likewise for local "label".
9243         (ix86_expand_rint): Likewise.
9244         (ix86_expand_floorceildf_32): Likewise.
9245         (ix86_expand_floorceil): Likewise.
9246         (ix86_expand_rounddf_32): Likewise.
9247         (ix86_expand_trunc): Likewise.
9248         (ix86_expand_truncdf_32): Likewise.
9249         (ix86_expand_round): Likewise.
9250
9251 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9252
9253         * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
9254         first param from rtx to rtx_insn *.
9255         (h8300_insn_length_from_table): Likewise.
9256         * config/h8300/h8300.c (F): Likewise for return type and param
9257         "x".
9258         (Fpa): Add a checked cast to rtx_insn *.
9259         (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
9260         rtx_insn *.
9261         (final_prescan_insn): Likewise for param "insn".
9262         (h8300_binary_length): Likewise.
9263         (h8300_insn_length_from_table): Likewise.
9264
9265 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9266
9267         * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
9268         Strengthen first param "insn" from rtx to rtx_insn *.
9269
9270         * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
9271         Likewise.
9272         (frame_insn): Likewise for return type.  Introduce local "insn"
9273         for use in place of local "x" for use as an rtx_insn *.
9274         (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
9275         (epiphany_expand_prologue): Likewise for local "insn".
9276         * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
9277         * config/epiphany/resolve-sw-modes.c
9278         (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
9279         "seq".
9280
9281 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9282
9283         * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
9284         param from rtx to rtx_insn *.
9285         (c6x_final_prescan_insn): Likewise for first param.
9286
9287         * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
9288         (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
9289         (c6x_expand_compare): Strengthen local "insns" from rtx to
9290         rtx_insn *.
9291         (c6x_get_unit_specifier): Likewise for param "insn".
9292         (c6x_print_unit_specifier_field): Likewise.
9293         (c6x_final_prescan_insn): Likewise.
9294         (emit_add_sp_const): Likewise for local "insn".
9295         (c6x_expand_prologue): Likewise.
9296
9297 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9298
9299         * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
9300         param 1 from rtx to rtx_insn *.
9301         * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
9302         the various locals named "insn".
9303         (expand_epilogue_reg_restore): Likewise.
9304         (frame_related_constant_load): Likewise.
9305         (add_to_reg): Likewise.
9306         (emit_link_insn): Likewise.
9307         (do_link): Likewise.
9308         (expand_interrupt_handler_prologue): Likewise.
9309         (branch_dest): Likewise for param "branch".
9310         (asm_conditional_branch): Likewise for param "insn".
9311         (gen_one_bundle): Likewise for elements of param "slot" and local
9312         "t".
9313         (bfin_gen_bundles): Likewise for locals "insn", "next" and
9314         elements of local "slot".
9315         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
9316         "queue", "next_queue", "prev".
9317         (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
9318         (add_sched_insns_for_speculation): Likewise for local "insn".
9319
9320 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9321
9322         * config/avr/avr-protos.h (output_movqi): Strengthen first param
9323         from rtx to rtx_insn *.
9324         (output_movhi): Likewise.
9325         (output_movsisf): Likewise.
9326         (avr_out_tstsi): Likewise.
9327         (avr_out_tsthi): Likewise.
9328         (avr_out_tstpsi): Likewise.
9329         (avr_out_compare): Likewise.
9330         (avr_out_compare64): Likewise.
9331         (avr_out_movpsi): Likewise.
9332         (ashlqi3_out): Likewise.
9333         (ashlhi3_out): Likewise.
9334         (ashlsi3_out): Likewise.
9335         (ashrqi3_out): Likewise.
9336         (ashrhi3_out): Likewise.
9337         (ashrsi3_out): Likewise.
9338         (lshrqi3_out): Likewise.
9339         (lshrhi3_out): Likewise.
9340         (lshrsi3_out): Likewise.
9341         (avr_out_ashlpsi3): Likewise.
9342         (avr_out_ashrpsi3): Likewise.
9343         (avr_out_lshrpsi3): Likewise.
9344         (avr_out_fract): Likewise.
9345         (avr_out_sbxx_branch): Likewise.
9346         (avr_out_round): Likewise.
9347         (avr_out_xload): Likewise.
9348         (avr_out_movmem): Likewise.
9349         (adjust_insn_length): Likewise.
9350         (avr_out_lpm): Likewise.
9351         (reg_unused_after): Likewise.
9352         (_reg_unused_after): Likewise.
9353         (avr_jump_mode): Likewise for second param.
9354         (jump_over_one_insn): Likewise for first param.
9355         (avr_final_prescan_insn): Likewise.
9356         (out_shift_with_cnt): Likewise for second param.
9357
9358         * config/avr/avr.c (get_sequence_length): Likewise for param
9359         "insns" and local "insn".
9360         (emit_push_byte): Likewise for local "insn".
9361         (emit_push_sfr): Likewise.
9362         (avr_prologue_setup_frame): Likewise for locals "insn",
9363         "fp_plus_insns", "sp_plus_insns".
9364         (avr_expand_epilogue): Likewise for local "fp_plus_insns",
9365         "sp_plus_insns".
9366         (avr_jump_mode): Likewise for param "insn".
9367         (avr_final_prescan_insn): Likewise.
9368         (avr_find_unused_d_reg): Likewise.
9369         (avr_out_lpm_no_lpmx): Likewise.
9370         (avr_out_lpm): Likewise.
9371         (avr_out_xload): Likewise.
9372         (output_movqi): Likewise.
9373         (output_movhi): Likewise.
9374         (out_movqi_r_mr): Likewise.
9375         (out_movhi_r_mr): Likewise.
9376         (out_movsi_r_mr): Likewise.
9377         (out_movsi_mr_r): Likewise.
9378         (output_movsisf): Likewise.
9379         (avr_out_load_psi): Likewise.
9380         (avr_out_store_psi): Likewise.
9381         (avr_out_movpsi): Likewise.
9382         (out_movqi_mr_r): Likewise.
9383         (avr_out_movhi_mr_r_xmega): Likewise.
9384         (out_movhi_mr_r): Likewise.
9385         (compare_condition): Likewise for param "insn" and local "next".
9386         (compare_sign_p): Likewise for param "insn".
9387         (compare_diff_p): Likewise.
9388         (compare_eq_p): Likewise.
9389         (avr_out_compare): Likewise.
9390         (avr_out_compare64): Likewise.
9391         (avr_out_tsthi): Likewise.
9392         (avr_out_tstpsi): Likewise.
9393         (avr_out_tstsi): Likewise.
9394         (out_shift_with_cnt): Likewise.
9395         (ashlqi3_out): Likewise.
9396         (ashlhi3_out): Likewise.
9397         (avr_out_ashlpsi3): Likewise.
9398         (ashlsi3_out): Likewise.
9399         (ashrqi3_out): Likewise.
9400         (ashrhi3_out): Likewise.
9401         (avr_out_ashrpsi3): Likewise.
9402         (ashrsi3_out): Likewise.
9403         (lshrqi3_out): Likewise.
9404         (lshrhi3_out): Likewise.
9405         (avr_out_lshrpsi3): Likewise.
9406         (lshrsi3_out): Likewise.
9407         (avr_out_fract): Likewise.
9408         (avr_out_round): Likewise.
9409         (avr_adjust_insn_length): Likewise.
9410         (reg_unused_after): Likewise.
9411         (_reg_unused_after): Likewise.
9412         (avr_compare_pattern): Likewise.
9413         (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
9414         and locals "branch1", "branch2", "insn2", "jump".
9415         (avr_reorg): Likewise for local "insn".
9416         (avr_2word_insn_p): Likewise for param "insn".
9417         (jump_over_one_insn_p): Likewise.
9418         (avr_out_sbxx_branch): Likewise.
9419         (avr_out_movmem): Likewise.
9420
9421 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9422
9423         * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
9424         param from rtx to rtx_insn *.
9425         (thumb1_final_prescan_insn): Likewise.
9426         (thumb2_final_prescan_insn): Likewise.
9427
9428         * config/arm/arm.c (emit_set_insn): Strengthen return type from
9429         rtx to rtx_insn *.
9430         (struct minipool_node): Likewise for field "insn".
9431         (dump_minipool): Likewise for param "scan".
9432         (create_fix_barrier): Likewise for local "from".  Strengthen local
9433         "label" from rtx to rtx_code_label *.
9434         (push_minipool_barrier): Strengthen param "insn" from rtx to
9435         rtx_insn *.
9436         (push_minipool_fix): Likewise.
9437         (note_invalid_constants): Likewise.
9438         (thumb2_reorg): Likewise for local "insn".
9439         (arm_reorg): Likewise.
9440         (thumb2_final_prescan_insn): Likewise for param
9441         "insn" and local "first_insn".
9442         (arm_final_prescan_insn): Likewise for param "insn" and locals
9443         "start_insn", "this_insn".
9444         (arm_debugger_arg_offset): Likewise for param "insn".
9445         (thumb1_emit_multi_reg_push): Likewise for return type and local
9446         "insn".
9447         (thumb1_final_prescan_insn): Likewise for param "insn".
9448         (thumb_far_jump_used_p): Likewise for local "insn".
9449         (thumb1_expand_prologue): Likewise.
9450         (arm_expand_epilogue_apcs_frame): Likewise.
9451         (arm_expand_epilogue): Likewise for locals "insn", "tmp".
9452         (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
9453         from rtx to rtx_code_label *.
9454         (arm_split_atomic_op): Likewise for local "label".
9455         (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
9456
9457 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9458
9459         * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
9460         first param from rtx to rtx_insn *.
9461         (arc_verify_short): Likewise.
9462         (arc_short_long): Likewise.
9463         (arc_need_delay): Likewise.
9464
9465         * config/arc/arc.c (struct arc_ccfsm): Likewise for field
9466         "target_insn".
9467         (arc_ccfsm_advance): Likewise for param "insn" and locals
9468         "start_insn", "this_insn".
9469         (arc_ccfsm_record_condition): Likewise for local "seq_insn".
9470         (arc_ccfsm_post_advance): Likewise for param "insn".
9471         (arc_next_active_insn): Likewise for return type and param "insn".
9472         Convert NULL_RTX to NULL as appropriate.  Add a checked cast.
9473         (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
9474         (output_short_suffix): Likewise for local "insn".
9475         (arc_final_prescan_insn): Likewise for param "insn".  Remove
9476         now-redundant checked cast.
9477         (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
9478         "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
9479         rtx_insn *.  Add a checked cast.  Introduce local "lc_set_insn"
9480         for use where lc_set became an insn.
9481         (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
9482         rtx to rtx_insn *.
9483         (arc_get_insn_variants): Likewise for local "prev".
9484         (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
9485         "next".
9486         (arc_predicate_delay_insns): Likewise for local "insn".
9487         (arc_pad_return): Likewise for local "prev".  For now, add a
9488         checked cast when extracting the insn from "final_sequence".
9489         (arc_short_long): Likewise for param "insn".
9490         (arc_need_delay): Likewise for param "insn" and local "next".
9491         (arc_label_align): Likewise for locals "prev", "next".
9492
9493 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9494
9495         * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
9496         "insn" from rtx to rtx_insn *.
9497         (alpha_gp_save_rtx): Likewise for local "seq".
9498         (alpha_instantiate_decls): Likewise for local "top".
9499         (get_some_local_dynamic_name): Likewise for local "insn".
9500         (alpha_does_function_need_gp): Likewise.
9501         (set_frame_related_p): Likewise for return type and for locals
9502         "seq" and "insn".
9503         (emit_frame_store_1): Likewise for local "insn".
9504         (alpha_expand_prologue): Likewise for locals "insn", "seq".
9505         (alpha_end_function): Likewise for local "insn".
9506         (alpha_output_mi_thunk_osf): Likewise.
9507         (alphaev4_insn_pipe): Likewise for param "insn".
9508         (alphaev5_insn_pipe): Likewise.
9509         (alphaev4_next_group): Likewise for return type and param 1
9510         "insn".
9511         (alphaev5_next_group): Likewise.
9512         (alpha_align_insns_1): Likewise for return type and param 1 of
9513         callback param "next_group", and for locals "i", "next", "prev",
9514         "where", "where2", "insn".
9515
9516 2014-08-25  Bernd Schmidt  <bernds@codesourcery.com>
9517
9518         * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
9519         rather than modifying the stmt.
9520
9521 2014-08-25  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
9522
9523         * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
9524         cgraph_state conversion.
9525
9526 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9527
9528         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
9529         Strengthen local "insns" from rtx to rtx_insn *.
9530         (aarch64_set_frame_expr): Likewise for local "insn".
9531         (aarch64_save_or_restore_fprs): Likewise.
9532         (aarch64_save_or_restore_callee_save_registers): Likewise.
9533         (aarch64_expand_prologue): Likewise.
9534         (aarch64_expand_epilogue): Likewise.
9535         (aarch64_output_mi_thunk): Likewise.
9536         (aarch64_split_compare_and_swap): Strengthen locals "label1" and
9537         "label2" from rtx to rtx_code_label *.
9538         (aarch64_split_atomic_op): Likewise for local "label".
9539
9540 2014-08-25  Martin Liska  <mliska@suse.cz>
9541
9542         * cgraph.h (symtab_node):
9543         (bool needed_p (void)): created from decide_is_symbol_needed
9544         (bool referred_to_p (void)): created from referred_to_p
9545         (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
9546         * cgraph.h (cgraph_node):
9547         (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
9548         (void expand (void)): created from expand_function
9549         (static void finalize_function (tree, bool)): created from cgraph_finalize_function
9550         (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
9551         (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
9552         (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
9553         * cgraph.h (varpool_node):
9554         (static void add (tree decl): created from varpool_add_new_variable
9555         * cgraph.h (cgraph_edge):
9556         void remove (void);
9557         (void remove_caller (void)): created from cgraph_edge_remove_caller
9558         (void remove_callee (void)): created from cgraph_edge_remove_callee
9559         (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
9560           created from cgraph_set_call_stmt
9561         (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
9562         (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
9563         (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
9564           gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
9565         (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
9566           created from cgraph_speculative_call_info
9567         (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
9568           int freq_scale, bool update_original)): created from cgraph_clone_edge
9569         (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
9570         (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
9571         (bool recursive_p (void)): created from cgraph_edge_recursive_p
9572         (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
9573         (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
9574         (static void rebuild_references (void)): created from cgraph_rebuild_references
9575         * cgraph.h (symbol_table):
9576         (create_reference): renamed from add_reference
9577         (maybe_create_reference): renamed from maybe_add_reference
9578         (void register_symbol (symtab_node *node)): new function
9579         (void clear_asm_symbols (void)): new function
9580         (void unregister (symtab_node *node)): new function
9581         (void release_symbol (cgraph_node *node, int uid)): new function
9582         (cgraph_node * allocate_cgraph_symbol (void)): new function
9583         (void initialize (void)): created from cgraph_init
9584         (symtab_node *first_symbol (void)):new function
9585         (asm_node *first_asm_symbol (void)):new function
9586         (symtab_node *first_defined_symbol (void)):new function
9587         (varpool_node *first_variable (void)):new function
9588         (varpool_node *next_variable (varpool_node *node)):new function
9589         (varpool_node *first_static_initializer (void)):new function
9590         (varpool_node *next_static_initializer (varpool_node *node)):new function
9591         (varpool_node *first_defined_variable (void)):new function
9592         (varpool_node *next_defined_variable (varpool_node *node)):new function
9593         (cgraph_node *first_defined_function (void)):new function
9594         (cgraph_node *next_defined_function (cgraph_node *node)):new function
9595         (cgraph_node *first_function (void)):new function
9596         (cgraph_node *next_function (cgraph_node *node)):new function
9597         (cgraph_node *first_function_with_gimple_body (void)):new function
9598         (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
9599         (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
9600           created from symtab_remove_unreachable_nodes
9601         (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
9602         (void process_new_functions (void)): created from cgraph_process_new_functions
9603         (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
9604         (bool output_variables (void)): created from varpool_node::output_variables
9605         (void output_asm_statements (void)): created from output_asm_statements
9606         (void finalize_compilation_unit (void)): created from finalize_compilation_unit
9607         (void compile (void)): created from compile
9608         (void output_weakrefs (void)): created from output_weakrefs
9609         (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
9610         (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
9611           gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
9612         (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
9613         (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
9614           created from cgraph_next_function_with_gimple_body
9615         (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
9616           created from cgraph_remove_edge_removal_hook
9617         (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
9618           created from cgraph_add_node_removal_hook
9619         (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
9620           created from cgraph_remove_node_removal_hook
9621         (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
9622           created from varpool_add_node_removal_hook
9623         (void remove_varpool_removal_hook (varpool_node_hook_list *)):
9624           created from varpool_remove_node_removal_hook
9625         (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
9626           created from cgraph_add_function_insertion_hook
9627         (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
9628           created from cgraph_remove_function_insertion_hook
9629         (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
9630           created from varpool_add_variable_insertion_hook
9631         (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
9632           created from varpool_remove_variable_insertion_hook
9633         (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
9634           created from cgraph_add_edge_duplication_hook
9635         (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
9636           created from cgraph_remove_edge_duplication_hook
9637         (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
9638           created from cgraph_add_node_duplication_hook
9639         (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
9640           created from cgraph_remove_node_duplication_hook
9641         (void call_edge_removal_hooks (cgraph_edge *e)):
9642           created from cgraph_call_edge_removal_hooks
9643         (void call_cgraph_insertion_hooks (cgraph_node *node)):
9644           created from call_function_insertion_hooks
9645         (void call_cgraph_removal_hooks (cgraph_node *node)):
9646           created from cgraph_call_node_removal_hooks
9647         (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
9648           created from cgraph_node::call_duplication_hooks
9649         (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
9650           created from cgraph_call_edge_duplication_hooks
9651         (void call_varpool_removal_hooks (varpool_node *node)):
9652           created from varpool_call_node_removal_hooks
9653         (void call_varpool_insertion_hooks (varpool_node *node)):
9654           created from varpool_call_variable_insertion_hooks
9655         (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
9656           created from insert_to_assembler_name_hash
9657         (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
9658           created from unlink_from_assembler_name_hash
9659         (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
9660           created from symtab_prevail_in_asm_name_hash
9661         (void symtab_initialize_asm_name_hash (void)):
9662           created from symtab_initialize_asm_name_hash
9663         (void change_decl_assembler_name (tree decl, tree name)):
9664           created from change_decl_assembler_name
9665         (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
9666         (static hashval_t decl_assembler_name_hash (const_tree asmname)):
9667           created from decl_assembler_name_hash
9668         (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
9669           created from decl_assembler_name_equal
9670         (static hashval_t hash_node_by_assembler_name (const void *p)):
9671           created from hash_node_by_assembler_name
9672         (static int eq_assembler_name (const void *p1, const void *p2)):
9673           created from eq_assembler_name
9674
9675 2014-08-25  Marek Polacek  <polacek@redhat.com>
9676
9677         * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
9678
9679 2014-08-25  Petr Murzin  <petr.murzin@intel.com>
9680
9681         * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
9682         (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
9683         SWI1248_AVX512BW mode iterator.
9684
9685 2014-08-25  Kaz Kojima  <kkojima@gcc.gnu.org>
9686
9687         PR target/62111
9688         * config/sh/predicates.md (general_extend_operand): Disable
9689         TRUNCATE before reload completes.
9690
9691 2014-08-24  Gerald Pfeifer  <gerald@pfeifer.com>
9692
9693         * doc/invoke.texi (Optimize Options): Fix markup in two cases.
9694
9695 2014-08-24  Oleg Endo  <olegendo@gcc.gnu.org>
9696
9697         PR target/61996
9698         * config/sh/sh.opt (musermode): Allow negative form.
9699         * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
9700         targets that don't support it.
9701         * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
9702         Document -mno-usermode option.
9703
9704 2014-08-24  Kito Cheng  <kito@0xlab.org>
9705
9706         * system.h (CALLER_SAVE_PROFITABLE): Poison.
9707         * regs.h (CALLER_SAVE_PROFITABLE): Remove.
9708         * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
9709         * doc/tm.texi: Regenerate.
9710
9711 2014-08-24  Kito Cheng  <kito@0xlab.org>
9712
9713         * ira.c: Fix typo in comment.
9714
9715 2014-08-23  Edward Smith-Rowland  <3dw4rd@verizon.net>
9716
9717         * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
9718         Deprecate c++1y. Change language to reflect greater confidence in C++14.
9719
9720 2014-08-23  John David Anglin  <danglin@gcc.gnu.org>
9721
9722         PR target/62038
9723         * config/pa/pa.c (pa_output_function_epilogue): Don't set
9724         last_address when the current function is a thunk.
9725         (pa_asm_output_mi_thunk): When we don't have named sections or they
9726         are not being used, check that thunk can reach the stub table with a
9727         short branch.
9728
9729 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
9730
9731         * web.c (union_match_dups): Strengthen param "insn" from rtx to
9732         rtx_insn *.
9733         (pass_web::execute): Likewise for local "insn".
9734
9735 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
9736
9737         * var-tracking.c (struct micro_operation_def): Strengthen field
9738         "insn" from rtx to rtx_insn *.
9739         (struct emit_note_data_def): Likewise.
9740         (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
9741         (vt_stack_adjustments): Likewise for local "insn".
9742         (adjust_insn): Likewise for param "insn".
9743         (val_store): Likewise.
9744         (val_resolve): Likewise.
9745         (struct count_use_info): Likewise for field "insn".
9746         (log_op_type): Likewise for param "insn".
9747         (reverse_op): Likewise.
9748         (prepare_call_arguments): Likewise.
9749         (add_with_sets):  The initial param takes an insn, but we can't
9750         yet strengthen it from rtx to rtx_insn * since it's used as a
9751         cselib_record_sets_hook callback.  For now rename initial param
9752         from "insn" to "uncast_insn", and introduce a local "insn" of
9753         the stronger rtx_insn * type, with a checked cast.
9754         (compute_bb_dataflow): Strengthen local "insn" from rtx to
9755         rtx_insn *.
9756         (emit_note_insn_var_location): Likewise.
9757         (emit_notes_for_changes): Likewise.
9758         (emit_notes_for_differences): Likewise.
9759         (next_non_note_insn_var_location): Likewise for return type and
9760         for param "insn".
9761         (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
9762         (vt_initialize): Likewise for local "insn".
9763         (delete_debug_insns): Likewise for locals "insn" and "next".
9764
9765 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
9766
9767         * varasm.c (mark_constants): Strengthen param "insn" from rtx to
9768         rtx_insn *.
9769         (mark_constant_pool): Likewise for local "insn".
9770
9771 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
9772
9773         * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
9774         rtx to rtx_insn *.
9775         (dead_debug_promote_uses): Likewise.
9776         (dead_debug_insert_temp): Likewise.
9777
9778 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
9779
9780         * store-motion.c (store_killed_in_insn): Strengthen param "insn"
9781         from const_rtx to const rtx_insn *.
9782         (store_killed_after): Likewise.  Strengthen locals "last", "act"
9783         from rtx to rtx_insn *.
9784         (store_killed_before): Strengthen param "insn" from const_rtx to
9785         const rtx_insn *.  Strengthen local "first" from rtx to rtx_insn *.
9786         (find_moveable_store): Strengthen param "insn" from rtx to
9787         rtx_insn *.
9788         (compute_store_table): Likewise for local "insn".
9789         (insert_insn_start_basic_block): Likewise for param "insn" and
9790         locals "prev", "before", "insn".
9791         (insert_store): For now, add a checked cast to rtx_insn * on the
9792         result of gen_move_insn.
9793         (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
9794         to rtx_insn *.
9795         (replace_store_insn): Likewise.  For now, add a checked cast to
9796         rtx_insn * on the result of gen_move_insn.
9797
9798 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9799
9800         * stmt.c (expand_case): Strengthen local "before_case" from rtx to
9801         rtx_insn *.
9802         (expand_sjlj_dispatch_table): Likewise.
9803
9804 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9805
9806         * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
9807         "insn" from rtx to rtx_insn *.
9808
9809 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9810
9811         * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
9812         "insn" from rtx to rtx_insn *.
9813         (dup_block_and_redirect): Likewise for param 3 "before".
9814
9815         * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
9816         from rtx to rtx_insn *.
9817         (move_insn_for_shrink_wrap): Likewise.
9818         (prepare_shrink_wrap): Likewise for locals "insn", "curr".
9819         (dup_block_and_redirect): Likewise for param "before" and local
9820         "insn".
9821         (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
9822         "end".
9823         (convert_to_simple_return): Likewise for local "start".
9824
9825         * config/i386/i386.c (ix86_finalize_stack_realign_flags):
9826         Strengthen local "insn" from rtx to rtx_insn *, for use when
9827         invoking requires_stack_frame_p.
9828
9829 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9830
9831         * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
9832         rtx_insn *.
9833         (speculate_expr): Likewise for locals "orig_insn_rtx",
9834         "spec_insn_rtx".
9835         (eq_transformed_insns): Likewise for locals "i1", "i2".
9836         (check_for_new_jump): Likewise for return type and local "end".
9837         (find_new_jump): Likewise for return type and local "jump".
9838         (sel_split_edge): Likewise for local "jump".
9839         (sel_create_recovery_block): Likewise.
9840         (sel_redirect_edge_and_branch_force): Likewise.
9841         (sel_redirect_edge_and_branch): Likewise.
9842
9843 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9844
9845         * sel-sched.c (substitute_reg_in_expr): Strengthen local
9846         "new_insn" from rtx to rtx_insn *.
9847         (create_insn_rtx_with_rhs): Likewise for return type and for local
9848         "insn_rtx".
9849         (create_insn_rtx_with_lhs): Likewise.
9850         (create_speculation_check): Likewise for local "insn_rtx".
9851         (implicit_clobber_conflict_p): Likewise for local "insn".
9852         (get_expr_cost): Likewise.
9853         (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
9854         (move_cond_jump): Likewise for locals "next", "prev", "link",
9855         "head", "from", "to".
9856
9857 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9858
9859         * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
9860         "next" from rtx to rtx_insn *.
9861         (find_conditional_protection): Likewise for local "next".
9862         (is_conditionally_protected): Likewise for local "insn1".
9863         (is_pfree): Likewise for locals "insn1", "insn2".
9864
9865 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9866
9867         * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
9868         from rtx to rtx_insn *.
9869
9870         * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
9871         locals "insn1", "insn2" from rtx to rtx_insn *.
9872         (add_deps_for_risky_insns): Likewise for params "head", "tail" and
9873         locals "insn", "prev", "last_jump", "next_tail".
9874         (schedule_ebb): Likewise for params "head", "tail".
9875         (schedule_ebbs): Likewise for locals "tail", "head".
9876
9877         * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
9878         to rtx_insn on "last_insn" in one of the invocations of
9879         schedule_ebb.
9880
9881 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9882
9883         * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
9884         "elem", "insn" from rtx to rtx_insn *.
9885         (change_spec_dep_to_hard): Likewise.
9886         (get_back_and_forw_lists): Likewise for local "con".
9887         (sd_add_dep): Likewise for locals "elem", "insn".
9888         (sd_resolve_dep): Likewise for locals "pro", "con".
9889         (sd_unresolve_dep): Likewise.
9890         (sd_delete_dep): Likewise.
9891         (chain_to_prev_insn): Likewise for local "pro".
9892         (find_inc): Likewise for locals "pro", "con".
9893
9894 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9895
9896         * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
9897         to rtx_insn *.
9898         (reg_set_between_p): Strengthen local "insn" from const_rtx to
9899         const rtx_insn *.
9900         (modified_between_p): Strengthen local "insn" from rtx to
9901         rtx_insn *.
9902         (remove_reg_equal_equiv_notes_for_regno): Likewise.
9903         (keep_with_call_p): Strengthen local "i2" from const_rtx to
9904         const rtx_insn *.
9905
9906 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9907
9908         * resource.c (next_insn_no_annul): Strengthen local "next" from
9909         rtx to rtx_insn *.
9910         (mark_referenced_resources): Likewise for local "insn".
9911
9912 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9913
9914         * reload.h (struct insn_chain): Strengthen field "insn" from rtx
9915         to rtx_insn *.
9916         (find_reloads): Likewise for param 1.
9917         (subst_reloads): Likewise for sole param.
9918         (find_equiv_reg): Likwise for param 2.
9919         (regno_clobbered_p): Likwise for param 2.
9920         (reload): Likewise for param 1.
9921
9922         * caller-save.c (save_call_clobbered_regs): Strengthen local
9923         "insn" from rtx to rtx_insn *.
9924         (insert_one_insn): Likewise for local "insn".
9925
9926         * reload.c (this_insn): Likewise for this global.
9927         (find_reloads): Likewise for param "insn".
9928         (find_reloads_toplev): Likewise.
9929         (find_reloads_address): Likewise.
9930         (subst_reg_equivs): Likewise.
9931         (update_auto_inc_notes): Likewise.
9932         (find_reloads_address_1): Likewise.
9933         (find_reloads_subreg_address): Likewise.
9934         (subst_reloads): Likewise.
9935         (find_equiv_reg): Likewise, also for local "p".
9936         (regno_clobbered_p): Likewise for param "insn".
9937
9938         * reload1.c (reg_reloaded_insn): Likewise for the elements of this
9939         array.
9940         (spill_reg_store): Likewise for the elements of this array.
9941         (remove_init_insns): Likewise for local "equiv_insn".
9942         (will_delete_init_insn_p): Likewise for param "insn".
9943         (reload): Likewise for param ""first" and local "insn".
9944         (calculate_needs_all_insns): Strengthen local "insn" from rtx to
9945         rtx_insn *.
9946         (calculate_elim_costs_all_insns): Likewise.
9947         (delete_caller_save_insns): Likewise.
9948         (spill_failure): Likewise for param "insn".
9949         (delete_dead_insn): Likewise.
9950         (set_label_offsets): Likewise.
9951         (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
9952         "prev_insn".
9953         (elimination_costs_in_insn): Likewise for param "insn".
9954         (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
9955         when referring to an insn.
9956         (set_initial_label_offsets): Likewise.
9957         (set_offsets_for_label): Strengthen param "insn" from rtx to
9958         rtx_insn *.
9959         (init_eliminable_invariants): Likewise for param "first" and local
9960         "insn".
9961         (fixup_eh_region_note): Likewise for param "insn".
9962         (reload_as_needed): Likewise for locals "prev", "insn",
9963         "old_next", "old_prev", "next".
9964         (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
9965         "last".
9966         (reload_inheritance_insn): Strengthen elements of this array from
9967         rtx to rtx_insn *.
9968         (failed_reload): Likewise for param "insn".
9969         (choose_reload_regs): Likewise for local "insn".  Replace use of
9970         NULL_RTX with NULL when referring to an insn.
9971         (input_reload_insns): Strengthen elements of this array from rtx
9972         to rtx_insn *.
9973         (other_input_address_reload_insns): Likewise for this global.
9974         (other_input_reload_insns): Likewise for this global.
9975         (input_address_reload_insns): Likwise for the elements of this
9976         array.
9977         (inpaddr_address_reload_insns): Likwise for the elements of this
9978         array.
9979         (output_reload_insns): Likewise for the elements of this array.
9980         (output_address_reload_insns): Likewise for the elements of this
9981         array.
9982         (outaddr_address_reload_insns): Likewise for the elements of this
9983         array.
9984         (operand_reload_insns): Likewise for this global.
9985         (other_operand_reload_insns): Likewise for this global.
9986         (other_output_reload_insns): Likewise for the elements of this
9987         array.
9988         (new_spill_reg_store): Likewise for the elements of this
9989         array.
9990         (emit_input_reload_insns): Likewise for locals "insn", "temp".
9991         Strengthen local "where" from rtx * to rtx_insn **.
9992         (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
9993         from rtx to rtx_insn *.
9994         (do_input_reload): Likewise for local "insn".
9995         (do_output_reload): Likewise for local "insn".
9996         (emit_reload_insns): Likewise for locals "insn" and "store_insn".
9997         (emit_insn_if_valid_for_reload): Likewise for return type and local
9998         "last".  Add checked cast to rtx_insn when returning "insn" since
9999         this has been through emit_insn.
10000         (gen_reload): Strengthen return type and locals "last", "insn", "set"
10001         from rtx to rtx_insn *.  Add checked cast to rtx_insn when
10002         returning "insn" since it's been through
10003         emit_insn_if_valid_for_reload at this point.
10004         (delete_output_reload): Strengthen param "insn" and locals
10005         "output_reload_insn", "i2" from rtx to rtx_insn *.
10006         (delete_address_reloads): Likewise for params "dead_insn",
10007         "current_insn" and locals "prev", "next".
10008         (delete_address_reloads_1): Likewise for params "dead_insn",
10009         "current_insn" and locals "prev", "i2".
10010         (inc_for_reload): Likewise for locals "last", "add_insn".
10011         (add_auto_inc_notes): Strengthen param "insn" from rtx to
10012         rtx_insn *.
10013
10014         * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
10015         param of this duplicate of the prototype from reload.h
10016
10017 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10018
10019         * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
10020         rtx to rtx_insn *.
10021         (regstat_bb_compute_calls_crossed): Likewise.
10022
10023 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10024
10025         * regrename.c (create_new_chain): Strengthen param "insn" from rtx
10026         to rtx_insn *.
10027         (init_rename_info): Replace use of NULL_RTX with NULL when dealing
10028         with an insn.
10029         (regrename_analyze): Strengthen local "insn" from rtx to
10030         rtx_insn *.
10031         (scan_rtx_reg): Likewise for param "insn".
10032         (scan_rtx_address): Likewise.
10033         (scan_rtx): Likewise.
10034         (restore_operands): Likewise.
10035         (record_out_operands): Likewise.
10036         (build_def_use): Likewise for local "insn".  Replace use of
10037         NULL_RTX with NULL when dealing with an insn.
10038
10039 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10040
10041         * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
10042         * reginfo.c (reg_scan): Likewise, also for local "insn".
10043         (reg_scan_mark_refs): Likewise for param "insn".
10044         (init_subregs_of_mode): Likewise for local "insn".
10045
10046 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10047
10048         * regcprop.c (struct queued_debug_insn_change): Strengthen field
10049         "insn" from rtx to rtx_insn *.
10050         (replace_oldest_value_reg): Likewise for param "insn".
10051         (replace_oldest_value_addr): Likewise.
10052         (replace_oldest_value_mem): Likewise.
10053         (apply_debug_insn_changes): Likewise for local "last_insn".
10054         (copyprop_hardreg_forward_1): Likewise for local "insn".
10055
10056 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10057
10058         * reg-stack.c (next_flags_user): Strengthen return type and param
10059         "insn" from rtx to rtx_insn *.
10060         (straighten_stack): Likewise for param "insn".
10061         (check_asm_stack_operands): Likewise.
10062         (remove_regno_note): Likewise.
10063         (emit_pop_insn): Likewise for return type, param "insn", local
10064         "pop_insn".
10065         (emit_swap_insn):  Strengthen param "insn" and locals "i1", "tmp",
10066         "limit" from rtx to rtx_insn *.
10067         (swap_to_top): Likewise for param "insn".
10068         (move_for_stack_reg): Likewise.
10069         (move_nan_for_stack_reg): Likewise.
10070         (swap_rtx_condition): Likewise.
10071         (compare_for_stack_reg): Likewise.
10072         (subst_all_stack_regs_in_debug_insn): Likewise.
10073         (subst_stack_regs_pat): Likewise, and local "insn2".
10074         (subst_asm_stack_regs): Strengthen param "insn" from rtx to
10075         rtx_insn *.
10076         (subst_stack_regs): Likewise.
10077         (change_stack): Likewise.
10078         (convert_regs_1): Likewise for locals "insn", "next".
10079
10080 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10081
10082         * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
10083         rtx_insn *.
10084         (combine_set_extension): Likewise for param "curr_insn".
10085         (transform_ifelse): Likewise for param "def_insn".
10086         (get_defs): Likewise for param "def_insn".  Strengthen param "dest"
10087         from vec<rtx> * to vec<rtx_insn *> *.
10088         (is_cond_copy_insn): Likewise for param "insn".
10089         (struct ext_state): Strengthen the four vec fields from vec<rtx>
10090         to vec<rtx_insn *>.
10091         (make_defs_and_copies_lists): Strengthen param "extend_insn" and
10092         local "def_insn" from rtx to rtx_insn *.
10093         (get_sub_rtx): Likewise for param "def_insn".
10094         (merge_def_and_ext): Likewise.
10095         (combine_reaching_defs): Likewise.
10096         (add_removable_extension): Likewise for param "insn".
10097         (find_removable_extensions): Likewise for local "insn".
10098         (find_and_remove_re): Likewise for locals "curr_insn" and
10099         "def_insn".  Strengthen locals "reinsn_del_list" and
10100         "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
10101
10102 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10103
10104         * recog.c (split_insn): Strengthen param "insn" and locals
10105         "first", "last" from rtx to rtx_insn *.
10106         (split_all_insns): Likewise for locals "insn", "next".
10107         (split_all_insns_noflow): Likewise.
10108
10109 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10110
10111         * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
10112         const rtx_insn *.
10113         (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
10114         (debug_rtx_find): Likewise for param 1 "x".
10115
10116         * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
10117         const_rtx to const rtx_insn *.  Likewise for local "insn".
10118         (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
10119         (debug_rtx_find): Likewise for param 1 "x".
10120         (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
10121         from const_rtx to const rtx_insn * within the appropriate cases of
10122         the switch statement.
10123
10124         * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
10125         Strengthen local "insns" from rtx to rtx_insn * since this is
10126         passed to a call to debug_rtx_list.
10127
10128 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10129
10130         * predict.h (predict_insn_def): Strengthen param "insn" from rtx
10131         to rtx_insn *.
10132
10133         * function.c (stack_protect_epilogue): Add checked cast to
10134         rtx_insn for now when invoking predict_insn_def.
10135
10136         * predict.c (predict_insn): Strengthen param "insn" from rtx to
10137         rtx_insn *.
10138         (predict_insn_def): Likewise.
10139         (rtl_predict_edge): Likewise for local "last_insn".
10140         (can_predict_insn_p): Strengthen param "insn" from const_rtx to
10141         const rtx_insn *.
10142         (combine_predictions_for_insn): Strengthen param "insn" from rtx
10143         to rtx_insn *.
10144         (bb_estimate_probability_locally): Likewise for local "last_insn".
10145         (expensive_function_p): Likewise for local "insn".
10146
10147         * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
10148         local "jmp", since this is used when invoking predict_insn_def.
10149
10150 2014-08-22  Marek Polacek  <polacek@redhat.com>
10151
10152         PR c++/62199
10153         * doc/invoke.texi: Update -Wlogical-not-parentheses description.
10154
10155 2014-08-22  Marek Polacek  <polacek@redhat.com>
10156
10157         PR c/61271
10158         * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
10159         a comparison in parens.
10160         * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
10161         in parens.
10162
10163 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10164
10165         * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
10166         rtx_insn *.
10167
10168         * cprop.c (fis_get_condition): Likewise.
10169
10170         * postreload.c (reload_cse_regs): Likewise for param "first".
10171         (reload_cse_simplify): Likewise for param "insn".
10172         (reload_cse_regs_1): Likewise for local "insn".
10173         (reload_cse_simplify_set): Likewise for param "insn".
10174         (reload_cse_simplify_operands): Likewise.
10175         (struct reg_use): Likewise for field "insn".
10176         (reload_combine_purge_insn_uses): Likewise for param "insn".
10177         (fixup_debug_insns): Likewise for params "from", "to" and local
10178         "insn".
10179         (try_replace_in_use): Likewise for local "use_insn".
10180         (reload_combine_recognize_const_pattern): Likewise for param
10181         "insn" and locals "add_moved_after_insn", "use_insn".
10182         (reload_combine_recognize_pattern): Likewise for param "insn" and
10183         local "prev".
10184         (reload_combine): Likewise for locals "insn", "prev".
10185         (reload_combine_note_use): Likewise for param "insn".
10186         (move2add_use_add2_insn): Likewise.
10187         (move2add_use_add3_insn): Likewise.
10188         (reload_cse_move2add): Likewise, also for local "next".
10189         (move2add_note_store): Likewise for local "insn".
10190
10191 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10192
10193         * postreload-gcse.c (struct occr): Strengthen field "insn" from
10194         rtx to rtx_insn *.
10195         (struct unoccr): Likewise.
10196         (struct modifies_mem): Likewise.
10197         (alloc_mem): Likewise for local "insn".
10198         (insert_expr_in_table): Likewise for param "insn".
10199         (dump_expr_hash_table_entry): Likewise for local "insn".
10200         (oprs_unchanged_p): Likewise for param "insn".
10201         (load_killed_in_block_p): Likewise for local "setter".
10202         (record_last_reg_set_info): Likewise for param "insn".
10203         (record_last_reg_set_info_regno): Likewise.
10204         (record_last_mem_set_info): Likewise.
10205         (record_last_set_info): Likewise for local "last_set_insn".
10206         (record_opr_changes): Likewise for param "insn".
10207         (hash_scan_set): Likewise.
10208         (compute_hash_table): Likewise for local "insn".
10209         (get_avail_load_store_reg): Likewise for param "insn".
10210         (eliminate_partially_redundant_load): Likewise, also for locals
10211         "avail_insn", "next_pred_bb_end".  Replace use of NULL_RTX with
10212         RTX for insns.
10213         (eliminate_partially_redundant_loads): Likewise for local "insn".
10214
10215 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10216
10217         * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
10218         rtx to rtx_insn *.
10219         (expand_binop): Likewise for locals "entry_last", "last", "insns"
10220         (expand_twoval_unop): Likewise for locals entry_last", "last".
10221         (expand_twoval_binop): Likewise.
10222         (expand_twoval_binop_libfunc): Likewise for local "insns".
10223         (widen_leading): Likewise for local "last".
10224         (expand_doubleword_clz): Likewise for local "seq".  Strengthen
10225         locals "hi0_label", "after_label" from rtx to rtx_code_label *.
10226         (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
10227         (expand_parity): Likewise for locals "last" and "seq".
10228         (expand_ffs): Likewise for local "seq".  Strengthen local
10229         "nonzero_label" from rtx to rtx_code_label *.
10230         (expand_absneg_bit): Strengthen local "insns" from rtx to
10231         rtx_insn *.
10232         (expand_unop_direct): Likewise for local "last".
10233         (expand_unop): Likewise for locals "last", "insns".
10234         (expand_abs_nojump): Likewise for local "last".
10235         (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
10236         (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
10237         rtx_insn *.
10238         (expand_copysign_absneg): Strengthen local "label" from rtx to
10239         rtx_code_label *.
10240         (expand_copysign_bit): Strengthen local "insns" from rtx to
10241         rtx_insn *.
10242         (struct no_conflict_data): Likewise for fields "first", "insn".
10243         (emit_libcall_block_1): Likewise for param "insns" and locals
10244         "next", "last", "insn".
10245         (emit_libcall_block): For now, add a checked cast to rtx_insn *
10246         on "insns" when invoking emit_libcall_block_1.  Ultimately we
10247         want to strengthen insns itself.
10248         (prepare_cmp_insn): Strengthen local "last" from rtx to
10249         rtx_insn *.
10250         (emit_cmp_and_jump_insn_1): Likewise for local "insn".
10251         (prepare_float_lib_cmp): Likewise for local "insns".
10252         (emit_conditional_move): Likewise for local "last".
10253         (emit_conditional_add): Likewise.
10254         (have_sub2_insn): Likewise for local "seq".
10255         (expand_float): Likewise for local "insns".  Strengthen locals
10256         "label", "neglabel" from rtx to rtx_code_label *.
10257         (expand_fix): Likewise for locals "last", "insn", "insns" (to
10258         rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
10259         (expand_fixed_convert): Likewise for local "insns" (to
10260         rtx_insn *).
10261         (expand_sfix_optab): Likewise for local "last".
10262         (expand_compare_and_swap_loop): Strengthen local "label" from rtx
10263         to rtx_code_label *.
10264         (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
10265         from rtx to rtx_insn *.
10266         (expand_atomic_fetch_op): Likewise for local "insn".
10267         (maybe_legitimize_operand_same_code): Likewise for local "last".
10268         (maybe_legitimize_operands): Likewise.
10269
10270 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10271
10272         * modulo-sched.c (struct ps_reg_move_info): Strengthen field
10273         "insn" from rtx to rtx_insn *.
10274         (ps_rtl_insn): Likewise for return type.
10275         (doloop_register_get): Likewise for params "head", "tail" and
10276         locals "insn", "first_insn_not_to_check".
10277         (schedule_reg_move): Likewise for local "this_insn".
10278         (schedule_reg_moves): Add a checked cast to rtx_insn * to result
10279         of gen_move_insn for now.
10280         (reset_sched_times): Strengthen local "insn" from rtx to
10281         rtx_insn *.
10282         (permute_partial_schedule): Likewise.
10283         (duplicate_insns_of_cycles): Likewise for local "u_insn".
10284         (dump_insn_location): Likewise for param "insn".
10285         (loop_canon_p): Likewise for local "insn".
10286         (sms_schedule): Likewise.
10287         (print_partial_schedule): Likewise.
10288         (ps_has_conflicts): Likewise.
10289
10290 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10291
10292         * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
10293         "tailp" from rtx * to rtx_insn **.
10294
10295         * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
10296         from rtx to rtx_insn *.
10297         * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
10298         "tailp" from rtx * to rtx_insn **.  Strengthen locals "beg_head",
10299         "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
10300         rtx to rtx_insn *.
10301         * modulo-sched.c (const_iteration_count): Strengthen return type
10302         and locals "insn", "head", "tail" from rtx to rtx_insn *.  Replace
10303         use of NULL_RTX with NULL when working with insns.
10304         (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
10305         to rtx_insn *.
10306         (sms_schedule): Likewise.
10307         * sched-rgn.c (init_ready_list): Likewise, also for locals
10308         "src_head" and "src_next_tail".
10309         (compute_block_dependences): Likewise.
10310         (free_block_dependencies): Likewise.
10311         (debug_rgn_dependencies): Likewise.
10312         (free_rgn_deps): Likewise.
10313         (compute_priorities): Likewise.
10314         (schedule_region): Likewise.
10315         * sel-sched.c (find_ebb_boundaries): Likewise.
10316
10317         * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
10318         "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
10319
10320 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10321
10322         * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
10323         from rtx to rtx_insn *.
10324         (new_seginfo): Likewise for param "insn".
10325         (create_pre_exit): Likewise for locals "last_insn",
10326         "before_return_copy", "return_copy".
10327         (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
10328         "mode_set".
10329
10330 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10331
10332         * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
10333         from rtx to rtx_insn *.
10334         (lra_push_insn): Likewise for 1st param.
10335         (lra_push_insn_and_update_insn_regno_info): Likewise.
10336         (lra_pop_insn): Likewise for return type.
10337         (lra_invalidate_insn_data): Likewise for 1st param.
10338         (lra_set_insn_deleted): Likewise.
10339         (lra_delete_dead_insn): Likewise.
10340         (lra_process_new_insns): Likewise for first 3 params.
10341         (lra_set_insn_recog_data): Likewise for 1st param.
10342         (lra_update_insn_recog_data): Likewise.
10343         (lra_set_used_insn_alternative): Likewise.
10344         (lra_invalidate_insn_regno_info): Likewise.
10345         (lra_update_insn_regno_info): Likewise.
10346         (lra_former_scratch_operand_p): Likewise.
10347         (lra_eliminate_regs_1): Likewise.
10348         (lra_get_insn_recog_data): Likewise.
10349
10350         * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
10351         rtx to rtx_insn *.
10352
10353         * lra-coalesce.c (move_freq_compare_func): Likewise for locals
10354         "mv1" and "mv2".
10355         (substitute_within_insn): New.
10356         (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
10357         rtx_insn *.  Strengthen sorted_moves from rtx * to rxt_insn **.
10358         Replace call to "substitute" with call to substitute_within_insn.
10359
10360         * lra-constraints.c (curr_insn): Strengthen from rtx to
10361         rtx_insn *.
10362         (get_equiv_with_elimination): Likewise for param "insn".
10363         (match_reload): Strengthen params "before" and "after" from rtx *
10364         to rtx_insn **.
10365         (emit_spill_move): Likewise for return type.  Add a checked cast
10366         to rtx_insn * on result of gen_move_insn for now.
10367         (check_and_process_move): Likewise for local "before".  Replace
10368         NULL_RTX with NULL when referring to insns.
10369         (process_addr_reg): Strengthen params "before" and "after" from
10370         rtx * to rtx_insn **.
10371         (insert_move_for_subreg): Likewise.
10372         (simplify_operand_subreg): Strengthen locals "before" and "after"
10373         from rtx to rtx_insn *.
10374         (process_address_1): Strengthen params "before" and "after" from
10375         rtx * to rtx_insn **.  Strengthen locals "insns", "last_insn" from
10376         rtx to rtx_insn *.
10377         (process_address): Strengthen params "before" and "after" from
10378         rtx * to rtx_insn **.
10379         (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
10380         (curr_insn_transform): Strengthen locals "before" and "after"
10381         from rtx to rtx_insn *.  Replace NULL_RTX with NULL when referring
10382         to insns.
10383         (loc_equivalence_callback): Update cast of "data", changing
10384         resulting type from rtx to rtx_insn *.
10385         (substitute_pseudo_within_insn): New.
10386         (inherit_reload_reg): Strengthen param "insn" from rtx to
10387         rtx_insn *; likewise for local "new_insns".  Replace NULL_RTX with
10388         NULL when referring to insns.  Add a checked cast to rtx_insn *
10389         when using usage_insn to invoke lra_update_insn_regno_info.
10390         (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
10391         likewise for locals "restore", "save".  Add checked casts to
10392         rtx_insn * when using usage_insn to invoke
10393         lra_update_insn_regno_info and lra_process_new_insns.  Replace
10394         NULL_RTX with NULL when referring to insns.
10395         (split_if_necessary): Strengthen param "insn" from rtx to
10396         rtx_insn *.
10397         (update_ebb_live_info): Likewise for params "head", "tail" and local
10398         "prev_insn".
10399         (get_last_insertion_point): Likewise for return type and local "insn".
10400         (get_live_on_other_edges): Likewise for local "last".
10401         (inherit_in_ebb): Likewise for params "head", "tail" and locals
10402         "prev_insn", "next_insn", "restore".
10403         (remove_inheritance_pseudos): Likewise for local "prev_insn".
10404         (undo_optional_reloads): Likewise for local "insn".
10405
10406         * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
10407         "insn".
10408         (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
10409         insns.
10410         (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
10411         rtx_insn *.
10412         (spill_pseudos): Likewise for local "insn".
10413         (init_elimination): Likewise.
10414         (process_insn_for_elimination): Likewise for param "insn".
10415
10416         * lra-lives.c (curr_insn): Likewise.;
10417
10418         * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
10419         (remove_pseudos): Likewise for param "insn".
10420         (spill_pseudos): Likewise for local "insn".
10421         (lra_final_code_change): Likewise for locals "insn", "curr".
10422
10423         * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
10424         (lra_set_insn_deleted): Likewise.
10425         (lra_delete_dead_insn): Likewise, and for local "prev".
10426         (new_insn_reg): Likewise for param "insn".
10427         (lra_set_insn_recog_data): Likewise.
10428         (lra_update_insn_recog_data): Likewise.
10429         (lra_set_used_insn_alternative): Likewise.
10430         (get_insn_freq): Likewise.
10431         (invalidate_insn_data_regno_info): Likewise.
10432         (lra_invalidate_insn_regno_info): Likewise.
10433         (lra_update_insn_regno_info): Likewise.
10434         (lra_constraint_insn_stack): Strengthen from vec<rtx> to
10435         vec<rtx_insn *>.
10436         (lra_push_insn_1): Strengthen param "insn" from rtx to
10437         rtx_insn *.
10438         (lra_push_insn): Likewise.
10439         (lra_push_insn_and_update_insn_regno_info): Likewise.
10440         (lra_pop_insn): Likewise for return type and local "insn".
10441         (push_insns): Likewise for params "from", "to", and local "insn".
10442         (setup_sp_offset): Likewise for params "from", "last" and locals
10443         "before", "insn".
10444         (lra_process_new_insns): Likewise for params "insn", "before",
10445         "after" and local "last".
10446         (struct sloc): Likewise for field "insn".
10447         (lra_former_scratch_operand_p): Likewise for param "insn".
10448         (remove_scratches): Likewise for locals "insn", "last".
10449         (check_rtl): Likewise for local "insn".
10450         (add_auto_inc_notes): Likewise for param "insn".
10451         (update_inc_notes): Likewise for local "insn".
10452         (lra): Replace NULL_RTX with NULL when referring to insn.
10453
10454 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10455
10456         * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
10457         to rtx_insn *.
10458         (resolve_reg_notes): Likewise.
10459         (resolve_simple_move): Likewise for return type, param "insn", and
10460         locals "insns", "minsn".
10461         (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
10462         (resolve_use): Likewise.
10463         (resolve_debug): Likewise.
10464         (find_decomposable_shift_zext): Likewise.
10465         (resolve_shift_zext): Likewise for return type, param "insn", and
10466         locals "insns", "in".  Eliminate use of NULL_RTX in favor of NULL.
10467         (decompose_multiword_subregs): Likewise for local "insn",
10468         "orig_insn", "decomposed_shift", "end".
10469
10470 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10471
10472         * basic-block.h (basic_block split_edge_and_insert): Strengthen
10473         param "insns" from rtx to rtx_insn *.
10474
10475         * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
10476         rtx to rtx_insn *.
10477         (struct iv_to_split): Likewise.
10478         (loop_exit_at_end_p): Likewise for local "insn".
10479         (split_edge_and_insert): Likewise for param "insns".
10480         (compare_and_jump_seq): Likewise for return type, param "cinsn",
10481         and locals "seq", "jump".
10482         (unroll_loop_runtime_iterations): Likewise for locals "init_code",
10483         "branch_code"; update invocations of compare_and_jump_seq to
10484         eliminate NULL_RTX in favor of NULL.
10485         (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
10486         rtx to rtx_insn *.
10487         (reset_debug_uses_in_loop): Likewise.
10488         (analyze_insn_to_expand_var): Likewise for param "insn".
10489         (analyze_iv_to_split_insn): Likewise.
10490         (analyze_insns_in_loop): Likewise for local "insn".
10491         (insert_base_initialization): Likewise for param
10492         "insn" and local "seq".
10493         (split_iv): Likewise for param "insn" and local "seq".
10494         (expand_var_during_unrolling): Likewise for param "insn".
10495         (insert_var_expansion_initialization): Likewise for local "seq".
10496         (combine_var_copies_in_loop_exit): Likewise.
10497         (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
10498         "insn".
10499         (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
10500         (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
10501         "next".
10502
10503 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10504
10505         * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
10506         rtx_insn *.
10507         (iv_analyze_result): Likewise.
10508         (iv_analyze_expr): Likewise.
10509         (biv_p): Likewise.
10510
10511         * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
10512         local "def_insn" from rtx to rtx_insn *.
10513         (get_biv_step_1): Likewise for local "insn".
10514         (iv_analyze_expr): Likewise for param "insn".
10515         (iv_analyze_def): Likewise for local "insn".
10516         (iv_analyze_op): Likewise for param "insn".
10517         (iv_analyze): Likewise.
10518         (iv_analyze_result): Likewise.
10519         (biv_p): Likewise.
10520         (suitable_set_for_replacement): Likewise.
10521         (simplify_using_initial_values): Likewise for local "insn".
10522         (iv_number_of_iterations): Likewise for param "insn".
10523         (check_simple_exit): Add checked cast to rtx_insn when invoking
10524         iv_number_of_iterations for now (until get_condition is
10525         strengthened).
10526
10527         * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
10528         "insn" from rtx to rtx_insn *.
10529         (analyze_insns_in_loop): Likewise for local "insn".
10530
10531 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10532
10533         * loop-invariant.c (struct use): Strengthen field "insn" from rtx
10534         to rtx_insn *.
10535         (struct invariant): Likewise.
10536         (hash_invariant_expr_1): Likewise for param "insn".
10537         (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
10538         (find_exits): Likewise for local "insn".
10539         (create_new_invariant): Likewise for param "insn".
10540         (check_dependencies): Likewise.
10541         (find_invariant_insn): Likewise.
10542         (record_uses): Likewise.
10543         (find_invariants_insn): Likewise.
10544         (find_invariants_bb): Likewise for local "insn".
10545         (get_pressure_class_and_nregs): Likewise for param "insn".
10546         (calculate_loop_reg_pressure): Likewise for local "insn".
10547
10548 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10549
10550         * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
10551         to rtx_insn *.
10552         (add_test): Likewise for locals "seq", "jump".
10553         (doloop_modify): Likewise for locals "sequence", "jump_insn".
10554
10555 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10556
10557         * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
10558         rtx_insn *.
10559         (rebuild_jump_labels_chain): Likewise for param "chain".
10560
10561         * cfgexpand.c (pass_expand::execute): Add checked cast to
10562         rtx_insn * when calling rebuild_jump_labels_chain in region where
10563         we know e->insns.r is non-NULL.
10564
10565         * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
10566         rtx_insn *.
10567         (rebuild_jump_labels): Likewise.
10568         (rebuild_jump_labels_chain): Likewise for param "chain".
10569         (cleanup_barriers): Likewise for locals "insn", "next", "prev".
10570         (init_label_info): Likewise for param "f".
10571         (maybe_propagate_label_ref): Likewise for params "jump_insn",
10572         "prev_nonjump_insn".
10573         (mark_all_labels): Likewise for param "f" and locals "insn",
10574         "prev_nonjump_insn".
10575
10576 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10577
10578         * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
10579         from rtx to rtx_insn *insn.
10580         (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
10581         (ira_add_allocno_copy): Likewise.
10582         * ira-build.c (find_allocno_copy): Strengthen param "insn" from
10583         rtx to rtx_insn *.
10584         (ira_create_copy): Likewise.
10585         (ira_add_allocno_copy): Likewise.
10586         (create_bb_allocnos): Likewise for local "insn".
10587         * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
10588         (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
10589         process_regs_for_copy for rtx_insn * param.
10590         (add_insn_allocno_copies): Strengthen param "insn" from rtx to
10591         rtx_insn *insn.  Update NULL_RTX to NULL in invocation of
10592         process_regs_for_copy for rtx_insn * param.
10593         (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
10594         * ira-costs.c (record_reg_classes): Likewise for param "insn".
10595         (record_operand_costs): Likewise.
10596         (scan_one_insn): Likewise for return type, and for param "insn".
10597         (process_bb_for_costs): Likewise for local "insn".
10598         (process_bb_node_for_hard_reg_moves): Likewise.
10599         * ira-emit.c (struct move): Likewise for field "insn".
10600         (create_move): Eliminate use of NULL_RTX when dealing with an
10601         rtx_insn *.
10602         (emit_move_list): Strengthen return type and locals "result",
10603         "insn" from rtx to rtx_insn *insn.
10604         (emit_moves): Likewise for locals "insns", "tmp".
10605         (ira_emit): Likewise for local "insn".
10606         * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
10607         "insn".
10608         (find_call_crossed_cheap_reg): Likewise.
10609         (process_bb_node_lives): Likewise for local "insn".
10610         * ira.c (decrease_live_ranges_number): Likewise.
10611         (compute_regs_asm_clobbered): Likewise.
10612         (build_insn_chain): Likewise.
10613         (find_moveable_pseudos): Likewise, also locals "def_insn",
10614         "use_insn", "x".  Also strengthen local "closest_uses" from rtx *
10615         to rtx_insn **.  Add a checked cast when assigning from
10616         "closest_use" into closest_uses array in a region where we know
10617         it's a non-NULL insn.
10618         (interesting_dest_for_shprep): Strengthen param "insn" from rtx
10619         to rtx_insn *.
10620         (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
10621         "last_interesting_insn", "uin".
10622         (move_unallocated_pseudos): Likewise for locals "def_insn",
10623         "move_insn", "newinsn".
10624
10625 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10626
10627         * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
10628         Strengthen locals "done_label", "do_error" from rtx to
10629         rtx_code_label *.
10630         (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
10631         from rtx to rtx_insn *.  Strengthen local "sub_check from rtx to
10632         rtx_code_label *.
10633         (ubsan_expand_si_overflow_neg_check): Likewise for locals
10634         "done_label", "do_error" to rtx_code_label * and local  "last" to
10635         rtx_insn *.
10636         (ubsan_expand_si_overflow_mul_check): Likewise for locals
10637         "done_label", "do_error", "large_op0", "small_op0_large_op1",
10638         "one_small_one_large", "both_ops_large", "after_hipart_neg",
10639         "after_lopart_neg", "do_overflow", "hipart_different"  to
10640         rtx_code_label * and local  "last" to rtx_insn *.
10641
10642 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10643
10644         * init-regs.c (initialize_uninitialized_regs): Strengthen locals
10645         "insn" and "move_insn" from rtx to rtx_insn *.
10646
10647 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10648
10649         * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
10650         rtx_insn *.
10651         (cheap_bb_rtx_cost_p): Likewise.
10652         (first_active_insn): Likewise for return type and local "insn".
10653         (last_active_insn):  Likewise for return type and locals "insn",
10654         "head".
10655         (struct noce_if_info): Likewise for fields "jump", "insn_a",
10656         "insn_b".
10657         (end_ifcvt_sequence): Likewise for return type and locals "insn",
10658         "seq".
10659         (noce_try_move): Likewise for local "seq".
10660         (noce_try_store_flag): Likewise.
10661         (noce_try_store_flag_constants): Likewise.
10662         (noce_try_addcc): Likewise.
10663         (noce_try_store_flag_mask): Likewise.
10664         (noce_try_cmove): Likewise.
10665         (noce_try_minmax): Likewise.
10666         (noce_try_abs): Likewise.
10667         (noce_try_sign_mask): Likewise.
10668         (noce_try_bitop): Likewise.
10669         (noce_can_store_speculate_p): Likewise for local "insn".
10670         (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
10671         seq".
10672         (check_cond_move_block): Likewise for local "insn".
10673         (cond_move_convert_if_block): Likewise.
10674         (cond_move_process_if_block): Likewise for locals "seq",
10675         "loc_insn".
10676         (noce_find_if_block): Likewise for local "jump".
10677         (merge_if_block): Likewise for local "last".
10678         (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
10679         (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
10680         (block_has_only_trap): Likewise for return type and local "trap".
10681         (find_if_case_1): Likewise for local "jump".
10682         (dead_or_predicable): Likewise for locals "head", "end", "jump",
10683         "insn".
10684
10685 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10686
10687         * hw-doloop.h (struct hwloop_info_d): Strengthen fields
10688         "last_insn", "loop_end" from rtx to rtx_insn *.
10689
10690         * hw-doloop.c (scan_loop): Likewise for local "insn".
10691         (discover_loop): Likewise for param "tail_insn".
10692         (discover_loops): Likewise for local "tail".
10693
10694         * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
10695         cast to rtx_insn * when assigning from an rtx local to a
10696         hwloop_info's "last_insn" field.
10697
10698 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10699
10700         * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
10701         (add_delay_dependencies): Strengthen local "pro" from rtx to
10702         rtx_insn *.
10703         (recompute_todo_spec): Likewise.
10704         (dep_cost_1): Likewise for locals "insn", "used".
10705         (schedule_insn): Likewise for local "dbg".
10706         (schedule_insn): Likewise for locals "pro", "next".
10707         (unschedule_insns_until): Likewise for local "con".
10708         (restore_pattern): Likewise for local "next".
10709         (estimate_insn_tick): Likewise for local "pro".
10710         (resolve_dependencies): Likewise for local "next".
10711         (fix_inter_tick): Likewise.
10712         (fix_tick_ready): Likewise for local "pro".
10713         (add_to_speculative_block): Likewise for locals "check", "twin",
10714         "pro".
10715         (sched_extend_bb): Likewise for locals "end", "insn".
10716         (init_before_recovery): Likewise for local "x".
10717         (sched_create_recovery_block): Likewise for local "barrier".
10718         (create_check_block_twin): Likewise for local "pro".
10719         (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
10720         "consumer".
10721         (unlink_bb_notes): Update for change to type of bb_header.
10722         Strengthen locals "prev", "label", "note", "next" from rtx to
10723         rtx_insn *.
10724         (clear_priorities): Likewise for local "pro".
10725
10726 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10727
10728         * gcse.c (struct occr): Strengthen field "insn" from rtx to
10729         rtx_insn *.
10730         (test_insn): Likewise for this global.
10731         (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
10732         const rtx_insn *.
10733         (oprs_anticipatable_p): Likewise.
10734         (oprs_available_p): Likewise.
10735         (insert_expr_in_table): Strengthen param "insn" from  rtx to
10736         rtx_insn *.
10737         (hash_scan_set): Likewise.
10738         (hash_scan_clobber): Likewise.
10739         (hash_scan_call): Likewise.
10740         (hash_scan_insn): Likewise.
10741         (compute_hash_table_work): Likewise for local "insn".
10742         (process_insert_insn): Likewise for return type and local "pat".
10743         (insert_insn_end_basic_block): Likewise for locals "new_insn",
10744         "pat", "pat_end", "maybe_cc0_setter".
10745         (pre_edge_insert): Likewise for local "insn".
10746         (pre_insert_copy_insn): Likewise for param "insn".
10747         (pre_insert_copies): Likewise for local "insn".
10748         (struct set_data): Likewise for field "insn".
10749         (single_set_gcse): Likewise for param "insn".
10750         (gcse_emit_move_after): Likewise.
10751         (pre_delete): Likewise for local "insn".
10752         (update_bb_reg_pressure): Likewise for param "from" and local
10753         "insn".
10754         (should_hoist_expr_to_dom): Likewise for param "from".
10755         (hoist_code): Likewise for local "insn".
10756         (get_pressure_class_and_nregs): Likewise for param "insn".
10757         (calculate_bb_reg_pressure): Likewise for local "insn".
10758         (compute_ld_motion_mems): Likewise.
10759
10760 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10761
10762         * genpeep.c (main): Rename param back from "uncast_ins1" to
10763         "ins1", strengthening from rtx to rtx_insn *.  Drop now-redundant
10764         checked cast.
10765
10766         * output.h (peephole): Strengthen param from rtx to rtx_insn *.
10767
10768 2014-08-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
10769
10770         PR target/62195
10771         * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
10772         documentation to state it is only for VSX operations.
10773
10774         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
10775         constraint only active if VSX.
10776
10777         * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
10778         wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
10779         (lfiwzx): Likewise.
10780
10781 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10782
10783         * fwprop.c (single_def_use_dom_walker::before_dom_children):
10784         Strengthen local "insn" from rtx to rtx_insn *.
10785         (use_killed_between): Likewise for param "target_insn".
10786         (all_uses_available_at): Likewise for param "target_insn" and
10787         local "next".
10788         (update_df_init): Likewise for params "def_insn", "insn".
10789         (update_df): Likewise for param "insn".
10790         (try_fwprop_subst): Likewise for param "def_insn" and local
10791         "insn".
10792         (free_load_extend): Likewise for param "insn".
10793         (forward_propagate_subreg): Likewise for param "def_insn" and
10794         local "use_insn".
10795         (forward_propagate_asm): Likewise for param "def_insn" and local
10796         "use_insn".
10797         (forward_propagate_and_simplify): Likewise for param "def_insn"
10798         and local "use_insn".
10799         (forward_propagate_into): Likewise for locals "def_insn" and
10800         "use_insn".
10801
10802 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10803
10804         * function.c (emit_initial_value_sets): Strengthen local "seq"
10805         from rtx to rtx_insn *.
10806         (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
10807         local "seq".
10808         (instantiate_virtual_regs): Likewise for local "insn".
10809         (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
10810         (reorder_blocks_1): Likewise for param "insns" and local "insn".
10811         (expand_function_end): Likewise for locals "insn" and "seq".
10812         (epilogue_done): Likewise for local "insn".
10813         (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
10814         "last", "trial".
10815         (reposition_prologue_and_epilogue_notes): Likewise for locals
10816         "insn", "last", "note", "first".
10817         (match_asm_constraints_1): Likewise for param "insn" and local "insns".
10818         (pass_match_asm_constraints::execute): Likewise for local "insn".
10819
10820 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10821
10822         * output.h (final_scan_insn): Strengthen return type from rtx to
10823         rtx_insn *.
10824         (final_forward_branch_p): Likewise for param.
10825         (current_output_insn): Likewise for this global.
10826
10827         * final.c (rtx debug_insn): Likewise for this variable.
10828         (current_output_insn): Likewise.
10829         (get_attr_length_1): Rename param "insn" to "uncast_insn",
10830         adding "insn" back in as an rtx_insn * with a checked cast, so
10831         that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
10832         first param.
10833         (compute_alignments): Strengthen local "label" from rtx to
10834         rtx_insn *.
10835         (shorten_branches): Rename param from "first" to "uncast_first",
10836         introducing a new local rtx_insn * "first" using a checked cast to
10837         effectively strengthen "first" from rtx to rtx_insn * without
10838         affecting the type signature.  Strengthen locals "insn", "seq",
10839         "next", "label" from rtx to rtx_insn *.
10840         (change_scope): Strengthen param "orig_insn" and local "insn" from
10841         rtx to rtx_insn *.
10842         (final_start_function): Rename param from "first" to "uncast_first",
10843         introducing a new local rtx_insn * "first" using a checked cast to
10844         effectively strengthen "first" from rtx to rtx_insn * without
10845         affecting the type signature.  Strengthen local "insn" from rtx to
10846         rtx_insn *.
10847         (dump_basic_block_info): Strengthen param "insn" from rtx to
10848         rtx_insn *.
10849         (final): Rename param from "first" to "uncast_first",
10850         introducing a new local rtx_insn * "first" using a checked cast to
10851         effectively strengthen "first" from rtx to rtx_insn * without
10852         affecting the type signature.  Strengthen locals "insn", "next"
10853         from rtx to rtx_insn *.
10854         (output_alternate_entry_point): Strengthen param "insn" from rtx to
10855         rtx_insn *.
10856         (call_from_call_insn): Strengthen param "insn" from rtx to
10857         rtx_call_insn *.
10858         (final_scan_insn): Rename param from "insn" to "uncast_insn",
10859         introducing a new local rtx_insn * "insn" using a checked cast to
10860         effectively strengthen "insn" from rtx to rtx_insn * without
10861         affecting the type signature.  Strengthen return type and locals
10862         "next", "note", "prev", "new_rtx" from rtx to rtx_insn *.  Remove
10863         now-redundant checked cast to rtx_insn * from both invocations of
10864         debug_hooks->var_location.  Convert CALL_P into a dyn_cast,
10865         introducing a local "call_insn" for use when invoking
10866         call_from_call_insn.
10867         (notice_source_line): Strengthen param "insn" from rtx to
10868         rtx_insn *.
10869         (leaf_function_p): Likewise for local "insn".
10870         (final_forward_branch_p): Likewise.
10871         (leaf_renumber_regs): Likewise for param "first".
10872         (rest_of_clean_state): Likewise for locals "insn" and "next".
10873         (self_recursive_call_p): Likewise for param "insn".
10874         (collect_fn_hard_reg_usage): Likewise for local "insn".
10875         (get_call_fndecl): Likewise for param "insn".
10876         (get_call_cgraph_rtl_info): Likewise.
10877         (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
10878         introducing a new local rtx_insn * "insn" using a checked cast to
10879         effectively strengthen "insn" from rtx to rtx_insn * without
10880         affecting the type signature.
10881
10882         * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
10883         cast when assigning from param "insn" to current_output_insn.
10884         (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
10885         so that we can assign it back to current_output_insn.
10886
10887 2014-08-20  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
10888
10889         * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
10890         atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
10891         atmxt540s and atmxt540sreva devices.
10892         * config/avr/avr-tables.opt: Regenerate.
10893         * config/avr/t-multilib: Regenerate.
10894         * doc/avr-mmcu.texi: Regenerate.
10895
10896 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10897
10898         * expr.c (convert_move): Strengthen local "insns" from rtx to
10899         rtx_insn *.
10900         (emit_block_move_via_loop): Strengthen locals "cmp_label" and
10901         "top_label" from rtx to rtx_code_label *.
10902         (move_block_to_reg): Strengthen local "insn", "last" from rtx to
10903         rtx_insn *.
10904         (emit_single_push_insn): Likewise for locals "prev", "last".
10905         (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
10906         to rtx_code_label *.
10907         (store_constructor): Likewise for locals "loop_start", "loop_end".
10908         (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
10909         rtx_insn *.
10910         (expand_expr_real_2): Likewise.
10911         (expand_expr_real_1): Strengthen local "label" from rtx to
10912         rtx_code_label *.
10913
10914 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10915
10916         * expmed.c (store_bit_field_using_insv): Strengthen local "last"
10917         from rtx to rtx_insn *.
10918         (store_bit_field_1): Likewise.
10919         (extract_bit_field_1): Likewise.
10920         (expand_mult_const): Likewise for local "insns".
10921         (expmed_mult_highpart): Strengthen local "label" from rtx to
10922         rtx_code_label *.
10923         (expand_smod_pow2): Likewise.
10924         (expand_sdiv_pow2): Likewise.
10925         (expand_divmod): Strengthen locals "last", "insn" from rtx to
10926         rtx_insn *.  Strengthen locals "label", "label1", "label2",
10927         "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
10928         (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
10929         (emit_store_flag): Likewise.
10930         (emit_store_flag_force): Strengthen local "label" from rtx to
10931         rtx_code_label *.
10932         (do_cmp_and_jump): Likewise for param "label".
10933
10934 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10935
10936         * explow.c (force_reg): Strengthen local "insn" from rtx to
10937         rtx_insn *.
10938         (adjust_stack_1): Likewise.
10939         (allocate_dynamic_stack_space): Likewise.  Strengthen locals
10940         "final_label", "available_label", "space_available" from rtx to
10941         rtx_code_label *.
10942         (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
10943         (anti_adjust_stack_and_probe): Likewise.
10944
10945 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10946
10947         * except.h (sjlj_emit_function_exit_after): Strengthen param
10948         "after" from rtx to rtx_insn *.  This is only called with
10949         result of get_last_insn (in function.c) so type-change should be
10950         self-contained.
10951
10952         * function.h (struct rtl_eh): Strengthen field "ehr_label" from
10953         rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
10954         to rtx_insn *.  These fields are only used from except.c so this
10955         type-change should be self-contained to this patch.
10956
10957         * except.c (emit_to_new_bb_before): Strengthen param "seq" and
10958         local "last" from rtx to rtx_insn *.
10959         (dw2_build_landing_pads): Likewise for local "seq".
10960         (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
10961         (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
10962         rtx to rtx_code_label *.  Strengthen locals "fn_begin", "seq" from
10963         rtx to rtx_insn *.
10964         (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
10965         to rtx_insn *.
10966         (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
10967         (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
10968         (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
10969         referring to an insn.  Strengthen local "dispatch_label" from
10970         rtx to rtx_code_label *.
10971         (set_nothrow_function_flags): Strengthen local "insn" from rtx to
10972         rtx_insn *.
10973         (expand_eh_return): Strengthen local "around_label" from
10974         rtx to rtx_code_label *.
10975         (convert_to_eh_region_ranges): Strengthen locals "iter",
10976         "last_action_insn", "first_no_action_insn",
10977         "first_no_action_insn_before_switch",
10978         "last_no_action_insn_before_switch", from rtx to rtx_insn *.
10979
10980 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10981
10982         * dwarf2out.c (last_var_location_insn): Strengthen this variable
10983         from rtx to rtx_insn *.
10984         (cached_next_real_insn): Likewise.
10985         (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
10986         working with insns.
10987         (dwarf2out_var_location): Strengthen locals "next_real",
10988         "next_note", "expected_next_loc_note", "last_start", "insn" from
10989         rtx to rtx_insn *.
10990
10991 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10992
10993         * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
10994         from rtx to rtx_insn *.
10995         (create_pseudo_cfg): Likewise for local "insn".
10996
10997 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10998
10999         * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
11000         from rtx to rtx_insn *.
11001         (df_bb_regno_last_def_find): Likewise.
11002
11003         * df-problems.c (df_rd_bb_local_compute): Likewise.
11004         (df_lr_bb_local_compute): Likewise.
11005         (df_live_bb_local_compute): Likewise.
11006         (df_chain_remove_problem): Likewise.
11007         (df_chain_create_bb): Likewise.
11008         (df_word_lr_bb_local_compute): Likewise.
11009         (df_remove_dead_eq_notes): Likewise for param "insn".
11010         (df_note_bb_compute): Likewise for local "insn".
11011         (simulate_backwards_to_point): Likewise.
11012         (df_md_bb_local_compute): Likewise.
11013
11014         * df-scan.c (df_scan_free_bb_info): Likewise.
11015         (df_scan_start_dump): Likewise.
11016         (df_scan_start_block): Likewise.
11017         (df_install_ref_incremental): Likewise for local "insn".
11018         (df_insn_rescan_all): Likewise.
11019         (df_reorganize_refs_by_reg_by_insn): Likewise.
11020         (df_reorganize_refs_by_insn_bb): Likewise.
11021         (df_recompute_luids): Likewise.
11022         (df_bb_refs_record): Likewise.
11023         (df_update_entry_exit_and_calls): Likewise.
11024         (df_bb_verify): Likewise.
11025
11026 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11027
11028         * ddg.h (struct ddg_node): Strengthen fields "insn" and
11029         "first_note" from rtx to rtx_insn *.
11030         (get_node_of_insn): Likewise for param 2 "insn".
11031         (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
11032
11033         * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
11034         rtx_insn *.
11035         (mem_write_insn_p): Likewise.
11036         (mem_access_insn_p): Likewise.
11037         (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
11038         (def_has_ccmode_p): Likewise for param "insn".
11039         (add_cross_iteration_register_deps): Likewise for locals
11040         "def_insn" and "use_insn".
11041         (insns_may_alias_p): Likewise for params "insn1" and "insn2".
11042         (build_intra_loop_deps): Likewise for local "src_insn".
11043         (create_ddg): Strengthen locals "insn" and "first_note" from rtx
11044         to rtx_insn *.
11045         (get_node_of_insn): Likewise for param "insn".
11046
11047 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11048
11049         * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
11050         (deletable_insn_p): Strengthen param "insn" from rtx to
11051         rtx_insn *.  Add checked cast to rtx_call_insn when invoking
11052         find_call_stack_args, since this is guarded by CALL_P (insn).
11053         (marked_insn_p): Strengthen param "insn" from rtx to
11054         rtx_insn *.
11055         (mark_insn): Likewise.  Add checked cast to rtx_call_insn when
11056         invoking find_call_stack_args, since this is guarded by
11057         CALL_P (insn).
11058         (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
11059         rtx_insn *; we know this is an insn since this was called by
11060         mark_nonreg_stores.
11061         (mark_nonreg_stores_2): Likewise.
11062         (mark_nonreg_stores): Strengthen param "insn" from rtx to
11063         rtx_insn *.
11064         (find_call_stack_args): Strengthen param "call_insn" from rtx to
11065         rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
11066         to rtx_insn *.
11067         (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
11068         from rtx to rtx_insn *.
11069         (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
11070         "next", "ref_insn".
11071         (delete_unmarked_insns): Likewise for locals "insn", "next".
11072         (prescan_insns_for_dce): Likewise for locals "insn", "prev".
11073         (mark_reg_dependencies): Likewise for param "insn".
11074         (rest_of_handle_ud_dce): Likewise for local "insn".
11075         (word_dce_process_block): Likewise.
11076         (dce_process_block): Likewise.
11077
11078 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11079
11080         * cse.c (struct qty_table_elem): Strengthen field "const_insn"
11081         from rtx to rtx_insn *.
11082         (struct change_cc_mode_args): Likewise for field "insn".
11083         (this_insn): Strengthen from rtx to rtx_insn *.
11084         (make_new_qty): Replace use of NULL_RTX with NULL when dealing
11085         with insn.
11086         (validate_canon_reg): Strengthen param "insn" from rtx to
11087         rtx_insn *.
11088         (canon_reg): Likewise.
11089         (fold_rtx): Likewise.  Replace use of NULL_RTX with NULL when
11090         dealing with insn.
11091         (record_jump_equiv): Strengthen param "insn" from rtx to
11092         rtx_insn *.
11093         (try_back_substitute_reg): Likewise, also for locals "prev",
11094         "bb_head".
11095         (find_sets_in_insn): Likewise for param "insn".
11096         (canonicalize_insn): Likewise.
11097         (cse_insn): Likewise.  Add a checked cast.
11098         (invalidate_from_clobbers): Likewise for param "insn".
11099         (invalidate_from_sets_and_clobbers): Likewise.
11100         (cse_process_notes_1): Replace use of NULL_RTX with NULL when
11101         dealing with insn.
11102         (cse_prescan_path): Strengthen local "insn" from rtx to
11103         rtx_insn *.
11104         (cse_extended_basic_block): Likewise for locals "insn" and
11105         "prev_insn".
11106         (cse_main): Likewise for param "f".
11107         (check_for_label_ref): Likewise for local "insn".
11108         (set_live_p): Likewise for second param ("insn").
11109         (insn_live_p): Likewise for first param ("insn") and for local
11110         "next".
11111         (cse_change_cc_mode_insn): Likewise for first param "insn".
11112         (cse_change_cc_mode_insns): Likewise for first and second params
11113         "start" and "end".
11114         (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
11115         and "end".
11116         (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
11117         "cc_src_insn".
11118
11119 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11120             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11121             Anna Tikhonova  <anna.tikhonova@intel.com>
11122             Ilya Tocar  <ilya.tocar@intel.com>
11123             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11124             Ilya Verbin  <ilya.verbin@intel.com>
11125             Kirill Yukhin  <kirill.yukhin@intel.com>
11126             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11127
11128         * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
11129         New.
11130         * config/i386/sse.md
11131         (define_mode_iterator VI248_AVX2): Delete.
11132         (define_mode_iterator VI2_AVX2_AVX512BW): New.
11133         (define_mode_iterator VI48_AVX2): Ditto.
11134         (define_insn <shift_insn><mode>3): Delete.
11135         (define_insn "<shift_insn><mode>3<mask_name>" with
11136         VI2_AVX2_AVX512BW): New.
11137         (define_insn "<shift_insn><mode>3<mask_name>" with
11138         VI48_AVX2): Ditto.
11139
11140 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11141             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11142             Anna Tikhonova  <anna.tikhonova@intel.com>
11143             Ilya Tocar  <ilya.tocar@intel.com>
11144             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11145             Ilya Verbin  <ilya.verbin@intel.com>
11146             Kirill Yukhin  <kirill.yukhin@intel.com>
11147             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11148
11149         * config/i386/sse.md
11150         (define_mode_iterator VI4F_BRCST32x2): New.
11151         (define_mode_attr 64x2_mode): Ditto.
11152         (define_mode_attr 32x2mode): Ditto.
11153         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
11154         with VI4F_BRCST32x2): Ditto.
11155         (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
11156         with V16FI mode iterator): Ditto.
11157         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
11158         with V16FI): Ditto.
11159         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
11160         with VI8F_BRCST64x2): Ditto.
11161
11162 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11163             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11164             Anna Tikhonova  <anna.tikhonova@intel.com>
11165             Ilya Tocar  <ilya.tocar@intel.com>
11166             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11167             Ilya Verbin  <ilya.verbin@intel.com>
11168             Kirill Yukhin  <kirill.yukhin@intel.com>
11169             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11170
11171         * config/i386/sse.md
11172         (define_mode_iterator VI8_AVX512VL): New.
11173         (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
11174
11175 2014-08-22  Kirill Yukhin  <kirill.yukhin@intel.com>
11176
11177         * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
11178         (define_mode_iterator V48_AVX512VL): New.
11179         (define_mode_iterator V12_AVX512VL): Ditto.
11180         (define_insn <avx512>_load<mode>_mask): Split into two similar
11181         patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
11182         Refactor output template.
11183         (define_insn "<avx512>_store<mode>_mask"): Ditto.
11184
11185 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11186
11187         * cprop.c (struct occr): Strengthen field "insn" from rtx to
11188         rtx_insn *.
11189         (reg_available_p): Likewise for param "insn".
11190         (insert_set_in_table): Likewise.
11191         (hash_scan_set): Likewise.
11192         (hash_scan_insn): Likewise.
11193         (make_set_regs_unavailable): Likewise.
11194         (compute_hash_table_work): Likewise for local "insn".
11195         (reg_not_set_p): Strengthen param "insn" from const_rtx to
11196         const rtx_insn *.
11197         (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
11198         (try_replace_reg): Likewise.
11199         (find_avail_set): Likewise.
11200         (cprop_jump): Likewise for params "setcc", "jump".
11201         (constprop_register): Likewise for param "insn".
11202         (cprop_insn): Likewise.
11203         (do_local_cprop): Likewise.
11204         (local_cprop_pass): Likewise for local "insn".
11205         (bypass_block): Likewise for params "setcc" and "jump".
11206         (bypass_conditional_jumps): Likewise for locals "setcc" and
11207         "insn".
11208         (one_cprop_pass): Likewise for local "insn".
11209
11210 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11211
11212         * compare-elim.c (struct comparison_use): Strengthen field "insn"
11213         from rtx to rtx_insn *.
11214         (struct comparison): Likewise, also for field "prev_clobber".
11215         (conforming_compare): Likewise for param "insn".
11216         (arithmetic_flags_clobber_p): Likewise.
11217         (find_flags_uses_in_insn): Likewise.
11218         (find_comparison_dom_walker::before_dom_children): Likewise for
11219         locals "insn", "next", "last_clobber".
11220         (try_eliminate_compare): Likewise for locals "insn", "bb_head".
11221
11222 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11223
11224         * combine-stack-adj.c (struct csa_reflist): Strengthen field
11225         "insn" from rtx to rtx_insn *.
11226         (single_set_for_csa): Likewise for param "insn".
11227         (record_one_stack_ref): Likewise.
11228         (try_apply_stack_adjustment): Likewise.
11229         (struct record_stack_refs_data): Likewise for field "insn".
11230         (maybe_move_args_size_note): Likewise for params "last" and "insn".
11231         (prev_active_insn_bb): Likewise for return type and param "insn".
11232         (next_active_insn_bb): Likewise.
11233         (force_move_args_size_note): Likewise for params "prev" and "last"
11234         and locals "test", "next_candidate", "prev_candidate".
11235         (combine_stack_adjustments_for_block): Strengthen locals
11236         "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
11237         rtx_insn *.
11238
11239 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
11240
11241         * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
11242         (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
11243         (subst_insn): Likewise for this variable.
11244         (added_links_insn): Likewise.
11245         (struct insn_link): Likewise for field "insn".
11246         (alloc_insn_link): Likewise for param "insn".
11247         (struct undobuf): Likewise for field "other_insn".
11248         (find_single_use): Likewise for param "insn" and local "next".
11249         (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
11250         (delete_noop_moves): Likewise for locals "insn", "next".
11251         (create_log_links): Likewise for locals "insn", "use_insn".
11252         Strengthen local "next_use" from rtx * to rtx_insn **.
11253         (insn_a_feeds_b): Likewise for params "a", "b".
11254         (combine_instructions): Likewise for param "f" and locals "insn",
11255         "next", "prev", "first", "last_combined_insn", "link", "link1",
11256         "temp".  Replace use of NULL_RTX with NULL when referring to
11257         insns.
11258         (setup_incoming_promotions): Likewise for param "first"
11259         (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
11260         (can_combine_p): Likewise for params "insn", "i3", "pred",
11261         "pred2", "succ", "succ2" and for local "p".
11262         (combinable_i3pat): Likewise for param "i3".
11263         (cant_combine_insn_p): Likewise for param "insn".
11264         (likely_spilled_retval_p): Likewise.
11265         (adjust_for_new_dest): Likewise.
11266         (update_cfg_for_uncondjump): Likewise, also for local "insn".
11267         (try_combine): Likewise for return type and for params "i3", "i2",
11268         "i1", "i0", "last_combined_insn", and for locals "insn",
11269         "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
11270         "i0_insn".  Eliminate local "tem" in favor of new locals
11271         "tem_note" and "tem_insn", the latter being an rtx_insn *.  Add a
11272         checked cast for now to rtx_insn * on the return type of
11273         gen_rtx_INSN.  Replace use of NULL_RTX with NULL when referring to
11274         insns.
11275         (find_split_point): Strengthen param "insn" from rtx to
11276         rtx_insn *.
11277         (simplify_set): Likewise for local "other_insn".
11278         (recog_for_combine): Likewise for param "insn".
11279         (record_value_for_reg): Likewise.
11280         (record_dead_and_set_regs_1): Likewise for local
11281         "record_dead_insn".
11282         (record_dead_and_set_regs): Likewise for param "insn".
11283         (record_promoted_value): Likewise.
11284         (check_promoted_subreg): Likewise.
11285         (get_last_value_validate): Likewise.
11286         (reg_dead_at_p): Likewise.
11287         (move_deaths): Likewise for param "to_insn".
11288         (distribute_notes): Likewise for params "from_insn", "i3", "i2"
11289         and locals "place", "place2", "cc0_setter".  Eliminate local "tem
11290         in favor of new locals "tem_note" and "tem_insn", the latter being
11291         an rtx_insn *.
11292         (distribute_links): Strengthen locals "place", "insn" from rtx to
11293         rtx_insn *.
11294
11295 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
11296
11297         * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
11298         than a const_rtx.
11299         (can_delete_label_p): Require a const rtx_code_label * rather than
11300         a const_rtx.
11301         (delete_insn): Add checked cast to rtx_code_label * when we know
11302         we're dealing with LABEL_P (insn).  Strengthen local "bb_note" from
11303         rtx to rtx_insn *.
11304         (delete_insn_chain): Strengthen locals "prev" and "current" from
11305         rtx to rtx_insn *.  Add a checked cast when assigning from
11306         "finish" (strengthening the params will come later).  Add a
11307         checked cast to rtx_note * in region where we know
11308         NOTE_P (current).
11309         (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
11310         rtx_insn *.
11311         (compute_bb_for_insn): Likewise.
11312         (free_bb_for_insn): Likewise for local "insn".
11313         (compute_bb_for_insn): Likewise.
11314         (update_bb_for_insn_chain): Strengthen params "begin", "end" and
11315         local "insn" from rtx to rtx_insn *
11316         (flow_active_insn_p): Require a const rtx_insn * rather than a
11317         const_rtx.
11318         (contains_no_active_insn_p): Strengthen local "insn" from rtx to
11319         rtx_insn *.
11320         (can_fallthru): Likewise for locals "insn" and "insn2".
11321         (bb_note): Likewise for local "note".
11322         (first_insn_after_basic_block_note): Likewise for local "note" and
11323         for return type.
11324         (rtl_split_block): Likewise for locals "insn" and "next".
11325         (unique_locus_on_edge_between_p): Likewise for locals "insn" and
11326         "end".
11327         (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
11328         "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
11329         "prev", "tmp".
11330         (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
11331         them), "kill_from", "barrier", "new_insn".
11332         (patch_jump_insn): Likewise for params "insn", "old_label".
11333         (redirect_branch_edge): Likewise for locals "old_label", "insn".
11334         (force_nonfallthru_and_redirect): Likewise for locals "insn",
11335         "old_label", "new_label".
11336         (rtl_tidy_fallthru_edge): Likewise for local "q".
11337         (rtl_split_edge): Likewise for locals "before", "last".
11338         (commit_one_edge_insertion): Likewise for locals "before",
11339         "after", "insns", "tmp", "last", adding a checked cast where
11340         currently necessary.
11341         (commit_edge_insertions): Likewise.
11342         (rtl_dump_bb): Likewise for locals "insn", "last".
11343         (print_rtl_with_bb): Likewise for local "x".
11344         (rtl_verify_bb_insns): Likewise for local "x".
11345         (rtl_verify_bb_pointers): Likewise for local "insn".
11346         (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
11347         "head", "end".
11348         (rtl_verify_fallthru): Likewise for local "insn".
11349         (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
11350         (purge_dead_edges): Likewise for local "insn".
11351         (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
11352         (skip_insns_after_block): Likewise for return type and for locals
11353         "insn", "last_insn", "next_head", "prev".
11354         (record_effective_endpoints): Likewise for locals "next_insn",
11355         "insn", "end".
11356         (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
11357         (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
11358         (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
11359         (duplicate_insn_chain): For now, add checked cast from rtx to
11360         rtx_insn * when returning insn.
11361         (cfg_layout_duplicate_bb): Likewise for local "insn".
11362         (cfg_layout_delete_block): Likewise for locals "insn", "next",
11363         "prev", "remaints".
11364         (cfg_layout_merge_blocks): Likewise for local "insn", "last".
11365         (rtl_block_empty_p): Likewise.
11366         (rtl_split_block_before_cond_jump): Likewise for locals "insn",
11367         "split_point", "last".
11368         (rtl_block_ends_with_call_p): Likewise for local "insn".
11369         (need_fake_edge_p): Strengthen param "insn" from const_rtx to
11370         const rtx_insn *.
11371         (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
11372         "split_at_insn" from rtx to rtx_insn *.
11373         (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
11374         (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
11375         to const rtx_insn *.
11376         (rtl_account_profile_record): Likewise.
11377
11378 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
11379
11380         * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
11381         rtx to rtx_insn *.
11382         (average_num_loop_insns): Likewise.
11383         (init_set_costs): Likewise for local "seq".
11384         (seq_cost): Likewise for param "seq", from const_rtx to const
11385         rtx_insn *.
11386
11387 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
11388
11389         * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
11390         rtx to rtx_insn *.
11391
11392 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
11393
11394         * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
11395         "f1" and "f2" from rtx * to rtx_insn **.
11396         (flow_find_head_matching_sequence): Likewise.
11397
11398         * cfgcleanup.c (try_simplify_condjump): Strengthen local
11399         "cbranch_insn" from rtx to rtx_insn *.
11400         (thread_jump): Likewise for local "insn".
11401         (try_forward_edges): Likewise for local "last".
11402         (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
11403         (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
11404         "real_b_end".
11405         (can_replace_by): Likewise for params "i1", "i2".
11406         (old_insns_match_p): Likewise.
11407         (merge_notes): Likewise.
11408         (walk_to_nondebug_insn): Likewise for param "i1".
11409         (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
11410         to rtx_insn **.  Strengthen locals "i1", "i2", "last1", "last2",
11411         "afterlast1", "afterlast2" from rtx to rtx_insn *.
11412         (flow_find_head_matching_sequence): Strengthen params "f1" and
11413         "f2" from rtx * to rtx_insn **.  Strengthen locals "i1", "i2",
11414         "last1", "last2", "beforelast1", "beforelast2" from rtx to
11415         rtx_insn *.
11416         (outgoing_edges_match): Likewise for locals "last1", "last2".
11417         (try_crossjump_to_edge): Likewise for local "insn".
11418         Replace call to for_each_rtx with for_each_rtx_in_insn.
11419
11420         (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
11421         (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
11422         "e0_last", "e_last", "head", "curr", "insn".  Strengthen locals
11423         "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
11424         (try_optimize_cfg): Strengthen local "last" from rtx to
11425         rtx_insn *.
11426         (delete_dead_jumptables): Likewise for locals "insn", "next",
11427         "label".
11428
11429         * ifcvt.c (cond_exec_process_if_block): Likewise for locals
11430         "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
11431         "rtx else_first_tail", to reflect the basic-block.h changes above.
11432
11433 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
11434
11435         * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
11436         rtx_insn *.
11437         (purge_dead_tablejump_edges): Likewise.
11438         (find_bb_boundaries): Likewise for locals "insn", "end",
11439         "flow_transfer_insn".
11440
11441 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
11442
11443         * caller-save.c (save_call_clobbered_regs): Strengthen locals
11444         "ins" and "prev" from rtx to rtx_insn *.
11445
11446 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
11447
11448         * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
11449         rtx_insn *.
11450         (internal_arg_pointer_exp_state): Likewise for field "scan_start".
11451         (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
11452         "scan_start".
11453         (load_register_parameters): Likewise for local "before_arg".
11454         (check_sibcall_argument_overlap): Likewise for param "insn".
11455         (expand_call): Likewise for locals "normal_call_insns",
11456         "tail_call_insns", "insns", "before_call", "after_args",
11457         "before_arg", "last", "prev".  Strengthen one of the "last" from
11458         rtx to rtx_call_insn *.
11459         (fixup_tail_calls): Strengthen local "insn" from rtx to
11460         rtx_insn *.
11461         (emit_library_call_value_1): Likewise for locals "before_call" and
11462         "last".
11463
11464 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
11465
11466         * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
11467         and "last" from rtx to rtx_insn *.
11468         (expand_builtin_nonlocal_goto): Likewise for local "insn".
11469         (expand_builtin_apply): Strengthen local "call_insn" from rtx to
11470         rtx_call_insn *.
11471         (expand_errno_check): Strengthen local "lab" from rtx to
11472         rtx_code_label *.
11473         (expand_builtin_mathfn): Strengthen local "insns" from rtx to
11474         rtx_insn *.
11475         (expand_builtin_mathfn_2): Likewise.
11476         (expand_builtin_mathfn_ternary): Likewise.
11477         (expand_builtin_mathfn_3): Likewise.
11478         (expand_builtin_interclass_mathfn): Likewise for local "last".
11479         (expand_builtin_int_roundingfn): Likewise for local "insns".
11480         (expand_builtin_int_roundingfn_2): Likewise.
11481         (expand_builtin_strlen): Likewise for local "before_strlen".
11482         (expand_builtin_strncmp): Likewise for local "seq".
11483         (expand_builtin_signbit): Likewise for local "last".
11484         (expand_builtin_atomic_compare_exchange): Strengthen local "label"
11485         from rtx to rtx_code_label *.
11486         (expand_stack_restore):  Strengthen local "prev" from rtx to
11487         rtx_insn *.
11488
11489 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
11490
11491         * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
11492         to rtx_insn *.
11493         (struct btr_def_s): Likewise.
11494         (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
11495         const rtx_insn *.
11496         (add_btr_def): Likewise.
11497         (new_btr_user): Likewise.
11498         (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
11499         rtx to rtx_insn *.
11500         (link_btr_uses): Likewise.
11501         (move_btr_def): Likewise for locals "insp", "old_insn",
11502         "new_insn".  Add checked cast to rtx_insn * for now on result of
11503         gen_move_insn.
11504         (can_move_up): Strengthen param "insn" from const_rtx to
11505         const rtx_insn *.
11506
11507 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
11508
11509         * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
11510         rtx_insn *.
11511         (get_uncond_jump_length): Likewise for locals "label", "jump".
11512         (fix_up_crossing_landing_pad): Likewise for locals "new_label",
11513         "jump", "insn".
11514         (add_labels_and_missing_jumps): Likewise for local "new_jump".
11515         (fix_up_fall_thru_edges): Likewise for local "old_jump".
11516         (find_jump_block): Likewise for local "insn".
11517         (fix_crossing_conditional_branches): Likewise for locals
11518         "old_jump", "new_jump".
11519         (fix_crossing_unconditional_branches): Likewise for locals
11520         "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
11521         (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
11522
11523 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
11524
11525         * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
11526         rtx to rtx_insn *.
11527         (struct mem_insn): Likewise for field "insn".
11528         (reg_next_use): Strengthen from rtx * to rtx_insn **.
11529         (reg_next_inc_use): Likewise.
11530         (reg_next_def): Likewise.
11531         (move_dead_notes): Strengthen params "to_insn" and "from_insn"
11532         from rtx to rtx_insn *.
11533         (move_insn_before): Likewise for param "next_insn" and local "insns".
11534         (attempt_change): Likewise for local "mov_insn".
11535         (try_merge): Likewise for param "last_insn".
11536         (get_next_ref): Likewise for return type and local "insn".
11537         Strengthen param "next_array" from rtx * to rtx_insn **.
11538         (parse_add_or_inc): Strengthen param "insn" from rtx to
11539         rtx_insn *.
11540         (find_inc): Likewise for locals "insn" and "other_insn" (three of
11541         the latter).
11542         (merge_in_block): Likewise for locals "insn", "curr",
11543         "other_insn".
11544         (pass_inc_dec::execute): Update allocations of the arrays to
11545         reflect the stronger types.
11546
11547 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
11548
11549         * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
11550         and "jump" from rtx to rtx_insn *.  Strengthen local "top_label"
11551         from rtx to rtx_code_label *.
11552
11553 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
11554
11555         * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
11556         to rtx_insn *.
11557
11558 2014-08-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
11559
11560         * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
11561         generated a warning and prevented bootstrapping the compiler.
11562
11563 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
11564
11565         * rtl.h (delete_related_insns): Strengthen return type from rtx to
11566         rtx_insn *.
11567
11568         * jump.c (delete_related_insns): Likewise, also for locals "next"
11569         and "prev".
11570
11571 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
11572
11573         * genautomata.c (output_internal_insn_latency_func): When writing
11574         the function "internal_insn_latency" to insn-automata.c,
11575         strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
11576         allowing the optional guard function of (define_bypass) clauses to
11577         expect a pair of rtx_insn *, rather than a pair of rtx.
11578         (output_insn_latency_func): When writing the function
11579         "insn_latency", add an "uncast_" prefix to params "insn" and
11580         "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
11581         using checked casts from the params, thus enabling the above
11582         change to the generated "internal_insn_latency" function.
11583
11584 2014-08-21  Jan Hubicka  <hubicka@ucw.cz>
11585
11586         PR tree-optimization/62091
11587         * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
11588         handle correctly arrays.
11589         (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
11590         inheritance binfos.
11591         (record_known_type): Walk into inner type.
11592         (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
11593         condition on no type changes.
11594
11595 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
11596
11597         * genattrtab.c (write_attr_get): Within the generated get_attr_
11598         functions, rename param "insn" to "uncast_insn" and reintroduce
11599         "insn" as an local rtx_insn * using a checked cast, so that "insn"
11600         is an rtx_insn * within insn-attrtab.c
11601
11602 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
11603
11604         * output.h (peephole): Strengthen return type from rtx to
11605         rtx_insn *.
11606         * rtl.h (delete_for_peephole): Likewise for both params.
11607         * genpeep.c (main): In generated "peephole" function, strengthen
11608         return type and local "insn" from rtx to rtx_insn *.  For now,
11609         rename param "ins1" to "uncast_ins1", adding "ins1" back as an
11610         rtx_insn *, with a checked cast.
11611         * jump.c (delete_for_peephole): Strengthen params "from", "to" and
11612         locals "insn", "next", "prev" from rtx to rtx_insn *.
11613
11614 2014-08-21  Marc Glisse  <marc.glisse@inria.fr>
11615
11616         PR tree-optimization/62112
11617         * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
11618         * gimple-iterator.h (gsi_replace): Return bool.
11619         * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
11620         moved from ref_may_alias_global_p.
11621         (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
11622         New overloads.
11623         (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
11624         (stmt_kills_ref_p_1): Rename...
11625         (stmt_kills_ref_p): ... to this.
11626         * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
11627         stmt_kills_ref_p): Declare.
11628         * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
11629         Move the self-assignment case...
11630         (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
11631
11632 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
11633
11634         * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
11635
11636         * emit-rtl.c (try_split): Likewise, also for locals "before" and
11637         "after".  For now, don't strengthen param "trial", which requires
11638         adding checked casts when returning it.
11639
11640 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
11641
11642         * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
11643         "label" from rtx to rtx_code_label *.  Strengthen param 1 of
11644         "var_location" hook from rtx to rtx_insn *.
11645         (debug_nothing_rtx): Delete in favor of...
11646         (debug_nothing_rtx_code_label): New prototype.
11647         (debug_nothing_rtx_rtx): Delete unused prototype.
11648         (debug_nothing_rtx_insn): New prototype.
11649
11650         * final.c (final_scan_insn): Add checked cast to rtx_insn * when
11651         invoking debug_hooks->var_location (in two places, one in a NOTE
11652         case of a switch statement, the other guarded by a CALL_P
11653         conditional.  Add checked cast to rtx_code_label * when invoking
11654         debug_hooks->label (within CODE_LABEL case of switch statement).
11655
11656         * dbxout.c (dbx_debug_hooks): Update "label" hook from
11657         debug_nothing_rtx to debug_nothing_rtx_code_label.  Update
11658         "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
11659         (xcoff_debug_hooks): Likewise.
11660         * debug.c (do_nothing_debug_hooks): Likewise.
11661         (debug_nothing_rtx): Delete in favor of...
11662         (debug_nothing_rtx_insn): New function.
11663         (debug_nothing_rtx_rtx): Delete unused function.
11664         (debug_nothing_rtx_code_label): New function.
11665         * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
11666         debug_nothing_rtx to debug_nothing_rtx_code_label.
11667         (dwarf2out_var_location): Strengthen param "loc_note" from rtx
11668         to rtx_insn *.
11669         * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
11670         debug_nothing_rtx to debug_nothing_rtx_insn.
11671         (sdbout_label): Strengthen param "insn" from rtx to
11672         rtx_code_label *.
11673         * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
11674         debug_nothing_rtx to debug_nothing_rtx_code_label.  Update
11675         "var_location" hook from debug_nothing_rtx to
11676         debug_nothing_rtx_insn.
11677
11678 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
11679
11680         * recog.h (insn_output_fn): Update this function typedef to match
11681         the changes below to the generated output functions, strengthening
11682         the 2nd param from rtx to rtx_insn *.
11683
11684         * final.c (get_insn_template): Add a checked cast to rtx_insn * on
11685         insn when invoking an output function, to match the new signature
11686         of insn_output_fn with a stronger second param.
11687
11688         * genconditions.c (write_header): In the generated code for
11689         gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
11690         to match the other changes in this patch.
11691
11692         * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
11693         the generated "gen_" functions from rtx to rtx_insn * within their
11694         implementations.
11695
11696         * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
11697         the subfunctions within the generated "recog_", "split", "peephole2"
11698         function trees from rtx to rtx_insn *.  For now, the top-level
11699         generated functions ("recog", "split", "peephole2") continue to
11700         take a plain rtx for "insn", to avoid introducing dependencies on
11701         other patches.  Rename this 2nd param from "insn" to
11702         "uncast_insn", and reintroduce "insn" as a local variable of type
11703         rtx_insn *, initialized at the top of the generated function with
11704         a checked cast on "uncast_insn".
11705         (make_insn_sequence): Strengthen the 1st param "curr_insn" of
11706         the generated "gen_" functions from rtx to rtx_insn * within their
11707         prototypes.
11708
11709         * genoutput.c (process_template): Strengthen the 2nd param within
11710         the generated "output_" functions "insn" from rtx to rtx_insn *.
11711
11712 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
11713
11714         * tree-profile.c (tree_profiling): Skip external functions
11715         when doing coverage instrumentation.
11716         * cgraphunit.c (compile): Do not assert that all nodes are reachable.
11717
11718 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11719
11720         * config/rs6000/altivec.h (vec_cpsgn): New #define.
11721         (vec_mergee): Likewise.
11722         (vec_mergeo): Likewise.
11723         (vec_cntlz): Likewise.
11724         * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
11725         entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
11726         VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
11727         VMRGEW, and VMRGOW.
11728         * doc/extend.texi: Document various forms of vec_cpsgn,
11729         vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
11730         vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
11731         vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
11732         vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
11733         vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
11734
11735 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11736
11737         * config/rs6000/rs6000.c (context.h): New include.
11738         (tree-pass.h): Likewise.
11739         (make_pass_analyze_swaps): New decl.
11740         (rs6000_option_override): Register pass_analyze_swaps.
11741         (swap_web_entry): New subsclass of web_entry_base (df.h).
11742         (special_handling_values): New enum.
11743         (union_defs): New function.
11744         (union_uses): Likewise.
11745         (insn_is_load_p): Likewise.
11746         (insn_is_store_p): Likewise.
11747         (insn_is_swap_p): Likewise.
11748         (rtx_is_swappable_p): Likewise.
11749         (insn_is_swappable_p): Likewise.
11750         (chain_purpose): New enum.
11751         (chain_contains_only_swaps): New function.
11752         (mark_swaps_for_removal): Likewise.
11753         (swap_const_vector_halves): Likewise.
11754         (adjust_subreg_index): Likewise.
11755         (permute_load): Likewise.
11756         (permute_store): Likewise.
11757         (handle_special_swappables): Likewise.
11758         (replace_swap_with_copy): Likewise.
11759         (dump_swap_insn_table): Likewise.
11760         (rs6000_analyze_swaps): Likewise.
11761         (pass_data_analyze_swaps): New pass_data.
11762         (pass_analyze_swaps): New rtl_opt_pass.
11763         (make_pass_analyze_swaps): New function.
11764         * config/rs6000/rs6000.opt (moptimize-swaps): New option.
11765
11766 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
11767
11768         * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
11769         type from rtx to rtx_insn *.
11770         (create_copy_of_insn_rtx): Likewise.
11771         * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
11772         (create_copy_of_insn_rtx): Likewise, also for local "res".
11773
11774 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
11775
11776         * rtl.h (find_first_parameter_load): Strengthen return type from
11777         rtx to rtx_insn *.
11778         * rtlanal.c (find_first_parameter_load): Strengthen return type
11779         from rtx to rtx_insn *.  Add checked cast for now, to postpone
11780         strengthening the params.
11781
11782 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11783
11784         PR fortran/44054
11785         * diagnostic.c: Set default caret.
11786         (diagnostic_show_locus): Use it. Tell pretty-printer that a new
11787         line is needed.
11788         * diagnostic.h (struct diagnostic_context):
11789
11790 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
11791
11792         * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
11793         (sel_bb_head): Strengthen return type insn_t (currently just an
11794         rtx) to rtx_insn *.
11795         (sel_bb_end): Likewise.
11796
11797         * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
11798         (sel_bb_head): Strengthen return type and local "head" from
11799         insn_t (currently just an rtx) to rtx_insn *.
11800         (sel_bb_end): Likewise for return type.
11801         (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
11802         working with insn.
11803
11804 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
11805
11806         * basic-block.h (get_last_bb_insn): Strengthen return type from
11807         rtx to rtx_insn *.
11808         * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
11809         end".
11810
11811 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11812
11813         PR fortran/44054
11814         * diagnostic.c (default_diagnostic_finalizer): Move caret printing
11815          to here ...
11816         (diagnostic_report_diagnostic): ... from here.
11817         * toplev.c (general_init): Move code to c-family.
11818
11819 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11820
11821         * df.h (web_entry_base): Replace existing struct web_entry with a
11822         new class web_entry_base with only the predecessor member.
11823         (unionfind_root): Remove declaration and move to class member.
11824         (unionfind_union): Remove declaration and move to friend
11825         function.
11826         (union_defs): Remove declaration.
11827         * web.c (web_entry_base::unionfind_root): Modify to be member
11828         function and adjust accessors.
11829         (unionfind_union): Modify to be friend function and adjust
11830         accessors.
11831         (web_entry): New subclass of web_entry_base containing the reg
11832         member.
11833         (union_match_dups): Modify for struct -> class changes.
11834         (union_defs): Likewise.
11835         (entry_register): Likewise.
11836         (pass_web::execute): Likewise.
11837
11838 2014-08-20  Bill Schmidt  <wschmidt@vnet.ibm.com>
11839
11840         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
11841         builtin define __VEC_ELEMENT_REG_ORDER__.
11842
11843 2014-08-20  Martin Jambor  <mjambor@suse.cz>
11844             Wei Mi  <wmi@google.com>
11845
11846         PR ipa/60449
11847         PR middle-end/61776
11848         * tree-ssa-operands.c (update_stmt_operands): Remove
11849         MODIFIED_NORETURN_CALLS.
11850         * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
11851         (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
11852         (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
11853         (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
11854         * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
11855         * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
11856         (gimple_call_set_ctrl_altering): New func.
11857         (gimple_call_ctrl_altering_p): Ditto.
11858         * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
11859         (make_blocks): Use gimple_call_initialize_ctrl_altering.
11860         (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
11861         (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
11862         remove MODIFIED_NORETURN_CALLS.
11863
11864 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
11865
11866         * coverage.c (coverage_compute_profile_id): Return non-0;
11867         also handle symbols with unique name.
11868         (coverage_end_function): Do not skip DECL_EXTERNAL functions.
11869
11870 2014-08-20  Steve Ellcey  <sellcey@mips.com>
11871
11872         PR middle-end/49191
11873         * doc/sourcebuild.texi (non_strict_align): New.
11874
11875 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
11876
11877         * cgraphunit.c (ipa_passes, compile): Reshedule
11878         symtab_remove_unreachable_nodes passes; update comments.
11879         * ipa-inline.c (pass_data_ipa_inline): Do not schedule
11880         TODO_remove_functions before the pass; the functions ought to be
11881         already removed.
11882         * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
11883         TODO_remove_functions.
11884         * passes.c (pass_data_early_local_passes): Do not schedule function
11885         removal.
11886         (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
11887
11888 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11889
11890         PR c/59304
11891         * opts-common.c (set_option): Call diagnostic_classify_diagnostic
11892         before setting the option.
11893         * diagnostic.c (diagnostic_classify_diagnostic): Record
11894         command-line status.
11895
11896 2014-08-20  Richard Biener  <rguenther@suse.de>
11897
11898         PR lto/62190
11899         * tree.c (build_common_tree_nodes): Use make_or_reuse_type
11900         to build uint{16,32,64}_type_node.
11901
11902 2014-08-20  Terry Guo  <terry.guo@arm.com>
11903
11904         * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
11905         with immediate_operand.
11906
11907 2014-08-20  David Malcolm  <dmalcolm@redhat.com>
11908
11909         * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
11910         "insn" from an as_a to a safe_as_a, for the case when "insn" is
11911         NULL.
11912
11913 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11914
11915         PR preprocessor/51303
11916         * incpath.c (remove_duplicates): Use cpp_warning.
11917
11918 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11919
11920         PR c/60975
11921         PR c/53063
11922         * doc/options.texi (CPP): Document it.
11923         * doc/invoke.texi (Wvariadic-macros): Fix documentation.
11924         * optc-gen.awk: Handle CPP.
11925         * opth-gen.awk: Likewise.
11926
11927 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11928
11929         * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
11930         rtx_insn *.
11931         (duplicate_insn_chain): Likewise.
11932         * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
11933         rtx_insn *, also for locals "prevfirst" and "nextlast".  Add a
11934         checked cast for now (until we can strengthen the params in the
11935         same way).
11936         (duplicate_insn_chain): Likewise.
11937
11938 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11939
11940         * rtl.h (next_cc0_user): Strengthen return type from rtx to
11941         rtx_insn *.
11942         (prev_cc0_setter): Likewise.
11943
11944         * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
11945         rtx_insn *, adding checked casts for now as necessary.
11946         (prev_cc0_setter): Likewise.
11947
11948 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11949
11950         * expr.h (emit_move_insn): Strengthen return type from rtx to
11951         rtx_insn *.
11952         (emit_move_insn_1): Likewise.
11953         (emit_move_complex_push): Likewise.
11954         (emit_move_complex_parts): Likewise.
11955
11956         * expr.c (emit_move_via_integer): Strengthen return type from rtx
11957         to rtx_insn *.  Replace use of NULL_RTX with NULL when working
11958         with insns.
11959         (emit_move_complex_push): Strengthen return type from rtx to
11960         rtx_insn *.
11961         (emit_move_complex): Likewise, also for local "ret".
11962         (emit_move_ccmode): Likewise.
11963         (emit_move_multi_word): Likewise for return type and locals
11964         "last_insn", "seq".
11965         (emit_move_insn_1): Likewise for return type and locals "result",
11966         "ret".
11967         (emit_move_insn): Likewise for return type and local "last_insn".
11968         (compress_float_constant): Likewise.
11969
11970 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11971
11972         * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
11973         from rtx to rtx_insn *.
11974
11975         * rtl.h (emit_insn_before): Likewise.
11976         (emit_insn_before_noloc): Likewise.
11977         (emit_insn_before_setloc): Likewise.
11978         (emit_jump_insn_before): Likewise.
11979         (emit_jump_insn_before_noloc): Likewise.
11980         (emit_jump_insn_before_setloc): Likewise.
11981         (emit_call_insn_before): Likewise.
11982         (emit_call_insn_before_noloc): Likewise.
11983         (emit_call_insn_before_setloc): Likewise.
11984         (emit_debug_insn_before): Likewise.
11985         (emit_debug_insn_before_noloc): Likewise.
11986         (emit_debug_insn_before_setloc): Likewise.
11987         (emit_label_before): Likewise.
11988         (emit_insn_after): Likewise.
11989         (emit_insn_after_noloc): Likewise.
11990         (emit_insn_after_setloc): Likewise.
11991         (emit_jump_insn_after): Likewise.
11992         (emit_jump_insn_after_noloc): Likewise.
11993         (emit_jump_insn_after_setloc): Likewise.
11994         (emit_call_insn_after): Likewise.
11995         (emit_call_insn_after_noloc): Likewise.
11996         (emit_call_insn_after_setloc): Likewise.
11997         (emit_debug_insn_after): Likewise.
11998         (emit_debug_insn_after_noloc): Likewise.
11999         (emit_debug_insn_after_setloc): Likewise.
12000         (emit_label_after): Likewise.
12001         (emit_insn): Likewise.
12002         (emit_debug_insn): Likewise.
12003         (emit_jump_insn): Likewise.
12004         (emit_call_insn): Likewise.
12005         (emit_label): Likewise.
12006         (gen_clobber): Likewise.
12007         (emit_clobber): Likewise.
12008         (gen_use): Likewise.
12009         (emit_use): Likewise.
12010         (emit): Likewise.
12011
12012         (emit_barrier_before): Strengthen return type from rtx to
12013         rtx_barrier *.
12014         (emit_barrier_after): Likewise.
12015         (emit_barrier): Likewise.
12016
12017         * emit-rtl.c (emit_pattern_before_noloc):  Strengthen return type
12018         from rtx to rtx_insn *.  Add checked casts for now when converting
12019         "last" from rtx to rtx_insn *.
12020         (emit_insn_before_noloc): Likewise for return type.
12021         (emit_jump_insn_before_noloc): Likewise.
12022         (emit_call_insn_before_noloc): Likewise.
12023         (emit_debug_insn_before_noloc): Likewise.
12024         (emit_barrier_before): Strengthen return type and local "insn"
12025         from rtx to rtx_barrier *.
12026         (emit_label_before): Strengthen return type from rtx to
12027         rtx_insn *.  Add checked cast for now when returning param
12028         (emit_pattern_after_noloc): Strengthen return type from rtx to
12029         rtx_insn *.  Add checked casts for now when converting "last" from
12030         rtx to rtx_insn *.
12031         (emit_insn_after_noloc): Strengthen return type from rtx to
12032         rtx_insn *.
12033         (emit_jump_insn_after_noloc): Likewise.
12034         (emit_call_insn_after_noloc): Likewise.
12035         (emit_debug_insn_after_noloc): Likewise.
12036         (emit_barrier_after): Strengthen return type from rtx to
12037         rtx_barrier *.
12038         (emit_label_after): Strengthen return type from rtx to rtx_insn *.
12039         Add checked cast for now when converting "label" from rtx to
12040         rtx_insn *.
12041         (emit_pattern_after_setloc): Strengthen return type from rtx to
12042         rtx_insn *.  Add checked casts for now when converting "last" from
12043         rtx to rtx_insn *.
12044         (emit_pattern_after): Strengthen return type from rtx to
12045         rtx_insn *.
12046         (emit_insn_after_setloc): Likewise.
12047         (emit_insn_after): Likewise.
12048         (emit_jump_insn_after_setloc): Likewise.
12049         (emit_jump_insn_after): Likewise.
12050         (emit_call_insn_after_setloc): Likewise.
12051         (emit_call_insn_after): Likewise.
12052         (emit_debug_insn_after_setloc): Likewise.
12053         (emit_debug_insn_after): Likewise.
12054         (emit_pattern_before_setloc): Likewise.  Add checked casts for now
12055         when converting "last" from rtx to rtx_insn *.
12056         (emit_pattern_before): Strengthen return type from rtx to
12057         rtx_insn *.
12058         (emit_insn_before_setloc): Likewise.
12059         (emit_insn_before): Likewise.
12060         (emit_jump_insn_before_setloc): Likewise.
12061         (emit_jump_insn_before): Likewise.
12062         (emit_call_insn_before_setloc): Likewise.
12063         (emit_call_insn_before): Likewise.
12064         (emit_debug_insn_before_setloc): Likewise.
12065         (emit_debug_insn_before): Likewise.
12066         (emit_insn): Strengthen return type and locals "last", "insn",
12067         "next" from rtx to rtx_insn *.  Add checked cast to rtx_insn
12068         within cases where we know we have an insn.
12069         (emit_debug_insn): Likewise.
12070         (emit_jump_insn): Likewise.
12071         (emit_call_insn): Strengthen return type and local "insn" from rtx
12072         to rtx_insn *.
12073         (emit_label): Strengthen return type from rtx to rtx_insn *.  Add
12074         a checked cast to rtx_insn * for now on "label".
12075         (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
12076         (emit_clobber): Strengthen return type from rtx to rtx_insn *.
12077         (emit_use): Likewise.
12078         (gen_use): Likewise, also for local "seq".
12079         (emit): Likewise for return type and local "insn".
12080         (rtx_insn): Likewise for return type and local "new_rtx".
12081
12082         * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
12083         from rtx to rtx_barrier *.
12084
12085         * config/sh/sh.c (output_stack_adjust): Since emit_insn has
12086         changed return type from rtx to rtx_insn *, we must update
12087         "emit_fn" type, and this in turn means updating...
12088         (frame_insn): ...this.  Strengthen return type from rtx to
12089         rtx_insn *.  Introduce a new local "insn" of the appropriate type.
12090
12091 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12092
12093         * emit-rtl.c (emit_jump_table_data): Strengthen return type from
12094         rtx to rtx_jump_table_data *.  Also for local.
12095         * rtl.h (emit_jump_table_data): Likewise.
12096
12097 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12098
12099         * basic-block.h (create_basic_block_structure): Strengthen third
12100         param "bb_note" from rtx to rtx_note *.
12101         * rtl.h (emit_note_before): Strengthen return type from rtx to
12102         rtx_note *.
12103         (emit_note_after): Likewise.
12104         (emit_note): Likewise.
12105         (emit_note_copy): Likewise.  Also, strengthen param similarly.
12106         * function.h (struct rtl_data): Strengthen field
12107         "x_stack_check_probe_note" from rtx to rtx_note *.
12108
12109         * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
12110         from rtx to rtx_note *.
12111         * cfgrtl.c (create_basic_block_structure): Strengthen third param
12112         "bb_note" from rtx to rtx_note *.
12113         (duplicate_insn_chain): Likewise for local "last".  Add a checked cast
12114         when calling emit_note_copy.
12115         * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
12116         rtx_note *.
12117         (emit_note_after): Likewise.
12118         (emit_note_before): Likewise.
12119         (emit_note_copy): Likewise.  Also, strengthen param similarly.
12120         (emit_note): Likewise.
12121         * except.c (emit_note_eh_region_end): Likewise for return type.
12122         Strengthen local "next" from rtx to rtx_insn *.
12123         (convert_to_eh_region_ranges): Strengthen local "note"
12124         from rtx to rtx_note *.
12125         * final.c (change_scope): Likewise.
12126         (reemit_insn_block_notes): Likewise, for both locals named "note".
12127         Also, strengthen local "insn" from rtx to rtx_insn *.
12128         * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
12129         rtx to rtx_note *.
12130         * reg-stack.c (compensate_edge): Likewise for local "after". Also,
12131         strengthen local "seq" from rtx to rtx_insn *.
12132         * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
12133         to rtx_note *.
12134         * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
12135         vec<rtx_note *>.
12136         (get_bb_note_from_pool): Strengthen return type from rtx to
12137         rtx_note *.
12138         (sel_create_basic_block): Strengthen local "new_bb_note" from
12139         insn_t to rtx_note *.
12140         * var-tracking.c (emit_note_insn_var_location): Strengthen local
12141         "note" from rtx to rtx_note *.
12142         (emit_notes_in_bb): Likewise.
12143
12144 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12145
12146         * function.h (struct rtl_data): Strengthen field
12147         "x_parm_birth_insn" from rtx to rtx_insn *.
12148         * function.c (struct assign_parm_data_all): Strengthen fields
12149         "first_conversion_insn" and "last_conversion_insn" from rtx to
12150         rtx_insn *.
12151
12152 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12153
12154         * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
12155         to rtx_insn *; also for local "var_end_seq".
12156         (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
12157         (maybe_cleanup_end_of_block): Likewise for param "last" and local
12158         "insn".
12159         (expand_gimple_cond): Likewise for locals "last2" and "last".
12160         (mark_transaction_restart_calls): Likewise for local "insn".
12161         (expand_gimple_stmt): Likewise for return type and locals "last"
12162         and "insn".
12163         (expand_gimple_tailcall): Likewise for locals "last2" and "last".
12164         (avoid_complex_debug_insns): Likewise for param "insn".
12165         (expand_debug_locations): Likewise for locals "insn", "last",
12166         "prev_insn" and "insn2".
12167         (expand_gimple_basic_block): Likewise for local "last".
12168         (construct_exit_block): Likewise for locals "head", "end",
12169         "orig_end".
12170         (pass_expand::execute): Likewise for locals "var_seq",
12171         "var_ret_seq", "next".
12172
12173 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12174
12175         * asan.h (asan_emit_stack_protection): Strengthen return type from
12176         rtx to rtx_insn *.
12177         * asan.c (asan_emit_stack_protection): Likewise.  Add local
12178         "insns" to hold the return value.
12179
12180 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12181
12182         * basic-block.h (bb_note): Strengthen return type from rtx to
12183         rtx_note *.
12184         * sched-int.h (bb_note): Likewise.
12185         * cfgrtl.c (bb_note): Likewise.  Add a checked cast to rtx_note *.
12186
12187 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12188
12189         * rtl.h (make_insn_raw): Strengthen return type from rtx to
12190         rtx_insn *.
12191
12192         * emit-rtl.c (make_insn_raw): Strengthen return type and local
12193         "insn" from rtx to rtx_insn *.
12194         (make_debug_insn_raw): Strengthen return type from rtx to
12195         rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
12196         (make_jump_insn_raw):  Strengthen return type from rtx to
12197         rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
12198         (make_call_insn_raw):  Strengthen return type from rtx to
12199         rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
12200         (emit_pattern_before_noloc): Strengthen return type of "make_raw"
12201         callback from rtx to rtx_insn *; likewise for local "insn" and
12202         "next", adding a checked cast to rtx_insn in the relevant cases of
12203         the switch statement.
12204         (emit_pattern_after_noloc): Strengthen return type of "make_raw"
12205         callback from rtx to rtx_insn *.
12206         (emit_pattern_after_setloc): Likewise.
12207         (emit_pattern_after): Likewise.
12208         (emit_pattern_before_setloc): Likewise.
12209         (emit_pattern_before): Likewise.
12210
12211 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12212
12213         * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
12214         rtx_call_insn *.
12215         * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
12216         accepting an rtx_insn *.
12217         (last_call_insn): Strengthen return type from rtx to
12218         rtx_call_insn *.
12219
12220 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12221
12222         * rtl.h (delete_trivially_dead_insns): Strengthen initial param
12223         "insns" from rtx to rtx_insn *.
12224         * cse.c (delete_trivially_dead_insns): Likewise, also do it for
12225         locals "insn" and "prev".
12226
12227 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12228
12229         * rtl.h (tablejump_p): Strengthen third param from rtx * to
12230         rtx_jump_table_data **.
12231
12232         * cfgbuild.c (make_edges): Introduce local "table", using it in
12233         place of "tmp" for jump table data.
12234         (find_bb_boundaries): Strengthen local "table" from rtx to
12235         rtx_jump_table_data *.
12236         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
12237         (outgoing_edges_match): Likewise for locals "table1" and "table2".
12238         (try_crossjump_to_edge): Likewise.
12239         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
12240         "table".
12241         (patch_jump_insn): Introduce local "table", using it in place of
12242         "tmp" for jump table data.
12243         (force_nonfallthru_and_redirect): Introduce local "table", so that
12244         call to tablejump_p can receive an rtx_jump_table_data **.  Update
12245         logic around the call to overwrite "note" appropriately if
12246         tablejump_p returns non-zero.
12247         (get_last_bb_insn): Introduce local "table", using it in place of
12248         "tmp" for jump table data.
12249         * dwarf2cfi.c (create_trace_edges): Likewise.
12250
12251         * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
12252         from rtx to rtx_jump_table_data *.
12253         (create_fix_barrier): Strengthen local "tmp" from rtx to
12254         rtx_jump_table_data *.
12255         (arm_reorg): Likewise for local "table".
12256
12257         * config/s390/s390.c (s390_chunkify_start): Likewise.
12258
12259         * config/spu/spu.c (spu_emit_branch_hint): Likewise.
12260
12261         * jump.c (delete_related_insns): Strengthen local "lab_next" from
12262         rtx to rtx_jump_table_data *.
12263
12264         * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
12265         rtx_jump_table_data **.  Add a checked cast when writing through
12266         the pointer: we know there that local "table" is non-NULL and that
12267         JUMP_TABLE_DATA_P (table) holds.
12268         (label_is_jump_target_p): Introduce local "table", using it in
12269         place of "tmp" for jump table data.
12270
12271 2014-08-19  Marek Polacek  <polacek@redhat.com>
12272
12273         PR c++/62153
12274         * doc/invoke.texi: Document -Wbool-compare.
12275
12276 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12277
12278         * rtl.h (entry_of_function): Strengthen return type from rtx to
12279         rtx_insn *.
12280         * cfgrtl.c (entry_of_function): Likewise.
12281
12282 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12283
12284         * emit-rtl.h (get_insns): Strengthen return type from rtx to
12285         rtx_insn *, adding a checked cast for now.
12286         (get_last_insn): Likewise.
12287
12288 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12289
12290         * rtl.h (gen_label_rtx): Strengthen return type from rtx to
12291         rtx_code_label *.
12292
12293         * emit-rtl.c (gen_label_rtx): Likewise.
12294
12295 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12296
12297         * rtl.h (previous_insn): Strengthen return type from rtx to
12298         rtx_insn *.
12299         (next_insn): Likewise.
12300         (prev_nonnote_insn): Likewise.
12301         (prev_nonnote_insn_bb): Likewise.
12302         (next_nonnote_insn): Likewise.
12303         (next_nonnote_insn_bb): Likewise.
12304         (prev_nondebug_insn): Likewise.
12305         (next_nondebug_insn): Likewise.
12306         (prev_nonnote_nondebug_insn): Likewise.
12307         (next_nonnote_nondebug_insn): Likewise.
12308         (prev_real_insn): Likewise.
12309         (next_real_insn): Likewise.
12310         (prev_active_insn): Likewise.
12311         (next_active_insn): Likewise.
12312
12313         * emit-rtl.c (next_insn): Strengthen return type from rtx to
12314         rtx_insn *, adding a checked cast.
12315         (previous_insn): Likewise.
12316         (next_nonnote_insn): Likewise.
12317         (next_nonnote_insn_bb): Likewise.
12318         (prev_nonnote_insn): Likewise.
12319         (prev_nonnote_insn_bb): Likewise.
12320         (next_nondebug_insn): Likewise.
12321         (prev_nondebug_insn): Likewise.
12322         (next_nonnote_nondebug_insn): Likewise.
12323         (prev_nonnote_nondebug_insn): Likewise.
12324         (next_real_insn): Likewise.
12325         (prev_real_insn): Likewise.
12326         (next_active_insn): Likewise.
12327         (prev_active_insn): Likewise.
12328
12329         * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
12330         param "stepfunc" so that it returns an rtx_insn * rather than an
12331         rtx, to track the change to prev_nonnote_insn_bb, which is the
12332         only function this is called with.
12333         * config/sh/sh.c (sh_find_set_of_reg): Likewise.
12334
12335 2014-08-19  Jan Hubicka  <hubicka@ucw.cz>
12336
12337         * ipa-visibility.c (update_visibility_by_resolution_info): Fix
12338         assert.
12339
12340 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12341
12342         * coretypes.h (class rtx_debug_insn): Add forward declaration.
12343         (class rtx_nonjump_insn): Likewise.
12344         (class rtx_jump_insn): Likewise.
12345         (class rtx_call_insn): Likewise.
12346         (class rtx_jump_table_data): Likewise.
12347         (class rtx_barrier): Likewise.
12348         (class rtx_code_label): Likewise.
12349         (class rtx_note): Likewise.
12350
12351         * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
12352         adding the invariant DEBUG_INSN_P (X).
12353         (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
12354         the invariant NONJUMP_INSN_P (X).
12355         (class rtx_jump_insn): New, a subclass of rtx_insn, adding
12356         the invariant JUMP_P (X).
12357         (class rtx_call_insn): New, a subclass of rtx_insn, adding
12358         the invariant CALL_P (X).
12359         (class rtx_jump_table): New, a subclass of rtx_insn, adding the
12360         invariant JUMP_TABLE_DATA_P (X).
12361         (class rtx_barrier): New, a subclass of rtx_insn, adding the
12362         invariant BARRIER_P (X).
12363         (class rtx_code_label): New, a subclass of rtx_insn, adding
12364         the invariant LABEL_P (X).
12365         (class rtx_note): New, a subclass of rtx_insn, adding
12366         the invariant NOTE_P(X).
12367         (is_a_helper <rtx_debug_insn *>::test): New.
12368         (is_a_helper <rtx_nonjump_insn *>::test): New.
12369         (is_a_helper <rtx_jump_insn *>::test): New.
12370         (is_a_helper <rtx_call_insn *>::test): New.
12371         (is_a_helper <rtx_jump_table_data *>::test): New functions,
12372         overloaded for both rtx and rtx_insn *.
12373         (is_a_helper <rtx_barrier *>::test): New.
12374         (is_a_helper <rtx_code_label *>::test): New functions, overloaded
12375         for both rtx and rtx_insn *.
12376         (is_a_helper <rtx_note *>::test): New.
12377
12378 2014-08-19  Marek Polacek  <polacek@redhat.com>
12379
12380         * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
12381         CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
12382         * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
12383         CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
12384
12385 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12386
12387         * sel-sched-ir.h (BND_TO): insn_t will eventually be an
12388         rtx_insn *.  To help with transition, for now, convert from an
12389         access macro into a pair of functions: BND_TO, returning an
12390         rtx_insn *, and...
12391         (SET_BND_TO): New function, for use where BND_TO is used as an
12392         lvalue.
12393
12394         * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
12395         SET_BND_TO.
12396         (BND_TO): New function, adding a checked cast.
12397         (SET_BND_TO): New function.
12398
12399         * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
12400         SET_BND_TO.
12401         (compute_av_set_on_boundaries): Likewise.
12402
12403 2014-08-19  H.J. Lu  <hongjiu.lu@intel.com>
12404
12405         * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
12406         destination if it is used in source.
12407         (*clz<mode>2_lzcnt_falsedep_1): Likewise.
12408         (*popcount<mode>2_falsedep_1): Likewise.
12409
12410 2014-08-19  H.J. Lu  <hongjiu.lu@intel.com>
12411
12412         PR other/62168
12413         * configure.ac: Set install_gold_as_default to no first.
12414         * configure: Regenerated.
12415
12416 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12417
12418         * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
12419         "note_list" field will eventually be an rtx_insn *.  To help with
12420         transition, for now, convert from an access macro into a pair of
12421         functions: BB_NOTE_LIST, returning an rtx_insn *, and...
12422         (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
12423         used as an lvalue.
12424
12425         * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
12426         of BB_NOTE_LIST to SET_BB_NOTE_LIST.
12427
12428         * sel-sched-ir.c (init_bb): Likewise.
12429         (sel_restore_notes): Likewise.
12430         (move_bb_info): Likewise.
12431         (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
12432         (SET_BB_NOTE_LIST): New function.
12433
12434 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12435
12436         * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
12437         field will eventually be an rtx_insn *.  To help with transition,
12438         for now, convert from an access macro into a pair of functions:
12439         VINSN_INSN_RTX, returning an rtx_insn *, and...
12440         (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
12441         is used as an lvalue.
12442
12443         * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
12444         SET_VINSN_INSN_RTX where it's used as an lvalue.
12445         (VINSN_INSN_RTX): New function.
12446         (SET_VINSN_INSN_RTX): New function.
12447
12448 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12449
12450         * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
12451         eventually be rtx_insn *, but to help with transition, for now,
12452         convert from an access macro into a pair of functions: DEP_PRO
12453         returning an rtx_insn * and...
12454         (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
12455         lvalue, returning an rtx&.
12456         (DEP_CON): Analogous changes to DEP_PRO above.
12457         (SET_DEP_CON): Likewise.
12458
12459         * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
12460         an lvalue to SET_DEP_CON.
12461         * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
12462         (sd_copy_back_deps): Likewise for DEP_CON.
12463         (DEP_PRO): New function, adding a checked cast for now.
12464         (DEP_CON): Likewise.
12465         (SET_DEP_PRO): New function.
12466         (SET_DEP_CON): Likewise.
12467
12468 2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
12469
12470         * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
12471         (extra_options): Add i386/cygwin.opt.
12472         * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
12473         (CPP_SPEC): Accept -pthread.
12474         (LINK_SPEC): Ditto.
12475         (GOMP_SELF_SPECS): Update comment.
12476         * config/i386/cygwin.opt: New file for -pthread flag.
12477
12478 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12479
12480         * df-core.c (DF_REF_INSN): New, using a checked cast for now.
12481         * df.h (DF_REF_INSN): Convert from a macro to a function, so
12482         that we can return an rtx_insn *.
12483
12484 2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
12485
12486         * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
12487         when building executables, not DLLs.  Add --large-address-aware
12488         under the same conditions.
12489         * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
12490         when building executables, not DLLs.  Add --large-address-aware
12491         under the same conditions when using -m32.
12492
12493         * config/i386/cygwin-stdint.h: Throughout, make type
12494         definitions dependent on target architecture, not host.
12495
12496 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12497
12498         * rtl.h (PREV_INSN): Convert to an inline function.  Strengthen
12499         the return type from rtx to rtx_insn *,  which will enable various
12500         conversions in followup patches.  For now this is is done by a
12501         checked cast.
12502         (NEXT_INSN): Likewise.
12503         (SET_PREV_INSN): Convert to an inline function.  This is intended
12504         for use as an lvalue, and so returns an rtx& to allow in-place
12505         modification.
12506         (SET_NEXT_INSN): Likewise.
12507
12508 2014-07-08  Mark Wielaard  <mjw@redhat.com>
12509
12510         PR debug/59051
12511         * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
12512
12513 2014-08-19  Marek Polacek  <polacek@redhat.com>
12514
12515         PR c/61271
12516         * cgraphunit.c (handle_alias_pairs): Fix condition.
12517
12518 2014-08-19  Richard Biener  <rguenther@suse.de>
12519
12520         * gimple-fold.c (fold_gimple_assign): Properly build a
12521         null-pointer constant when devirtualizing addresses.
12522
12523 2014-07-07  Mark Wielaard  <mjw@redhat.com>
12524
12525         * dwarf2out.c (decl_quals): New function.
12526         (modified_type_die): Take one cv_quals argument instead of two,
12527         one for const and one for volatile.
12528         (add_type_attribute): Likewise.
12529         (generic_parameter_die): Call add_type_attribute with one modifier
12530         argument.
12531         (base_type_for_mode): Likewise.
12532         (add_bounds_info): Likewise.
12533         (add_subscript_info): Likewise.
12534         (gen_array_type_die): Likewise.
12535         (gen_descr_array_type_die): Likewise.
12536         (gen_entry_point_die): Likewise.
12537         (gen_enumeration_type_die): Likewise.
12538         (gen_formal_parameter_die): Likewise.
12539         (gen_subprogram_die): Likewise.
12540         (gen_variable_die): Likewise.
12541         (gen_const_die): Likewise.
12542         (gen_field_die): Likewise.
12543         (gen_pointer_type_die): Likewise.
12544         (gen_reference_type_die): Likewise.
12545         (gen_ptr_to_mbr_type_die): Likewise.
12546         (gen_inheritance_die): Likewise.
12547         (gen_subroutine_type_die): Likewise.
12548         (gen_typedef_die): Likewise.
12549         (force_type_die): Likewise.
12550
12551 2014-08-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12552
12553         * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
12554         if unset.
12555         * configure: Regenerate.
12556
12557 2014-08-19  Richard Biener  <rguenther@suse.de>
12558
12559         * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
12560         DECL_EXTERNALs in BLOCKs as non-references.
12561         * tree-streamer-out.c (streamer_write_chain): Likewise.
12562
12563 2014-08-19  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12564             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12565             Anna Tikhonova  <anna.tikhonova@intel.com>
12566             Ilya Tocar  <ilya.tocar@intel.com>
12567             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12568             Ilya Verbin  <ilya.verbin@intel.com>
12569             Kirill Yukhin  <kirill.yukhin@intel.com>
12570             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12571
12572         * config/i386/sse.md
12573         (define_mode_iterator VI48_AVX512F): Delete.
12574         (define_mode_iterator VI48_AVX512F_AVX512VL): New.
12575         (define_mode_iterator VI2_AVX512VL): Ditto.
12576         (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
12577         Delete.
12578         (define_insn
12579         ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
12580         New.
12581         (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
12582         (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
12583         (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
12584         with VI48_AVX512F_AVX512VL): New.
12585         (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
12586         with VI2_AVX512VL): Ditto.
12587
12588 2014-08-19  Marek Polacek  <polacek@redhat.com>
12589
12590         * doc/invoke.texi: Document -Wc99-c11-compat.
12591
12592 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12593
12594         * rtl.h (PREV_INSN): Split macro in two: the existing one,
12595         for rvalues, and...
12596         (SET_PREV_INSN): New macro, for use as an lvalue.
12597         (NEXT_INSN, SET_NEXT_INSN): Likewise.
12598
12599         * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
12600         PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
12601         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
12602         (fixup_abnormal_edges): Likewise.
12603         (unlink_insn_chain): Likewise.
12604         (fixup_reorder_chain): Likewise.
12605         (cfg_layout_delete_block): Likewise.
12606         (cfg_layout_merge_blocks): Likewise.
12607         * combine.c (update_cfg_for_uncondjump): Likewise.
12608         * emit-rtl.c (link_insn_into_chain): Likewise.
12609         (remove_insn): Likewise.
12610         (delete_insns_since): Likewise.
12611         (reorder_insns_nobb): Likewise.
12612         (emit_insn_after_1): Likewise.
12613         * final.c (rest_of_clean_state): Likewise.
12614         (final_scan_insn): Likewise.
12615         * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
12616         * haifa-sched.c (concat_note_lists): Likewise.
12617         (remove_notes): Likewise.
12618         (restore_other_notes): Likewise.
12619         (move_insn): Likewise.
12620         (unlink_bb_notes): Likewise.
12621         (restore_bb_notes): Likewise.
12622         * jump.c (delete_for_peephole): Likewise.
12623         * optabs.c (emit_libcall_block_1): Likewise.
12624         * reorg.c (emit_delay_sequence): Likewise.
12625         (fill_simple_delay_slots): Likewise.
12626         * sel-sched-ir.c (sel_move_insn): Likewise.
12627         (sel_remove_insn): Likewise.
12628         (get_bb_note_from_pool): Likewise.
12629         * sel-sched.c (move_nop_to_previous_block): Likewise.
12630
12631         * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
12632         * config/c6x/c6x.c (gen_one_bundle): Likewise.
12633         (c6x_gen_bundles): Likewise.
12634         (hwloop_optimize): Likewise.
12635         * config/frv/frv.c (frv_function_prologue): Likewise.
12636         (frv_register_nop): Likewise.
12637         * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
12638         (ia64_reorg): Likewise.
12639         * config/mep/mep.c (mep_reorg_addcombine): Likewise.
12640         (mep_make_bundle): Likewise.
12641         (mep_bundle_insns): Likewise.
12642         * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
12643         * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
12644         * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
12645
12646 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12647
12648         * basic-block.h (BB_HEAD): Convert to a function.  Strengthen the
12649         return type from rtx to rtx_insn *.
12650         (BB_END): Likewise.
12651         (BB_HEADER): Likewise.
12652         (BB_FOOTER): Likewise.
12653         (SET_BB_HEAD): Convert to a function.
12654         (SET_BB_END): Likewise.
12655         (SET_BB_HEADER): Likewise.
12656         (SET_BB_FOOTER): Likewise.
12657
12658         * cfgrtl.c (BB_HEAD): New function, from macro of same name.
12659         Strengthen the return type from rtx to rtx_insn *.  For now, this
12660         is done by adding a checked cast, but this will eventually
12661         become a field lookup.
12662         (BB_END): Likewise.
12663         (BB_HEADER): Likewise.
12664         (BB_FOOTER): Likewise.
12665         (SET_BB_HEAD): New function, from macro of same name.  This is
12666         intended for use as an lvalue, and so returns an rtx& to allow
12667         in-place modification.
12668         (SET_BB_END): Likewise.
12669         (SET_BB_HEADER): Likewise.
12670         (SET_BB_FOOTER): Likewise.
12671
12672 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
12673
12674         * basic-block.h (BB_HEAD): Split macro in two: the existing one,
12675         for rvalues, and...
12676         (SET_BB_HEAD): New macro, for use as a lvalue.
12677         (BB_END, SET_BB_END): Likewise.
12678         (BB_HEADER, SET_BB_HEADER): Likewise.
12679         (BB_FOOTER, SET_BB_FOOTER): Likewise.
12680
12681         * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
12682         of BB_* macros into SET_BB_* macros.
12683         (fix_crossing_unconditional_branches): Likewise.
12684         * caller-save.c (save_call_clobbered_regs): Likewise.
12685         (insert_one_insn): Likewise.
12686         * cfgbuild.c (find_bb_boundaries): Likewise.
12687         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
12688         (outgoing_edges_match): Likewise.
12689         (try_optimize_cfg): Likewise.
12690         * cfgexpand.c (expand_gimple_cond): Likewise.
12691         (expand_gimple_tailcall): Likewise.
12692         (expand_gimple_basic_block): Likewise.
12693         (construct_exit_block): Likewise.
12694         * cfgrtl.c (delete_insn): Likewise.
12695         (create_basic_block_structure): Likewise.
12696         (rtl_delete_block): Likewise.
12697         (rtl_split_block): Likewise.
12698         (emit_nop_for_unique_locus_between): Likewise.
12699         (rtl_merge_blocks): Likewise.
12700         (block_label): Likewise.
12701         (try_redirect_by_replacing_jump): Likewise.
12702         (emit_barrier_after_bb): Likewise.
12703         (fixup_abnormal_edges): Likewise.
12704         (record_effective_endpoints): Likewise.
12705         (relink_block_chain): Likewise.
12706         (fixup_reorder_chain): Likewise.
12707         (fixup_fallthru_exit_predecessor): Likewise.
12708         (cfg_layout_duplicate_bb): Likewise.
12709         (cfg_layout_split_block): Likewise.
12710         (cfg_layout_delete_block): Likewise.
12711         (cfg_layout_merge_blocks): Likewise.
12712         * combine.c (update_cfg_for_uncondjump): Likewise.
12713         * emit-rtl.c (add_insn_after): Likewise.
12714         (remove_insn): Likewise.
12715         (reorder_insns): Likewise.
12716         (emit_insn_after_1): Likewise.
12717         * haifa-sched.c (get_ebb_head_tail): Likewise.
12718         (restore_other_notes): Likewise.
12719         (move_insn): Likewise.
12720         (sched_extend_bb): Likewise.
12721         (fix_jump_move): Likewise.
12722         * ifcvt.c (noce_process_if_block): Likewise.
12723         (dead_or_predicable): Likewise.
12724         * ira.c (update_equiv_regs): Likewise.
12725         * reg-stack.c (change_stack): Likewise.
12726         * sel-sched-ir.c (sel_move_insn): Likewise.
12727         * sel-sched.c (move_nop_to_previous_block): Likewise.
12728
12729         * config/c6x/c6x.c (hwloop_optimize): Likewise.
12730         * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
12731
12732 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
12733
12734         * rtl.h (for_each_rtx_in_insn): New function.
12735         * rtlanal.c (for_each_rtx_in_insn): Likewise.
12736
12737 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
12738
12739         * coretypes.h (class rtx_insn): Add forward declaration.
12740
12741         * rtl.h: Include is-a.h.
12742         (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
12743         workaround to ensure gengtype knows inheritance is occurring,
12744         whilst continuing to use the pre-existing special-casing for
12745         rtx_def.
12746         (class rtx_insn): New subclass of rtx_def, adding the
12747         invariant that we're dealing with something we can sanely use
12748         INSN_UID, NEXT_INSN, PREV_INSN on.
12749         (is_a_helper <rtx_insn *>::test): New.
12750         (is_a_helper <const rtx_insn *>::test): New.
12751
12752 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
12753
12754         * is-a.h (template<T, U> safe_as_a <U *p>) New function.
12755
12756 2014-08-18  Jan Hubicka  <hubicka@ucw.cz>
12757
12758         * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
12759         comdats as extern.
12760
12761 2014-08-18  Jan Hubicka  <hubicka@ucw.cz>
12762
12763         * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
12764         to BUILT_IN_UNREACHABLE.
12765
12766 2014-08-18  Uros Bizjak  <ubizjak@gmail.com>
12767
12768         PR target/62011
12769         * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
12770         New tune flag.
12771         * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
12772         * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
12773         (ffs<mode>2): Do not expand with tzcnt for
12774         TARGET_AVOID_FALSE_DEP_FOR_BMI.
12775         (ffssi2_no_cmove): Ditto.
12776         (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
12777         (ctz<mode>2): New expander.
12778         (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
12779         (*ctz<mode>2_falsedep): New insn.
12780         (*ctz<mode>2): Rename from ctz<mode>2.
12781         (clz<mode>2_lzcnt): New expander.
12782         (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
12783         (*clz<mode>2_lzcnt_falsedep): New insn.
12784         (*clz<mode>2): Rename from ctz<mode>2.
12785         (popcount<mode>2): New expander.
12786         (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
12787         (*popcount<mode>2_falsedep): New insn.
12788         (*popcount<mode>2): Rename from ctz<mode>2.
12789         (*popcount<mode>2_cmp): Remove.
12790         (*popcountsi2_cmp_zext): Ditto.
12791
12792 2014-08-18  Ajit Agarwal  <ajitkum@xilinx.com>
12793
12794         * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
12795         (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
12796         * config/microblaze/microblaze.h
12797         (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
12798
12799 2014-08-18  H.J. Lu  <hongjiu.lu@intel.com>
12800
12801         PR other/62168
12802         * configure.ac: Set install_gold_as_default to no for
12803          --enable-gold=no.
12804          * configure: Regenerated.
12805
12806 2014-08-18 Roman Gareev  <gareevroman@gmail.com>
12807
12808         * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
12809         * config.in: Add undef of HAVE_isl.
12810         * configure: Regenerate.
12811         * configure.ac: Add definition of HAVE_isl.
12812         * graphite-blocking.c: Add checking of HAVE_isl.
12813         * graphite-dependences.c: Likewise.
12814         * graphite-interchange.c: Likewise.
12815         * graphite-isl-ast-to-gimple.c: Likewise.
12816         * graphite-optimize-isl.c: Likewise.
12817         * graphite-poly.c: Likewise.
12818         * graphite-scop-detection.c: Likewise.
12819         * graphite-sese-to-poly.c: Likewise.
12820         * graphite.c: Likewise.
12821         * toplev.c: Replace the checking of HAVE_cloog with the checking
12822         of HAVE_isl.
12823
12824 2014-08-18  Richard Biener  <rguenther@suse.de>
12825
12826         PR tree-optimization/62090
12827         * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
12828         (fold_builtin_3): Do not fold snprintf.
12829         (fold_builtin_4): Likewise.
12830         * gimple-fold.c (gimple_fold_builtin_snprintf): New function
12831         moved from builtins.c.
12832         (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
12833         (gimple_fold_builtin): Do not fold sprintf here.
12834
12835 2014-08-18  Richard Biener  <rguenther@suse.de>
12836
12837         * gimple-fold.c (maybe_fold_reference): Move re-gimplification
12838         code to ...
12839         (maybe_canonicalize_mem_ref_addr): ... this function.
12840         (fold_stmt_1): Apply it here before all simplification.
12841
12842 2014-08-18  Ilya Enkovich  <ilya.enkovich@intel.com>
12843
12844         PR ipa/61800
12845         * cgraph.h (cgraph_node::create_indirect_edge): Add
12846         compute_indirect_info param.
12847         * cgraph.c (cgraph_node::create_indirect_edge): Compute
12848         indirect_info only when it is required.
12849         * cgraphclones.c (cgraph_clone_edge): Do not recompute
12850         indirect_info fore cloned indirect edge.
12851
12852 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12853             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12854             Anna Tikhonova  <anna.tikhonova@intel.com>
12855             Ilya Tocar  <ilya.tocar@intel.com>
12856             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12857             Ilya Verbin  <ilya.verbin@intel.com>
12858             Kirill Yukhin  <kirill.yukhin@intel.com>
12859             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12860
12861         * config/i386/sse.md
12862         (define_mode_iterator VI8_AVX2_AVX512BW): New.
12863         (define_insn "<sse2_avx2>_psadbw"): Add evex version.
12864
12865 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12866             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12867             Anna Tikhonova  <anna.tikhonova@intel.com>
12868             Ilya Tocar  <ilya.tocar@intel.com>
12869             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12870             Ilya Verbin  <ilya.verbin@intel.com>
12871             Kirill Yukhin  <kirill.yukhin@intel.com>
12872             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12873
12874         * config/i386/sse.md
12875         (define_mode_iterator VF1_AVX512VL): New.
12876         (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
12877         (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
12878         New.
12879
12880 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12881             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12882             Anna Tikhonova  <anna.tikhonova@intel.com>
12883             Ilya Tocar  <ilya.tocar@intel.com>
12884             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12885             Ilya Verbin  <ilya.verbin@intel.com>
12886             Kirill Yukhin  <kirill.yukhin@intel.com>
12887             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12888
12889         * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
12890         * config/i386/i386.md
12891         (define_code_iterator any_float): New.
12892         (define_code_attr floatsuffix): New.
12893         * config/i386/sse.md
12894         (define_mode_iterator VF1_128_256VL): New.
12895         (define_mode_iterator VF2_512_256VL): New.
12896         (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
12897         TARGET check.
12898         (define_insn "ufloatv8siv8df<mask_name>"): Delete.
12899         (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
12900         New.
12901         (define_mode_attr qq2pssuff): New.
12902         (define_mode_attr sselongvecmode): New.
12903         (define_mode_attr sselongvecmodelower): New.
12904         (define_mode_attr sseintvecmode3): New.
12905         (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
12906         New.
12907         (define_insn "*<floatsuffix>floatv2div2sf2"): New.
12908         (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
12909         (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
12910         (define_insn "ufloatv2siv2df2<mask_name>"): New.
12911
12912 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12913             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12914             Anna Tikhonova  <anna.tikhonova@intel.com>
12915             Ilya Tocar  <ilya.tocar@intel.com>
12916             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12917             Ilya Verbin  <ilya.verbin@intel.com>
12918             Kirill Yukhin  <kirill.yukhin@intel.com>
12919             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12920
12921         * config/i386/sse.md
12922         (define_mode_iterator VF2_AVX512VL): New.
12923         (define_mode_attr sseintvecmode2): New.
12924         (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
12925         (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
12926         (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
12927         (define_insn
12928         "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
12929         Ditto.
12930         (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
12931         Ditto.
12932         (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
12933         Ditto.
12934
12935 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12936             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12937             Anna Tikhonova  <anna.tikhonova@intel.com>
12938             Ilya Tocar  <ilya.tocar@intel.com>
12939             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12940             Ilya Verbin  <ilya.verbin@intel.com>
12941             Kirill Yukhin  <kirill.yukhin@intel.com>
12942             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12943
12944         * config/i386/i386.md
12945         (define_insn "*movoi_internal_avx"): Add evex version.
12946         (define_insn "*movti_internal"): Ditto.
12947
12948 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12949             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12950             Anna Tikhonova  <anna.tikhonova@intel.com>
12951             Ilya Tocar  <ilya.tocar@intel.com>
12952             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12953             Ilya Verbin  <ilya.verbin@intel.com>
12954             Kirill Yukhin  <kirill.yukhin@intel.com>
12955             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12956
12957         * config/i386/i386.md
12958         (define_attr "isa"): Add avx512dq, noavx512dq.
12959         (define_attr "enabled"): Ditto.
12960         * config/i386/sse.md
12961         (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
12962
12963 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12964             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12965             Anna Tikhonova  <anna.tikhonova@intel.com>
12966             Ilya Tocar  <ilya.tocar@intel.com>
12967             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12968             Ilya Verbin  <ilya.verbin@intel.com>
12969             Kirill Yukhin  <kirill.yukhin@intel.com>
12970             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12971
12972         * config/i386/i386.c
12973         (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
12974         avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
12975         avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
12976         avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
12977         avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
12978         avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
12979         avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
12980         avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
12981         * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
12982         * config/i386/sse.md
12983         (define_mode_iterator VMOVE): Allow V4TI mode.
12984         (define_mode_iterator V_AVX512VL): New.
12985         (define_mode_iterator V): New handling for AVX512VL.
12986         (define_insn "avx512f_load<mode>_mask"): Delete.
12987         (define_insn "<avx512>_load<mode>_mask"): New.
12988         (define_insn "avx512f_store<mode>_mask"): Delete.
12989         (define_insn "<avx512>_store<mode>_mask"): New.
12990
12991
12992 2014-08-18  Yury Gribov  <y.gribov@samsung.com>
12993
12994         PR sanitizer/62089
12995         * asan.c (instrument_derefs): Fix bitfield check.
12996
12997 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
12998
12999         * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
13000         * config/rs6000/htm.md (ttest): Remove clobber.
13001         * config/rs6000/predicates.md (any_mask_operand): New predicate.
13002         (and_operand): Reformat.
13003         (and_2rld_operand): New predicate.
13004         * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
13005         parameter.
13006         * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
13007         parameter.  Handle AND directly.
13008         (rs6000_split_logical_di): Remove last parameter.
13009         (rs6000_split_logical): Remove last parameter.  Remove obsolete
13010         comment.
13011         * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
13012         (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
13013         (ctz<mode>2, ffs<mode>2): Delete clobber.  Reformat.
13014         (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
13015         *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
13016         and 5 anonymous splitters):  Delete.
13017         (and<mode>3): New expander.
13018         (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
13019         (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
13020         (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
13021         (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
13022         (floatdisf2_internal1): Remove clobbers.
13023         (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
13024         *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
13025         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
13026         (and<mode>3 for BOOL_128): Remove clobber.
13027         (*and<mode>3_internal for BOOL_128): Remove clobber.  Adjust call of
13028         rs6000_split_logical.
13029         (*bool<mode>3_internal for BOOL_128): Adjust call of
13030         rs6000_split_logical.
13031         (*boolc<mode>3_internal1 for BOOL_128,
13032         *boolc<mode>3_internal2 for BOOL_128,
13033         *boolcc<mode>3_internal1 for BOOL_128,
13034         *boolcc<mode>3_internal2 for BOOL_128,
13035         *eqv<mode>3_internal1 for BOOL_128,
13036         *eqv<mode>3_internal2 for BOOL_128,
13037         *one_cmpl<mode>3_internal for BOOL_128): Ditto.
13038         * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
13039         clobber.
13040         (*vec_reload_and_reg_<mptrsize>): Delete.
13041
13042 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
13043
13044         * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
13045         and split, *boolccsi3_internal3 and split): Delete.
13046         (*boolccdi3_internal1, *boolccdi3_internal2 and split,
13047         *boolccdi3_internal3 and split): Delete.
13048         (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
13049         (*eqv<mode>3): Move.  Add TODO comment.  Fix attributes.
13050
13051 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
13052
13053         * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
13054         and split, *boolcsi3_internal3 and split): Delete.
13055         (*boolcdi3_internal1, *boolcdi3_internal2 and split,
13056         *boolcdi3_internal3 and split): Delete.
13057         (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
13058
13059 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
13060
13061         * config/rs6000/rs6000.c (print_operand) <'e'>: New.
13062         <'u'>: Also support printing the low-order 16 bits.
13063         * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
13064         *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
13065         (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
13066         *booldi3_internal3 and split): Delete.
13067         (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
13068         *bool<mode>3_dot2): New.
13069         (two anonymous define_splits for non_logical_cint_operand): Merge.
13070
13071 2014-08-17  Marek Polacek  <polacek@redhat.com>
13072             Manuel López-Ibáñez  <manu@gcc.gnu.org>
13073
13074         PR c/62059
13075         * diagnostic.c (adjust_line): Add gcc_checking_assert.
13076         (diagnostic_show_locus): Don't print caret diagnostic
13077         if a column is larger than the line_width.
13078
13079 2014-08-17 Roman Gareev  <gareevroman@gmail.com>
13080
13081         * common.opt: Make the ISL AST generator to be the main code generator
13082         of Graphite.
13083
13084 2014-08-16  Gerald Pfeifer  <gerald@pfeifer.com>
13085
13086         * wide-int.h (generic_wide_int): Declare as class instead of struct.
13087
13088 2014-08-16  John David Anglin  <danglin@gcc.gnu.org>
13089
13090         PR target/61641
13091         * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
13092         Declare.
13093         * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
13094         (pa_output_addr_vec, pa_output_addr_diff_vec): New.
13095         * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
13096         Define.
13097         * config/pa/pa.md (begin_brtab): Delete insn.
13098         (end_brtab): Likewise.
13099
13100 2014-08-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13101
13102         * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
13103
13104 2014-08-15  Jan Hubicka  <hubicka@ucw.cz>
13105
13106         * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
13107         (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
13108         possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
13109         (get_dynamic_type): Remove.
13110         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
13111         (clear_speculation): Bring to ipa-deivrt.h
13112         (get_class_context): Rename to ...
13113         (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
13114         (contains_type_p): Update.
13115         (get_dynamic_type): Rename to ...
13116         ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
13117         (possible_polymorphic_call_targets): UPdate.
13118         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
13119         * ipa-prop.c (ipa_analyze_call_uses): Update.
13120
13121 2014-08-15  Oleg Endo  <olegendo@gcc.gnu.org>
13122
13123         * doc/invoke.texi (SH options): Document missing processor variant
13124         options.  Remove references to Hitachi.  Undocument deprecated mspace
13125         option.
13126
13127 2014-08-15  Jason Merrill  <jason@redhat.com>
13128
13129         * tree.c (type_hash_canon): Uncomment assert.
13130
13131 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13132
13133         * input.h (in_system_header_at): Add comment.
13134
13135 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13136
13137         PR fortran/44054
13138         * diagnostic.c (build_message_string): Make it extern.
13139         * diagnostic.h (build_message_string): Make it extern.
13140
13141 2014-08-15  Vladimir Makarov  <vmakarov@redhat.com>
13142
13143         * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
13144         load/store from/to non-floating class pseudo.
13145
13146 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13147
13148         * input.c (diagnostic_file_cache_fini): Fix typo in comment.
13149
13150 2014-08-15  Richard Biener  <rguenther@suse.de>
13151
13152         * tree-ssa-structalias.c (readonly_id): Rename to string_id.
13153         (get_constraint_for_ssa_var): Remove dead code.
13154         (get_constraint_for_1): Adjust.
13155         (find_what_var_points_to): Likewise.
13156         (init_base_vars): Likewise.  STRING_CSTs do not contain pointers.
13157
13158 2014-08-15  Ilya Tocar  <tocarip@gmail.com>
13159
13160         PR target/61878
13161         * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
13162         (_mm512_mask_cmpge_epu32_mask): Ditto.
13163         (_mm512_cmpge_epu32_mask): Ditto.
13164         (_mm512_mask_cmpge_epi64_mask): Ditto.
13165         (_mm512_cmpge_epi64_mask): Ditto.
13166         (_mm512_mask_cmpge_epu64_mask): Ditto.
13167         (_mm512_cmpge_epu64_mask): Ditto.
13168         (_mm512_mask_cmple_epi32_mask): Ditto.
13169         (_mm512_cmple_epi32_mask): Ditto.
13170         (_mm512_mask_cmple_epu32_mask): Ditto.
13171         (_mm512_cmple_epu32_mask): Ditto.
13172         (_mm512_mask_cmple_epi64_mask): Ditto.
13173         (_mm512_cmple_epi64_mask): Ditto.
13174         (_mm512_mask_cmple_epu64_mask): Ditto.
13175         (_mm512_cmple_epu64_mask): Ditto.
13176         (_mm512_mask_cmplt_epi32_mask): Ditto.
13177         (_mm512_cmplt_epi32_mask): Ditto.
13178         (_mm512_mask_cmplt_epu32_mask): Ditto.
13179         (_mm512_cmplt_epu32_mask): Ditto.
13180         (_mm512_mask_cmplt_epi64_mask): Ditto.
13181         (_mm512_cmplt_epi64_mask): Ditto.
13182         (_mm512_mask_cmplt_epu64_mask): Ditto.
13183         (_mm512_cmplt_epu64_mask): Ditto.
13184         (_mm512_mask_cmpneq_epi32_mask): Ditto.
13185         (_mm512_mask_cmpneq_epu32_mask): Ditto.
13186         (_mm512_cmpneq_epu32_mask): Ditto.
13187         (_mm512_mask_cmpneq_epi64_mask): Ditto.
13188         (_mm512_cmpneq_epi64_mask): Ditto.
13189         (_mm512_mask_cmpneq_epu64_mask): Ditto.
13190         (_mm512_cmpneq_epu64_mask): Ditto.
13191         (_mm512_castpd_ps): Ditto.
13192         (_mm512_castpd_si512): Ditto.
13193         (_mm512_castps_pd): Ditto.
13194         (_mm512_castps_si512): Ditto.
13195         (_mm512_castsi512_ps): Ditto.
13196         (_mm512_castsi512_pd): Ditto.
13197         (_mm512_castpd512_pd128): Ditto.
13198         (_mm512_castps512_ps128): Ditto.
13199         (_mm512_castsi512_si128): Ditto.
13200         (_mm512_castpd512_pd256): Ditto.
13201         (_mm512_castps512_ps256): Ditto.
13202         (_mm512_castsi512_si256): Ditto.
13203         (_mm512_castpd128_pd512): Ditto.
13204         (_mm512_castps128_ps512): Ditto.
13205         (_mm512_castsi128_si512): Ditto.
13206         (_mm512_castpd256_pd512): Ditto.
13207         (_mm512_castps256_ps512): Ditto.
13208         (_mm512_castsi256_si512): Ditto.
13209         (_mm512_cmpeq_epu32_mask): Ditto.
13210         (_mm512_mask_cmpeq_epu32_mask): Ditto.
13211         (_mm512_mask_cmpeq_epu64_mask): Ditto.
13212         (_mm512_cmpeq_epu64_mask): Ditto.
13213         (_mm512_cmpgt_epu32_mask): Ditto.
13214         (_mm512_mask_cmpgt_epu32_mask): Ditto.
13215         (_mm512_mask_cmpgt_epu64_mask): Ditto.
13216         (_mm512_cmpgt_epu64_mask): Ditto.
13217         * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
13218         V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
13219         * config/i386/i386.c (enum ix86_builtins): Add
13220         IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
13221         IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
13222         IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
13223         (bdesc_args): Add __builtin_ia32_si512_256si,
13224         __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
13225         __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
13226         __builtin_ia32_pd512_pd.
13227         (ix86_expand_args_builtin): Handle new FTYPEs.
13228         * config/i386/sse.md (castmode): Add 512-bit modes.
13229         (AVX512MODE2P): New.
13230         (avx512f_<castmode><avxsizesuffix>_<castmode): New.
13231         (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
13232
13233 2014-08-15  Richard Biener  <rguenther@suse.de>
13234
13235         * fold-const.c (tree_swap_operands_p): Put all constants
13236         last, also strip sign-changing NOPs when considering further
13237         canonicalization.  Canonicalize also when optimizing for size.
13238
13239 2014-08-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13240
13241         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
13242         one_match > zero_match case to just before simple_sequence.
13243
13244 2014-08-15  Richard Biener  <rguenther@suse.de>
13245
13246         * data-streamer.h (streamer_string_index, string_for_index):
13247         Remove.
13248         * data-streamer-out.c (streamer_string_index): Make static.
13249         * data-streamer-in.c (string_for_index): Likewise.
13250         * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
13251         * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
13252
13253 2014-08-15  Richard Biener  <rguenther@suse.de>
13254
13255         PR tree-optimization/62031
13256         * tree-data-ref.c (dr_analyze_indices): Do not set
13257         DR_UNCONSTRAINED_BASE.
13258         (dr_may_alias_p): All indirect accesses have to go the
13259         formerly DR_UNCONSTRAINED_BASE path.
13260         * tree-data-ref.h (struct indices): Remove
13261         unconstrained_base member.
13262         (DR_UNCONSTRAINED_BASE): Remove.
13263
13264 2014-08-15  Jakub Jelinek  <jakub@redhat.com>
13265
13266         PR middle-end/62092
13267         * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
13268         OMP_CLAUSE_SHARED for global vars if the global var is mentioned
13269         in OMP_CLAUSE_MAP in some outer target region.
13270
13271 2014-08-15  Bin Cheng  <bin.cheng@arm.com>
13272
13273         * tree-ssa-loop-ivopts.c (ivopts_data): New field
13274         name_expansion_cache.
13275         (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
13276         (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
13277         (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
13278         (difference_cannot_overflow_p): New parameter.  Use affine
13279         expansion for equality check.
13280         (iv_elimination_compare_lt): Pass new argument.
13281
13282 2014-08-14  DJ Delorie  <dj@redhat.com>
13283
13284         * config/rl78/rl78-real.md (addqi3_real): Allow adding global
13285         variables to the accumulator.
13286
13287         * config/rl78/predicates.md (rl78_near_mem_operand): New.
13288         * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
13289         (movhi_virt_mm): Split out near mem-mem moves to avoid problems
13290         with far-far moves.
13291
13292         * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
13293         * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
13294         (umulqihi3_virt): Likewise.
13295         * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
13296         (umulqihi3_real): Likewise.
13297
13298         * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
13299
13300 2014-08-14  Jan Hubicka  <hubicka@ucw.cz>
13301
13302         PR tree-optimization/62091
13303         * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
13304         function_entry_reached.
13305         (walk_aliased_vdefs): Clear it here.
13306         * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
13307
13308 2014-08-14  Jan Hubicka  <hubicka@ucw.cz>
13309
13310         * ipa-utils.h (compare_virtual_tables): Declare.
13311         * ipa-devirt.c (odr_subtypes_equivalent_p): New function
13312
13313 2014-08-14  Marek Polacek  <polacek@redhat.com>
13314
13315         DR 458
13316         * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
13317         (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
13318
13319 2014-08-14  Tom de Vries  <tom@codesourcery.com>
13320
13321         * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
13322
13323 2014-08-14  Tom de Vries  <tom@codesourcery.com>
13324
13325         PR rtl-optimization/62004
13326         PR rtl-optimization/62030
13327         * ifcvt.c (rtx_interchangeable_p): New function.
13328         (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
13329         * emit-rtl.h (mem_attrs_eq_p): Declare.
13330
13331 2014-08-14  Roman Gareev  <gareevroman@gmail.com>
13332
13333         * graphite-scop-detection.c:
13334         Add inclusion of cp-tree.h.
13335         (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
13336         in case they are pointers to object types
13337
13338 2014-08-14  Richard Biener  <rguenther@suse.de>
13339
13340         * BASE-VER: Change to 5.0.0
13341
13342 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13343             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13344             Anna Tikhonova  <anna.tikhonova@intel.com>
13345             Ilya Tocar  <ilya.tocar@intel.com>
13346             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13347             Ilya Verbin  <ilya.verbin@intel.com>
13348             Kirill Yukhin  <kirill.yukhin@intel.com>
13349             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13350
13351         * config/i386/sse.md (define_mode_attr avx512): New.
13352         (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
13353         V4DI modes.
13354         (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
13355         (define_mode_attr ssse3_avx2): Ditto.
13356         (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
13357         (define_mode_attr avx2_avx512bw): New.
13358         (define_mode_attr ssedoublemodelower): New.
13359         (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
13360         V32HI, V64QI modes.
13361         (define_mode_attr ssebytemode): Allow V8DI modes.
13362         (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
13363         (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
13364         (define_mode_attr ssePSmode2): New.
13365         (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
13366         V16HI, V32HI modes.
13367         (define_mode_attr dbpsadbwmode): New.
13368         (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
13369         V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
13370         (vi8_sse4_1_avx2_avx512): New.
13371         (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
13372         mode attribute.
13373         (define_mode_attr blendbits): Move before its immediate use.
13374
13375 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13376             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13377             Anna Tikhonova  <anna.tikhonova@intel.com>
13378             Ilya Tocar  <ilya.tocar@intel.com>
13379             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13380             Ilya Verbin  <ilya.verbin@intel.com>
13381             Kirill Yukhin  <kirill.yukhin@intel.com>
13382             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13383
13384         * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
13385         * config/i386/subst.md
13386         (define_mode_iterator SUBST_V): Update.
13387         (define_mode_iterator SUBST_A): Ditto.
13388         (define_subst_attr "mask_operand7"): New.
13389         (define_subst_attr "mask_operand10"): New.
13390         (define_subst_attr "mask_operand_arg34") : New.
13391         (define_subst_attr "mask_expand_op3"): New.
13392         (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
13393         (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
13394         (define_subst_attr "mask_avx512vl_condition"): New.
13395         (define_subst_attr "round_mask_operand4"): Ditto.
13396         (define_subst_attr "round_mask_scalar_op3"): Delete.
13397         (define_subst_attr "round_mask_op4"): New.
13398         (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
13399         V16SImode.
13400         (define_subst_attr "round_modev8sf_condition"): New.
13401         (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
13402         <MODE>mode.
13403         (define_subst_attr "round_saeonly_mask_operand4"): New.
13404         (define_subst_attr "round_saeonly_mask_op4"): New.
13405         (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
13406         V8DImode, V16SImode.
13407         (define_subst_attr "round_saeonly_modev8sf_condition"): New.
13408         (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
13409         (define_subst_attr "mask_expand4_args"): New.
13410         (define_subst "mask_expand4"): New.
13411
13412 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13413             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13414             Anna Tikhonova  <anna.tikhonova@intel.com>
13415             Ilya Tocar  <ilya.tocar@intel.com>
13416             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13417             Ilya Verbin  <ilya.verbin@intel.com>
13418             Kirill Yukhin  <kirill.yukhin@intel.com>
13419             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13420
13421         * config/i386/i386.md
13422         (define_attr "isa"): Add avx512bw,noavx512bw.
13423         (define_attr "enabled"): Ditto.
13424         (define_split): Add 32/64-bit mask logic.
13425         (define_insn "*k<logic>qi"): New.
13426         (define_insn "*k<logic>hi"): New.
13427         (define_insn "*anddi_1"): Add mask version.
13428         (define_insn "*andsi_1"): Ditto.
13429         (define_insn "*<code><mode>_1"): Ditto.
13430         (define_insn "*<code>hi_1"): Ditto.
13431         (define_insn "kxnor<mode>"): New.
13432         (define_insn "kunpcksi"): New.
13433         (define_insn "kunpckdi"): New.
13434         (define_insn "*one_cmpl<mode>2_1"): Add mask version.
13435         (define_insn "*one_cmplhi2_1"): Ditto.
13436
13437 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13438             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13439             Anna Tikhonova  <anna.tikhonova@intel.com>
13440             Ilya Tocar  <ilya.tocar@intel.com>
13441             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13442             Ilya Verbin  <ilya.verbin@intel.com>
13443             Kirill Yukhin  <kirill.yukhin@intel.com>
13444             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13445
13446         * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
13447         V32HImode.
13448
13449 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13450             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13451             Anna Tikhonova  <anna.tikhonova@intel.com>
13452             Ilya Tocar  <ilya.tocar@intel.com>
13453             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13454             Ilya Verbin  <ilya.verbin@intel.com>
13455             Kirill Yukhin  <kirill.yukhin@intel.com>
13456             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13457
13458         * config/i386/i386.c (print_reg): Ð¡orrectly print 64-bit mask
13459         registers.
13460         (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
13461         (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
13462         xmm/ymm16+ when availble.
13463         * config/i386/i386.h
13464         (HARD_REGNO_NREGS): Add mask regs.
13465         (VALID_AVX512F_REG_MODE): Ditto.
13466         (VALID_AVX512F_REG_MODE) : Define.
13467         (VALID_MASK_AVX512BW_MODE): Ditto.
13468         (reg_class) (MASK_REG_P(X)): Define.
13469         * config/i386/i386.md: Do not split long moves with mask register,
13470         use kmovb if avx512bw is availible.
13471         (movdi_internal): Handle mask registers.
13472
13473 2014-08-14  Richard Biener  <rguenther@suse.de>
13474
13475         PR tree-optimization/62081
13476         * tree-ssa-loop.c (pass_fix_loops): New pass.
13477         (pass_tree_loop::gate):  Do not fixup loops here.
13478         * tree-pass.h (make_pass_fix_loops): Declare.
13479         * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
13480
13481 2014-08-14  Richard Biener  <rguenther@suse.de>
13482
13483         * tree.c (type_hash_lookup, type_hash_add): Merge into ...
13484         (type_hash_canon): ... this and avoid 2nd lookup for the add.
13485
13486 2014-08-14  Richard Biener  <rguenther@suse.de>
13487
13488         PR tree-optimization/62090
13489         * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
13490         (fold_builtin_2): Do not fold sprintf.
13491         (fold_builtin_3): Likewise.
13492         * gimple-fold.c (gimple_fold_builtin_sprintf): New function
13493         moved from builtins.c.
13494         (gimple_fold_builtin): Fold sprintf.
13495
13496 2014-08-14  Richard Biener  <rguenther@suse.de>
13497
13498         PR rtl-optimization/62079
13499         * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
13500         run cleanup_cfg.
13501
13502 2014-08-14  Ilya Enkovich  <ilya.enkovich@intel.com>
13503
13504         * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
13505         current_function_decl.
13506
13507 2014-08-14  Ilya Enkovich  <ilya.enkovich@intel.com>
13508
13509         * cgraph.c (cgraph_node::function_symbol): Fix wrong
13510         cgraph_function_node to cgraph_node::function_symbol
13511         refactoring.
13512
13513 2014-08-14  Zhenqiang Chen  <zhenqiang.chen@arm.com>
13514
13515         * config/arm/arm.c (arm_option_override): Set max_insns_skipped
13516         to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
13517
13518 2014-08-13  Chen Gang  gang.chen.5i5j@gmail.com
13519
13520         * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
13521         warning.
13522
13523 2014-08-13  Roman Gareev  <gareevroman@gmail.com>
13524
13525         * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
13526         generator.
13527
13528 2014-08-12  Jakub Jelinek  <jakub@redhat.com>
13529
13530         PR target/62025
13531         * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
13532         any registers that are used in mem_insn.
13533
13534 2014-08-12  Steve Ellcey  <sellcey@mips.com>
13535
13536         * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
13537
13538 2014-08-12  Steve Ellcey  <sellcey@mips.com>
13539
13540         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
13541         (MULTILIB_DIRNAMES): Ditto.
13542         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
13543         * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
13544         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
13545         * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
13546         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
13547         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
13548
13549 2014-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13550
13551         PR target/61413
13552         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
13553         of __ARM_SIZEOF_WCHAR_T.
13554
13555 2014-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13556
13557         PR target/62098
13558         * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
13559         Remove unnecessary attributes.
13560
13561 2014-08-12  Yury Gribov  <y.gribov@samsung.com>
13562
13563         * internal-fn.c (init_internal_fns): Fix off-by-one.
13564
13565 2014-08-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13566             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13567             Anna Tikhonova  <anna.tikhonova@intel.com>
13568             Ilya Tocar  <ilya.tocar@intel.com>
13569             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13570             Ilya Verbin  <ilya.verbin@intel.com>
13571             Kirill Yukhin  <kirill.yukhin@intel.com>
13572             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13573
13574         * config/i386/i386.c (standard_sse_constant_opcode): Use
13575         vpxord/vpternlog if avx512 is availible.
13576
13577 2014-08-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
13578
13579         PR middle-end/62103
13580         * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
13581         bitfields, that is when size doesn't match the size of type or the
13582         size of the constructor.
13583
13584 2014-08-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
13585
13586         * config/rs6000/constraints.md (wh constraint): New constraint,
13587         for FP registers if direct move is available.
13588         (wi constraint): New constraint, for VSX/FP registers that can
13589         handle 64-bit integers.
13590         (wj constraint): New constraint for VSX/FP registers that can
13591         handle 64-bit integers for direct moves.
13592         (wk constraint): New constraint for VSX/FP registers that can
13593         handle 64-bit doubles for direct moves.
13594         (wy constraint): Make documentation match implementation.
13595
13596         * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
13597         scalar_in_vmx_p field to simplify tests of whether SFmode or
13598         DFmode can go in the Altivec registers.
13599         (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
13600         (rs6000_setup_reg_addr_masks): Likewise.
13601         (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
13602         field, and wh/wi/wj/wk constraints.
13603         (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
13604         the wh/wi/wj/wk constraints.
13605         (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
13606         upper registers, prefer VSX registers unless the operation is a
13607         memory operation with REG+OFFSET addressing.
13608
13609         * config/rs6000/vsx.md (VSr mode attribute): Add support for
13610         DImode.  Change SFmode to use ww constraint instead of d to allow
13611         SF registers in the upper registers.
13612         (VSr2): Likewise.
13613         (VSr3): Likewise.
13614         (VSr5): Fix thinko in comment.
13615         (VSa): New mode attribute that is an alternative to wa, that
13616         returns the VSX register class that a mode can go in, but may not
13617         be the preferred register class.
13618         (VS_64dm): New mode attribute for appropriate register classes for
13619         referencing 64-bit elements of vectors for direct moves and normal
13620         moves.
13621         (VS_64reg): Likewise.
13622         (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
13623         register allocator to only registers the data type can handle.
13624         (vsx_le_perm_load_<mode>): Likewise.
13625         (vsx_le_perm_store_<mode>): Likewise.
13626         (vsx_xxpermdi2_le_<mode>): Likewise.
13627         (vsx_xxpermdi4_le_<mode>): Likewise.
13628         (vsx_lxvd2x2_le_<mode>): Likewise.
13629         (vsx_lxvd2x4_le_<mode>): Likewise.
13630         (vsx_stxvd2x2_le_<mode>): Likewise.
13631         (vsx_add<mode>3): Likewise.
13632         (vsx_sub<mode>3): Likewise.
13633         (vsx_mul<mode>3): Likewise.
13634         (vsx_div<mode>3): Likewise.
13635         (vsx_tdiv<mode>3_internal): Likewise.
13636         (vsx_fre<mode>2): Likewise.
13637         (vsx_neg<mode>2): Likewise.
13638         (vsx_abs<mode>2): Likewise.
13639         (vsx_nabs<mode>2): Likewise.
13640         (vsx_smax<mode>3): Likewise.
13641         (vsx_smin<mode>3): Likewise.
13642         (vsx_sqrt<mode>2): Likewise.
13643         (vsx_rsqrte<mode>2): Likewise.
13644         (vsx_tsqrt<mode>2_internal): Likewise.
13645         (vsx_fms<mode>4): Likewise.
13646         (vsx_nfma<mode>4): Likewise.
13647         (vsx_eq<mode>): Likewise.
13648         (vsx_gt<mode>): Likewise.
13649         (vsx_ge<mode>): Likewise.
13650         (vsx_eq<mode>_p): Likewise.
13651         (vsx_gt<mode>_p): Likewise.
13652         (vsx_ge<mode>_p): Likewise.
13653         (vsx_xxsel<mode>): Likewise.
13654         (vsx_xxsel<mode>_uns): Likewise.
13655         (vsx_copysign<mode>3): Likewise.
13656         (vsx_float<VSi><mode>2): Likewise.
13657         (vsx_floatuns<VSi><mode>2): Likewise.
13658         (vsx_fix_trunc<mode><VSi>2): Likewise.
13659         (vsx_fixuns_trunc<mode><VSi>2): Likewise.
13660         (vsx_x<VSv>r<VSs>i): Likewise.
13661         (vsx_x<VSv>r<VSs>ic): Likewise.
13662         (vsx_btrunc<mode>2): Likewise.
13663         (vsx_b2trunc<mode>2): Likewise.
13664         (vsx_floor<mode>2): Likewise.
13665         (vsx_ceil<mode>2): Likewise.
13666         (vsx_<VS_spdp_insn>): Likewise.
13667         (vsx_xscvspdp): Likewise.
13668         (vsx_xvcvspuxds): Likewise.
13669         (vsx_float_fix_<mode>2): Likewise.
13670         (vsx_set_<mode>): Likewise.
13671         (vsx_extract_<mode>_internal1): Likewise.
13672         (vsx_extract_<mode>_internal2): Likewise.
13673         (vsx_extract_<mode>_load): Likewise.
13674         (vsx_extract_<mode>_store): Likewise.
13675         (vsx_splat_<mode>): Likewise.
13676         (vsx_xxspltw_<mode>): Likewise.
13677         (vsx_xxspltw_<mode>_direct): Likewise.
13678         (vsx_xxmrghw_<mode>): Likewise.
13679         (vsx_xxmrglw_<mode>): Likewise.
13680         (vsx_xxsldwi_<mode>): Likewise.
13681         (vsx_xscvdpspn): Tighten constraints to only use register classes
13682         the types use.
13683         (vsx_xscvspdpn): Likewise.
13684         (vsx_xscvdpspn_scalar): Likewise.
13685
13686         * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
13687         wj, and wk constraints.
13688         (GPR_REG_CLASS_P): New helper macro for register classes targeting
13689         general purpose registers.
13690
13691         * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
13692         direct moves.
13693         (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
13694         DImode instead of wm.  Use wk constraint for direct move of DFmode
13695         instead of wm.
13696         (extendsidi2_lfiwax): Likewise.
13697         (lfiwax): Likewise.
13698         (lfiwzx): Likewise.
13699         (movdi_internal64): Likewise.
13700
13701         * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
13702         wk constraints. Make the wy constraint documentation match them
13703         implementation.
13704
13705 2014-08-11  Mircea Namolaru  <mircea.namolaru@inria.fr>
13706
13707         Replacement of isl_int by isl_val
13708         * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
13709         (compute_bounds_for_param): use isl_val instead of isl_int
13710         (compute_bounds_for_loop): likewise
13711         * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
13712         (build_linearized_memory_access): use isl_val instead of isl_int
13713         (pdr_stride_in_loop): likewise
13714         * graphite-optimize-isl.c:
13715         (getPrevectorMap): use isl_val instead of isl_int
13716         * graphite-poly.c:
13717         (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
13718         graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
13719         (extern the_isl_ctx): declare
13720         (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
13721         (extract_affine_gmp): likewise
13722         (wrap): likewise
13723         (build_loop_iteration_domains): likewise
13724         (add_param_constraints): likewise
13725
13726 2014-08-11  Richard Biener  <rguenther@suse.de>
13727
13728         PR tree-optimization/62075
13729         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
13730         handle uses in patterns.
13731
13732 2014-08-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13733             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13734             Anna Tikhonova  <anna.tikhonova@intel.com>
13735             Ilya Tocar  <ilya.tocar@intel.com>
13736             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13737             Ilya Verbin  <ilya.verbin@intel.com>
13738             Kirill Yukhin  <kirill.yukhin@intel.com>
13739             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13740
13741         * common/config/i386/i386-common.c
13742         (OPTION_MASK_ISA_AVX512VL_SET): Define.
13743         (OPTION_MASK_ISA_AVX512F_UNSET): Update.
13744         (ix86_handle_option): Handle OPT_mavx512vl.
13745         * config/i386/cpuid.h (bit_AVX512VL): Define.
13746         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
13747         set -mavx512vl accordingly.
13748         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
13749         OPTION_MASK_ISA_AVX512VL.
13750         * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
13751         (ix86_option_override_internal): Define PTA_AVX512VL, handle
13752         PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
13753         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
13754         * config/i386/i386.h (TARGET_AVX512VL): Define.
13755         (TARGET_AVX512VL_P(x)): Ditto.
13756         * config/i386/i386.opt: Add mavx512vl.
13757
13758 2014-08-11  Felix Yang  <fei.yang0953@gmail.com>
13759
13760         PR tree-optimization/62073
13761         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
13762         a basic block.
13763
13764 2014-08-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13765             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13766             Anna Tikhonova  <anna.tikhonova@intel.com>
13767             Ilya Tocar  <ilya.tocar@intel.com>
13768             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13769             Ilya Verbin  <ilya.verbin@intel.com>
13770             Kirill Yukhin  <kirill.yukhin@intel.com>
13771             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13772
13773         * common/config/i386/i386-common.c
13774         (OPTION_MASK_ISA_AVX512BW_SET) : Define.
13775         (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
13776         (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
13777         (ix86_handle_option): Handle OPT_mavx512bw.
13778         * config/i386/cpuid.h (bit_AVX512BW): Define.
13779         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
13780         set -mavx512bw accordingly.
13781         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
13782         OPTION_MASK_ISA_AVX512BW.
13783         * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
13784         (ix86_option_override_internal): Define PTA_AVX512BW, handle
13785         PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
13786         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
13787         * config/i386/i386.h (TARGET_AVX512BW): Define.
13788         (TARGET_AVX512BW_P(x)): Ditto.
13789         * config/i386/i386.opt: Add mavx512bw.
13790
13791 2014-08-11  Richard Biener  <rguenther@suse.de>
13792
13793         PR tree-optimization/62070
13794         * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
13795         Remove SSA checking.
13796
13797 2014-08-11  Yury Gribov  <y.gribov@samsung.com>
13798
13799         * asan.c (asan_check_flags): New enum.
13800         (build_check_stmt_with_calls): Removed function.
13801         (build_check_stmt): Split inlining logic to
13802         asan_expand_check_ifn.
13803         (instrument_derefs): Rename parameter.
13804         (instrument_mem_region_access): Rename parameter.
13805         (instrument_strlen_call): Likewise.
13806         (asan_expand_check_ifn): New function.
13807         (asan_instrument): Remove old code.
13808         (pass_sanopt::execute): Change handling of
13809         asan-instrumentation-with-call-threshold.
13810         (asan_clear_shadow): Fix formatting.
13811         (asan_function_start): Likewise.
13812         (asan_emit_stack_protection): Likewise.
13813         * doc/invoke.texi (asan-instrumentation-with-call-threshold):
13814         Update description.
13815         * internal-fn.c (expand_ASAN_CHECK): New function.
13816         * internal-fn.def (ASAN_CHECK): New internal function.
13817         * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
13818         Update description.
13819         (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
13820         * tree.c: Small comment fix.
13821
13822 2014-08-11  Yury Gribov  <y.gribov@samsung.com>
13823
13824         * gimple.c (gimple_call_fnspec): Support internal functions.
13825         (gimple_call_return_flags): Use const.
13826         * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
13827         * internal-fn.def: Add fnspec information.
13828         * internal-fn.h (internal_fn_fnspec): New function.
13829         (init_internal_fns): Declare new function.
13830         * internal-fn.c (internal_fn_fnspec_array): New global variable.
13831         (init_internal_fns): New function.
13832         * tree-core.h: Update macro call.
13833         * tree.c (build_common_builtin_nodes): Initialize internal fns.
13834
13835 2014-08-10  Gerald Pfeifer  <gerald@pfeifer.com>
13836
13837         * lto-streamer.h (struct output_block::symbol): Change from
13838         struct symtab_node to plain symtab_node.
13839         (referenced_from_this_partition_p): Change first parameter
13840         from struct symtab_node to plain symtab_node.
13841
13842 2014-08-10  Marek Polacek  <polacek@redhat.com>
13843
13844         PR c/51849
13845         * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
13846
13847 2014-08-09  Jan Hubicka  <hubicka@ucw.cz>
13848
13849         * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
13850         DECL correctly; do not give up on types in static storage.
13851
13852 2014-08-09  Paolo Carlini  <paolo.carlini@oracle.com>
13853
13854         * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
13855
13856 2014-08-09  Roman Gareev  <gareevroman@gmail.com>
13857
13858         * graphite-isl-ast-to-gimple.c:
13859         (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
13860
13861         * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
13862
13863 2014-08-08  Guozhi Wei  <carrot@google.com>
13864
13865         * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
13866
13867 2014-08-08  Cary Coutant  <ccoutant@google.com>
13868
13869         * dwarf2out.c (get_skeleton_type_unit): Remove.
13870         (output_skeleton_debug_sections): Remove skeleton type units.
13871         (output_comdat_type_unit): Likewise.
13872         (dwarf2out_finish): Likewise.
13873
13874 2014-08-07  Yi Yang  <ahyangyi@google.com>
13875
13876         * predict.c (expr_expected_value_1): Remove the redundant assignment.
13877
13878 2014-08-08  Richard Biener  <rguenther@suse.de>
13879
13880         * lto-streamer.h (struct lto_input_block): Make it a class
13881         with a constructor.
13882         (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
13883         (struct lto_function_header, struct lto_simple_header,
13884         struct lto_simple_header_with_strings,
13885         struct lto_decl_header, struct lto_function_header): Make
13886         a simple inheritance hieararchy.  Remove unused fields.
13887         (struct lto_asm_header): Remove.
13888         * lto-streamer-out.c (produce_asm): Adjust.
13889         (lto_output_toplevel_asms): Likewise.
13890         (produce_asm_for_decls): Likewise.
13891         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
13892         * data-streamer-in.c (string_for_index): Likewise.
13893         * ipa-inline-analysis.c (inline_read_section): Likewise.
13894         * ipa-prop.c (ipa_prop_read_section): Likewise.
13895         (read_replacements_section): Likewise.
13896         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
13897         * lto-section-in.c (lto_create_simple_input_block): Likewise.
13898         (lto_destroy_simple_input_block): Likewise.
13899         * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
13900         (lto_input_toplevel_asms): Likewise.
13901
13902 2014-08-08  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13903             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13904             Anna Tikhonova  <anna.tikhonova@intel.com>
13905             Ilya Tocar  <ilya.tocar@intel.com>
13906             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13907             Ilya Verbin  <ilya.verbin@intel.com>
13908             Kirill Yukhin  <kirill.yukhin@intel.com>
13909             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13910
13911         * common/config/i386/i386-common.c
13912         (OPTION_MASK_ISA_AVX512DQ_SET): Define.
13913         (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
13914         (ix86_handle_option): Handle OPT_mavx512dq.
13915         * config/i386/cpuid.h (bit_AVX512DQ): Define.
13916         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
13917         set -mavx512dq accordingly.
13918         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
13919         OPTION_MASK_ISA_AVX512DQ.
13920         * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
13921         (ix86_option_override_internal): Define PTA_AVX512DQ, handle
13922         PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
13923         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
13924         * config/i386/i386.h (TARGET_AVX512DQ): Define.
13925         (TARGET_AVX512DQ_P(x)): Ditto.
13926         * config/i386/i386.opt: Add mavx512dq.
13927
13928 2014-08-08  Richard Biener  <rguenther@suse.de>
13929
13930         * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
13931         target_percent, target_percent_s): Export.
13932         (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
13933         fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
13934         fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
13935         fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
13936         fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
13937         Move to gimple-fold.c.
13938         (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
13939         strcat and strcpy.
13940         (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
13941         mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
13942         (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
13943         memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
13944         (rewrite_call_expr_array): Remove.
13945         (fold_builtin_sprintf_chk): Likewise.
13946         (fold_builtin_snprintf_chk): Likewise.
13947         (fold_builtin_varargs): Remove handling of sprintf_chk,
13948         vsprintf_chk, snprintf_chk and vsnprintf_chk.
13949         (gimple_fold_builtin_sprintf_chk): Remove.
13950         (gimple_fold_builtin_snprintf_chk): Likewise.
13951         (gimple_fold_builtin_varargs): Likewise.
13952         (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
13953         * predict.c (optimize_bb_for_size_p): Handle NULL bb.
13954         * gimple.c (gimple_seq_add_seq_without_update): New function.
13955         * gimple.h (gimple_seq_add_seq_without_update): Declare.
13956         * gimple-fold.c: Include output.h.
13957         (gsi_replace_with_seq_vops): New function, split out from ...
13958         (gimplify_and_update_call_from_tree): ... here.
13959         (replace_call_with_value): New function.
13960         (replace_call_with_call_and_fold): Likewise.
13961         (var_decl_component_p): Moved from builtins.c.
13962         (gimple_fold_builtin_memory_op): Moved from builtins.c
13963         fold_builtin_memory_op and rewritten to GIMPLE.
13964         (gimple_fold_builtin_memset): Likewise.
13965         (gimple_fold_builtin_strcpy): Likewise.
13966         (gimple_fold_builtin_strncpy): Likewise.
13967         (gimple_fold_builtin_strcat): Likewise.
13968         (gimple_fold_builtin_fputs): Likewise.
13969         (gimple_fold_builtin_memory_chk): Likewise.
13970         (gimple_fold_builtin_stxcpy_chk): Likewise.
13971         (gimple_fold_builtin_stxncpy_chk): Likewise.
13972         (gimple_fold_builtin_snprintf_chk): Likewise.
13973         (gimple_fold_builtin_sprintf_chk): Likewise.
13974         (gimple_fold_builtin_strlen): New function.
13975         (gimple_fold_builtin_with_strlen): New function split out from
13976         gimple_fold_builtin.
13977         (gimple_fold_builtin): Change signature and handle
13978         bzero, memset, bcopy, memcpy, mempcpy and memmove folding
13979         here.  Call gimple_fold_builtin_with_strlen.
13980         (gimple_fold_call): Adjust.
13981
13982 2014-08-08  Kugan Vivekanandarajah  <kuganv@linaro.org>
13983
13984         * calls.c (precompute_arguments): Check
13985          promoted_for_signed_and_unsigned_p and set the promoted mode.
13986         (promoted_for_signed_and_unsigned_p): New function.
13987         (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
13988         and set the promoted mode.
13989         * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
13990         * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
13991         SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
13992
13993
13994 2014-08-08  Kugan Vivekanandarajah  <kuganv@linaro.org>
13995
13996         * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
13997         instead of SUBREG_PROMOTED_UNSIGNED_SET.
13998         (expand_call): Likewise.
13999         * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
14000         to get promoted mode.
14001         * combine.c (record_promoted_value): Skip > 0 comparison with
14002         SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
14003         * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
14004         of SUBREG_PROMOTED_UNSIGNED_P.
14005         (convert_modes): Likewise.
14006         (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
14007         Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
14008         (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
14009         SUBREG_PROMOTED_UNSIGNED_SET.
14010         * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
14011         instead of SUBREG_PROMOTED_UNSIGNED_SET.
14012         * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
14013         SUBREG_PROMOTED_SET.
14014         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
14015         SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
14016         * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
14017         of SUBREG_PROMOTED_UNSIGNED_P.
14018         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
14019         (SUBREG_PROMOTED_SET): New define.
14020         (SUBREG_PROMOTED_GET): Likewise.
14021         (SUBREG_PROMOTED_SIGN): Likewise.
14022         (SUBREG_PROMOTED_SIGNED_P): Likewise.
14023         (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
14024         (SUBREG_PROMOTED_UNSIGNED_P): Updated.
14025         * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
14026         instead of SUBREG_PROMOTED_UNSIGNED_GET.
14027         (nonzero_bits1): Skip > 0 comparison with the results as
14028         SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
14029         (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
14030         of !SUBREG_PROMOTED_UNSIGNED_P.
14031         * simplify-rtx.c (simplify_unary_operation_1): Use new
14032         SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
14033         (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
14034         SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
14035         SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
14036
14037 2014-08-07  Jan Hubicka  <hubicka@ucw.cz>
14038
14039         * ipa-devirt.c: Include gimple-pretty-print.h
14040         (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
14041         further tests.
14042         (decl_maybe_in_construction_p): Fix conditional on cdtor check
14043         (get_polymorphic_call_info): Fix return value
14044         (type_change_info): New sturcture based on ipa-prop
14045         variant.
14046         (noncall_stmt_may_be_vtbl_ptr_store): New predicate
14047         based on ipa-prop variant.
14048         (extr_type_from_vtbl_ptr_store): New function
14049         based on ipa-prop variant.
14050         (record_known_type): New function.
14051         (check_stmt_for_type_change): New function.
14052         (get_dynamic_type): New function.
14053         * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
14054         * tree-ssa-pre.c: ipa-utils.h
14055         (eliminate_dom_walker::before_dom_children): Use ipa-devirt
14056         machinery; sanity check with ipa-prop devirtualization.
14057         * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
14058         polymorphic flag.
14059
14060 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
14061
14062         * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
14063         * alias.c, cfgexpand.c, cgraphbuild.c,
14064         config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
14065         config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
14066         config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
14067         config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
14068         config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
14069         config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
14070         config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
14071         dse.c, except.c, gengtype.c, gimple-expr.c,
14072         gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
14073         ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
14074         tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
14075         tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
14076         tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
14077         tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
14078         pointer-set.h.
14079         * pointer-set.c: Remove file.
14080         * pointer-set.h: Remove file.
14081
14082 2014-08-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14083
14084         * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
14085         * config/arm/types.md (f_sels, f_seld): Delete.
14086
14087 2014-08-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14088
14089         * config/aarch64/aarch64.md (absdi2): Set simd attribute.
14090         (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
14091         (aarch64_movdi_<mode>high): Likewise.
14092         (aarch64_mov<mode>high_di): Likewise.
14093         (aarch64_movdi_<mode>low): Likewise.
14094         (aarch64_mov<mode>low_di): Likewise.
14095         (aarch64_movtilow_tilow): Likewise.
14096         Add comment explaining usage of fp,simd attributes and of
14097         TARGET_FLOAT and TARGET_SIMD.
14098
14099 2014-08-07  Ian Bolton  <ian.bolton@arm.com>
14100             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14101
14102         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
14103         Use MOVN when one of the half-words is 0xffff.
14104
14105 2014-08-07  Marat Zakirov  <m.zakirov@samsung.com>
14106
14107         * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
14108
14109 2014-08-07  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
14110
14111         * haifa-sched.c (SCHED_SORT): Delete.  Macro used exactly once.
14112         (enum rfs_decition:RFS_*): New constants wrapped in an enum.
14113         (rfs_str): String corresponding to RFS_* constants.
14114         (rank_for_schedule_stats_t): New typedef.
14115         (rank_for_schedule_stats): New static variable.
14116         (rfs_result): New static function.
14117         (rank_for_schedule): Track statistics for deciding heuristics.
14118         (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
14119         static functions.
14120         (ready_sort): Use them for debug printouts.
14121         (schedule_block): Init statistics state.  Print statistics on
14122         rank_for_schedule decisions.
14123
14124 2014-08-07  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
14125
14126         * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
14127
14128 2014-08-07  Ilya Tocar  <ilya.tocar@intel.com>
14129
14130         * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
14131         constraint.
14132
14133 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
14134
14135         * hash-map.h (default_hashmap_traits): Adjust overloads of hash
14136         function to not conflict.
14137         * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
14138         gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
14139         lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
14140         tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
14141         tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
14142         of pointer_map.
14143
14144 2014-08-07  Marek Polacek  <polacek@redhat.com>
14145
14146         * fold-const.c (fold_binary_loc): Add folding of
14147         (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
14148
14149 2013-08-07  Ilya Enkovich  <ilya.enkovich@intel.com>
14150
14151         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
14152         instead of type size.
14153         (ASM_FINISH_DECLARE_OBJECT): Likewise.
14154
14155 2014-08-07  Marat Zakirov  <m.zakirov@samsung.com>
14156
14157         * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
14158         (*thumb1_movqi_insn): Likewise.
14159         * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
14160
14161 2014-08-07  Tom de Vries  <tom@codesourcery.com>
14162
14163         * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
14164         (glibc_2_11_or_earlier): Remove effective-target keywords.
14165
14166 2014-08-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
14167
14168         * config/arm/arm.c (bdesc_2arg): Fix typo.
14169         (arm_atomic_assign_expand_fenv): Remove The default implementation.
14170
14171 2014-08-07  Zhenqiang Chen  <zhenqiang.chen@arm.com>
14172
14173         * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
14174
14175 2014-08-06  Vladimir Makarov  <vmakarov@redhat.com>
14176
14177         PR debug/61923
14178         * haifa-sched.c (advance_one_cycle): Fix dump.
14179         (schedule_block): Don't advance cycle if we are already at the
14180         beginning of the cycle.
14181
14182 2014-08-06  Martin Jambor  <mjambor@suse.cz>
14183
14184         PR ipa/61393
14185         * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
14186
14187 2014-08-06  Richard Biener  <rguenther@suse.de>
14188
14189         PR lto/62034
14190         * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
14191         SCCs here.
14192         (lto_input_tree): Pop SCCs here.
14193
14194 2014-08-06  Richard Biener  <rguenther@suse.de>
14195
14196         PR tree-optimization/61320
14197         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
14198         handle misaligned loads.
14199
14200 2014-08-06  Alan Lawrence  <alan.lawrence@arm.com>
14201
14202         * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
14203         (aarch64_expand_vec_perm_const): Check for dup before zip.
14204
14205 2014-08-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14206
14207         * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
14208         CONST_INT_P instead of GET_CODE and compare.
14209         (aarch64_select_cc_mode): Likewise.
14210         (aarch64_print_operand): Likewise.
14211         (aarch64_rtx_costs): Likewise.
14212         (aarch64_simd_valid_immediate): Likewise.
14213         (aarch64_simd_check_vect_par_cnst_half): Likewise.
14214         (aarch64_simd_emit_pair_result_insn): Likewise.
14215
14216 2014-08-05  David Malcolm  <dmalcolm@redhat.com>
14217
14218         * gdbhooks.py (find_gcc_source_dir): New helper function.
14219         (class PassNames): New class, locating and parsing passes.def.
14220         (class BreakOnPass): New command "break-on-pass".
14221
14222 2014-08-05  Trevor Saunders  <tsaunders@mozilla.com>
14223
14224         * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
14225         getting olde.
14226
14227 2014-08-05  Richard Biener  <rguenther@suse.de>
14228
14229         PR rtl-optimization/61672
14230         * emit-rtl.h (mem_attrs_eq_p): Declare.
14231         * emit-rtl.c (mem_attrs_eq_p): Export.  Handle NULL mem-attrs.
14232         * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
14233         * cfgcleanup.c (merge_memattrs): Likewise.
14234         Include emit-rtl.h.
14235
14236 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14237
14238         * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
14239         rather than singleton vectors.
14240         (vqdmlsls_lane_s32): Likewise.
14241
14242 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14243
14244         * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
14245         Use VSDQ_HSI mode iterator.
14246         (aarch64_sqrdmulh_laneq<mode>): Likewise.
14247         (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
14248         * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
14249         Use BUILTIN_VDQHS macro.
14250         (sqrdmulh_laneq): Likewise.
14251         * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
14252         (vqdmlals_laneq_s32): Likewise.
14253         (vqdmlslh_laneq_s16): Likewise.
14254         (vqdmlsls_laneq_s32): Likewise.
14255         (vqdmulhh_laneq_s16): Likewise.
14256         (vqdmulhs_laneq_s32): Likewise.
14257         (vqrdmulhh_laneq_s16): Likewise.
14258         (vqrdmulhs_laneq_s32): Likewise.
14259
14260 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14261
14262         * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
14263         (vmuld_laneq_f64): Likewise.
14264         (vmuls_laneq_f32): Likewise.
14265         (vmul_n_f64): Likewise.
14266         (vmuld_lane_f64): Reimplement in C.
14267         (vmuls_lane_f32): Likewise.
14268
14269 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14270
14271         * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
14272         to reservation.
14273         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
14274
14275 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14276
14277         * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
14278         (rbitsi2): Likewise.
14279         (*arm_rev): Set predicable and predicable_short_it attributes.
14280
14281 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14282
14283         * convert.c (convert_to_integer): Guard transformation to lrint by
14284         -fno-math-errno.
14285
14286 2014-08-05  James Greenhalgh  <james.greenhalgh@arm.com>
14287
14288         * config/aarch64/aarch64-builtins.c
14289         (aarch64_simd_builtin_type_mode): Delete.
14290         (v8qi_UP): Remap to V8QImode.
14291         (v4hi_UP): Remap to V4HImode.
14292         (v2si_UP): Remap to V2SImode.
14293         (v2sf_UP): Remap to V2SFmode.
14294         (v1df_UP): Remap to V1DFmode.
14295         (di_UP): Remap to DImode.
14296         (df_UP): Remap to DFmode.
14297         (v16qi_UP):V16QImode.
14298         (v8hi_UP): Remap to V8HImode.
14299         (v4si_UP): Remap to V4SImode.
14300         (v4sf_UP): Remap to V4SFmode.
14301         (v2di_UP): Remap to V2DImode.
14302         (v2df_UP): Remap to V2DFmode.
14303         (ti_UP): Remap to TImode.
14304         (ei_UP): Remap to EImode.
14305         (oi_UP): Remap to OImode.
14306         (ci_UP): Map to CImode.
14307         (xi_UP): Remap to XImode.
14308         (si_UP): Remap to SImode.
14309         (sf_UP): Remap to SFmode.
14310         (hi_UP): Remap to HImode.
14311         (qi_UP): Remap to QImode.
14312         (aarch64_simd_builtin_datum): Make mode a machine_mode.
14313         (VAR1): Build builtin name.
14314         (aarch64_init_simd_builtins): Remove dead code.
14315
14316 2014-08-05  Roman Gareev  <gareevroman@gmail.com>
14317
14318         * graphite-isl-ast-to-gimple.c:
14319         (set_options): New function.
14320         (scop_to_isl_ast): Add calling of set_options.
14321
14322 2014-08-05  Jakub Jelinek  <jakub@redhat.com>
14323
14324         * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
14325         (analyze_iv_to_split_insn): Don't initialize them.
14326         (get_ivts_expr): Removed.
14327         (allocate_basic_variable, insert_base_initialization): Use
14328         SET_SRC instead of *get_ivts_expr.
14329         (split_iv): Use &SET_SRC instead of get_ivts_expr.
14330
14331 2014-08-05  Roman Gareev  <gareevroman@gmail.com>
14332
14333         * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
14334         (translate_isl_ast_for_loop): Add checking of the
14335         flag_loop_parallelize_all.
14336         (ast_build_before_for): New function.
14337         (scop_to_isl_ast): Add checking of the
14338         flag_loop_parallelize_all.
14339         * graphite-dependences.c: Move the defenition of the
14340         scop_get_dependences from graphite-optimize-isl.c to this file.
14341         (apply_schedule_on_deps): Add checking of the ux's emptiness.
14342         (carries_deps): Add checking of the x's value.
14343         * graphite-optimize-isl.c: Move the defenition of the
14344         scop_get_dependences to graphite-dependences.c.
14345         * graphite-poly.h: Add declarations of scop_get_dependences
14346         and carries_deps.
14347
14348 2014-08-04  Rohit  <rohitarulraj@freescale.com>
14349
14350         PR target/60102
14351         * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
14352         names.
14353         (alt_reg_names): Likewise.
14354         (rs6000_dwarf_register_span): For SPE high registers, replace
14355         dwarf register numbers with GCC hard register numbers.
14356         (rs6000_init_dwarf_reg_sizes_extra): Likewise.
14357         (rs6000_dbx_register_number): For SPE high registers, return dwarf
14358         register number for the corresponding GCC hard register number.
14359         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
14360         newly added GCC hard register numbers for SPE high registers.
14361         (DWARF_FRAME_REGISTERS):  Likewise.
14362         (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
14363         (DWARF_FRAME_REGNUM): Likewise.
14364         (FIXED_REGISTERS): Likewise.
14365         (CALL_USED_REGISTERS): Likewise.
14366         (CALL_REALLY_USED_REGISTERS): Likewise.
14367         (REG_ALLOC_ORDER): Likewise.
14368         (enum reg_class): Likewise.
14369         (REG_CLASS_NAMES): Likewise.
14370         (REG_CLASS_CONTENTS): Likewise.
14371         (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
14372
14373 2014-08-04  Richard Biener  <rguenther@suse.de>
14374
14375         * gimple-fold.h (gimple_fold_builtin): Remove.
14376         * gimple-fold.c (gimple_fold_builtin): Make static.
14377         * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
14378         fold_stmt, not gimple_fold_builtin.
14379
14380 2014-08-04  Martin Liska <mliska@suse.cz>
14381
14382         * cgraph.h (csi_end_p): Removed.
14383         (csi_next): Likewise.
14384         (csi_node): Likewise.
14385         (csi_start): Likewise.
14386         (cgraph_node_in_set_p): Likewise.
14387         (cgraph_node_set_size): Likewise.
14388         (vsi_end_p): Likewise.
14389         (vsi_next): Likewise.
14390         (vsi_node): Likewise.
14391         (vsi_start): Likewise.
14392         (varpool_node_set_size): Likewise.
14393         (cgraph_node_set_nonempty_p): Likewise.
14394         (varpool_node_set_nonempty_p): Likewise.
14395         * cgraphunit.c (cgraph_process_new_functions): vec replaces
14396         cgraph_node_set.
14397         * ipa-inline-transform.c: Likewise.
14398         * ipa-utils.c (cgraph_node_set_new): Removed.
14399         (cgraph_node_set_add): Likewise.
14400         (cgraph_node_set_remove): Likewise.
14401         (cgraph_node_set_find): Likewise.
14402         (dump_cgraph_node_set): Likewise.
14403         (debug_cgraph_node_set): Likewise.
14404         (free_cgraph_node_set): Likewise.
14405         (varpool_node_set_new): Likewise.
14406         (varpool_node_set_add): Likewise.
14407         (varpool_node_set_remove): Likewise.
14408         (varpool_node_set_find): Likewise.
14409         (dump_varpool_node_set): Likewise.
14410         (free_varpool_node_set): Likewise.
14411         (debug_varpool_node_set): Likewise.
14412         * tree-emutls.c (struct tls_var_data):
14413         (emutls_index): Removed.
14414         (emutls_decl): Likewise.
14415         (gen_emutls_addr): Function implementation uses newly added
14416         hash_map<varpool_node *, tls_var_data>.
14417         (clear_access_vars): Likewise.
14418         (create_emultls_var): Likewise.
14419         (ipa_lower_emutls): Likewise.
14420         (reset_access): New function.
14421
14422 2014-08-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
14423
14424         * config/i386/i386.c (ix86_option_override_internal): Add
14425         PTA_RDRND and PTA_MOVBE for bdver4.
14426
14427 2014-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14428             James Greenhalgh  <james.greenhalgh@arm.com>
14429
14430         * doc/md.texi (clrsb): Document.
14431         (clz): Change reference to x into operand 1.
14432         (ctz): Likewise.
14433         (popcount): Likewise.
14434
14435 2014-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14436
14437         PR target/61713
14438         * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
14439         move to subtarget in serial version if result is ignored.
14440
14441 2014-08-04  Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14442             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14443
14444         * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
14445         to any two insns.  Update comment.  Rename to sched_macro_fuse_insns.
14446         (sched_analyze_insn): Update use of try_group_insn to
14447         sched_macro_fuse_insns.
14448         * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
14449         arguments that are not conditional jumps.
14450
14451 2014-08-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
14452
14453         * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
14454         family information. Handle BTVER2 cpu with cpuid family value.
14455
14456 2014-08-04  Tom de Vries  <tom@codesourcery.com>
14457
14458         * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
14459         (glibc_2_11_or_earlier): Document effective-target keywords.
14460
14461 2014-08-01  Jan Hubicka  <hubicka@ucw.cz>
14462
14463         * ipa-devirt.c (odr_type_warn_count): Add type.
14464         (possible_polymorphic_call_targets): Set it.
14465         (ipa_devirt): Use it.
14466
14467 2014-08-01  Jan Hubicka  <hubicka@ucw.cz>
14468
14469         * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
14470         Document.
14471         * ipa-devirt.c: Include hash-map.h
14472         (struct polymorphic_call_target_d): Add type_warning and decl_warning.
14473         (clear_speculation): Break out of ...
14474         (get_class_context): ... here; speed up handling obviously useless
14475         speculations.
14476         (odr_type_warn_count, decl_warn_count): New structures.
14477         (final_warning_record): New structure.
14478         (final_warning_records): New static variable.
14479         (possible_polymorphic_call_targets): Cleanup handling of
14480         speculative info; do not build speculation when user do not care;
14481         record info about warnings when asked for.
14482         (add_decl_warning): New function.
14483         (type_warning_cmp): New function.
14484         (decl_warning_cmp): New function.
14485         (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
14486         (gate): Enable pass when warnings are requested.
14487         * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
14488         options.
14489
14490 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
14491
14492         * hash-map.h (default_hashmap_traits::mark_key_deleted):
14493         Fix cast.
14494         (hash_map::remove): New method.
14495         (hash_map::traverse): New method.
14496         * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
14497         ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
14498         tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
14499         tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
14500         tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
14501         tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
14502         pointer_map.
14503
14504 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
14505
14506         * hash-set.h: new File.
14507         * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
14508         cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
14509         ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
14510         lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
14511         tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
14512         tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
14513         tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
14514         varpool.c: Use hash_set instead of pointer_set.
14515
14516 2014-08-01  Alan Lawrence  <alan.lawrence@arm.com>
14517
14518         * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
14519
14520 2014-08-01  Jiong Wang <jiong.wang@arm.com>
14521
14522         * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
14523         for frame access when strict_p is false.
14524
14525 2014-08-01  Renlin Li <renlin.li@arm.com>
14526 2014-08-01  Jiong Wang <jiong.wang@arm.com>
14527
14528         * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
14529         aarch64_offset_7bit_signed_scaled_p, remove static and use it.
14530         * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
14531         Declaration.
14532         * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
14533         predicate.
14534         * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
14535         aarch64_mem_pair_offset.
14536
14537 2014-08-01  Jiong Wang <jiong.wang@arm.com>
14538
14539         * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
14540         offset.
14541         (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
14542         * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
14543
14544 2014-08-01  Matthew Fortune  <matthew.fortune@imgtec.com>
14545
14546         * config/mips/mips.h (REGISTER_PREFIX): Define macro.
14547
14548 2014-08-01  James Greenhalgh  <james.greenhalgh@arm.com>
14549
14550         PR regression/61510
14551         * cgraphunit.c (analyze_functions): Use get_create rather than get
14552         for decls which are clones of abstract functions.
14553
14554 2014-08-01  Martin Liska  <mliska@suse.cz>
14555
14556         * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
14557         * ipa-prop.h (count_formal_params): Global function created from static.
14558         * ipa-prop.c (count_formal_params): Likewise.
14559         * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
14560         profiles for semantically equivalent functions.
14561         * passes.c (do_per_function): If we load body of a function
14562         during WPA, this condition should behave same.
14563         * varpool.c (ctor_for_folding): More tolerant assert for variable
14564         aliases created during WPA.
14565
14566 2014-08-01  Martin Liska  <mliska@suse.cz>
14567
14568         * doc/invoke.texi (Options That Control Optimization): Documentation
14569         for -foptimize-strlen introduced. Optimization levels default options
14570         fixed.
14571
14572 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
14573
14574         * opts.c (common_handle_option): Handle -fsanitize=alignment.
14575         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
14576         (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
14577         type to bool.
14578         * stor-layout.h (min_align_of_type): New prototype.
14579         * asan.c (pass_sanopt::execute): Don't perform gsi_next if
14580         ubsan_expand* told us not to do it.  Remove the extra gsi_end_p
14581         check.
14582         * ubsan.c: Include builtins.h.
14583         (ubsan_expand_bounds_ifn): Change return type to bool,
14584         always return true.
14585         (ubsan_expand_null_ifn): Change return type to bool, change
14586         argument to gimple_stmt_iterator *.  Handle both null and alignment
14587         sanitization, take type from ckind argument's type rather than
14588         first argument.
14589         (instrument_member_call): Removed.
14590         (instrument_mem_ref): Remove t argument, add mem and base arguments.
14591         Handle both null and alignment sanitization, don't say whole
14592         struct access is member access.  Build 3 argument IFN_UBSAN_NULL
14593         call instead of 2 argument.
14594         (instrument_null): Adjust instrument_mem_ref caller.  Don't
14595         instrument calls here.
14596         (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
14597         like SANITIZE_NULL.
14598         * stor-layout.c (min_align_of_type): New function.
14599         * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
14600         Or it into SANITIZE_UNDEFINED.
14601         * doc/invoke.texi (-fsanitize=alignment): Document.
14602
14603 2014-07-31  Andi Kleen  <ak@linux.intel.com>
14604
14605         * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
14606
14607 2014-07-31  Andi Kleen  <ak@linux.intel.com>
14608
14609         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
14610         inchash.
14611         (vn_reference_compute_hash): Dito.
14612         (vn_nary_op_compute_hash): Dito.
14613         (vn_phi_compute_hash): Dito.
14614         * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
14615
14616 2014-07-31  Andi Kleen  <ak@linux.intel.com>
14617
14618         * tree-ssa-dom.c (iterative_hash_exprs_commutative):
14619         Rename to inchash:add_expr_commutative. Convert to inchash.
14620         (iterative_hash_hashable_expr): Rename to
14621         inchash:add_hashable_expr. Convert to inchash.
14622         (avail_expr_hash): Dito.
14623
14624 2014-07-31  Andi Kleen  <ak@linux.intel.com>
14625
14626         * ipa-devirt.c (polymorphic_call_target_hasher::hash):
14627         Convert to inchash.
14628
14629 2014-07-31  Andi Kleen  <ak@linux.intel.com>
14630
14631         * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
14632
14633 2014-07-31  Andi Kleen  <ak@linux.intel.com>
14634
14635         * Makefile.in (OBJS): Add rtlhash.o
14636         * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
14637         (loc_checksum): Dito.
14638         (loc_checksum_ordered): Dito.
14639         (hash_loc_operands): Dito.
14640         (hash_locs): Dito.
14641         (hash_loc_list): Dito.
14642         * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
14643         * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
14644         * rtlhash.c: New file.
14645         * rtlhash.h: New file.
14646
14647 2014-07-31  Andi Kleen  <ak@linux.intel.com>
14648
14649         * inchash.h (inchash): Change inchash class to namespace.
14650         (class hash): ... Rename from inchash.
14651         (add_object): Move from macro to class template.
14652         * lto-streamer-out.c (hash_tree): Change inchash
14653         to inchash::hash.
14654         * tree.c (build_type_attribute_qual_variant): Dito.
14655         (type_hash_list): Dito.
14656         (attribute_hash_list): Dito.
14657         (iterative_hstate_expr): Rename to inchash::add_expr
14658         (build_range_type_1): Change inchash to inchash::hash
14659         and use hash::add_expr.
14660         (build_array_type_1): Dito.
14661         (build_function_type): Dito
14662         (build_method_type_directly): Dito.
14663         (build_offset_type): Dito.
14664         (build_complex_type): Dito.
14665         (make_vector_type): Dito.
14666         * tree.h (iterative_hash_expr): Dito.
14667
14668 2014-07-31  Chen Gang  <gang.chen.5i5j@gmail.com>
14669
14670         * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
14671
14672 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
14673
14674         * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
14675         correct alphabetical position.
14676         (vpaddd_f64): Rewrite using builtins.
14677         (vpaddd_s64): Move to correct alphabetical position.
14678         (vpaddd_u64): New.
14679
14680 2014-07-31  Oleg Endo  <olegendo@gcc.gnu.org>
14681
14682         PR target/61844
14683         * config/sh/sh.c (sh_legitimate_address_p,
14684         sh_legitimize_reload_address): Handle reg+reg address modes when
14685         ALLOW_INDEXED_ADDRESS is false.
14686         * config/sh/predicates.md (general_movsrc_operand,
14687         general_movdst_operand): Likewise.
14688
14689 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
14690
14691         * config/aarch64/aarch64-builtins.c
14692         (aarch64_gimple_fold_builtin): Don't fold reduction operations for
14693         BYTES_BIG_ENDIAN.
14694
14695 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
14696
14697         * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
14698         the generated mask based on BYTES_BIG_ENDIAN.
14699         (aarch64_simd_check_vect_par_cnst_half): New.
14700         * config/aarch64/aarch64-protos.h
14701         (aarch64_simd_check_vect_par_cnst_half): New.
14702         * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
14703         the check out to aarch64_simd_check_vect_par_cnst_half.
14704         (vect_par_cnst_lo_half): Likewise.
14705         * config/aarch64/aarch64-simd.md
14706         (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
14707         (move_hi_quad_<mode>): Always generate a low mask.
14708
14709 2014-07-30  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
14710
14711         * doc/invoke.texi (AVR Options): Add documentation about
14712         __AVR_DEVICE_NAME__ built-in macro.
14713
14714 2014-07-31  Charles Baylis  <charles.baylis@linaro.org>
14715
14716         PR target/61948
14717         * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
14718         constraints are satisfied.
14719         (<shift>di3_neon): Likewise.
14720
14721 2014-07-31  Richard Biener  <rguenther@suse.de>
14722
14723         PR tree-optimization/61964
14724         * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
14725         by structural equality.
14726
14727 2014-07-31  Yury Gribov  <y.gribov@samsung.com>
14728
14729         * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
14730         * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
14731         * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
14732         New enums.
14733         * gcc.c (sanitize_spec_function): Support new option.
14734         (SANITIZER_SPEC): Remove now redundant check.
14735         * opts.c (common_handle_option): Support new option.
14736         (finish_options): Check for incompatibilities.
14737         * toplev.c (process_options): Split userspace-specific checks.
14738
14739 2014-07-31  Richard Biener  <rguenther@suse.de>
14740
14741         * lto-streamer.h (struct output_block): Remove global.
14742         (struct data_in): Remove labels, num_named_labels and
14743         num_unnamed_labels.
14744         * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
14745         * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
14746
14747 2014-07-31  Marc Glisse  <marc.glisse@inria.fr>
14748
14749         PR c++/60517
14750         * common.opt (-Wreturn-local-addr): Moved from c.opt.
14751         * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
14752         (isolate_path): New argument to avoid inserting a trap.
14753         (find_implicit_erroneous_behaviour): Handle returning the address
14754         of a local variable.
14755         (find_explicit_erroneous_behaviour): Likewise.
14756
14757 2014-07-31  Bingfeng Mei <bmei@broadcom.com>
14758
14759         PR lto/61868
14760         * toplev.c (init_random_seed): Move piece of code never called to
14761         set_random_seed.
14762         (set_random_seed): see above.
14763
14764 2014-07-31  Tom de Vries  <tom@codesourcery.com>
14765
14766         * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
14767
14768 2014-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
14769
14770         * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
14771         (compute_regs_asm_clobbered): Use extract_asm_operands instead.
14772
14773 2014-07-31  Richard Biener  <rguenther@suse.de>
14774
14775         * data-streamer.h (streamer_write_data_stream): Declare here,
14776         renamed from ...
14777         * lto-streamer.h (lto_output_data_stream): ... this.  Remove.
14778         * lto-cgraph.c (lto_output_node): Adjust.
14779         (lto_output_varpool_node): Likewise.
14780         * data-streamer-out.c (streamer_string_index): Likewise.
14781         (streamer_write_data_stream, lto_append_block): Move from ...
14782         * lto-section-out.c (lto_output_data_stream,
14783         lto_append_block): ... here.
14784
14785 2014-07-30  Mike Stump  <mikestump@comcast.net>
14786
14787         * configure.ac: Also check for popen.
14788         * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
14789         * configure: Regenerate.
14790         * config.in:  Regenerate.
14791
14792 2014-07-30  Martin Jambor  <mjambor@suse.cz>
14793
14794         * tree-sra.c (sra_ipa_modify_assign): Change type of the first
14795         parameter to gimple.
14796
14797 2014-07-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14798
14799         * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
14800         address as second parameter to __tpf_eh_return routine.
14801
14802 2014-07-30  Jiong Wang  <jiong.wang@arm.com>
14803
14804         * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
14805         Thumb2.
14806
14807 2014-07-30  Tom Tromey  <tromey@redhat.com>
14808
14809         PR c/59855
14810         * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
14811         * doc/extend.texi (Type Attributes): Document designated_init
14812         attribute.
14813
14814 2014-07-30  Roman Gareev  <gareevroman@gmail.com>
14815
14816         * graphite-isl-ast-to-gimple.c:
14817         (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
14818         (gcc_expression_from_isl_expression): Pass type to
14819         gcc_expression_from_isl_ast_expr_id.
14820
14821 2014-07-30  Richard Biener  <rguenther@suse.de>
14822
14823         * lto-streamer.h (lto_write_data): New function.
14824         * langhooks.c (lhd_append_data): Do not free block.
14825         * lto-section-out.c (lto_write_data): New function writing
14826         raw data to the current section.
14827         (lto_write_stream): Adjust for langhook semantic change.
14828         (lto_destroy_simple_output_block): Write header directly.
14829         * lto-opts.c (lto_write_options): Write options directly.
14830         * lto-streamer-out.c (produce_asm): Write heaeder directly.
14831         (lto_output_toplevel_asms): Likewise.
14832         (copy_function_or_variable): Copy data directly.
14833         (write_global_references): Output index table directly.
14834         (lto_output_decl_state_refs): Likewise.
14835         (write_symbol): Write data directly.
14836         (produce_symtab): Adjust.
14837         (produce_asm_for_decls): Output header and refs directly.
14838
14839 2014-07-29  Jan Hubicka  <hubicka@ucw.cz>
14840
14841         * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
14842         to speculative_targets
14843         (get_class_context): Fix handling of contextes without outer type;
14844         avoid matching non-polymorphic types in LTO.
14845         (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
14846         parameter to speculative_targetsp; handle speculation.
14847         (dump_possible_polymorphic_call_targets): Update dumping.
14848
14849 2014-07-29  Jan Hubicka  <hubicka@ucw.cz>
14850
14851         * common.opt (Wodr): Enable by default.
14852
14853 2014-07-29  Olivier Hainque  <hainque@adacore.com>
14854
14855         * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
14856
14857 2014-07-29  H.J. Lu  <hongjiu.lu@intel.com>
14858
14859         PR bootstrap/61914
14860         * gengtype.c (strtoken): New function.
14861         (create_user_defined_type): Replace strtok with strtoken.
14862
14863 2014-07-29  Nathan Sidwell  <nathan@acm.org>
14864
14865         * gcov-io.c (gcov_var): Make hidden.
14866         * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
14867         (gcov_do_dump): Declare.
14868         (gcov_output_files): Call gcov_do_dump, not gcov_exit).
14869
14870 2014-07-29  Martin Jambor  <mjambor@suse.cz>
14871
14872         * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
14873         parameter to gimple.
14874         (sra_modify_assign): Likewise.
14875
14876 2014-07-29  Richard Biener  <rguenther@suse.de>
14877
14878         PR middle-end/52478
14879         * expr.c (expand_expr_real_2): Revert last change.
14880
14881 2014-07-28  Jan Hubicka  <hubicka@ucw.cz>
14882
14883         * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
14884         * cgraph.h (cgraph_indirect_call_info): Add speculative data.
14885         * gimple-fold.c (fold_gimple_assign): Fix check for virtual
14886         call.
14887         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
14888         (contains_type_p): Forward declare.
14889         (polymorphic_call_target_hasher::hash): Hash speculative info.
14890         (polymorphic_call_target_hasher::equal): Compare speculative info.
14891         (get_class_context): Handle speuclation.
14892         (contains_type_p): Update.
14893         (get_polymorphic_call_info_for_decl): Update.
14894         (walk_ssa_copies): Break out from ...
14895         (get_polymorphic_call_info): ... here; set speculative context
14896         before giving up.
14897         * ipa-prop.c (ipa_write_indirect_edge_info,
14898         ipa_read_indirect_edge_info): Stream speculative context.
14899         * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
14900         (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
14901         SPECULATIVE_MAYBE_DERIVED_TYPE).
14902         (possible_polymorphic_call_targets overriders): Update.
14903         (dump_possible_polymorphic_call_targets overriders): Update.
14904         (dump_possible_polymorphic_call_target_p overriders): Update.
14905
14906 2014-07-28  Jan Hubicka  <hubicka@ucw.cz>
14907
14908         * gimple-fold.c (fold_gimple_assign): Fix condition guarding
14909         ipa-devirt path; fix thinko there.
14910
14911 2014-07-28  Trevor Saunders  <tsaunders@mozilla.com>
14912
14913         * config/i386/i386.c (ix86_return_in_memory): Replace one
14914         ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
14915
14916 2014-07-28  Marek Polacek  <polacek@redhat.com>
14917
14918         * doc/invoke.texi (-Wno-odr): Fix @item entry.  Tweak wording.
14919
14920 2014-07-28  Peter Bergner  <bergner@vnet.ibm.com>
14921
14922         * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
14923         * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
14924         * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
14925         (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
14926         (USE_LD_AS_NEEDED): Likewise.
14927         (ASM_APP_ON): Likewise.
14928         (ASM_APP_OFF): Likewise.
14929         (TARGET_POSIX_IO): Likewise.
14930         * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
14931         (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
14932         (USE_LD_AS_NEEDED): Likewise.
14933         (ASM_APP_ON): Likewise.
14934         (ASM_APP_OFF): Likewise.
14935         (TARGET_POSIX_IO): Likewise.
14936
14937 2014-07-28  Eric Botcazou  <ebotcazou@adacore.com>
14938
14939         PR middle-end/61734
14940         * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
14941         operators other than the equality operators.
14942
14943 2014-07-28  Richard Biener  <rguenther@suse.de>
14944
14945         PR middle-end/52478
14946         * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
14947         sure to register SImode ones, not only >= word_mode ones.
14948         * expr.c (expand_expr_real_2): When expanding -ftrapv
14949         binops do not use OPTAB_LIB_WIDEN.
14950
14951 2014-07-28  Richard Sandiford  <rdsandiford@googlemail.com>
14952
14953         PR middle-end/61919
14954         * tree-outof-ssa.c (insert_partition_copy_on_edge)
14955         (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
14956         (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
14957         inserting them in the insn stream.
14958
14959 2014-07-28  Marek Polacek  <polacek@redhat.com>
14960
14961         PR middle-end/61913
14962         * common.opt (Wodr): Add Var.
14963
14964 2014-07-28  Richard Biener  <rguenther@suse.de>
14965
14966         PR tree-optimization/61921
14967         * tree-ssa-structalias.c (create_variable_info_for_1): Check
14968         if there is a varpool node before dereferencing it.
14969
14970 2014-07-28  Roman Gareev  <gareevroman@gmail.com>
14971
14972         * graphite-sese-to-poly.c:
14973         (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
14974         id of the pbb), which contains pointer to the pbb1.
14975
14976         * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
14977
14978 2014-07-28  Roman Gareev  <gareevroman@gmail.com>
14979
14980         * graphite-isl-ast-to-gimple.c:
14981         (graphite_create_new_guard): New function.
14982         (translate_isl_ast_node_if): New function.
14983         (translate_isl_ast): Add calling of translate_isl_ast_node_if.
14984
14985         * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
14986
14987 2014-07-27  Anthony Green  <green@moxielogic.com>
14988
14989         * config.gcc: Add moxie-*-moxiebox* configuration.
14990         * config/moxie/moxiebox.h: New file.
14991
14992 2014-07-26  Andrew Pinski  <apinski@cavium.com>
14993
14994         * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
14995         from the read only register.
14996
14997 2014-07-26  Richard Sandiford  <rdsandiford@googlemail.com>
14998
14999         * ira-costs.c (find_costs_and_classes): For -O0, use the best class
15000         as the allocation class if it isn't likely to be spilled.
15001
15002 2014-07-26  Richard Sandiford  <rdsandiford@googlemail.com>
15003
15004         * rtl.h (tls_referenced_p): Declare.
15005         * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
15006         * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
15007         (mips_cannot_force_const_mem): Use tls_referenced_p.
15008         * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
15009         * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
15010         instead of pa_tls_referenced_p.
15011         * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
15012         (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
15013         (pa_legitimate_constant_p): Likewise.
15014         (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
15015         * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
15016         (rs6000_cannot_force_const_mem, rs6000_emit_move)
15017         (rs6000_address_for_altivec): Use tls_referenced_p instead of
15018         rs6000_tls_referenced_p.
15019         (rs6000_tls_symbol_ref_1): Delete.
15020
15021 2014-07-26  Marc Glisse  <marc.glisse@inria.fr>
15022
15023         PR target/44551
15024         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
15025         Optimize inverse of a VEC_CONCAT.
15026
15027 2014-07-25  Xinliang David Li  <davidxl@google.com>
15028
15029         * params.def: New parameter.
15030         * coverage.c (get_coverage_counts): Check new flag.
15031         (coverage_compute_profile_id): Check new flag.
15032         (coverage_begin_function): Check new flag.
15033         (coverage_end_function): Check new flag.
15034         * value-prof.c (coverage_node_map_initialized_p): New function.
15035         (init_node_map): Populate map with all functions.
15036         * doc/invoke.texi: Document new parameter.
15037
15038 2014-07-25  Jan Hubicka  <hubicka@ucw.cz>
15039             Richard Biener <rguenther@suse.de>
15040
15041         * lto-streamer-out.c (struct sccs): Turn to ...
15042         (class DFS): ... this one; refactor the DFS walk so it can
15043         be re-done on per-SCC basis.
15044         (DFS::DFS): New constructor.
15045         (DFS::~DFS): New destructor.
15046         (hash_tree): Add new MAP argument holding in-SCC hash values;
15047         remove POINTER_TYPE hashing hack.
15048         (scc_entry_compare): Rename to ...
15049         (DFS::scc_entry_compare): ... this one.
15050         (hash_scc): Rename to ...
15051         (DFS::hash_scc): ... this one; pass output_block instead
15052         of streamer_cache; work harder to get unique and stable SCC
15053         hashes.
15054         (DFS_write_tree): Rename to ...
15055         (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
15056         (lto_output_tree): Update.
15057
15058 2014-07-25  Andi Kleen  <ak@linux.intel.com>
15059
15060         * lto-streamer-out.c (hash_tree): Convert to inchash.
15061
15062 2014-07-25  Andi Kleen  <ak@linux.intel.com>
15063
15064         * tree.c (build_type_attribute_qual_variant): Use inchash.
15065         (type_hash_list): Dito.
15066         (attribute_hash_list): Dito
15067         (iterative_hstate_expr): Dito.
15068         (iterative_hash_expr): Dito.
15069         (build_range_type_1): Dito.
15070         (build_array_type_1): Dito.
15071         (build_function_type): Dito.
15072         (build_method_type_directly): Dito.
15073         (build_offset_type): Dito.
15074         (build_complex_type): Dito.
15075         (make_vector_type): Dito.
15076         * tree.h (iterative_hash_expr): Add compat wrapper.
15077         (iterative_hstate_expr): Add.
15078
15079 2014-07-25  Andi Kleen  <ak@linux.intel.com>
15080
15081         * Makefile.in (OBJS): Add inchash.o.
15082         (PLUGIN_HEADERS): Add inchash.h.
15083         * ipa-devirt.c: Include inchash.h.
15084         * lto-streamer-out.c: Dito.
15085         * tree-ssa-dom.c: Dito.
15086         * tree-ssa-pre.c: Dito.
15087         * tree-ssa-sccvn.c: Dito.
15088         * tree-ssa-tail-merge.c: Dito.
15089         * asan.c: Dito.
15090         * tree.c (iterative_hash_hashval_t): Move to ...
15091         (iterative_hash_host_wide_int): Move to ...
15092         * inchash.c: Here. New file.
15093         * tree.h (iterative_hash_hashval_t): Move to ...
15094         (iterative_hash_host_wide_int): Move to ...
15095         * inchash.h: Here. New file.
15096
15097 2014-07-25  Richard Biener  <rguenther@suse.de>
15098
15099         PR middle-end/61762
15100         PR middle-end/61894
15101         * fold-const.c (native_encode_int): Add and handle offset
15102         parameter to do partial encodings of expr.
15103         (native_encode_fixed): Likewise.
15104         (native_encode_real): Likewise.
15105         (native_encode_complex): Likewise.
15106         (native_encode_vector): Likewise.
15107         (native_encode_string): Likewise.
15108         (native_encode_expr): Likewise.
15109         * fold-const.c (native_encode_expr): Add offset parameter
15110         defaulting to -1.
15111         * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
15112         (fold_ctor_reference): Handle all reads from tcc_constant
15113         ctors.
15114
15115 2014-07-25  Richard Biener  <rguenther@suse.de>
15116
15117         * tree-inline.c (estimate_move_cost): Mark speed_p argument
15118         as possibly unused.
15119
15120 2014-07-23  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
15121
15122         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
15123
15124 2014-07-24  Kyle McMartin  <kyle@redhat.com>
15125
15126         * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
15127
15128 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15129
15130         * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
15131         Add prototype.
15132         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
15133         function.
15134         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
15135         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
15136         * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
15137
15138 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15139
15140         * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
15141         and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
15142         aggregate types.  Instead, *all* aggregate types, except for single-
15143         element or homogeneous float/vector aggregates, are quadword-aligned
15144         if required by their type alignment.  Issue -Wpsabi note when a type
15145         is now treated differently than before.
15146
15147 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15148
15149         * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
15150         does not fit fully into floating-point registers, and there is still
15151         space in the register parameter area, use GPRs to pass those parts
15152         of the argument.  Issue -Wpsabi note if any parameter is now treated
15153         differently than before.
15154         (rs6000_arg_partial_bytes): Update.
15155
15156 2014-07-24  Uros Bizjak  <ubizjak@gmail.com>
15157
15158         * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
15159
15160 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
15161
15162         * rtl.h (target_rtl): Remove lang_dependent_initialized.
15163         * toplev.c (initialize_rtl): Don't use it.  Move previously
15164         "language-dependent" calls to...
15165         (backend_init): ...here.
15166         (lang_dependent_init_target): Don't set lang_dependent_initialized.
15167         Assert that RTL initialization hasn't happend yet.
15168
15169 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
15170
15171         PR rtl-optimization/61629
15172         * reginfo.c (reinit_regs): Only call ira_init and recog_init if
15173         they have already been initialized.
15174
15175 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
15176
15177         PR middle-end/61268
15178         * function.c (assign_parm_setup_reg): Prevent invalid sharing of
15179         DECL_INCOMING_RTL and entry_parm.
15180         (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
15181         * calls.c (load_register_parameters): Likewise argument values.
15182         (emit_library_call_value_1, store_one_arg): Likewise argument
15183         save areas.
15184         * config/i386/i386.c (assign_386_stack_local): Likewise the local
15185         stack slot.
15186         * explow.c (validize_mem): Modify the argument in-place.
15187
15188 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
15189
15190         * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
15191         (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
15192
15193 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
15194
15195         * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
15196         (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
15197
15198 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
15199
15200         * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
15201         (aarch64_save_callee_saves): New parameter "skip_wb".
15202         (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
15203
15204 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
15205
15206         * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
15207         "wb_candidate2".
15208         * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
15209
15210 2014-07-24  Roman Gareev  <gareevroman@gmail.com>
15211
15212         * graphite-isl-ast-to-gimple.c:
15213         (graphite_create_new_loop): Add calling of isl_id_free to properly
15214         decrement reference counts.
15215
15216         * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
15217
15218 2014-07-24  Martin Liska  <mliska@suse.cz>
15219         * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
15220         function used.
15221         * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
15222         (rs6000_code_end): Likewise.
15223
15224 2014-07-24  Martin Liska  <mliska@suse.cz>
15225
15226         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
15227         symtab_node funtion used.
15228         (rs6000_xcoff_declare_object_name): Likewise.
15229
15230 2014-07-24  Martin Liska  <mliska@suse.cz>
15231
15232         * cgraphunit.c (compile): Correct function used.
15233
15234 2014-07-24  Jan Hubicka  <hubicka@ucw.cz>
15235
15236         * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
15237         as non-indexable.
15238
15239 2014-07-24  Jan Hubicka  <hubicka@ucw.cz>
15240
15241         PR lto/61802
15242         * varasm.c (bss_initializer_p): Handle offlined ctors.
15243         (align_variable, get_variable_align): Likewise.
15244         (make_decl_one_only): Likewise.
15245         (default_binds_local_p_1): Likewise.
15246         (decl_binds_to_current_def_p): Likewise.
15247         (get_variable_section): Get constructor if it is offlined.
15248         (assemble_variable_contents): Sanity check that the caller
15249         streamed in the ctor in LTO.
15250
15251 2014-07-24  Roman Gareev  <gareevroman@gmail.com>
15252
15253         * graphite-isl-ast-to-gimple.c:
15254         (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
15255         (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
15256         isl_ast_op_pdiv_r to the different case.
15257
15258         * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
15259
15260 2014-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15261
15262         PR middle-end/61876
15263         * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
15264         when flag_errno_math is on.
15265
15266 2014-07-24  Martin Liska  <mliska@suse.cz>
15267
15268         * cgraph.h (varpool_node):
15269         (availability get_availability (void)):
15270         created from cgraph_variable_initializer_availability
15271         (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
15272         created from: cgraph_variable_initializer_availability
15273         (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
15274         (void finalize_named_section_flags (void)):
15275         created from varpool_finalize_named_section_flags
15276         (bool assemble_decl (void)): created from varpool_assemble_decl
15277         (void analyze (void)): created from varpool_analyze_node
15278         (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
15279         void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
15280         (void remove_initializer (void)): created from varpool_remove_initializer
15281         (tree get_constructor (void)): created from varpool_get_constructor
15282         (bool externally_visible_p (void)): created from varpool_externally_visible_p
15283         (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
15284         (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
15285         (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
15286         (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
15287         (static void finalize_decl (tree decl)): created from varpool_finalize_decl
15288         (static bool output_variables (void)): created from varpool_output_variables
15289         (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
15290         created from varpool_extra_name_alias
15291         (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
15292         (static void dump_varpool (FILE *f)): created from dump_varpool
15293         (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
15294         (static varpool_node *create_empty (void)): created from varpool_create_empty_node
15295         (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
15296         (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
15297         (void assemble_aliases (void)): created from assemble_aliases
15298
15299 2014-07-24  Martin Liska  <mliska@suse.cz>
15300
15301         * cgraph.h (symtab_node):
15302         (void register_symbol (void)): created from symtab_register_node
15303         (void remove (void)): created from symtab_remove_node
15304         (void dump (FILE *f)): created from dump_symtab_node
15305         (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
15306         (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
15307         (struct ipa_ref *add_reference (symtab_node *referred_node,
15308         enum ipa_ref_use use_type)): created from add_reference
15309         (struct ipa_ref *add_reference (symtab_node *referred_node,
15310         enum ipa_ref_use use_type, gimple stmt)): created from add_reference
15311         (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
15312         gimple stmt)): created from maybe_add_reference
15313         (bool semantically_equivalent_p (symtab_node *target)): created from
15314         symtab_semantically_equivalent_p
15315         (void remove_from_same_comdat_group (void)): created from
15316         remove_from_same_comdat_group
15317         (void add_to_same_comdat_group (symtab_node *old_node)): created from
15318         symtab_add_to_same_comdat_group
15319         (void dissolve_same_comdat_group_list (void)): created from
15320         symtab_dissolve_same_comdat_group_list
15321         (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
15322         (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
15323         created from symtab_alias_ultimate_target
15324         (inline symtab_node *next_defined_symbol (void)): created from
15325         symtab_next_defined_symbol
15326         (bool resolve_alias (symtab_node *target)): created from
15327         symtab_resolve_alias
15328         (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
15329         void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
15330         (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
15331         (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
15332         (void set_section (const char *section)): created from set_section_1
15333         (enum availability get_availability (void)): created from symtab_node_availability
15334         (void make_decl_local (void)): created from symtab_make_decl_local
15335         (bool real_symbol_p (void)): created from symtab_read_node
15336         (can_be_discarded_p (void)): created from symtab_can_be_discarded
15337         (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
15338         (inline bool in_same_comdat_group_p (symtab_node *target)): created from
15339         symtab_in_same_comdat_p;
15340         (bool address_taken_from_non_vtable_p (void)): created from
15341         address_taken_from_non_vtable_p
15342         (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
15343         (static void dump_table (FILE *)): created from dump_symtab
15344         (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
15345         (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
15346         (static bool used_from_object_file_p_worker (symtab_node *node)): created from
15347         symtab_used_from_object_file_p
15348         (void dump_base (FILE *)): created from dump_symtab_base
15349         (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
15350         (void unregister (void)): created from symtab_unregister_node
15351         (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
15352         (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
15353         (static bool noninterposable_alias (symtab_node *node, void *data)): created from
15354         symtab_nonoverwritable_alias_1
15355         * cgraph.h (cgraph_node):
15356         (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
15357         created from cgraph_remove_node_and_inline_clones
15358         (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
15359         (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
15360         bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
15361         (cgraph_node *function_symbol (enum availability *avail = NULL)):
15362         created from cgraph_function_node
15363         (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
15364         vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
15365         struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
15366         created from cgraph_create_clone
15367         (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
15368         vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
15369         created from cgraph_create_virtual_clone
15370         (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
15371         (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
15372         bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
15373         (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
15374         vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
15375         bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
15376         created from cgraph_function_version_info
15377         (struct cgraph_function_version_info *insert_new_function_version (void)):
15378         created from insert_new_cgraph_node_version
15379         (struct cgraph_function_version_info *function_version (void)): created from
15380         get_cgraph_node_version
15381         (void analyze (void)): created from analyze_function
15382         (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
15383         HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
15384         tree real_alias) cgraph_add_thunk
15385         (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
15386         (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
15387         created from cgraph_function_or_thunk_node
15388         (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
15389         created from expand_thunk
15390         (void reset (void)): created from cgraph_reset_node
15391         (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
15392         (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
15393         (void remove (void)): created from cgraph_remove_node
15394         (void dump (FILE *f)): created from dump_cgraph_node
15395         (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
15396         (bool get_body (void)): created from cgraph_get_body
15397         (void release_body (void)): created from cgraph_release_function_body
15398         (void unnest (void)): created from cgraph_unnest_node
15399         (void make_local (void)): created from cgraph_make_node_local
15400         (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
15401         (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
15402         gcov_type count, int freq)): created from cgraph_create_edge
15403         (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
15404         gcov_type count, int freq)): created from cgraph_create_indirect_edge
15405         (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
15406         gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
15407         created from cgraph_create_edge_including_clones
15408         (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
15409         (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
15410         (void remove_callers (void)): created from cgraph_node_remove_callers
15411         (void remove_callees (void)): created from cgraph_node_remove_callees
15412         (enum availability get_availability (void)): created from cgraph_function_body_availability
15413         (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
15414         (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
15415         (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
15416         (void call_duplication_hooks (cgraph_node *node2)): created from
15417         cgraph_call_node_duplication_hooks
15418         (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
15419         void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
15420         (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
15421         void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
15422         (void call_function_insertion_hooks (void)):
15423         created from cgraph_call_function_insertion_hooks
15424         (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
15425         (bool local_p (void)): created from cgraph_local_node
15426         (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
15427         (bool cannot_return_p (void)): created from cgraph_node_cannot_return
15428         (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
15429         (inline bool only_called_directly_or_aliased_p (void)):
15430         created from cgraph_only_called_directly_or_aliased_p
15431         (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
15432         created from cgraph_will_be_removed_from_program_if_no_direct_calls
15433         (bool can_remove_if_no_direct_calls_and_refs_p (void)):
15434         created from cgraph_can_remove_if_no_direct_calls_and_refs_p
15435         (bool can_remove_if_no_direct_calls_p (void)):
15436         created from cgraph_can_remove_if_no_direct_calls_p
15437         (inline bool has_gimple_body_p (void)):
15438         created from cgraph_function_with_gimple_body_p
15439         (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
15440         (static void dump_cgraph (FILE *f)): created from dump_cgraph
15441         (static inline void debug_cgraph (void)): created from debug_cgraph
15442         (static void record_function_versions (tree decl1, tree decl2)):
15443         created from record_function_versions
15444         (static void delete_function_version (tree decl)):
15445         created from delete_function_version
15446         (static void add_new_function (tree fndecl, bool lowered)):
15447         created from cgraph_add_new_function
15448         (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
15449         (static cgraph_node * create (tree decl)): created from cgraph_create_node
15450         (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
15451         (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
15452         (static cgraph_node *get_for_asmname (tree asmname)):
15453         created from cgraph_node_for_asm
15454         (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
15455         created from cgraph_same_body_alias
15456         (static bool used_from_object_file_p_worker (cgraph_node *node,
15457         void *): new function
15458         (static bool non_local_p (cgraph_node *node, void *)):
15459         created from cgraph_non_local_node_p_1
15460         (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
15461         created from verify_cgraph
15462         (static bool make_local (cgraph_node *node, void *)):
15463         created from cgraph_make_node_local
15464         (static cgraph_node *create_alias (tree alias, tree target)):
15465         created from cgraph_create_function_alias
15466         (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
15467         gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
15468         created from cgraph_create_edge_1
15469         * cgraph.h (varpool_node):
15470         (void remove (void)): created from varpool_remove_node
15471         (void dump (FILE *f)): created from dump_varpool_node
15472
15473 2014-07-24  Richard Biener  <rguenther@suse.de>
15474
15475         PR ipa/61823
15476         * tree-ssa-structalias.c (create_variable_info_for_1):
15477         Use varpool_get_constructor.
15478         (create_variable_info_for): Likewise.
15479
15480 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
15481
15482         * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
15483         subtract outgoing area size when restoring stack_pointer_rtx.
15484
15485 2014-07-24  Nick Clifton  <nickc@redhat.com>
15486
15487         * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
15488         that operations are taking place in parallel.
15489         * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
15490
15491 2014-07-24  Thomas Schwinge  <thomas@codesourcery.com>
15492
15493         * omp-low.c (extract_omp_for_data): Add missing break statement.
15494
15495 2014-07-24  Richard Biener  <rguenther@suse.de>
15496
15497         * tree-inline.h (estimate_move_cost): Add speed_p parameter.
15498         * tree-inline.c (estimate_move_cost): Add speed_p parameter
15499         and adjust MOVE_RATIO query accordingly.
15500         (estimate_num_insns): Adjust callers.
15501         * ipa-prop.c (ipa_populate_param_decls): Likewise.
15502         * ipa-cp.c (gather_context_independent_values,
15503         estimate_local_effects): Likewise.
15504         * ipa-split.c (consider_split): Likewise.
15505
15506 2014-07-24  Trevor Saunders  <tsaunders@mozilla.com>
15507
15508         * config/i386/driver-i386.c: Remove names of unused arguments and
15509         unnecessary unused attributes.
15510         * config/i386/host-mingw32.c: Likewise.
15511         * config/i386/i386.c: Likewise.
15512         * config/i386/winnt-stubs.c: Likewise.
15513         * config/i386/winnt.c: Likewise.
15514
15515 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
15516
15517         * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
15518         (aarch64_gen_loadwb_pair): New helper function.
15519         (aarch64_expand_epilogue): Simplify code using new helper functions.
15520         * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
15521
15522 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
15523
15524         * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
15525         (aarch64_gen_storewb_pair): New helper function.
15526         (aarch64_expand_prologue): Simplify code using new helper functions.
15527         * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
15528
15529 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
15530
15531         * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
15532         Rename to aarch64_save_callee_saves, remove restore code.
15533         (aarch64_restore_callee_saves): New function.
15534
15535 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
15536
15537         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
15538         (aarch64_save_callee_saves): New function to handle reg save
15539         for both core and vectore regs.
15540
15541 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
15542
15543         * config/aarch64/aarch64.c (aarch64_gen_load_pair)
15544         (aarch64_gen_store_pair): New helper function.
15545         (aarch64_save_or_restore_callee_save_registers)
15546         (aarch64_save_or_restore_fprs): Use new helper functions.
15547
15548 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
15549
15550         * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
15551         (aarch64_save_or_restore_callee_save_registers)
15552         (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
15553
15554 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
15555
15556         * config/aarch64/aarch64.c
15557         (aarch64_save_or_restore_callee_save_registers)
15558         (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
15559
15560 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
15561
15562         * config/aarch64/aarch64.c
15563         (aarch64_save_or_restore_callee_save_registers)
15564         (aarch64_save_or_restore_fprs): Remove 'increment'.
15565
15566 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
15567
15568         * config/aarch64/aarch64.c
15569         (aarch64_save_or_restore_callee_save_registers)
15570         (aarch64_save_or_restore_fprs): Use register offset in
15571         cfun->machine->frame.reg_offset.
15572
15573 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
15574
15575         * config/aarch64/aarch64.c
15576         (aarch64_save_or_restore_callee_save_registers)
15577         (aarch64_save_or_restore_fprs): Remove base_rtx.
15578
15579 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
15580
15581         * config/aarch64/aarch64.c
15582         (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
15583         to 'start_offset'.  Remove local variable 'start_offset'.
15584
15585 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
15586
15587         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
15588         type to HOST_WIDE_INT.
15589
15590 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
15591
15592         * config/aarch64/aarch64.c (aarch64_expand_prologue)
15593         (aarch64_save_or_restore_fprs)
15594         (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
15595
15596 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
15597
15598         * config/arm/t-rtems-eabi: Add
15599         mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
15600         mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
15601         mbig-endian/mthumb/march=armv7-r, and
15602         mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
15603         multilibs.
15604
15605 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
15606             Chris Johns <chrisj@rtems.org>
15607             Joel Sherrill <joel.sherrill@oarcorp.com>
15608
15609         * config.gcc: Add nios2-*-rtems*.
15610         * config/nios2/rtems.h: New file.
15611         * gcc/config/nios2/t-rtems: New file.
15612
15613 2014-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
15614
15615         PR target/61396
15616         * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
15617         constant numbers, not general constants.
15618         (rs6000_expand_vector_init): Ditto.
15619
15620 2014-07-23  Nathan Sidwell  <nathan@acm.org>
15621
15622         * gcov-tool.c (gcov_list): Declare here.
15623         (set_gcov_list): Remove.
15624         (gcov_output_files): Set gcov_list directly.
15625
15626 2014-07-23  Host Schirmeier  <horst@schirmeier.com>
15627
15628         * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
15629
15630 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
15631
15632         * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
15633         callee-saved registers are available for padding purpose
15634         and r3 is not mandatory, then prefer use those callee-saved
15635         instead of r3.
15636
15637 2014-07-23  Richard Biener  <rguenther@suse.de>
15638
15639         * params.def (PARAM_MAX_COMBINE_INSNS): New.
15640         * combine.c: Include statistics.h and params.h.
15641         (combine_instructions): Guard three and four insn combines
15642         with max-combine-insns value.  Record statistics for combines
15643         performed.
15644         * doc/invoke.texi (max-combine-insns): Document new param.
15645
15646 2014-07-23  Roman Gareev  <gareevroman@gmail.com>
15647
15648         * graphite-isl-ast-to-gimple.c:
15649         (translate_isl_ast_node_block): New function.
15650         (translate_isl_ast): Add calling of translate_isl_ast_node_block.
15651
15652         * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
15653         * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
15654
15655 2014-07-23  Roman Gareev  <gareevroman@gmail.com>
15656
15657         * graphite-isl-ast-to-gimple.c:
15658         (get_max_schedule_dimensions): New function.
15659         (extend_schedule): Likewise.
15660         (generate_isl_schedule): Add calling of extend_schedule and
15661         get_max_schedule_dimensions.
15662
15663 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15664
15665         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
15666         (case UNSPEC): Handle UNSPEC_RBIT.
15667
15668 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15669
15670         * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
15671         (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
15672
15673 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15674
15675         * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
15676
15677 2014-07-22  Roman Gareev  <gareevroman@gmail.com>
15678
15679         * graphite-isl-ast-to-gimple.c:
15680         Add inclusion of gimple-ssa.h, tree-into-ssa.h.
15681         (ivs_params_clear):
15682         (build_iv_mapping): New function.
15683         (translate_isl_ast_node_user): Likewise.
15684         (translate_isl_ast): Add calling of translate_isl_ast_node_user.
15685
15686         * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
15687         * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
15688         * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
15689
15690 2014-07-21  Bin Cheng  <bin.cheng@arm.com>
15691
15692         PR target/55701
15693         * config/arm/arm.md (setmem): New pattern.
15694         * config/arm/arm-protos.h (struct tune_params): New fields.
15695         (arm_gen_setmem): New prototype.
15696         * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
15697         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
15698         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
15699         (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
15700         (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
15701         (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
15702         (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
15703         (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
15704         (arm_const_inline_cost): New function.
15705         (arm_block_set_max_insns): New function.
15706         (arm_block_set_non_vect_profit_p): New function.
15707         (arm_block_set_vect_profit_p): New function.
15708         (arm_block_set_unaligned_vect): New function.
15709         (arm_block_set_aligned_vect): New function.
15710         (arm_block_set_unaligned_non_vect): New function.
15711         (arm_block_set_aligned_non_vect): New function.
15712         (arm_block_set_vect, arm_gen_setmem): New functions.
15713
15714 2014-07-21  Bin Cheng  <bin.cheng@arm.com>
15715
15716         * config/arm/arm.c (output_move_neon): Handle REG explicitly.
15717
15718 2014-07-21  Uros Bizjak  <ubizjak@gmail.com>
15719
15720         PR target/61855
15721         * config/i386/avx512fintrin.h: Move constants for mantissa extraction
15722         out of #ifdef __OPTIMIZE__.
15723
15724 2014-07-20  Eric Botcazou  <ebotcazou@adacore.com>
15725
15726         * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
15727         different trapping status if -fnon-call-exceptions is enabled.
15728
15729 2014-07-20  Eric Botcazou  <ebotcazou@adacore.com>
15730
15731         * expr.c (store_field): Handle VOIDmode for calls that return values
15732         in multiple locations.
15733
15734 2014-07-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15735
15736         * config/rs6000/altivec.md (unspec enum):  Fix typo in UNSPEC_VSLDOI.
15737         (altivec_vsldoi_<mode>): Likewise.
15738
15739 2014-07-20  Roman Gareev  <gareevroman@gmail.com>
15740
15741         * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
15742         to the number of characters in the line.
15743
15744 2014-07-20  Roman Gareev  <gareevroman@gmail.com>
15745
15746         * graphite-isl-ast-to-gimple.c: Add using of
15747         build_nonstandard_integer_type instead of int128_integer_type_node.
15748
15749 2014-07-19  Eric Botcazou  <ebotcazou@adacore.com>
15750
15751         * toplev.c (output_stack_usage): Adjust the location of the warning.
15752
15753 2014-07-19  Daniel Cederman  <cederman@gaisler.com>
15754
15755         * config/sparc/sync.md (*membar_storeload_leon3): New insn.
15756         (*membar_storeload): Disable for LEON3.
15757
15758 2014-07-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15759
15760         PR rtl-optimization/61461
15761         * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
15762
15763 2014-07-18  Uros Bizjak  <ubizjak@gmail.com>
15764
15765         PR target/61794
15766         * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
15767         Fix instruction constraint.
15768         (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
15769
15770 2014-07-18  Jonathan Wakely  <jwakely@redhat.com>
15771
15772         * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
15773
15774 2014-07-18  Chung-Ju Wu  <jasonwucj@gmail.com>
15775
15776         * config/nds32/nds32.c (nds32_can_eliminate): Follow the
15777         GNU coding standards.
15778         (nds32_register_move_cost): Likewise.
15779         (nds32_memory_move_cost): Likewise.
15780         (nds32_address_cost): Likewise.
15781
15782 2014-07-18  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
15783
15784         * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
15785
15786 2014-07-17  John David Anglin  <danglin@gcc.gnu.org>
15787
15788         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
15789         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
15790         and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
15791         (HAVE_sync_compare_and_swapqi): Define.
15792         (HAVE_sync_compare_and_swaphi): Likewise.
15793         (HAVE_sync_compare_and_swapsi): Likewise.
15794
15795 2014-07-17  Richard Sandiford  <rdsandiford@googlemail.com>
15796
15797         * config/mips/p5600.md: Add missing cpu tests.
15798
15799 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15800
15801         * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
15802         (vmla_f64): Likewise.
15803         (vfms_f64): Likewise.
15804         (vmls_f64): Likewise.
15805
15806 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15807
15808         * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
15809         (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
15810
15811 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15812
15813         * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
15814         (vmlal_high_lane_s32): Likewise.
15815         (vmlal_high_lane_u16): Likewise.
15816         (vmlal_high_lane_u32): Likewise.
15817         (vmlsl_high_lane_s16): Likewise.
15818         (vmlsl_high_lane_s32): Likewise.
15819         (vmlsl_high_lane_u16): Likewise.
15820         (vmlsl_high_lane_u32): Likewise.
15821
15822 2014-07-17  Terry Guo  <terry.guo@arm.com>
15823
15824         * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
15825         (alus_reg): Renamed to alus_sreg.
15826         * config/arm/arm-fixed.md: Change type of non-dsp instructions
15827         from alu_reg to alu_sreg.  Change type of dsp instructions from
15828         alu_reg to alu_dsp_reg.
15829         * config/arm/thumb1.md: Likewise.
15830         * config/arm/thumb2.md: Likewise.
15831         * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
15832         * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
15833         with alu_sreg and alus_sreg.
15834         * config/arm/arm1026ejs.md (alu_op): Likewise.
15835         * config/arm/arm1136jfs.md (11_alu_op): Likewise.
15836         * config/arm/arm926ejs.md (9_alu_op): Likewise.
15837         * config/arm/fa526.md (526_alu_op): Likewise.
15838         * config/arm/fa606te.md (606te_alu_op): Likewise.
15839         * config/arm/fa626te.md (626te_alu_op): Likewise.
15840         * config/arm/fa726te.md (726te_alu_op): Likewise.
15841         * config/arm/fmp626.md (mp626_alu_op): Likewise.
15842         * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
15843         alu_sreg, alu_dsp_reg and alus_sreg.
15844         * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
15845         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
15846         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
15847         * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
15848         * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
15849         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
15850         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
15851         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
15852         * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
15853         * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
15854         subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
15855         *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
15856         (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
15857         sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
15858         subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
15859         alus_reg to alus_sreg.
15860
15861 2014-07-17  Andreas Schwab  <schwab@linux-m68k.org>
15862
15863         * real.c (encode_ieee_extended_motorola): Clear integer bit in the
15864         infinity format.
15865
15866 2014-07-17  Richard Biener  <rguenther@suse.de>
15867
15868         PR rtl-optimization/61801
15869         * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
15870         don't set reg_pending_barrier if it appears in a debug-insn.
15871
15872 2014-07-16  DJ Delorie  <dj@redhat.com>
15873
15874         * config/rx/rx.c (rx_option_override): Fix alignment values.
15875         (rx_align_for_label): Likewise.
15876
15877 2014-07-17  Hans-Peter Nilsson  <hp@axis.com>
15878
15879         PR target/61737.
15880         * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
15881         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
15882         (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
15883         functions.
15884         (cris_print_index, cris_print_operand, cris_constant_index_p)
15885         (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
15886         (cris_address_cost): Ditto last CONSTANT_P.
15887         (cris_symbol_type_of): Rename from cris_pic_symbol_type_of.  All
15888         callers changed.  Yield cris_offsettable_symbol for non-PIC
15889         constant symbolic expressions including labels.  Yield cris_unspec
15890         for all unspecs.
15891         (cris_expand_pic_call_address): New parameter MARKERP.  Set its
15892         target to pic_offset_table_rtx for calls that will likely go
15893         through PLT, const0_rtx when they can't.  All callers changed.
15894         Assert flag_pic.  Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
15895         symbolic expressions to be PICified.  Remove second, redundant,
15896         assert on can_create_pseudo_p returning non-zero.  Use
15897         replace_equiv_address_nv, not replace_equiv_address, for final
15898         operand update.
15899         * config/cris/cris.md ("movsi"): Move variable t to pattern
15900         toplevel. Adjust assert for new cris_symbol_type member.  Use
15901         CONSTANT_P instead of CONSTANT_ADDRESS_P.
15902         ("*movsi_internal") <case 9>: Make check for valid unspec operands
15903         for lapc stricter.
15904         <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
15905         ("call", "call_value"): Use second incoming operand as a marker
15906         for pic-offset-table-register being used.
15907         ("*expanded_call_non_v32", "*expanded_call_v32")
15908         ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
15909         second incoming operand to CALL, match cris_call_type_marker.
15910         ("*expanded_call_value_side"): Ditto.  Disable before reload_completed.
15911         ("*expanded_call_side"): Ditto.  Fix typo in comment.
15912         (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
15913         CONSTANT_P.
15914         * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
15915         * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
15916         (enum cris_symbol_type): Rename from cris_pic_symbol_type.  All
15917         users changed.  Add members cris_offsettable_symbol and cris_unspec.
15918         (cris_symbol_type): Rename from cris_pic_symbol_type.
15919         * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
15920         just CONSTANT_P.
15921         * config/cris/cris-protos.h (cris_symbol_type_of,
15922         cris_expand_pic_call_address): Adjust prototypes.
15923         (cris_legitimate_constant_p): New prototype.
15924
15925         * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
15926         an existing tmake_file.  Don't add t-slibgcc and t-linux.
15927
15928 2014-07-17  Jason Merrill  <jason@redhat.com>
15929
15930         PR c++/61623
15931         * symtab.c (symtab_remove_from_same_comdat_group): Also
15932         set_comdat_group to NULL_TREE.
15933         (verify_symtab): Fix diagnostic.
15934
15935 2014-07-16  David Wohlferd  <dw@LimeGreenSocks.com>
15936
15937         PR target/61662
15938         * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
15939
15940 2014-07-16  Dodji Seketeli  <dodji@redhat.com>
15941
15942         Support location tracking for built-in macro tokens
15943         * input.h (is_location_from_builtin_token): New function declaration.
15944         * input.c (is_location_from_builtin_token): New function definition.
15945         * toplev.c (general_init): Tell libcpp what the pre-defined
15946         spelling location for built-in tokens is.
15947
15948 2014-07-16  Jakub Jelinek  <jakub@redhat.com>
15949
15950         * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
15951         on the FUNCTION_DECL.
15952
15953 2014-07-16  Richard Biener  <rguenther@suse.de>
15954
15955         PR other/61782
15956         * doc/extend.texi (always_inline): Clarify.
15957
15958 2014-07-15  Eric Christopher  <echristo@gmail.com>
15959
15960         * doc/invoke.texi (Link Options): Document -z option.
15961
15962 2014-07-15  Uros Bizjak  <ubizjak@gmail.com>
15963
15964         * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
15965         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
15966
15967 2014-07-15  Jan Hubicka  <hubicka@ucw.cz>
15968
15969         * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
15970
15971 2014-07-15  Bernd Schmidt  <bernds@codesourcery.com>
15972
15973         * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
15974         varpool_assemble_decl.
15975         * varpool.c (varpool_assemble_decl): Assert that node->definition is
15976         true.
15977
15978 2014-07-15  Michael Matz  <matz@suse.de>
15979
15980         PR rtl-optimization/61772
15981         * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
15982
15983 2014-07-15  Richard Biener  <rguenther@suse.de>
15984
15985         * opts.c (default_options_table): Disable bit-ccp at -Og.
15986
15987 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
15988
15989         * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
15990
15991 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
15992
15993         * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
15994         NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
15995         call langhook for unknown declaration.
15996         (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
15997         * tree.h (DECL_ARGUMENTS): Update.
15998         * print-tree.c (print_node): Update.
15999         * tree-core.h (tree_decl_non_common): Remove arguments.
16000         (tree_function_decl): Add arguments.
16001
16002 2014-07-14  Richard Earnshaw  <rearnsha@arm.com>
16003
16004         * aarch64.md (add_losym_<mode>): Set type to alu_imm.
16005
16006 2014-07-14  Richard Biener  <rguenther@suse.de>
16007
16008         PR tree-optimization/61779
16009         * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
16010         simplifying a condition.
16011
16012 2014-07-14  Richard Biener  <rguenther@suse.de>
16013
16014         * builtins.c (c_strlen): Make only_value == 2 really only
16015         affect warning generation.
16016
16017 2014-07-14  Richard Biener  <rguenther@suse.de>
16018
16019         PR tree-optimization/61757
16020         PR tree-optimization/61783
16021         PR tree-optimization/61787
16022         * tree-ssa-dom.c (record_equality): Revert canonicalization
16023         change and add comment.
16024         (propagate_rhs_into_lhs): Revert previous fix, removing
16025         loop depth restriction again.
16026
16027 2014-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16028
16029         * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
16030         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
16031         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
16032         * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
16033         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
16034         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
16035         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
16036
16037 2014-07-14  Richard Biener  <rguenther@suse.de>
16038
16039         * cgraph.h (decl_in_symtab_p): Make inline.
16040
16041 2014-07-14  Jakub Jelinek  <jakub@redhat.com>
16042
16043         PR middle-end/61294
16044         * doc/invoke.texi (-Wmemset-transposed-args): Document.
16045
16046         PR target/61656
16047         * config/i386/i386.c (classify_argument): Don't merge classes above
16048         number of words.
16049
16050 2014-07-13  Jan Hubicka  <hubicka@ucw.cz>
16051
16052         * cgraph.h (symtab_node): Add nonzero_address.
16053         (decl_in_symtab_p): Break out from ...
16054         (symtab_get_node): ... here.
16055         * fold-const.c: Include cgraph.h
16056         (tree_single_nonzero_warnv_p): Use symtab to determine
16057         if symbol is non-zero.
16058         * symtab.c (symtab_node::nonzero_address): New method.
16059
16060 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
16061
16062         * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
16063         forgotten in previous commit.
16064
16065 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
16066
16067         * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
16068         on builtin types.
16069         * ipa-devirt.c: Include stor-layout.h and intl.h
16070         (odr_subtypes_equivalent_p): New function.
16071         (warn_odr): New function.
16072         (warn_type_mismatch): New function.
16073         (odr_types_equivalent_p): New function.
16074         (add_type_duplicate): Use it.
16075         * common.opt (Wodr): New flag.
16076         * doc/invoke.texi (Wodr): Document new warning.
16077
16078 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
16079
16080         * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
16081         (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
16082         * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
16083         (varpool_get_constructor): Push CTORS_IN timevar.
16084         * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
16085
16086 2014-07-12  Uros Bizjak  <ubizjak@gmail.com>
16087
16088         * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
16089         Remove VOID_FTYPE_PUSHORT.
16090         * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
16091         Change code to USHORT_FTYPE_VOID.
16092         (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
16093         (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
16094         (ix86_atomic_assign_expand_fenv): Update for
16095         __builtin_ia32_fnstsw changes.
16096         * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
16097         (fnstsw): Change operand 0 to nonimmediate operand.
16098
16099 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
16100
16101         * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
16102         (varpool_get_constructor): New function.
16103         (varpool_ctor_useable_for_folding_p): Break out from ...
16104         (ctor_for_folding): ... here; use varpool_get_constructor.
16105         (varpool_assemble_decl): Likewise.
16106         * lto-streamer.h (struct output_block): Turn cgraph_node
16107         to symbol filed.
16108         (lto_input_variable_constructor): Declare.
16109         * ipa-visibility.c (function_and_variable_visibility): Use
16110         varpool_get_constructor.
16111         * cgraph.h (varpool_get_constructor): Declare.
16112         (varpool_ctor_useable_for_folding_p): New function.
16113         * lto-streamer-out.c (get_symbol_initial_value): Take encoder
16114         parameter; return error_mark_node for non-trivial constructors.
16115         (lto_write_tree_1, DFS_write_tree): Update use of
16116         get_symbol_initial_value.
16117         (output_function): Update initialization of symbol.
16118         (output_constructor): New function.
16119         (copy_function): Rename to ..
16120         (copy_function_or_variable): ... this one; handle vars too.
16121         (lto_output): Output variable sections.
16122         * lto-streamer-in.c (input_constructor): New function.
16123         (lto_read_body): Rename from ...
16124         (lto_read_body_or_constructor): ... this one; handle vars too.
16125         (lto_input_variable_constructor): New function.
16126         * ipa-prop.c (ipa_prop_write_jump_functions,
16127         ipa_prop_write_all_agg_replacement): Update.
16128         * lto-cgraph.c (compute_ltrans_boundary): Use it.
16129         (output_cgraph_opt_summary): Set symbol to NULL.
16130
16131 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
16132
16133         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
16134         non-polymorphic types.
16135         * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
16136         * ipa-devirt.c (types_same_for_odr): Do not explode when one
16137         of types is not polymorphic.
16138
16139 2014-07-11  Vladimir Makarov  <vmakarov@redhat.com>
16140
16141         * lra-constraints.c (remove_inheritance_pseudos): Process
16142         destination pseudo too.
16143
16144 2014-07-11  Rong Xu  <xur@google.com>
16145
16146         * gcov-tool.c (gcov_output_files): Fix build error introduced in
16147         commit r212448.
16148
16149 2014-07-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
16150
16151         * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
16152         * config/avr/avr-devices.c (AVR_MCU): Same.
16153         (avr_mcu_types): add text start value to end of device list.
16154         * config/avr/avr-mcus.def: Add text section start for all devices.
16155         (ata5782): Add new avr5 device.
16156         (ata5831): Same.
16157         * config/avr/avr-tables.opt: Regenerate.
16158         * config/avr/avr.h: Add declaration for text section start handler.
16159         (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
16160         SPEC functions.
16161         (LINK_SPEC): Include text section start handler to linker spec.
16162         * config/avr/driver-avr.c (avr_device_to_text_start): New function to
16163         pass -Ttext option to linker if the text section start for the device
16164         is not zero.
16165         * config/avr/t-multilib: Regenerate.
16166         * doc/avr-mmcu.texi: Regenerate.
16167
16168 2014-07-11  David Edelsohn  <dje.gcc@gmail.com>
16169
16170         * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
16171         * config/rs6000/aix52.h (LINK_SPEC): Same.
16172         * config/rs6000/aix53.h (LINK_SPEC): Same.
16173         * config/rs6000/aix61.h (LINK_SPEC): Same.
16174         * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
16175
16176 2014-07-11  Roman Gareev  <gareevroman@gmail.com>
16177
16178         * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
16179         (graphite_verify): New function.
16180         (ivs_params_clear): New function.
16181         (gcc_expression_from_isl_ast_expr_id): New function.
16182         (gcc_expression_from_isl_expr_int): New function.
16183         (binary_op_to_tree): New function.
16184         (ternary_op_to_tree): New function.
16185         (unary_op_to_tree): New function.
16186         (nary_op_to_tree): New function.
16187         (gcc_expression_from_isl_expr_op): New function.
16188         (gcc_expression_from_isl_expression): New function.
16189         (graphite_create_new_loop): New function.
16190         (translate_isl_ast_for_loop): New function.
16191         (get_upper_bound): New function.
16192         (graphite_create_new_loop_guard): New function.
16193         (translate_isl_ast_node_for): New function.
16194         (translate_isl_ast): New function.
16195         (add_parameters_to_ivs_params): New function.
16196         (scop_to_isl_ast): New parameter ip.
16197         (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
16198
16199 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
16200
16201         * config/xtensa/predicates.md (call expander): Update for
16202         DECL_SECTION_NAME being string.
16203
16204 2014-07-11  Richard Biener  <rguenther@suse.de>
16205
16206         PR middle-end/61473
16207         * builtins.c (fold_builtin_memory_op): Inline memory moves that
16208         can be implemented with a single load followed by a single store.
16209         (c_strlen): Only warn when only_value is not 2.
16210
16211 2014-07-11  Evgeny Stupachenko  <evstupac@gmail.com>
16212
16213         * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
16214
16215 2014-07-11  Marat Zakirov  <m.zakirov@samsung.com>
16216
16217         PR target/61561
16218         * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
16219         (*movhi_bytes): Likewise.
16220         (*arm_movqi_insn): Likewise.
16221
16222 2014-07-11  Uros Bizjak  <ubizjak@gmail.com>
16223
16224         PR target/56858
16225         * config/alpha/alpha.c: Include tree-pass.h, context.h
16226         and pass_manager.h.
16227         (pass_data_handle_trap_shadows): New pass.
16228         (pass_handle_trap_shadows::gate): New pass gate function.
16229         (make_pass_handle_trap_shadows): New function.
16230         (rest_of_handle_trap_shadows): Ditto.
16231
16232         (alpha_align_insns_1): Rename from alpha_align_insns.
16233         (pass_data_align_insns): New pass.
16234         (pass_align_insns::gate): New pass gate function.
16235         (make_pass_aling_insns): New function.
16236         (rest_of_align_insns): Ditto.
16237         (alpha_align_insns): Ditto.
16238
16239         (alpha_option_override): Declare handle_trap_shadows info
16240         and align_insns_info.  Register handle_trap_shadows and align_insns
16241         passes here.
16242         (alpha_reorg): Do not call alpha_trap_shadows and
16243         alpha_align_insn from here.
16244
16245         (alpha_pad_function_end): Do not skip BARRIERs.
16246
16247 2014-07-10  Rong Xu  <xur@google.com>
16248
16249         Add gcov-tool: an offline gcda profile processing tool support.
16250         * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
16251         (gcov_is_error): Ditto.
16252         (gcov_read_string): Ditto.
16253         (gcov_read_sync): Ditto.
16254         * gcov-io.h: Move counter defines to gcov-counter.def.
16255         * gcov-dump.c (tag_counters): Use gcov-counter.def.
16256         * coverage.c: Ditto.
16257         * gcov-tool.c: Offline gcda profile processing tool.
16258         (unlink_gcda_file): Remove one gcda file.
16259         (unlink_profile_dir): Remove gcda files from the profile path.
16260         (gcov_output_files): Output gcda files to an output dir.
16261         (profile_merge): Merge two profiles in directory.
16262         (print_merge_usage_message): Print merge usage.
16263         (merge_usage): Print merge usage and exit.
16264         (do_merge): Driver for profile merge sub-command.
16265         (profile_rewrite): Rewrite profile.
16266         (print_rewrite_usage_message): Print rewrite usage.
16267         (rewrite_usage): Print rewrite usage and exit.
16268         (do_rewrite): Driver for profile rewrite sub-command.
16269         (print_usage): Print gcov-info usage and exit.
16270         (print_version): Print gcov-info version.
16271         (process_args): Process arguments.
16272         (main): Main routine for gcov-tool.
16273         * Makefile.in: Build and install gcov-tool.
16274         * gcov-counter.def: New file split from gcov-io.h.
16275         * doc/gcc.texi: Include gcov-tool.texi.
16276         * doc/gcov-tool.texi: Document for gcov-tool.
16277
16278 2014-07-10  Richard Biener  <rguenther@suse.de>
16279
16280         PR tree-optimization/61757
16281         * tree-ssa-dom.c (loop_depth_of_name): Restore.
16282         (propagate_rhs_into_lhs): Revert part of last change.
16283
16284 2014-07-10  Thomas Schwinge  <thomas@codesourcery.com>
16285
16286         * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
16287         FUNCTION_DECLs.
16288
16289 2014-07-10  Eric Botcazou  <ebotcazou@adacore.com>
16290
16291         PR middle-end/53590
16292         * function.c (allocate_struct_function): Revert r188667 change.
16293
16294         * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
16295
16296 2014-07-10  Tom G. Christensen  <tgc@jupiterrise.com>
16297
16298         * doc/install.texi: Remove links to defunct package providers for
16299         Solaris.
16300
16301 2014-07-09  Tom de Vries  <tom@codesourcery.com>
16302
16303         * final.c (get_call_fndecl): Declare.
16304         (self_recursive_call_p): New function.
16305         (collect_fn_hard_reg_usage): Handle self-recursive function calls.
16306
16307 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
16308
16309         * ipa-devirt.c (record_node): Walk through aliases.
16310
16311 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
16312
16313         * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
16314
16315 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
16316
16317         Revert:
16318         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
16319
16320 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
16321
16322         * ipa-visibility.c (function_and_variable_visibility): Remove
16323         temporary hack disabling local aliases on AIX.
16324
16325 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
16326
16327         * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
16328         * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
16329
16330 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
16331
16332         * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
16333         * rs6000/rs6000.c: Inline output of .set instruction.
16334         (declare_alias_data): New struct.
16335         (rs6000_declare_alias): New function.
16336         (rs6000_xcoff_declare_function_name): Use it.
16337         (rs6000_xcoff_declare_object_name): New function.
16338         * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
16339         (ASM_OUTPUT_DEF): Turn to empty definition.
16340
16341 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
16342
16343         PR bootstrap/61679
16344         * hash-table.h: use hash_table::value_type instead of
16345         Descriptor::value_type in the return types of several methods.
16346
16347 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
16348
16349         * tree-pass.h (pass_data): Remove has_execute member.
16350         * passes.c (execute_one_pass): Don't check pass->has_execute.
16351         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
16352         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
16353         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
16354         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
16355         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
16356         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
16357         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
16358         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
16359         gimple-low.c, gimple-ssa-isolate-paths.c,
16360         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
16361         ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
16362         ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
16363         ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
16364         lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
16365         postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
16366         reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
16367         stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
16368         tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
16369         tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
16370         tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
16371         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
16372         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
16373         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
16374         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
16375         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
16376         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
16377         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
16378         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
16379         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
16380         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
16381         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
16382         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
16383         web.c: Remove initializer for pass_data::has_execute.
16384
16385 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
16386
16387         * graphite-htab.h: Use hash_map instead of hash_table.
16388         * graphite-clast-to-gimple.c: Adjust.
16389         * passes.c: Use hash_map instead of hash_table.
16390         * sese.c: Likewise.
16391         * sese.h: Remove now unused code.
16392
16393 2014-07-08  Sriraman Tallam  <tmsriram@google.com>
16394
16395         PR target/61599
16396         * config/i386/i386.c (ix86_in_large_data_p): Check for size less
16397         than zero.
16398
16399 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
16400
16401         PR rtl-optimization/61673
16402         * combine.c (simplify_comparison): Test just mode's sign bit
16403         in tmode rather than the sign bit and any bits above it.
16404
16405 2014-07-08  Roman Gareev  <gareevroman@gmail.com>
16406
16407         * graphite-isl-ast-to-gimple.c (generate_isl_context):
16408         Add __isl_give to the declaration.
16409         (generate_isl_schedule): Likewise.
16410         (scop_to_isl_ast): Likewise.
16411
16412 2014-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16413
16414         * config/arm/arm.c (cortexa5_extra_costs): New table.
16415         (arm_cortex_a5_tune): Use cortexa5_extra_costs.
16416
16417 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
16418
16419         PR tree-optimization/61725
16420         * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
16421         range, use range_includes_zerop_p instead of integer_zerop on
16422         vr0->min, only use log2 of max if min is not negative.
16423
16424 2014-07-08  Richard Biener  <rguenther@suse.de>
16425
16426         * tree-ssa-dom.h (loop_depth_of_name): Remove.
16427         * tree-ssa-dom.c (record_equivalences_from_phis): Remove
16428         restriction on loop depth difference.
16429         (record_equality): Likewise.
16430         (propagate_rhs_into_lhs): Likewise.  Simplify condition.
16431         (loop_depth_of_name): Remove.
16432         * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
16433         restriction on loop depth difference.
16434         (init_copy_prop): Likewise.
16435
16436 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
16437
16438         * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
16439         parameter.
16440         (walk_aliased_vdefs): Likewise.
16441         * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
16442         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
16443         (detect_type_change_from_memory_writes): Check if entry was reached.
16444
16445 2014-07-08  Richard Biener  <rguenther@suse.de>
16446
16447         PR tree-optimization/61681
16448         * tree-ssa-structalias.c (find_what_var_points_to): Expand
16449         NONLOCAL inside ESCAPED.
16450
16451 2014-07-08  Richard Biener  <rguenther@suse.de>
16452
16453         PR tree-optimization/61680
16454         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
16455         Handle properly all read-write dependences with group accesses.
16456
16457 2014-07-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
16458
16459         PR tree-optimization/61576
16460         * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
16461         block containing reduction statement is predecessor of phi basi block.
16462
16463 2014-07-08  Marek Polacek  <polacek@redhat.com>
16464
16465         PR c/60226
16466         * fold-const.c (round_up_loc): Change the parameter type.
16467         Remove assert.
16468         * fold-const.h (round_up_loc): Adjust declaration.
16469         * stor-layout.c (finalize_record_size): Check for too large types.
16470
16471 2014-07-07  Jan Hubicka  <hubicka@ucw.cz>
16472
16473         * symtab.c: Include calls.h.
16474         (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
16475
16476 2014-07-07  Maciej W. Rozycki  <macro@codesourcery.com>
16477
16478         * config/rs6000/rs6000.c (output_vec_const_move): Handle
16479         little-endian code generation.
16480         * config/rs6000/spe.md (spe_evmergehi): Rename to...
16481         (vec_perm00_v2si): ... this.  Handle little-endian code generation.
16482         (spe_evmergehilo): Rename to...
16483         (vec_perm01_v2si): ... this.  Handle little-endian code generation.
16484         (spe_evmergelo): Rename to...
16485         (vec_perm11_v2si): ... this.  Handle little-endian code generation.
16486         (spe_evmergelohi): Rename to...
16487         (vec_perm10_v2si): ... this.  Handle little-endian code generation.
16488         (spe_evmergehi, spe_evmergehilo): New expanders.
16489         (spe_evmergelo, spe_evmergelohi): Likewise.
16490         (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
16491         (*frob_tf_ti): Likewise.
16492         (*frob_<mode>_di_2): Likewise.
16493         (*frob_tf_di_8_2): Likewise.
16494         (*frob_di_<mode>): Likewise.
16495         (*frob_ti_tf): Likewise.
16496         (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
16497         (*frob_ti_<mode>_8_2): Likewise.
16498         (*frob_ti_tf_2): Likewise.
16499         (mov_si<mode>_e500_subreg0): Rename to...
16500         (mov_si<mode>_e500_subreg0_be): ... this.  Restrict to the big
16501         endianness only.
16502         (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
16503         (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
16504         (*mov_si<mode>_e500_subreg0_elf_low_be): ... this.  Restrict to
16505         the big endianness only.
16506         (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
16507         (*mov_si<mode>_e500_subreg0_2): Rename to...
16508         (*mov_si<mode>_e500_subreg0_2_be): ... this.  Restrict to the
16509         big big endianness only.
16510         (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
16511         (*mov_si<mode>_e500_subreg4): Rename to...
16512         (*mov_si<mode>_e500_subreg4_be): ... this.  Restrict to the big
16513         endianness only.
16514         (mov_si<mode>_e500_subreg4_le): New instruction pattern.
16515         (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
16516         (*mov_si<mode>_e500_subreg4_elf_low_be): ... this.  Restrict to
16517         the big endianness only.
16518         (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
16519         pattern.
16520         (*mov_si<mode>_e500_subreg4_2): Rename to...
16521         (*mov_si<mode>_e500_subreg4_2_be): ... this.  Restrict to the big
16522         endianness only.
16523         (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
16524         (*mov_sitf_e500_subreg8): Rename to...
16525         (*mov_sitf_e500_subreg8_be): ... this.  Restrict to the big
16526         endianness only.
16527         (*mov_sitf_e500_subreg8_le): New instruction pattern.
16528         (*mov_sitf_e500_subreg8_2): Rename to...
16529         (*mov_sitf_e500_subreg8_2_be): ... this.  Restrict to the big
16530         endianness only.
16531         (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
16532         (*mov_sitf_e500_subreg12): Rename to...
16533         (*mov_sitf_e500_subreg12_be): ... this.  Restrict to the big
16534         endianness only.
16535         (*mov_sitf_e500_subreg12_le): New instruction pattern.
16536         (*mov_sitf_e500_subreg12_2): Rename to...
16537         (*mov_sitf_e500_subreg12_2_be): ... this.  Restrict to the big
16538         endianness only.
16539         (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
16540
16541 2014-07-07  Max Ostapenko  <m.ostapenko@partner.samsung.com>
16542
16543         * asan.c (instrument_strlen_call): Do not instrument first byte
16544         in strlen if already instrumented.
16545
16546 2014-07-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16547
16548         * config/arm/arm.opt (mwords-little-endian): Delete.
16549         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
16550         of TARGET_LITTLE_WORDS.
16551         (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
16552         * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
16553         warning.
16554         * doc/invoke.texi: Remove references to -mwords-little-endian.
16555
16556 2014-07-07  Jakub Jelinek  <jakub@redhat.com>
16557
16558         * expmed.c (struct init_expmed_rtl): Change all fields but
16559         pow2 and cint from struct rtx_def to rtx.
16560         (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
16561         (init_expmed): Likewise.  Allocate all the 18 rtxes and ggc_free them
16562         at the end again.
16563
16564 2014-07-06  Marek Polacek  <polacek@redhat.com>
16565
16566         PR c/6940
16567         * doc/invoke.texi: Document -Wsizeof-array-argument.
16568
16569 2014-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
16570
16571         * wide-int.h (wide_int_storage): Change declaration from struct
16572         to class.
16573
16574 2014-07-05  Jan Hubicka  <hubicka@ucw.cz>
16575
16576         * cgraph.c (cgraph_create_indirect_edge): Update call of
16577         get_polymorphic_call_info.
16578         * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
16579         (possible_polymorphic_call_targets): Add parameter call.
16580         (decl_maybe_in_construction_p): New predicate.
16581         (get_polymorphic_call_info): Add parameter call;
16582         use decl_maybe_in_construction_p.
16583         * gimple-fold.c (fold_gimple_assign): Update use of
16584         possible_polymorphic_call_targets.
16585         (gimple_fold_call): Likewise.
16586         * ipa-prop.c: Inlcude calls.h
16587         (ipa_binfo_from_known_type_jfunc): Check that known type is record.
16588         (param_type_may_change_p): New predicate.
16589         (detect_type_change_from_memory_writes): Break out from ...
16590         (detect_type_change): ... this one; use param_type_may_change_p.
16591         (detect_type_change_ssa): Use param_type_may_change_p.
16592         (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
16593
16594 2014-07-05  Charles Baylis  <charles.baylis@linaro.org>
16595
16596         PR target/49423
16597         * config/arm/arm-protos.h (arm_legitimate_address_p,
16598         arm_is_constant_pool_ref): Add prototypes.
16599         * config/arm/arm.c (arm_legitimate_address_p): Remove static.
16600         (arm_is_constant_pool_ref) New function.
16601         * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
16602         arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
16603         (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
16604         operand. Remove pool_range and neg_pool_range attributes.
16605         (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
16606         pool_range and neg_pool_range attributes.
16607         * config/arm/constraints.md (Uh): New constraint.
16608         (Uq): Don't allow constant pool references.
16609
16610 2014-07-04  James Greenhalgh  <james.greenhalgh@arm.com>
16611
16612         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
16613         (move_lo_quad_internal_be_<mode>): Likewise.
16614         (move_lo_quad_<mode>): Convert to define_expand.
16615         (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
16616         (aarch64_simd_move_hi_quad_be_<mode>): New.
16617         (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
16618         (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
16619         (aarch64_combinez_be<mode>): New.
16620         (aarch64_combine<mode>): Convert to define_expand.
16621         (aarch64_combine_internal<mode>): New.
16622         (aarch64_simd_combine<mode>): Remove bogus RTL description.
16623
16624 2014-07-04  Tom de Vries  <tom@codesourcery.com>
16625
16626         * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
16627         combination of earlyclobber and read/write modifiers.
16628
16629 2014-07-04  Tom de Vries  <tom@codesourcery.com>
16630
16631         * config/aarch64/aarch64-simd.md
16632         (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
16633
16634 2014-07-04  Richard Earnshaw  <rearnsha@arm.com>
16635
16636         PR target/61714
16637         * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
16638
16639 2014-07-04  Jakub Jelinek  <jakub@redhat.com>
16640
16641         PR middle-end/61654
16642         * cgraphunit.c (expand_thunk): Call free_dominance_info.
16643
16644         PR tree-optimization/61684
16645         * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
16646         rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
16647
16648 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
16649             Kito Cheng  <kito@0xlab.org>
16650             Monk Chiang  <sh.chiang04@gmail.com>
16651
16652         * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
16653         (nds32_symbol_load_store_p): Move to ...
16654         (nds32_fp_as_gp_check_available): Move to ...
16655         * config/nds32/nds32-fp-as-gp.c: ... here.
16656         * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
16657         extern declaration.
16658
16659 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
16660             Kito Cheng  <kito@0xlab.org>
16661             Monk Chiang  <sh.chiang04@gmail.com>
16662
16663         * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
16664         (nds32_expand_store_multiple): Move to ...
16665         (nds32_expand_movmemqi): Move to ...
16666         * config/nds32/nds32-memory-manipulation.c: ... here.
16667
16668 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
16669             Kito Cheng  <kito@0xlab.org>
16670             Monk Chiang  <sh.chiang04@gmail.com>
16671
16672         * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
16673         (nds32_output_casesi_pc_relative): Move to ...
16674         (nds32_output_casesi): Move to ...
16675         (nds32_mem_format): Move to ...
16676         (nds32_output_16bit_store): Move to ...
16677         (nds32_output_16bit_load): Move to ...
16678         (nds32_output_32bit_store): Move to ...
16679         (nds32_output_32bit_load): Move to ...
16680         (nds32_output_32bit_load_s): Move to ...
16681         (nds32_output_stack_push): Move to ...
16682         (nds32_output_stack_pop): Move to ...
16683         * config/nds32/nds32-md-auxiliary.c: ... here.
16684
16685 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
16686             Ling-Hua Tseng  <uranus@tinlans.org>
16687
16688         * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
16689         the purpose of this file.
16690
16691 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
16692             Kito Cheng  <kito@0xlab.org>
16693             Monk Chiang  <sh.chiang04@gmail.com>
16694
16695         * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
16696         (nds32_address_cost): Move implementation to ...
16697         * config/nds32/nds32-cost.c: ... here.
16698         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
16699         (nds32_address_cost_impl): Declare.
16700
16701 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
16702             Kito Cheng  <kito@0xlab.org>
16703             Monk Chiang  <sh.chiang04@gmail.com>
16704
16705         * config/nds32/nds32.c
16706         (nds32_consecutive_registers_load_store_p): Move to ...
16707         (nds32_valid_multiple_load_store): Move to ...
16708         (nds32_valid_stack_push_pop): Move to ...
16709         (nds32_can_use_bclr_p): Move to ...
16710         (nds32_can_use_bset_p): Move to ...
16711         (nds32_can_use_btgl_p): Move to ...
16712         (nds32_can_use_bitci_p): Move to ...
16713         * config/nds32/nds32-predicates.c: ... here.
16714
16715 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
16716             Kito Cheng  <kito@0xlab.org>
16717             Monk Chiang  <sh.chiang04@gmail.com>
16718
16719         * config/nds32/nds32.c
16720         (nds32_expand_builtin_null_ftype_reg): Move to ...
16721         (nds32_expand_builtin_reg_ftype_imm): Move to ...
16722         (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
16723         (nds32_init_builtins): Move implementation to ...
16724         (nds32_expand_builtin): Move implementation to ...
16725         * config/nds32/nds32-intrinsic.c: ... here.
16726         * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
16727         (nds32_expand_builtin_impl): Declare.
16728
16729 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
16730             Kito Cheng  <kito@0xlab.org>
16731             Monk Chiang  <sh.chiang04@gmail.com>
16732
16733         * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
16734         (nds32_emit_section_tail_template): Move to ...
16735         (nds32_emit_isr_jmptbl_section): Move to ...
16736         (nds32_emit_isr_vector_section): Move to ...
16737         (nds32_emit_isr_reset_conten): Move to ...
16738         (nds32_check_isr_attrs_conflict): Move to ...
16739         (nds32_construct_isr_vectors_information): Move to ...
16740         (nds32_asm_file_start): Move implementation to ...
16741         (nds32_asm_file_end): Move implementation to ...
16742         * config/nds32/nds32-isr.c: ... here.
16743         * config/nds32/nds32-protos.h
16744         (nds32_check_isr_attrs_conflict): Declare.
16745         (nds32_construct_isr_vectors_information): Declare.
16746         (nds32_asm_file_start_for_isr): Declare.
16747         (nds32_asm_file_end_for_isr): Declare.
16748
16749 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
16750             Kito Cheng  <kito@0xlab.org>
16751             Monk Chiang  <sh.chiang04@gmail.com>
16752
16753         * config.gcc (nds32*): Add new modules to extra_objs.
16754         (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
16755         (nds32be-*-*): Likewise.
16756         * config/nds32/nds32-cost.c: New file.
16757         * config/nds32/nds32-fp-as-gp.c: New file.
16758         * config/nds32/nds32-intrinsic.c: New file.
16759         * config/nds32/nds32-isr.c: New file.
16760         * config/nds32/nds32-md-auxiliary.c: New file.
16761         * config/nds32/nds32-memory-manipulation.c: New file.
16762         * config/nds32/nds32-pipelines-auxiliary.c: New file.
16763         * config/nds32/nds32-predicates.c: New file.
16764         * config/nds32/t-nds32: New file.
16765
16766 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
16767
16768         PR tree-optimization/61682
16769         * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
16770         using cases and when one of the operands is equal to 1.
16771
16772 2014-07-03  Segher Boessenkool  <segher@kernel.crashing.org>
16773
16774         * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
16775         ashr<mode>3): Correct mode of operands[2].
16776         (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
16777         lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
16778         Correct mode of operands[2].  Fix split condition.
16779
16780 2014-07-03  Richard Earnshaw  <rearnsha@arm.com>
16781
16782         * arm.md (arch): Add armv6_or_vfpv3.
16783         (arch_enabled): Add test for the above.
16784         * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
16785         on VFP9.
16786         (sqrtsf_vfp, sqrtdf_vfp): Likewise.
16787
16788 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
16789
16790         * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
16791         * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
16792         HWI 1 and negate the unsigned value.
16793         * expmed.c (expand_sdiv_pow2): For modes wider than word always
16794         use AND instead of shift.
16795         * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
16796
16797 2014-07-03  Marek Polacek  <polacek@redhat.com>
16798
16799         * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
16800         (-fsanitize=float-divide-by-zero): Move to the table with
16801         -fsanitize=undefined suboptions.
16802         (-fsanitize=float-cast-overflow): Likewise.
16803
16804 2014-07-03  Maciej W. Rozycki  <macro@codesourcery.com>
16805
16806         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
16807         BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
16808         endianness.
16809
16810 2014-07-03  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
16811
16812         * loop-invariant.c (struct invariant): Add a new member: eqno;
16813         (find_identical_invariants): Update eqno;
16814         (create_new_invariant): Init eqno;
16815         (get_inv_cost): Compute comp_cost with eqno;
16816
16817 2014-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
16818
16819         * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
16820         (walk_insn_part) <ROTATE, ROTATERT>: New cases.
16821         (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
16822         * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
16823         Only do the transformation if both HAVE_rotate and HAVE_rotatert.
16824
16825 2014-07-02  Christian Bruel  <christian.bruel@st.com>
16826
16827         PR target/29349
16828         PR target/53513
16829         * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
16830         (make_preds_opaque): Delete.
16831         (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
16832         (commit_mode_sets): New function.
16833         (optimize_mode_switching): Handle current_mode to mode_switching_emit.
16834         Process all modes at once.
16835         * basic-block.h (pre_edge_lcm_avs): Declare.
16836         * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
16837         Call clear_aux_for_edges. Fix comments.
16838         (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
16839         (pre_edge_rev_lcm): Idem.
16840         * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
16841         parameter.
16842         * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
16843         * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
16844         Idem.
16845         * config/i386/i386.c (x96_emit_mode_set): Idem.
16846         * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
16847         * config/sh/sh.md (toggle_pr):  Defined if TARGET_FPU_SINGLE.
16848         (fpscr_toggle) Disallow from delay slot.
16849         * target.def (emit_mode_set): Add prev_mode parameter.
16850         * doc/tm.texi: Regenerate.
16851
16852 2014-07-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16853
16854         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
16855         variable i.
16856
16857 2014-07-01  Jan Hubicka  <hubicka@ucw.cz>
16858
16859         * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
16860         vtable_pointer_value_to_vtable): Constify.
16861         (contains_polymorphic_type_p): Declare.
16862         * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
16863         vtable_pointer_value_to_vtable): Constify.
16864         (contains_polymorphic_type_p): New predicate.
16865         * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
16866         polymorphic types.
16867         (ipa_set_ancestor_jf): Likewise.
16868         (detect_type_change): Return false in easy cases.
16869         (compute_complex_assign_jump_func): Require type to contain
16870         polymorphic type.
16871         (compute_known_type_jump_func): Likewise.
16872
16873 2014-07-01  Jan Hubicka  <hubicka@ucw.cz>
16874
16875         * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
16876         Remove.
16877         (type_in_anonymous_namespace_p): Constify argument.
16878         * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
16879         * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
16880         (main_odr_variant): New function.
16881         (hash_type_name): Make static; update assert; do not ICE on
16882         non-records.
16883         (types_same_for_odr): Bring here from tree.c; simplify and remove
16884         old structural comparing code that doesn't work for templates.
16885         (odr_hasher::equal): Update assert.
16886         (add_type_duplicate): Return true when bases should be computed;
16887         replace incomplete loader by complete; do not output duplicated
16888         warnings; do not ICE on non-records; set odr_violated flag.
16889         (get_odr_type): Be ready to replace incomplete type by complete
16890         one; work on ODR variants instead of main variants; reorder item
16891         in array so bases have still smaller indexes.
16892         (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
16893         (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
16894
16895 2014-07-01  Cary Coutant  <ccoutant@google.com>
16896
16897         * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
16898         lookup.
16899         (resolve_addr_in_expr): When replacing the rtx in a location list
16900         entry, get a new address table entry.
16901         (dwarf2out_finish): Call index_location_lists even if there are no
16902         addr_index_table entries yet.
16903
16904 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
16905
16906         * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
16907         change for not being obvious.
16908
16909 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
16910
16911         * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
16912         unused argument.
16913
16914 2014-07-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16915
16916         * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
16917         (vcagt_f64): Likewise.
16918         (vcale_f64): Likewise.
16919         (vcaled_f64): Likewise.
16920         (vcales_f32): Likewise.
16921         (vcalt_f64): Likewise.
16922         (vcaltd_f64): Likewise.
16923         (vcalts_f32): Likewise.
16924
16925 2014-07-01  Marek Polacek  <polacek@redhat.com>
16926
16927         * doc/invoke.texi: Document -Wint-conversion.
16928
16929 2014-07-01  Marek Polacek  <polacek@redhat.com>
16930
16931         PR c/58286
16932         * doc/invoke.texi: Document -Wincompatible-pointer-types.
16933
16934 2014-07-01  Martin Liska  <mliska@suse.cz>
16935
16936         IPA REF alias refactoring
16937         * cgraph.h (iterate_direct_aliases): New function.
16938         (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
16939         * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
16940         FOR_EACH_ALIAS added.
16941         (cgraph_for_node_and_aliases): Likewise.
16942         * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
16943         * ipa-inline.c (reset_edge_caches): Likewise.
16944         (update_caller_keys): Likewise.
16945         * trans-mem.c (ipa_tm_execute): Likewise.
16946         *varpool.c (varpool_analyze_node): Likewise.
16947         (varpool_for_node_and_aliases): Likewise.
16948         * ipa-ref.h (first_alias): New function.
16949         (last_alias): Likewise.
16950         (has_aliases_p): Likewise.
16951         * ipa-ref.c (ipa_ref::remove_reference): Removal function
16952         is sensitive to IPA_REF_ALIASes.
16953         * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
16954         are put at the beginning of the list.
16955         (symtab_node::iterate_direct_aliases): New function.
16956
16957 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
16958
16959         Revert:
16960         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
16961         type is complete.
16962         (write_ts_type_common_tree_pointers): Do not stream fields not set
16963         for incomplete types; do not stream duplicated fields for variants;
16964         sanity check that variant and type match.
16965         (write_ts_type_non_common_tree_pointers): Likewise.
16966         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
16967         TYPE_SIZE whether type is complete.
16968         (lto_input_ts_type_common_tree_pointers): Do same changes as in
16969         write_ts_type_common_tree_pointers
16970         (lto_input_ts_type_non_common_tree_pointers): Likewise.
16971
16972 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
16973
16974         * var-tracking.c (add_stores): Return instead of asserting if old
16975         and new values for conditional store are the same.
16976
16977 2014-06-30  Richard Henderson  <rth@redhat.com>
16978
16979         PR rtl-opt/61608
16980         PR target/39284
16981         * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
16982         the cfg if there were any changes.
16983         * passes.def: Revert move of peephole2 after reorder_blocks;
16984         move duplicate_computed_gotos before peephole2.
16985
16986 2014-06-30  Uros Bizjak  <ubizjak@gmail.com>
16987
16988         * except.c (emit_note_eh_region_end): New helper function.
16989         (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
16990         emit EH_REGION_END note.
16991         * jump.c (cleanup_barriers): Do not split a call and its
16992         corresponding CALL_ARG_LOCATION note.
16993
16994 2014-06-30  Jeff Law  <law@redhat.com>
16995
16996         PR tree-optimization/61607
16997         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
16998         deeper into the SSA_NAME_VALUE chain.
16999
17000 2014-06-30  Marek Polacek  <polacek@redhat.com>
17001
17002         * convert.c (convert_to_integer): Don't instrument conversions if the
17003         function has no_sanitize_undefined attribute.
17004         * ubsan.c: Don't run the ubsan pass if the function has
17005         no_sanitize_undefined attribute.
17006
17007 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
17008
17009         * doc/invoke.texi (-fsanitize=bounds): Move to the table with
17010         -fsanitize=undefined suboptions.
17011
17012 2014-06-30  Alan Lawrence  <alan.lawrence@arm.com>
17013
17014         * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
17015         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
17016         against bigendian and adjust indices.
17017
17018 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
17019
17020         * doc/install.texi (Specific, aarch64*-*-*): Fix markup.  Reword a bit.
17021
17022 2014-06-30  Marcus Shawcroft  <marcus.shawcroft@arm.com>
17023
17024         PR target/61633
17025         * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
17026         Add alternative; make early clobber.  Adjust both split patterns
17027         to use operand 0 as the working register.
17028
17029 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
17030
17031         * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
17032         as ira_object_id_map might be NULL, or 1.
17033
17034 2014-06-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
17035
17036         * loop-invariant.c (get_inv_cost): Handle register class.
17037         (gain_for_invariant): Check the register pressure of the inv
17038         and its overlapped register class, other than all.
17039
17040 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
17041
17042         * doc/invoke.texi (Optimize Options): Fix descriptions of
17043         ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
17044
17045 2014-06-29  David Wohlferd <dw@LimeGreenSocks.com>
17046
17047         * doc/extend.texi (Function Attributes): Update 'naked' attribute
17048         documentation.
17049
17050 2014-06-29  Tobias Grosser <tobias@grosser.es>
17051
17052         PR bootstrap/61650
17053         * graphite-isl-ast-to-gimple.c: Add missing guards.
17054
17055 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
17056
17057         * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
17058         * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
17059         * flag-types.h: Add new enum fgraphite_generator.
17060         * graphite-isl-ast-to-gimple.c: New.
17061         * graphite-isl-ast-to-gimple.h: New.
17062         * graphite.c (graphite_transform_loops): Add choice of Graphite
17063         code generator, which depends on flag_graphite_code_gen.
17064
17065 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
17066
17067         * graphite-dependences.c (subtract_commutative_associative_deps):
17068         Add NULL checking of the following variables: must_raw_no_source,
17069         may_raw_no_source, must_war_no_source, may_war_no_source,
17070         must_waw_no_source, may_waw_no_source, must_raw, may_raw,
17071         must_war, may_war, must_waw, may_waw.
17072
17073 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
17074
17075         * graphite-clast-to-gimple.c: gloog is renamed to
17076         graphite_regenerate_ast_cloog.  gloog_error is renamed to
17077         graphite_regenerate_error.
17078         * graphite-clast-to-gimple.h: The definition of the struct
17079         bb_pbb_def is moved to graphite-htab.h.
17080         Add inclusion of the hash-table.h.
17081         * graphite-htab.h: The declaration of the function gloog is moved
17082         to graphite-clast-to-gimple.h and renamed to
17083         graphite_regenerate_ast_cloog.
17084         * graphite.c (graphite_transform_loops): gloog is renamed
17085         to graphite_regenerate_ast_cloog.
17086
17087 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
17088
17089         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
17090         type is complete.
17091         (write_ts_type_common_tree_pointers): Do not stream fields not set
17092         for incomplete types; do not stream duplicated fields for variants;
17093         sanity check that variant and type match.
17094         (write_ts_type_non_common_tree_pointers): Likewise.
17095         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
17096         TYPE_SIZE whether type is complete.
17097         (lto_input_ts_type_common_tree_pointers): Do same changes as in
17098         write_ts_type_common_tree_pointers
17099         (lto_input_ts_type_non_common_tree_pointers): Likewise.
17100
17101 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
17102
17103         * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
17104
17105 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
17106
17107         * tree-inline.c (remap_type_1): Do not duplicate fields
17108         that are shared in between type and its main variant.
17109
17110 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
17111
17112         * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
17113         of the type.
17114         (ipa_set_ancestor_jf) Likewise.
17115         (check_stmt_for_type_change): Check that we work on main variant.
17116         (detect_type_change): Look into main variant.
17117         (compute_known_type_jump_func): Check that main variant has BINFO.
17118
17119 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
17120
17121         * ipa-devirt.c (set_type_binfo): New function.
17122         (add_type_duplicate): Use it.
17123         (get_odr_type): Sanity check that binfos points to main variants.
17124         (get_class_context): Be sure the context's outer_type is main variant.
17125         (contains_type_p): Walk main variant.
17126         (get_polymorphic_call_info_for_decl): Set outer_type to be
17127         main variant.
17128         (get_polymorphic_call_info): Likewise.
17129         (possible_polymorphic_call_targets): Sanity check that we operate
17130         on main variant.
17131
17132 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
17133
17134         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
17135
17136 2014-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17137
17138         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
17139         accidental change due to wide-int branch merge.
17140
17141 2014-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17142
17143         * configure.ac (gcc_cv_as_compress_debug): Check for assembler
17144         compressed debug support.
17145         (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
17146         * configure: Regenerate.
17147         * config.in: Regenerate.
17148         * common.opt (compressed_debug_sections): New enum.
17149         (gz, gz=): New options.
17150         * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
17151         (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
17152         (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
17153         * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
17154         LINK_COMPRESS_DEBUG_SPEC.
17155         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
17156         * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
17157         * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
17158         (Debugging Options): Document -gz[=type].
17159
17160 2014-06-27  Martin Jambor  <mjambor@suse.cz>
17161
17162         PR ipa/61160
17163         * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
17164         args_to_skip, use those from node instead.  Copy args_to_skip and
17165         combined_args_to_skip from node to the new thunk.
17166         (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
17167         (cgraph_create_virtual_clone): Moved computation of
17168         combined_args_to_skip...
17169         (cgraph_clone_node): ...here, simplify it to bitmap_ior..
17170
17171 2014-06-27  trevor Saunders  <tsaunders@mozilla.com>
17172
17173         * config/i386/winnt.c (i386_pe_section_type_flags): Remove
17174         redundant diagnostic machinary.
17175
17176 2014-06-27  Richard Biener  <rguenther@suse.de>
17177
17178         * tree-ssa-math-opts.c (bswap_replace): Fix
17179         SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
17180
17181 2014-06-27  Martin Liska  <mliska@suse.cz>
17182
17183         * gimple.h (gimple_location_safe): New function introduced.
17184         * cgraphunit.c (walk_polymorphic_call_targets): Usage
17185         of gimple_location_safe replaces gimple_location.
17186         (gimple_fold_call): Likewise.
17187         * ipa-devirt.c (ipa_devirt): Likewise.
17188         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
17189         * ipa.c (walk_polymorphic_call_targets): Likewise.
17190         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
17191
17192 2014-06-27  Jakub Jelinek  <jakub@redhat.com>
17193
17194         PR tree-optimization/57233
17195         PR tree-optimization/61299
17196         * tree-vect-generic.c (get_compute_type, count_type_subparts): New
17197         functions.
17198         (expand_vector_operations_1): Use them.  If {L,R}ROTATE_EXPR
17199         would be lowered to scalar shifts, check if corresponding
17200         shifts and vector BIT_IOR_EXPR are supported and don't lower
17201         or lower just to narrower vector type in that case.
17202         * expmed.c (expand_shift_1): Fix up handling of vector
17203         shifts and rotates.
17204
17205 2014-06-26  Uros Bizjak  <ubizjak@gmail.com>
17206
17207         PR target/61586
17208         * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
17209
17210 2014-06-26  Jan Hubicka  <hubicka@ucw.cz>
17211
17212         * doc/invoke.texi (-fsemantic-interposition): Document.
17213         * common.opt (fsemantic-interposition): New flag.
17214         * varasm.c (decl_replaceable_p): Use it.
17215
17216 2014-06-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17217
17218         PR target/61542
17219         * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
17220         extraction other than index 3.
17221
17222 2014-06-26  Teresa Johnson  <tejohnson@google.com>
17223
17224         * doc/invoke.texi: Fix typo.
17225         * dumpfile.c: Add support for documented -fdump-* options
17226         optimized/missed/note/optall.
17227
17228 2014-06-26  Martin Jambor  <mjambor@suse.cz>
17229
17230         * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
17231         (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
17232         (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
17233         (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
17234         * opts.c (default_options_optimization): Set
17235         PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
17236         * doc/invoke.texi (allow-load-data-races)
17237         (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
17238         (allow-store-data-races): Document the new default.
17239
17240 2014-06-26  Martin Jambor  <mjambor@suse.cz>
17241
17242         * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
17243         renamed to ipa_impossible_devirt_target.  Fix typo.
17244         * ipa-prop.h (ipa_impossible_devirt_target): Declare.
17245         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
17246         ipa_impossible_devirt_target.
17247
17248 2014-06-26  Richard Biener  <rguenther@suse.de>
17249
17250         PR tree-optimization/61607
17251         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
17252         explaining why we restrict copies on loop depth.
17253         * tree-ssa-dom.c (cprop_operand): Remove restriction on
17254         on loop depth.
17255         (record_equivalences_from_phis): Instead add it here.
17256
17257 2014-06-26  Bernd Schmidt  <bernds@codesourcery.com>
17258
17259         * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
17260         (LTO_WRAPPER_OBJS): New variable.
17261         (lto-wrapper$(exeext)): Use it.
17262         * collect2.c: Include "collect-utils.h".
17263         (verbose, debug): Remove variables.
17264         (at_file_supplied): No longer static.
17265         (tool_name): New variable.
17266         (do_wait, fork_execute, maybe_unlink): Don't declare.
17267         (tool_cleanup): No longer static.
17268         (notice): Remove function.
17269         (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
17270         fork_execute calls.
17271         (collect_wait, do_wait, collect_execute): Remove functions.
17272         (maybe_unlink): No longer static.
17273         * collect2.h (verbose, debug): Don't declare.
17274         (at_file_supplied): Declare.
17275         * collect-utils.c (utils_cleanup): New arg from_signal.  All callers
17276         changed.
17277         (collect_execute): Replace with implementation from collect2, plus a
17278         new arg use_atfile.  All callers changed.
17279         (collect_wait): Replace with implementation from collect2.
17280         (maybe_unlink_file): Remove function.
17281         (fork_execute): Replace with implementation from collect2, plus a
17282         new arg use_atfile.  All callers changed.
17283         (do_wait): Add call to utils_cleanup to the error path.
17284         * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
17285         (tool_cleanup): Adjust declarations.
17286         * lto-wrapper.c (tool_cleanup): Add unused bool argument.
17287         * tlink.c: Include "collect-utils.h".
17288         (tlink_execute): New arg use_atfile.  All callers changed.
17289         (tlink_init, tlink_execute): Remove declarations.
17290
17291         * collect-utils.c (save_temps): New variable.
17292         (do_wait): Use it instead of debug.  Use fatal_error.
17293         * collect-utils.h (save_temps): Declare.
17294         * collect2.c (verbose): Rename from vflag.  All uses changed.
17295         (tool_cleanup): New function, copied from collect_atexit.
17296         (collect_atexit, handler): Just call it.
17297         * collect2.h (verbose): Declaration renamed from vflag.
17298         * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
17299         debug.
17300
17301         * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
17302         (lto-wrapper$(exeext)): Link with collect-utils.o.
17303         * collect-utils.c: New file.
17304         * collect-utils.h: New file.
17305         * lto-wrapper.c: Include "collect-utils.h".
17306         (args_name): Delete variable.
17307         (tool_name): New variable.
17308         (tool_cleanup): New function.
17309         (maybe_unlink): Renamed from maybe_unlink_file.  All callers changed.
17310         (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
17311         (fork_execute): Remove functions.
17312
17313 2014-06-26  Nick Clifton  <nickc@redhat.com>
17314
17315         * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
17316
17317         * doc/extend.texi (Function Attributes): Fix typo in description
17318         of RX vector attribute.
17319
17320 2014-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
17321
17322         * config.gcc (supported_defaults): Error when passing either
17323         --with-tune or --with-arch in conjunction with --with-cpu for ARM.
17324
17325 2014-06-26  Richard Biener  <rguenther@suse.de>
17326
17327         * tree-ssa-dom.c (cprop_operand): Remove restriction on
17328         propagating volatile pointers.
17329
17330 2014-06-26  Richard Biener  <rguenther@suse.de>
17331
17332         PR tree-optimization/61607
17333         * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
17334         loop if we redirected its latch edge.
17335         (thread_block_1): Do not cancel loops prematurely.
17336
17337 2014-06-25  Jan Hubicka  <hubicka@ucw.cz>
17338
17339         * toplev.c (backend_init_target): Move init_emit_regs and
17340         init_regs to...
17341         (backend_init) ... here; skip ira_init_once and backend_init_target.
17342         (target_reinit) ... and here; clear
17343         this_target_rtl->lang_dependent_initialized.
17344         (lang_dependent_init_target): Clear
17345         this_target_rtl->lang_dependent_initialized;
17346         break out rtl initialization to ...
17347         (initialize_rtl): ... here; call also backend_init_target
17348         and ira_init_once.
17349         * toplev.h (initialize_rtl): New function.
17350         * function.c: Include toplev.h
17351         (init_function_start): Call initialize_rtl.
17352         * rtl.h (target_rtl): Add target_specific_initialized,
17353         lang_dependent_initialized.
17354
17355 2014-06-25  Paul Gortmaker  <paul.gortmaker@windriver.com>
17356             Jakub Jelinek  <jakub@redhat.com>
17357
17358         * gcc.c (set_multilib_dir): Malloc "." pointer as well.
17359
17360 2014-06-25  Tom de Vries  <tom@codesourcery.com>
17361
17362         * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
17363
17364 2014-06-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17365
17366         * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
17367         check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
17368         Issue a strict overflow warning if appropriate.
17369
17370 2014-06-25  Martin Liska  <mliska@suse.cz>
17371
17372         IPA REF refactoring
17373         * Makefile.in: Removed header file (ipa-ref-inline.h).
17374         * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
17375         called.
17376         (cgraph_speculative_call_info): Likewise.
17377         (cgraph_for_node_thunks_and_aliases): Likewise.
17378         (cgraph_for_node_and_aliases): Likewise.
17379         (verify_cgraph_node): Likewise.
17380         * cgraph.h: Batch of IPA REF functions become member functions of
17381         symtab_node: add_reference, maybe_add_reference, clone_references,
17382         clone_referring, clone_reference, find_reference,
17383         remove_stmt_references, remove_all_references,
17384         remove_all_referring, dump_references, dump_referring,
17385         has_alias_p, iterate_reference, iterate_referring.
17386         * cgraphbuild.c (record_reference): New IPA REF function used.
17387         (record_type_list): Likewise.
17388         (record_eh_tables): Likewise.
17389         (mark_address): Likewise.
17390         (mark_load): Likewise.
17391         (mark_store): Likewise.
17392         (pass_build_cgraph_edges): Likewise.
17393         (rebuild_cgraph_edge): Likewise.
17394         (cgraph_rebuild_references): Likewise.
17395         (pass_remove_cgraph_callee_edges): Likewise.
17396         * cgraphclones.c (cgraph_clone_node): Likewise.
17397         (cgraph_create_virtual_clone): Likewise.
17398         (cgraph_materialize_clone): Likewise.
17399         (cgraph_materialize_all_clones): Likewise.
17400         * cgraphunit.c (cgraph_reset_node): Likewise.
17401         (cgraph_reset_node): Likewise.
17402         (analyze_function): Likewise.
17403         (assemble_thunks_and_aliases): Likewise.
17404         (expand_function): Likewise.
17405         * ipa-comdats.c (propagate_comdat_group): Likewise.
17406         (enqueue_references): Likewise.
17407         * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
17408         (create_specialized_node): Likewise.
17409         * ipa-devirt.c (referenced_from_vtable_p): Likewise.
17410         * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
17411         * ipa-inline.c (reset_edge_caches): Likewise.
17412         (update_caller_keys): Likewise.
17413         (execute): Likewise.
17414         * ipa-prop.c (remove_described_reference): Likewise.
17415         (propagate_controlled_uses): Likewise.
17416         (ipa_edge_duplication_hook): Likewise.
17417         (ipa_modify_call_arguments): Likewise.
17418         * ipa-pure-const.c (propagate_pure_const): Likewise.
17419         * ipa-ref-inline.h: Header file removed, functions moved
17420         to symtab_node class.
17421         * ipa-ref.c (remove_reference): New class member function.
17422         (cannot_lead_to_return): New class member function.
17423         (referring_ref_list): Likewise.
17424         (referred_ref_list): Likewise.
17425         Rest of functions moved to symtab_node class.
17426         * ipa-ref.h: New member functions remove_reference,
17427         cannot_lead_to_return, referring_ref_list, referred_ref_list added
17428         to ipa_ref class.
17429         ipa_ref_list class has new member functions: first_reference,
17430         first_referring, clear, nreferences.
17431         * ipa-reference.c (analyze_function): New IPA REF function used.
17432         (write_node_summary_p): Likewise.
17433         (ipa_reference_write_optimization_summary): Likewise.
17434         * ipa-split.c (split_function): Likewise.
17435         * ipa-utils.c (ipa_reverse_postorder): Likewise.
17436         * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
17437         (function_and_variable_visibility): Likewise.
17438         * ipa.c (has_addr_references_p): Likewise.
17439         (process_references): Argument type changed.
17440         (symtab_remove_unreachable_nodes): New IPA REF function used.
17441         (process_references): Likewise.
17442         (set_writeonly_bit): Likewise.
17443         * lto-cgraph.c: Implementation of new symtab_node member functions
17444         that uses new IPA REF functions.
17445         * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
17446         function used.
17447         * lto-streamer-out.c (output_symbol_p): Likewise.
17448         * lto-streamer.h (referenced_from_this_partition_p): Argument type
17449         changed.
17450         * symtab.c: Implementation of new IPA REF API.
17451         * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
17452         (ipa_tm_create_version): Likewise.
17453         (ipa_tm_execute): Likewise.
17454         * tree-emutls.c (gen_emutls_addr): Likewise.
17455         * tree-inline.c (copy_bb): Likewise.
17456         (delete_unreachable_blocks_update_callgraph): Likewise.
17457         * varpool.c (varpool_remove_unreferenced_decls): Likewise.
17458         (varpool_for_node_and_aliases): Likewise.
17459
17460 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
17461
17462         * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
17463
17464 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
17465
17466         PR bootstrap/61598
17467         * fold-const.c (fold_checksum_tree): Use a hash_table of const
17468         tree_node * instead of tree_node *.
17469         (fold): Adjust.
17470         (print_fold_checksum): Likewise.
17471         (fold_check_failed): Likewise.
17472         (debug_fold_checksum): Likewise.
17473         (fold_build1_stat_loc): Likewise.
17474         (fold_build2_stat_loc): Likewise.
17475         (fold_build3_stat_loc): Likewise.
17476         (fold_build_call_array_loc): Likewise.
17477
17478 2014-06-25  David Edelsohn  <dje.gcc@gmail.com>
17479
17480         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
17481         implementation with call to...
17482         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
17483         function.
17484         * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
17485         Declare.
17486
17487 2014-06-25  Marc Glisse  <marc.glisse@inria.fr>
17488
17489         PR tree-optimization/57742
17490         * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
17491         after replacing the statement.
17492
17493 2014-06-25  Nick Clifton  <nickc@redhat.com>
17494
17495         * config/v850/v850.c (GHS_default_section_names): Change to const
17496         char * type.
17497         (GHS_current_section_names): Likewise.
17498         (v850_insert_attributes): Do not build strings, just assign the
17499         names directly.  Change the type of 'chosen_section' to const
17500         char*.
17501         * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
17502         directly to the array entry.
17503         * config/v850/v850.h (GHS_default_section_names): Change to const
17504         char * type.
17505         (GHS_current_section_names): Likewise.
17506
17507 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
17508
17509         * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
17510         (LANG_HOOKS_DECLS): Add it.
17511         * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
17512         has correct type.
17513         * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
17514         * langhooks.h (struct lang_hooks_for_decls): Add
17515         omp_clause_linear_ctor hook.
17516         * omp-low.c (lower_rec_input_clauses): Set max_vf even if
17517         OMP_CLAUSE_LINEAR_ARRAY is set.  Don't fold_convert
17518         OMP_CLAUSE_LINEAR_STEP.  For OMP_CLAUSE_LINEAR_ARRAY in
17519         combined simd loop use omp_clause_linear_ctor hook.
17520
17521 2014-06-24  Cong Hou  <congh@google.com>
17522
17523         * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
17524         pattern recognition.
17525         (type_conversion_p): PROMOTION is true if it's a type promotion
17526         conversion, and false otherwise.  Return true if the given expression
17527         is a type conversion one.
17528         * tree-vectorizer.h: Adjust the number of patterns.
17529         * tree.def: Add SAD_EXPR.
17530         * optabs.def: Add sad_optab.
17531         * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
17532         * expr.c (expand_expr_real_2): Likewise.
17533         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
17534         * gimple.c (get_gimple_rhs_num_ops): Likewise.
17535         * optabs.c (optab_for_tree_code): Likewise.
17536         * tree-cfg.c (estimate_operator_cost): Likewise.
17537         * tree-ssa-operands.c (get_expr_operands): Likewise.
17538         * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
17539         * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
17540         * doc/generic.texi: Add document for SAD_EXPR.
17541         * doc/md.texi: Add document for ssad and usad.
17542
17543 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
17544
17545         * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
17546         qualification in cast.
17547
17548 2014-06-24  Jan Hubicka  <hubicka@ucw.cz>
17549
17550         * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
17551         * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
17552         * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
17553         (tree_function_decl): ... here.
17554         * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
17555         streaming of vindex to ...
17556         (write_ts_function_decl_tree_pointers): ... here.
17557         * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
17558         Do not stream DECL_VINDEX.
17559         (lto_input_ts_function_decl_tree_pointers): Stream it here.
17560
17561 2014-06-24  Catherine Moore  <clm@codesourcery.com>
17562             Sandra Loosemore  <sandra@codesourcery.com>
17563
17564         * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
17565         * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
17566         * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
17567
17568 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
17569
17570         * doc/invoke.texi (Warning Options): Remove duplicated
17571         -Wmaybe-uninitialized.
17572
17573 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
17574
17575         PR tree-optimization/57742
17576         * tree-ssa-strlen.c (get_string_length): Ignore malloc.
17577         (handle_builtin_malloc, handle_builtin_memset): New functions.
17578         (strlen_optimize_stmt): Call them.
17579         * passes.def: Move strlen after loop+dom but before vrp.
17580
17581 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
17582
17583         PR target/61570
17584         * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
17585         model family 6 CPU with has_longmode never use a CPU without
17586         64-bit support.
17587
17588 2014-06-24  H.J. Lu  <hongjiu.lu@intel.com>
17589
17590         PR target/61570
17591         * config/i386/driver-i386.c (host_detect_local_cpu): Revert
17592         the last change.
17593
17594 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
17595
17596         * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
17597         * dominance.c (iterate_fix_dominators): Use hash_map instead of
17598         pointer_map.
17599         * hash-map.h: New file.
17600         * ipa-comdats.c: Use hash_map instead of pointer_map.
17601         * ipa.c: Likewise.
17602         * lto-section-out.c: Adjust.
17603         * lto-streamer.h: Replace pointer_map with hash_map.
17604         * symtab.c (verify_symtab): Likewise.
17605         * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
17606         * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
17607         * tree-streamer.h: Likewise.
17608         * tree-streamer.c: Adjust.
17609         * pointer-set.h: Remove pointer_map.
17610
17611 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
17612
17613         * hash-table.h: Add a template arg to choose between storing values
17614         and storing pointers to values, and then provide partial
17615         specializations for both.
17616         * tree-browser.c (tree_upper_hasher): Provide the type the hash table
17617         should store, not the type values should point to.
17618         * tree-into-ssa.c (var_info_hasher): Likewise.
17619         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
17620         * tree-complex.c: Adjust.
17621         * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
17622         table instead of int_tree_map *.
17623         * tree-parloops.c: Adjust.
17624         * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
17625         type is being stored.
17626         * tree-vectorizer.c: Adjust.
17627
17628 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
17629
17630         * hash-table.h: Remove a layer of indirection from hash_table so that
17631         it contains the hash table's data instead of a pointer to the data.
17632         * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
17633         config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
17634         config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
17635         data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
17636         fold-const.c, gcse.c, ggc-common.c,
17637         gimple-ssa-strength-reduction.c, gimplify.c,
17638         graphite-clast-to-gimple.c, graphite-dependences.c,
17639         graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
17640         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
17641         loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
17642         lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
17643         postreload-gcse.c, sese.c, statistics.c, store-motion.c,
17644         trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
17645         tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
17646         tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
17647         tree-ssa-live.c, tree-ssa-loop-im.c,
17648         tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
17649         tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
17650         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
17651         tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
17652         tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
17653         tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
17654         vtable-verify.c, vtable-verify.h: Adjust.
17655
17656 2014-06-24  Richard Biener  <rguenther@suse.de>
17657
17658         PR tree-optimization/61572
17659         * tree-ssa-sink.c (statement_sink_location): Do not sink
17660         loads from hard registers.
17661
17662 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
17663
17664         * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
17665         not mentioned in clauses use private clause if the iterator is
17666         declared in #pragma omp for simd, and when adding lastprivate
17667         instead, add it to the outer #pragma omp for too.  Diagnose
17668         if the variable is private in outer context.  For simd collapse > 1
17669         loops, replace all iterators with temporaries.
17670         * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
17671         same even in collapse > 1 loops.
17672
17673         * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
17674         OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
17675         non-NULL.
17676         <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
17677         (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
17678         non-NULL.
17679         (gimplify_adjust_omp_clauses): Likewise.
17680         * omp-low.c (lower_rec_simd_input_clauses,
17681         lower_rec_input_clauses, expand_omp_simd): Handle non-constant
17682         safelen the same as safelen(1).
17683         * tree-nested.c (convert_nonlocal_omp_clauses,
17684         convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED.  For
17685         OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
17686         (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
17687         Fixup handling of GIMPLE_OMP_TARGET.
17688         (convert_tramp_reference_stmt, convert_gimple_call): Handle
17689         GIMPLE_OMP_TARGET.
17690
17691 2014-06-24  Chung-Lin Tang  <cltang@codesourcery.com>
17692
17693         PR tree-optimization/61554
17694         * tree-ssa-propagate.c: Include "bitmap.h".
17695         (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
17696         properly update constructor/destructor.
17697         (substitute_and_fold_dom_walker::before_dom_children):
17698         Remove call to gimple_purge_dead_eh_edges, add bb->index to
17699         need_eh_cleaup instead.
17700         (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
17701         need_eh_cleanup.
17702
17703 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
17704
17705         * varpool.c (dump_varpool_node): Dump used_by_single_function.
17706         * tree-pass.h (make_pass_ipa_single_use): New pass.
17707         * cgraph.h (used_by_single_function): New flag.
17708         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
17709         Stream it.
17710         * passes.def (pass_ipa_single_use): Scedule.
17711         * ipa.c (BOTTOM): New macro.
17712         (meet): New function
17713         (propagate_single_user): New function.
17714         (ipa_single_use): New function.
17715         (pass_data_ipa_single_use): New pass.
17716         (pass_ipa_single_use): New pass.
17717         (pass_ipa_single_use::gate): New gate.
17718         (make_pass_ipa_single_use): New function.
17719
17720 2014-06-23  Kai Tietz  <ktietz@redhat.com>
17721
17722         PR target/39284
17723         * passes.def (peephole2): Move peephole2 pass before sched2 pass.
17724         * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
17725
17726 2014-06-23  Richard Biener  <rguenther@suse.de>
17727
17728         * tree-ssa-loop.c (gate_loop): New function.
17729         (pass_tree_loop::gate): Call it.
17730         (pass_data_tree_no_loop, pass_tree_no_loop,
17731         make_pass_tree_no_loop): New.
17732         * tree-vectorizer.c: Include tree-scalar-evolution.c
17733         (pass_slp_vectorize::execute): Initialize loops and SCEV if
17734         required.
17735         (pass_slp_vectorize::clone): New method.
17736         * timevar.def (TV_TREE_NOLOOP): New.
17737         * tree-pass.h (make_pass_tree_no_loop): Declare.
17738         * passes.def (pass_tree_no_loop): New pass group with
17739         SLP vectorizer.
17740
17741 2014-06-23  H.J. Lu  <hongjiu.lu@intel.com>
17742
17743         PR target/61570
17744         * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
17745         to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
17746
17747 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
17748
17749         * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
17750         "yes" where needed.
17751
17752 2014-06-23  Alan Modra  <amodra@gmail.com>
17753
17754         PR bootstrap/61583
17755         * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
17756         to zero on debug statements.
17757
17758 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
17759
17760         PR target/60825
17761         * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
17762         Ignore third operand if present by marking qualifier_internal.
17763
17764         * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
17765
17766         * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
17767         vector extension.
17768         (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
17769         arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
17770         (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
17771         vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
17772         vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
17773         vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
17774         vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
17775         vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
17776         vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
17777         vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
17778         vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
17779         vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
17780         vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
17781         vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
17782         vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
17783         vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
17784         logic in GCC vector extensions
17785
17786         (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
17787         vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
17788         vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
17789         vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
17790         vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
17791         vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
17792         vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
17793         vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
17794         vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
17795         vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
17796
17797         (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
17798
17799         (vget_high_s64, vget_high_u64): Reimplement with GCC vector
17800         extensions.
17801
17802         (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
17803         (vget_low_s64): Use __GET_LOW macro.
17804         (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
17805         gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
17806         (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
17807         (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
17808         __builtin_aarch64_lane_boundsi, use GCC vector extensions.
17809
17810         (vcombine_s64): Use GCC vector extensions; remove cast.
17811         (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
17812         vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
17813         vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
17814         Fix type signature; remove cast.
17815
17816 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
17817
17818         PR target/60825
17819         * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
17820         V1DFmode.
17821         * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
17822         add V1DFmode
17823         (BUILTIN_VD1): New.
17824         (BUILTIN_VD_RE): Remove.
17825         (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
17826         (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
17827         * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
17828         variant but not df.
17829         (vreinterpretv1df*, vreinterpret*v1df): New.
17830         (vreinterpretdf*, vreinterpret*df): Remove.
17831         * config/aarch64/aarch64-simd.md (aarch64_create,
17832         aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
17833         * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
17834         (VD1): New.
17835         * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
17836         (vcreate_f64): Remove cast, use v1df builtin.
17837         (vcombine_f64): Remove cast, get elements with gcc vector extensions.
17838         (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
17839         vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
17840         vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
17841         vmov_n_f64, vst1_f64): Use gcc vector extensions.
17842         (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
17843         add range check using __builtin_aarch64_im_lane_boundsi.
17844         (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
17845         vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
17846         type signature, use gcc vector extensions.
17847         (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
17848         vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
17849         vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
17850         vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
17851         vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
17852         vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
17853         vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
17854         vreinterpret_u64_f64): Use v1df builtin not df.
17855
17856 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
17857
17858         * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
17859         vector registers.
17860
17861 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
17862
17863         * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
17864         priority directly.
17865
17866 2014-06-23  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
17867
17868         * loop-invariant.c (pre_check_invariant_p): New function.
17869         (find_invariant_insn): Call pre_check_invariant_p.
17870
17871 2014-06-22  Richard Henderson  <rth@redhat.com>
17872
17873         PR target/61565
17874         * compare-elim.c (struct comparison): Add eh_note.
17875         (find_comparison_dom_walker::before_dom_children): Don't eliminate
17876         a redundant comparison in a different EH region.  Purge EH edges if
17877         necessary.
17878
17879 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
17880
17881         * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
17882         (var_shift): Use it.
17883         (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
17884         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
17885         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
17886         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
17887         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
17888         *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
17889         *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
17890         *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
17891         *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
17892         *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
17893         *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
17894         *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
17895         *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
17896         *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
17897         *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
17898         *rotldi3_internal15be): Use the new attribute.  Merge register and
17899         integer alternatives.
17900
17901 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
17902
17903         * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
17904         define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
17905         split, *ashrdi3_internal3 and split): Delete, merge into...
17906         (ashr<mode>3): New expander.
17907         (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
17908         (*ashrsi3_64): Fix formatting.  Replace "i" by "n".
17909
17910 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
17911
17912         * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
17913         *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
17914         *rotldi3_internal3 and split): Delete, merge into...
17915         (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
17916         (*rotlsi3_64): Fix formatting.  Fix condition.  Replace "i" by "n".
17917         Use "rotlw" extended mnemonic.
17918
17919 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
17920
17921         * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
17922         and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
17923         and split, *ashldi3_internal3 and split): Delete, merge into...
17924         (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
17925         (*ashlsi3_64): Fix formatting.  Replace "i" by "n".
17926
17927 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
17928
17929         * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
17930         (lshrsi3, two anonymous define_insns and define_splits,
17931         lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
17932         *lshrdi3_internal3 and split): Delete, merge into...
17933         (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
17934         (*lshrsi3_64): Fix formatting.  Replace "i" by "n".
17935
17936 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
17937
17938         * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
17939         Remove "O" alternative.
17940
17941 2014-06-22  Richard Sandiford  <rdsandiford@googlemail.com>
17942
17943         * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
17944         (mips_move_from_gpr_cost): Likewise.
17945         (mips_register_move_cost): Update accordingly.
17946         (mips_secondary_reload_class): Remove name of in_p.
17947
17948 2014-06-22  Marc Glisse  <marc.glisse@inria.fr>
17949
17950         PR target/61503
17951         * config/i386/i386.md (x86_64_shrd, x86_shrd,
17952         ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
17953
17954 2014-06-21  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
17955
17956         * config/nios2/nios2.c: Include "builtins.h".
17957
17958 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
17959
17960         * cgraph.h (tls_model_names): New variable.
17961         * print-tree.c (print_node): Simplify.
17962         * varpool.c (tls_model_names): New variable.
17963         (dump_varpool_node): Output tls model.
17964
17965 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
17966
17967         * ipa-visibility.c (function_and_variable_visibility): Disable
17968         temporarily local aliases for some targets.
17969
17970 2014-06-20  Marek Polacek  <polacek@redhat.com>
17971
17972         * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
17973         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
17974         into SANITIZE_UNDEFINED.
17975         * doc/invoke.texi: Describe -fsanitize=bounds.
17976         * gimplify.c (gimplify_call_expr): Add gimplification of internal
17977         functions created in the FEs.
17978         * internal-fn.c: Move "internal-fn.h" after "tree.h".
17979         (expand_UBSAN_BOUNDS): New function.
17980         * internal-fn.def (UBSAN_BOUNDS): New internal function.
17981         * internal-fn.h: Don't define internal functions here.
17982         * opts.c (common_handle_option): Add -fsanitize=bounds.
17983         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
17984         BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
17985         * tree-core.h: Define internal functions here.
17986         (struct tree_base): Add ifn field.
17987         * tree-pretty-print.c: Include "internal-fn.h".
17988         (dump_generic_node): Handle functions without CALL_EXPR_FN.
17989         * tree.c (get_callee_fndecl): Likewise.
17990         (build_call_expr_internal_loc): New function.
17991         * tree.def (CALL_EXPR): Update description.
17992         * tree.h (CALL_EXPR_IFN): Define.
17993         (build_call_expr_internal_loc): Declare.
17994         * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
17995         types.
17996         (ubsan_type_descriptor): Change bool parameter to enum
17997         ubsan_print_style.  Adjust the code.  Add handling of
17998         UBSAN_PRINT_ARRAY.
17999         (ubsan_expand_bounds_ifn): New function.
18000         (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
18001         (ubsan_build_overflow_builtin): Likewise.
18002         (instrument_bool_enum_load): Likewise.
18003         (ubsan_instrument_float_cast): Likewise.
18004         * ubsan.h (enum ubsan_print_style): New enum.
18005         (ubsan_expand_bounds_ifn): Declare.
18006         (ubsan_type_descriptor): Adjust declaration.  Use a default parameter.
18007
18008 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
18009
18010         * config/rs6000/rs6000.md: Append `DONE' to preparation
18011         statements of `bswap' pattern splitters.
18012
18013 2014-06-20  Tom de Vries  <tom@codesourcery.com>
18014
18015         * target.def (call_fusage_contains_non_callee_clobbers): Update
18016         definition.
18017         * doc/tm.texi: Regenerate.
18018
18019 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
18020             Max Ostapenko  <m.ostapenko@partner.samsung.com>
18021
18022         PR sanitizer/61547
18023         * asan.c (instrument_strlen_call): Fixed instrumentation of
18024         trailing byte.
18025
18026 2014-06-20  Martin Jambor  <mjambor@suse.cz>
18027
18028         PR ipa/61540
18029         * ipa-prop.c (impossible_devirt_target): New function.
18030         (try_make_edge_direct_virtual_call): Use it, also instead of
18031         asserting.
18032
18033 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
18034             Max Ostapenko  <m.ostapenko@partner.samsung.com>
18035
18036         PR sanitizer/61530
18037         * asan.c (build_check_stmt): Add condition.
18038
18039 2014-06-20  Martin Jambor  <mjambor@suse.cz>
18040
18041         PR ipa/61211
18042         * cgraph.c (clone_of_p): Allow skipped_branch to deal with
18043         expanded clones.
18044
18045 2014-06-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18046
18047         * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
18048         Update comments.
18049         (VCONQ): Make comment more helpful.
18050         (VCON): Delete.
18051         * config/aarch64/aarch64-simd.md
18052         (aarch64_sqdmulh_lane<mode>):
18053         Use VCOND for operands 2.  Update lane checking and flipping logic.
18054         (aarch64_sqrdmulh_lane<mode>): Likewise.
18055         (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
18056         (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
18057         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
18058         attribute of operand 3 to VCOND.
18059         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
18060         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
18061         (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
18062         (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
18063         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
18064         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
18065         define_insn.
18066         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
18067         (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
18068         (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
18069         (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
18070         (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
18071         (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
18072         operand to VCOND.  Update lane flipping and bounds checking logic.
18073         (aarch64_sqdmlal2_lane<mode>): Likewise.
18074         (aarch64_sqdmlsl_lane<mode>): Likewise.
18075         (aarch64_sqdmull_lane<mode>): Likewise.
18076         (aarch64_sqdmull2_lane<mode>): Likewise.
18077         (aarch64_sqdmlal_laneq<mode>):
18078         Replace VCON usage with VCONQ.
18079         Emit aarch64_sqdmlal_laneq<mode>_internal insn.
18080         (aarch64_sqdmlal2_laneq<mode>): Emit
18081         aarch64_sqdmlal2_laneq<mode>_internal insn.
18082         Replace VCON with VCONQ.
18083         (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
18084         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
18085         (aarch64_sqdmull_laneq<mode>): Emit
18086         aarch64_sqdmull_laneq<mode>_internal insn.
18087         Replace VCON with VCONQ.
18088         (aarch64_sqdmull2_laneq<mode>): Emit
18089         aarch64_sqdmull2_laneq<mode>_internal insn.
18090         (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
18091         * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
18092         of 3rd argument to int16x4_t.
18093         (vqdmlalh_lane_s16): Likewise.
18094         (vqdmlslh_lane_s16): Likewise.
18095         (vqdmull_high_lane_s16): Likewise.
18096         (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
18097         (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
18098         (vqdmlsl_lane_s16): Likewise.
18099         (vqdmull_lane_s16): Don't create temporary int16x8_t value.
18100         (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
18101         (vqdmlals_lane_s32): Likewise.
18102         (vqdmlsls_lane_s32): Likewise.
18103         (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
18104         (vqdmulls_lane_s32): Likewise.
18105         (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
18106         (vqdmlsl_lane_s32): Likewise.
18107         (vqdmull_lane_s32): Don't create temporary int32x4_t value.
18108         (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
18109         (vqrdmulhh_lane_s16): Likewise.
18110         (vqdmlsl_high_lane_s16): Likewise.
18111         (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
18112         (vqdmlsl_high_lane_s32): Likewise.
18113         (vqrdmulhs_lane_s32): Likewise.
18114
18115 2014-06-20  Tom de Vries  <tom@codesourcery.com>
18116
18117         * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
18118         get_call_reg_set_usage.
18119
18120 2014-06-20  Tom de Vries  <tom@codesourcery.com>
18121
18122         * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
18123         it contains all call_used_regs.
18124
18125 2014-06-20  Tom de Vries  <tom@codesourcery.com>
18126
18127         * final.c (collect_fn_hard_reg_usage): Add and use variable
18128         function_used_regs.
18129
18130 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
18131
18132         * cgraph.h (struct symtab_node): Add field in_init_priority_hash
18133         (set_init_priority, get_init_priority, set_fini_priority,
18134         get_fini_priority): New methods.
18135         * tree.c (init_priority_for_decl): Remove.
18136         (init_ttree): Do not initialize init priority.
18137         (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
18138         (decl_priority_info): Remove.
18139         (decl_init_priority_insert): Rewrite.
18140         (decl_fini_priority_insert): Rewrite.
18141         * tree.h (tree_priority_map_eq, tree_priority_map_hash,
18142         tree_priority_map_marked_p): Remove.
18143         * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
18144         * lto-streamer-out.c (hash_tree): Do not hash priorities.
18145         * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
18146         not output priorities.
18147         (pack_ts_function_decl_value_fields): Likewise.
18148         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
18149         not input priorities.
18150         (unpack_ts_function_decl_value_fields): Likewise.
18151         * symtab.c (symbol_priority_map): Declare.
18152         (init_priority_hash): Declare.
18153         (symtab_unregister_node): Unregister from priority hash, too.
18154         (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
18155         New methods.
18156         (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
18157         (symbol_priority_info): New function.
18158         (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
18159         New methods.
18160         * tree-core.h (tree_priority_map): Remove.
18161
18162 2014-06-20  Jakub Jelinek  <jakub@redhat.com>
18163
18164         * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
18165         0xff to uint64_t before shifting it up.
18166
18167 2014-06-20  Julian Brown  <julian@codesourcery.com>
18168             Chung-Lin Tang  <cltang@codesourcery.com>
18169
18170         * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
18171         TARGET_THUMB1_ONLY. Add comments.
18172
18173 2014-06-19  Tom de Vries  <tom@codesourcery.com>
18174
18175         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
18176         return type to void.
18177         * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
18178
18179 2014-06-19  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
18180
18181         * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
18182         as "move", from depends_on.
18183
18184 2014-06-19  Terry Guo  <terry.guo@arm.com>
18185
18186         * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
18187         stage.
18188
18189 2014-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
18190
18191         * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
18192         Remove cr5.
18193         (REG_ALLOC_ORDER): Update comment.  Move cr5 earlier.
18194
18195 2014-06-18  Kaz Kojima  <kkojima@gcc.gnu.org>
18196
18197         PR target/61550
18198         * config/sh/sh.c (prepare_move_operands): Don't process TLS
18199         addresses here if reload in progress or completed.
18200
18201 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
18202
18203         * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
18204         "TARGET_MIPS16 ? M16_REGS : GR_REGS".
18205         * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
18206         (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
18207         (mips_register_priority): New function that implements the target
18208         hook TARGET_REGISTER_PRIORITY.
18209         (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
18210         (mips_lra_p): Likewise for TARGET_LRA_P.
18211         (TARGET_REGISTER_PRIORITY): Define macro.
18212         (TARGET_SPILL_CLASS): Likewise.
18213         (TARGET_LRA_P): Likewise.
18214         * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
18215         classes.
18216         (REG_CLASS_NAMES): Likewise.
18217         (REG_CLASS_CONTENTS): Likewise.
18218         (BASE_REG_CLASS): Use M16_SP_REGS.
18219         * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
18220         New set attribute to enable alternatives depending on the register
18221         allocator used.
18222         (*mul_acc_si_r3900, *mul_sub_si): Likewise.
18223         (*lea64): Disable pattern for MIPS16.
18224         * config/mips/mips.opt (mlra): New option.
18225
18226 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
18227
18228         * lra-constraints.c (base_to_reg): New function.
18229         (process_address): Use new function.
18230
18231 2014-06-18  Tom de Vries  <tom@codesourcery.com>
18232
18233         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
18234         * config/aarch64/aarch64.c
18235         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
18236         (aarch64_emit_call_insn): New function.
18237         (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
18238         of emit_call_insn.
18239         * config/aarch64/aarch64.md (define_expand "call_internal")
18240         (define_expand "call_value_internal", define_expand "sibcall_internal")
18241         (define_expand "sibcall_value_internal"): New.
18242         (define_expand "call", define_expand "call_value")
18243         (define_expand "sibcall", define_expand "sibcall_value"): Use internal
18244         expand variant and aarch64_emit_call_insn.
18245
18246 2014-06-18  Radovan Obradovic  <robradovic@mips.com>
18247             Tom de Vries  <tom@codesourcery.com>
18248
18249         * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
18250         * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
18251         Redefine to true.
18252         (arm_emit_call_insn): Add and use sibcall parameter.  Add IP and CC
18253         clobbers to CALL_INSN_FUNCTION_USAGE.
18254         (define_expand "sibcall_internal")
18255         (define_expand "sibcall_value_internal"): New.
18256         (define_expand "call", define_expand "call_value"): Add argument to
18257         arm_emit_call_insn.
18258         (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
18259         (define_expand "sibcall_value"): Use sibcall_value_internal and
18260         arm_emit_call_insn.
18261
18262 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
18263
18264         * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
18265
18266 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
18267
18268         * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
18269         __udivmoddi4.
18270
18271 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
18272
18273         * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
18274         push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
18275         annotations. Fix DWARF information.
18276
18277 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
18278
18279         * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
18280         __udivmoddi4, and fixups for negative operands.
18281
18282 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
18283
18284         * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
18285
18286 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
18287
18288         * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
18289         to __udivmoddi4.
18290
18291 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
18292
18293         * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
18294         manipulation.
18295
18296 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
18297
18298         * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
18299         describing register usage on function entry and exit.
18300
18301 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
18302
18303         * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
18304         (__aeabi_ldivmod): Fix whitespace.
18305
18306 2014-06-18  Andreas Schwab  <schwab@suse.de>
18307
18308         * doc/md.texi (Standard Names): Use @itemx for grouped items.
18309         Remove blank line after @item.
18310
18311 2014-06-18  Richard Henderson  <rth@redhat.com>
18312
18313         PR target/61545
18314         * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
18315
18316 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
18317
18318         * config/arm/arm.c (neon_vector_mem_operand): Allow register
18319         POST_MODIFY for neon loads and stores.
18320         (arm_print_operand): Output post-index register for neon loads and
18321         stores.
18322
18323 2014-06-18  Richard Biener  <rguenther@suse.de>
18324
18325         * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
18326
18327 2014-06-18  Richard Biener  <rguenther@suse.de>
18328
18329         * tree-pass.h (make_pass_dce_loop): Remove.
18330         * passes.def: Replace pass_dce_loop with pass_dce.
18331         * tree-ssa-dce.c (perform_tree_ssa_dce): If something
18332         changed free niter estimates and reset the scev cache.
18333         (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
18334         make_pass_dce_loop): Remove.
18335         * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
18336         (fini_copy_prop): Return whether something changed.  Always
18337         let substitute_and_fold perform DCE and free niter estimates
18338         and reset the scev cache if so.
18339         (execute_copy_prop): If sth changed schedule cleanup-cfg.
18340         (pass_data_copy_prop): Do not unconditionally schedule
18341         cleanup-cfg or update-ssa.
18342
18343 2014-06-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
18344
18345         PR tree-optimization/61518
18346         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
18347         reduction var is used in reduction stmt or phi-function only.
18348
18349 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18350
18351         * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
18352
18353 2014-06-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18354
18355         PR tree-optimization/61517
18356         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
18357         whose rhs's first tree is the source expression instead of the
18358         expression itself.
18359         (find_bswap_or_nop): Likewise.
18360         (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
18361         gimple stmt whose rhs's first tree is the source. In the memory source
18362         case, move the stmt to be replaced close to one of the original load to
18363         avoid the problem of a store between the load and the stmt's original
18364         location.
18365         (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
18366         signature.
18367
18368 2014-06-18  Andreas Schwab  <schwab@suse.de>
18369
18370         PR rtl-optimization/54555
18371         * postreload.c (move2add_use_add2_insn): Substitute
18372         STRICT_LOW_PART only if it is cheaper.
18373
18374 2014-06-18  Uros Bizjak  <ubizjak@gmail.com>
18375
18376         * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
18377         Do not use unspec as call operand.  Use memory_operand instead of
18378         memory_nox32_operand and add "m" operand constraint.  Disable
18379         pattern for TARGET_X32.
18380         (*sibcall_pop_memory): Ditto.
18381         (*sibcall_value_memory): Ditto.
18382         (*sibcall_value_pop_memory): Ditto.
18383         (sibcall peepholes): Merge SImode and DImode patterns using
18384         W mode iterator.  Use memory_operand instead of memory_nox32_operand.
18385         Disable pattern for TARGET_X32.  Check if eliminated register is
18386         really dead after call insn.  Generate call RTX without unspec operand.
18387         (sibcall_value peepholes): Ditto.
18388         (sibcall_pop peepholes): Fix call insn RTXes.  Use memory_operand
18389         instead of memory_nox32_operand.  Check if eliminated register is
18390         really dead after call insn. Generate call RTX without unspec operand.
18391         (sibcall_value_pop peepholes): Ditto.
18392         * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
18393
18394 2014-06-18  Terry Guo  <terry.guo@arm.com>
18395
18396         PR target/61544
18397         * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
18398         reach the head.
18399
18400 2014-06-18  Olivier Hainque  <hainque@adacore.com>
18401
18402         * tree-core.h (tree_block): Add an "end_locus" field, allowing
18403         memorization of the end of block source location.
18404         * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
18405         * gimplify.c (gimplify_bind_expr): Propagate the block start and
18406         end source location info we have on the block entry/exit code we
18407         generate.
18408
18409 2014-06-18  Richard Biener  <rguenther@suse.de>
18410
18411         * common.opt (fssa-phiopt): New option.
18412         * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
18413         but not with -Og.
18414         * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
18415         * doc/invoke.texi (-fssa-phiopt): Document.
18416
18417 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18418
18419         * genattrtab.c (n_bypassed): New variable.
18420         (process_bypasses): Initialise n_bypassed.
18421         Count number of bypassed reservations.
18422         (make_automaton_attrs): Allocate space for bypassed reservations
18423         rather than number of bypasses.
18424
18425 2014-06-18  Richard Biener  <rguenther@suse.de>
18426
18427         * tree-ssa-propagate.c (replace_phi_args_in): Return whether
18428         we propagated anything.
18429         (substitute_and_fold_dom_walker::before_dom_children): Something
18430         changed if we propagated into PHI arguments.
18431         * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
18432         we removed a stmt.
18433
18434 2014-06-18  Evgeny Stupachenko  <evstupac@gmail.com>
18435
18436         * config/i386/i386.c (ix86_reassociation_width): Add alternative for
18437         vector case.
18438         * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
18439         * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
18440         * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
18441         Introduces alternative way of loads group permutaions.
18442         (vect_transform_grouped_load): Try alternative way of permutations.
18443
18444 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
18445
18446         * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
18447         changed in ORT_TARGET region, don't jump to do_outer.
18448         (struct gimplify_adjust_omp_clauses_data): New type.
18449         (gimplify_adjust_omp_clauses_1): Adjust for data being
18450         a struct gimplify_adjust_omp_clauses_data pointer instead
18451         of tree *.  Pass pre_p as a new argument to
18452         lang_hooks.decls.omp_finish_clause hook.
18453         (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
18454         splay_tree_foreach to pass both list_p and pre_p.
18455         (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
18456         gimplify_omp_workshare, gimplify_omp_target_update): Adjust
18457         gimplify_adjust_omp_clauses callers.
18458         * langhooks.c (lhd_omp_finish_clause): New function.
18459         * langhooks-def.h (lhd_omp_finish_clause): New prototype.
18460         (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
18461         * langhooks.h (struct lang_hooks_for_decls): Add a new
18462         gimple_seq * argument to omp_finish_clause hook.
18463         * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
18464         non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
18465         (scan_omp_parallel, lower_omp_for): When adding
18466         _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
18467         * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
18468         * tree-nested.c (convert_nonlocal_omp_clauses,
18469         convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
18470         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
18471
18472 2014-06-17  Andrew MacLeod  <amacleod@redhat.com>
18473
18474         * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
18475         * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
18476
18477 2014-06-17  Xinliang David Li  <davidxl@google.com>
18478
18479         * tree-pretty-print.c (dump_function_header): Print cgraph uid.
18480         * passes.c (pass_init_dump_file): Do not set initialize
18481         flag to false unconditionally.
18482
18483 2014-06-17  Richard Biener  <rguenther@suse.de>
18484
18485         * genopinit.c (main): Use vec<>::qsort method.
18486         * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
18487         Likewise.
18488         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
18489
18490 2014-06-17  Matthew Fortune  <matthew.fortune@imgtec.com>
18491
18492         * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
18493         * config/mips/mips.c (mips_expand_fcc_reload): Remove.
18494         (mips_move_to_gpr_cost): Remove ST_REGS case.
18495         (mips_move_from_gpr_cost): Likewise.
18496         (mips_register_move_cost): Likewise.
18497         (mips_secondary_reload_class): Likewise.
18498
18499 2014-06-17  Richard Biener  <rguenther@suse.de>
18500
18501         * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
18502         (pass_all_optimizations): Move 3rd copy-prop pass from after
18503         fre to before ifcombine/phiopt.
18504
18505 2014-06-17  Richard Biener  <rguenther@suse.de>
18506
18507         * tree-switch-conversion.c (collect_switch_conv_info): Simplify
18508         and allow all blocks to be forwarders.
18509
18510 2014-06-17  Yufeng Zhang  <yufeng.zhang@arm.com>
18511
18512         PR target/61483
18513         * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
18514         variable 'size'; calculate 'size' right in the front; use
18515         'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
18516         pcum->aapcs_stack_words.
18517
18518 2014-06-17  Nick Clifton  <nickc@redhat.com>
18519
18520         * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
18521         (umulhi3, mulsidi3, umulsidi3): Likewise.
18522
18523 2014-06-17  Thomas Schwinge  <thomas@codesourcery.com>
18524
18525         PR middle-end/61508
18526         * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
18527         check for section name.
18528
18529 2014-06-17  Richard Biener  <rguenther@suse.de>
18530
18531         * tree-ssa-propagate.c: Include domwalk.h.
18532         (substitute_and_fold): Outline main worker into a domwalker ...
18533         (substitute_and_fold_dom_walker::before_dom_children): ... here.
18534         Schedule stmts we can fully propagate for removal.  Remove
18535         poor-mans DCE.
18536         (substitute_and_fold): Apply a dominator walk to perform
18537         substitution.  Process stmts scheduled for removal here.
18538
18539 2014-06-17  Richard Biener  <rguenther@suse.de>
18540
18541         * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
18542         of PHI node moving.
18543
18544 2014-06-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
18545
18546         * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
18547         default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
18548         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
18549         __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
18550         * config/arm/vfp.md (set_fpscr): Make pattern conditional on
18551         TARGET_HARD_FLOAT.
18552         (get_fpscr) : Likewise.
18553
18554 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
18555
18556         PR rtl-optimization/61325
18557         * lra-constraints.c (valid_address_p): Add forward declaration.
18558         (simplify_operand_subreg): Check address validity before and after
18559         alter_reg of memory subreg.
18560
18561 2014-06-16  Uros Bizjak  <ubizjak@gmail.com>
18562
18563         * config/i386/i386.c (decide_alg): Correctly handle
18564         maximum size of stringop algorithm.
18565
18566 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
18567
18568         * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
18569
18570 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
18571
18572         PR rtl-optimization/61522
18573         * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
18574
18575 2014-06-16  Jan Hubicka  <hubicka@ucw.cz>
18576
18577         Revert:
18578         * symtab.c (symtab_node::reset_section): New method.
18579         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
18580         for localization.
18581         * cgraph.h (reset_section): Declare.
18582         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
18583         do not consider comdat locals.
18584         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
18585         for new symbol.
18586         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
18587         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
18588         reset sections of symbols dragged out of the comdats.
18589         (function_and_variable_visibility): Reset sections of
18590         localized symbols.
18591
18592 2014-06-16  Richard Biener  <rguenther@suse.de>
18593
18594         PR tree-optimization/61482
18595         * tree-vrp.c (adjust_range_with_scev): Avoid setting of
18596         [-INF(OVF), +INF(OVF)] range.
18597
18598 2014-06-16  Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
18599
18600         * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
18601         instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
18602         handling 32-bit multiplication.
18603
18604 2014-06-16  Chung-Lin Tang  <cltang@codesourcery.com>
18605
18606         PR middle-end/61430
18607         * lra-lives.c (process_bb_lives): Skip creating copy during
18608         insn scan when src/dest has constrained to same regno.
18609
18610 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
18611
18612         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
18613         DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
18614
18615 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
18616
18617         * asan.c (check_func): New function.
18618         (maybe_create_ssa_name): Likewise.
18619         (build_check_stmt_with_calls): Likewise.
18620         (use_calls_p): Likewise.
18621         (report_error_func): Change interface.
18622         (build_check_stmt): Allow non-integer lengths; add support
18623         for new parameter.
18624         (asan_instrument): Likewise.
18625         (instrument_mem_region_access): Moved code to build_check_stmt.
18626         (instrument_derefs): Likewise.
18627         (instrument_strlen_call): Likewise.
18628         * cfgcleanup.c (old_insns_match_p): Add support for new functions.
18629         * doc/invoke.texi: Describe new parameter.
18630         * params.def: Define new parameter.
18631         * params.h: Likewise.
18632         * sanitizer.def: Describe new builtins.
18633
18634 2014-06-16  Richard Biener  <rguenther@suse.de>
18635
18636         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
18637         Make all defs available at the end.
18638         (eliminate): If we remove a PHI node schedule cfg-cleanup.
18639
18640 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
18641
18642         PR plugins/45078
18643         * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
18644
18645 2014-06-16  Richard Sandiford  <rdsandiford@googlemail.com>
18646
18647         PR bootstrap/61516
18648         * auto-inc-dec.c (merge_in_block): Fix location of insn_info
18649         initialization.  Replace remaining use of uid.
18650
18651 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
18652
18653         * c-family/c-common.c (handle_tls_model_attribute): Use
18654         set_decl_tls_model.
18655         * c-family/c-common.c (handle_tls_model_attribute): Use
18656         set_decl_tls_model.
18657         * cgraph.h (struct varpool_node): Add tls_model.
18658         * tree.c (decl_tls_model, set_decl_tls_model): New functions.
18659         * tree.h (DECL_TLS_MODEL): Update.
18660         (DECL_THREAD_LOCAL_P): Check that variable is static.
18661         (decl_tls_model): Declare.
18662         (set_decl_tls_model): Declare.
18663         * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
18664         set symbol prorperties.
18665         (get_emutls_init_templ_addr): Cleanup.
18666         (new_emutls_decl): Update.
18667         * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
18668         (lto_input_varpool_node): Likewise.
18669         * lto-streamer-out.c (hash_tree): Likewise.
18670         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
18671         not stream DECL_TLS_MODEL.
18672         * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
18673         * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
18674
18675 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
18676
18677         * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
18678
18679 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
18680
18681         * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
18682         (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
18683         lists.
18684         (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
18685         (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
18686         (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
18687         (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
18688         (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
18689         (df_get_artificial_defs, df_get_artificial_uses)
18690         (df_single_def, df_single_use): Update accordingly.
18691         (df_refs_chain_dump): Take the first element in a linked list as
18692         parameter, rather than a pointer to an array of pointers.
18693         * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
18694         * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
18695         (df_chain_create_bb_process_use): Likewise.
18696         (df_md_bb_local_compute_process_def): Likewise.
18697         * fwprop.c (process_defs, process_uses): Likewise.
18698         (register_active_defs, update_uses): Likewise.
18699         (forward_propagate_asm): Update for new df_ref linking.
18700         * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
18701         (df_null_ref_rec, df_null_mw_rec): Likewise.
18702         (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
18703         explicitly.
18704         (df_scan_free_bb_info): Remove check for null artificial_defs.
18705         (df_install_ref_incremental): Adjust for new df_ref linking.
18706         Use a single-element insertion rather than a full sort.
18707         (df_ref_chain_delete_du_chain): Take the first element
18708         in a linked list as parameter, rather than a pointer to an array of
18709         pointers.
18710         (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
18711         (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
18712         (df_insn_info_delete): Remove check for null defs and call to
18713         df_scan_free_mws_vec.
18714         (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
18715         null rather than df_null_*_rec.
18716         (df_insn_rescan_debug_internal): Likewise, and update null
18717         checks in the same way.  Remove check for null defs.
18718         (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
18719         Move a single element rather doing a full sort.
18720         (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
18721         linking.
18722         (df_notes_rescan): Likewise.  Use a merge rather than a full sort.
18723         Initialize df_ref and df_mw_hardreg lists to null rather than
18724         df_null_*_rec.
18725         (df_ref_compare): Take df_refs as parameter, transferring the
18726         old interface to...
18727         (df_ref_ptr_compare): ...this new function.
18728         (df_sort_and_compress_refs): Update accordingly.
18729         (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
18730         old interface to...
18731         (df_mw_ptr_compare): ...this new function.
18732         (df_sort_and_compress_mws): Update accordingly.
18733         (df_install_refs, df_install_mws): Return a linked list rather than
18734         an array of pointers.
18735         (df_refs_add_to_chains): Assert that old lists are empty rather
18736         than freeing them.
18737         (df_insn_refs_verify): Don't handle null defs speciailly.
18738         * web.c (union_match_dups): Update for new df_ref linking.
18739
18740 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
18741
18742         * df.h (df_ref_create, df_ref_remove): Delete.
18743         * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
18744         (df_ref_remove): Likewise.
18745
18746 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
18747
18748         * df.h (df_single_def, df_single_use): New functions.
18749         * ira.c (find_moveable_pseudos): Use them.
18750
18751 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
18752
18753         * df.h (FOR_EACH_INSN_INFO_MW): New macro.
18754         * df-problems.c (df_note_bb_compute): Use it.
18755         * regstat.c (regstat_bb_compute_ri): Likewise.
18756
18757 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
18758
18759         * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
18760         * cse.c (cse_extended_basic_block): Use them.
18761         * dce.c (mark_artificial_use): Likewise.
18762         * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
18763         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
18764         (df_chain_remove_problem, df_chain_bb_dump): Likewise.
18765         (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
18766         (df_simulate_initialize_backwards): Likewise.
18767         (df_simulate_finalize_backwards): Likewise.
18768         (df_simulate_initialize_forwards): Likewise.
18769         (df_md_simulate_artificial_defs_at_top): Likewise.
18770         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
18771         * regrename.c (init_rename_info): Likewise.
18772         * regstat.c (regstat_bb_compute_ri): Likewise.
18773         (regstat_bb_compute_calls_crossed): Likewise.
18774
18775 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
18776
18777         * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
18778         (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
18779         (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
18780         * auto-inc-dec.c (find_inc, merge_in_block): Use them.
18781         * combine.c (create_log_links): Likewise.
18782         * compare-elim.c (find_flags_uses_in_insn): Likewise.
18783         (try_eliminate_compare): Likewise.
18784         * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
18785         * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
18786         (remove_reg_equal_equiv_notes_for_defs): Likewise.
18787         (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
18788         (word_dce_process_block, dce_process_block): Likewise.
18789         * ddg.c (def_has_ccmode_p): Likewise.
18790         * df-core.c (df_bb_regno_first_def_find): Likewise.
18791         (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
18792         * df-problems.c (df_rd_simulate_one_insn): Likewise.
18793         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
18794         (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
18795         (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
18796         (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
18797         (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
18798         (df_simulate_find_defs, df_simulate_find_uses): Likewise.
18799         (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
18800         (df_simulate_uses, df_md_simulate_one_insn): Likewise.
18801         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
18802         * fwprop.c (local_ref_killed_between_p): Likewise.
18803         (all_uses_available_at, free_load_extend): Likewise.
18804         * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
18805         * hw-doloop.c (scan_loop): Likewise.
18806         * ifcvt.c (dead_or_predicable): Likewise.
18807         * init-regs.c (initialize_uninitialized_regs): Likewise.
18808         * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
18809         (process_bb_node_lives): Likewise.
18810         * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
18811         (find_moveable_pseudos): Likewise.
18812         * loop-invariant.c (check_dependencies, record_uses): Likewise.
18813         * recog.c (peep2_find_free_register): Likewise.
18814         * ree.c (get_defs): Likewise.
18815         * regstat.c (regstat_bb_compute_ri): Likewise.
18816         (regstat_bb_compute_calls_crossed): Likewise.
18817         * sched-deps.c (find_inc, find_mem): Likewise.
18818         * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
18819         (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
18820         * shrink-wrap.c (requires_stack_frame_p): Likewise.
18821         (prepare_shrink_wrap): Likewise.
18822         * store-motion.c (compute_store_table, build_store_vectors): Likewise.
18823         * web.c (union_defs, pass_web::execute): Likewise.
18824         * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
18825         (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
18826
18827 2014-06-13  Vladimir Makarov  <vmakarov@redhat.com>
18828
18829         * lra-assign.c (assign_by_spills): Add code to assign vector regs
18830         to inheritance pseudos.
18831         * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
18832
18833 2014-06-13  Peter Bergner  <bergner@vnet.ibm.com>
18834
18835         PR target/61415
18836         * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
18837         (BU_MISC_2): Rename to ...
18838         (BU_LDBL128_2): ... this.
18839         * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
18840         (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
18841         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
18842         RS6000_BTM_LDBL128.
18843         (rs6000_invalid_builtin): Add long double 128-bit builtin support.
18844         (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
18845         * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
18846         (unpacktf_1): Likewise.
18847         * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
18848         (__builtin_longdouble_dw1): Likewise.
18849         * doc/sourcebuild.texi (longdouble128): Document.
18850
18851 2014-06-13  Jeff Law  <law@redhat.com>
18852
18853         PR rtl-optimization/61094
18854         PR rtl-optimization/61446
18855         * ree.c (combine_reaching_defs): Get the mode for the copy from
18856         the extension insn rather than the defining insn.
18857
18858 2014-06-13  Dehao Chen  <dehao@google.com>
18859
18860         * dwarf2out.c (add_linkage_name): Emit more linkage name.
18861
18862 2014-06-13  Thomas Schwinge  <thomas@codesourcery.com>
18863
18864         * doc/install.texi (--enable-linker-plugin-configure-flags)
18865         (--enable-linker-plugin-flags): Document new flags.
18866
18867 2014-06-13  Martin Jambor  <mjambor@suse.cz>
18868
18869         PR ipa/61186
18870         * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
18871         cache_token if returning early.
18872
18873 2014-06-13  Nick Clifton  <nickc@redhat.com>
18874
18875         * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
18876         requested alignment is active.
18877         (LABEL_ALIGN): Likewise.
18878         (LOOP_ALIGN): Likewise.
18879
18880 2014-06-13  Richard Biener  <rguenther@suse.de>
18881
18882         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
18883         Rewrite to propagate the VN result into all uses where
18884         possible and to remove stmts becoming dead because of that.
18885         (eliminate): Generalize stmt removal handling, remove in
18886         reverse dominator order to support proper debug stmt
18887         generation.  Update stmts before removing stmts.
18888         * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
18889
18890 2014-06-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18891
18892         PR tree-optimization/61375
18893         * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
18894         symbolic number cannot be represented in an uint64_t.
18895         (find_bswap_or_nop_1): Likewise.
18896
18897 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
18898
18899         * symtab.c (symtab_node::reset_section): New method.
18900         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
18901         for localization.
18902         * cgraph.h (reset_section): Declare.
18903         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
18904         do not consider comdat locals.
18905         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
18906         for new symbol.
18907         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
18908         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
18909         reset sections of symbols dragged out of the comdats.
18910         (function_and_variable_visibility): Reset sections of
18911         localized symbols.
18912
18913 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
18914
18915         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
18916         to use symtab and decl_binds_to_current_def_p
18917         * tree-vectorizer.c (increase_alignment): Increase alignment
18918         of alias target, too.
18919
18920 2014-06-12  Jakub Jelinek  <jakub@redhat.com>
18921
18922         PR middle-end/61486
18923         * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
18924         (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
18925         if outer combined construct is distribute.
18926         (gimplify_omp_for): For OMP_DISTRIBUTE set
18927         gimplify_omp_ctxp->distribute.
18928         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
18929         GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
18930         mapping into decl map.
18931
18932 2014-06-12  Jason Merrill  <jason@redhat.com>
18933
18934         * common.opt (fabi-version): Change default to 0.
18935
18936 2014-06-12  Jason Merrill  <jason@redhat.com>
18937
18938         * toplev.c (process_options): Reject -fabi-version=1.
18939
18940 2014-06-12  Jeff Law  <law@redhat.com>
18941
18942         PR tree-optimization/61009
18943         * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
18944         value when we stop processing a block due to problematic PHIs.
18945
18946 2014-06-12  Alan Lawrence  <alan.lawrence@arm.com>
18947
18948         * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
18949         vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
18950         vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
18951         vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
18952         vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
18953         vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
18954         vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
18955         are not in the spec.
18956
18957 2014-06-10  Alan Lawrence  <alan.lawrence@arm.com>
18958
18959         PR target/59843
18960         * config/aarch64/aarch64-modes.def: Add V1DFmode.
18961         * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
18962         Support V1DFmode.
18963
18964 2014-06-12  Eric Botcazou  <ebotcazou@adacore.com>
18965
18966         * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
18967
18968 2014-06-12  Georg-Johann Lay  <avr@gjlay.de>
18969
18970         PR target/61443
18971         * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
18972         loading from address spaces.
18973
18974 2014-06-12  Martin Liska  <mliska@suse.cz>
18975
18976         PR ipa/61462
18977         * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
18978         statement is reachable.
18979
18980 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
18981
18982         * symtab.c (section_hash): New hash.
18983         (symtab_unregister_node): Clear section before freeing.
18984         (hash_section_hash_entry): New haser.
18985         (eq_sections): New function.
18986         (symtab_node::set_section_for_node): New method.
18987         (set_section_1): Update.
18988         (symtab_node::set_section): Take string instead of tree as parameter.
18989         (symtab_resolve_alias): Update.
18990         * cgraph.h (section_hash_entry_d): New structure.
18991         (section_hash_entry): New typedef.
18992         (cgraph_node): Change comdat_group_ to x_comdat_group,
18993         change section_ to x_section and turn into section_hash_entry;
18994         update accestors; put set_section_for_node offline.
18995         * tree.c (decl_section_name): Turn into string.
18996         (set_decl_section_name): Change parameter to be string.
18997         * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
18998         * sdbout.c (sdbout_one_type): Update.
18999         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
19000         * varasm.c (IN_NAMED_SECTION, get_named_section,
19001         resolve_unique_section, hot_function_section, get_named_text_section,
19002         USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
19003         make_decl_rtl, default_unique_section): Update.
19004         * config/c6x/c6x.c (c6x_in_small_data_p): Update.
19005         (c6x_elf_unique_section): Update.
19006         * config/nios2/nios2.c (nios2_in_small_data_p): Update.
19007         * config/pa/pa.c (pa_function_section): Update.
19008         * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
19009         * config/ia64/ia64.c (ia64_in_small_data_p): Update.
19010         * config/arc/arc.c (arc_in_small_data_p): Update.
19011         * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
19012         * config/mcore/mcore.c (mcore_unique_section): Update.
19013         * config/mips/mips.c (mips16_build_function_stub): Update.
19014         (mips16_build_call_stub): Update.
19015         (mips_function_rodata_section): Update.
19016         (mips_in_small_data_p): Update.
19017         * config/score/score.c (score_in_small_data_p): Update.
19018         * config/rx/rx.c (rx_in_small_data): Update.
19019         * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
19020         (rs6000_xcoff_asm_named_section): Update.
19021         (rs6000_xcoff_unique_section): Update.
19022         * config/frv/frv.c (frv_string_begins_with): Update.
19023         (frv_in_small_data_p): Update.
19024         * config/v850/v850.c (v850_encode_data_area): Update.
19025         * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
19026         (bfin_handle_l1_data_attribute): Update.
19027         (bfin_handle_l2_attribute): Update.
19028         * config/mep/mep.c (mep_unique_section): Update.
19029         * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
19030         Update.
19031         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
19032         (h8300_handle_tiny_data_attribute): Update.
19033         * config/m32r/m32r.c (m32r_in_small_data_p): Update.
19034         (m32r_in_small_data_p): Update.
19035         * config/alpha/alpha.c (alpha_in_small_data_p): Update.
19036         * config/i386/i386.c (ix86_in_large_data_p): Update.
19037         * config/i386/winnt.c (i386_pe_unique_section): Update.
19038         * config/darwin.c (darwin_function_section): Update.
19039         * config/lm32/lm32.c (lm32_in_small_data_p): Update.
19040         * tree-emutls.c (get_emutls_init_templ_addr): Update.
19041         (new_emutls_decl): Update.
19042         * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
19043         input_varpool_node): Update.
19044         (ead_string_cst): Turn to ...
19045         (read_string): ... this one.
19046         * dwarf2out.c (secname_for_decl): Update.
19047         * asan.c (asan_protect_global): Update.
19048
19049 2014-06-11  DJ Delorie  <dj@redhat.com>
19050
19051         * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
19052         cache lines.
19053         * config/rx/rx.c (rx_option_override): Likewise.
19054         (rx_align_for_label): Likewise.
19055
19056         * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
19057
19058 2014-06-11  Maciej W. Rozycki  <macro@codesourcery.com>
19059
19060         * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
19061         prototype.
19062
19063 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
19064
19065         * common.md: New file.
19066         * doc/md.texi: Update description of generic, machine-independent
19067         constraints.
19068         * config/s390/constraints.md (e): Delete.
19069         * Makefile.in (md_file): Include common.md.
19070         * config/m32c/t-m32c (md_file): Likewise.
19071         * genpreds.c (general_mem): New array.
19072         (generic_constraint_letters): Remove constraints now defined by
19073         common.md.
19074         (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
19075         Allow the first character to be '<' or '>' as well.
19076         * genoutput.c (general_mem): New array.
19077         (indep_constraints): Remove constraints now defined by common.md.
19078         (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
19079         Remove special handling of 'm'.
19080         * ira-costs.c (record_reg_classes): Remove special handling of
19081         constraints now defined by common.md.
19082         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
19083         * ira-lives.c (single_reg_class): Likewise.
19084         (ira_implicitly_set_insn_hard_regs): Likewise.
19085         * lra-constraints.c (reg_class_from_constraints): Likewise.
19086         (process_alt_operands, process_address, curr_insn_transform): Likewise.
19087         * postreload.c (reload_cse_simplify_operands): Likewise.
19088         * reload.c (push_secondary_reload, scratch_reload_class)
19089         (find_reloads, alternative_allows_const_pool_ref): Likewise.
19090         * reload1.c (maybe_fix_stack_asms): Likewise.
19091         * targhooks.c (default_secondary_reload): Likewise.
19092         * stmt.c (parse_output_constraint): Likewise.
19093         * recog.c (preprocess_constraints): Likewise.
19094         (constrain_operands, peep2_find_free_register): Likewise.
19095         (asm_operand_ok): Likewise, but add a comment saying why 'o'
19096         must be handled specially.
19097
19098 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
19099
19100         * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
19101         * genpreds.c (have_const_dbl_constraints): Delete.
19102         (add_constraint): Don't set it.
19103         (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
19104         * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
19105         constraints using the lookup_constraint logic.
19106         * ira-lives.c (single_reg_class): Likewise.
19107         * ira.c (ira_setup_alts): Likewise.
19108         * lra-constraints.c (process_alt_operands): Likewise.
19109         * recog.c (asm_operand_ok, constrain_operands): Likewise.
19110         * reload.c (find_reloads): Likewise.
19111
19112 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
19113
19114         * genpreds.c (const_int_start, const_int_end): New variables.
19115         (choose_enum_order): Output CONST_INT constraints before memory
19116         constraints.
19117         (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
19118         Add CT_CONST_INT.
19119         * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
19120         * ira.c (ira_setup_alts): Likewise.
19121         * lra-constraints.c (process_alt_operands): Likewise.
19122         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
19123         * reload.c (find_reloads): Likewise.
19124
19125 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
19126
19127         * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
19128         decmem_ok and incmem_ok.  Reformat other bitfields for consistency.
19129         * recog.c (preprocess_constraints): Update accordingly.
19130
19131 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
19132
19133         * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
19134         (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
19135         (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
19136         * genpreds.c (print_type_tree): New function.
19137         (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
19138         REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
19139         EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
19140         Write out enum constraint_type and get_constraint_type.
19141         * lra-constraints.c (satisfies_memory_constraint_p): Take a
19142         constraint_num rather than a constraint string.
19143         (satisfies_address_constraint_p): Likewise.
19144         (reg_class_from_constraints): Avoid old constraint macros.
19145         (process_alt_operands, process_address_1): Likewise.
19146         (curr_insn_transform): Likewise.
19147         * ira-costs.c (record_reg_classes): Likewise.
19148         (record_operand_costs): Likewise.
19149         * ira-lives.c (single_reg_class): Likewise.
19150         (ira_implicitly_set_insn_hard_regs): Likewise.
19151         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
19152         * postreload.c (reload_cse_simplify_operands): Likewise.
19153         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
19154         (constrain_operands, peep2_find_free_register): Likewise.
19155         * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
19156         (find_reloads, alternative_allows_const_pool_ref): Likewise.
19157         * reload1.c (maybe_fix_stack_asms): Likewise.
19158         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
19159         * targhooks.c (default_secondary_reload): Likewise.
19160         * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
19161         to EXTRA_CONSTRAINT_STR.
19162         * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
19163
19164 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
19165
19166         * genpreds.c (write_constraint_satisfied_p_1): Replace with...
19167         (write_constraint_satisfied_p_array): ...this new function.
19168         (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
19169         an array.
19170         (write_insn_preds_c): Update accordingly.
19171
19172 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
19173
19174         * genpreds.c (write_lookup_constraint): Rename to...
19175         (write_lookup_constraint_1): ...this.
19176         (write_lookup_constraint_array): New function.
19177         (write_tm_preds_h): Define lookup_constraint as an inline function
19178         that uses write_lookup_constraint_array where possible.
19179         (write_insn_preds_c): Update for the changes above.
19180
19181 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
19182
19183         * doc/md.texi (regclass_for_constraint): Rename to...
19184         (reg_class_for_constraint): ...this.
19185         * genpreds.c (num_constraints, enum_order, register_start)
19186         (register_end, satisfied_start, memory_start, memory_end)
19187         (address_start, address_end): New variables.
19188         (add_constraint): Count the number of constraints.
19189         (choose_enum_order): New function.
19190         (write_enum_constraint_num): Iterate over enum_order.
19191         (write_regclass_for_constraint): Rename to...
19192         (write_reg_class_for_constraint_1): ...this and update output
19193         accordingly.
19194         (write_constraint_satisfied_p): Rename to...
19195         (write_constraint_satisfied_p_1): ...this and update output
19196         accordingly.  Do nothing if all extra constraints are register
19197         constraints.
19198         (write_insn_extra_memory_constraint): Delete.
19199         (write_insn_extra_address_constraint): Delete.
19200         (write_range_function): New function.
19201         (write_tm_preds_h): Define constraint_satisfied_p and
19202         reg_class_for_constraint as inline functions that do a range check
19203         before calling the out-of-line function.  Use write_range_function
19204         to implement insn_extra_{register,memory,address}_constraint,
19205         the first of which is new.
19206         (write_insn_preds_c): Update after above changes to write_* functions.
19207         (main): Call choose_enum_order.
19208
19209 2014-06-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
19210
19211         PR tree-optimization/61306
19212         * tree-ssa-math-opts.c (struct symbolic_number): Store type of
19213         expression instead of its size.
19214         (do_shift_rotate): Adapt to change in struct symbolic_number. Return
19215         false to prevent optimization when the result is unpredictable due to
19216         arithmetic right shift of signed type with highest byte is set.
19217         (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
19218         (init_symbolic_number): Likewise.
19219         (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
19220         when the result is unpredictable due to sign extension.
19221
19222 2014-06-11  Terry Guo  <terry.guo@arm.com>
19223
19224         * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
19225         (*thumb1_addsi3): Ditto.
19226         (*thumb_subdi3): Ditto.
19227         (thumb1_subsi3_insn): Ditto.
19228         (*thumb_mulsi3): Ditto.
19229         (*thumb_mulsi3_v6): Ditto.
19230         (*thumb1_andsi3_insn): Ditto.
19231         (thumb1_bicsi3): Ditto.
19232         (*thumb1_iorsi3_insn): Ditto.
19233         (*thumb1_xorsi3_insn): Ditto.
19234         (*thumb1_ashlsi3): Ditto.
19235         (*thumb1_ashrsi3): Ditto.
19236         (*thumb1_lshrsi3): Ditto.
19237         (*thumb1_rotrsi3): Ditto.
19238         (*thumb1_negdi2): Ditto.
19239         (*thumb1_negsi2): Ditto.
19240         (*thumb1_abssi2): Ditto.
19241         (*thumb1_neg_abssi2): Ditto.
19242         (*thumb1_one_cmplsi2): Ditto.
19243         (*thumb1_zero_extendhisi2): Ditto.
19244         (*thumb1_zero_extendqisi2): Ditto.
19245         (*thumb1_zero_extendqisi2_v6): Ditto.
19246         (thumb1_extendhisi2): Ditto.
19247         (thumb1_extendqisi2): Ditto.
19248         (*thumb1_movdi_insn): Ditto.
19249         (*thumb1_movsi_insn): Ditto.
19250         (*thumb1_movhi_insn): Ditto.
19251         (thumb_movhi_clobber): Ditto.
19252         (*thumb1_movqi_insn): Ditto.
19253         (*thumb1_movhf): Ditto.
19254         (*thumb1_movsf_insn): Ditto.
19255         (*thumb_movdf_insn): Ditto.
19256         (movmem12b): Ditto.
19257         (movmem8b): Ditto.
19258         (cbranchqi4): Ditto.
19259         (cbranchsi4_insn): Ditto.
19260         (cbranchsi4_scratch): Ditto.
19261         (*negated_cbranchsi4): Ditto.
19262         (*tbit_cbranch): Ditto.
19263         (*tlobits_cbranch): Ditto.
19264         (*tstsi3_cbranch): Ditto.
19265         (*cbranchne_decr1): Ditto.
19266         (*addsi3_cbranch): Ditto.
19267         (*addsi3_cbranch_scratch): Ditto.
19268         (*thumb_cmpdi_zero): Ditto.
19269         (cstoresi_eq0_thumb1): Ditto.
19270         (cstoresi_ne0_thumb1): Ditto.
19271         (*cstoresi_eq0_thumb1_insn): Ditto.
19272         (*cstoresi_ne0_thumb1_insn): Ditto.
19273         (cstoresi_nltu_thumb1): Ditto.
19274         (cstoresi_ltu_thumb1): Ditto.
19275         (thumb1_addsi3_addgeu): Ditto.
19276         (*thumb_jump): Ditto.
19277         (*call_reg_thumb1_v5): Ditto.
19278         (*call_reg_thumb1): Ditto.
19279         (*call_value_reg_thumb1_v5): Ditto.
19280         (*call_value_reg_thumb1): Ditto.
19281         (*call_insn): Ditto.
19282         (*call_value_insn): Ditto.
19283         (thumb1_casesi_internal_pic): Ditto.
19284         (thumb1_casesi_dispatch): Ditto.
19285         (*thumb1_indirect_jump): Ditto.
19286         (prologue_thumb1_interwork): Ditto.
19287         (*epilogue_insns): Ditto.
19288         (consttable_1): Ditto.
19289         (consttable_2): Ditto.
19290         (tablejump): Ditto.
19291         (*thumb1_tablejump): Ditto.
19292         (thumb_eh_return): Ditto.
19293         (define_peephole2): Two of them are thumb1 only and got moved into
19294         new file thumb1.md.
19295         (define_split): Six of them are thumb1 only and got moved into new
19296         file thumb1.md.
19297         * config/arm/thumb1.md: New file comprised of above thumb1 only
19298         patterns.
19299
19300 2014-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19301
19302         * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
19303         * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
19304         dependencies.
19305         * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
19306         (aarch64_crc_builtin_datum): New struct.
19307         (aarch64_crc_builtin_data): New.
19308         (aarch64_init_crc32_builtins): New function.
19309         (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
19310         (aarch64_crc32_expand_builtin): New.
19311         (aarch64_expand_builtin): Add CRC32 builtin expansion case.
19312         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
19313         __ARM_FEATURE_CRC32 when appropriate.
19314         (TARGET_CRC32): Define.
19315         * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
19316         UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
19317         UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
19318         (aarch64_<crc_variant>): New pattern.
19319         * config/aarch64/arm_acle.h: New file.
19320         * config/aarch64/iterators.md (CRC): New int iterator.
19321         (crc_variant, crc_mode): New int attributes.
19322         * doc/aarch64-acle-intrinsics.texi: New file.
19323         * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
19324         Include aarch64-acle-intrinsics.texi.
19325
19326 2014-06-11  Evgeny Stupachenko  <evstupac@gmail.com>
19327
19328         * tree-vect-data-refs.c (vect_grouped_store_supported): New
19329         check for stores group of length 3.
19330         (vect_permute_store_chain): New permutations for stores group of
19331         length 3.
19332         * tree-vect-stmts.c (vect_model_store_cost): Change cost
19333         of vec_perm_shuffle for the new permutations.
19334
19335 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
19336
19337         * ipa-visibility.c (function_and_variable_visibility): Disable virtual
19338         table rewriting temporarily on targets not supporting ONE_ONLY.
19339
19340 2014-06-11  Richard Biener  <rguenther@suse.de>
19341
19342         PR middle-end/61437
19343         Revert
19344         2014-06-04  Richard Biener  <rguenther@suse.de>
19345
19346         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
19347         TREE_PUBLIC and DECL_EXTERNAL decls.
19348
19349 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
19350
19351         * varasm.c (set_implicit_section): New function.
19352         (resolve_unique_section): Use it to set implicit section
19353         for aliases, too.
19354         (get_named_text_section): Use symtab_get_node (decl)->implicit_section
19355         (default_function_section): Likewise.
19356         (decl_binds_to_current_def_p): Constify argument.
19357         * varasm.h (decl_binds_to_current_def_p): Update prototype.
19358         * asan.c (asan_protect_global): Use
19359         symtab_get_node (decl)->implicit_section.
19360         * symtab.c (dump_symtab_base): Dump implicit sections.
19361         (verify_symtab_base): Verify sanity of sectoins and comdats.
19362         (symtab_resolve_alias): Alias share the section of its target.
19363         (set_section_1): New function.
19364         (symtab_node::set_section): Move here, recurse to aliases.
19365         (verify_symtab): Check for duplicated symtab lists.
19366         * tree-core.h (implicit_section_name_p): Remove.
19367         * tree-vect-data-refs.c: Include varasm.h.
19368         (vect_can_force_dr_alignment_p): Fix conditional on when
19369         decl bints to current definition; use
19370         symtab_get_node (decl)->implicit_section.
19371         * cgraph.c (cgraph_make_node_local_1): Fix section set.
19372         * cgraph.h (struct symtab_node): Add implicit_section.
19373         (set_section): Rename to ...
19374         (set_section_for_node): ... this one.
19375         (set_section): Declare.
19376         * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
19377         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
19378         input_overwrite_node, input_varpool_node): Stream implicit_section.
19379         * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
19380         removal; it will fail in LTO.
19381
19382 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19383
19384         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
19385         Change second alternative type to f_mcr.
19386         * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
19387         and 12th alternatives' types to f_mcr and f_mrc.
19388         (*movdi_aarch64): Same for 12th and 13th alternatives.
19389         (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
19390         (aarch64_movtilow_tilow): Change type to fmov.
19391
19392 2014-06-10  Jiong Wang  <jiong.wang@arm.com>
19393
19394         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
19395         (aarch64_save_or_restore_callee_save_registers): Fix layout.
19396
19397 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19398
19399         * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
19400         New expander.
19401         (aarch64_sqrdmulh_lane<mode>): Likewise.
19402         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
19403         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
19404         (aarch64_sqdmulh_laneq<mode>): New expander.
19405         (aarch64_sqrdmulh_laneq<mode>): Likewise.
19406         (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
19407         (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
19408         (aarch64_sqdmulh_lane<mode>): New expander.
19409         (aarch64_sqrdmulh_lane<mode>): Likewise.
19410         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
19411         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
19412         (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
19413         (aarch64_sqdmlal_laneq<mode>): Likewise.
19414         (aarch64_sqdmlsl_lane<mode>): Likewise.
19415         (aarch64_sqdmlsl_laneq<mode>): Likewise.
19416         (aarch64_sqdmlal2_lane<mode>): Likewise.
19417         (aarch64_sqdmlal2_laneq<mode>): Likewise.
19418         (aarch64_sqdmlsl2_lane<mode>): Likewise.
19419         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
19420         (aarch64_sqdmull_lane<mode>): Likewise.
19421         (aarch64_sqdmull_laneq<mode>): Likewise.
19422         (aarch64_sqdmull2_lane<mode>): Likewise.
19423         (aarch64_sqdmull2_laneq<mode>): Likewise.
19424
19425 2014-06-10  Richard Biener  <rguenther@suse.de>
19426
19427         PR tree-optimization/61438
19428         * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
19429         (eliminate_dom_walker::before_dom_children): Only try to inhibit
19430         insertion of IVs if running PRE.
19431         (eliminate): Adjust.
19432         (pass_pre::execute): Likewise.
19433         (pass_fre::execute): Likewise.
19434
19435 2014-06-10  Richard Biener  <rguenther@suse.de>
19436
19437         PR middle-end/61456
19438         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
19439         Do not use the main variant for the type comparison.
19440         (ncr_compar): Likewise.
19441         (nonoverlapping_component_refs_p): Likewise.
19442
19443 2014-06-10  Marcus Shawcroft  <marcus.shawcroft@arm.com>
19444
19445         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
19446         REG_CFA_RESTORE mode.
19447
19448 2014-06-10  Evgeny Stupachenko  <evstupac@gmail.com>
19449
19450         * config/i386/i386.c (expand_vec_perm_pblendv): New.
19451         * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
19452         expand_vec_perm_pblendv.
19453
19454 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19455
19456         * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
19457         available.
19458         Simplify description of __crc32d and __crc32cd intrinsics.
19459         * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
19460         availability.
19461
19462 2014-06-10  Thomas Schwinge  <thomas@codesourcery.com>
19463
19464         PR lto/61334
19465         * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
19466         * config.in: Regenerate.
19467         * configure: Likewise.
19468
19469 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
19470
19471         * ipa-reference.c (is_proper_for_analysis): Exclude addressable
19472         and public vars.
19473         (intersect_static_var_sets): Remove.
19474         (propagate): Do not prune local statics.
19475
19476 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
19477
19478         PR fortran/60928
19479         * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
19480         Set lastprivate_firstprivate even if omp_private_outer_ref
19481         langhook returns true.
19482         <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
19483         langhook, call unshare_expr on new_var and call
19484         build_outer_var_ref to get the last argument.
19485
19486 2014-06-10  Marek Polacek  <polacek@redhat.com>
19487
19488         PR c/60988
19489         * doc/extend.texi: Add cindex for transparent_union.
19490
19491 2014-06-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
19492
19493         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
19494         init_symbolic_number ().
19495
19496 2014-05-18  John David Anglin  <danglin@gcc.gnu.org>
19497
19498         PR middle-end/61141
19499         * emit-rtl.c (reset_all_used_flags): In a sequence, check that
19500         XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
19501         (verify_rtl_sharing): Likewise.
19502
19503 2014-06-09  Marc Glisse  <marc.glisse@inria.fr>
19504
19505         PR c++/54442
19506         * tree.c (build_qualified_type): Use a canonical type for
19507         TYPE_CANONICAL.
19508
19509 2014-06-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19510
19511         * config/arm/arm-modes.def: Remove XFmode.
19512
19513 2014-06-09  Alan Lawrence  <alan.lawrence@arm.com>
19514
19515         PR target/61062
19516         * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
19517         vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
19518         vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
19519         vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
19520         vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
19521         vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
19522         vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
19523         vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
19524         vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
19525
19526 2014-06-09  Jan Hubicka  <hubicka@ucw.cz>
19527
19528         * tree-core.h (tree_decl_with_vis): Remove section_name.
19529
19530 2014-06-09  Kito Cheng  <kito@0xlab.org>
19531
19532         * ira.c (ira): Don't call init_caller_save if LRA enabled
19533         since LRA use its own infrastructure to handle that.
19534
19535 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
19536
19537         * symtab.c (dump_symtab_base): Update dumping.
19538         (symtab_make_decl_local): Clear only DECL_COMDAT.
19539         * tree-vect-data-refs.c (Check that variable is static before
19540         tampering with sections.
19541         * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
19542         (cgraph_create_virtual_clone): Likewise.
19543         * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
19544         (decl_section_name, set_decl_section_name): New accessors.
19545         (find_decls_types_r): Do not walk section name
19546         * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
19547         (decl_comdat_group, decl_comdat_group_id): Constify.
19548         (decl_section_name, set_decl_section_name): Update.
19549         * varpool.c (varpool_finalize_named_section_flags): Use get_section.
19550         * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
19551         (cgraph_make_node_local_1): Clear section and comdat group.
19552         * cgraph.h (set_comdat_group): Sanity check.
19553         (get_section, set_section): New.
19554         * ipa-comdats.c (ipa_comdats): Use get_section.
19555         * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
19556         * lto-streamer-out.c: Do not follow section names.
19557         * c-family/c-common.c (handle_section_attribute): Update.
19558         * lto-cgraph.c (lto_output_node): Output section.
19559         (lto_output_varpool_node): Likewise.
19560         (read_comdat_group): Rename to ...
19561         (read_identifier): ... this one.
19562         (read_string_cst): New function.
19563         (input_node, input_varpool_node): Input section names.
19564         * tree-emutls.c (get_emutls_init_templ_addr): Update.
19565         (new_emutls_decl): Update.
19566         (secname_for_decl): Check section names only of static vars.
19567         * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
19568         * config/i386/winnt.c (i386_pe_unique_section): Likewise.
19569         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
19570         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
19571         * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
19572         * config/mcore/mcore.c (mcore_unique_section): Likewise.
19573         * config/mips/mips.c (mips16_build_function_stub): Likewise.
19574         * config/v850/v850.c (v850_insert_attributes): Likewise.
19575         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
19576         Likewise.
19577         (h8300_handle_tiny_data_attribute): Likewise.
19578         * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
19579         (bfin_handle_l2_attribute): Likewise.
19580
19581 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
19582
19583         * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
19584         remove static initializer.
19585
19586 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
19587
19588         * varasm.c (use_blocks_for_decl_p): Check symbol table
19589         instead of alias attribute.
19590         (place_block_symbol): Recurse on aliases.
19591
19592 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
19593
19594         * ipa-visibility.c: Include varasm.h
19595         (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
19596
19597 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
19598
19599         * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
19600         outputting aliases.
19601
19602 2014-06-07  Steven Bosscher  <steven@gcc.gnu.org>
19603
19604         * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
19605         from test_insn into GGC space escape via SET_SRC.
19606
19607 2014-06-07  Eric Botcazou  <ebotcazou@adacore.com>
19608
19609         * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
19610         call statement, if any.
19611         (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
19612         statements, if any.  Tidy up.
19613
19614 2014-06-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
19615
19616         PR target/61431
19617         * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
19618         iterators, VSX_D that handles 64-bit types, and VSX_LE that
19619         handles swapping the two 64-bit double words on little endian
19620         systems.  Include V1TImode and optionally TImode in VSX_LE so that
19621         these types are properly swapped.  Change all of the insns and
19622         splits that do the 64-bit swaps to use VSX_LE.
19623         (vsx_le_perm_load_<mode>): Likewise.
19624         (vsx_le_perm_store_<mode>): Likewise.
19625         (splitters for little endian memory operations): Likewise.
19626         (vsx_xxpermdi2_le_<mode>): Likewise.
19627         (vsx_lxvd2x2_le_<mode>): Likewise.
19628         (vsx_stxvd2x2_le_<mode>): Likewise.
19629
19630 2014-06-06  Uros Bizjak  <ubizjak@gmail.com>
19631
19632         PR target/61423
19633         * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
19634         define_insn_and_split pattern, merged from *floatunssi<mode>2_1
19635         and corresponding splitters.  Zero extend general register
19636         or memory input operand to XMM temporary.  Enable for
19637         TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
19638         (floatunssi<mode>2): Update expander predicate.
19639
19640 2014-06-06  Vladimir Makarov  <vmakarov@redhat.com>
19641
19642         PR rtl-optimization/61325
19643         * lra-constraints.c (process_address_1): Check scale equal to one
19644         to prevent transformation: base + scale * index => base + new_reg.
19645
19646 2014-06-06  Richard Biener  <rguenther@suse.de>
19647
19648         PR tree-optimization/59299
19649         * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
19650         a def operand.
19651         (nearest_common_dominator_of_uses): Likewise.
19652         (statement_sink_location): Adjust.  Support sinking loads.
19653
19654 2014-06-06  Martin Jambor  <mjambor@suse.cz>
19655
19656         * ipa-prop.c (get_place_in_agg_contents_list): New function.
19657         (build_agg_jump_func_from_list): Likewise.
19658         (determine_known_aggregate_parts): Renamed to
19659         determine_locally_known_aggregate_parts.  Moved some functionality
19660         to the two functions above, removed bound checks.
19661
19662 2014-06-06  James Greenhalgh  <james.greenhalgh@arm.com>
19663
19664         * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
19665         * config/aarch64/aarch64.c (aarch64_move_pointer): New.
19666         (aarch64_progress_pointer): Likewise.
19667         (aarch64_copy_one_part_and_move_pointers): Likewise.
19668         (aarch64_expand_movmen): Likewise.
19669         * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
19670         * config/aarch64/aarch64.md (movmem<mode>): New.
19671
19672 2014-06-06  Bingfeng Mei  <bmei@broadcom.com>
19673
19674         * targhooks.c (default_add_stmt_cost): Call target specific
19675         hook instead of default one.
19676
19677 2014-06-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
19678
19679         * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
19680         endianness instead of host endianness.
19681         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
19682         comments.
19683
19684 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
19685
19686         PR debug/53927
19687         * function.c (instantiate_decls): Process the saved static chain.
19688         (expand_function_start): If not optimizing, save the static chain
19689         onto the stack.
19690         * tree-nested.c (convert_all_function_calls): Always create the static
19691         chain for nested functions if not optimizing.
19692
19693 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
19694
19695         * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
19696
19697 2014-06-06  Richard Biener  <rguenther@suse.de>
19698
19699         * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
19700         (construct_init_block): Likewise.
19701         (construct_exit_block): Likewise.
19702         (pass_expand::execute): Likewise.
19703         * graphite.c (graphite_transforms): Replace check for current_loops
19704         with a check for > 1 loops.
19705         (pass_graphite_transforms::execute): Adjust.
19706         * ipa-split.c (split_function): Remove check for current_loops.
19707         * omp-low.c (expand_parallel_call): Likewise.
19708         (expand_omp_for_init_counts): Likewise.
19709         (extract_omp_for_update_vars): Likewise.
19710         (expand_omp_for_generic): Likewise.
19711         (expand_omp_sections): Likewise.
19712         (expand_omp_target): Likewise.
19713         * tracer.c (tail_duplicate): Likewise.
19714         (pass_tracer::execute): Likewise.
19715         * trans-mem.c (expand_transaction): Likewise.
19716         * tree-complex.c (expand_complex_div_wide): Likewise.
19717         * tree-eh.c (lower_resx): Likewise.
19718         (cleanup_empty_eh_merge_phis): Likewise.
19719         * tree-predcom.c (run_tree_predictive_commoning): Replace check for
19720         current_loops with a check for > 1 loops.
19721         (pass_predcom::execute): Adjust.
19722         * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
19723         * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
19724         * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
19725         * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
19726         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
19727         * tree-switch-conversion.c (process_switch): Likewise.
19728         * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
19729         * tree-vrp.c (vrp_visit_phi_node): Likewise.
19730         (execute_vrp): Likewise.
19731         * ubsan.c (ubsan_expand_null_ifn): Likewise.
19732
19733 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
19734
19735         * rtl.h (insn_location): Declare.
19736         * cfgcleanup.c (try_forward_edges): Compare the locus of locations
19737         with UNKNOWN_LOCATION.
19738         * emit-rtl.c (insn_location): New function.
19739         * final.c (notice_source_line): Check that the instruction has a
19740         location before retrieving it and use insn_location.
19741         * modulo-sched.c (loop_single_full_bb_p): Likewise.
19742         * print-rtl.c (print_rtx): Likewise.
19743
19744 2014-06-06  Richard Biener  <rguenther@suse.de>
19745
19746         * passes.def: Move 2nd VRP pass before phi-only-cprop.
19747
19748 2014-06-06  Christian Bruel  <christian.bruel@st.com>
19749
19750         PR tree-optimization/43934
19751         * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
19752         cost.
19753
19754 2014-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
19755
19756         * ira-lives.c (single_reg_class): Add missing break.  Explicitly
19757         return NO_REGS for extra address and memory constraints.  Handle
19758         operands that match (or are equivalent to something that matches)
19759         extra constant constraints.  Ignore other non-register operands.
19760
19761 2014-06-06  Alan Modra  <amodra@gmail.com>
19762
19763         PR target/61300
19764         * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
19765         * doc/tm.texi: Regenerate.
19766         * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
19767         Use throughout in place of REG_PARM_STACK_SPACE.
19768         * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
19769         "incoming" param.  Pass to rs6000_function_parms_need_stack.
19770         (rs6000_function_parms_need_stack): Add "incoming" param, ignore
19771         prototype_p when incoming.  Use function decl when incoming
19772         to handle K&R style functions.
19773         * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
19774         (INCOMING_REG_PARM_STACK_SPACE): Define.
19775
19776 2014-06-05  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
19777
19778         PR target/52472
19779         * cfgexpand.c (expand_debug_expr): Use address space of nested
19780         TREE_TYPE for ADDR_EXPR and MEM_REF.
19781
19782 2014-06-05  Jeff Law  <law@redhat.com>
19783
19784         PR tree-optimization/61289
19785         * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
19786         DST_MAP parameters.   Invalidate by walking all the SSA_NAME_VALUES
19787         looking for those which match LHS.  All callers changed.
19788         (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
19789         parameters and code which manipulated them.  All callers changed.
19790         (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
19791         and DST_MAP parameters.  Simplify invalidation code by just calling
19792         invalidate_equivalences.  All callers changed.
19793         (thread_across_edge): Simplify now that we don't need to maintain
19794         the map of equivalences to invalidate.
19795
19796 2014-06-05  Kai Tietz  <ktietz@redhat.com>
19797             Richard Henderson  <rth@redhat.com>
19798
19799         PR target/46219
19800         * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
19801         checking for !TARGET_X32.
19802         * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
19803         (sibcall_intern): New define_insn, plus required peepholes.
19804         (sibcall_pop_intern): Likewise.
19805         (sibcall_value_intern): Likewise.
19806         (sibcall_value_pop_intern): Likewise.
19807
19808 2014-06-05  Ilya Enkovich  <ilya.enkovich@intel.com>
19809
19810         * tree-inline.c (tree_function_versioning): Check DF info existence
19811         before accessing it.
19812
19813 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
19814
19815         * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
19816         frame_size.
19817         * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
19818         aarch64_frame hard_fp_offset and frame_size.
19819         (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
19820         frame_size; remove original_frame_size.
19821         (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
19822         (aarch64_initial_elimination_offset): Remove frame_size and
19823         offset.  Use aarch64_frame frame_size.
19824
19825 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
19826             Jiong Wang  <jiong.wang@arm.com>
19827             Renlin  <renlin.li@arm.com>
19828
19829         * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
19830         initialization of R30 offset.  Update offset.  Iterate core
19831         regisers upto X30.  Remove X29, X30 specific code.
19832
19833 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
19834             Jiong Wang  <jiong.wang@arm.com>
19835
19836         * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
19837         (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
19838         (aarch64_register_saved_on_entry): Adjust test.
19839
19840 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
19841
19842         * config/aarch64/aarch64.h (machine_function): Move
19843         saved_varargs_size from here...
19844         (aarch64_frame): ... to here.
19845
19846         * config/aarch64/aarch64.c (aarch64_expand_prologue)
19847         (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
19848         (aarch64_initial_elimination_offset)
19849         (aarch64_setup_incoming_varargs): Adjust location of
19850         saved_varargs_size.
19851
19852 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
19853
19854         * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
19855         layout comment.
19856
19857 2014-06-05  Jaydeep Patil  <Jaydeep.Patil@imgtec.com>
19858             Prachi Godbole  <Prachi.Godbole@imgtec.com>
19859
19860         * config/mips/mips-cpus.def: Add definition for p5600.  Updated
19861         mips32r5 entry to use PROCESSOR_P5600.
19862         * config/mips/mips-tables.opt: Regenerate.
19863         * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
19864         * config/mips/mips.c (mips_fmadd_bypass): New function.
19865         (mips_rtx_cost_data): Add costs for p5600.
19866         (mips_issue_rate): Add support for p5600.
19867         (mips_multipass_dfa_lookahead): Likewise.
19868         * config/mips/mips.h (TUNE_P5600): New define.
19869         (TUNE_MACC_CHAINS): Add TUNE_P5600.
19870         (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
19871         * config/mips/mips.md: Include p5600.md.
19872         (processor): Add p5600.
19873         * config/mips/p5600.md: New file.
19874
19875 2014-06-05  Evgeny Stupachenko  <evstupac@gmail.com>
19876
19877         * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
19878         * config/i386/predicates.md (palignr_operand): New.
19879         Indicates if permutation is suitable for palignr instruction.
19880
19881 2014-06-05  Yuri Rumyantsev  <ysrumyan@gmail.com>
19882
19883         PR tree-optimization/61319
19884         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
19885         stmt belongs to loop.
19886
19887 2014-06-05  Richard Biener  <rguenther@suse.de>
19888
19889         * gimplify.c (create_tmp_from_val): Remove is_formal parameter
19890         and set DECL_GIMPLE_REG_P unconditionally if appropriate.
19891         (lookup_tmp_var): Adjust.
19892         (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
19893
19894 2014-06-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19895
19896         * config/arm/arm.md (enabled): Disable opt_enabled attribute.
19897
19898 2014-06-05  Marek Polacek  <polacek@redhat.com>
19899
19900         PR c/49706
19901         * doc/invoke.texi: Document -Wlogical-not-parentheses.
19902
19903 2014-06-04  Tom de Vries  <tom@codesourcery.com>
19904
19905         * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
19906         CONST_INT.
19907
19908 2014-06-04  Marc Glisse  <marc.glisse@inria.fr>
19909
19910         PR tree-optimization/61385
19911         * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
19912
19913 2014-06-04  Bernd Schmidt  <bernds@codesourcery.com>
19914
19915         * lto-wrapper.c (fatal, fatal_perror): Remove functions.  All callers
19916         changed to use fatal_error.
19917         (main): Ensure lto_wrapper_cleanup is run atexit.
19918
19919 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
19920
19921         * lra-constraints.c (valid_address_p): Move earlier in file.
19922         (address_eliminator): New structure.
19923         (satisfies_memory_constraint_p): New function.
19924         (satisfies_address_constraint_p): Likewise.
19925         (process_alt_operands, process_address, curr_insn_transform): Use them.
19926
19927 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
19928
19929         * lra-int.h (lra_static_insn_data): Make operand_alternative a
19930         const pointer.
19931         (target_lra_int, default_target_lra_int, this_target_lra_int)
19932         (op_alt_data): Delete.
19933         * lra.h (lra_init): Delete.
19934         * lra.c (default_target_lra_int, this_target_lra_int): Delete.
19935         (init_insn_code_data_once): Remove op_alt_data handling.
19936         (finish_insn_code_data_once): Likewise.
19937         (init_op_alt_data): Delete.
19938         (get_static_insn_data): Initialize operand_alternative to null.
19939         (free_insn_recog_data): Cast operand_alternative before freeing it.
19940         (setup_operand_alternative): Take the operand_alternative as
19941         parameter and assume it isn't already cached in the static
19942         insn data.
19943         (lra_set_insn_recog_data): Update accordingly.
19944         (lra_init): Delete.
19945         * ira.c (ira_init): Don't call lra_init.
19946         * target-globals.h (this_target_lra_int): Declare.
19947         (target_globals): Remove lra_int.
19948         (restore_target_globals): Update accordingly.
19949         * target-globals.c: Don't include lra-int.h.
19950         (default_target_globals, save_target_globals): Remove lra_int.
19951
19952 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
19953
19954         * recog.h (operand_alternative): Convert reg_class, reject,
19955         matched and matches into bitfields.
19956         (preprocess_constraints): New overload.
19957         (preprocess_insn_constraints): New function.
19958         (preprocess_constraints): Take the insn as parameter.
19959         (recog_op_alt): Change into a pointer.
19960         (target_recog): Add x_op_alt.
19961         * recog.c (asm_op_alt): New variable.
19962         (recog_op_alt): Change into a pointer.
19963         (preprocess_constraints): New overload, replacing the old function
19964         definition with one that doesn't use global state.
19965         (preprocess_insn_constraints): New function.
19966         (preprocess_constraints): Use them.  Take the insn as parameter.
19967         Use asm_op_alt for asms.
19968         (recog_init): Free existing x_op_alt entries.
19969         * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
19970         pointer const.
19971         (make_early_clobber_and_input_conflicts): Likewise.
19972         (process_bb_node_lives): Pass the insn to process_constraints.
19973         * reg-stack.c (check_asm_stack_operands): Likewise.
19974         (subst_asm_stack_regs): Likewise.
19975         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
19976         * regrename.c (build_def_use): Likewise.
19977         * sched-deps.c (sched_analyze_insn): Likewise.
19978         * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
19979         * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
19980         (note_invalid_constants): Likewise.
19981         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
19982         (ix86_legitimate_combined_insn): Make operand_alternative pointer
19983         const.
19984
19985 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
19986
19987         * recog.c (preprocess_constraints): Don't skip disabled alternatives.
19988         * ira-lives.c (check_and_make_def_conflict): Check for disabled
19989         alternatives.
19990         (make_early_clobber_and_input_conflicts): Likewise.
19991         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
19992
19993 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
19994
19995         * recog.h (alternative_class): New function.
19996         (which_op_alt): Return a const recog_op_alt.
19997         * reg-stack.c (check_asm_stack_operands): Update type accordingly.
19998         (subst_asm_stack_regs): Likewise.
19999         * config/arm/arm.c (note_invalid_constants): Likewise.
20000         * regcprop.c (copyprop_hardreg_forward_1): Likewise.  Don't modify
20001         the operand_alternative; use alternative class instead.
20002         * sel-sched.c (get_reg_class): Likewise.
20003         * regrename.c (build_def_use): Likewise.
20004         (hide_operands, restore_operands, record_out_operands): Update type
20005         accordingly.
20006
20007 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
20008
20009         * recog.h (recog_op_alt): Convert to a flat array.
20010         (which_op_alt): New function.
20011         * recog.c (recog_op_alt): Convert to a flat array.
20012         (preprocess_constraints): Update accordingly, grouping all
20013         operands of the same alternative together, rather than the
20014         other way around.
20015         * ira-lives.c (check_and_make_def_conflict): Likewise.
20016         (make_early_clobber_and_input_conflicts): Likewise.
20017         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
20018         * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
20019         (subst_asm_stack_regs): Likewise.
20020         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
20021         * regrename.c (hide_operands, record_out_operands): Likewise.
20022         (build_def_use): Likewise.
20023         * sel-sched.c (get_reg_class): Likewise.
20024         * config/arm/arm.c (note_invalid_constants): Likewise.
20025
20026 2014-06-04  Jason Merrill  <jason@redhat.com>
20027
20028         PR c++/51253
20029         PR c++/61382
20030         * gimplify.c (gimplify_arg): Non-static.
20031         * gimplify.h: Declare it.
20032
20033 2014-06-04  Richard Biener  <rguenther@suse.de>
20034
20035         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
20036         TREE_PUBLIC and DECL_EXTERNAL decls.
20037
20038 2014-06-04  Matthew Fortune  <matthew.fortune@imgtec.com>
20039
20040         * regcprop.c (copyprop_hardreg_forward_1): Account for
20041         HARD_REGNO_CALL_PART_CLOBBERED.
20042
20043 2014-06-04  Richard Biener  <rguenther@suse.de>
20044
20045         * configure.ac: Check whether the underlying type of int64_t
20046         is long or long long.
20047         * configure: Regenerate.
20048         * config.in: Likewise.
20049         * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
20050         (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
20051
20052 2014-06-04  Richard Biener  <rguenther@suse.de>
20053
20054         PR tree-optimization/60098
20055         * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
20056         we hit a kill.
20057         (dse_optimize_stmt): Simplify, now that we found a kill
20058         earlier.
20059
20060 2014-06-04  Richard Biener  <rguenther@suse.de>
20061
20062         * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
20063         of accesses with non-invariant address.
20064
20065 2014-06-04  Martin Liska  <mliska@suse.cz>
20066
20067         * cgraph.h (cgraph_make_wrapper): New function introduced.
20068         * cgraphunit.c (cgraph_make_wrapper): The function implementation.
20069         * ipa-inline.h (inline_analyze_function): The function is global.
20070         * ipa-inline-analysis.c (inline_analyze_function): Likewise.
20071
20072 2014-06-04  Martin Liska  <mliska@suse.cz>
20073
20074         * tree.h (private_lookup_attribute_starting): New function.
20075         (lookup_attribute_starting): Likewise.
20076         * tree.c (private_lookup_attribute_starting): Likewise.
20077
20078 2014-06-04  Martin Liska  <mliska@suse.cz>
20079
20080         * cgraph.h (expand_thunk): New argument added.
20081         (address_taken_from_non_vtable_p): New global function.
20082         * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
20083         * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
20084         * cgraphunit.c (analyze_function): Likewise.
20085         (assemble_thunks_and_aliases): Argument added to call.
20086         (expand_thunk): New argument forces to produce GIMPLE thunk.
20087
20088 2014-06-04  Martin Liska  <mliska@suse.cz>
20089
20090         * coverage.h (coverage_compute_cfg_checksum): Argument added.
20091         * coverage.c (coverage_compute_cfg_checksum): Likewise.
20092         * profile.c (branch_prob): Likewise.
20093
20094 2014-06-04  Martin Jambor  <mjambor@suse.cz>
20095
20096         PR ipa/61340
20097         * ipa-pure-const.c (propagate_pure_const): Add unreachable default
20098         handler for switch on an ipa_ref_use enum.
20099         * ipa-reference.c (analyze_function): Likewise.
20100
20101 2014-06-04  Kai Tietz  <ktietz@redhat.com>
20102
20103         * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
20104         from old call-instruction.
20105
20106 2014-06-04  Bin Cheng  <bin.cheng@arm.com>
20107
20108         * config/aarch64/aarch64.c (aarch64_classify_address)
20109         (aarch64_legitimize_reload_address): Support full addressing modes
20110         for vector modes.
20111         * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
20112         (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
20113
20114 2014-06-03  Andrew Pinski  <apinski@cavium.com>
20115
20116         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
20117         for OP0.
20118
20119 2014-06-03  Andrew Pinski  <apinski@cavium.com>
20120
20121         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
20122         (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
20123
20124 2014-06-03  Kai Tietz  <ktietz@redhat.com>
20125
20126         * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
20127         for 64-bit ms-abi.
20128
20129 2014-06-03  Dehao Chen  <dehao@google.com>
20130
20131         * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
20132         the same loop.
20133
20134 2014-06-03  Marek Polacek  <polacek@redhat.com>
20135
20136         PR c/60439
20137         * doc/invoke.texi: Document -Wswitch-bool.
20138         * function.c (stack_protect_epilogue): Cast controlling expression of
20139         the switch to int.
20140         * gengtype.c (walk_type): Generate switch expression with its
20141         controlling expression cast to int.
20142
20143 2014-06-03  Vishnu K S  <Vishnu.k_s@atmel.com>
20144
20145         * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
20146         and attiny841.
20147         * config/avr/avr-tables.opt: Regenerate.
20148         * config/avr/t-multilib: Regenerate.
20149         * doc/avr-mmcu.texi: Regenerate.
20150
20151 2014-06-03  Vishnu K S  <vishnu.k_s@atmel.com>
20152             Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
20153
20154         * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
20155         (ata6617c, ata664251): Add new avr35 devices.
20156         (ata6612c): Add new avr4 device.
20157         (ata6613c, ata6614q): Add new avr5 devices.
20158         * config/avr/avr-tables.opt: Regenerate.
20159         * config/avr/t-multilib: Regenerate.
20160         * doc/avr-mmcu.texi: Regenerate.
20161
20162 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
20163
20164         * gcc/config/aarch64/aarch64-builtins.c
20165         (aarch64_types_binop_ssu_qualifiers): New static data.
20166         (TYPES_BINOP_SSU): Define.
20167         * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
20168         urshr_n, ushll_n): Use appropriate unsigned qualifiers.
20169         * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
20170         vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
20171         vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
20172         vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
20173         vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
20174         vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
20175         vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
20176         suffix to builtin function name, remove cast.
20177         (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
20178         vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
20179         vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
20180
20181 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
20182
20183         * gcc/config/aarch64/aarch64-builtins.c
20184         (aarch64_types_binop_uus_qualifiers,
20185         aarch64_types_shift_to_unsigned_qualifiers,
20186         aarch64_types_unsigned_shiftacc_qualifiers): Define.
20187         * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
20188         uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
20189         sqshlu_n, uqshl_n): Update qualifiers.
20190         * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
20191         vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
20192         vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
20193         vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
20194         vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
20195         vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
20196         vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
20197         vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
20198         vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
20199         vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
20200         vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
20201         vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
20202         vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
20203         vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
20204         vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
20205         vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
20206         vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
20207         vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
20208         vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
20209         vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
20210         vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
20211         vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
20212         vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
20213         vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
20214         vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
20215         vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
20216         vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
20217
20218 2014-06-03  Teresa Johnson  <tejohnson@google.com>
20219
20220         * tree-sra.c (modify_function): Record caller nodes after rebuild.
20221
20222 2014-06-02  Jason Merrill  <jason@redhat.com>
20223
20224         PR c++/61020
20225         * varpool.c (ctor_for_folding): Handle uninitialized vtables.
20226
20227 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
20228
20229         * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
20230         location == 0.
20231
20232 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
20233
20234         * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
20235         New pattern.
20236         * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
20237         (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
20238         * config/aarch64/iterators.md (REVERSE): New iterator.
20239         (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
20240         (rev_op): New int_attribute.
20241         * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
20242         vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
20243         vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
20244         vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
20245         vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
20246         vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
20247         vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
20248         Replace temporary __asm__ with __builtin_shuffle.
20249
20250 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
20251
20252         * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
20253         mips64r5.
20254         * config/mips/mips-tables.opt: Regenerate.
20255         * config/mips/mips.c (mips_compute_frame_info): Changed if statement
20256         to use mips_isa_rev rather than ISA_MIPS32R2.
20257         * config/mips/mips.h (ISA_MIPS32R3): New define.
20258         (ISA_MIPS32R5): New define.
20259         (ISA_MIPS64R3): New define.
20260         (ISA_MIPS64R5): New define.
20261         (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
20262         ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
20263         (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
20264         and mips64r5.
20265         (MIPS_ISA_SYNCI_SPEC): Likewise.
20266         (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
20267         (LINK_SPEC): Added mips32r3 and mips32r5.
20268         * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
20269         to mips32r2; and mips64r3 and mips64r5 to mips64r2.
20270         * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
20271         * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
20272         * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
20273         * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
20274         * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
20275
20276 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
20277
20278         * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
20279         options.
20280         * config/mips/mips.opt (mxpa): New option.
20281         * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
20282         assembler.
20283
20284 2014-06-03  Martin Jambor  <mjambor@suse.cz>
20285
20286         PR ipa/61160
20287         * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
20288         thunks.
20289
20290 2014-06-03  Thomas Preud'homme  <thomas.preudhomme@arm.com>
20291
20292         PR tree-optimization/61328
20293         * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
20294         initialization from find_bswap_or_nop_1.
20295         (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
20296         in source_expr2 before using the size value the function sets. Also
20297         make use of init_symbolic_number () in both the old place and
20298         find_bswap_or_nop_load () to avoid reading uninitialized memory when
20299         doing recursion in the GIMPLE_BINARY_RHS case.
20300
20301 2014-06-03  Richard Biener  <rguenther@suse.de>
20302
20303         PR tree-optimization/61383
20304         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
20305         stmts can't trap.
20306
20307 2014-06-03  Richard Sandiford  <rdsandiford@googlemail.com>
20308
20309         * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
20310         (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
20311         (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
20312         (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
20313         in this file.
20314         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
20315         (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
20316         * system.h: ...here and make it unconditional.
20317         * target.def (conditional_register_usage): Mention
20318         define_register_constraint instead of old-style constraint macros.
20319         * doc/tm.texi.in: Remove documentation for old-style constraint macros.
20320         * doc/tm.texi: Regenerate.
20321         * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
20322         protected by !USE_MD_CONSTRAINTS.
20323         * config/frv/frv.md: Remove quote from old version of documentation.
20324         * config/frv/frv.c (frv_conditional_register_usage): Likewise.
20325         * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
20326         CONST_DOUBLE_OK_FOR_LETTER.
20327         * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
20328
20329 2014-06-02  Andrew Pinski  <apinski@cavium.com>
20330
20331         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
20332         /lib/ld-linux32-aarch64.so.1 is used for ILP32.
20333         (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
20334         file whose name depends on -mabi= and -mbig-endian.
20335         * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
20336         Handle LP64 better and handle ilp32 too.
20337         (MULTILIB_OPTIONS): Delete.
20338         (MULTILIB_DIRNAMES): Delete.
20339
20340 2014-06-02  Andrew MacLeod  <amacleod@redhat.com>
20341
20342         * expr.h: Remove prototypes of functions defined in builtins.c.
20343         * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
20344         Remove prototypes of functions defined in builtins.c.
20345         * builtins.h: Update prototype list to include all exported functions.
20346         * builtins.c: (default_libc_has_function, gnu_libc_has_function,
20347         no_c99_libc_has_function): Move to targhooks.c
20348         (build_string_literal, build_call_expr_loc_array,
20349         build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
20350         to tree.c.
20351         (expand_builtin_object_size, fold_builtin_object_size): Make static.
20352         * targhooks.c (default_libc_has_function, gnu_libc_has_function,
20353         no_c99_libc_has_function): Relocate from builtins.c.
20354         * tree.c: Include builtins.h.
20355         (build_call_expr_loc_array, build_call_expr_loc_vec,
20356         build_call_expr_loc, build_call_expr, build_string_literal): Relocate
20357         from builtins.c.
20358         * fold-const.h (fold_fma): Move prototype to builtins.h.
20359         * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
20360         * asan.c: Include builtins.h.
20361         * cfgexpand.c: Likewise.
20362         * convert.c: Likewise.
20363         * emit-rtl.c: Likewise.
20364         * except.c: Likewise.
20365         * expr.c: Likewise.
20366         * fold-const.c: Likewise.
20367         * gimple-fold.c: Likewise.
20368         * gimple-ssa-strength-reduction.c: Likewise.
20369         * gimplify.c: Likewise.
20370         * ipa-inline.c: Likewise.
20371         * ipa-prop.c: Likewise.
20372         * lto-streamer-out.c: Likewise.
20373         * stmt.c: Likewise.
20374         * tree-inline.c: Likewise.
20375         * tree-object-size.c: Likewise.
20376         * tree-sra.c: Likewise.
20377         * tree-ssa-ccp.c: Likewise.
20378         * tree-ssa-forwprop.c: Likewise.
20379         * tree-ssa-loop-ivcanon.c: Likewise.
20380         * tree-ssa-loop-ivopts.c: Likewise.
20381         * tree-ssa-math-opts.c: Likewise.
20382         * tree-ssa-reassoc.c: Likewise.
20383         * tree-ssa-threadedge.c: Likewise.
20384         * tree-streamer-in.c: Likewise.
20385         * tree-vect-data-refs.c: Likewise.
20386         * tree-vect-patterns.c: Likewise.
20387         * tree-vect-stmts.c: Likewise.
20388         * config/aarch64/aarch64.c: Likewise.
20389         * config/alpha/alpha.c: Likewise.
20390         * config/arc/arc.c: Likewise.
20391         * config/arm/arm.c: Likewise.
20392         * config/avr/avr.c: Likewise.
20393         * config/bfin/bfin.c: Likewise.
20394         * config/c6x/c6x.c: Likewise.
20395         * config/cr16/cr16.c: Likewise.
20396         * config/cris/cris.c: Likewise.
20397         * config/epiphany/epiphany.c: Likewise.
20398         * config/fr30/fr30.c: Likewise.
20399         * config/frv/frv.c: Likewise.
20400         * config/h8300/h8300.c: Likewise.
20401         * config/i386/i386.c: Likewise.
20402         * config/i386/winnt.c: Likewise.
20403         * config/ia64/ia64.c: Likewise.
20404         * config/iq2000/iq2000.c: Likewise.
20405         * config/lm32/lm32.c: Likewise.
20406         * config/m32c/m32c.c: Likewise.
20407         * config/m32r/m32r.c: Likewise.
20408         * config/m68k/m68k.c: Likewise.
20409         * config/mcore/mcore.c: Likewise.
20410         * config/mep/mep.c: Likewise.
20411         * config/microblaze/microblaze.c: Likewise.
20412         * config/mips/mips.c: Likewise.
20413         * config/mmix/mmix.c: Likewise.
20414         * config/mn10300/mn10300.c: Likewise.
20415         * config/moxie/moxie.c: Likewise.
20416         * config/msp430/msp430.c: Likewise.
20417         * config/nds32/nds32.c: Likewise.
20418         * config/pa/pa.c: Likewise.
20419         * config/pdp11/pdp11.c: Likewise.
20420         * config/picochip/picochip.c: Likewise.
20421         * config/rl78/rl78.c: Likewise.
20422         * config/rs6000/rs6000.c: Likewise.
20423         * config/rx/rx.c: Likewise.
20424         * config/s390/s390.c: Likewise.
20425         * config/score/score.c: Likewise.
20426         * config/sh/sh.c: Likewise.
20427         * config/sparc/sparc.c: Likewise.
20428         * config/spu/spu.c: Likewise.
20429         * config/stormy16/stormy16.c: Likewise.
20430         * config/tilegx/tilegx.c: Likewise.
20431         * config/tilepro/tilepro.c: Likewise.
20432         * config/v850/v850.c: Likewise.
20433         * config/vax/vax.c: Likewise.
20434         * config/xtensa/xtensa.c: Likewise.
20435
20436 2014-06-02  Jeff Law  <law@redhat.com>
20437
20438         PR rtl-optimization/61094
20439         * ree.c (combine_reaching_defs): Do not reextend an insn if it
20440         was marked as do_no_reextend.  If a copy is needed to eliminate
20441         an extension, then mark it as do_not_reextend.
20442
20443 2014-06-02  Marcus Shawcroft  <marcus.shawcroft@arm.com>
20444
20445         * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
20446
20447 2014-06-02  Richard Henderson  <rth@redhat.com>
20448
20449         PR target/61336
20450         * config/alpha/alpha.c (print_operand_address): Allow symbolic
20451         addresses inside asms.  Use output_operand_lossage instead of
20452         gcc_unreachable.
20453
20454 2014-06-02  Uros Bizjak  <ubizjak@gmail.com>
20455
20456         PR target/61239
20457         * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
20458         GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
20459
20460 2014-06-02  Tom de Vries  <tom@codesourcery.com>
20461
20462         * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
20463         case that x has VOIDmode.
20464
20465 2014-06-02  Bernd Schmidt  <bernds@codesourcery.com>
20466
20467         * varasm.c (copy_constant): Delete function.
20468         (build_constant_desc): Don't call it.
20469
20470 2014-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20471
20472         PR target/61154
20473         * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
20474         * config/arm/arm.md (mov64 splitter): Replace const_double_operand
20475         with immediate_operand.
20476
20477 2014-06-02  Andreas Schwab  <schwab@suse.de>
20478
20479         * config/ia64/ia64.c
20480         (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
20481         pending_data_specs first.
20482
20483 2014-06-02  Richard Biener  <rguenther@suse.de>
20484
20485         PR tree-optimization/61378
20486         * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
20487         valueized_anything.
20488
20489 2014-06-01  Uros Bizjak  <ubizjak@gmail.com>
20490
20491         * config/i386/constraints.md (Bw): Rename from 'w'.
20492         (Bz): Rename from 'z'.
20493         * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
20494
20495 2014-06-01  Kai Tietz  <ktietz@redhat.com>
20496
20497         PR target/61377
20498         * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
20499         * config/i386/i386.md (sibcall_insn_operand): Use Bs
20500         instead of m constraint.
20501
20502 2014-05-31  Andreas Schwab  <schwab@linux-m68k.org>
20503
20504         * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
20505         a separate alternative where the scratch operand 2 is marked as
20506         early clobber.
20507
20508 2014-05-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
20509
20510         * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
20511         (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
20512         (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
20513         and __builtins_arm_get_fpscr.
20514         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
20515         __builtins_arm_get_fpscr.
20516         (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
20517         __builtins_arm_ldfpscr.
20518         (arm_atomic_assign_expand_fenv): New function.
20519         * config/arm/vfp.md (set_fpscr): New pattern.
20520         (get_fpscr) : Likewise.
20521         * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
20522         VUNSPEC_SET_FPSCR.
20523         * doc/extend.texi (AARCH64 Built-in Functions) : Document
20524         __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
20525
20526 2014-05-30  Jakub Jelinek  <jakub@redhat.com>
20527
20528         * asan.c (report_error_func): Add SLOW_P argument, use
20529         BUILT_IN_ASAN_*_N if set.
20530         (build_check_stmt): Likewise.
20531         (instrument_derefs): If T has insufficient alignment,
20532         force same handling as for odd sizes.
20533
20534         * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
20535         BUILT_IN_ASAN_REPORT_STORE_N): New.
20536         * asan.c (struct asan_mem_ref): Change access_size type to
20537         HOST_WIDE_INT.
20538         (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
20539         update_mem_ref_hash_table): Likewise.
20540         (asan_mem_ref_hasher::hash): Hash in a HWI.
20541         (report_error_func): Change size_in_bytes argument to HWI.
20542         Use *_N builtins if size_in_bytes is larger than 16 or not power of
20543         two.
20544         (build_shadow_mem_access): New function.
20545         (build_check_stmt): Use it.  Change size_in_bytes argument to HWI.
20546         Handle size_in_bytes not power of two or larger than 16.
20547         (instrument_derefs): Don't give up if size_in_bytes is not
20548         power of two or is larger than 16.
20549
20550 2014-05-30  Kai Tietz  <ktietz@redhat.com>
20551
20552         PR target/60104
20553         * config/i386/i386.c (x86_output_mi_thunk): Add memory case
20554         for sibling-tail-calls.
20555         * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
20556         to its use.
20557         * config/i386/predicates.md (sibcall_memory_operand): New predicate.
20558         (sibcall_insn_operand): Add check for sibcall_memory_operand.
20559
20560 2014-05-30  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
20561
20562         * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
20563         * config/avr/avr-tables.opt: Regenerate.
20564         * config/avr/t-multilib: Regenerate.
20565         * doc/avr-mmcu.texi: Regenerate.
20566
20567 2014-05-30  Ian Lance Taylor  <iant@google.com>
20568
20569         * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
20570         target("sse").
20571
20572 2014-05-30  Tom de Vries  <tom@codesourcery.com>
20573
20574         * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
20575         Redefine as true.
20576
20577 2014-05-30  Tom de Vries  <tom@codesourcery.com>
20578
20579         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
20580         * lra.c (initialize_lra_reg_info_element): Add init of
20581         actual_call_used_reg_set field.
20582         (lra): Call lra_create_live_ranges before lra_inheritance for
20583         -fuse-caller-save.
20584         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
20585         -fuse-caller-save.
20586         * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
20587         instead of call_used_reg_set for -fuse-caller-save.
20588         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
20589
20590 2014-05-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20591
20592         * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
20593         to mov_imm.
20594         * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
20595
20596 2014-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
20597
20598         * ira.c (ira_get_dup_out_num): Check for output operands at
20599         the start of the loop.  Handle cases where an included alternative
20600         follows an excluded one.
20601
20602 2014-05-29  Mike Stump  <mikestump@comcast.net>
20603
20604         PR debug/61352
20605         * collect2.c (maybe_run_lto_and_relink): Be sure to always run
20606         post ld passes when lto is used.
20607
20608 2014-05-29  Vladimir Makarov  <vmakarov@redhat.com>
20609
20610         PR rtl-optimization/61325
20611         * lra-constraints.c (process_address): Rename to process_address_1.
20612         (process_address): New function.
20613
20614 2014-05-29  Alan Lawrence  <alan.lawrence@arm.com>
20615
20616         * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
20617         TYPES_BINOPV): New static data.
20618         * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
20619         New builtin.
20620         * config/aarch64/aarch64-simd.md (aarch64_ext,
20621         aarch64_im_lane_boundsi): New patterns.
20622         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
20623         patterns for EXT.
20624         (aarch64_evpc_ext): New function.
20625
20626         * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
20627
20628         * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
20629         vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
20630         vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
20631         vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
20632         vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
20633
20634 2014-05-29  Tom de Vries  <tom@codesourcery.com>
20635
20636         * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
20637
20638 2014-05-29  Richard Earnshaw <rearnsha@arm.com>
20639             Richard Sandiford  <rdsandiford@googlemail.com>
20640
20641         * arm/iterators.md (shiftable_ops): New code iterator.
20642         (t2_binop0, arith_shift_insn): New code attributes.
20643         * arm/predicates.md (shift_nomul_operator): New predicate.
20644         * arm/arm.md (insn_enabled): Delete.
20645         (enabled): Remove insn_enabled test.
20646         (*arith_shiftsi): Delete.  Replace with ...
20647         (*<arith_shift_insn>_multsi): ... new pattern.
20648         (*<arith_shift_insn>_shiftsi): ... new pattern.
20649         * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
20650
20651 2014-05-29  Radovan Obradovic  <robradovic@mips.com>
20652             Tom de Vries  <tom@codesourcery.com>
20653
20654         * config/mips/mips.h (POST_CALL_TMP_REG): Define.
20655         * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
20656         clobber.
20657         (mips_split_call): Use POST_CALL_TMP_REG.
20658         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
20659
20660 2014-05-29  Tom de Vries  <tom@codesourcery.com>
20661
20662         * final.c (collect_fn_hard_reg_usage): Guard variable declaration
20663         with #ifdef STACK_REGS.
20664
20665 2014-05-28  Jan Hubicka  <hubicka@ucw.cz>
20666
20667         * varasm.c (get_variable_section): Walk aliases.
20668         (place_block_symbol): Walk aliases.
20669
20670 2014-05-28  Tom de Vries  <tom@codesourcery.com>
20671
20672         Revert:
20673         2014-05-28  Tom de Vries  <tom@codesourcery.com>
20674
20675         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
20676         * lra.c (initialize_lra_reg_info_element): Add init of
20677         actual_call_used_reg_set field.
20678         (lra): Call lra_create_live_ranges before lra_inheritance for
20679         -fuse-caller-save.
20680         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
20681         -fuse-caller-save.
20682         * lra-constraints.c (need_for_call_save_p): Use
20683         actual_call_used_reg_set instead of call_used_reg_set for
20684         -fuse-caller-save.
20685         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
20686
20687 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
20688
20689         * doc/md.texi: Document that the % constraint character must
20690         be at the beginning of the string.
20691         * genoutput.c (validate_insn_alternatives): Check that '=',
20692         '+' and '%' only appear at the beginning of a constraint.
20693         * ira.c (commutative_constraint_p): Delete.
20694         (ira_get_dup_out_num): Expect the '%' commutativity marker to be
20695         at the start of the string.
20696         * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
20697         duplicate '='s.
20698         * config/arm/neon.md (bicdi3_neon): Likewise.
20699         * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
20700         (slt_si, sltu_si): Likewise.
20701         * config/vax/vax.md (sbcdi3): Likewise.
20702         * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
20703         * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
20704         (mul64): Move '%' to beginning of constraint.
20705         * config/arm/arm.md (*xordi3_insn): Likewise.
20706         * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
20707         (xorsi3): Likewise.
20708
20709 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
20710
20711         * doc/md.texi: Document the restrictions on the "enabled" attribute.
20712
20713 2014-05-28  Jason Merrill  <jason@redhat.com>
20714
20715         PR c++/47202
20716         * cgraph.h (symtab_node::get_comdat_group_id): New.
20717         * cgraphunit.c (analyze_functions): Call it.
20718         * symtab.c (dump_symtab_node): Likewise.
20719         * tree.c (decl_comdat_group_id): New.
20720         * tree.h: Declare it.
20721         * lto-streamer-out.c (write_symbol): Use it.
20722         * trans-mem.c (ipa_tm_create_version_alias): Likewise.
20723
20724 2014-05-28  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
20725
20726         PR bootstrap/PR61146
20727         * wide-int.cc: Do not include longlong.h when compiling with clang.
20728
20729 2014-05-28  Richard Biener  <rguenther@suse.de>
20730
20731         * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
20732         * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
20733         (vrp_visit_assignment_or_call): Print less vertical space.
20734         (vrp_visit_stmt): Likewise.
20735         (vrp_visit_phi_node): Likewise.  For a PHI argument with
20736         VR_VARYING range consider recording it as copy.
20737
20738 2014-05-28  Richard Biener  <rguenther@suse.de>
20739
20740         Revert
20741         2014-05-28  Richard Biener  <rguenther@suse.de>
20742
20743         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
20744
20745 2014-05-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
20746
20747         * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
20748         sufficiently aligned and an offset is used at the same time.
20749         (expand_expr_real_1): Likewise.
20750
20751 2014-05-28  Richard Biener  <rguenther@suse.de>
20752
20753         PR middle-end/61045
20754         * fold-const.c (fold_comparison): When folding
20755         X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
20756         the sign of the remaining constant operand stays the same.
20757
20758 2014-05-28  Kaushik Phatak  <kaushik.phatak@kpit.com>
20759
20760         * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
20761         __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
20762         (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
20763         to the assembler.
20764         (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
20765         * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
20766         (m32bit-doubles) Likewise.
20767         * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
20768         * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
20769         option for RL78.
20770
20771 2014-05-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20772
20773         * configure.ac ($gcc_cv_ld_clearcap): New test.
20774         * configure: Regenerate.
20775         * config.in: Regenerate.
20776         * config/sol2.opt (mclear-hwcap): New option.
20777         * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
20778         * config/sol2-clearcap.map: Moved here from
20779         testsuite/gcc.target/i386/clearcap.map.
20780         * config/sol2-clearcapv2.map: Move here from
20781         gcc.target/i386/clearcapv2.map.
20782         * config/t-sol2 (install): Depend on install-clearcap-map.
20783         (install-clearcap-map): New target.
20784         * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
20785         -mclear-hwcap.
20786
20787 2014-05-28  Richard Biener  <rguenther@suse.de>
20788
20789         * hwint.h (*_HALF_WIDE_INT*): Move to ...
20790         * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
20791         ... here and remove the rest.
20792         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
20793
20794 2014-05-28  Richard Biener  <rguenther@suse.de>
20795
20796         PR tree-optimization/61335
20797         * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
20798         new range fails, drop to varying.
20799
20800 2014-05-28  Olivier Hainque  <hainque@adacore.com>
20801
20802         * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
20803         (CPP_SPEC): Add entry for -mcpu=8548.
20804         * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
20805         * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
20806
20807 2014-05-28  Tom de Vries  <tom@codesourcery.com>
20808
20809         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
20810         * lra.c (initialize_lra_reg_info_element): Add init of
20811         actual_call_used_reg_set field.
20812         (lra): Call lra_create_live_ranges before lra_inheritance for
20813         -fuse-caller-save.
20814         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
20815         -fuse-caller-save.
20816         * lra-constraints.c (need_for_call_save_p): Use
20817         actual_call_used_reg_set instead of call_used_reg_set for
20818         -fuse-caller-save.
20819         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
20820
20821 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
20822             Tom de Vries  <tom@codesourcery.com>
20823
20824         * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
20825         to gccoptlist.
20826         (@item -fuse-caller-save): New item.
20827
20828 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
20829             Tom de Vries  <tom@codesourcery.com>
20830
20831         * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
20832         OPT_fuse_caller_save.
20833
20834 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
20835             Tom de Vries  <tom@codesourcery.com>
20836
20837         * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
20838         * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
20839         get_call_reg_set_usage.
20840         * resource.c (mark_set_resources, mark_target_live_regs): Use
20841         get_call_reg_set_usage.
20842         * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
20843         field.
20844         (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
20845         * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
20846         Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
20847         * ira-build.c (ira_create_allocno): Init
20848         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
20849         (create_cap_allocno, propagate_allocno_info)
20850         (propagate_some_info_from_allocno)
20851         (copy_info_to_removed_store_destinations): Handle
20852         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
20853         * ira-costs.c (ira_tune_allocno_costs): Use
20854         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
20855
20856 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
20857             Tom de Vries  <tom@codesourcery.com>
20858
20859         * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
20860         and function_used_regs_valid fields.
20861         * final.c: Move include of hard-reg-set.h to before rtl.h to declare
20862         find_all_hard_reg_sets.
20863         (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
20864         (get_call_reg_set_usage): New function.
20865         (rest_of_handle_final): Use collect_fn_hard_reg_usage.
20866         * regs.h (get_call_reg_set_usage): Declare.
20867
20868 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
20869
20870         PR libgcc/61152
20871         * config/dbx.h (License): Add Runtime Library Exception.
20872         * config/newlib-stdint.h (License): Same.
20873         * config/rtems.h (License): Same
20874         * config/initfini-array.h (License): Same
20875         * config/v850/v850.h (License): Same.
20876         * config/v850/v850-opts.h (License): Same
20877         * config/v850/rtems.h (License): Same.
20878
20879 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
20880
20881         PR target/61044
20882         * doc/extend.texi (Local Labels): Note that label differences are
20883         not supported for AVR.
20884
20885 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
20886             Olivier Hainque  <hainque@adacore.com>
20887
20888         * rtl.h (set_for_reg_notes): Declare.
20889         * emit-rtl.c (set_for_reg_notes): New function.
20890         (set_unique_reg_note): Use it.
20891         * optabs.c (add_equal_note): Likewise
20892
20893 2014-05-27  Andrew Pinski  <apinski@cavium.com>
20894
20895         * config/aarch64/aarch64.md (stack_protect_set_<mode>):
20896         Use <w> for the register in assembly template.
20897         (stack_protect_test): Use the mode of operands[0] for the result.
20898         (stack_protect_test_<mode>): Use <w> for the register
20899         in assembly template.
20900
20901 2014-05-27  DJ Delorie  <dj@redhat.com>
20902
20903         * config/rx/rx.c (add_vector_labels): New.
20904         (rx_output_function_prologue): Call it.
20905         (rx_handle_func_attribute): Don't require empty arguments.
20906         (rx_handle_vector_attribute): New.
20907         (rx_attribute_table): Add "vector" attribute.
20908         * doc/extend.texi (interrupt, vector): Document new/changed
20909         RX-specific attributes.
20910
20911         * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
20912
20913 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
20914
20915         * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
20916         predicate to detect a negative quotient.
20917
20918 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
20919
20920         * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
20921         to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
20922         Add X - Y CMP 0 to X CMP Y transformation.
20923         (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
20924
20925 2014-05-27  Segher Boessenkool  <segher@kernel.crashing.org>
20926
20927         * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
20928         before printing.
20929
20930 2014-05-27  Steve Ellcey  <sellcey@mips.com>
20931
20932         * config/mips/mips.c: Add include of cgraph.h.
20933
20934 2014-05-27  Richard Biener  <rguenther@suse.de>
20935
20936         * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
20937
20938 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
20939
20940         PR libgcc/61152
20941         * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
20942         * config/arm/arm-cores.def (License): Same.
20943         * config/arm/arm-opts.h (License): Same.
20944         * config/arm/aout.h (License): Same.
20945         * config/arm/bpabi.h (License): Same.
20946         * config/arm/elf.h (License): Same.
20947         * config/arm/linux-elf.h (License): Same.
20948         * config/arm/linux-gas.h (License): Same.
20949         * config/arm/netbsd-elf.h (License): Same.
20950         * config/arm/uclinux-eabi.h (License): Same.
20951         * config/arm/uclinux-elf.h (License): Same.
20952         * config/arm/vxworks.h (License): Same.
20953
20954 2014-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20955
20956         * config/arm/neon.md (neon_bswap<mode>): New pattern.
20957         * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
20958         (arm_init_neon_builtins): Handle NEON_BSWAP.
20959         Define required type nodes.
20960         (arm_expand_neon_builtin): Handle NEON_BSWAP.
20961         (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
20962         * config/arm/arm_neon_builtins.def (bswap): Define builtins.
20963         * config/arm/iterators.md (VDQHSD): New mode iterator.
20964
20965 2014-05-27  Richard Biener  <rguenther@suse.de>
20966
20967         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
20968         Try using literal operands when comparing value-ranges failed.
20969
20970 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
20971
20972         * ira.c (commutative_operand): Adjust for change to recog_data.
20973         [Missing from previous commit.]
20974
20975 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
20976
20977         * system.h (TEST_BIT): New macro.
20978         * recog.h (alternative_mask): New type.
20979         (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
20980         (recog_data_d): Replace alternative_enabled_p array with
20981         enabled_alternatives.
20982         (target_recog): New structure.
20983         (default_target_recog, this_target_recog): Declare.
20984         (get_enabled_alternatives, recog_init): Likewise.
20985         * recog.c (default_target_recog, this_target_recog): New variables.
20986         (get_enabled_alternatives): New function.
20987         (extract_insn): Use it.
20988         (recog_init): New function.
20989         (preprocess_constraints, constrain_operands): Adjust for change to
20990         recog_data.
20991         * postreload.c (reload_cse_simplify_operands): Likewise.
20992         * reload.c (find_reloads): Likewise.
20993         * ira-costs.c (record_reg_classes): Likewise.
20994         * ira-lives.c (single_reg_class): Likewise.  Fix bug in which
20995         all alternatives after a disabled one would be skipped.
20996         (ira_implicitly_set_insn_hard_regs): Likewise.
20997         * ira.c (ira_setup_alts): Adjust for change to recog_data.
20998         * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
20999         with enabled_alternatives.
21000         * lra.c (free_insn_recog_data): Update accordingly.
21001         (lra_update_insn_recog_data): Likewise.
21002         (lra_set_insn_recog_data): Likewise.  Use get_enabled_alternatives.
21003         * lra-constraints.c (process_alt_operands): Likewise.  Handle
21004         only_alternative as part of the enabled mask.
21005         * target-globals.h (this_target_recog): Declare.
21006         (target_globals): Add a recog field.
21007         (restore_target_globals): Restore this_target_recog.
21008         * target-globals.c: Include recog.h.
21009         (default_target_globals): Initialize recog field.
21010         (save_target_globals): Likewise.
21011         * reginfo.c (reinit_regs): Call recog_init.
21012         * toplev.c (backend_init_target): Likewise.
21013
21014 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
21015
21016         * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
21017         rather than any named insn's code.
21018
21019 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
21020
21021         PR libgcc/61152
21022         * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
21023         * config/arm/arm-cores.def (License): Same.
21024
21025 2014-05-26  Jan Hubicka  <hubicka@ucw.cz>
21026
21027         * tree.h (decl_comdat_group): Declare.
21028         * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
21029         * tree.c (decl_comdat_group): Here.
21030
21031 2014-05-26  Richard Sandiford  <r.sandiford@uk.ibm.com>
21032
21033         PR rtl-optimization/61222
21034         * combine.c (simplify_shift_const_1): When moving a PLUS outside
21035         the shift, truncate the PLUS operand to the result mode.
21036
21037 2014-05-26  Uros Bizjak  <ubizjak@gmail.com>
21038
21039         PR target/61271
21040         * config/i386/i386.c (ix86_rtx_costs)
21041         <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
21042         Fix condition.
21043
21044 2014-05-26  Martin Jambor  <mjambor@suse.cz>
21045
21046         * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
21047         subreg uses.
21048
21049 2014-05-26  Richard Biener  <rguenther@suse.de>
21050
21051         * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
21052         wi::int_traits <long long>, wi::int_traits <unsigned long long>):
21053         Provide specializations.
21054         (wi::int_traits <HOST_WIDE_INT>,
21055         wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
21056
21057 2014-05-26  Alan Modra  <amodra@gmail.com>
21058
21059         PR target/61098
21060         * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
21061         params and return a bool.  Remove dead code.  Update comment.
21062         Assert we have a const_int source.  Remove bogus code from
21063         32-bit HWI days.  Move !TARGET_POWERPC64 handling, and correct
21064         handling of constants > 2G and reg_equal note, from..
21065         (rs6000_emit_set_long_const): ..here.  Remove unneeded param and
21066         return value.  Update comment.  If we can, use a new pseudo
21067         for intermediate calculations.
21068         * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
21069         prototype.
21070         * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
21071         call to rs6000_emit_set_const in splitter.
21072         (movdi_internal64+2, +3): Likewise.
21073
21074 2014-05-26  Richard Biener  <rguenther@suse.de>
21075
21076         * system.h: Define __STDC_FORMAT_MACROS before
21077         including inttypes.h.
21078         * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
21079         HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
21080         HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
21081         HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
21082         HOST_WIDEST_INT_C): Remove.
21083         (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
21084         if C99 inttypes.h is not available.
21085         * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
21086         * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
21087         * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
21088         * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
21089         * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
21090         (struct output_info): Likewise.
21091         (print_statistics): Adjust.
21092         (dump_bitmap_statistics): Likewise.
21093         * bt-load.c (migrate_btr_defs): Print with PRId64.
21094         * cfg.c (dump_edge_info, dump_bb_info): Likewise.
21095         (MAX_SAFE_MULTIPLIER): Adjust.
21096         * cfghooks.c (dump_bb_for_graph): Print with PRId64.
21097         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
21098         dump_cgraph_node): Likewise.
21099         * final.c (dump_basic_block_info): Likewise.
21100         * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
21101         * gcov.c (format_gcov): Likewise.
21102         * ipa-cp.c (good_cloning_opportunity_p): Likewise.  Use int64_t
21103         for calculation.
21104         (get_clone_agg_value): Use HOST_WIDE_INT for offset.
21105         * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
21106         (inline_small_functions, dump_overall_stats, dump_inline_stats):
21107         Use PRId64 for dumping.
21108         * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
21109         * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
21110         (add_allocno_hard_regs): Adjust.
21111         * loop-doloop.c (doloop_modify): Print using PRId64.
21112         * loop-iv.c (inverse): Compute in uint64_t.
21113         (determine_max_iter, iv_number_of_iterations): Likewise.
21114         * loop-unroll.c (decide_peel_completely, decide_peel_simple):
21115         Print using PRId64.
21116         * lto-streamer-out.c (write_symbol): Use uint64_t.
21117         * mcf.c (CAP_INFINITY): Use int64_t maximum.
21118         (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
21119         find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
21120         * modulo-sched.c (const_iteration_count): Use int64_t.
21121         (sms_schedule): Dump using PRId64.
21122         * predict.c (dump_prediction): Likewise.
21123         * pretty-print.h (pp_widest_integer): Remove.
21124         * profile.c (get_working_sets, is_edge_inconsistent,
21125         is_inconsistent, read_profile_edge_counts): Dump using PRId64.
21126         * tree-pretty-print.c (pp_double_int): Remove case handling
21127         HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
21128         * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
21129         and adjust users.
21130         (pass_optimize_bswap::execute): Remove restriction on hosts.
21131         * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
21132         * tree-streamer-out.c (streamer_write_tree_header): Likewise.
21133         * tree.c (widest_int_cst_value): Remove.
21134         * tree.h (widest_int_cst_value): Likewise.
21135         * value-prof.c (dump_histogram_value): Print using PRId64.
21136         * gengtype.c (main): Also inject int64_t.
21137         * ggc-page.c (struct max_alignment): Use int64_t.
21138         * alloc-pool.c (struct allocation_object_def): Likewise.
21139         * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
21140         for computation.
21141         * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
21142         * doc/tm.texi: Regenerated.
21143         * gengtype-lex.l (IWORD): Handle [u]int64_t.
21144         * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
21145         * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
21146         mmix_output_register_setting): Use [u]int64_t in prototypes.
21147         * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
21148         mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
21149         mmix_output_octa, mmix_output_shifted_value): Adjust.
21150         (mmix_intval): Adjust.  Remove unreachable case.
21151         * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
21152
21153 2014-05-26  Richard Biener  <rguenther@suse.de>
21154
21155         * configure.ac: Drop __int64 type check.  Insist that we
21156         found uint64_t and int64_t.
21157         * hwint.h (HOST_BITS_PER___INT64): Remove.
21158         (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
21159         (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
21160         (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
21161         (HOST_WIDEST_FAST_INT): Remove __int64 case.
21162         * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
21163         for dst_q_src_df_rms_cdt.
21164         * configure: Regenerate.
21165         * config.in: Likewise.
21166
21167 2014-05-26  Michael Tautschnig  <mt@debian.org>
21168
21169         PR target/61249
21170         * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
21171         __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
21172
21173 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
21174
21175         PR rtl-optimization/61278
21176         * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
21177
21178 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
21179
21180         PR rtl-optimization/61220
21181         Part of PR rtl-optimization/61225
21182         * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
21183         insn; skip split_edge for a block with only one successor.
21184
21185 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
21186
21187         * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
21188         for variables.
21189
21190 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
21191
21192         * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
21193         (update_vtable_references): New function.
21194         (function_and_variable_visibility): Rewrite also vtable initializers.
21195         * varpool.c (cgraph_variable_initializer_availability): Remove assert.
21196
21197 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
21198
21199         * ggc.h (ggc_grow): New function.
21200         * ggc-none.c (ggc_grow): New function.
21201         * ggc-page.c (ggc_grow): Likewise.
21202
21203 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
21204
21205         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
21206         address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
21207         comdat_can_be_unshared_p, cgraph_externally_visible_p,
21208         varpool_externally_visible_p, can_replace_by_local_alias,
21209         update_visibility_by_resolution_info, function_and_variable_visibility,
21210         pass_data_ipa_function_and_variable_visibility,
21211         make_pass_ipa_function_and_variable_visibility,
21212         whole_program_function_and_variable_visibility,
21213         pass_data_ipa_whole_program_visibility,
21214         make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
21215         * cgraph.h (cgraph_local_node_p): Declare.
21216         * ipa-visibility.c: New file.
21217         * Makefile.in (OBJS): Add ipa-visiblity.o
21218
21219 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
21220
21221         * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
21222         that var decl is available.
21223
21224 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
21225
21226         * tree-core.h (tree_decl_with_vis): Replace comdat_group by
21227         symtab_node pointer.
21228         * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
21229         (find_decls_types_r): Do not walk COMDAT_GROUP.
21230         * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
21231         * varasm.c (make_decl_one_only): Use set_comdat_group;
21232         create node if needed.
21233         * ipa-inline-transform.c (save_inline_function_body): Update
21234         way we decl->symtab mapping.
21235         * symtab.c (symtab_hash, hash_node, eq_node
21236         symtab_insert_node_to_hashtable): Remove.
21237         (symtab_register_node): Update.
21238         (symtab_unregister_node): Update.
21239         (symtab_get_node): Reimplement as inline function.
21240         (symtab_add_to_same_comdat_group): Update.
21241         (symtab_dissolve_same_comdat_group_list): Update.
21242         (dump_symtab_base): Update.
21243         (verify_symtab_base): Update.
21244         (symtab_make_decl_local): Update.
21245         (fixup_same_cpp_alias_visibility): Update.
21246         (symtab_nonoverwritable_alias): Update.
21247         * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
21248         * ipa.c (update_visibility_by_resolution_info): UPdate.
21249         * bb-reorder.c: Include cgraph.h
21250         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
21251         with comdat groups.
21252         * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
21253         * cgraph.c (cgraph_get_create_node): Update.
21254         * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
21255         and comdat_group_.
21256         (symtab_get_node): Make inline.
21257         (symtab_insert_node_to_hashtable): Remove.
21258         (symtab_can_be_discarded): Update.
21259         (decl_comdat_group): New function.
21260         * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
21261         Update.
21262         * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
21263         comdat group name.
21264         (read_comdat_group): New function.
21265         (input_node, input_varpool_node): Use it.
21266         * trans-mem.c (ipa_tm_create_version_alias): Update code creating
21267         comdat groups.
21268         * mips.c (mips_start_unique_function): Likewise.
21269         (ix86_code_end): Likewise.
21270         (rs6000_code_end): Likweise.
21271         * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
21272
21273 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
21274
21275         * gengtype-state.c (fatal_reading_state): Bring offline.
21276         * optabs.c (widening_optab_handler): Bring offline.
21277         * optabs.h (widening_optab_handler): Likewise.
21278         * final.c (get_attr_length_1): Likewise.
21279
21280 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
21281
21282         * sched-int.h (sd_iterator_cond): Manually tail recurse.
21283
21284 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
21285
21286         * config/rs6000/440.md (ppc440-integer): Include shift without dot.
21287         (ppc440-compare): Include shift with dot.
21288         * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
21289         * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
21290         without dot.
21291         * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
21292         without dot.
21293         (e6500_sfx2): Include it.
21294         * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
21295         *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
21296         *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
21297         andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
21298         *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
21299         *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
21300         *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
21301         *lshiftrt_internal1le, *lshiftrt_internal1be,
21302         *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
21303         *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
21304         *rotldi3_internal10le, *rotldi3_internal10be,
21305         *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
21306         ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
21307         ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
21308         *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
21309         define_insns): Use type "shift" in the appropriate alternatives.
21310
21311 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
21312
21313         * config/rs6000/rs6000.md (type): Add "logical".  Delete
21314         "fast_compare".
21315         (dot): Adjust comment.
21316         (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
21317         *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
21318         *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
21319         anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
21320         *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
21321         *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
21322         *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
21323         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
21324
21325         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
21326         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
21327         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
21328         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
21329         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
21330         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
21331         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
21332         * config/rs6000/8540.md (ppc8540_su): Adjust.
21333         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
21334         cell-cmp-microcoded): Adjust.
21335         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
21336         * config/rs6000/e500mc.md (e500mc_su): Adjust.
21337         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
21338         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
21339         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
21340         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
21341         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
21342         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
21343         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
21344         Adjust.
21345         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
21346         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
21347         Adjust.  Adjust comment.
21348         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
21349         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
21350
21351 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
21352
21353         * config/rs6000/rs6000.md (type): Add "add".
21354         (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
21355         *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
21356         define_insns): Use it.
21357         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
21358
21359         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
21360         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
21361         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
21362         * config/rs6000/601.md (ppc601-integer): Adjust.
21363         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
21364         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
21365         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
21366         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
21367         * config/rs6000/8540.md (ppc8540_su): Adjust.
21368         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
21369         cell-cmp-microcoded): Adjust.
21370         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
21371         * config/rs6000/e500mc.md (e500mc_su): Adjust.
21372         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
21373         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
21374         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
21375         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
21376         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
21377         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
21378         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
21379         Adjust.
21380         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
21381         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
21382         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
21383         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
21384
21385 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
21386
21387         * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
21388         "delayed_compare", "var_delayed_compare".
21389         (var_shift): New attribute.
21390         (cell_micro): Adjust.
21391         (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
21392         *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
21393         rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
21394         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
21395         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
21396         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
21397         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
21398         *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
21399         *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
21400         *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
21401         *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
21402         rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
21403         *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
21404         *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
21405         *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
21406         *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
21407         *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
21408         *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
21409         *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
21410         *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
21411         *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
21412         *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
21413         *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
21414         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
21415         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
21416
21417         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
21418         * config/rs6000/440.md (ppc440-integer): Adjust.
21419         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
21420         * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
21421         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
21422         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
21423         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
21424         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
21425         * config/rs6000/8540.md (ppc8540_su): Adjust.
21426         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
21427         cell-cmp-microcoded): Adjust.
21428         * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
21429         * config/rs6000/e500mc.md (e500mc_su): Adjust.
21430         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
21431         e500mc64_delayed): Adjust.
21432         * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
21433         * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
21434         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
21435         * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
21436         * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
21437         * config/rs6000/power6.md (power6-shift, power6-var-rotate,
21438         power6-delayed-compare, power6-var-delayed-compare): Adjust.
21439         * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
21440         * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
21441         Adjust comment.
21442         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
21443         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
21444
21445 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
21446
21447         * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv".  Add "div".
21448         (bits): New mode_attr.
21449         (idiv_ldiv): Delete mode_attr.
21450         (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
21451         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
21452         rs6000_adjust_priority, is_nonpipeline_insn,
21453         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
21454
21455         * config/rs6000/40x.md (ppc403-idiv): Adjust.
21456         * config/rs6000/440.md (ppc440-idiv): Adjust.
21457         * config/rs6000/476.md (ppc476-idiv): Adjust.
21458         * config/rs6000/601.md (ppc601-idiv): Adjust.
21459         * config/rs6000/603.md (ppc603-idiv): Adjust.
21460         * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
21461         ppc620-ldiv): Adjust.
21462         * config/rs6000/7450.md (ppc7450-idiv): Adjust.
21463         * config/rs6000/7xx.md (ppc750-idiv): Adjust.
21464         * config/rs6000/8540.md (ppc8540_divide): Adjust.
21465         * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
21466         * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
21467         * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
21468         * config/rs6000/e500mc.md (e500mc_divide): Adjust.
21469         * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
21470         * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
21471         * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
21472         * config/rs6000/mpc.md (mpccore-idiv): Adjust.
21473         * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
21474         * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
21475         * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
21476         * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
21477         * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
21478         * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
21479         * config/rs6000/titan.md (titan_fxu_div): Adjust.
21480
21481 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
21482
21483         * config/rs6000/rs6000.md (type): Delete "insert_word",
21484         "insert_dword".  Add "insert".
21485         (size): Update comment.
21486         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
21487         insn_must_be_first_in_group): Adjust.
21488         (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
21489         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
21490         *insvsi_internal6, insvdi_internal): Adjust.
21491
21492         * config/rs6000/40x.md (ppc403-integer): Adjust.
21493         * config/rs6000/440.md (ppc440-integer): Adjust.
21494         * config/rs6000/476.md (ppc476-simple-integer): Adjust.
21495         * config/rs6000/601.md (ppc601-integer): Adjust.
21496         * config/rs6000/603.md (ppc603-integer): Adjust.
21497         * config/rs6000/6xx.md (ppc604-integer): Adjust.
21498         * config/rs6000/7450.md (ppc7450-integer): Adjust.
21499         * config/rs6000/7xx.md (ppc750-integer): Adjust.
21500         * config/rs6000/8540.md (ppc8540_su): Adjust.
21501         * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
21502         * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
21503         * config/rs6000/e500mc.md (e500mc_su): Adjust.
21504         * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
21505         * config/rs6000/e5500.md (e5500_sfx): Adjust.
21506         * config/rs6000/e6500.md (e6500_sfx): Adjust.
21507         * config/rs6000/mpc.md (mpccore-integer): Adjust.
21508         * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
21509         * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
21510         * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
21511         * config/rs6000/power7.md (power7-integer): Adjust.
21512         * config/rs6000/power8.md (power8-1cyc): Adjust.
21513         * config/rs6000/rs64.md (rs64a-integer): Adjust.
21514         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
21515
21516 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
21517
21518         * config/rs6000/rs6000.md (type): Add "mul".  Delete "imul",
21519         "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
21520         (size): New attribute.
21521         (dot): New attribute.
21522         (cell_micro): Adjust.
21523         (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
21524         umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
21525         *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
21526         umuldi3_highpart): Adjust.
21527         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
21528         rs6000_adjust_priority, is_nonpipeline_insn,
21529         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
21530
21531         * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
21532         ppc405-imul3): Adjust.
21533         * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
21534         * config/rs6000/476.md (ppc476-imul): Adjust.
21535         * config/rs6000/601.md (ppc601-imul): Adjust.
21536         * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
21537         * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
21538         ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
21539         * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
21540         * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
21541         Adjust.
21542         * config/rs6000/8540.md (ppc8540_multiply): Adjust.
21543         * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
21544         * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
21545         cell-imul): Adjust.
21546         * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
21547         * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
21548         * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
21549         * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
21550         * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
21551         * config/rs6000/mpc.md (mpccore-imul): Adjust.
21552         * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
21553         power4-lmul, power4-imul, power4-imul3): Adjust.
21554         * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
21555         power5-lmul, power5-imul, power5-imul3): Adjust.
21556         * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
21557         power6-lmul, power6-imul, power6-imul3): Adjust.
21558         * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
21559         * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
21560
21561         * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
21562         rs64a-lmul): Adjust.
21563         * config/rs6000/titan.md (titan_imul): Adjust.
21564
21565 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
21566
21567         * config/rs6000/rs6000.md (type): Add new value "halfmul".
21568         (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
21569         *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
21570         *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
21571         *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
21572         *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
21573         * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
21574         * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
21575         * config/rs6000/476.md (ppc476-imul): Add type halfmul.
21576         * config/rs6000/titan.md: Delete nonsensical comment.
21577         (titan_imul): Add type imul3.
21578         (titan_mulhw): Remove type imul3; add type halfmul.
21579
21580 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
21581
21582         * config/rs6000/rs6000.md (type): Reorder, reformat.
21583
21584 2014-05-23  Martin Jambor  <mjambor@suse.cz>
21585
21586         PR tree-optimization/53787
21587         * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
21588         * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
21589         analysis_done, update all uses.
21590         * ipa-prop.c: Include domwalk.h
21591         (param_analysis_info): Removed.
21592         (param_aa_status): New type.
21593         (ipa_bb_info): Likewise.
21594         (func_body_info): Likewise.
21595         (ipa_get_bb_info): New function.
21596         (aa_overwalked): Likewise.
21597         (find_dominating_aa_status): Likewise.
21598         (parm_bb_aa_status_for_bb): Likewise.
21599         (parm_preserved_before_stmt_p): Changed to use new param AA info.
21600         (load_from_unmodified_param): Accept func_body_info as a parameter
21601         instead of parms_ainfo.
21602         (parm_ref_data_preserved_p): Changed to use new param AA info.
21603         (parm_ref_data_pass_through_p): Likewise.
21604         (ipa_load_from_parm_agg_1): Likewise.  Update callers.
21605         (compute_complex_assign_jump_func): Changed to use new param AA info.
21606         (compute_complex_ancestor_jump_func): Likewise.
21607         (ipa_compute_jump_functions_for_edge): Likewise.
21608         (ipa_compute_jump_functions): Removed.
21609         (ipa_compute_jump_functions_for_bb): New function.
21610         (ipa_analyze_indirect_call_uses): Likewise, moved variable
21611         declarations down.
21612         (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
21613         and info, moved variable declarations down.
21614         (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
21615         node and info.
21616         (ipa_analyze_stmt_uses): Likewise.
21617         (ipa_analyze_params_uses): Removed.
21618         (ipa_analyze_params_uses_in_bb): New function.
21619         (ipa_analyze_controlled_uses): Likewise.
21620         (free_ipa_bb_info): Likewise.
21621         (analysis_dom_walker): New class.
21622         (ipa_analyze_node): Handle node-specific forbidden analysis,
21623         initialize and free func_body_info, use dominator walker.
21624         (ipcp_modif_dom_walker): New class.
21625         (ipcp_transform_function): Create and free func_body_info, use
21626         ipcp_modif_dom_walker, moved a lot of functionality there.
21627
21628 2014-05-23  Marek Polacek  <polacek@redhat.com>
21629             Jakub Jelinek  <jakub@redhat.com>
21630
21631         * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
21632         * gcc.c (sanitize_spec_function): Likewise.
21633         * convert.c (convert_to_integer): Include "ubsan.h".  Add
21634         floating-point to integer instrumentation.
21635         * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
21636         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
21637         SANITIZE_NONDEFAULT.
21638         * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
21639         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
21640         BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
21641         * ubsan.c: Include "realmpfr.h" and "dfp.h".
21642         (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
21643         (ubsan_type_descriptor): Set tkind to 0xffff for types other than
21644         float/double/long double.
21645         (ubsan_instrument_float_cast): New function.
21646         * ubsan.h (ubsan_instrument_float_cast): Declare.
21647
21648 2014-05-23 Jiong Wang  <jiong.wang@arm.com>
21649
21650         * config/aarch64/predicates.md (aarch64_call_insn_operand): New
21651         predicate.
21652         * config/aarch64/constraints.md ("Ucs", "Usf"):  New constraints.
21653         * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
21654         Adjust for tailcalling through registers.
21655         * config/aarch64/aarch64.h (enum reg_class): New caller save
21656         register class.
21657         (REG_CLASS_NAMES): Likewise.
21658         (REG_CLASS_CONTENTS): Likewise.
21659         * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
21660         Allow tailcalling without decls.
21661
21662 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
21663
21664         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
21665         Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
21666
21667         * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
21668         gsi, and variables v_* to v*.
21669
21670 2014-05-23  Eric Botcazou  <ebotcazou@adacore.com>
21671
21672         * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
21673
21674 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
21675
21676         * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
21677         * omp-low.c: Update accordingly.
21678
21679         * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
21680         for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
21681         GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
21682         GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
21683         GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
21684         GF_OMP_TARGET_KIND_UPDATE.
21685
21686         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
21687         Explicitly enumerate the expected region types.
21688
21689 2014-05-23  Paul Eggert  <eggert@cs.ucla.edu>
21690
21691         PR other/56955
21692         * doc/extend.texi (Function Attributes): Fix  __attribute__ ((malloc))
21693         documentation; the old documentation didn't clearly state the
21694         constraints on the contents of the pointed-to storage.
21695
21696 2014-05-23  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
21697
21698         Fix bootstrap error on ia64
21699         * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
21700         Return default value.
21701
21702 2014-05-23  Thomas Preud'homme  <thomas.preudhomme@arm.com>
21703
21704         PR tree-optimization/54733
21705         * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
21706         (CMPNOP): Define.
21707         (find_bswap_or_nop_load): New.
21708         (find_bswap_1): Renamed to ...
21709         (find_bswap_or_nop_1): This. Also add support for memory source.
21710         (find_bswap): Renamed to ...
21711         (find_bswap_or_nop): This. Also add support for memory source and
21712         detection of bitwise operations equivalent to load in target
21713         endianness.
21714         (execute_optimize_bswap): Likewise. Also move its leading comment back
21715         in place and split statement transformation into ...
21716         (bswap_replace): This.
21717
21718 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
21719
21720         PR rtl-optimization/61215
21721         * lra-elelimination.c (lra_eliminate_regs_1): Don't use
21722         simplify_gen_subreg until final substitution.
21723
21724 2014-05-23  Alan Modra  <amodra@gmail.com>
21725
21726         PR target/61231
21727         * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
21728         * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
21729         Use "Y" constraint rather than "m".
21730
21731 2014-05-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
21732
21733         * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
21734         define.
21735         * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
21736         New function declaration.
21737         * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
21738         AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
21739         AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
21740         (aarch64_init_builtins) : Initialize builtins
21741         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
21742         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
21743         (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
21744         __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
21745         and __builtins_aarch64_set_fpsr.
21746         (aarch64_atomic_assign_expand_fenv): New function.
21747         * config/aarch64/aarch64.md (set_fpcr): New pattern.
21748         (get_fpcr) : Likewise.
21749         (set_fpsr) : Likewise.
21750         (get_fpsr) : Likewise.
21751         (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
21752          and UNSPECV_SET_FPSR.
21753         * doc/extend.texi (AARCH64 Built-in Functions) : Document
21754         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
21755         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
21756
21757 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
21758
21759         PR rtl-optimization/60969
21760         * ira-costs.c (record_reg_classes): Process NO_REGS for matching
21761         constraints.  Set up mem cost for NO_REGS case.
21762
21763 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
21764
21765         * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
21766
21767 2012-05-22  Bernd Schmidt  <bernds@codesourcery.com>
21768
21769         * config/darwin.c: Include "lto-section-names.h".
21770         (LTO_SEGMENT_NAME): Don't define.
21771         * config/i386/winnt.c: Include "lto-section-names.h".
21772         * lto-streamer.c: Include "lto-section-names.h".
21773         * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
21774         * lto-wrapper.c: Include "lto-section-names.h".
21775         (LTO_SECTION_NAME_PREFIX): Don't define.
21776         * lto-section-names.h: New file.
21777         * cgraphunit.c: Include "lto-section-names.h".
21778
21779 2014-05-22  Peter Bergner  <bergner@vnet.ibm.com>
21780
21781         * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
21782
21783 2014-05-22  Richard Earnshaw  <rearnsha@arm.com>
21784
21785         PR target/61208
21786         * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
21787
21788 2014-05-22  Nick Clifton  <nickc@redhat.com>
21789
21790         * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
21791
21792 2014-05-22  Eric Botcazou  <ebotcazou@adacore.com>
21793
21794         * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
21795         -> (T)A transformation to integer types.
21796
21797 2014-05-22  Teresa Johnson  <tejohnson@google.com>
21798
21799         * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
21800         (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
21801         (gcov_rewrite): Use gcov_nonruntime_assert.
21802         (gcov_open): Ditto.
21803         (gcov_write_words): Ditto.
21804         (gcov_write_length): Ditto.
21805         (gcov_read_words): Use gcov_nonruntime_assert, and remove
21806         gcc_assert from IN_LIBGCOV code.
21807         (gcov_read_summary): Use gcov_error to flag profile corruption.
21808         (gcov_sync): Use gcov_nonruntime_assert.
21809         (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
21810         (gcov_histo_index): Use gcov_nonruntime_assert.
21811         (static void gcov_histogram_merge): Ditto.
21812         (compute_working_sets): Ditto.
21813         * gcov-io.h (gcov_nonruntime_assert): Define.
21814         (gcov_error): Define for !IN_LIBGCOV
21815
21816 2014-05-22  Richard Biener  <rguenther@suse.de>
21817
21818         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
21819         BUILT_IN_REALLOC like BUILT_IN_STRDUP.
21820         (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
21821         and deallocation site.
21822         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
21823         Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
21824         passing through the incoming points-to set.
21825         (handle_lhs_call): Use flags argument instead of recomputing it.
21826         (find_func_aliases_for_call): Call handle_lhs_call with proper
21827         call return flags.
21828
21829 2014-05-22  Jakub Jelinek  <jakub@redhat.com>
21830
21831         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
21832         all padding bits in REAL_VALUE_TYPE are cleared.
21833
21834 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
21835
21836         Cleanup and improve multipass_dfa_lookahead_guard
21837         * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
21838         (core2i7_first_cycle_multipass_begin,)
21839         (core2i7_first_cycle_multipass_issue,)
21840         (core2i7_first_cycle_multipass_backtrack): Update signature.
21841         * config/ia64/ia64.c
21842         (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
21843         (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
21844         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
21845         hook definition.
21846         (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
21847         ia64_first_cycle_multipass_dfa_lookahead_guard_spec.  Update return
21848         values.
21849         * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
21850         return values.
21851         * doc/tm.texi: Regenerate.
21852         * doc/tm.texi.in
21853         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
21854         * haifa-sched.c (ready_try): Make signed to allow negative values.
21855         (rebug_ready_list_1): Update.
21856         (choose_ready): Simplify.
21857         (sched_extend_ready_list): Update.
21858
21859 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
21860
21861         Remove IA64 speculation tweaking flags
21862         * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
21863         speculation tuning flags.
21864         (msched-prefer-non-data-spec-insns,)
21865         (msched-prefer-non-control-spec-insns): Obsolete options.
21866         * haifa-sched.c (choose_ready): Remove handling of
21867         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
21868         * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
21869         and PREFER_NON_DATA_SPEC.
21870         * sel-sched.c (process_spec_exprs): Remove handling of
21871         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
21872
21873 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
21874
21875         Improve scheduling debug output
21876         * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
21877         (advance_one_cycle): Update.
21878         (schedule_insn, queue_to_ready): Add debug printouts.
21879         (debug_ready_list_1): New static function.
21880         (debug_ready_list): Update.
21881         (max_issue): Add debug printouts.
21882         (dump_insn_stream): New static function.
21883         (schedule_block): Use it.  Also better indent printouts.
21884
21885 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
21886
21887         Fix sched_insn debug counter
21888         * haifa-sched.c (schedule_insn): Update.
21889         (struct haifa_saved_data): Add nonscheduled_insns_begin.
21890         (save_backtrack_point, restore_backtrack_point): Update.
21891         (first_nonscheduled_insn): New static function.
21892         (queue_to_ready, choose_ready): Use it.
21893         (schedule_block): Init nonscheduled_insns_begin.
21894         (sched_emit_insn): Update.
21895
21896
21897 2014-05-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
21898
21899         * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
21900         to GENERAL_REGS.
21901         (aarch64_secondary_reload) : LikeWise.
21902         (aarch64_class_max_nregs) : Remove CORE_REGS.
21903         * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
21904         (REG_CLASS_NAMES) : Likewise.
21905         (REG_CLASS_CONTENTS) : LikeWise.
21906         (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
21907
21908 2014-05-21  Guozhi Wei  <carrot@google.com>
21909
21910         PR target/61202
21911         * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
21912         constraint.
21913         (vqdmulhq_n_s16): Likewise.
21914
21915 2014-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
21916
21917         * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
21918
21919 2014-05-21  Marek Polacek  <polacek@redhat.com>
21920
21921         PR sanitizer/61272
21922         * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
21923
21924 2014-05-21  Martin Jambor  <mjambor@suse.cz>
21925
21926         * doc/invoke.texi (Optimize Options): Document parameters
21927         ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
21928         ipa-cp-array-index-hint-bonus.
21929
21930 2014-05-21  Mark Wielaard  <mjw@redhat.com>
21931
21932         PR debug/16063
21933         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
21934         version >= 3 or not strict DWARF.
21935         * langhooks.h (struct lang_hooks_for_types): Add
21936         enum_underlying_base_type.
21937         * langhooks.c (lhd_enum_underlying_base_type): New function.
21938         * gcc/langhooks.h (struct lang_hooks_for_types): Add
21939         enum_underlying_base_type.
21940         * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
21941         (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
21942         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
21943
21944 2014-05-21  Richard Biener  <rguenther@suse.de>
21945
21946         * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
21947
21948 2014-05-21  John Marino  <gnugcc@marino.st>
21949
21950         * config.gcc (*-*-dragonfly*): New target.
21951         * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
21952         * configure: Regenerate.
21953         * config/dragonfly-stdint.h: New.
21954         * config/dragonfly.h: New.
21955         * config/dragonfly.opt: New.
21956         * config/i386/dragonfly.h: New.
21957         * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
21958
21959 2014-05-21  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
21960
21961         * tree.def (VOID_CST): New.
21962         * tree-core.h (TI_VOID): New.
21963         * tree.h (void_node): New.
21964         * tree.c (tree_node_structure_for_code, tree_code_size)
21965         (iterative_hash_expr): Handle VOID_CST.
21966         (build_common_tree_nodes): Initialize void_node.
21967
21968 2014-05-21  Bernd Schmidt  <bernds@codesourcery.com>
21969
21970         * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
21971         functions.
21972         (reload, calculate_needs_all_insns, reload_as_needed): Use them.
21973
21974         * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
21975         more places.
21976
21977         * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
21978         flag_reorder_blocks_and_partition.
21979         * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
21980
21981 2014-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
21982
21983         PR target/54236
21984         * config/sh/sh.md (*addc_r_1): Rename to addc_t_r.  Remove empty
21985         constraints.
21986         (*addc_r_t): Add new insn_and_split.
21987
21988 2014-05-21  Jakub Jelinek  <jakub@redhat.com>
21989
21990         PR middle-end/61252
21991         * omp-low.c (handle_simd_reference): New function.
21992         (lower_rec_input_clauses): Use it.  Defer adding reference
21993         initialization even for reduction without placeholder if in simd,
21994         handle it properly later on.
21995
21996 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
21997
21998         PR tree-optimization/60899
21999         * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
22000         assume all static symbols will have definition wile parsing and
22001         check the do have definition later in compilation; check that
22002         variable referring symbol will be output before concluding that
22003         reference is safe; be conservative for referring local statics;
22004         be more precise about when comdat is output in other partition.
22005
22006 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
22007
22008         PR bootstrap/60984
22009         * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
22010         parameter.
22011         * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
22012         (ipa_inline): Loop inline_to_all_callers until no more aliases
22013         are removed.
22014
22015 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
22016
22017         * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
22018         set writeonly flag only for vars actually written to.
22019
22020 2014-05-20  Dehao Chen  <dehao@google.com>
22021
22022         * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
22023         and callee count to get clone count.
22024         * tree-inline.c (expand_call_inline): Use callee count instead of bb
22025         count in copy_body.
22026
22027 2014-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
22028
22029         PR rtl-optimization/61243
22030         * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
22031
22032 2014-05-20  Xinliang David Li  <davidxl@google.com>
22033
22034         * cgraphunit.c (walk_polymorphic_call_targets): Add
22035         dbgcnt and fopt-info support.
22036         * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
22037         * ipa-devirt.c (ipa_devirt): Ditto.
22038         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
22039         * ipa.c (walk_polymorphic_call_targets): Ditto.
22040         * gimple-fold.c (fold_gimple_assign): Ditto.
22041         (gimple_fold_call): Ditto.
22042         * dbgcnt.def: New counter.
22043
22044 2014-05-20  DJ Delorie  <dj@redhat.com>
22045
22046         * config/msp430/msp430.md (split): Don't allow subregs when
22047         splitting SImode adds.
22048         (andneghi): Fix subtraction logic.
22049         * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
22050
22051 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
22052
22053         * tree.h (DECL_ONE_ONLY): Return true only for externally visible
22054         symbols.
22055         * except.c (switch_to_exception_section, resolve_unique_section,
22056         get_named_text_section, default_function_rodata_section,
22057         align_variable, get_block_for_decl, default_section_type_flags):
22058         Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
22059         * symtab.c (symtab_add_to_same_comdat_group,
22060         symtab_make_decl_local, fixup_same_cpp_alias_visibility,
22061         symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
22062         Likewise.
22063         * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
22064         * bb-reorder.c (pass_partition_blocks::gate): Likewise.
22065         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
22066         (c6x_function_in_section_p): Likewise.
22067         * config/darwin.c (machopic_select_section): Likewise.
22068         * config/arm/arm.c (arm_function_in_section_p): Likewise.
22069         * config/mips/mips.c (mips_function_rodata_section): Likewise.
22070         * config/mep/mep.c (mep_select_section): LIkewise.
22071         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
22072
22073 2014-05-20  Eric Botcazou  <ebotcazou@adacore.com>
22074
22075         * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
22076         EH region of calls to pure functions that can throw an exception.
22077         * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
22078         (copy_reference_ops_from_call): Also copy the EH region of the call if
22079         it can throw an exception.
22080
22081 2014-05-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22082
22083         * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
22084         nested VEC_SELECTs that are inverses of each other.
22085
22086 2014-05-20  Richard Biener  <rguenther@suse.de>
22087
22088         * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
22089         (extract_and_process_scc_for_name): not here.
22090         (cond_dom_walker::before_dom_children): Only process
22091         stmts that end the BB in interesting ways.
22092         (run_scc_vn): Mark param uses as visited.
22093
22094 2014-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22095
22096         * config/arm/arm.md (arith_shiftsi): Do not predicate for
22097         arm_restrict_it.
22098
22099 2014-05-20  Nick Clifton  <nickc@redhat.com>
22100
22101         * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
22102         (msp430_gimplify_va_arg_expr): New function.
22103         (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
22104
22105         * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
22106         operand 0 in order to prevent confusion about the number of
22107         registers involved.
22108
22109 2014-05-20  Richard Biener  <rguenther@suse.de>
22110
22111         PR tree-optimization/61221
22112         * tree-ssa-pre.c (el_to_update): Remove.
22113         (eliminate_dom_walker::before_dom_children): Handle released
22114         VDEFs by value-numbering them to the associated VUSE.  Update
22115         stmt immediately for substituted call address.
22116         (eliminate): Remove delayed stmt updating code.
22117         * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
22118         possibly late re-numbered vuses.
22119         (vn_reference_lookup_2): Adjust.
22120         (vn_reference_lookup_pieces): Likewise.
22121         (vn_reference_lookup): Likewise.
22122
22123 2014-05-20  Richard Biener  <rguenther@suse.de>
22124
22125         * config.gcc: Remove need_64bit_hwint.
22126         * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
22127         * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
22128         it to be true.
22129         * config.in: Regenerate.
22130         * configure: Likewise.
22131
22132 2014-05-19  David Wohlferd <dw@LimeGreenSocks.com>
22133
22134         * doc/extend.texi: Create Label Attributes section,
22135         move all label attributes into it and reference it.
22136
22137 2014-05-19  Richard Earnshaw  <rearnsha@arm.com>
22138
22139         * arm.c (thumb1_reorg): When scanning backwards skip anything
22140         that's not a proper insn.
22141
22142 2014-05-19  Richard Biener  <rguenther@suse.de>
22143
22144         PR tree-optimization/61221
22145         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
22146         Do nothing for unreachable blocks.
22147         * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
22148         Improve unreachability detection.
22149
22150 2014-05-19  Richard Biener  <rguenther@suse.de>
22151
22152         PR tree-optimization/61209
22153         * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
22154
22155 2014-05-19  Nick Clifton  <nickc@redhat.com>
22156
22157         * except.c (init_eh): Fix computation of builtin setjmp buffer
22158         size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
22159
22160 2014-05-19  Richard Biener  <rguenther@suse.de>
22161
22162         PR tree-optimization/61184
22163         * tree-vrp.c (is_negative_overflow_infinity): Use
22164         TREE_OVERFLOW_P and do that check first.
22165         (is_positive_overflow_infinity): Likewise.
22166         (is_overflow_infinity): Likewise.
22167         (vrp_operand_equal_p): Properly treat operands with
22168         differing overflow as not equal.
22169
22170 2014-05-19  Bernd Schmidt  <bernds@codesourcery.com>
22171
22172         * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
22173         shift simplification where it was intended.
22174
22175 2014-05-19  Christian Bruel  <christian.bruel@st.com>
22176
22177         PR target/61195
22178         * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
22179
22180 2014-05-19  Richard Sandiford  <r.sandiford@uk.ibm.com>
22181
22182         PR target/61084
22183         * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
22184         than wide_int.
22185
22186 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
22187
22188         * reg-notes.def (CROSSING_JUMP): Likewise.
22189         * rtl.h (rtx_def): Update comment for jump flag.
22190         (CROSSING_JUMP_P): Define.
22191         * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
22192         of a REG_CROSSING_JUMP note.
22193         * cfghooks.c (tidy_fallthru_edges): Likewise.
22194         * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
22195         * emit-rtl.c (try_split): Likewise.
22196         * haifa-sched.c (sched_create_recovery_edges): Likewise.
22197         * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
22198         * jump.c (redirect_jump_2): Likewise.
22199         * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
22200         (relax_delay_slots): Likewise.
22201         * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
22202         (bbit_di): Likewise.
22203         * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
22204         * config/sh/sh.md (jump_compact): Likewise.
22205         * bb-reorder.c (rotate_loop): Likewise.
22206         (pass_duplicate_computed_gotos::execute): Likewise.
22207         (add_reg_crossing_jump_notes): Rename to...
22208         (update_crossing_jump_flags): ...this.
22209         (pass_partition_blocks::execute): Update accordingly.
22210
22211 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
22212
22213         * tree.h: Remove extraneous template <>.
22214
22215 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
22216
22217         * ipa.c (symtab_remove_unreachable_nodes): Remove
22218         symbol from comdat group if its body was eliminated.
22219         (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
22220         * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
22221         (symtab_unregister_node): ... this one.
22222         (verify_symtab_base): More strict checking of comdats.
22223         * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
22224
22225 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
22226
22227         * tree-pass.h (make_pass_ipa_comdats): New pass.
22228         * timevar.def (TV_IPA_COMDATS): New timevar.
22229         * passes.def (pass_ipa_comdats): Add.
22230         * Makefile.in (OBJS): Add ipa-comdats.o
22231         * ipa-comdats.c: New file.
22232
22233 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
22234
22235         * ipa.c (update_visibility_by_resolution_info): New function.
22236         (function_and_variable_visibility): Use it.
22237
22238 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
22239
22240         * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
22241         New functions.
22242         (FOR_EACH_DEFINED_SYMBOL): New macro.
22243         (varpool_first_static_initializer, varpool_next_static_initializer,
22244         varpool_first_defined_variable, varpool_next_defined_variable):
22245         Fix comments.
22246         (symtab_in_same_comdat_p): Correctly deal with inline functions.
22247
22248 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
22249
22250         * ggc-page.c (ggc_handle_finalizers): Add comment.
22251
22252 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
22253
22254         * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
22255         * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
22256         (ggc_internal_cleared_alloc): Likewise.
22257         * ggc-page.c (finalizer): New class.
22258         (vec_finalizer): Likewise.
22259         (globals::finalizers): New member.
22260         (globals::vec_finalizers): Likewise.
22261         (ggc_internal_alloc): Record the finalizer if any for the block being
22262         allocated.
22263         (ggc_handle_finalizers): New function.
22264         (ggc_collect): Call ggc_handle_finalizers.
22265         * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
22266         finalizer.
22267         (ggc_internal_cleared_alloc): Likewise.
22268         (finalize): New function.
22269         (need_finalization_p): Likewise.
22270         (ggc_alloc): Install the type's destructor as the finalizer if it
22271         might do something.
22272         (ggc_cleared_alloc): Likewise.
22273         (ggc_vec_alloc): Likewise.
22274         (ggc_cleared_vec_alloc): Likewise.
22275
22276 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
22277
22278         * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
22279
22280 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
22281
22282         * alias.c (record_alias_subset): Adjust.
22283         * bitmap.c (bitmap_element_allocate): Likewise.
22284         (bitmap_gc_alloc_stat): Likewise.
22285         * cfg.c (init_flow): Likewise.
22286         (alloc_block): Likewise.
22287         (unchecked_make_edge): Likewise.
22288         * cfgloop.c (alloc_loop): Likewise.
22289         (flow_loops_find): Likewise.
22290         (rescan_loop_exit): Likewise.
22291         * cfgrtl.c (init_rtl_bb_info): Likewise.
22292         * cgraph.c (insert_new_cgraph_node_version): Likewise.
22293         (cgraph_allocate_node): Likewise.
22294         (cgraph_create_edge_1): Likewise.
22295         (cgraph_allocate_init_indirect_info): Likewise.
22296         * cgraphclones.c (cgraph_clone_edge): Likewise.
22297         * cgraphunit.c (add_asm_node): Likewise.
22298         (init_lowered_empty_function): Likewise.
22299         * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
22300         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
22301         (alpha_use_linkage): Likewise.
22302         * config/arc/arc.c (arc_init_machine_status): Likewise.
22303         * config/arm/arm.c (arm_init_machine_status): Likewise.
22304         * config/avr/avr.c (avr_init_machine_status): Likewise.
22305         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
22306         * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
22307         * config/cris/cris.c (cris_init_machine_status): Likewise.
22308         * config/darwin.c (machopic_indirection_name): Likewise.
22309         (darwin_build_constant_cfstring): Likewise.
22310         (darwin_enter_string_into_cfstring_table): Likewise.
22311         * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
22312         * config/frv/frv.c (frv_init_machine_status): Likewise.
22313         * config/i386/i386.c (get_dllimport_decl): Likewise.
22314         (ix86_init_machine_status): Likewise.
22315         (assign_386_stack_local): Likewise.
22316         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
22317         (i386_pe_maybe_record_exported_symbol): Likewise.
22318         (i386_pe_record_stub): Likewise.
22319         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
22320         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
22321         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
22322         (m32c_note_pragma_address): Likewise.
22323         * config/mep/mep.c (mep_init_machine_status): Likewise.
22324         (mep_note_pragma_flag): Likewise.
22325         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
22326         (mips16_local_alias): Likewise.
22327         (mips_init_machine_status): Likewise.
22328         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
22329         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
22330         * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
22331         * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
22332         * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
22333         * config/pa/pa.c (pa_init_machine_status): Likewise.
22334         (pa_get_deferred_plabel): Likewise.
22335         * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
22336         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
22337         (rs6000_init_machine_status): Likewise.
22338         (output_toc): Likewise.
22339         * config/s390/s390.c (s390_init_machine_status): Likewise.
22340         * config/score/score.c (score_output_external): Likewise.
22341         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
22342         * config/spu/spu.c (spu_init_machine_status): Likewise.
22343         * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
22344         * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
22345         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
22346         * coverage.c (coverage_end_function): Likewise.
22347         * dbxout.c (dbxout_init): Likewise.
22348         * doc/gty.texi: Don't mention variable_size attribute.
22349         * dwarf2cfi.c (new_cfi): Adjust.
22350         (new_cfi_row): Likewise.
22351         (copy_cfi_row): Likewise.
22352         (create_cie_data): Likewise.
22353         * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
22354         (new_loc_descr): Likewise.
22355         (find_AT_string_in_table): Likewise.
22356         (add_addr_table_entry): Likewise.
22357         (new_die): Likewise.
22358         (add_var_loc_to_decl): Likewise.
22359         (clone_die): Likewise.
22360         (clone_as_declaration): Likewise.
22361         (break_out_comdat_types): Likewise.
22362         (new_loc_list): Likewise.
22363         (add_loc_descr_to_each): Likewise.
22364         (add_location_or_const_value_attribute): Likewise.
22365         (add_linkage_name): Likewise.
22366         (lookup_filename): Likewise.
22367         (dwarf2out_var_location): Likewise.
22368         (new_line_info_table): Likewise.
22369         (dwarf2out_init): Likewise.
22370         (mem_loc_descriptor): Likewise.
22371         (loc_descriptor): Likewise.
22372         (add_const_value_attribute): Likewise.
22373         (tree_add_const_value_attribute): Likewise.
22374         (comp_dir_string): Likewise.
22375         (dwarf2out_vms_debug_main_pointer): Likewise.
22376         (string_cst_pool_decl): Likewise.
22377         * emit-rtl.c (set_mem_attrs): Likewise.
22378         (get_reg_attrs): Likewise.
22379         (start_sequence): Likewise.
22380         (init_emit): Likewise.
22381         (init_emit_regs): Likewise.
22382         * except.c (init_eh_for_function): Likewise.
22383         (gen_eh_region): Likewise.
22384         (gen_eh_region_catch): Likewise.
22385         (gen_eh_landing_pad): Likewise.
22386         (add_call_site): Likewise.
22387         * function.c (add_frame_space): Likewise.
22388         (insert_temp_slot_address): Likewise.
22389         (assign_stack_temp_for_type): Likewise.
22390         (get_hard_reg_initial_val): Likewise.
22391         (allocate_struct_function): Likewise.
22392         (prepare_function_start): Likewise.
22393         (types_used_by_var_decl_insert): Likewise.
22394         * gengtype.c (variable_size_p): Remove function.
22395         (enum alloc_quantity): Remove enum.
22396         (write_typed_alloc_def): Remove function.
22397         (write_typed_struct_alloc_def): Likewise.
22398         (write_typed_typedef_alloc_def): Likewise.
22399         (write_typed_alloc_defns): Likewise.
22400         (main): Adjust.
22401         * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
22402         (ggc_cleared_alloc_ptr_array_two_args): Likewise.
22403         * ggc.h (ggc_alloc): new function.
22404         (ggc_cleared_alloc): Likewise.
22405         (ggc_vec_alloc): Template on type of vector element, and remove
22406         element size argument.
22407         (ggc_cleared_vec_alloc): Likewise.
22408         * gimple.c (gimple_build_omp_for): Adjust.
22409         (gimple_copy): Likewise.
22410         * ipa-cp.c (get_replacement_map): Likewise.
22411         (find_aggregate_values_for_callers_subset): Likewise.
22412         (known_aggs_to_agg_replacement_list): Likewise.
22413         * ipa-devirt.c (get_odr_type): Likewise.
22414         * ipa-prop.c (ipa_node_duplication_hook): Likewise.
22415         (read_agg_replacement_chain): Likewise.
22416         * loop-iv.c (get_simple_loop_desc): Likewise.
22417         * lto-cgraph.c (input_node_opt_summary): Likewise.
22418         * lto-section-in.c (lto_new_in_decl_state): Likewise.
22419         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
22420         (input_eh_region): Likewise.
22421         (input_eh_lp): Likewise.
22422         (input_cfg): Likewise.
22423         * optabs.c (set_optab_libfunc): Likewise.
22424         (init_tree_optimization_optabs): Likewise.
22425         (set_conv_libfunc): Likewise.
22426         * passes.c (do_per_function_toporder): Likewise.
22427         * rtl.h: Don't use variable_size gty attribute.
22428         * sese.c (if_region_set_false_region): Adjust.
22429         * stringpool.c (gt_pch_save_stringpool): Likewise.
22430         * target-globals.c (save_target_globals): Likewise.
22431         * toplev.c (general_init): Likewise.
22432         * trans-mem.c (record_tm_replacement): Likewise.
22433         (split_bb_make_tm_edge): Likewise.
22434         * tree-cfg.c (move_sese_region_to_fn): Likewise.
22435         * tree-data-ref.h (lambda_vector_new): Likewise.
22436         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
22437         * tree-iterator.c (tsi_link_before): Likewise.
22438         (tsi_link_after): Likewise.
22439         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
22440         * tree-ssa-loop-niter.c (record_estimate): Likewise.
22441         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
22442         * tree-ssa-operands.h: Don't use variable_size gty attribute.
22443         * tree-ssa.c (init_tree_ssa): Adjust.
22444         * tree-ssanames.c (set_range_info): Likewise.
22445         (get_ptr_info): Likewise.
22446         (duplicate_ssa_name_ptr_info): Likewise.
22447         (duplicate_ssa_name_range_info): Likewise.
22448         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
22449         (unpack_ts_fixed_cst_value_fields): Likewise.
22450         * tree.c (build_fixed): Likewise.
22451         (build_real): Likewise.
22452         (build_string): Likewise.
22453         (decl_priority_info): Likewise.
22454         (decl_debug_expr_insert): Likewise.
22455         (decl_value_expr_insert): Likewise.
22456         (decl_debug_args_insert): Likewise.
22457         (type_hash_add): Likewise.
22458         (build_omp_clause): Likewise.
22459         * ubsan.c (decl_for_type_insert): Likewise.
22460         * varasm.c (get_unnamed_section): Likewise.
22461         (get_noswitch_section): Likewise.
22462         (get_section): Likewise.
22463         (get_block_for_section): Likewise.
22464         (create_block_symbol): Likewise.
22465         (build_constant_desc): Likewise.
22466         (create_constant_pool): Likewise.
22467         (force_const_mem): Likewise.
22468         (record_tm_clone_pair): Likewise.
22469         * varpool.c (varpool_create_empty_node): Likewise.
22470
22471 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
22472
22473         * dwarf2out.c (tree_add_const_value_attribute): Call
22474         ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
22475         * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
22476         instead of ggc_internal_<x>alloc_stat.
22477         * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
22478         (ggc_realloc): Likewise.
22479         * ggc-none.c (ggc_internal_alloc): Likewise.
22480         (ggc_internal_cleared_alloc): Likewise.
22481         * ggc-page.c: Likewise.
22482         * ggc.h (ggc_internal_alloc_stat): Likewise.
22483         (ggc_internal_alloc): Remove macro.
22484         (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
22485         (ggc_internal_cleared_alloc): Remove macro.
22486         (GGC_RESIZEVEC): Adjust.
22487         (ggc_resizevar): Remove macro.
22488         (ggc_internal_vec_alloc_stat): Drop _stat suffix.
22489         (ggc_internal_cleared_vec_alloc_stat): Likewise.
22490         (ggc_internal_vec_cleared_alloc): Remove macro.
22491         (ggc_alloc_atomic_stat): Drop _stat suffix.
22492         (ggc_alloc_atomic): Remove macro.
22493         (ggc_alloc_cleared_atomic): Remove macro.
22494         (ggc_alloc_string_stat): Drop _stat suffix.
22495         (ggc_alloc_string): Remove macro.
22496         (ggc_alloc_rtx_def_stat): Adjust.
22497         (ggc_alloc_tree_node_stat): Likewise.
22498         (ggc_alloc_cleared_tree_node_stat): Likewise.
22499         (ggc_alloc_cleared_gimple_statement_stat): Likewise.
22500         (ggc_alloc_cleared_simd_clone_stat): Likewise.
22501         * gimple.c (gimple_build_omp_for): Likewise.
22502         (gimple_copy): Likewise.
22503         * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
22504         * toplev.c (realloc_for_line_map): Adjust.
22505         * tree-data-ref.h (lambda_vector_new): Likewise.
22506         * tree-phinodes.c (allocate_phi_node): Likewise.
22507         * tree.c (grow_tree_vec_stat): Likewise.
22508         * vec.h (va_gc::reserve): Adjust.
22509
22510 2014-05-17  Ajit Agarwal  <ajitkum@xilinx.com>
22511
22512         * config/microblaze/microblaze.c (break_handler): New Declaration.
22513         (microblaze_break_function_p,microblaze_is_break_handler): New.
22514         (compute_frame_size): Use microblaze_break_function_p.
22515         Add the test of break_handler.
22516         (microblaze_function_prologue) : Add the test of variable
22517         break_handler.  Check the fnname by BREAK_HANDLER_NAME.
22518         (microblaze_function_epilogue) : Add the test of break_handler.
22519         (microblaze_globalize_label) : Add the test of break_handler.
22520         Check the name by BREAK_HANDLER_NAME.
22521
22522         * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
22523
22524         * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
22525         microblaze_is_break_handler test.
22526         (call_internal1,call_value_intern): Use microblaze_break_function_p.
22527         Use SYMBOL_REF_DECL.
22528
22529         * config/microblaze/microblaze-protos.h
22530         (microblaze_break_function_p,microblaze_is_break_handler):
22531         New Declaration.
22532
22533         * doc/extend.texi (MicroBlaze break_handler Functions): Document
22534         new MicroBlaze break_handler functions.
22535
22536 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
22537
22538         * doc/extend.texi (Size of an asm): Move node text according
22539         to its @menu entry position.
22540
22541 2014-05-17  Marc Glisse  <marc.glisse@inria.fr>
22542
22543         PR tree-optimization/61140
22544         PR tree-optimization/61150
22545         PR tree-optimization/61197
22546         * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
22547
22548 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
22549
22550         * doc/invoke.texi (free): Mention Alpha.  Also enabled at -Os.
22551
22552 2014-05-17  Richard Sandiford  <r.sandiford@uk.ibm.com>
22553
22554         * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
22555         __SIZEOF_INT128__ is defined.
22556
22557 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
22558
22559         * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
22560         (rs6000_delegitimize_address): Use it.
22561
22562 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
22563
22564         * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
22565         inplace argument.  Store the new address in the original MEM when true.
22566         * emit-rtl.c (change_address_1): Likewise.
22567         (adjust_address_1, adjust_automodify_address_1, offset_address):
22568         Update accordingly.
22569         * rtl.h (plus_constant): Add an inplace argument.
22570         * explow.c (plus_constant): Likewise.  Try to reuse the original PLUS
22571         when true.  Avoid generating (plus X (const_int 0)).
22572         * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
22573         in-place.  Pass true to plus_constant.
22574         (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
22575
22576 2014-05-16  Dehao Chen  <dehao@google.com>
22577
22578         * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
22579
22580 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
22581
22582         PR target/54089
22583         * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
22584         patterns.
22585         * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
22586
22587 2014-05-16  Dehao Chen  <dehao@google.com>
22588
22589         * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
22590         optimize_function_for_size_p.
22591         * regs.h (REG_FREQ_FROM_BB): Likewise.
22592
22593 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
22594
22595         PR target/51244
22596         * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
22597         negt_reg_operand cases.
22598         * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
22599         predicate.
22600         * config/sh/predicates.md (cbranch_treg_value): Simplify.
22601
22602 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
22603
22604         * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
22605         target variants.
22606
22607 2014-05-16  David Malcolm  <dmalcolm@redhat.com>
22608
22609         Revert:
22610         2014-04-29  David Malcolm  <dmalcolm@redhat.com>
22611
22612         * tree-cfg.c (dump_function_to_file): Dump the return type of
22613         functions, in a line to itself before the function body, mimicking
22614         the layout of a C function.
22615
22616 2014-05-16  Dehao Chen  <dehao@google.com>
22617
22618         * cfghooks.c (make_forwarder_block): Use direct computation to
22619         get fall-through edge's count and frequency.
22620
22621 2014-05-16  Benno Schulenberg  <bensberg@justemail.net>
22622
22623         * config/arc/arc.c (arc_init): Fix typo in error message.
22624         * config/i386/i386.c (ix86_expand_builtin): Likewise.
22625         (split_stack_prologue_scratch_regno): Likewise.
22626         * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
22627         word from error message.
22628
22629 2014-05-16  Zhouyi Zhou <yizhouzhou@ict.ac.cn>
22630
22631         * ira-costs.c: Fix typo in comment.
22632
22633 2014-05-16  David Wohlferd <dw@LimeGreenSocks.com>
22634
22635         * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
22636
22637 2014-05-16  Jan Hubicka  <hubicka@ucw.cz>
22638
22639         * varpool.c (dump_varpool_node): Dump write-only flag.
22640         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
22641         write-only flag.
22642         * tree-cfg.c (execute_fixup_cfg): Remove statements setting
22643         write-only variables.
22644         * ipa.c (process_references): New function.
22645         (set_readonly_bit): New function.
22646         (set_writeonly_bit): New function.
22647         (clear_addressable_bit): New function.
22648         (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
22649         fix handling of aliases.
22650         * cgraph.h (struct varpool_node): Add writeonly flag.
22651
22652 2014-05-16  Vladimir Makarov  <vmakarov@redhat.com>
22653
22654         PR rtl-optimization/60969
22655         * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
22656         Calculate costs for this case.
22657
22658 2014-05-16  Eric Botcazou  <ebotcazou@adacore.com>
22659
22660         * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
22661         <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
22662
22663 2014-05-16  Richard Biener  <rguenther@suse.de>
22664
22665         PR tree-optimization/61194
22666         * tree-vect-patterns.c (adjust_bool_pattern): Also handle
22667         bool patterns ending in a COND_EXPR.
22668
22669 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
22670
22671         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
22672
22673 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
22674
22675         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
22676         where we were unable to cost an RTX.
22677
22678 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
22679
22680         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
22681         HIGH, LO_SUM.
22682
22683 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
22684             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
22685
22686         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
22687
22688 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
22689             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
22690
22691         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
22692         FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
22693
22694 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
22695             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
22696
22697         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
22698         operators.
22699
22700 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
22701             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
22702
22703         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
22704         DIV/MOD.
22705
22706 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
22707             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
22708
22709         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
22710         (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
22711
22712 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
22713             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
22714
22715         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
22716         rotates and shifts.
22717
22718 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
22719             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
22720
22721         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
22722         ZERO_EXTEND and SIGN_EXTEND better.
22723
22724 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
22725             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
22726
22727         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
22728         logical operations.
22729
22730 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
22731             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
22732
22733         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
22734         costs when costing loads and stores to memory.
22735
22736 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
22737             Philip Tomsich  <philipp.tomsich@theobroma-systems.com>
22738
22739         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
22740         for SET RTX.
22741
22742 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
22743
22744         * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
22745
22746 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
22747             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
22748
22749         * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
22750         to...
22751         (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
22752         well formed.
22753         (aarch64_rtx_mult_cost): New.
22754         (aarch64_rtx_costs): Use it, refactor as appropriate.
22755
22756 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
22757             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
22758
22759         * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
22760         emit instructions, return number of instructions which would
22761         be emitted.
22762         (aarch64_add_constant): Update call to aarch64_build_constant.
22763         (aarch64_output_mi_thunk): Likewise.
22764         (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
22765         a CONST_DOUBLE.
22766
22767 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
22768
22769         * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
22770         (TARGET_RTX_COSTS): Call it.
22771
22772 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
22773
22774         * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
22775         (cortexa57_vector_cost): Likewise.
22776         (cortexa57_tunings): Use them.
22777
22778 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
22779
22780         * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
22781         (cpu_addrcost_table): Use it.
22782         * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
22783         (aarch64_address_cost): Rewrite using aarch64_classify_address,
22784         move it.
22785
22786 2014-05-16  Richard Biener  <rguenther@suse.de>
22787
22788         * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
22789         (set_ssa_val_to): Handle unexpected sets to VN_TOP.
22790         (visit_phi): Ignore edges marked as not executable.
22791         (class cond_dom_walker): New.
22792         (cond_dom_walker::before_dom_children): Value-number
22793         control statements and mark successor edges as not
22794         executable if possible.
22795         (run_scc_vn): First walk all control statements in
22796         dominator order, marking edges as not executable.
22797         * tree-inline.c (copy_edges_for_bb): Be not confused
22798         about random edge flags.
22799
22800 2014-05-16  Richard Biener  <rguenther@suse.de>
22801
22802         * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
22803
22804 2014-05-15  Peter Bergner  <bergner@vnet.ibm.com>
22805
22806         PR target/61193
22807         * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
22808         (__TM_simple_begin): Use it.
22809         (__TM_begin): Likewise.
22810
22811 2014-05-15  Martin Jambor  <mjambor@suse.cz>
22812
22813         PR ipa/61085
22814         * ipa-prop.c (update_indirect_edges_after_inlining): Check
22815         type_preserved flag when the indirect edge is polymorphic.
22816
22817 2014-05-15  Martin Jambor  <mjambor@suse.cz>
22818
22819         PR tree-optimization/61090
22820         * tree-sra.c (sra_modify_expr): Pass the current gsi to
22821         build_ref_for_model.
22822
22823 2014-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22824
22825         * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
22826         enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
22827
22828 2014-05-15  Jakub Jelinek  <jakub@redhat.com>
22829
22830         PR tree-optimization/61158
22831         * fold-const.c (fold_binary_loc): If X is zero-extended and
22832         shiftc >= prec, make sure zerobits is all ones instead of
22833         invoking undefined behavior.
22834
22835 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
22836
22837         * regcprop.h: New file.
22838         * regcprop.c (skip_debug_insn_p): New decl.
22839         (replace_oldest_value_reg): Check skip_debug_insn_p.
22840         (copyprop_hardreg_forward_bb_without_debug_insn): New function.
22841         * shrink-wrap.c: Include regcprop.h.
22842         (prepare_shrink_wrap): Call
22843         copyprop_hardreg_forward_bb_without_debug_insn.
22844
22845 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
22846
22847         * shrink-wrap.h: Update comment.
22848         * shrink-wrap.c: Update comment.
22849         (next_block_for_reg): Rename to live_edge_for_reg.
22850         (live_edge_for_reg): Allow live_edge->dest has two predecessors.
22851         (move_insn_for_shrink_wrap): Split live_edge.
22852         (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
22853
22854 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
22855
22856         * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
22857         Delete.
22858         * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
22859         * config/sparc/sparc.md (fptype_ut699): New attribute.
22860         (in_branch_delay): Return false if -mfix-ut699 is specified and
22861         fptype_ut699 is set to single.
22862         (truncdfsf2): Add fptype_ut699 attribute.
22863         (fix_truncdfsi2): Likewise.
22864         (floatsisf2): Change fptype attribute.
22865         (fix_truncsfsi2): Likewise.
22866         (negtf2_notv9): Delete.
22867         (negtf2_v9): Likewise.
22868         (negtf2_hq): New instruction.
22869         (negtf2): New instruction and splitter.
22870         (negdf2_notv9): Rewrite.
22871         (abstf2_notv9): Delete.
22872         (abstf2_hq_v9): Likewise.
22873         (abstf2_v9): Likewise.
22874         (abstf2_hq): New instruction.
22875         (abstf2): New instruction and splitter.
22876         (absdf2_notv9): Rewrite.
22877
22878 2014-05-14  Cary Coutant  <ccoutant@google.com>
22879
22880         PR debug/61013
22881         * opts.c (common_handle_option): Don't special-case "-g".
22882         (set_debug_level): Default to at least level 2 with "-g".
22883
22884 2014-05-14  DJ Delorie  <dj@redhat.com>
22885
22886         * config/msp430/msp430.c (msp430_builtin): Add
22887         MSP430_BUILTIN_DELAY_CYCLES.
22888         (msp430_init_builtins): Register void __delay_cycles(long long).
22889         (msp430_builtin_decl): Add it.
22890         (cg_magic_constant): New.
22891         (msp430_expand_delay_cycles): New.
22892         (msp430_expand_builtin): Call it.
22893         (msp430_print_operand_raw): Change integer printing from "int" to
22894         HOST_WIDE_INT.
22895         * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
22896         (delay_cycles_start): New.
22897         (delay_cycles_end): New.
22898         (delay_cycles_32): New.
22899         (delay_cycles_32x): New.
22900         (delay_cycles_16): New.
22901         (delay_cycles_16x): New.
22902         (delay_cycles_2): New.
22903         (delay_cycles_1): New.
22904         * doc/extend.texi: Document __delay_cycles().
22905
22906 2014-05-14  Sandra Loosemore  <sandra@codesourcery.com>
22907
22908         * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
22909         length attribute computation.
22910
22911 2014-05-14  Richard Sandiford  <rdsandiford@googlemail.com>
22912
22913         PR debug/61188
22914         * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
22915
22916 2014-05-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
22917
22918         PR target/61084
22919         * config/sparc/sparc.md: Fix types of low and high in DI constant
22920         splitter.  Use gen_int_mode in some other splitters.
22921
22922 2014-05-14  Martin Jambor  <mjambor@suse.cz>
22923
22924         PR ipa/60897
22925         * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
22926
22927 2014-05-14  James Norris  <jnorris@codesourcery.com>
22928
22929         * omp-low.c (expand_parallel_call): Remove shadow variable.
22930         (expand_omp_taskreg): Likewise.
22931
22932 2014-05-14  Ilya Tocar  <ilya.tocar@intel.com>
22933
22934         * common/config/i386/i386-common.c
22935         (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
22936         (OPTION_MASK_ISA_XSAVES_SET): Ditto.
22937         (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
22938         (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
22939         (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
22940         (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
22941         (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
22942         * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
22943         xsavecintrin.h, xsavesintrin.h.
22944         (x86_64-*-*): Ditto.
22945         * config/i386/clflushoptintrin.h: New.
22946         * config/i386/xsavecintrin.h: Ditto.
22947         * config/i386/xsavesintrin.h: Ditto.
22948         * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
22949         (bit_XSAVES): Ditto.
22950         (bit_XSAVES): Ditto.
22951         * config/i386/driver-i386.c (host_detect_local_cpu): Handle
22952         -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
22953         -mno-clflushopt.
22954         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
22955         OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
22956         OPTION_MASK_ISA_XSAVES.
22957         * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
22958         -mxsavec, -mxsaves.
22959         (PTA_CLFLUSHOPT) Define.
22960         (PTA_XSAVEC): Ditto.
22961         (PTA_XSAVES): Ditto.
22962         (ix86_option_override_internal): Handle new options.
22963         (ix86_valid_target_attribute_inner_p): Ditto.
22964         (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
22965         IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
22966         IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
22967         (bdesc_special_args): Add __builtin_ia32_xsaves,
22968         __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
22969         __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
22970         (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
22971         (ix86_expand_builtin): Handle new builtins.
22972         * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
22973         (TARGET_CLFLUSHOPT_P): Ditto.
22974         (TARGET_XSAVEC): Ditto.
22975         (TARGET_XSAVEC_P): Ditto.
22976         (TARGET_XSAVES): Ditto.
22977         (TARGET_XSAVES_P): Ditto.
22978         * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
22979         (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
22980         (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
22981         (ANY_XRSTOR): New.
22982         (ANY_XRSTOR64): Ditto.
22983         (xrstor): Ditto.
22984         (xrstor): Change into <xrstor>.
22985         (xrstor_rex64): Change into <xrstor>_rex64.
22986         (xrstor64): Change into <xrstor>64
22987         (clflushopt): New.
22988         * config/i386/i386.opt (mclflushopt): New.
22989         (mxsavec): Ditto.
22990         (mxsaves): Ditto.
22991         * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
22992         xsavecintrin.h.
22993         * doc/invoke.texi: Document new options.
22994
22995 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
22996
22997         PR rtl-optimization/60866
22998         * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
22999         Default it to -1.  Pass it down to init_simplejump_data.
23000         (init_simplejump_data): New parameter old_seqno.  Pass it down
23001         to get_seqno_for_a_jump.
23002         (get_seqno_for_a_jump): New parameter old_seqno.  Use it for
23003         initializing new jump seqno as a last resort.  Add comment.
23004         (sel_redirect_edge_and_branch): Save old seqno of the conditional
23005         jump and pass it down to sel_init_new_insn.
23006         (sel_redirect_edge_and_branch_force): Likewise.
23007
23008 2014-05-14  Georg-Johann Lay  <avr@gjlay.de>
23009
23010         * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
23011         shifted values to avoid build warning.
23012
23013 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
23014
23015         * cfgcleanup.c (try_forward_edges): Use location_t for locations.
23016         * cfgrtl.c (rtl_merge_blocks): Fix comment.
23017         (cfg_layout_merge_blocks): Likewise.
23018         * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
23019
23020 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
23021
23022         PR rtl-optimization/60901
23023         * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
23024         bb predecessor belongs to the same scheduling region.  Adjust comment.
23025
23026 2014-05-13  Peter Bergner  <bergner@vnet.ibm.com>
23027
23028         * doc/sourcebuild.texi: (dfp_hw): Document.
23029         (p8vector_hw): Likewise.
23030         (powerpc_eabi_ok): Likewise.
23031         (powerpc_elfv2): Likewise.
23032         (powerpc_htm_ok): Likewise.
23033         (ppc_recip_hw): Likewise.
23034         (vsx_hw): Likewise.
23035
23036 2014-05-13  Cary Coutant  <ccoutant@google.com>
23037
23038         * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
23039
23040 2014-05-13  David Malcolm  <dmalcolm@redhat.com>
23041
23042         * gengtype-parse.c (require3): Eliminate in favor of...
23043         (require4): New.
23044         (require_template_declaration): Update to support optional single *
23045         on a type.
23046
23047         * gengtype.c (get_ultimate_base_class): Add a non-const overload.
23048         (create_user_defined_type): Handle a single level of explicit
23049         pointerness within template arguments.
23050         (struct write_types_data): Add field "kind".
23051         (filter_type_name): Handle "*" character.
23052         (write_user_func_for_structure_ptr): Require a write_types_data
23053         rather than just a prefix string, so that we can look up the kind
23054         of the wtd and use it as an index into wrote_user_func_for_ptr,
23055         ensuring that such functions are written at most once.  Support
23056         subclasses by invoking the marking function of the ultimate base class.
23057         (write_user_func_for_structure_body): Require a write_types_data
23058         rather than just a prefix string, so that we can pass this to
23059         write_user_func_for_structure_ptr.
23060         (write_func_for_structure): Likewise.
23061         (ggc_wtd): Add initializer of new "kind" field.
23062         (pch_wtd): Likewise.
23063
23064         * gengtype.h (enum write_types_kinds): New.
23065         (struct type): Add field wrote_user_func_for_ptr to the "s"
23066         union member.
23067
23068 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
23069
23070         * fold-const.c (optimize_bit_field_compare): Use wi:: operations
23071         instead of const_binop.
23072         (fold_binary_loc): Likewise.
23073
23074 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
23075
23076         * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
23077         calculation to match get_ref_base_and_extent.
23078
23079 2014-05-13  Catherine Moore  <clm@codesourcery.com>
23080             Sandra Loosemore  <sandra@codesourcery.com>
23081
23082         * configure.ac: Fix assembly for explicit JALR relocation check.
23083         * configure: Regenerate.
23084
23085 2014-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23086
23087         * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
23088         (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
23089         Remove associated type declarations and initialisations.
23090         (arm_expand_neon_builtin): Likewise.
23091         (neon_emit_pair_result_insn): Delete.
23092         * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
23093         * config/arm/neon.md (neon_vtrn<mode>): Delete.
23094         (neon_vzip<mode>): Likewise.
23095         (neon_vuzp<mode>): Likewise.
23096
23097 2014-05-13  Richard Biener  <rguenther@suse.de>
23098
23099         PR ipa/60973
23100         * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
23101         it needs revisiting whether the call still may be tail-called.
23102
23103 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
23104
23105         * rtl.def (SYMBOL_REF): Remove middle "0" field.
23106         * rtl.h (block_symbol): Reduce number of fields to 2.
23107         (rtx_def): Add u2.symbol_ref_flags.
23108         (SYMBOL_REF_FLAGS): Use it.
23109         (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
23110         (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
23111         * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
23112         Lower index of SYMBOL_REF_DATA.
23113         * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
23114         Print SYMBOL_REF_FLAGS at the same time.
23115         * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
23116
23117 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
23118
23119         * rtl.def (VAR_LOCATION): Remove "i" field.
23120         * rtl.h (rtx_def): Add u2.var_location_status.
23121         (PAT_VAR_LOCATION_STATUS): Use it.
23122         (gen_rtx_VAR_LOCATION): Declare.
23123         * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
23124         * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
23125         * var-tracking.c (emit_note_insn_var_location): Remove casts.
23126
23127 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
23128
23129         * rtl.def (scratch): Fix outdated comment and remove "0" field.
23130         * gengtype.c (adjust_field_rtx_def): Update accordingly.
23131
23132 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
23133
23134         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
23135         (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
23136         * rtl.h (rtx_def): Add insn_uid to u2 field.
23137         (RTX_FLAG_CHECK8): Delete in favor of...
23138         (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
23139         (INSN_DELETED_P): Update accordingly.
23140         (INSN_UID): Use u2.insn_uid.
23141         (INSN_CHAIN_CODE_P): Define.
23142         (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
23143         (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
23144         (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
23145         (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
23146         (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
23147         indices accordingly.
23148         * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
23149         Update indices for insn-chain rtxes.
23150         * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
23151         (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
23152         * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
23153         * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
23154         * combine.c (try_combine): Likewise.
23155         * ira.c (setup_prohibited_mode_move_regs): Likewise.
23156
23157 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
23158
23159         * rtl.def (REG): Remove middle field.
23160         * rtl.h (rtx_def): Add orignal_regno to u2.
23161         (ORIGINAL_REGNO): Use it instead of field 1.
23162         (REG_ATTRS): Lower field index accordingly.
23163         * gengtype.c (adjust_field_rtx_def): Remove handling of
23164         ORIGINAL_REGNO.  Move REG_ATTRS index down.
23165         * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
23166         code that prints the REGNO.
23167
23168 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
23169
23170         * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
23171         GENERATOR_FILE.
23172
23173 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
23174
23175         * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
23176
23177 2014-05-13  Bin Cheng  <bin.cheng@arm.com>
23178
23179         * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
23180         (alloc_iv): Lower base expressions containing ADDR_EXPR.
23181
23182 2014-05-13  Ian Bolton  <ian.bolton@arm.com>
23183
23184         * config/aarch64/aarch64-protos.h
23185         (aarch64_hard_regno_caller_save_mode): New prototype.
23186         * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
23187         New function.
23188         * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
23189
23190 2014-05-13  Christian Bruel  <christian.bruel@st.com>
23191
23192         * target.def (mode_switching): New hook vector.
23193         (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
23194         (mode_exit, modepriority_to_mode): Likewise.
23195         * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
23196         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
23197         * target.h: Include tm.h and hard-reg-set.h.
23198         * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
23199         (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
23200         * doc/tm.texi Regenerate.
23201         * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
23202         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
23203         * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
23204         (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
23205         * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
23206         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
23207         * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
23208         (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
23209         * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
23210         (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
23211         (ix86_emit_mode_set): Hookify.
23212         * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
23213         Delete.
23214         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
23215         * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
23216         (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
23217         (epiphany_mode_priority_to_mode): Remove declaration.
23218         * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
23219         (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
23220         (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
23221         Likewise.
23222         (epiphany_mode_priority_to_mode): Change priority type.  Hookify.
23223         (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
23224         (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
23225
23226 2014-05-13  Jakub Jelinek  <jakub@redhat.com>
23227
23228         PR target/61060
23229         * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
23230         is const0_rtx, return immediately.  Don't test count == 0 when
23231         it is always true.
23232
23233 2014-05-13  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
23234
23235         * Makefile.in: add shrink-wrap.o.
23236         * config/i386/i386.c: include "shrink-wrap.h"
23237         * function.c: Likewise.
23238         (requires_stack_frame_p, next_block_for_reg,
23239         move_insn_for_shrink_wrap, prepare_shrink_wrap,
23240         dup_block_and_redirect): Move to shrink-wrap.c
23241         (thread_prologue_and_epilogue_insns): Extract three code segments
23242         as functions in shrink-wrap.c
23243         * function.h: Move #ifdef HAVE_simple_return ... #endif block to
23244         shrink-wrap.h
23245         * shrink-wrap.c: New file.
23246         * shrink-wrap.h: New file.
23247
23248 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
23249
23250         * doc/extend.texi: Reflect current numbers of pragmas.  Remove
23251         reference to Solaris.
23252
23253 2014-05-12  Mike Stump  <mikestump@comcast.net>
23254
23255         PR other/31778
23256         * genattrtab.c (filename): Add.
23257         (convert_set_attr_alternative): Improve error message.
23258         (check_defs): Restore read_md_filename for error messages.
23259         (gen_insn): Save filename.
23260
23261 2014-05-12  Dimitris Papavasiliou  <dpapavas@gmail.com>
23262
23263         * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
23264         -fno-local-ivars and -fivar-visibility.
23265         * c-family/c.opt: Make -Wshadow also implicitly enable
23266         -Wshadow-ivar.
23267
23268 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
23269
23270         * doc/tm.texi: Remove reference to deleted macro.
23271         * doc/tm.texi.in: Likewise.
23272
23273 2014-05-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
23274
23275         PR target/60991
23276         * config/avr/avr.c (avr_out_store_psi): Use correct constant
23277         to restore Y.
23278
23279 2014-05-12  Georg-Johann Lay  <avr@gjlay.de>
23280
23281         PR libgcc/61152
23282         * config/arm/arm.h (License): Add GCC Runtime Library Exception.
23283         * config/arm/aout.h (License): Same.
23284         * config/arm/bpabi.h (License): Same.
23285         * config/arm/elf.h (License): Same.
23286         * config/arm/linux-elf.h (License): Same.
23287         * config/arm/linux-gas.h (License): Same.
23288         * config/arm/netbsd-elf.h (License): Same.
23289         * config/arm/uclinux-eabi.h (License): Same.
23290         * config/arm/uclinux-elf.h (License): Same.
23291         * config/arm/vxworks.h (License): Same.
23292
23293 2014-05-11  Jakub Jelinek  <jakub@redhat.com>
23294
23295         * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
23296         * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
23297         number of operands to 3.
23298         (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
23299         * tree-nested.c (convert_nonlocal_omp_clauses,
23300         convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
23301         * gimplify.c (gimplify_scan_omp_clauses): Handle
23302         OMP_CLAUSE_LINEAR_STMT.
23303         * omp-low.c (lower_rec_input_clauses): Fix typo.
23304         (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
23305         cast between Fortran boolean_type_node and C _Bool if
23306         needed.
23307
23308 2014-05-11  Richard Sandiford  <rdsandiford@googlemail.com>
23309
23310         PR tree-optimization/61136
23311         * wide-int.h (multiple_of_p): Define a version that doesn't return
23312         the quotient.
23313         * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
23314         integer_zerop/const_binop pair.
23315         (multiple_of_p): Likewise, converting both operands to widest_int
23316         precision.
23317
23318 2014-05-09  Teresa Johnson  <tejohnson@google.com>
23319
23320         * cgraphunit.c (analyze_functions): Use correct dump file.
23321
23322 2014-05-09  Florian Weimer  <fweimer@redhat.com>
23323
23324         * cfgexpand.c (stack_protect_decl_p): New function, extracted from
23325         expand_used_vars.
23326         (stack_protect_return_slot_p): New function.
23327         (expand_used_vars): Call stack_protect_decl_p and
23328         stack_protect_return_slot_p for -fstack-protector-strong.
23329
23330 2014-05-09  David Wohlferd <LimeGreenSocks@yahoo.com>
23331         Andrew Haley <aph@redhat.com>
23332         Richard Sandiford <rdsandiford@googlemail.com>
23333
23334         * doc/extend.texi: Rewrite inline asm page / re-org asm-related
23335         pages.
23336
23337 2014-05-09  Kenneth Zadeck  <zadeck@naturalbridge.com>
23338
23339         PR middle-end/61111
23340         * fold-const.c (fold_binary_loc): Changed width of mask.
23341
23342 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
23343
23344         * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
23345         unsigned int initializers for regno_in, regno_out.
23346
23347 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
23348
23349         PR target/61055
23350         * config/avr/avr.md (cc): Add new attribute set_vzn.
23351         (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
23352         Set cc insn attribute to set_vzn instead of set_zn for alternatives
23353         with INC, DEC or NEG.
23354         * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
23355         (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
23356         INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
23357
23358 2014-05-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23359
23360         Revert:
23361         2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23362
23363         * wide-int.cc (UTItype): Define.
23364         (UDWtype): Define for appropriate W_TYPE_SIZE.
23365
23366 2014-05-09  Richard Biener  <rguenther@suse.de>
23367
23368         * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
23369         * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
23370         (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
23371         (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
23372         ssa_propagate): Adjust.
23373
23374 2014-05-08  Jeff Law  <law@redhat.com>
23375
23376         PR tree-optimization/61009
23377         * tree-ssa-threadedge.c (thread_through_normal_block): Return a
23378         tri-state rather than a boolean.  When a block is too big to
23379         thread through, inform caller via negative return value.
23380         (thread_across_edge): If a block was too big for normal threading,
23381         then it's too big for a joiner too, so remove temporary equivalences
23382         and return immediately.
23383
23384 2014-05-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23385             Matthias Klose  <doko@ubuntu.com>
23386
23387         PR driver/61106
23388         * optc-gen.awk: Fix option handling for -Wunused-parameter.
23389
23390 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
23391
23392         PR target/59952
23393         * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
23394
23395 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
23396
23397         PR target/61092
23398         * config/alpha/alpha.c: Include gimple-iterator.h.
23399         (alpha_gimple_fold_builtin): New function.  Move
23400         ALPHA_BUILTIN_UMULH folding from ...
23401         (alpha_fold_builtin): ... here.
23402         (TARGET_GIMPLE_FOLD_BUILTIN): New define.
23403
23404 2014-05-08  Wei Mi  <wmi@google.com>
23405
23406         PR target/58066
23407         * config/i386/i386.c (ix86_compute_frame_layout): Update
23408         preferred_stack_boundary for call, expanded from tls descriptor.
23409         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
23410         to depend on SP register.
23411         (*tls_local_dynamic_base_32_gnu): Ditto.
23412         (*tls_local_dynamic_32_once): Ditto.
23413         (tls_global_dynamic_64_<mode>): Set
23414         ix86_tls_descriptor_calls_expanded_in_cfun.
23415         (tls_local_dynamic_base_64_<mode>): Ditto.
23416         (tls_global_dynamic_32): Set
23417         ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
23418         to depend on SP register.
23419         (tls_local_dynamic_base_32): Ditto.
23420
23421 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23422
23423         * config/arm/arm_neon.h: Update comment.
23424         * config/arm/neon-docgen.ml: Delete.
23425         * config/arm/neon-gen.ml: Delete.
23426         * doc/arm-neon-intrinsics.texi: Update comment.
23427
23428 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23429
23430         * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
23431         and v4sf versions.
23432         (vand, vorr, veor, vorn, vbic): Remove.
23433         * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
23434         iterator.
23435         (neon_vsub_unspec): Likewise.
23436         (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
23437
23438 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23439
23440         * config/arm/arm_neon.h (vadd_s8): GNU C implementation
23441         (vadd_s16): Likewise.
23442         (vadd_s32): Likewise.
23443         (vadd_f32): Likewise.
23444         (vadd_u8): Likewise.
23445         (vadd_u16): Likewise.
23446         (vadd_u32): Likewise.
23447         (vadd_s64): Likewise.
23448         (vadd_u64): Likewise.
23449         (vaddq_s8): Likewise.
23450         (vaddq_s16): Likewise.
23451         (vaddq_s32): Likewise.
23452         (vaddq_s64): Likewise.
23453         (vaddq_f32): Likewise.
23454         (vaddq_u8): Likewise.
23455         (vaddq_u16): Likewise.
23456         (vaddq_u32): Likewise.
23457         (vaddq_u64): Likewise.
23458         (vmul_s8): Likewise.
23459         (vmul_s16): Likewise.
23460         (vmul_s32): Likewise.
23461         (vmul_f32): Likewise.
23462         (vmul_u8): Likewise.
23463         (vmul_u16): Likewise.
23464         (vmul_u32): Likewise.
23465         (vmul_p8): Likewise.
23466         (vmulq_s8): Likewise.
23467         (vmulq_s16): Likewise.
23468         (vmulq_s32): Likewise.
23469         (vmulq_f32): Likewise.
23470         (vmulq_u8): Likewise.
23471         (vmulq_u16): Likewise.
23472         (vmulq_u32): Likewise.
23473         (vsub_s8): Likewise.
23474         (vsub_s16): Likewise.
23475         (vsub_s32): Likewise.
23476         (vsub_f32): Likewise.
23477         (vsub_u8): Likewise.
23478         (vsub_u16): Likewise.
23479         (vsub_u32): Likewise.
23480         (vsub_s64): Likewise.
23481         (vsub_u64): Likewise.
23482         (vsubq_s8): Likewise.
23483         (vsubq_s16): Likewise.
23484         (vsubq_s32): Likewise.
23485         (vsubq_s64): Likewise.
23486         (vsubq_f32): Likewise.
23487         (vsubq_u8): Likewise.
23488         (vsubq_u16): Likewise.
23489         (vsubq_u32): Likewise.
23490         (vsubq_u64): Likewise.
23491         (vand_s8): Likewise.
23492         (vand_s16): Likewise.
23493         (vand_s32): Likewise.
23494         (vand_u8): Likewise.
23495         (vand_u16): Likewise.
23496         (vand_u32): Likewise.
23497         (vand_s64): Likewise.
23498         (vand_u64): Likewise.
23499         (vandq_s8): Likewise.
23500         (vandq_s16): Likewise.
23501         (vandq_s32): Likewise.
23502         (vandq_s64): Likewise.
23503         (vandq_u8): Likewise.
23504         (vandq_u16): Likewise.
23505         (vandq_u32): Likewise.
23506         (vandq_u64): Likewise.
23507         (vorr_s8): Likewise.
23508         (vorr_s16): Likewise.
23509         (vorr_s32): Likewise.
23510         (vorr_u8): Likewise.
23511         (vorr_u16): Likewise.
23512         (vorr_u32): Likewise.
23513         (vorr_s64): Likewise.
23514         (vorr_u64): Likewise.
23515         (vorrq_s8): Likewise.
23516         (vorrq_s16): Likewise.
23517         (vorrq_s32): Likewise.
23518         (vorrq_s64): Likewise.
23519         (vorrq_u8): Likewise.
23520         (vorrq_u16): Likewise.
23521         (vorrq_u32): Likewise.
23522         (vorrq_u64): Likewise.
23523         (veor_s8): Likewise.
23524         (veor_s16): Likewise.
23525         (veor_s32): Likewise.
23526         (veor_u8): Likewise.
23527         (veor_u16): Likewise.
23528         (veor_u32): Likewise.
23529         (veor_s64): Likewise.
23530         (veor_u64): Likewise.
23531         (veorq_s8): Likewise.
23532         (veorq_s16): Likewise.
23533         (veorq_s32): Likewise.
23534         (veorq_s64): Likewise.
23535         (veorq_u8): Likewise.
23536         (veorq_u16): Likewise.
23537         (veorq_u32): Likewise.
23538         (veorq_u64): Likewise.
23539         (vbic_s8): Likewise.
23540         (vbic_s16): Likewise.
23541         (vbic_s32): Likewise.
23542         (vbic_u8): Likewise.
23543         (vbic_u16): Likewise.
23544         (vbic_u32): Likewise.
23545         (vbic_s64): Likewise.
23546         (vbic_u64): Likewise.
23547         (vbicq_s8): Likewise.
23548         (vbicq_s16): Likewise.
23549         (vbicq_s32): Likewise.
23550         (vbicq_s64): Likewise.
23551         (vbicq_u8): Likewise.
23552         (vbicq_u16): Likewise.
23553         (vbicq_u32): Likewise.
23554         (vbicq_u64): Likewise.
23555         (vorn_s8): Likewise.
23556         (vorn_s16): Likewise.
23557         (vorn_s32): Likewise.
23558         (vorn_u8): Likewise.
23559         (vorn_u16): Likewise.
23560         (vorn_u32): Likewise.
23561         (vorn_s64): Likewise.
23562         (vorn_u64): Likewise.
23563         (vornq_s8): Likewise.
23564         (vornq_s16): Likewise.
23565         (vornq_s32): Likewise.
23566         (vornq_s64): Likewise.
23567         (vornq_u8): Likewise.
23568         (vornq_u16): Likewise.
23569         (vornq_u32): Likewise.
23570         (vornq_u64): Likewise.
23571
23572 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23573
23574         * wide-int.cc (UTItype): Define.
23575         (UDWtype): Define for appropriate W_TYPE_SIZE.
23576
23577 2014-05-08  Marc Glisse  <marc.glisse@inria.fr>
23578
23579         PR tree-optimization/59100
23580         * tree-ssa-phiopt.c: Include tree-inline.h.
23581         (neutral_element_p, absorbing_element_p): New functions.
23582         (value_replacement): Handle conditional binary operations with a
23583         neutral or absorbing element.
23584
23585 2014-05-08  Richard Biener  <rguenther@suse.de>
23586
23587         * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
23588         folding the expression.
23589         (valueize_expr): Remove.
23590         (visit_reference_op_load): Do not valueize the result of
23591         vn_get_expr_for.
23592         (simplify_binary_expression): Likewise.
23593         (simplify_unary_expression): Likewise.
23594
23595 2014-05-08  Richard Biener  <rguenther@suse.de>
23596
23597         * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
23598         looking at TYPE_ARG_TYPES.
23599
23600 2014-05-08  Richard Biener  <rguenther@suse.de>
23601
23602         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
23603         pointer propagation special-case.
23604
23605 2014-05-08  Bin Cheng  <bin.cheng@arm.com>
23606
23607         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
23608         core part of address expressions.
23609
23610 2014-05-08  Alan Modra  <amodra@gmail.com>
23611
23612         PR target/60737
23613         * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
23614         loads and stores when -mno-strict-align at any alignment.
23615         (expand_block_clear): Similarly.  Also correct calculation of
23616         instruction count.
23617
23618 2014-05-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
23619
23620         PR middle-end/39246
23621         * tree-complex.c (expand_complex_move): Keep line info when expanding
23622         complex move.
23623         * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
23624         of complex expression. Use new argument to display correct location
23625         for values coming from phi statement.
23626         (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
23627         (warn_uninitialized_phi): Pass location of phi argument to
23628         warn_uninit.
23629         * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
23630         COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
23631
23632 2014-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
23633
23634         * config/rs6000/predicates.md (indexed_address_mem): New.
23635         * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
23636         load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
23637         fpstore_ux, fpstore_u.
23638         (sign_extend, indexed, update): New.
23639         (cell_micro): Adjust.
23640         (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
23641         *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
23642         *movsi_internal1, *movsi_internal1_single, *movhi_internal,
23643         *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
23644         *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
23645         *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
23646         *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
23647         *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
23648         *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
23649         *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
23650         *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
23651         *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
23652         *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
23653         *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
23654         *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
23655
23656         * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
23657         * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
23658         *vsx_extract_<mode>_store): Adjust.
23659         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
23660         is_cracked_insn, insn_must_be_first_in_group,
23661         insn_must_be_last_in_group): Adjust.
23662
23663         * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
23664         Adjust.
23665         * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
23666         ppc440-fpstore): Adjust.
23667         * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
23668         ppc476-fpstore): Adjust.
23669         * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
23670         ppc601-fpstore): Adjust.
23671         * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
23672         Adjust.
23673         * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
23674         Adjust.
23675         * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
23676         ppc7450-fpstore): Adjust.
23677         * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
23678         * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
23679         * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
23680         Adjust.
23681         * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
23682         cell-fpload, cell-fpload-update, cell-store, cell-store-update,
23683         cell-fpstore, cell-fpstore-update): Adjust.
23684         * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
23685         ppce300c3_store, ppce300c3_fpstore): Adjust.
23686         * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
23687         e500mc_fpstore): Adjust.
23688         * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
23689         e500mc64_store, e500mc64_fpstore): Adjust.
23690         * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
23691         e5500_fpstore): Adjust.
23692         * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
23693         e6500_fpstore): Adjust.
23694         * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
23695         Adjust.
23696         * config/rs6000/power4.md (power4-load, power4-load-ext,
23697         power4-load-ext-update, power4-load-ext-update-indexed,
23698         power4-load-update-indexed, power4-load-update, power4-fpload,
23699         power4-fpload-update, power4-store, power4-store-update,
23700         power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
23701         Adjust.
23702         * config/rs6000/power5.md (power5-load, power5-load-ext,
23703         power5-load-ext-update, power5-load-ext-update-indexed,
23704         power5-load-update-indexed, power5-load-update, power5-fpload,
23705         power5-fpload-update, power5-store, power5-store-update,
23706         power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
23707         Adjust.
23708         * config/rs6000/power6.md (power6-load, power6-load-ext,
23709         power6-load-update, power6-load-update-indexed,
23710         power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
23711         power6-fpload-update, power6-store, power6-store-update,
23712         power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
23713         Adjust.
23714         * config/rs6000/power7.md (power7-load, power7-load-ext,
23715         power7-load-update, power7-load-update-indexed,
23716         power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
23717         power7-fpload-update, power7-store, power7-store-update,
23718         power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
23719         Adjust.
23720         * config/rs6000/power8.md (power8-load, power8-load-update,
23721         power8-load-ext, power8-load-ext-update, power8-fpload,
23722         power8-fpload-update, power8-store, power8-store-update-indexed,
23723         power8-fpstore, power8-fpstore-update): Adjust.
23724         * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
23725         Adjust.
23726         * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
23727         titan_lsu_store, titan_lsu_fpstore): Adjust.
23728         * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
23729
23730 2014-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
23731
23732         PR target/60884
23733         * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
23734         unrolled byte insns.  Emit address increments after move insns.
23735
23736 2014-05-07  David Malcolm  <dmalcolm@redhat.com>
23737
23738         * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
23739         const_gimple, rather than a gimple.
23740         (gimple_call_builtin_p): Likewise, for the three variants.
23741
23742         * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
23743         (gimple_call_builtin_p): Likewise, for the three variants.
23744
23745 2014-05-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
23746
23747         PR tree-optimization/61095
23748         * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
23749
23750 2014-05-07  Richard Biener  <rguenther@suse.de>
23751
23752         PR tree-optimization/61034
23753         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
23754         (maybe_skip_until): Use translate to take into account
23755         lattices when trying to do disambiguations.
23756         (get_continuation_for_phi_1): Likewise.
23757         (get_continuation_for_phi): Adjust for added translate arguments.
23758         (walk_non_aliased_vuses): Likewise.
23759         * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
23760         (walk_non_aliased_vuses): Likewise.
23761         (call_may_clobber_ref_p_1): Declare.
23762         * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
23763         calls.  Stop early if we are only supposed to disambiguate.
23764         * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
23765
23766 2014-05-07  Joern Rennecke  <joern.rennecke@embecosm.com>
23767
23768         * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
23769         Emit an error when the function has arguments.
23770
23771 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
23772
23773         * cfgloop.h (unswitch_loops): Remove.
23774         * doc/passes.texi: Remove references to loop-unswitch.c
23775         * timevar.def (TV_LOOP_UNSWITCH): Remove.
23776
23777 2014-05-07  Evgeny Stupachenko  <evstupac@gmail.com>
23778
23779         * tree-vect-data-refs.c (vect_grouped_load_supported): New
23780         check for loads group of length 3.
23781         (vect_permute_load_chain): New permutations for loads group of
23782         length 3.
23783         * tree-vect-stmts.c (vect_model_load_cost): Change cost
23784         of vec_perm_shuffle for the new permutations.
23785
23786 2014-05-07  Alan Lawrence  <alan.lawrence@arm.com>
23787
23788         * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
23789         vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
23790         vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
23791         vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
23792         vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
23793         vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
23794         vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
23795         vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
23796
23797 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
23798
23799         * loop-unswitch.c: Delete.
23800
23801 2014-05-07  Richard Biener  <rguenther@suse.de>
23802
23803         * config.gcc: Always set need_64bit_hwint to yes.
23804
23805 2014-05-07  Chung-Ju Wu  <jasonwucj@gmail.com>
23806
23807         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
23808         of using optimize_size.
23809
23810 2014-05-06  Mike Stump  <mikestump@comcast.net>
23811
23812         * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
23813
23814 2014-05-06  Joseph Myers  <joseph@codesourcery.com>
23815
23816         * config/i386/sse.md (*mov<mode>_internal)
23817         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
23818         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
23819         (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
23820         (*<code><mode>3, *andnot<mode>3<mask_name>)
23821         (<mask_codefor><code><mode>3<mask_name>): Only consider
23822         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
23823
23824 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
23825
23826         Revert:
23827         2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
23828
23829         * lra-constraints.c (valid_address_p): Move earlier in file.
23830         Add a constraint argument to the address_info version.
23831         (satisfies_memory_constraint_p): New function.
23832         (satisfies_address_constraint_p): Likewise.
23833         (process_alt_operands, curr_insn_transform): Use them.
23834         (process_address): Pass the constraint to valid_address_p when
23835         checking address operands.
23836
23837 2014-05-06  Richard Sandiford  <r.sandiford@uk.ibm.com>
23838
23839         * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
23840         to their respective blocks.  Fix inadvertent use of "node".
23841
23842 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
23843
23844         * emit-rtl.c (init_derived_machine_modes): New functionm, split
23845         out from...
23846         (init_emit_once): ...here.
23847         * rtl.h (init_derived_machine_modes): Declare.
23848         * toplev.c (do_compile): Call it even if no_backend.
23849
23850 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
23851             Mike Stump  <mikestump@comcast.net>
23852             Richard Sandiford  <rdsandiford@googlemail.com>
23853             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23854
23855         * alias.c (ao_ref_from_mem): Use wide-int interfaces.
23856         (rtx_equal_for_memref_p): Update comment.
23857         (adjust_offset_for_component_ref): Use wide-int interfaces.
23858         * builtins.c (get_object_alignment_2): Likewise.
23859         (c_readstr): Likewise.
23860         (target_char_cast): Add comment.
23861         (determine_block_size): Use wide-int interfaces.
23862         (expand_builtin_signbit): Likewise.
23863         (fold_builtin_int_roundingfn): Likewise.
23864         (fold_builtin_bitop): Likewise.
23865         (fold_builtin_bswap): Likewise.
23866         (fold_builtin_logarithm): Use signop.
23867         (fold_builtin_pow): Likewise.
23868         (fold_builtin_memory_op): Use wide-int interfaces.
23869         (fold_builtin_object_size): Likewise.
23870         * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
23871         nb_iterations_estimate.
23872         (record_niter_bound): Use wide-int interfaces.
23873         (get_estimated_loop_iterations_int): Likewise.
23874         (get_estimated_loop_iterations): Likewise.
23875         (get_max_loop_iterations): Likewise.
23876         * cfgloop.h: Include wide-int.h.
23877         (struct nb_iter_bound): Change bound to widest_int.
23878         (struct loop): Change nb_iterations_upper_bound and
23879         nb_iterations_estimate to widest_int.
23880         (record_niter_bound): Switch to use widest_int.
23881         (get_estimated_loop_iterations): Likewise.
23882         (get_max_loop_iterations): Likewise.
23883         (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
23884         update for wide-int.
23885         * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
23886         * combine.c (try_combine): Likewise.
23887         (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
23888         * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
23889         interfaces.
23890         (aarch64_float_const_representable_p): Likewise.
23891         * config/arc/arc.c: Include wide-int.h.
23892         (arc_can_use_doloop_p): Use wide-int interfaces.
23893         * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
23894         (vfp3_const_double_index): Likewise.
23895         * config/avr/avr.c (avr_out_round): Likewise.
23896         (avr_fold_builtin): Likewise.
23897         * config/bfin/bfin.c (bfin_local_alignment): Likewise.
23898         (bfin_can_use_doloop_p): Likewise.
23899         * config/darwin.c (darwin_mergeable_constant_section): Likewise.
23900         (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
23901         * config/i386/i386.c: Include wide-int.h.
23902         (ix86_data_alignment): Use wide-int interfaces.
23903         (ix86_local_alignment): Likewise.
23904         (ix86_emit_swsqrtsf): Update real_from_integer.
23905         * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
23906         * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
23907         * config/rs6000/predicates.md (any_operand): Add const_wide_int.
23908         (zero_constant): Likewise.
23909         (input_operand): Likewise.
23910         (splat_input_operand): Likewise.
23911         (non_logical_cint_operand): Change const_double to const_wide_int.
23912         * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
23913         (easy_altivec_constant): Remove comment.
23914         (paired_expand_vector_init): Use CONSTANT_P.
23915         (rs6000_legitimize_address): Handle CONST_WIDE_INT.
23916         (rs6000_emit_move): Update checks.
23917         (rs6000_aggregate_candidate): Use wide-int interfaces.
23918         (rs6000_expand_ternop_builtin): Likewise.
23919         (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
23920         (rs6000_assemble_integer): Likewise.
23921         (rs6000_hash_constant): Likewise.
23922         (output_toc): Likewise.
23923         (rs6000_rtx_costs): Likewise.
23924         (rs6000_emit_swrsqrt); Update call to real_from_integer.
23925         * config/rs6000/rs6000-c.c: Include wide-int.h.
23926         (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
23927         * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
23928         * config/rs6000/rs6000.md: Use const_scalar_int_operand.
23929         Handle CONST_WIDE_INT.
23930         * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
23931         Use tree_fits_uhwi_p.
23932         * config/sparc/sparc.c: Include wide-int.h.
23933         (sparc_fold_builtin): Use wide-int interfaces.
23934         * config/vax/vax.c: Include wide-int.h.
23935         (vax_float_literal): Use real_from_integer.
23936         * coretypes.h (struct hwivec_def): New.
23937         (hwivec): New.
23938         (const_hwivec): New.
23939         * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
23940         (equiv_constant): Handle CONST_WIDE_INT.
23941         * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
23942         (cselib_hash_rtx): Handle CONST_WIDE_INT.
23943         * dbxout.c (stabstr_U): Use wide-int interfaces.
23944         (dbxout_type): Update to use cst_fits_shwi_p.
23945         * defaults.h (LOG2_BITS_PER_UNIT): Define.
23946         (TARGET_SUPPORTS_WIDE_INT): Add default.
23947         * dfp.c: Include wide-int.h.
23948         (decimal_real_to_integer2): Use wide-int interfaces and rename to
23949         decimal_real_to_integer.
23950         * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
23951         decimal_real_to_integer.
23952         * doc/generic.texi (Constant expressions): Update for wide_int.
23953         * doc/rtl.texi (const_double): Likewise.
23954         (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
23955         (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
23956         * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
23957         (REAL_VALUE_FROM_INT): Remove.
23958         (TARGET_SUPPORTS_WIDE_INT): New.
23959         * doc/tm.texi: Regenerate.
23960         * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
23961         * double-int.h: Include wide-int.h.
23962         (struct wi::int_traits): New.
23963         * dwarf2out.c (get_full_len): New.
23964         (dw_val_equal_p): Add case dw_val_class_wide_int.
23965         (size_of_loc_descr): Likewise.
23966         (output_loc_operands): Likewise.
23967         (insert_double): Remove.
23968         (insert_wide_int): New.
23969         (add_AT_wide): New.
23970         (print_die): Add case dw_val_class_wide_int.
23971         (attr_checksum): Likewise.
23972         (attr_checksum_ordered): Likewise.
23973         (same_dw_val_p): Likewise.
23974         (size_of_die): Likewise.
23975         (value_format): Likewise.
23976         (output_die): Likewise.
23977         (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
23978         Use wide-int.
23979         (clz_loc_descriptor): Use wide-int interfaces.
23980         (mem_loc_descriptor): Likewise.  Handle CONST_WIDE_INT.
23981         (loc_descriptor): Use wide-int interfaces.  Handle CONST_WIDE_INT.
23982         (round_up_to_align): Use wide-int interfaces.
23983         (field_byte_offset): Likewise.
23984         (insert_double): Rename to insert_wide_int.  Use wide-int interfaces.
23985         (add_const_value_attribute): Handle CONST_WIDE_INT.  Update
23986         CONST_DOUBLE handling.  Use wide-int interfaces.
23987         (add_bound_info): Use tree_fits_uhwi_p.  Use wide-int interfaces.
23988         (gen_enumeration_type_die): Use add_AT_wide.
23989         (hash_loc_operands): Add case dw_val_class_wide_int.
23990         (compare_loc_operands): Likewise.
23991         * dwarf2out.h: Include wide-int.h.
23992         (wide_int_ptr): New.
23993         (enum dw_val_class): Add dw_val_class_wide_int.
23994         (struct dw_val_struct): Add val_wide.
23995         * emit-rtl.c (const_wide_int_htab): New.
23996         (const_wide_int_htab_hash): New.
23997         (const_wide_int_htab_eq): New.
23998         (lookup_const_wide_int): New.
23999         (const_double_htab_hash): Use wide-int interfaces.
24000         (const_double_htab_eq): Likewise.
24001         (rtx_to_double_int): Conditionally compile for wide-int.
24002         (immed_double_int_const): Rename to immed_wide_int_const and
24003         update for wide-int.
24004         (immed_double_const): Conditionally compile for wide-int.
24005         (init_emit_once): Use wide-int interfaces.
24006         * explow.c (plus_constant): Likewise.
24007         * expmed.c (mask_rtx): Move further up file.  Use wide-int interfaces.
24008         (lshift_value): Use wide-int interfaces.
24009         (expand_mult): Likewise.
24010         (choose_multiplier): Likewise.
24011         (expand_smod_pow2): Likewise.
24012         (make_tree): Likewise.
24013         * expr.c (convert_modes): Consolidate handling of constants.
24014         Use wide-int interfaces.
24015         (emit_group_load_1): Add note.
24016         (store_expr): Update comment.
24017         (get_inner_reference): Use wide-int interfaces.
24018         (expand_constructor): Update comment.
24019         (expand_expr_real_2): Use wide-int interfaces.
24020         (expand_expr_real_1): Likewise.
24021         (reduce_to_bit_field_precision): Likewise.
24022         (const_vector_from_tree): Likewise.
24023         * final.c: Include wide-int-print.h.
24024         (output_addr_const): Handle CONST_WIDE_INT.  Use CONST_DOUBLE_AS_INT_P.
24025         * fixed-value.c: Include wide-int.h.
24026         (fixed_from_string): Use wide-int interfaces.
24027         (fixed_to_decimal): Likewise.
24028         (fixed_convert_from_real): Likewise.
24029         (real_convert_from_fixed): Likewise.
24030         * fold-const.h (mem_ref_offset): Return an offset_int.
24031         (div_if_zero_remainder): Remove code parameter.
24032         * fold-const.c (div_if_zero_remainder): Remove code parameter.
24033         Use wide-int interfaces.
24034         (may_negate_without_overflow_p): Use wide-int interfaces.
24035         (negate_expr_p): Likewise.
24036         (fold_negate_expr): Likewise.
24037         (int_const_binop_1): Likewise.
24038         (const_binop): Likewise.
24039         (fold_convert_const_int_from_int): Likewise.
24040         (fold_convert_const_int_from_real): Likewise.
24041         (fold_convert_const_int_from_fixed): Likewise.
24042         (fold_convert_const_fixed_from_int): Likewise.
24043         (all_ones_mask_p): Take an unsigned size.  Use wide-int interfaces.
24044         (sign_bit_p): Use wide-int interfaces.
24045         (make_range_step): Likewise.
24046         (build_range_check): Likewise.  Pass an integer of the correct type
24047         instead of using integer_one_node.
24048         (range_predecessor): Pass an integer of the correct type instead
24049         of using integer_one_node.
24050         (range_successor): Likewise.
24051         (merge_ranges): Likewise.
24052         (unextend): Use wide-int interfaces.
24053         (extract_muldiv_1): Likewise.
24054         (fold_div_compare): Likewise.
24055         (fold_single_bit_test): Likewise.
24056         (fold_sign_changed_comparison): Likewise.
24057         (try_move_mult_to_index): Update calls to div_if_zero_remainder.
24058         (fold_plusminus_mult_expr): Use wide-int interfaces.
24059         (native_encode_int): Likewise.
24060         (native_interpret_int): Likewise.
24061         (fold_unary_loc): Likewise.
24062         (pointer_may_wrap_p): Likewise.
24063         (size_low_cst): Likewise.
24064         (mask_with_tz): Likewise.
24065         (fold_binary_loc): Likewise.
24066         (fold_ternary_loc): Likewise.
24067         (multiple_of_p): Likewise.
24068         (tree_call_nonnegative_warnv_p): Update calls to
24069         tree_int_cst_min_precision and real_from_integer.
24070         (fold_negate_const): Use wide-int interfaces.
24071         (fold_abs_const): Likewise.
24072         (fold_relational_const): Use tree_int_cst_lt.
24073         (round_up_loc): Use wide-int interfaces.
24074         * genemit.c (gen_exp): Add CONST_WIDE_INT case.
24075         * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
24076         * gengtype.c: Remove include of double-int.h.
24077         (do_typedef): Use wide-int interfaces.
24078         (open_base_files): Add wide-int.h.
24079         (main): Add offset_int and widest_int typedefs.
24080         * gengtype-lex.l: Handle "^".
24081         (CXX_KEYWORD): Add "static".
24082         * gengtype-parse.c (require3): New.
24083         (require_template_declaration): Handle constant template arguments
24084         and nested templates.
24085         * gengtype-state.c: Don't include "double-int.h".
24086         * genpreds.c (write_one_predicate_function): Update comment.
24087         (write_tm_constrs_h): Add check for hval and lval use in
24088         CONST_WIDE_INT.
24089         * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
24090         (add_to_sequence): Likewise.
24091         * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
24092         and const_double_operand.
24093         * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
24094         interfaces.
24095         * gimple-fold.c (get_base_constructor): Likewise.
24096         (fold_array_ctor_reference): Likewise.
24097         (fold_nonarray_ctor_reference): Likewise.
24098         (fold_const_aggregate_ref_1): Likewise.
24099         (gimple_val_nonnegative_real_p): Likewise.
24100         (gimple_fold_indirect_ref): Likewise.
24101         * gimple-pretty-print.c (dump_ssaname_info): Likewise.
24102         * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
24103         (struct slsr_cand_d): Change index to be widest_int.
24104         (struct incr_info_d): Change incr to be widest_int.
24105         (alloc_cand_and_find_basis): Use wide-int interfaces.
24106         (slsr_process_phi): Likewise.
24107         (backtrace_base_for_ref): Likewise.  Return a widest_int.
24108         (restructure_reference): Take a widest_int instead of a double_int.
24109         (slsr_process_ref): Use wide-int interfaces.
24110         (create_mul_ssa_cand): Likewise.
24111         (create_mul_imm_cand): Likewise.
24112         (create_add_ssa_cand): Likewise.
24113         (create_add_imm_cand): Take a widest_int instead of a double_int.
24114         (slsr_process_add): Use wide-int interfaces.
24115         (slsr_process_cast): Likewise.
24116         (slsr_process_copy): Likewise.
24117         (dump_candidate): Likewise.
24118         (dump_incr_vec): Likewise.
24119         (replace_ref): Likewise.
24120         (cand_increment): Likewise.  Return a widest_int.
24121         (cand_abs_increment): Likewise.
24122         (replace_mult_candidate): Take a widest_int instead of a double_int.
24123         (replace_unconditional_candidate): Use wide-int interfaces.
24124         (incr_vec_index): Take a widest_int instead of a double_int.
24125         (create_add_on_incoming_edge): Likewise.
24126         (create_phi_basis): Use wide-int interfaces.
24127         (replace_conditional_candidate): Likewise.
24128         (record_increment): Take a widest_int instead of a double_int.
24129         (record_phi_increments): Use wide-int interfaces.
24130         (phi_incr_cost): Take a widest_int instead of a double_int.
24131         (lowest_cost_path): Likewise.
24132         (total_savings): Likewise.
24133         (analyze_increments): Use wide-int interfaces.
24134         (ncd_with_phi): Take a widest_int instead of a double_int.
24135         (ncd_of_cand_and_phis): Likewise.
24136         (nearest_common_dominator_for_cands): Likewise.
24137         (insert_initializers): Use wide-int interfaces.
24138         (all_phi_incrs_profitable): Likewise.
24139         (replace_one_candidate): Likewise.
24140         (replace_profitable_candidates): Likewise.
24141         * godump.c: Include wide-int-print.h.
24142         (go_output_typedef): Use wide-int interfaces.
24143         * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
24144         * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
24145         (build_loop_iteration_domains): Likewise.
24146         * hooks.h: Include wide-int.h rather than double-int.h.
24147         (hook_bool_dint_dint_uint_bool_true): Delete.
24148         (hook_bool_wint_wint_uint_bool_true): Declare.
24149         * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
24150         (hook_bool_wint_wint_uint_bool_true): New.
24151         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
24152         interfaces.
24153         (ubsan_expand_si_overflow_mul_check): Likewise.
24154         * ipa-devirt.c (get_polymorphic_call_info): Likewise.
24155         * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
24156         (get_ancestor_addr_info): Likewise.
24157         (ipa_modify_call_arguments): Likewise.
24158         * loop-doloop.c (doloop_modify): Likewise.
24159         (doloop_optimize): Likewise.
24160         * loop-iv.c (iv_number_of_iterations): Likewise.
24161         * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
24162         (unroll_loop_constant_iterations): Likewise.
24163         (decide_unroll_runtime_iterations): Likewise.
24164         (unroll_loop_runtime_iterations): Likewise.
24165         (decide_peel_simple): Likewise.
24166         (decide_unroll_stupid): Likewise.
24167         * lto-streamer-in.c (streamer_read_wi): Add.
24168         (input_cfg): Use wide-int interfaces.
24169         (lto_input_tree_1): Likewise.
24170         * lto-streamer-out.c (streamer_write_wi): Add.
24171         (hash_tree): Use wide-int interfaces.
24172         (output_cfg): Likewise.
24173         * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
24174         (GTFILES): Add wide-int.h and signop.h.
24175         (TAGS): Look for .cc files too.
24176         * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
24177         * optabs.c (expand_subword_shift): Likewise.
24178         (expand_doubleword_shift): Likewise.
24179         (expand_absneg_bit): Likewise.
24180         (expand_copysign_absneg): Likewise.
24181         (expand_copysign_bit): Likewise.
24182         * postreload.c (reload_cse_simplify_set): Likewise.
24183         * predict.c (predict_iv_comparison): Likewise.
24184         * pretty-print.h: Include wide-int-print.h.
24185         (pp_wide_int) New.
24186         * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
24187         * print-tree.c: Include wide-int-print.h.
24188         (print_node_brief): Use wide-int interfaces.
24189         (print_node): Likewise.
24190         * read-rtl.c (validate_const_wide_int): New.
24191         (read_rtx_code): Add CONST_WIDE_INT case.
24192         * real.c: Include wide-int.h.
24193         (real_to_integer2): Delete.
24194         (real_to_integer): New function, returning a wide_int.
24195         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
24196         (ten_to_ptwo): Update call to real_from_integer.
24197         (real_digit): Likewise.
24198         * real.h: Include signop.h, wide-int.h and insn-modes.h.
24199         (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
24200         (REAL_VALUE_TO_INT): Delete.
24201         (real_to_integer): Declare a wide-int form.
24202         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
24203         * recog.c (const_int_operand): Improve comment.
24204         (const_scalar_int_operand): New.
24205         (const_double_operand): Add a separate definition for CONST_WIDE_INT.
24206         * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
24207         (split_double): Likewise.
24208         * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
24209         (rtx_size): Likewise.
24210         (rtx_alloc_stat_v): New.
24211         (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
24212         (cwi_output_hex): New.
24213         (iterative_hash_rtx): Handle CONST_WIDE_INT.
24214         (cwi_check_failed_bounds): New.
24215         * rtl.def (CONST_WIDE_INT): New.
24216         * rtl.h: Include <utility> and wide-int.h.
24217         (struct hwivec_def): New.
24218         (CWI_GET_NUM_ELEM): New.
24219         (CWI_PUT_NUM_ELEM): New.
24220         (struct rtx_def): Add num_elem and hwiv.
24221         (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
24222         (CASE_CONST_UNIQUE): Likewise.
24223         (CASE_CONST_ANY): Likewise.
24224         (CONST_SCALAR_INT_P): Likewise.
24225         (CONST_WIDE_INT_P): New.
24226         (CWI_ELT): New.
24227         (HWIVEC_CHECK): New.
24228         (cwi_check_failed_bounds): New.
24229         (CWI_ELT): New.
24230         (HWIVEC_CHECK): New.
24231         (CONST_WIDE_INT_VEC) New.
24232         (CONST_WIDE_INT_NUNITS) New.
24233         (CONST_WIDE_INT_ELT) New.
24234         (rtx_mode_t): New type.
24235         (wi::int_traits <rtx_mode_t>): New.
24236         (wi::shwi): New.
24237         (wi::min_value): New.
24238         (wi::max_value): New.
24239         (rtx_alloc_v) New.
24240         (const_wide_int_alloc): New.
24241         (immed_wide_int_const): New.
24242         * sched-vis.c (print_value): Handle CONST_WIDE_INT.
24243         * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
24244         * signop.h: New file.
24245         * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
24246         (simplify_const_unary_operation): Use wide-int interfaces.
24247         (simplify_binary_operation_1): Likewise.
24248         (simplify_const_binary_operation): Likewise.
24249         (simplify_const_relational_operation): Likewise.
24250         (simplify_immed_subreg): Likewise.
24251         * stmt.c (expand_case): Likewise.
24252         * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
24253         signop rather than a bool.
24254         * stor-layout.c (layout_type): Use wide-int interfaces.
24255         (initialize_sizetypes): Update calls to
24256         set_min_and_max_values_for_integral_type.
24257         (set_min_and_max_values_for_integral_type): Take a signop rather
24258         than a bool.  Use wide-int interfaces.
24259         (fixup_signed_type): Update accordingly.  Remove
24260         HOST_BITS_PER_DOUBLE_INT limit.
24261         (fixup_unsigned_type): Likewise.
24262         * system.h (STATIC_CONSTANT_P): New.
24263         (STATIC_ASSERT): New.
24264         * target.def (can_use_doloop_p): Take widest_ints rather than
24265         double_ints.
24266         * target.h: Include wide-int.h rather than double-int.h.
24267         * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
24268         than double_ints.
24269         * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
24270         rather than INT_CST_LT_UNSIGNED.
24271         (can_use_doloop_if_innermost): Take widest_ints rather than
24272         double_ints.
24273         * tree-affine.c: Include wide-int-print.h.
24274         (double_int_ext_for_comb): Delete.
24275         (wide_int_ext_for_comb): New.
24276         (aff_combination_zero): Use wide-int interfaces.
24277         (aff_combination_const): Take a widest_int instead of a double_int.
24278         (aff_combination_elt): Use wide-int interfaces.
24279         (aff_combination_scale): Take a widest_int instead of a double_int.
24280         (aff_combination_add_elt): Likewise.
24281         (aff_combination_add_cst): Likewise.
24282         (aff_combination_add): Use wide-int interfaces.
24283         (aff_combination_convert): Likewise.
24284         (tree_to_aff_combination): Likewise.
24285         (add_elt_to_tree): Take a widest_int instead of a double_int.
24286         (aff_combination_to_tree): Use wide-int interfaces.
24287         (aff_combination_remove_elt): Likewise.
24288         (aff_combination_add_product): Take a widest_int instead of
24289         a double_int.
24290         (aff_combination_mult): Use wide-int interfaces.
24291         (aff_combination_expand): Likewise.
24292         (double_int_constant_multiple_p): Delete.
24293         (wide_int_constant_multiple_p): New.
24294         (aff_combination_constant_multiple_p): Take a widest_int pointer
24295         instead of a double_int pointer.
24296         (print_aff): Use wide-int interfaces.
24297         (get_inner_reference_aff): Take a widest_int pointer
24298         instead of a double_int pointer.
24299         (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
24300         * tree-affine.h: Include wide-int.h.
24301         (struct aff_comb_elt): Change type of coef to widest_int.
24302         (struct affine_tree_combination): Change type of offset to widest_int.
24303         (double_int_ext_for_comb): Delete.
24304         (wide_int_ext_for_comb): New.
24305         (aff_combination_const): Use widest_int instead of double_int.
24306         (aff_combination_scale): Likewise.
24307         (aff_combination_add_elt): Likewise.
24308         (aff_combination_constant_multiple_p): Likewise.
24309         (get_inner_reference_aff): Likewise.
24310         (aff_comb_cannot_overlap_p): Likewise.
24311         (aff_combination_zero_p): Use wide-int interfaces.
24312         * tree.c: Include tree.h.
24313         (init_ttree): Use make_int_cst.
24314         (tree_code_size): Removed code for INTEGER_CST case.
24315         (tree_size): Add INTEGER_CST case.
24316         (make_node_stat): Update comment.
24317         (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
24318         (build_int_cst_type): Use wide-int interfaces.
24319         (double_int_to_tree): Likewise.
24320         (double_int_fits_to_tree_p): Delete.
24321         (force_fit_type_double): Delete.
24322         (force_fit_type): New.
24323         (int_cst_hash_hash): Use wide-int interfaces.
24324         (int_cst_hash_eq): Likewise.
24325         (build_int_cst_wide): Delete.
24326         (wide_int_to_tree): New.
24327         (cache_integer_cst): Use wide-int interfaces.
24328         (build_low_bits_mask): Likewise.
24329         (cst_and_fits_in_hwi): Likewise.
24330         (real_value_from_int_cst): Likewise.
24331         (make_int_cst_stat): New.
24332         (integer_zerop): Use wide_int interfaces.
24333         (integer_onep): Likewise.
24334         (integer_all_onesp): Likewise.
24335         (integer_pow2p): Likewise.
24336         (integer_nonzerop): Likewise.
24337         (tree_log2): Likewise.
24338         (tree_floor_log2): Likewise.
24339         (tree_ctz): Likewise.
24340         (int_size_in_bytes): Likewise.
24341         (mem_ref_offset): Return an offset_int rather than a double_int.
24342         (build_type_attribute_qual_variant): Use wide_int interfaces.
24343         (type_hash_eq): Likewise
24344         (tree_int_cst_equal): Likewise.
24345         (tree_int_cst_lt): Delete.
24346         (tree_int_cst_compare): Likewise.
24347         (tree_fits_shwi_p): Use wide_int interfaces.
24348         (tree_fits_uhwi_p): Likewise.
24349         (tree_int_cst_sign_bit): Likewise.
24350         (tree_int_cst_sgn): Likewise.
24351         (tree_int_cst_min_precision): Take a signop rather than a bool.
24352         (simple_cst_equal): Use wide_int interfaces.
24353         (compare_tree_int): Likewise.
24354         (iterative_hash_expr): Likewise.
24355         (int_fits_type_p): Likewise.  Use tree_int_cst_lt rather than
24356         INT_CST_LT.
24357         (get_type_static_bounds): Use wide_int interfaces.
24358         (tree_int_cst_elt_check_failed): New.
24359         (build_common_tree_nodes): Reordered to set prec before filling in
24360         value.
24361         (int_cst_value): Check cst_and_fits_in_hwi.
24362         (widest_int_cst_value): Use wide_int interfaces.
24363         (upper_bound_in_type): Likewise.
24364         (lower_bound_in_type): Likewise.
24365         (num_ending_zeros): Likewise.
24366         (drop_tree_overflow): Likewise.
24367         * tree-call-cdce.c (check_pow): Update call to real_from_integer.
24368         (gen_conditions_for_pow_cst_base): Likewise.
24369         * tree-cfg.c: Include wide-int.h and wide-int-print.h.
24370         (group_case_labels_stmt): Use wide-int interfaces.
24371         (verify_gimple_assign_binary): Likewise.
24372         (print_loop): Likewise.
24373         * tree-chrec.c (tree_fold_binomial): Likewise.
24374         * tree-core.h (struct tree_base): Add int_length.
24375         (struct tree_int_cst): Change rep of value.
24376         * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
24377         (dr_may_alias_p): Likewise.
24378         (max_stmt_executions_tree): Likewise.
24379         * tree.def (INTEGER_CST): Update comment.
24380         * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
24381         * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
24382         * tree-dump.c: Include wide-int.h and wide-int-print.h.
24383         (dequeue_and_dump): Use wide-int interfaces.
24384         * tree.h: Include wide-int.h.
24385         (NULL_TREE): Moved to earlier loc in file.
24386         (TREE_INT_CST_ELT_CHECK): New.
24387         (tree_int_cst_elt_check_failed): New.
24388         (TYPE_SIGN): New.
24389         (TREE_INT_CST): Delete.
24390         (TREE_INT_CST_LOW): Use wide-int interfaces.
24391         (TREE_INT_CST_HIGH): Delete.
24392         (TREE_INT_CST_NUNITS): New.
24393         (TREE_INT_CST_EXT_NUNITS): Likewise.
24394         (TREE_INT_CST_OFFSET_NUNITS): Likewise.
24395         (TREE_INT_CST_ELT): Likewise.
24396         (INT_CST_LT): Delete.
24397         (tree_int_cst_elt_check): New (two forms).
24398         (type_code_size): Update comment.
24399         (make_int_cst_stat, make_int_cst): New.
24400         (tree_to_double_int): Delete.
24401         (double_int_fits_to_tree_p): Delete.
24402         (force_fit_type_double): Delete.
24403         (build_int_cstu): Replace with out-of-line function.
24404         (build_int_cst_wide): Delete.
24405         (tree_int_cst_lt): Define inline.
24406         (tree_int_cst_le): New.
24407         (tree_int_cst_compare): Define inline.
24408         (tree_int_cst_min_precision): Take a signop rather than a bool.
24409         (wi::int_traits <const_tree>): New.
24410         (wi::int_traits <tree>): New.
24411         (wi::extended_tree): New.
24412         (wi::int_traits <wi::extended_tree>): New.
24413         (wi::to_widest): New.
24414         (wi::to_offset): New.
24415         (wi::fits_to_tree_p): New.
24416         (wi::min_value): New.
24417         (wi::max_value): New.
24418         * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
24419         (copy_tree_body_r): Likewise.
24420         * tree-object-size.c (compute_object_offset): Likewise.
24421         (addr_object_size): Likewise.
24422         * tree-predcom.c: Include wide-int-print.h.
24423         (struct dref_d): Change type of offset to widest_int.
24424         (dump_dref): Call wide-int printer.
24425         (aff_combination_dr_offset): Use wide-int interfaces.
24426         (determine_offset): Take a widest_int pointer rather than a
24427         double_int pointer.
24428         (split_data_refs_to_components): Use wide-int interfaces.
24429         (suitable_component_p): Likewise.
24430         (order_drefs): Likewise.
24431         (add_ref_to_chain): Likewise.
24432         (valid_initializer_p): Likewise.
24433         (determine_roots_comp): Likewise.
24434         * tree-pretty-print.c: Include wide-int-print.h.
24435         (dump_generic_node): Use wide-int interfaces.
24436         * tree-sra.c (sra_ipa_modify_expr): Likewise.
24437         * tree-ssa-address.c (addr_for_mem_ref): Likewise.
24438         (move_fixed_address_to_symbol): Likewise.
24439         (move_hint_to_base): Likewise.
24440         (move_pointer_to_base): Likewise.
24441         (move_variant_to_index): Likewise.
24442         (most_expensive_mult_to_index): Likewise.
24443         (addr_to_parts): Likewise.
24444         (copy_ref_info): Likewise.
24445         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
24446         (indirect_refs_may_alias_p): Likewise.
24447         (stmt_kills_ref_p_1): Likewise.
24448         * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
24449         * tree-ssa-ccp.c: Update comment at top of file.  Include
24450         wide-int-print.h.
24451         (struct prop_value_d): Change type of mask to widest_int.
24452         (extend_mask): New function.
24453         (dump_lattice_value): Use wide-int interfaces.
24454         (get_default_value): Likewise.
24455         (set_constant_value): Likewise.
24456         (set_value_varying): Likewise.
24457         (valid_lattice_transition): Likewise.
24458         (set_lattice_value): Likewise.
24459         (value_to_double_int): Delete.
24460         (value_to_wide_int): New.
24461         (get_value_from_alignment): Use wide-int interfaces.
24462         (get_value_for_expr): Likewise.
24463         (do_dbg_cnt): Likewise.
24464         (ccp_finalize): Likewise.
24465         (ccp_lattice_meet): Likewise.
24466         (bit_value_unop_1): Use widest_ints rather than double_ints.
24467         (bit_value_binop_1): Likewise.
24468         (bit_value_unop): Use wide-int interfaces.
24469         (bit_value_binop): Likewise.
24470         (bit_value_assume_aligned): Likewise.
24471         (evaluate_stmt): Likewise.
24472         (ccp_fold_stmt): Likewise.
24473         (visit_cond_stmt): Likewise.
24474         (ccp_visit_stmt): Likewise.
24475         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
24476         (constant_pointer_difference): Likewise.
24477         (associate_pointerplus): Likewise.
24478         (combine_conversions): Likewise.
24479         * tree-ssa-loop.h: Include wide-int.h.
24480         (struct tree_niter_desc): Change type of max to widest_int.
24481         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
24482         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
24483         (remove_redundant_iv_tests): Likewise.
24484         (canonicalize_loop_induction_variables): Likewise.
24485         * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
24486         (constant_multiple_of): Take a widest_int pointer instead of
24487         a double_int pointer.
24488         (get_computation_aff): Use wide-int interfaces.
24489         (ptr_difference_cost): Likewise.
24490         (difference_cost): Likewise.
24491         (get_loop_invariant_expr_id): Likewise.
24492         (get_computation_cost_at): Likewise.
24493         (iv_elimination_compare_lt): Likewise.
24494         (may_eliminate_iv): Likewise.
24495         * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
24496         instead of double_int.
24497         (max_loop_iterations): Likewise.
24498         (max_stmt_executions): Likewise.
24499         (estimated_stmt_executions): Likewise.
24500         * tree-ssa-loop-niter.c: Include wide-int-print.h.
24501         (split_to_var_and_offset): Use wide-int interfaces.
24502         (determine_value_range): Likewise.
24503         (bound_difference_of_offsetted_base): Likewise.
24504         (bounds_add): Take a widest_int instead of a double_int.
24505         (number_of_iterations_ne_max): Use wide-int interfaces.
24506         (number_of_iterations_ne): Likewise.
24507         (number_of_iterations_lt_to_ne): Likewise.
24508         (assert_loop_rolls_lt): Likewise.
24509         (number_of_iterations_lt): Likewise.
24510         (number_of_iterations_le): Likewise.
24511         (number_of_iterations_cond): Likewise.
24512         (number_of_iterations_exit): Likewise.
24513         (finite_loop_p): Likewise.
24514         (derive_constant_upper_bound_assign): Likewise.
24515         (derive_constant_upper_bound): Return a widest_int.
24516         (derive_constant_upper_bound_ops): Likewise.
24517         (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
24518         (record_estimate): Take a widest_int rather than a double_int.
24519         (record_nonwrapping_iv): Use wide-int interfaces.
24520         (double_int_cmp): Delete.
24521         (wide_int_cmp): New.
24522         (bound_index): Take a widest_int rather than a double_int.
24523         (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
24524         (maybe_lower_iteration_bound): Likewise.
24525         (estimate_numbers_of_iterations_loop): Likewise.
24526         (estimated_loop_iterations): Take a widest_int pointer than than
24527         a double_int pointer.
24528         (estimated_loop_iterations_int): Use wide-int interfaces.
24529         (max_loop_iterations): Take a widest_int pointer than than
24530         a double_int pointer.
24531         (max_loop_iterations_int): Use wide-int interfaces.
24532         (max_stmt_executions): Take a widest_int pointer than than
24533         a double_int pointer.
24534         (estimated_stmt_executions): Likewise.
24535         (n_of_executions_at_most): Use wide-int interfaces.
24536         (scev_probably_wraps_p): Likewise.
24537         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
24538         to real_to_integer.
24539         * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
24540         interfaces.
24541         * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
24542         double_ints.  Adjust for trailing_wide_ints <3> representation.
24543         (set_nonzero_bits): Likewise.
24544         (get_range_info): Return wide_ints rather than double_ints.
24545         Adjust for trailing_wide_ints <3> representation.
24546         (get_nonzero_bits): Likewise.
24547         (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
24548         representation.
24549         * tree-ssanames.h (struct range_info_def): Replace min, max and
24550         nonzero_bits with a trailing_wide_ints <3>.
24551         (set_range_info): Use wide_int_refs rather than double_ints.
24552         (set_nonzero_bits): Likewise.
24553         (get_range_info): Return wide_ints rather than double_ints.
24554         (get_nonzero_bits): Likewise.
24555         * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
24556         * tree-ssa-pre.c (phi_translate_1): Likewise.
24557         * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
24558         (acceptable_pow_call): Likewise.
24559         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
24560         interfaces.
24561         (vn_reference_fold_indirect): Likewise.
24562         (vn_reference_maybe_forwprop_address): Likewise.
24563         (valueize_refs_1): Likewise.
24564         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
24565         * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
24566         tree_int_cst_lt and tree_int_cst_le.
24567         * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
24568         interfaces.
24569         (streamer_alloc_tree): Likewise.
24570         * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
24571         (streamer_write_tree_header): Likewise.
24572         (streamer_write_integer_cst): Likewise.
24573         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
24574         (build_constructors): Likewise.
24575         (array_value_type): Likewise.
24576         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
24577         (vect_check_gather): Likewise.
24578         * tree-vect-generic.c (build_replicated_const): Likewise.
24579         (expand_vector_divmod): Likewise.
24580         * tree-vect-loop.c (vect_transform_loop): Likewise.
24581         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
24582         (vect_do_peeling_for_alignment): Likewise.
24583         * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
24584         * tree-vrp.c: Include wide-int.h.
24585         (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
24586         (extract_range_from_assert): Use wide-int interfaces.
24587         (vrp_int_const_binop): Likewise.
24588         (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
24589         double_int pointers.
24590         (ranges_from_anti_range): Use wide-int interfaces.
24591         (quad_int_cmp): Delete.
24592         (quad_int_pair_sort): Likewise.
24593         (extract_range_from_binary_expr_1): Use wide-int interfaces.
24594         (extract_range_from_unary_expr_1): Likewise.
24595         (adjust_range_with_scev): Likewise.
24596         (masked_increment): Take and return wide_ints rather than double_ints.
24597         (register_edge_assert_for_2): Use wide-int interfaces.
24598         (check_array_ref): Likewise.
24599         (search_for_addr_array): Likewise.
24600         (maybe_set_nonzero_bits): Likewise.
24601         (union_ranges): Pass an integer of the correct type instead of
24602         using integer_one_node.
24603         (intersect_ranges): Likewise.
24604         (simplify_truth_ops_using_ranges): Likewise.
24605         (simplify_bit_ops_using_ranges): Use wide-int interfaces.
24606         (range_fits_type_p): Likewise.
24607         (simplify_cond_using_ranges): Likewise.  Take a signop rather than
24608         a bool.
24609         (simplify_conversion_using_ranges): Use wide-int interfaces.
24610         (simplify_float_conversion_using_ranges): Likewise.
24611         (vrp_finalize): Likewise.
24612         * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
24613         (gimple_stringops_transform): Likewise.
24614         * varasm.c (decode_addr_const): Likewise.
24615         (const_hash_1): Likewise.
24616         (const_rtx_hash_1): Likewise
24617         (output_constant): Likewise.
24618         (array_size_for_constructor): Likewise.
24619         (output_constructor_regular_field): Likewise.
24620         (output_constructor_bitfield): Likewise.
24621         * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
24622         * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
24623         GENERATOR_FILEs.
24624         * gencheck.c: Define BITS_PER_UNIT.
24625         * wide-int.cc: New.
24626         * wide-int.h: New.
24627         * wide-int-print.cc: New.
24628         * wide-int-print.h: New.
24629
24630 2014-05-06  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
24631
24632         * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
24633
24634 2014-05-06  Richard Biener  <rguenther@suse.de>
24635
24636         * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
24637         TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
24638         (TODO_verify_all): Adjust.
24639         * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
24640         TODO_verify_stmts and TODO_verify_rtl_sharing.
24641         * bb-reorder.c: Likewise.
24642         * cfgexpand.c: Likewise.
24643         * cprop.c: Likewise.
24644         * cse.c: Likewise.
24645         * function.c: Likewise.
24646         * fwprop.c: Likewise.
24647         * gcse.c: Likewise.
24648         * gimple-ssa-isolate-paths.c: Likewise.
24649         * gimple-ssa-strength-reduction.c: Likewise.
24650         * ipa-split.c: Likewise.
24651         * loop-init.c: Likewise.
24652         * loop-unroll.c: Likewise.
24653         * lower-subreg.c: Likewise.
24654         * modulo-sched.c: Likewise.
24655         * postreload-gcse.c: Likewise.
24656         * predict.c: Likewise.
24657         * recog.c: Likewise.
24658         * sched-rgn.c: Likewise.
24659         * store-motion.c: Likewise.
24660         * tracer.c: Likewise.
24661         * trans-mem.c: Likewise.
24662         * tree-call-cdce.c: Likewise.
24663         * tree-cfg.c: Likewise.
24664         * tree-cfgcleanup.c: Likewise.
24665         * tree-complex.c: Likewise.
24666         * tree-eh.c: Likewise.
24667         * tree-emutls.c: Likewise.
24668         * tree-if-conv.c: Likewise.
24669         * tree-into-ssa.c: Likewise.
24670         * tree-loop-distribution.c: Likewise.
24671         * tree-object-size.c: Likewise.
24672         * tree-parloops.c: Likewise.
24673         * tree-pass.h: Likewise.
24674         * tree-sra.c: Likewise.
24675         * tree-ssa-ccp.c: Likewise.
24676         * tree-ssa-copy.c: Likewise.
24677         * tree-ssa-copyrename.c: Likewise.
24678         * tree-ssa-dce.c: Likewise.
24679         * tree-ssa-dom.c: Likewise.
24680         * tree-ssa-dse.c: Likewise.
24681         * tree-ssa-forwprop.c: Likewise.
24682         * tree-ssa-ifcombine.c: Likewise.
24683         * tree-ssa-loop-ch.c: Likewise.
24684         * tree-ssa-loop-ivcanon.c: Likewise.
24685         * tree-ssa-loop.c: Likewise.
24686         * tree-ssa-math-opts.c: Likewise.
24687         * tree-ssa-phiopt.c: Likewise.
24688         * tree-ssa-phiprop.c: Likewise.
24689         * tree-ssa-pre.c: Likewise.
24690         * tree-ssa-reassoc.c: Likewise.
24691         * tree-ssa-sink.c: Likewise.
24692         * tree-ssa-strlen.c: Likewise.
24693         * tree-ssa-tail-merge.c: Likewise.
24694         * tree-ssa-uncprop.c: Likewise.
24695         * tree-switch-conversion.c: Likewise.
24696         * tree-tailcall.c: Likewise.
24697         * tree-vect-generic.c: Likewise.
24698         * tree-vectorizer.c: Likewise.
24699         * tree-vrp.c: Likewise.
24700         * tsan.c: Likewise.
24701         * var-tracking.c: Likewise.
24702         * bt-load.c: Likewise.
24703         * cfgcleanup.c: Likewise.
24704         * combine-stack-adj.c: Likewise.
24705         * combine.c: Likewise.
24706         * compare-elim.c: Likewise.
24707         * config/epiphany/resolve-sw-modes.c: Likewise.
24708         * config/i386/i386.c: Likewise.
24709         * config/mips/mips.c: Likewise.
24710         * config/s390/s390.c: Likewise.
24711         * config/sh/sh_treg_combine.cc: Likewise.
24712         * config/sparc/sparc.c: Likewise.
24713         * dce.c: Likewise.
24714         * dse.c: Likewise.
24715         * final.c: Likewise.
24716         * ifcvt.c: Likewise.
24717         * mode-switching.c: Likewise.
24718         * passes.c: Likewise.
24719         * postreload.c: Likewise.
24720         * ree.c: Likewise.
24721         * reg-stack.c: Likewise.
24722         * regcprop.c: Likewise.
24723         * regrename.c: Likewise.
24724         * web.c: Likewise.
24725
24726 2014-05-06  Richard Biener  <rguenther@suse.de>
24727
24728         PR middle-end/61070
24729         * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
24730         * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
24731
24732 2014-05-05  Jan Hubicka  <hubicka@ucw.cz>
24733
24734         PR ipa/60965
24735         * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
24736
24737 2014-05-05  Radovan Obradovic  <robradovic@mips.com>
24738             Tom de Vries  <tom@codesourcery.com>
24739
24740         * target.def (call_fusage_contains_non_callee_clobbers): New
24741         DEFHOOKPOD.
24742         * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
24743         Hooks to @menu.
24744         (@node Miscellaneous Register Hooks): New node.
24745         (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
24746         * doc/tm.texi: Regenerate.
24747
24748 2014-05-05  Marek Polacek  <polacek@redhat.com>
24749
24750         PR driver/61065
24751         * opts.c (common_handle_option): Call error_at instead of warning_at.
24752
24753 2014-05-05  Richard Biener  <rguenther@suse.de>
24754
24755         * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
24756         from last_verified if update_ssa ran.  Move TODO_verify_rtl_sharing
24757         under the TODO_verify_il umbrella.
24758
24759 2014-05-05  Richard Biener  <rguenther@suse.de>
24760
24761         * passes.c (execute_function_todo): Move TODO_verify_flow under
24762         the TODO_verify_ul umbrella.
24763
24764 2014-05-05  Richard Biener  <rguenther@suse.de>
24765
24766         PR middle-end/61010
24767         * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
24768         X & CST away from a CST that is the mask of a mode.
24769
24770 2014-05-05  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
24771
24772         * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
24773         int argument to enum machine_mode.
24774         (picochip_class_max_nregs): Ditto.
24775         * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
24776         (picochip_class_max_nregs): Ditto.
24777
24778 2014-05-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24779
24780         * target.def: Add new target hook.
24781         * doc/tm.texi: Regenerate.
24782         * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
24783         * targhooks.c (default_keep_leaf_when_profiled): New function.
24784
24785         * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
24786         (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
24787
24788 2014-05-05  Bin Cheng  <bin.cheng@arm.com>
24789
24790         PR tree-optimization/60363
24791         * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
24792         (copy_phi_args): New parameters.  Call get_value_locus_in_path.
24793         (update_destination_phis): New parameter.
24794         (create_edge_and_update_destination_phis): Ditto.
24795         (ssa_fix_duplicate_block_edges): Pass new arguments.
24796         (thread_single_edge): Ditto.
24797
24798 2014-05-04  Peter Bergner  <bergner@vnet.ibm.com>
24799
24800         * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
24801         (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
24802         (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
24803         * config/rs6000/rs6000-builtin.def (BU_MISC_1):
24804         Use RS6000_BTM_HARD_FLOAT.
24805         (BU_MISC_2): Likewise.
24806         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
24807         RS6000_BTM_HARD_FLOAT.
24808         (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
24809         is explicitly used.
24810         (rs6000_invalid_builtin): Add hard floating builtin support.
24811         (rs6000_expand_builtin): Relax the gcc_assert to allow the new
24812         hard float builtins.
24813         (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
24814
24815 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
24816
24817         * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
24818         Add missing function* argument.
24819
24820 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
24821
24822         * lra-constraints.c (valid_address_p): Move earlier in file.
24823         Add a constraint argument to the address_info version.
24824         (satisfies_memory_constraint_p): New function.
24825         (satisfies_address_constraint_p): Likewise.
24826         (process_alt_operands, curr_insn_transform): Use them.
24827         (process_address): Pass the constraint to valid_address_p when
24828         checking address operands.
24829
24830 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
24831
24832         * config/mips/mips.c (mips_isa_rev): New variable.
24833         (mips_set_architecture): Set it.
24834         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
24835         from mips_isa_rev.
24836         (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
24837         (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
24838         (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
24839         (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
24840         (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
24841         conditions in terms of mips_isa_rev.
24842         (mips_isa_rev): Declare.
24843
24844 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
24845
24846         * config/sh/sh-mem.cc: Use tabs instead of spaces.
24847         (prob_unlikely, prob_likely): Make variables const.
24848
24849 2014-05-03  Denis Chertykov  <chertykov@gmail.com>
24850
24851         * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
24852
24853 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
24854
24855         * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
24856
24857 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
24858
24859         * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
24860         (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
24861         * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
24862         functions.
24863         (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
24864         sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
24865         sh_pass_in_reg_p.
24866         Replace usage of ROUND_REG with sh_round_reg.
24867         Use CEIL instead of ROUND_ADVANCE.
24868
24869 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
24870
24871         PR target/61026
24872         * config/sh/sh.c: Include stdlib headers before everything else.
24873
24874 2014-05-02  Jakub Jelinek  <jakub@redhat.com>
24875
24876         * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
24877         GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
24878         (gimplify_adjust_omp_clauses): Simd region is never
24879         directly nested in combined parallel.  Instead, for linear
24880         with copyin/copyout, if in combined for simd loop, make decl
24881         firstprivate/lastprivate on OMP_FOR.
24882         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
24883         expand_omp_for_static_chunk): When setting endvar, also set
24884         fd->loop.v to the same value.
24885
24886 2014-05-02  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
24887
24888         * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
24889
24890 2014-05-02  Alan Lawrence  <alan.lawrence@arm.com>
24891
24892         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
24893         expression.
24894
24895 2014-05-02  Marek Polacek  <polacek@redhat.com>
24896
24897         * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
24898
24899 2014-05-02  Kito Cheng  <kito@0xlab.org>
24900
24901         * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
24902         to a C expression marco.
24903         * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
24904         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
24905         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
24906         * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
24907         HONOR_REG_ALLOC_ORDER.
24908         * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
24909
24910 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
24911
24912         * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
24913
24914 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
24915
24916         * config/arc/arc.c (arc_select_cc_mode): Fix typo.
24917
24918 2014-05-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
24919
24920         * tree-if-conv.c (is_cond_scalar_reduction): New function.
24921         (convert_scalar_cond_reduction): Likewise.
24922         (predicate_scalar_phi): Add recognition and transformation
24923         of simple conditioanl reduction to be vectorizable.
24924
24925 2014-05-01  Marek Polacek  <polacek@redhat.com>
24926
24927         PR c/43245
24928         * doc/invoke.texi: Document -Wdiscarded-qualifiers.
24929
24930 2014-04-30  Alan Lawrence  <alan.lawrence@arm.com>
24931
24932         * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
24933         vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
24934         vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
24935         vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
24936         vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
24937         vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
24938         vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
24939         vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
24940
24941 2014-04-30  Joern Rennecke  <joern.rennecke@embecosm.com>
24942
24943         * config/arc/arc.opt (mlra): Move comment above option name
24944         to avoid mis-parsing as language options.
24945
24946 2014-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24947
24948         * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
24949         * config/sol2.h: ... here.
24950         * config/sol2-10.h: Remove.
24951
24952         * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
24953         (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
24954         (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
24955         (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
24956         (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
24957         * config/sol2.h: ... here.
24958         (SECTION_NAME_FORMAT): Don't redefine.
24959         (STARTFILE_ARCH32_SPEC): Rename to ...
24960         (STARTFILE_ARCH_SPEC): ... this.
24961         (ASM_OUTPUT_ALIGNED_COMMON): Move ...
24962         * config/sparc/sol2.h: ... here.
24963         (SECTION_NAME_FORMAT): Don't undef.
24964         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
24965         (SUBTARGET_EXTRA_SPECS): Remove.
24966         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
24967
24968         * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
24969         (MD_STARTFILE_PREFIX): Remove.
24970         (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
24971         (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
24972         (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
24973         (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
24974         (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
24975         (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
24976         * config/i386/sol2.h: ... here.
24977         (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
24978         * config/i386/sol2-bi.h: Remove.
24979         * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
24980         (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
24981
24982         * config/i386/t-sol2-64: Rename to ...
24983         * config/i386/t-sol2: ... this.
24984         * config/sparc/t-sol2-64: Rename to ...
24985         * config/sparc/t-sol2: ... this.
24986
24987         * config.gcc (*-*-solaris2*): Split sol2_tm_file into
24988         sol2_tm_file_head, sol2_tm_file_tail.
24989         Include ${cpu_type}/sol2.h before sol2.h.
24990         Remove sol2-10.h.
24991         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
24992         i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
24993         Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
24994         Reflect i386/t-sol2-64 renaming.
24995         (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
24996         Reflect sparc/t-sol2-64 renaming.
24997
24998 2014-04-30  Richard Biener  <rguenther@suse.de>
24999
25000         * passes.c (execute_function_todo): Move TODO_verify_stmts
25001         and TODO_verify_ssa under the TODO_verify_il umbrella.
25002         * tree-ssa.h (verify_ssa): Adjust prototype.
25003         * tree-ssa.c (verify_ssa): Add parameter to tell whether
25004         we should verify SSA operands.
25005         * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
25006         * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
25007         whether we should verify whether not throwing stmts have EH info.
25008         * graphite-scop-detection.c (create_sese_edges): Adjust.
25009         * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
25010         * tree-eh.c (lower_try_finally_switch): Do not add the
25011         default case label twice.
25012
25013 2014-04-30  Marek Polacek  <polacek@redhat.com>
25014
25015         * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
25016         * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
25017         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
25018         * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
25019
25020 2014-04-29  Alan Lawrence  <alan.lawrence@arm.com>
25021
25022         * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
25023         vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
25024         vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
25025         vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
25026         vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
25027         vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
25028         vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
25029         vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
25030
25031 2014-04-29  David Malcolm  <dmalcolm@redhat.com>
25032
25033         * tree-cfg.c (dump_function_to_file): Dump the return type of
25034         functions, in a line to itself before the function body, mimicking
25035         the layout of a C function.
25036
25037 2014-04-29  Jakub Jelinek  <jakub@redhat.com>
25038
25039         PR tree-optimization/60971
25040         * tree-tailcall.c (process_assignment): Reject conversions which
25041         reduce precision.
25042
25043 2014-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
25044
25045         * calls.c (initialize_argument_information): Always treat
25046         PUSH_ARGS_REVERSED as 1, simplify code accordingly.
25047         (expand_call): Likewise.
25048         (emit_library_call_calue_1): Likewise.
25049         * expr.c (PUSH_ARGS_REVERSED): Do not define.
25050         (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
25051         code accordingly.
25052
25053 2014-04-29  Nick Clifton  <nickc@redhat.com>
25054
25055         * config/msp430/msp430.md (umulsidi): Fix typo.
25056         (mulhisi3): Enable even inside interrupt handlers.
25057         * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
25058         bigger return address pushed in large mode.
25059
25060 2014-04-29  Nick Clifton  <nickc@redhat.com>
25061
25062         * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
25063         (arc_init_reg_tables): Use a machine_mode enum to iterate over
25064         available modes.
25065         * config/m32r/m32r.c (init_reg_tables): Likewise.
25066         * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
25067         enum to hold the modes.
25068
25069 2014-04-29  Richard Biener  <rguenther@suse.de>
25070
25071         * dominance.c (free_dominance_info): Add overload with
25072         function parameter.
25073         (dom_info_state): Likewise.
25074         (dom_info_available_p): Likewise.
25075         * basic-block.h (free_dominance_info, dom_info_state,
25076         dom_info_available_p): Declare overloads.
25077         * passes.c (execute_function_todo): Verify that verifiers
25078         don't change dominator info state.  Drop dominator info
25079         for IPA pass invocations.
25080         * cgraph.c (release_function_body): Restore asserts that
25081         dominator information is released.
25082
25083 2014-04-29  Patrick Palka  <patrick@parcs.ath.cx>
25084
25085         * doc/invoke.texi: Fix typo.
25086         * tree-vrp.c: Fix typos.
25087         * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
25088
25089 2014-04-29  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
25090
25091         * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
25092
25093 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
25094
25095         * config/aarch64/aarch64-builtins.c
25096         (aarch64_types_storestruct_lane_qualifiers): New.
25097         (TYPES_STORESTRUCT_LANE): Likewise.
25098         * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
25099         (st3_lane): Likewise.
25100         (st4_lane): Likewise.
25101         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
25102         (vec_store_lanesci_lane<mode>): Likewise.
25103         (vec_store_lanesxi_lane<mode>): Likewise.
25104         (aarch64_st2_lane<VQ:mode>): Likewise.
25105         (aarch64_st3_lane<VQ:mode>): Likewise.
25106         (aarch64_st4_lane<VQ:mode>): Likewise.
25107         * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
25108         * config/aarch64/arm_neon.h
25109         (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
25110         use new macro arguments.
25111         (__ST3_LANE_FUNC): Likewise.
25112         (__ST4_LANE_FUNC): Likewise.
25113         * config/aarch64/iterators.md (V_TWO_ELEM): New.
25114         (V_THREE_ELEM): Likewise.
25115         (V_FOUR_ELEM): Likewise.
25116
25117 2014-04-28  David Malcolm  <dmalcolm@redhat.com>
25118
25119         * doc/gimple.texi: Replace the description of the now-defunct
25120         union gimple_statement_d with a diagram showing the
25121         gimple_statement_base class hierarchy and its relationships to
25122         the GSS_ and GIMPLE_ enums.
25123
25124 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
25125
25126         * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
25127         * config/aarch64/aarch64.c
25128         (aarch64_cannot_change_mode_class): Weaken conditions.
25129         (aarch64_modes_tieable_p): New.
25130         * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
25131
25132 2014-04-28  Pat Haugen  <pthaugen@us.ibm.com>
25133
25134         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
25135         (loadsync_<mode>): Change mode.
25136         (load_quadpti, store_quadpti): New.
25137         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
25138         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
25139
25140 2014-04-28  Martin Jambor  <mjambor@suse.cz>
25141
25142         * tree-sra.c (sra_modify_expr): Generate new memory accesses with
25143         same alias type as the original statement.
25144         (subreplacement_assignment_data): New type.
25145         (handle_unscalarized_data_in_subtree): New type of parameter,
25146         generate new memory accesses with same alias type as the original
25147         statement.
25148         (load_assign_lhs_subreplacements): Likewise.
25149         (sra_modify_constructor_assign): Generate new memory accesses with
25150         same alias type as the original statement.
25151
25152 2014-04-28  Richard Biener  <rguenther@suse.de>
25153
25154         * tree-pass.h (TODO_verify_il): Define.
25155         (TODO_verify_all): Complete properly.
25156         * passes.c (execute_function_todo): Move existing loop-closed
25157         SSA verification under TODO_verify_il.
25158         (execute_one_pass): Trigger TODO_verify_il at todo-after time.
25159         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
25160         Fix tree sharing issue.
25161
25162 2014-04-28  Richard Biener  <rguenther@suse.de>
25163
25164         PR middle-end/60092
25165         * builtins.def (DEF_C11_BUILTIN): Add.
25166         (BUILT_IN_ALIGNED_ALLOC): Likewise.
25167         * coretypes.h (enum function_class): Add function_c11_misc.
25168         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
25169         BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
25170         (call_may_clobber_ref_p_1): Likewise.
25171         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
25172         (mark_all_reaching_defs_necessary_1): Likewise.
25173         (propagate_necessity): Likewise.
25174         (eliminate_unnecessary_stmts): Likewise.
25175         * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
25176
25177 2014-04-28  Richard Biener  <rguenther@suse.de>
25178
25179         * tree-vrp.c (vrp_var_may_overflow): Remove.
25180         (vrp_visit_phi_node): Rather than bumping to +-INF possibly
25181         with overflow immediately bump to one before that value and
25182         let iteration figure out overflow status.
25183
25184 2014-04-28  Richard Biener  <rguenther@suse.de>
25185
25186         * configure.ac: Do valgrind header checks unconditionally.
25187         Add --enable-valgrind-annotations.
25188         * system.h: Guard valgrind header inclusion with
25189         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
25190         * alloc-pool.c (pool_alloc, pool_free): Use
25191         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
25192         to guard possibly dead code.
25193         * config.in: Regenerated.
25194         * configure: Likewise.
25195
25196 2014-04-28  Jeff Law  <law@redhat.com>
25197
25198         PR tree-optimization/60902
25199         * tree-ssa-threadedge.c
25200         (record_temporary_equivalences_from_stmts_at_dest): Only iterate
25201         over real defs when invalidating outputs from statements that do not
25202         produce useful outputs for threading.
25203
25204 2014-04-28  Richard Biener  <rguenther@suse.de>
25205
25206         PR tree-optimization/60979
25207         * graphite-scop-detection.c (scopdet_basic_block_info): Reject
25208         SCOPs that end in a block with a successor with abnormal
25209         predecessors.
25210
25211 2014-04-28  Richard Biener  <rguenther@suse.de>
25212
25213         * tree-pass.h (execute_pass_list): Adjust prototype.
25214         * passes.c (pass_manager::execute_early_local_passes): Adjust.
25215         (do_per_function): Change callback signature, push all actual
25216         work to the callbals.
25217         (do_per_function_toporder): Likewise.
25218         (execute_function_dump): Adjust.
25219         (execute_function_todo): Likewise.
25220         (clear_last_verified): Likewise.
25221         (verify_curr_properties): Likewise.
25222         (update_properties_after_pass): Likewise.
25223         (execute_pass_list_1): Split out from ...
25224         (execute_pass_list): ... here.  Adjust.
25225         (execute_ipa_pass_list): Likewise.
25226         * cgraphunit.c (cgraph_add_new_function): Adjust.
25227         (analyze_function): Likewise.
25228         (expand_function): Likewise.
25229         * cgraph.c (release_function_body): Free dominance info
25230         here instead of asserting it was magically freed elsewhere.
25231
25232 2014-04-28  Eric Botcazou  <ebotcazou@adacore.com>
25233
25234         * configure.ac: Tweak GAS check for LEON instructions on SPARC.
25235         * configure: Regenerate.
25236         * config/sparc/sparc.opt (muser-mode): New option.
25237         * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
25238         for LEON3.
25239         (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
25240         * doc/invoke.texi (SPARC options): Document -muser-mode.
25241
25242 2014-04-27  Richard Sandiford  <rdsandiford@googlemail.com>
25243
25244         * cselib.c (find_slot_memmode): Delete.
25245         (cselib_hasher): Change compare_type to a struct.
25246         (cselib_hasher::equal): Update accordingly.  Don't expect wrapped
25247         constants.
25248         (preserve_constants_and_equivs): Adjust for new compare_type.
25249         (cselib_find_slot): Likewise.  Take the mode of the rtx as argument.
25250         (wrap_constant): Delete.
25251         (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
25252
25253 2014-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
25254
25255         * doc/install.texi (Building with profile feedback): Remove
25256         outdated sentence.
25257
25258 2014-04-26  Tom de Vries  <tom@codesourcery.com>
25259
25260         * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
25261         array accesses.
25262
25263 2014-04-25  Cary Coutant  <ccoutant@google.com>
25264
25265         PR debug/60929
25266         * dwarf2out.c (should_move_die_to_comdat): A type definition
25267         can contain a subprogram definition, but don't move it to a
25268         comdat unit.
25269         (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
25270         (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
25271         from original DIE.
25272         (clone_tree_hash): Rename to...
25273         (clone_tree_partial): ...this; change callers.  Copy
25274         DW_TAG_subprogram DIEs as declarations.
25275         (copy_decls_walk): Don't copy children of a declaration into a
25276         type unit.
25277
25278 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
25279
25280         PR target/60969
25281         * config/i386/i386.md (*movsf_internal): Set MODE to SI for
25282         alternative 12.
25283
25284 2014-04-25  Jiong Wang  <jiong.wang@arm.com>
25285
25286         * config/arm/predicates.md (call_insn_operand): Add long_call check.
25287         * config/arm/arm.md (sibcall, sibcall_value): Force the address to
25288         reg for long_call.
25289         * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
25290         restriction.
25291
25292 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25293
25294         * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
25295
25296 2014-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25297
25298         PR tree-optimization/60930
25299         * gimple-ssa-strength-reduction.c (create_mul_imm_cand):  Reject
25300         creating a multiply candidate by folding two constant
25301         multiplicands when the result overflows.
25302
25303 2014-04-25  Jakub Jelinek  <jakub@redhat.com>
25304
25305         PR tree-optimization/60960
25306         * tree-vect-generic.c (expand_vector_operation): Only call
25307         expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
25308
25309 2014-04-25  Tom de Vries  <tom@codesourcery.com>
25310
25311         * expr.c (clobber_reg_mode): New function.
25312         * expr.h (clobber_reg): New function.
25313
25314 2014-04-25  Tom de Vries  <tom@codesourcery.com>
25315
25316         * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
25317         clobbers.
25318
25319 2014-04-25  Radovan Obradovic  <robradovic@mips.com>
25320             Tom de Vries  <tom@codesourcery.com>
25321
25322         * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
25323         handle.
25324         * rtl.h (find_all_hard_reg_sets): Add bool parameter.
25325         * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
25326         new argument to find_all_hard_reg_sets call.
25327
25328 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25329
25330         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
25331         Use HOST_WIDE_INT_C for mask literal.
25332         (aarch_rev16_shleft_mask_imm_p): Likewise.
25333
25334 2014-04-25  Eric Botcazou  <ebotcazou@adacore.com>
25335
25336         PR target/60941
25337         * config/sparc/sparc.md (ashlsi3_extend): Delete.
25338
25339 2014-04-25  Marc Glisse  <marc.glisse@inria.fr>
25340
25341         PR preprocessor/56540
25342         * config/i386/i386-c.c (ix86_target_macros): Define
25343         __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
25344
25345 2014-04-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25346
25347         * configure.ac (tga_func): Remove.
25348         (LIB_TLS_SPEC): Remove.
25349         * configure: Regenerate.
25350         * config.in: Regenerate.
25351         * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
25352
25353 2014-04-25  Richard Biener  <rguenther@suse.de>
25354
25355         PR ipa/60912
25356         * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
25357         call stmt use/clobber sets during stmt walk instead of
25358         walking the possibly incomplete set of caller edges.
25359
25360 2014-04-25  Richard Biener  <rguenther@suse.de>
25361
25362         PR ipa/60911
25363         * passes.c (apply_ipa_transforms): Inline into only caller ...
25364         (execute_one_pass): ... here.  Properly bring in function
25365         bodies for nodes we want to apply IPA transforms to.
25366
25367 2014-04-24  Cong Hou  <congh@google.com>
25368
25369         PR tree-optimization/60896
25370         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
25371         all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
25372         (vect_mark_pattern_stmts): Set the def type of all statements in
25373         PATTERN_DEF_SEQ as vect_internal_def.
25374
25375 2014-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
25376
25377         * doc/extend.texi (PowerPC Built-in Functions): Document new
25378         powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
25379         (PowerPC AltiVec/VSX Built-in Functions): Likewise.
25380
25381         * config/rs6000/predicates.md (const_0_to_3_operand): New
25382         predicate to match 0..3 integer constants.
25383
25384         * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
25385         to support adding miscellaneous builtin functions.
25386         (BU_DFP_MISC_2): Likewise.
25387         (BU_P7_MISC_1): Likewise.
25388         (BU_P7_MISC_2): Likewise.
25389         (BU_P8V_MISC_3): Likewise.
25390         (BU_MISC_1): Likewise.
25391         (BU_MISC_2): Likewise.
25392         (DIVWE): Add extended divide builtin functions.
25393         (DIVWEO): Likewise.
25394         (DIVWEU): Likewise.
25395         (DIVWEUO): Likewise.
25396         (DIVDE): Likewise.
25397         (DIVDEO): Likewise.
25398         (DIVDEU): Likewise.
25399         (DIVDEUO): Likewise.
25400         (DXEX): Add decimal floating-point builtin functions.
25401         (DXEXQ): Likewise.
25402         (DDEDPD): Likewise.
25403         (DDEDPDQ): Likewise.
25404         (DENBCD): Likewise.
25405         (DENBCDQ): Likewise.
25406         (DIEX): Likewise.
25407         (DIEXQ): Likewise.
25408         (DSCLI): Likewise.
25409         (DSCLIQ): Likewise.
25410         (DSCRI): Likewise.
25411         (DSCRIQ): Likewise.
25412         (CDTBCD): Add new BCD builtin functions.
25413         (CBCDTD): Likewise.
25414         (ADDG6S): Likewise.
25415         (BCDADD): Likewise.
25416         (BCDADD_LT): Likewise.
25417         (BCDADD_EQ): Likewise.
25418         (BCDADD_GT): Likewise.
25419         (BCDADD_OV): Likewise.
25420         (BCDSUB): Likewise.
25421         (BCDSUB_LT): Likewise.
25422         (BCDSUB_EQ): Likewise.
25423         (BCDSUB_GT): Likewise.
25424         (BCDSUB_OV): Likewise.
25425         (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
25426         (UNPACK_TD): Likewise.
25427         (PACK_TF): Likewise.
25428         (UNPACK_TF): Likewise.
25429         (UNPACK_TF_0): Likewise.
25430         (UNPACK_TF_1): Likewise.
25431         (PACK_V1TI): Likewise.
25432         (UNPACK_V1TI): Likewise.
25433
25434         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
25435         support for decimal floating point builtin functions.
25436         (rs6000_expand_ternop_builtin): Add checks for the new builtin
25437         functions that take constant arguments.
25438         (rs6000_invalid_builtin): Add decimal floating point builtin support.
25439         (rs6000_init_builtins): Setup long double, _Decimal64, and
25440         _Decimal128 types for new builtin functions.
25441         (builtin_function_type): Set the unsigned flags appropriately for
25442         the new builtin functions.
25443         (rs6000_opt_masks): Add support for decimal floating point builtin
25444         functions.
25445
25446         * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
25447         floating point builtin functions.
25448         (RS6000_BTM_COMMON): Likewise.
25449         (RS6000_BTI_long_double): Likewise.
25450         (RS6000_BTI_dfloat64): Likewise.
25451         (RS6000_BTI_dfloat128): Likewise.
25452         (long_double_type_internal_node): Likewise.
25453         (dfloat64_type_internal_node): Likewise.
25454         (dfloat128_type_internal_node): Likewise.
25455
25456         * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
25457         2.07 bcd arithmetic instructions.
25458         (UNSPEC_BCDSUB): Likewise.
25459         (UNSPEC_BCD_OVERFLOW): Likewise.
25460         (UNSPEC_BCD_ADD_SUB): Likewise.
25461         (bcd_add_sub): Likewise.
25462         (BCD_TEST): Likewise.
25463         (bcd<bcd_add_sub>): Likewise.
25464         (bcd<bcd_add_sub>_test): Likewise.
25465         (bcd<bcd_add_sub>_test2): Likewise.
25466         (bcd<bcd_add_sub>_<code>): Likewise.
25467         (peephole2 for combined bcd ops): Likewise.
25468
25469         * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
25470         decimal floating point builtin functions.
25471         (UNSPEC_DENBCD): Likewise.
25472         (UNSPEC_DXEX): Likewise.
25473         (UNSPEC_DIEX): Likewise.
25474         (UNSPEC_DSCLI): Likewise.
25475         (UNSPEC_DSCRI): Likewise.
25476         (D64_D128): Likewise.
25477         (dfp_suffix): Likewise.
25478         (dfp_ddedpd_<mode>): Likewise.
25479         (dfp_denbcd_<mode>): Likewise.
25480         (dfp_dxex_<mode>): Likewise.
25481         (dfp_diex_<mode>): Likewise.
25482         (dfp_dscli_<mode>): Likewise.
25483         (dfp_dscri_<mode>): Likewise.
25484
25485         * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
25486         builtin functions.
25487         (UNSPEC_CDTBCD): Likewise.
25488         (UNSPEC_CBCDTD): Likewise.
25489         (UNSPEC_DIVE): Add support for new extended divide builtin functions.
25490         (UNSPEC_DIVEO): Likewise.
25491         (UNSPEC_DIVEU): Likewise.
25492         (UNSPEC_DIVEUO): Likewise.
25493         (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
25494         pack/unpack 128-bit types.
25495         (UNSPEC_PACK_128BIT): Likewise.
25496         (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
25497         (udiv<mode>3): Use idiv_ldiv mode attribute.
25498         (div<mode>3): Likewise.
25499         (addg6s): Add new BCD builtin functions.
25500         (cdtbcd): Likewise.
25501         (cbcdtd): Likewise.
25502         (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
25503         (div_extend): Likewise.
25504         (div<div_extend>_<mode>"): Likewise.
25505         (FP128_64): Add support for new builtin functions to pack/unpack
25506         128-bit types.
25507         (unpack<mode>): Likewise.
25508         (unpacktf_0): Likewise.
25509         (unpacktf_1): Likewise.
25510         (unpack<mode>_dm): Likewise.
25511         (unpack<mode>_nodm): Likewise.
25512         (pack<mode>): Likewise.
25513         (unpackv1ti): Likewise.
25514         (packv1ti): Likewise.
25515
25516 2014-04-24  Vishnu K S  <Vishnu.k_s@atmel.com>
25517
25518         * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
25519         is disabled.
25520
25521 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
25522
25523         * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
25524         * gimplify.c (omp_is_private): Change last argument's type to int.
25525         Only diagnose lastprivate if the simd argument is 1, only diagnose
25526         linear if the simd argument is 2.
25527         (gimplify_omp_for): Adjust omp_is_private callers.  When adding
25528         lastprivate or private, add the clause to OMP_FOR_CLAUSES.  Pass
25529         GOVD_EXPLICIT to omp_add_variable.  For simd with collapse == 1
25530         create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
25531         If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
25532         increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
25533         * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
25534         OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
25535         * tree-nested.c (convert_nonlocal_omp_clauses,
25536         convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
25537
25538 2014-04-24  Segher Boessenkool  <segher@kernel.crashing.org>
25539
25540         PR target/60822
25541         * config/m68k/m68k.md (extendplussidi): Don't allow memory for
25542         operand 1.
25543
25544 2014-04-24  Dimitris Papavasiliou  <dpapavas@gmail.com>
25545
25546         * flag-types.h (enum ivar_visibility): Add.
25547
25548 2014-04-24  Trevor Saunders  <tsaunders@mozilla.com>
25549
25550         * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
25551         function * argument.
25552
25553 2014-04-24  Alan Lawrence  <alan.lawrence@arm.com>
25554
25555         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
25556
25557 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
25558             Tom de Vries  <tom@codesourcery.com>
25559
25560         * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
25561         * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
25562         reg-note.
25563         * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
25564         * emit-rtl.c (try_split): Same.
25565
25566 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
25567             Tom de Vries  <tom@codesourcery.com>
25568
25569         * common.opt (fuse-caller-save): New option.
25570
25571 2014-04-24  Tejas Belagod  <tejas.belagod@arm.com>
25572
25573         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
25574         elements for big-endian.
25575
25576 2014-04-24  Richard Biener  <rguenther@suse.de>
25577
25578         * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
25579         during TER and instead use the sepops interface for expanding
25580         non-GIMPLE_SINGLE_RHS.
25581
25582 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25583
25584         * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
25585         if not HAVE_AS_IX86_DIFF_SECT_DELTA.
25586
25587 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25588
25589         * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
25590         assembler 64-bit option.
25591         * configure: Regenerate.
25592
25593 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25594
25595         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
25596         TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
25597         (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
25598         (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
25599         (TARGET_CRYPTO): Take TARGET_SIMD into account.
25600
25601 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25602
25603         * config/aarch64/aarch64-builtins.c
25604         (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
25605         BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
25606         * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
25607         * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
25608         builtins.
25609         * config/aarch64/iterator.md (VDQHSD): New mode iterator.
25610         (Vrevsuff): New mode attribute.
25611
25612 2014-04-24  Terry Guo  <terry.guo@arm.com>
25613
25614         * config/arm/arm.h (machine_function): Define variable
25615         after_arm_reorg here.
25616         * config/arm/arm.c (after_arm_reorg): Remove the definition.
25617         (arm_split_constant): Update the way to access variable
25618         after_arm_reorg.
25619         (arm_reorg): Ditto.
25620         (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
25621
25622 2014-04-23  Tom de Vries  <tom@codesourcery.com>
25623
25624         * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
25625
25626 2014-04-23  David Malcolm  <dmalcolm@redhat.com>
25627
25628         * is-a.h: Update comments to reflect the following changes to the
25629         "pointerness" of the API, making the template parameter match the
25630         return type, allowing use of is-a.h with typedefs of pointers.
25631         (is_a_helper::cast): Return a T rather then a pointer to a T, so
25632         that the return type matches the parameter to the is_a_helper.
25633         (as_a): Likewise.
25634         (dyn_cast): Likewise.
25635
25636         * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
25637         pointer from the is-a.h API.
25638
25639         * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
25640         (is_a_helper <cgraph_node *>::test): ...this, matching change to
25641         is-a.h API.
25642         (is_a_helper <varpool_node>::test): Likewise, convert to...
25643         (is_a_helper <varpool_node *>::test): ...this.
25644
25645         (varpool_first_variable): Update for removal of implicit pointer
25646         from the is-a.h API.
25647         (varpool_next_variable): Likewise.
25648         (varpool_first_static_initializer): Likewise.
25649         (varpool_next_static_initializer): Likewise.
25650         (varpool_first_defined_variable): Likewise.
25651         (varpool_next_defined_variable): Likewise.
25652         (cgraph_first_defined_function): Likewise.
25653         (cgraph_next_defined_function): Likewise.
25654         (cgraph_first_function): Likewise.
25655         (cgraph_next_function): Likewise.
25656         (cgraph_first_function_with_gimple_body): Likewise.
25657         (cgraph_next_function_with_gimple_body): Likewise.
25658         (cgraph_alias_target): Likewise.
25659         (varpool_alias_target): Likewise.
25660         (cgraph_function_or_thunk_node): Likewise.
25661         (varpool_variable_node): Likewise.
25662         (symtab_real_symbol_p): Likewise.
25663         * cgraphunit.c (referred_to_p): Likewise.
25664         (analyze_functions): Likewise.
25665         (handle_alias_pairs): Likewise.
25666         * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
25667         * gimple-ssa.h (gimple_vuse_op): Likewise.
25668         (gimple_vdef_op): Likewise.
25669         * gimple-streamer-in.c (input_gimple_stmt): Likewise.
25670         * gimple.c (gimple_build_asm_1): Likewise.
25671         (gimple_build_try): Likewise.
25672         (gimple_build_resx): Likewise.
25673         (gimple_build_eh_dispatch): Likewise.
25674         (gimple_build_omp_for): Likewise.
25675         (gimple_omp_for_set_clauses): Likewise.
25676
25677         * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
25678         (is_a_helper <gimple_statement_asm *>::test): ...this.
25679         (is_a_helper <gimple_statement_bind>::test): Convert to...
25680         (is_a_helper <gimple_statement_bind *>::test): ...this.
25681         (is_a_helper <gimple_statement_call>::test): Convert to...
25682         (is_a_helper <gimple_statement_call *>::test): ...this.
25683         (is_a_helper <gimple_statement_catch>::test): Convert to...
25684         (is_a_helper <gimple_statement_catch *>::test): ...this.
25685         (is_a_helper <gimple_statement_resx>::test): Convert to...
25686         (is_a_helper <gimple_statement_resx *>::test): ...this.
25687         (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
25688         (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
25689         (is_a_helper <gimple_statement_eh_else>::test): Convert to...
25690         (is_a_helper <gimple_statement_eh_else *>::test): ...this.
25691         (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
25692         (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
25693         (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
25694         (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
25695         (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
25696         (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
25697         (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
25698         (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
25699         (is_a_helper <gimple_statement_omp_return>::test): Convert to...
25700         (is_a_helper <gimple_statement_omp_return *>::test): ...this.
25701         (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
25702         (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
25703         (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
25704         (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
25705         (is_a_helper <gimple_statement_omp_for>::test): Convert to...
25706         (is_a_helper <gimple_statement_omp_for *>::test): ...this.
25707         (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
25708         (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
25709         (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
25710         (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
25711         (is_a_helper <gimple_statement_omp_target>::test): Convert to...
25712         (is_a_helper <gimple_statement_omp_target *>::test): ...this.
25713         (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
25714         (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
25715         (is_a_helper <gimple_statement_omp_single>::test): Convert to...
25716         (is_a_helper <gimple_statement_omp_single *>::test): ...this.
25717         (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
25718         (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
25719         (is_a_helper <gimple_statement_omp_task>::test): Convert to...
25720         (is_a_helper <gimple_statement_omp_task *>::test): ...this.
25721         (is_a_helper <gimple_statement_phi>::test): Convert to...
25722         (is_a_helper <gimple_statement_phi *>::test): ...this.
25723         (is_a_helper <gimple_statement_transaction>::test): Convert to...
25724         (is_a_helper <gimple_statement_transaction *>::test): ...this.
25725         (is_a_helper <gimple_statement_try>::test): Convert to...
25726         (is_a_helper <gimple_statement_try *>::test): ...this.
25727         (is_a_helper <gimple_statement_wce>::test): Convert to...
25728         (is_a_helper <gimple_statement_wce *>::test): ...this.
25729         (is_a_helper <const gimple_statement_asm>::test): Convert to...
25730         (is_a_helper <const gimple_statement_asm *>::test): ...this.
25731         (is_a_helper <const gimple_statement_bind>::test): Convert to...
25732         (is_a_helper <const gimple_statement_bind *>::test): ...this.
25733         (is_a_helper <const gimple_statement_call>::test): Convert to...
25734         (is_a_helper <const gimple_statement_call *>::test): ...this.
25735         (is_a_helper <const gimple_statement_catch>::test): Convert to...
25736         (is_a_helper <const gimple_statement_catch *>::test): ...this.
25737         (is_a_helper <const gimple_statement_resx>::test): Convert to...
25738         (is_a_helper <const gimple_statement_resx *>::test): ...this.
25739         (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
25740         (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
25741         (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
25742         (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
25743         (is_a_helper <const gimple_statement_omp_atomic_load>::test):
25744         Convert to...
25745         (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
25746         ...this.
25747         (is_a_helper <const gimple_statement_omp_atomic_store>::test):
25748         Convert to...
25749         (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
25750         ...this.
25751         (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
25752         (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
25753         (is_a_helper <const gimple_statement_omp_continue>::test): Convert
25754         to...
25755         (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
25756         (is_a_helper <const gimple_statement_omp_critical>::test): Convert
25757         to...
25758         (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
25759         (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
25760         (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
25761         (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
25762         (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
25763         (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
25764         to...
25765         (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
25766         (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
25767         (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
25768         (is_a_helper <const gimple_statement_omp_sections>::test): Convert
25769         to...
25770         (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
25771         (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
25772         (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
25773         (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
25774         (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
25775         (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
25776         (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
25777         (is_a_helper <const gimple_statement_phi>::test): Convert to...
25778         (is_a_helper <const gimple_statement_phi *>::test): ...this.
25779         (is_a_helper <const gimple_statement_transaction>::test): Convert to...
25780         (is_a_helper <const gimple_statement_transaction *>::test): ...this.
25781         (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
25782         (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
25783         (is_a_helper <gimple_statement_with_ops>::test): Convert to...
25784         (is_a_helper <gimple_statement_with_ops *>::test): ...this.
25785         (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
25786         to...
25787         (is_a_helper <const gimple_statement_with_memory_ops *>::test):
25788         ...this.
25789         (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
25790         (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
25791
25792         (gimple_use_ops): Update for removal of implicit pointer from the
25793         is-a.h API.
25794         (gimple_set_use_ops): Likewise.
25795         (gimple_vuse): Likewise.
25796         (gimple_vdef): Likewise.
25797         (gimple_vuse_ptr): Likewise.
25798         (gimple_vdef_ptr): Likewise.
25799         (gimple_set_vuse): Likewise.
25800         (gimple_set_vdef): Likewise.
25801         (gimple_omp_return_set_lhs): Likewise.
25802         (gimple_omp_return_lhs): Likewise.
25803         (gimple_omp_return_lhs_ptr): Likewise.
25804         (gimple_call_fntype): Likewise.
25805         (gimple_call_set_fntype): Likewise.
25806         (gimple_call_set_internal_fn): Likewise.
25807         (gimple_call_use_set): Likewise.
25808         (gimple_call_clobber_set): Likewise.
25809         (gimple_bind_vars): Likewise.
25810         (gimple_bind_set_vars): Likewise.
25811         (gimple_bind_body_ptr): Likewise.
25812         (gimple_bind_set_body): Likewise.
25813         (gimple_bind_add_stmt): Likewise.
25814         (gimple_bind_block): Likewise.
25815         (gimple_bind_set_block): Likewise.
25816         (gimple_asm_ninputs): Likewise.
25817         (gimple_asm_noutputs): Likewise.
25818         (gimple_asm_nclobbers): Likewise.
25819         (gimple_asm_nlabels): Likewise.
25820         (gimple_asm_input_op): Likewise.
25821         (gimple_asm_input_op_ptr): Likewise.
25822         (gimple_asm_output_op): Likewise.
25823         (gimple_asm_output_op_ptr): Likewise.
25824         (gimple_asm_set_output_op): Likewise.
25825         (gimple_asm_clobber_op): Likewise.
25826         (gimple_asm_set_clobber_op): Likewise.
25827         (gimple_asm_label_op): Likewise.
25828         (gimple_asm_set_label_op): Likewise.
25829         (gimple_asm_string): Likewise.
25830         (gimple_catch_types): Likewise.
25831         (gimple_catch_types_ptr): Likewise.
25832         (gimple_catch_handler_ptr): Likewise.
25833         (gimple_catch_set_types): Likewise.
25834         (gimple_catch_set_handler): Likewise.
25835         (gimple_eh_filter_types): Likewise.
25836         (gimple_eh_filter_types_ptr): Likewise.
25837         (gimple_eh_filter_failure_ptr): Likewise.
25838         (gimple_eh_filter_set_types): Likewise.
25839         (gimple_eh_filter_set_failure): Likewise.
25840         (gimple_eh_must_not_throw_fndecl): Likewise.
25841         (gimple_eh_must_not_throw_set_fndecl): Likewise.
25842         (gimple_eh_else_n_body_ptr): Likewise.
25843         (gimple_eh_else_e_body_ptr): Likewise.
25844         (gimple_eh_else_set_n_body): Likewise.
25845         (gimple_eh_else_set_e_body): Likewise.
25846         (gimple_try_eval_ptr): Likewise.
25847         (gimple_try_cleanup_ptr): Likewise.
25848         (gimple_try_set_eval): Likewise.
25849         (gimple_try_set_cleanup): Likewise.
25850         (gimple_wce_cleanup_ptr): Likewise.
25851         (gimple_wce_set_cleanup): Likewise.
25852         (gimple_phi_capacity): Likewise.
25853         (gimple_phi_num_args): Likewise.
25854         (gimple_phi_result): Likewise.
25855         (gimple_phi_result_ptr): Likewise.
25856         (gimple_phi_set_result): Likewise.
25857         (gimple_phi_arg): Likewise.
25858         (gimple_phi_set_arg): Likewise.
25859         (gimple_resx_region): Likewise.
25860         (gimple_resx_set_region): Likewise.
25861         (gimple_eh_dispatch_region): Likewise.
25862         (gimple_eh_dispatch_set_region): Likewise.
25863         (gimple_omp_critical_name): Likewise.
25864         (gimple_omp_critical_name_ptr): Likewise.
25865         (gimple_omp_critical_set_name): Likewise.
25866         (gimple_omp_for_clauses): Likewise.
25867         (gimple_omp_for_clauses_ptr): Likewise.
25868         (gimple_omp_for_set_clauses): Likewise.
25869         (gimple_omp_for_collapse): Likewise.
25870         (gimple_omp_for_index): Likewise.
25871         (gimple_omp_for_index_ptr): Likewise.
25872         (gimple_omp_for_set_index): Likewise.
25873         (gimple_omp_for_initial): Likewise.
25874         (gimple_omp_for_initial_ptr): Likewise.
25875         (gimple_omp_for_set_initial): Likewise.
25876         (gimple_omp_for_final): Likewise.
25877         (gimple_omp_for_final_ptr): Likewise.
25878         (gimple_omp_for_set_final): Likewise.
25879         (gimple_omp_for_incr): Likewise.
25880         (gimple_omp_for_incr_ptr): Likewise.
25881         (gimple_omp_for_set_incr): Likewise.
25882         (gimple_omp_for_pre_body_ptr): Likewise.
25883         (gimple_omp_for_set_pre_body): Likewise.
25884         (gimple_omp_parallel_clauses): Likewise.
25885         (gimple_omp_parallel_clauses_ptr): Likewise.
25886         (gimple_omp_parallel_set_clauses): Likewise.
25887         (gimple_omp_parallel_child_fn): Likewise.
25888         (gimple_omp_parallel_child_fn_ptr): Likewise.
25889         (gimple_omp_parallel_set_child_fn): Likewise.
25890         (gimple_omp_parallel_data_arg): Likewise.
25891         (gimple_omp_parallel_data_arg_ptr): Likewise.
25892         (gimple_omp_parallel_set_data_arg): Likewise.
25893         (gimple_omp_task_clauses): Likewise.
25894         (gimple_omp_task_clauses_ptr): Likewise.
25895         (gimple_omp_task_set_clauses): Likewise.
25896         (gimple_omp_task_child_fn): Likewise.
25897         (gimple_omp_task_child_fn_ptr): Likewise.
25898         (gimple_omp_task_set_child_fn): Likewise.
25899         (gimple_omp_task_data_arg): Likewise.
25900         (gimple_omp_task_data_arg_ptr): Likewise.
25901         (gimple_omp_task_set_data_arg): Likewise.
25902         (gimple_omp_taskreg_clauses): Likewise.
25903         (gimple_omp_taskreg_clauses_ptr): Likewise.
25904         (gimple_omp_taskreg_set_clauses): Likewise.
25905         (gimple_omp_taskreg_child_fn): Likewise.
25906         (gimple_omp_taskreg_child_fn_ptr): Likewise.
25907         (gimple_omp_taskreg_set_child_fn): Likewise.
25908         (gimple_omp_taskreg_data_arg): Likewise.
25909         (gimple_omp_taskreg_data_arg_ptr): Likewise.
25910         (gimple_omp_taskreg_set_data_arg): Likewise.
25911         (gimple_omp_task_copy_fn): Likewise.
25912         (gimple_omp_task_copy_fn_ptr): Likewise.
25913         (gimple_omp_task_set_copy_fn): Likewise.
25914         (gimple_omp_task_arg_size): Likewise.
25915         (gimple_omp_task_arg_size_ptr): Likewise.
25916         (gimple_omp_task_set_arg_size): Likewise.
25917         (gimple_omp_task_arg_align): Likewise.
25918         (gimple_omp_task_arg_align_ptr): Likewise.
25919         (gimple_omp_task_set_arg_align): Likewise.
25920         (gimple_omp_single_clauses): Likewise.
25921         (gimple_omp_single_clauses_ptr): Likewise.
25922         (gimple_omp_single_set_clauses): Likewise.
25923         (gimple_omp_target_clauses): Likewise.
25924         (gimple_omp_target_clauses_ptr): Likewise.
25925         (gimple_omp_target_set_clauses): Likewise.
25926         (gimple_omp_target_child_fn): Likewise.
25927         (gimple_omp_target_child_fn_ptr): Likewise.
25928         (gimple_omp_target_set_child_fn): Likewise.
25929         (gimple_omp_target_data_arg): Likewise.
25930         (gimple_omp_target_data_arg_ptr): Likewise.
25931         (gimple_omp_target_set_data_arg): Likewise.
25932         (gimple_omp_teams_clauses): Likewise.
25933         (gimple_omp_teams_clauses_ptr): Likewise.
25934         (gimple_omp_teams_set_clauses): Likewise.
25935         (gimple_omp_sections_clauses): Likewise.
25936         (gimple_omp_sections_clauses_ptr): Likewise.
25937         (gimple_omp_sections_set_clauses): Likewise.
25938         (gimple_omp_sections_control): Likewise.
25939         (gimple_omp_sections_control_ptr): Likewise.
25940         (gimple_omp_sections_set_control): Likewise.
25941         (gimple_omp_for_set_cond): Likewise.
25942         (gimple_omp_for_cond): Likewise.
25943         (gimple_omp_atomic_store_set_val): Likewise.
25944         (gimple_omp_atomic_store_val): Likewise.
25945         (gimple_omp_atomic_store_val_ptr): Likewise.
25946         (gimple_omp_atomic_load_set_lhs): Likewise.
25947         (gimple_omp_atomic_load_lhs): Likewise.
25948         (gimple_omp_atomic_load_lhs_ptr): Likewise.
25949         (gimple_omp_atomic_load_set_rhs): Likewise.
25950         (gimple_omp_atomic_load_rhs): Likewise.
25951         (gimple_omp_atomic_load_rhs_ptr): Likewise.
25952         (gimple_omp_continue_control_def): Likewise.
25953         (gimple_omp_continue_control_def_ptr): Likewise.
25954         (gimple_omp_continue_set_control_def): Likewise.
25955         (gimple_omp_continue_control_use): Likewise.
25956         (gimple_omp_continue_control_use_ptr): Likewise.
25957         (gimple_omp_continue_set_control_use): Likewise.
25958         (gimple_transaction_body_ptr): Likewise.
25959         (gimple_transaction_label): Likewise.
25960         (gimple_transaction_label_ptr): Likewise.
25961         (gimple_transaction_set_body): Likewise.
25962         (gimple_transaction_set_label): Likewise.
25963
25964         * ipa-devirt.c (build_type_inheritance_graph): Likewise.
25965         * ipa-inline-analysis.c (inline_write_summary): Likewise.
25966         * ipa-ref.c (ipa_record_reference): Likewise.
25967         * ipa-reference.c (analyze_function): Likewise.
25968         (ipa_reference_write_optimization_summary): Likewise.
25969         * ipa.c (symtab_remove_unreachable_nodes): Likewise.
25970         (address_taken_from_non_vtable_p): Likewise.
25971         (comdat_can_be_unshared_p_1): Likewise.
25972         * lto-cgraph.c (lto_output_ref): Likewise.
25973         (add_references): Likewise.
25974         (compute_ltrans_boundary): Likewise.
25975         (output_symtab): Likewise.
25976         (input_ref): Likewise.
25977         (input_cgraph_1): Likewise.
25978         (output_cgraph_opt_summary): Likewise.
25979         * lto-streamer-out.c (lto_output): Likewise.
25980         (output_symbol_p): Likewise.
25981         * lto-streamer.h (lsei_next_function_in_partition): Likewise.
25982         (lsei_start_function_in_partition): Likewise.
25983         (lsei_next_variable_in_partition): Likewise.
25984         (lsei_start_variable_in_partition): Likewise.
25985         * symtab.c (insert_to_assembler_name_hash): Likewise.
25986         (unlink_from_assembler_name_hash): Likewise.
25987         (symtab_unregister_node): Likewise.
25988         (symtab_remove_node): Likewise.
25989         (dump_symtab_node): Likewise.
25990         (verify_symtab_base): Likewise.
25991         (verify_symtab_node): Likewise.
25992         (symtab_make_decl_local): Likewise.
25993         (symtab_alias_ultimate_target): Likewise.
25994         (symtab_resolve_alias): Likewise.
25995         (symtab_get_symbol_partitioning_class): Likewise.
25996         * tree-phinodes.c (allocate_phi_node): Likewise.
25997         (reserve_phi_args_for_new_edge): Likewise.
25998         (remove_phi_args): Likewise.
25999         * varpool.c (varpool_node_for_asm): Likewise.
26000         (varpool_remove_unreferenced_decls): Likewise.
26001
26002 2014-04-23  Jeff Law  <law@redhat.com>
26003
26004         PR tree-optimization/60902
26005         * tree-ssa-threadedge.c
26006         (record_temporary_equivalences_from_stmts_at_dest): Make sure to
26007         invalidate outputs from statements that do not produce useful
26008         outputs for threading.
26009
26010 2014-04-23  Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
26011
26012         * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
26013         (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
26014         machine descriptions for Stack Smashing Protector.
26015
26016 2014-04-23  Richard Earnshaw  <rearnsha@arm.com>
26017
26018         * aarch64.md (<optab>_rol<mode>3): New pattern.
26019         (<optab>_rolsi3_uxtw): Likewise.
26020         * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
26021
26022 2014-04-23  James Greenhalgh  <james.greenhalgh@arm.com>
26023
26024         * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
26025         (arm_cortex_a12_tune): Likewise.
26026
26027 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26028
26029         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
26030
26031 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26032
26033         * config/arm/arm.md (arm_rev16si2): New pattern.
26034         (arm_rev16si2_alt): Likewise.
26035         * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
26036
26037 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26038
26039         * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
26040         (rev16<mode>2_alt): Likewise.
26041         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
26042         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
26043         (aarch_rev16_shleft_mask_imm_p): Likewise.
26044         (aarch_rev16_p_1): Likewise.
26045         (aarch_rev16_p): Likewise.
26046         * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
26047         (aarch_rev16_shright_mask_imm_p): Likewise.
26048         (aarch_rev16_shleft_mask_imm_p): Likewise.
26049
26050 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26051
26052         * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
26053         * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
26054         rev cost.
26055         (cortex_a53_extra_costs): Likewise.
26056         (cortex_a57_extra_costs): Likewise.
26057         * config/arm/arm.c (cortexa9_extra_costs): Likewise.
26058         (cortexa7_extra_costs): Likewise.
26059         (cortexa8_extra_costs): Likewise.
26060         (cortexa12_extra_costs): Likewise.
26061         (cortexa15_extra_costs): Likewise.
26062         (v7m_extra_costs): Likewise.
26063         (arm_new_rtx_costs): Handle BSWAP.
26064
26065 2013-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26066
26067         * config/arm/arm.c (cortexa8_extra_costs): New table.
26068         (arm_cortex_a8_tune): New tuning struct.
26069         * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
26070
26071 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26072
26073         * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
26074
26075 2014-04-23  Richard Biener  <rguenther@suse.de>
26076
26077         * Makefile.in (OBJS): Remove loop-unswitch.o.
26078         * tree-pass.h (make_pass_rtl_unswitch): Remove.
26079         * passes.def (pass_rtl_unswitch): Likewise.
26080         * loop-init.c (gate_rtl_unswitch): Likewise.
26081         (rtl_unswitch): Likewise.
26082         (pass_data_rtl_unswitch): Likewise.
26083         (pass_rtl_unswitch): Likewise.
26084         (make_pass_rtl_unswitch): Likewise.
26085         * rtl.h (reversed_condition): Likewise.
26086         (compare_and_jump_seq): Likewise.
26087         * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
26088         and make static.
26089         * loop-unroll.c (compare_and_jump_seq): Likewise.
26090
26091 2014-04-23  Richard Biener  <rguenther@suse.de>
26092
26093         PR tree-optimization/60903
26094         * tree-ssa-loop-im.c (analyze_memory_references): Remove
26095         commented code block.
26096         (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
26097         loop flags to newly created BBs and edges.
26098
26099 2014-04-23  Nick Clifton  <nickc@redhat.com>
26100
26101         * config/msp430/msp430.c (msp430_handle_option): Move function
26102         to msp430-common.c
26103         (msp430_option_override): Simplify mcu and mcpu option handling.
26104         (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult.  Add
26105         support for -mhwmult command line option.
26106         (has_32bit_hwmult): Rename to use_32bit_hwmult.  Add support for
26107         -mhwmult command line option.
26108         (msp430_hwmult_enabled): Delete.
26109         (msp43o_output_labelref): Add support for -mhwmult command line option.
26110         * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
26111         (umulsidi3): Likewise.
26112         * config/msp430/msp430.opt (mmcu): Add Report attribute.
26113         (mcpu, mlarge, msmall): Likewise.
26114         (mhwmult): New option.
26115         * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
26116         prototype.
26117         (msp430_is_f5_mcu): Remove prototype.
26118         (msp430_use_f5_series_hwmult): Add prototype.
26119         * config/msp430/msp430-opts.h: New file.
26120         * common/config/msp430: New directory.
26121         * common/config/msp430/msp430-common.c: New file.
26122         * config.gcc (msp430): Remove target_has_targetm_common.
26123         * doc/invoke.texi: Document -mhwmult command line option.
26124
26125 2014-04-23  Nick Clifton  <nickc@redhat.com>
26126
26127         * config/i386/cygwin.h (ENDFILE_SPEC): Include
26128         default-manifest.o if it can be found in the search path.
26129         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
26130
26131 2014-04-23  Terry Guo  <terry.guo@arm.com>
26132
26133         * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
26134
26135 2014-04-23  Richard Biener  <rguenther@suse.de>
26136
26137         PR middle-end/60895
26138         * tree-inline.c (declare_return_variable): Use mark_addressable.
26139
26140 2014-04-23  Richard Biener  <rguenther@suse.de>
26141
26142         PR middle-end/60891
26143         * loop-init.c (loop_optimizer_init): Make sure to apply
26144         LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
26145
26146 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
26147
26148         PR sanitizer/60275
26149         * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
26150         New options.
26151         * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
26152         if flag_sanitize_undefined_trap_on_error.
26153         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
26154         BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
26155         BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
26156         BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
26157         BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
26158         BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
26159         BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
26160         BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
26161         BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
26162         * ubsan.c (ubsan_instrument_unreachable): Return
26163         __builtin_trap () if flag_sanitize_undefined_trap_on_error.
26164         (ubsan_expand_null_ifn): Emit __builtin_trap ()
26165         if flag_sanitize_undefined_trap_on_error and
26166         __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
26167         (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
26168         instrument_bool_enum_load): Emit __builtin_trap () if
26169         flag_sanitize_undefined_trap_on_error and
26170         __builtin_handle_*_abort () if !flag_sanitize_recover.
26171         * doc/invoke.texi (-fsanitize-recover,
26172         -fsanitize-undefined-trap-on-error): Document.
26173
26174 2014-04-22  Christian Bruel  <christian.bruel@st.com>
26175
26176         * config/sh/sh.md (mov<mode>): Replace movQIHI.
26177          Force immediates to SImode.
26178
26179 2014-04-22  Sandra Loosemore  <sandra@codesourcery.com>
26180
26181         * config/nios2/nios2.md (UNSPEC_ROUND): New.
26182         (lroundsfsi2): New.
26183         * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
26184         * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
26185         * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
26186         (nios2_fpu_insn): Add entry for round.
26187         (N2FPU_NO_ERRNO_P): Define.
26188         (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
26189         flag_errno_math.
26190         * doc/invoke.texi (Nios II Options): Document -mcustom-round.
26191
26192 2014-04-22  Richard Henderson  <rth@redhat.com>
26193
26194         * config/aarch64/aarch64 (addti3, subti3): New expanders.
26195         (add<GPI>3_compare0): Remove leading * from name.
26196         (add<GPI>3_carryin): Likewise.
26197         (sub<GPI>3_compare0): Likewise.
26198         (sub<GPI>3_carryin): Likewise.
26199         (<su_optab>mulditi3): New expander.
26200         (multi3): New expander.
26201         (madd<GPI>): Remove leading * from name.
26202
26203 2014-04-22  Martin Jambor  <mjambor@suse.cz>
26204
26205         * cgraphclones.c (cgraph_function_versioning): Copy
26206         ipa_transforms_to_apply instead of asserting it is empty.
26207
26208 2014-04-22  H.J. Lu  <hongjiu.lu@intel.com>
26209
26210         PR target/60868
26211         * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
26212         on count_exp to get mode.
26213
26214 2014-04-22  Andrew Pinski  <apinski@cavium.com>
26215
26216         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
26217         Handle TLS for ILP32.
26218         * config/aarch64/aarch64.md (tlsie_small): Rename to ...
26219         (tlsie_small_<mode>): this and handle PTR.
26220         (tlsie_small_sidi): New pattern.
26221         (tlsle_small): Change to an expand to handle ILP32.
26222         (tlsle_small_<mode>): New pattern.
26223         (tlsdesc_small): Rename to ...
26224         (tlsdesc_small_<mode>): this and handle PTR.
26225
26226 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26227
26228         * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
26229
26230 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
26231
26232         * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
26233         (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
26234         (aarch64_types_signed_poly_qualifiers): Likewise.
26235         (aarch64_types_unsigned_signed_qualifiers): Likewise.
26236         (aarch64_types_poly_signed_qualifiers): Likewise.
26237         (TYPES_REINTERP_SS): Type macro added.
26238         (TYPES_REINTERP_SU): Likewise.
26239         (TYPES_REINTERP_SP): Likewise.
26240         (TYPES_REINTERP_US): Likewise.
26241         (TYPES_REINTERP_PS): Likewise.
26242         (aarch64_fold_builtin): New expression folding added.
26243         * config/aarch64/aarch64-simd-builtins.def (REINTERP):
26244         Declarations removed.
26245         (REINTERP_SS): Declarations added.
26246         (REINTERP_US): Likewise.
26247         (REINTERP_PS): Likewise.
26248         (REINTERP_SU): Likewise.
26249         (REINTERP_SP): Likewise.
26250         * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
26251         (vreinterpretq_p8_f64): Likewise.
26252         (vreinterpret_p16_f64): Likewise.
26253         (vreinterpretq_p16_f64): Likewise.
26254         (vreinterpret_f32_f64): Likewise.
26255         (vreinterpretq_f32_f64): Likewise.
26256         (vreinterpret_f64_f32): Likewise.
26257         (vreinterpret_f64_p8): Likewise.
26258         (vreinterpret_f64_p16): Likewise.
26259         (vreinterpret_f64_s8): Likewise.
26260         (vreinterpret_f64_s16): Likewise.
26261         (vreinterpret_f64_s32): Likewise.
26262         (vreinterpret_f64_s64): Likewise.
26263         (vreinterpret_f64_u8): Likewise.
26264         (vreinterpret_f64_u16): Likewise.
26265         (vreinterpret_f64_u32): Likewise.
26266         (vreinterpret_f64_u64): Likewise.
26267         (vreinterpretq_f64_f32): Likewise.
26268         (vreinterpretq_f64_p8): Likewise.
26269         (vreinterpretq_f64_p16): Likewise.
26270         (vreinterpretq_f64_s8): Likewise.
26271         (vreinterpretq_f64_s16): Likewise.
26272         (vreinterpretq_f64_s32): Likewise.
26273         (vreinterpretq_f64_s64): Likewise.
26274         (vreinterpretq_f64_u8): Likewise.
26275         (vreinterpretq_f64_u16): Likewise.
26276         (vreinterpretq_f64_u32): Likewise.
26277         (vreinterpretq_f64_u64): Likewise.
26278         (vreinterpret_s64_f64): Likewise.
26279         (vreinterpretq_s64_f64): Likewise.
26280         (vreinterpret_u64_f64): Likewise.
26281         (vreinterpretq_u64_f64): Likewise.
26282         (vreinterpret_s8_f64): Likewise.
26283         (vreinterpretq_s8_f64): Likewise.
26284         (vreinterpret_s16_f64): Likewise.
26285         (vreinterpretq_s16_f64): Likewise.
26286         (vreinterpret_s32_f64): Likewise.
26287         (vreinterpretq_s32_f64): Likewise.
26288         (vreinterpret_u8_f64): Likewise.
26289         (vreinterpretq_u8_f64): Likewise.
26290         (vreinterpret_u16_f64): Likewise.
26291         (vreinterpretq_u16_f64): Likewise.
26292         (vreinterpret_u32_f64): Likewise.
26293         (vreinterpretq_u32_f64): Likewise.
26294
26295 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
26296
26297         * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
26298         * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
26299         (vreinterpret_p8_s8): Likewise.
26300         * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
26301         (vreinterpret_p8_s16): Likewise.
26302         (vreinterpret_p8_s32): Likewise.
26303         (vreinterpret_p8_s64): Likewise.
26304         (vreinterpret_p8_f32): Likewise.
26305         (vreinterpret_p8_u8): Likewise.
26306         (vreinterpret_p8_u16): Likewise.
26307         (vreinterpret_p8_u32): Likewise.
26308         (vreinterpret_p8_u64): Likewise.
26309         (vreinterpret_p8_p16): Likewise.
26310         (vreinterpretq_p8_s8): Likewise.
26311         (vreinterpretq_p8_s16): Likewise.
26312         (vreinterpretq_p8_s32): Likewise.
26313         (vreinterpretq_p8_s64): Likewise.
26314         (vreinterpretq_p8_f32): Likewise.
26315         (vreinterpretq_p8_u8): Likewise.
26316         (vreinterpretq_p8_u16): Likewise.
26317         (vreinterpretq_p8_u32): Likewise.
26318         (vreinterpretq_p8_u64): Likewise.
26319         (vreinterpretq_p8_p16): Likewise.
26320         (vreinterpret_p16_s8): Likewise.
26321         (vreinterpret_p16_s16): Likewise.
26322         (vreinterpret_p16_s32): Likewise.
26323         (vreinterpret_p16_s64): Likewise.
26324         (vreinterpret_p16_f32): Likewise.
26325         (vreinterpret_p16_u8): Likewise.
26326         (vreinterpret_p16_u16): Likewise.
26327         (vreinterpret_p16_u32): Likewise.
26328         (vreinterpret_p16_u64): Likewise.
26329         (vreinterpret_p16_p8): Likewise.
26330         (vreinterpretq_p16_s8): Likewise.
26331         (vreinterpretq_p16_s16): Likewise.
26332         (vreinterpretq_p16_s32): Likewise.
26333         (vreinterpretq_p16_s64): Likewise.
26334         (vreinterpretq_p16_f32): Likewise.
26335         (vreinterpretq_p16_u8): Likewise.
26336         (vreinterpretq_p16_u16): Likewise.
26337         (vreinterpretq_p16_u32): Likewise.
26338         (vreinterpretq_p16_u64): Likewise.
26339         (vreinterpretq_p16_p8): Likewise.
26340         (vreinterpret_f32_s8): Likewise.
26341         (vreinterpret_f32_s16): Likewise.
26342         (vreinterpret_f32_s32): Likewise.
26343         (vreinterpret_f32_s64): Likewise.
26344         (vreinterpret_f32_u8): Likewise.
26345         (vreinterpret_f32_u16): Likewise.
26346         (vreinterpret_f32_u32): Likewise.
26347         (vreinterpret_f32_u64): Likewise.
26348         (vreinterpret_f32_p8): Likewise.
26349         (vreinterpret_f32_p16): Likewise.
26350         (vreinterpretq_f32_s8): Likewise.
26351         (vreinterpretq_f32_s16): Likewise.
26352         (vreinterpretq_f32_s32): Likewise.
26353         (vreinterpretq_f32_s64): Likewise.
26354         (vreinterpretq_f32_u8): Likewise.
26355         (vreinterpretq_f32_u16): Likewise.
26356         (vreinterpretq_f32_u32): Likewise.
26357         (vreinterpretq_f32_u64): Likewise.
26358         (vreinterpretq_f32_p8): Likewise.
26359         (vreinterpretq_f32_p16): Likewise.
26360         (vreinterpret_s64_s8): Likewise.
26361         (vreinterpret_s64_s16): Likewise.
26362         (vreinterpret_s64_s32): Likewise.
26363         (vreinterpret_s64_f32): Likewise.
26364         (vreinterpret_s64_u8): Likewise.
26365         (vreinterpret_s64_u16): Likewise.
26366         (vreinterpret_s64_u32): Likewise.
26367         (vreinterpret_s64_u64): Likewise.
26368         (vreinterpret_s64_p8): Likewise.
26369         (vreinterpret_s64_p16): Likewise.
26370         (vreinterpretq_s64_s8): Likewise.
26371         (vreinterpretq_s64_s16): Likewise.
26372         (vreinterpretq_s64_s32): Likewise.
26373         (vreinterpretq_s64_f32): Likewise.
26374         (vreinterpretq_s64_u8): Likewise.
26375         (vreinterpretq_s64_u16): Likewise.
26376         (vreinterpretq_s64_u32): Likewise.
26377         (vreinterpretq_s64_u64): Likewise.
26378         (vreinterpretq_s64_p8): Likewise.
26379         (vreinterpretq_s64_p16): Likewise.
26380         (vreinterpret_u64_s8): Likewise.
26381         (vreinterpret_u64_s16): Likewise.
26382         (vreinterpret_u64_s32): Likewise.
26383         (vreinterpret_u64_s64): Likewise.
26384         (vreinterpret_u64_f32): Likewise.
26385         (vreinterpret_u64_u8): Likewise.
26386         (vreinterpret_u64_u16): Likewise.
26387         (vreinterpret_u64_u32): Likewise.
26388         (vreinterpret_u64_p8): Likewise.
26389         (vreinterpret_u64_p16): Likewise.
26390         (vreinterpretq_u64_s8): Likewise.
26391         (vreinterpretq_u64_s16): Likewise.
26392         (vreinterpretq_u64_s32): Likewise.
26393         (vreinterpretq_u64_s64): Likewise.
26394         (vreinterpretq_u64_f32): Likewise.
26395         (vreinterpretq_u64_u8): Likewise.
26396         (vreinterpretq_u64_u16): Likewise.
26397         (vreinterpretq_u64_u32): Likewise.
26398         (vreinterpretq_u64_p8): Likewise.
26399         (vreinterpretq_u64_p16): Likewise.
26400         (vreinterpret_s8_s16): Likewise.
26401         (vreinterpret_s8_s32): Likewise.
26402         (vreinterpret_s8_s64): Likewise.
26403         (vreinterpret_s8_f32): Likewise.
26404         (vreinterpret_s8_u8): Likewise.
26405         (vreinterpret_s8_u16): Likewise.
26406         (vreinterpret_s8_u32): Likewise.
26407         (vreinterpret_s8_u64): Likewise.
26408         (vreinterpret_s8_p8): Likewise.
26409         (vreinterpret_s8_p16): Likewise.
26410         (vreinterpretq_s8_s16): Likewise.
26411         (vreinterpretq_s8_s32): Likewise.
26412         (vreinterpretq_s8_s64): Likewise.
26413         (vreinterpretq_s8_f32): Likewise.
26414         (vreinterpretq_s8_u8): Likewise.
26415         (vreinterpretq_s8_u16): Likewise.
26416         (vreinterpretq_s8_u32): Likewise.
26417         (vreinterpretq_s8_u64): Likewise.
26418         (vreinterpretq_s8_p8): Likewise.
26419         (vreinterpretq_s8_p16): Likewise.
26420         (vreinterpret_s16_s8): Likewise.
26421         (vreinterpret_s16_s32): Likewise.
26422         (vreinterpret_s16_s64): Likewise.
26423         (vreinterpret_s16_f32): Likewise.
26424         (vreinterpret_s16_u8): Likewise.
26425         (vreinterpret_s16_u16): Likewise.
26426         (vreinterpret_s16_u32): Likewise.
26427         (vreinterpret_s16_u64): Likewise.
26428         (vreinterpret_s16_p8): Likewise.
26429         (vreinterpret_s16_p16): Likewise.
26430         (vreinterpretq_s16_s8): Likewise.
26431         (vreinterpretq_s16_s32): Likewise.
26432         (vreinterpretq_s16_s64): Likewise.
26433         (vreinterpretq_s16_f32): Likewise.
26434         (vreinterpretq_s16_u8): Likewise.
26435         (vreinterpretq_s16_u16): Likewise.
26436         (vreinterpretq_s16_u32): Likewise.
26437         (vreinterpretq_s16_u64): Likewise.
26438         (vreinterpretq_s16_p8): Likewise.
26439         (vreinterpretq_s16_p16): Likewise.
26440         (vreinterpret_s32_s8): Likewise.
26441         (vreinterpret_s32_s16): Likewise.
26442         (vreinterpret_s32_s64): Likewise.
26443         (vreinterpret_s32_f32): Likewise.
26444         (vreinterpret_s32_u8): Likewise.
26445         (vreinterpret_s32_u16): Likewise.
26446         (vreinterpret_s32_u32): Likewise.
26447         (vreinterpret_s32_u64): Likewise.
26448         (vreinterpret_s32_p8): Likewise.
26449         (vreinterpret_s32_p16): Likewise.
26450         (vreinterpretq_s32_s8): Likewise.
26451         (vreinterpretq_s32_s16): Likewise.
26452         (vreinterpretq_s32_s64): Likewise.
26453         (vreinterpretq_s32_f32): Likewise.
26454         (vreinterpretq_s32_u8): Likewise.
26455         (vreinterpretq_s32_u16): Likewise.
26456         (vreinterpretq_s32_u32): Likewise.
26457         (vreinterpretq_s32_u64): Likewise.
26458         (vreinterpretq_s32_p8): Likewise.
26459         (vreinterpretq_s32_p16): Likewise.
26460         (vreinterpret_u8_s8): Likewise.
26461         (vreinterpret_u8_s16): Likewise.
26462         (vreinterpret_u8_s32): Likewise.
26463         (vreinterpret_u8_s64): Likewise.
26464         (vreinterpret_u8_f32): Likewise.
26465         (vreinterpret_u8_u16): Likewise.
26466         (vreinterpret_u8_u32): Likewise.
26467         (vreinterpret_u8_u64): Likewise.
26468         (vreinterpret_u8_p8): Likewise.
26469         (vreinterpret_u8_p16): Likewise.
26470         (vreinterpretq_u8_s8): Likewise.
26471         (vreinterpretq_u8_s16): Likewise.
26472         (vreinterpretq_u8_s32): Likewise.
26473         (vreinterpretq_u8_s64): Likewise.
26474         (vreinterpretq_u8_f32): Likewise.
26475         (vreinterpretq_u8_u16): Likewise.
26476         (vreinterpretq_u8_u32): Likewise.
26477         (vreinterpretq_u8_u64): Likewise.
26478         (vreinterpretq_u8_p8): Likewise.
26479         (vreinterpretq_u8_p16): Likewise.
26480         (vreinterpret_u16_s8): Likewise.
26481         (vreinterpret_u16_s16): Likewise.
26482         (vreinterpret_u16_s32): Likewise.
26483         (vreinterpret_u16_s64): Likewise.
26484         (vreinterpret_u16_f32): Likewise.
26485         (vreinterpret_u16_u8): Likewise.
26486         (vreinterpret_u16_u32): Likewise.
26487         (vreinterpret_u16_u64): Likewise.
26488         (vreinterpret_u16_p8): Likewise.
26489         (vreinterpret_u16_p16): Likewise.
26490         (vreinterpretq_u16_s8): Likewise.
26491         (vreinterpretq_u16_s16): Likewise.
26492         (vreinterpretq_u16_s32): Likewise.
26493         (vreinterpretq_u16_s64): Likewise.
26494         (vreinterpretq_u16_f32): Likewise.
26495         (vreinterpretq_u16_u8): Likewise.
26496         (vreinterpretq_u16_u32): Likewise.
26497         (vreinterpretq_u16_u64): Likewise.
26498         (vreinterpretq_u16_p8): Likewise.
26499         (vreinterpretq_u16_p16): Likewise.
26500         (vreinterpret_u32_s8): Likewise.
26501         (vreinterpret_u32_s16): Likewise.
26502         (vreinterpret_u32_s32): Likewise.
26503         (vreinterpret_u32_s64): Likewise.
26504         (vreinterpret_u32_f32): Likewise.
26505         (vreinterpret_u32_u8): Likewise.
26506         (vreinterpret_u32_u16): Likewise.
26507         (vreinterpret_u32_u64): Likewise.
26508         (vreinterpret_u32_p8): Likewise.
26509         (vreinterpret_u32_p16): Likewise.
26510         (vreinterpretq_u32_s8): Likewise.
26511         (vreinterpretq_u32_s16): Likewise.
26512         (vreinterpretq_u32_s32): Likewise.
26513         (vreinterpretq_u32_s64): Likewise.
26514         (vreinterpretq_u32_f32): Likewise.
26515         (vreinterpretq_u32_u8): Likewise.
26516         (vreinterpretq_u32_u16): Likewise.
26517         (vreinterpretq_u32_u64): Likewise.
26518         (vreinterpretq_u32_p8): Likewise.
26519         (vreinterpretq_u32_p16): Likewise.
26520
26521 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
26522
26523         * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
26524         Pattern extended.
26525         * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
26526         (sqabs): Likewise.
26527         * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
26528         (vqnegd_s64): Likewise.
26529         (vqabs_s64): Likewise.
26530         (vqabsd_s64): Likewise.
26531
26532 2014-04-22  Richard Henderson  <rth@redhat.com>
26533
26534         * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
26535         computation to the top of the loop.
26536
26537 2014-04-22  Renlin  <renlin.li@arm.com>
26538             Jiong Wang  <jiong.wang@arm.com>
26539
26540         * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
26541         * config/aarch64/aarch64.c (aarch64_layout_frame)
26542         (aarch64_initial_elimination_offset): Likewise.
26543
26544 2014-04-22  Marcus Shawcroft  <marcus.shawcroft@arm.com>
26545
26546         * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
26547         Fix indentation.
26548
26549 2014-04-22  Richard Sandiford  <rdsandiford@googlemail.com>
26550
26551         * machmode.h (bitwise_mode_for_mode): Declare.
26552         * stor-layout.h (bitwise_type_for_mode): Likewise.
26553         * stor-layout.c (bitwise_mode_for_mode): New function.
26554         (bitwise_type_for_mode): Likewise.
26555         * builtins.c (fold_builtin_memory_op): Use it instead of
26556         int_mode_for_mode and build_nonstandard_integer_type.
26557
26558 2014-04-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26559
26560         * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
26561         (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
26562         (*-*-solaris2*): Simplify.
26563         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
26564         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
26565         *-*-solaris2.9* handling.
26566
26567         * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
26568         as bug.
26569         (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
26570         (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
26571         handling, simplify.
26572         (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
26573         * configure: Regenerate.
26574
26575         * config/i386/sol2-9.h: Remove.
26576
26577         * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
26578         (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
26579         Remove Solaris 9 references.
26580
26581 2014-04-22  Vidya Praveen  <vidyapraveen@arm.com>
26582
26583         * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
26584         (floatuns<GPI:mode><GPF:mode>2): Remove.
26585         (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
26586         and floatuns conversions.
26587         (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
26588         and floatuns conversions.
26589         * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
26590         (w1,w2): New mode attributes for inequal width conversions.
26591
26592 2014-04-22  Renlin Li  <Renlin.Li@arm.com>
26593
26594         * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
26595         the output asm format.
26596
26597 2014-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
26598
26599         * config/aarch64/aarch64-simd.md
26600         (aarch64_cm<optab>di): Always split.
26601         (*aarch64_cm<optab>di): New.
26602         (aarch64_cmtstdi): Always split.
26603         (*aarch64_cmtstdi): New.
26604
26605 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
26606
26607         PR tree-optimization/60823
26608         * omp-low.c (ipa_simd_modify_function_body): Go through
26609         all SSA_NAMEs and for those refering to vector arguments
26610         which are going to be replaced adjust SSA_NAME_VAR and,
26611         if it is a default definition, change it into a non-default
26612         definition assigned at the beginning of function from new_decl.
26613         (ipa_simd_modify_stmt_ops): Rewritten.
26614         * tree-dfa.c (set_ssa_default_def): When removing default def,
26615         check for NULL loc instead of NULL *loc.
26616
26617 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26618
26619         * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
26620         restrictions on core registers for DImode values in Thumb2.
26621
26622 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
26623
26624         * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
26625         * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
26626
26627 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
26628
26629         * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
26630         (*iordi_notzesidi_di): Likewise.
26631         (*iordi_notsesidi_di): Likewise.
26632
26633 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
26634
26635         * config/arm/arm-protos.h (tune_params): New struct members.
26636         * config/arm/arm.c: Initialise tune_params per processor.
26637         (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
26638         for speed, based on new tune_params.
26639
26640 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
26641
26642         * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
26643         * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
26644         * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
26645         * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
26646         * config/aarch64/arm_neon.h (vrnd_f64): Added.
26647         (vrnda_f64): Likewise.
26648         (vrndi_f64): Likewise.
26649         (vrndm_f64): Likewise.
26650         (vrndn_f64): Likewise.
26651         (vrndp_f64): Likewise.
26652         (vrndx_f64): Likewise.
26653
26654 2014-04-22  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
26655
26656         * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
26657         GET_MODE_SIZE argument is enum machine_mode.
26658
26659 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
26660
26661         PR target/60910
26662         * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
26663         value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
26664
26665 2014-04-22  Lin Zuojian  <manjian2006@gmail.com>
26666
26667         PR middle-end/60281
26668         * asan.c (asan_emit_stack_protection): Force the base to align to
26669         appropriate bits if STRICT_ALIGNMENT.  Set shadow_mem align to
26670         appropriate bits if STRICT_ALIGNMENT.
26671         * cfgexpand.c (expand_stack_vars): Set base_align appropriately
26672         when asan is on.
26673         (expand_used_vars): Leave a space in the stack frame for alignment
26674         if STRICT_ALIGNMENT.
26675
26676 2014-04-21  David Malcolm  <dmalcolm@redhat.com>
26677
26678         * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
26679         than a gimple.
26680         (gimple_store_p): Likewise.
26681         (gimple_assign_load_p): Likewise.
26682         (gimple_assign_cast_p): Likewise.
26683         (gimple_clobber_p): Likewise.
26684
26685         * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
26686         rather than a gimple.
26687         (gimple_assign_cast_p): Likewise.
26688
26689 2014-04-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
26690
26691         PR target/60735
26692         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
26693         If mode is DDmode and TARGET_E500_DOUBLE allow move.
26694
26695         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
26696         more debug information for E500 if -mdebug=reg.
26697
26698 2014-04-21  Uros Bizjak  <ubizjak@gmail.com>
26699
26700         PR target/60909
26701         * config/i386/i386.c (ix86_expand_builtin)
26702         <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
26703         register for target RTX.
26704         <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
26705
26706 2014-04-18  Cong Hou  <congh@google.com>
26707
26708         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
26709         the widen-mult pattern by handling two operands with different sizes,
26710         and operands whose size is smaller than half of the result type.
26711
26712 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
26713
26714         * ipa-inline.h (INLINE_HINT_known_hot): New hint.
26715         * ipa-inline-analysis.c (dump_inline_hints): Dump it.
26716         (do_estimate_edge_time): Compute it.
26717         * ipa-inline.c (want_inline_small_function_p): Bypass
26718         INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
26719
26720 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
26721
26722         * ipa-inline.c (spec_rem): New static variable.
26723         (dump_overall_stats): New function.
26724         (dump_inline_stats): New function.
26725
26726 2014-04-18  Richard Henderson  <rth@redhat.com>
26727
26728         * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
26729         to GET_MODE_SIZE, not a reg_class_t.
26730
26731 2014-04-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26732
26733         * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
26734         (vsx_xxmrglw_<mode>): Likewise.
26735
26736 2014-04-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
26737
26738         PR target/60876
26739         * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
26740         GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
26741         (rs6000_init_hard_regno_mode_ok): Likewise.
26742
26743 2014-04-17  Jan Hubicka  <hubicka@ucw.cz>
26744
26745         * ipa-inline.c (inline_small_functions): Account only non-cold
26746         functions.
26747         * doc/invoke.texi (inline-unit-growth): Update documentation.
26748
26749 2014-04-17  Pat Haugen  <pthaugen@us.ibm.com>
26750
26751         * config/rs6000/rs6000.md (addti3, subti3): New.
26752
26753 2014-04-17  H.J. Lu  <hongjiu.lu@intel.com>
26754
26755         PR target/60863
26756         * config/i386/i386.c (ix86_expand_clear): Remove outdated
26757         comment.  Check optimize_insn_for_size_p instead of
26758         optimize_insn_for_speed_p.
26759
26760 2014-04-17  Martin Jambor  <mjambor@suse.cz>
26761
26762         * gimple-iterator.c (gsi_start_edge): New function.
26763         * gimple-iterator.h (gsi_start_edge): Declare.
26764         * tree-sra.c (single_non_eh_succ): New function.
26765         (disqualify_ops_if_throwing_stmt): Renamed to
26766         disqualify_if_bad_bb_terminating_stmt.  Allow throwing statements
26767         having one non-EH successor BB.
26768         (sra_modify_expr): If stmt ends bb, use single non-EH successor to
26769         generate loads into replacements.
26770         (sra_modify_assign): Likewise and and also use the simple path for
26771         such statements.
26772         (sra_modify_function_body): Commit statements on edges.
26773
26774 2014-04-17  Richard Biener  <rguenther@suse.de>
26775
26776         PR middle-end/60849
26777         * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
26778         comparison results and add clarifying comment.
26779
26780 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
26781
26782         * genmodes.c (struct mode_data): Add need_bytesize_adj field.
26783         (blank_mode): Initialize it.
26784         (emit_mode_size_inline, emit_mode_nunits_inline,
26785         emit_mode_inner_inline): New functions.
26786         (emit_insn_modes_h): Call them and surround their output with
26787         #if GCC_VERSION >= 4001 ... #endif.
26788         * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
26789         For GCC_VERSION >= 4001 use mode_*_inline routines instead of
26790         mode_* arrays if the argument is __builtin_constant_p.
26791         * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
26792         is enum machine_mode.
26793
26794 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
26795
26796         * passes.c (opt_pass::execute): Adjust.
26797         (pass_manager::execute_pass_mode_switching): Likewise.
26798         (early_local_passes::execute): Likewise.
26799         (execute_one_pass): Pass cfun to the pass's execute method.
26800         * tree-pass.h (opt_pass::execute): Add function * argument.
26801         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
26802         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
26803         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
26804         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
26805         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
26806         config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
26807         except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
26808         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
26809         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
26810         ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
26811         ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
26812         lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
26813         postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
26814         reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
26815         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
26816         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
26817         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
26818         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
26819         tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
26820         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
26821         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
26822         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
26823         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
26824         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
26825         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
26826         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
26827         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
26828         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
26829         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
26830         Adjust.
26831
26832 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
26833
26834         * passes.c (opt_pass::gate): Take function * argument.
26835         (gate_all_early_local_passes): Merge into
26836         (early_local_passes::gate): this.
26837         (gate_all_early_optimizations): Merge into
26838         (all_early_optimizations::gate): this.
26839         (gate_all_optimizations): Mege into
26840         (all_optimizations::gate): this.
26841         (gate_all_optimizations_g): Merge into
26842         (all_optimizations_g::gate): this.
26843         (gate_rest_of_compilation): Mege into
26844         (rest_of_compilation::gate): this.
26845         (gate_postreload): Merge into
26846         (postreload::gate): this.
26847         (dump_one_pass): Pass cfun to the pass's gate method.
26848         (execute_ipa_summary_passes): Likewise.
26849         (execute_one_pass): Likewise.
26850         (ipa_write_summaries_2): Likewise.
26851         (ipa_write_optimization_summaries_1): Likewise.
26852         (ipa_read_summaries_1): Likewise.
26853         (ipa_read_optimization_summaries_1): Likewise.
26854         (execute_ipa_stmt_fixups): Likewise.
26855         * tree-pass.h (opt_pass::gate): Add function * argument.
26856         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
26857         combine-stack-adj.c, combine.c, compare-elim.c,
26858         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
26859         config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
26860         config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
26861         dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c,  fwprop.c, gcse.c,
26862         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
26863         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
26864         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
26865         loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
26866         omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
26867         reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
26868         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
26869         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
26870         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
26871         tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
26872         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
26873         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
26874         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
26875         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
26876         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
26877         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
26878         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
26879         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
26880         tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
26881         tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
26882         var-tracking.c, vtable-verify.c, web.c: Adjust.
26883
26884 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
26885
26886         * configure.ac: Check for -Woverloaded-virtual and enable it if found.
26887         * configure: Regenerate.
26888
26889 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
26890
26891         * passes.c (dump_one_pass): don't check pass->has_gate.
26892         (execute_ipa_summary_passes): Likewise.
26893         (execute_one_pass): Likewise.
26894         (ipa_write_summaries_2): Likewise.
26895         (ipa_write_optimization_summaries_1): Likewise.
26896         (ipa_read_optimization_summaries_1): Likewise.
26897         (execute_ipa_stmt_fixups): Likewise.
26898         * tree-pass.h (pass_data::has_gate): Remove.
26899         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
26900         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
26901         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
26902         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
26903         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
26904         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
26905         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
26906         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
26907         gimple-low.c, gimple-ssa-isolate-paths.c,
26908         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
26909         ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
26910         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
26911         ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
26912         modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
26913         recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
26914         reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
26915         trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
26916         tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
26917         tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
26918         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
26919         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
26920         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
26921         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
26922         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
26923         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
26924         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
26925         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
26926         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
26927         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
26928         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
26929         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
26930         Adjust.
26931
26932 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
26933
26934         * pass_manager.h (pass_manager::register_dump_files_1): Remove
26935         declaration.
26936         * passes.c (pass_manager::register_dump_files_1): Merge into
26937         (pass_manager::register_dump_files): this, and remove its handling of
26938         properties since the pass always has the properties anyway.
26939         (pass_manager::pass_manager): Adjust.
26940
26941 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
26942
26943         * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
26944         * passes.c (pass_manager::register_dump_files_1): Remove dead code
26945         dealing with properties.
26946         (pass_manager::register_dump_files): Adjust.
26947
26948 2014-03-20  Mark Wielaard  <mjw@redhat.com>
26949
26950         * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
26951         then represent the bound as normal constant value.
26952
26953 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
26954
26955         PR target/60847
26956         Forward port from 4.8 branch
26957         2013-07-19  Kirill Yukhin  <kirill.yukhin@intel.com>
26958
26959         * config/i386/bmiintrin.h (_blsi_u32): New.
26960         (_blsi_u64): Ditto.
26961         (_blsr_u32): Ditto.
26962         (_blsr_u64): Ditto.
26963         (_blsmsk_u32): Ditto.
26964         (_blsmsk_u64): Ditto.
26965         (_tzcnt_u32): Ditto.
26966         (_tzcnt_u64): Ditto.
26967
26968 2014-04-17  Kito Cheng  <kito@0xlab.org>
26969
26970         * gcc.c (used_arg): Prevent out of bound access for multilib_options.
26971
26972 2014-04-17  Richard Biener  <rguenther@suse.de>
26973
26974         PR middle-end/60849
26975         * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
26976         boolean results for comparisons.
26977
26978 2014-04-17  Richard Biener  <rguenther@suse.de>
26979
26980         PR tree-optimization/60836
26981         * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
26982         initial PHI args to be gimple values.
26983
26984 2014-04-17  Richard Biener  <rguenther@suse.de>
26985
26986         PR tree-optimization/60841
26987         * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
26988         * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
26989         of stmts to SLP build.
26990         * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
26991         (vect_analyze_slp): Likewise.
26992         (vect_analyze_slp_instance): Likewise.
26993         (vect_build_slp_tree): Limit overall SLP tree growth.
26994         * tree-vectorizer.h (vect_analyze_data_refs,
26995         vect_analyze_slp): Adjust prototypes.
26996
26997 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
26998
26999         * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
27000         Silvermont.
27001
27002 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
27003
27004         * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
27005         * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
27006         * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
27007         for TARGET_SLOW_PSHUFB
27008
27009 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
27010
27011         * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
27012         * config/i386/i386.c (intel_cost): Ditto.
27013
27014 2014-04-17  Joey Ye  <joey.ye@arm.com>
27015
27016         * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
27017
27018 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
27019
27020         * opts.c (common_handle_option): Disable -fipa-reference coorectly
27021         with -fuse-profile.
27022
27023 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
27024
27025         * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
27026         (type_all_derivations_known_p): New predicate.
27027         (type_all_ctors_visible_p): New predicate.
27028         (type_possibly_instantiated_p): New predicate.
27029         (get_odr_type): Compute all_derivations_known.
27030         (dump_odr_type): Dump the flag.
27031         (maybe_record_type): Cleanup.
27032         (record_target_from_binfo): Add bases_to_consider array;
27033         record bases for types w/o instances and skip CXX destructor.
27034         (possible_polymorphic_call_targets_1): Add bases_to_consider
27035         and consider_construction parameters; check if type may have instance.
27036         (get_polymorphic_call_info): Set maybe_in_construction to true
27037         when we know nothing.
27038         (record_targets_from_bases): Skip CXX destructors; they are
27039         never called for types in construction.
27040         (possible_polymorphic_call_targets): Do not record target when
27041         type may not have instance.
27042
27043 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
27044
27045         PR ipa/60854
27046         * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
27047         external aliases alive, too.
27048
27049 2014-04-16  Andrew  Pinski  <apinski@cavium.com>
27050
27051         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
27052         definition.
27053
27054 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
27055
27056         * final.c (compute_alignments): Do not apply loop alignment to a block
27057         falling through to the exit.
27058
27059 2014-04-16  Catherine Moore  <clm@codesourcery.com>
27060
27061         * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
27062         Adjust constraints for microMIPS store patterns.
27063
27064 2014-04-16  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
27065
27066         * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
27067
27068 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
27069
27070         * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
27071         (append_use): Run at -O0.
27072         (append_vdef): Likewise.
27073         * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
27074         * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
27075
27076 2014-04-16  Jakub Jelinek  <jakub@redhat.com>
27077
27078         PR tree-optimization/60844
27079         * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
27080         (propagate_op_to_single_use, remove_visited_stmt_chain,
27081         linearize_expr, repropagate_negates, reassociate_bb): Use it
27082         instead of gsi_remove.
27083
27084 2014-04-16  Martin Jambor  <mjambor@suse.cz>
27085
27086         * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
27087         ipa_transforms_to_apply.
27088         (cgraph_function_versioning): Assert that old_node has empty
27089         ipa_transforms_to_apply.
27090         * trans-mem.c (ipa_tm_create_version): Likewise.
27091         * tree-inline.c (tree_function_versioning): Do not duplicate
27092         ipa_transforms_to_apply.
27093
27094 2014-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27095
27096         PR target/60817
27097         * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
27098         x86_64-*-* cases.
27099         Pass necessary as flags on 64-bit Solaris/x86.
27100         Use lowercase relocs for x86_64-*-*.
27101         * configure: Regenerate.
27102
27103 2014-04-15  Jan Hubicka  <jh@suse.cz>
27104
27105         * ipa-devirt.c (referenced_from_vtable_p): New predicate.
27106         (maybe_record_node, likely_target_p): Use it.
27107
27108 2014-04-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27109
27110         PR target/60839
27111         Revert following patch
27112
27113         2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
27114
27115         PR target/60735
27116         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
27117         software floating point or no floating point registers, do not
27118         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
27119         in GPRs that occurs after we tested for GPRs that would never be
27120         true.
27121
27122         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
27123         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
27124         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
27125         specifically allow DDmode, since that does not use the SPE SIMD
27126         instructions.
27127
27128 2014-03-21  Mark Wielaard  <mjw@redhat.com>
27129
27130         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
27131         as unsigned or int depending on type and value used.
27132
27133 2014-04-15  Richard Biener  <rguenther@suse.de>
27134
27135         PR rtl-optimization/56965
27136         * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
27137         * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
27138         ... here.
27139         * alias.c (true_dependence_1): Do not call
27140         nonoverlapping_component_refs_p.
27141         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
27142         nonoverlapping_component_refs_p.
27143         (indirect_refs_may_alias_p): Likewise.
27144
27145 2014-04-15  Teresa Johnson  <tejohnson@google.com>
27146
27147         * cfg.c (dump_bb_info): Fix flags check.
27148         * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
27149
27150 2014-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27151
27152         PR rtl-optimization/60663
27153         * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
27154         avoid 0 cost.
27155
27156 2014-04-15  Richard Biener  <rguenther@suse.de>
27157
27158         * lto-streamer.h (LTO_major_version): Bump to 4.
27159
27160 2014-04-15  Richard Biener  <rguenther@suse.de>
27161
27162         * common.opt (lto_partition_model): New enum.
27163         (flto-partition=): Merge separate options with a single with argument,
27164         add -flto-partition=one support.
27165         * flag-types.h (enum lto_partition_model): Declare.
27166         * opts.c (finish_options): Remove duplicate -flto-partition=
27167         option check.
27168         * lto-wrapper.c (run_gcc): Adjust.
27169
27170 2014-04-15  Richard Biener  <rguenther@suse.de>
27171
27172         * alias.c (ncr_compar): New function.
27173         (nonoverlapping_component_refs_p): Re-implement in O (n log n).
27174
27175 2014-04-15  Richard Biener  <rguenther@suse.de>
27176
27177         * alias.c (record_component_aliases): Do not walk BINFOs.
27178
27179 2014-04-15  Richard Biener  <rguenther@suse.de>
27180
27181         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
27182         Add struct function argument and adjust.
27183         (find_func_aliases_for_call): Likewise.
27184         (find_func_aliases): Likewise.
27185         (find_func_clobbers): Likewise.
27186         (intra_create_variable_infos): Likewise.
27187         (compute_points_to_sets): Likewise.
27188         (ipa_pta_execute): Adjust.  Do not push/pop cfun.
27189
27190 2014-04-15  Richard Biener  <rguenther@suse.de>
27191
27192         * tree.c (iterative_hash_expr): Use enum tree_code_class
27193         to store TREE_CODE_CLASS.
27194         (tree_block): Likewise.
27195         (tree_set_block): Likewise.
27196         * tree.h (fold_build_pointer_plus_loc): Use
27197         convert_to_ptrofftype_loc.
27198
27199 2014-04-15  Jakub Jelinek  <jakub@redhat.com>
27200
27201         PR plugins/59335
27202         * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
27203         added in 4.9.
27204
27205 2014-04-15  Eric Botcazou  <ebotcazou@adacore.com>
27206
27207         * cfgloop.h (struct loop): Move force_vectorize down.
27208         * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
27209         (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
27210         * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
27211         * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
27212         * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
27213         * tree-core.h (enum annot_expr_kind): Add new kind values.
27214         * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
27215         * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
27216         kinds.
27217         * tree.def (ANNOTATE_EXPR): Tweak comment.
27218
27219 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
27220
27221         * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
27222         cxa_pure_virtual).
27223
27224 2014-04-14  Paolo Carlini  <paolo.carlini@oracle.com>
27225
27226         * tree.h (TYPE_IDENTIFIER): Declare.
27227         * tree.c (subrange_type_for_debug_p): Use it.
27228         * godump.c (go_format_type): Likewise.
27229         * dwarf2out.c (is_cxx_auto, modified_type_die,
27230         gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
27231         * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
27232
27233 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
27234
27235         PR lto/60820
27236         * varpool.c (varpool_remove_node): Do not alter decls when streaming.
27237
27238 2014-04-14  Uros Bizjak  <ubizjak@gmail.com>
27239
27240         * config/i386/i386.c (examine_argument): Return bool.  Return true if
27241         parameter should be passed in memory.
27242         <case X86_64_COMPLEX_X87_CLASS>: Adjust.
27243         (construct_container): Update calls to examine_argument.
27244         (function_arg_advance_64): Ditto.
27245         (return_in_memory_32): Merge with ix86_return_in_memory.
27246         (return_in_memory_64): Ditto.
27247         (return_in_memory_ms_64): Ditto.
27248
27249 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
27250
27251         * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
27252         * coverage.c (coverage_compute_profile_id): Handle externally visible
27253         symbols.
27254
27255 2014-04-14  Martin Jambor  <mjambor@suse.cz>
27256
27257         * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
27258         DECL_DISREGARD_INLINE_LIMITS functions.
27259
27260 2014-04-14  H.J. Lu  <hongjiu.lu@intel.com>
27261
27262         PR target/60827
27263         * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
27264
27265 2014-04-14  H.J. Lu  <hongjiu.lu@intel.com>
27266
27267         PR target/60827
27268         * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
27269         optimize_insn_for_speed_p instead of
27270         optimize_function_for_speed_p.
27271
27272 2014-04-14  Yufeng Zhang  <yufeng.zhang@arm.com>
27273
27274         * doc/invoke.texi (free): Document AArch64.
27275
27276 2014-04-14  Richard Biener  <rguenther@suse.de>
27277
27278         PR tree-optimization/60042
27279         * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
27280         (insert_into_preds_of_block): Do not prevent PHI insertion
27281         for REFERENCE exprs here ...
27282         (eliminate_dom_walker::before_dom_children): ... but prevent
27283         their use here under similar conditions when applied to the
27284         IL after PRE optimizations.
27285
27286 2014-04-14  Richard Biener  <rguenther@suse.de>
27287
27288         * passes.def: Move early points-to after early SRA.
27289
27290 2014-04-14  Richard Biener  <rguenther@suse.de>
27291
27292         * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
27293         check for which sign-changes we allow when forwarding
27294         a converted value into a switch.
27295
27296 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
27297
27298         * stor-layout.c (place_field): Finalize non-constant offset for the
27299         field, if any.
27300
27301 2014-04-14  Richard Biener  <rguenther@suse.de>
27302
27303         * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
27304         as argument.
27305         (expand_switch_using_bit_tests_p): Likewise.
27306         (process_switch): Compute and pass on speed_p based on the
27307         switch stmt.
27308         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
27309         optimize_bb_for_speed_p.
27310
27311 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
27312
27313         * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
27314         * function.h (struct function): Rename has_force_vect_loops into
27315         has_force_vectorize_loops.
27316         * lto-streamer-in.c (input_cfg): Adjust for renaming.
27317         (input_struct_function_base): Likewise.
27318         * lto-streamer-out.c (output_cfg): Likewise.
27319         (output_struct_function_base): Likewise.
27320         * omp-low.c (expand_omp_simd): Likewise.
27321         * tree-cfg.c (move_sese_region_to_fn): Likewise.
27322         * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
27323         (version_loop_for_if_conversion): Likewise.
27324         (tree_if_conversion): Likewise.
27325         (main_tree_if_conversion): Likewise.
27326         (gate_tree_if_conversion): Likewise.
27327         * tree-inline.c (copy_loops): Likewise.
27328         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
27329         * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
27330         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
27331         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
27332         * tree-vectorizer.c (vectorize_loops): Likewise.
27333         * tree-vectorizer.h (unlimited_cost_model): Likewise.
27334
27335 2014-04-14  Richard Biener  <rguenther@suse.de>
27336
27337         PR lto/60720
27338         * lto-streamer-out.c (wrap_refs): New function.
27339         (lto_output): Wrap symbol references in global initializes in
27340         type-preserving MEM_REFs.
27341
27342 2014-04-14  Christian Bruel  <christian.bruel@st.com>
27343
27344         * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
27345
27346 2014-04-14  Christian Bruel  <christian.bruel@st.com>
27347
27348         * config/sh/sh.md (setmemqi): New expand pattern.
27349         * config/sh/sh.h (CLEAR_RATIO): Define.
27350         * config/sh/sh-mem.cc (sh_expand_setmem): Define.
27351         * config/sh/sh-protos.h (sh_expand_setmem): Declare.
27352
27353 2014-04-14  Richard Biener  <rguenther@suse.de>
27354
27355         PR middle-end/55022
27356         * fold-const.c (negate_expr_p): Don't negate directional rounding
27357         division.
27358         (fold_negate_expr): Likewise.
27359
27360 2014-04-14  Richard Biener  <rguenther@suse.de>
27361
27362         PR tree-optimization/59817
27363         PR tree-optimization/60453
27364         * graphite-scop-detection.c (graphite_can_represent_scev): Complete
27365         recursion to catch all CHRECs in the scalar evolution and restrict
27366         the predicate for the remains appropriately.
27367
27368 2014-04-12  Catherine Moore  <clm@codesourcery.com>
27369
27370         * config/mips/constraints.md: Add new register constraint "kb".
27371         * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
27372         (*movhi_internal): Likewise.
27373         (*movqi_internal): Likewise.
27374         * config/mips/mips.h (M16_STORE_REGS): New register class.
27375         (REG_CLASS_NAMES): Add M16_STORE_REGS.
27376         (REG_CLASS_CONTENTS): Likewise.
27377         * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
27378
27379 2014-04-11  Tobias Burnus  <burnus@net-b.de>
27380
27381         PR c/60194
27382         * doc/invoke.texi (-Wformat-signedness): Document it.
27383         (Wformat=2): Mention that this enables -Wformat-signedness.
27384
27385 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
27386
27387         * common/config/epiphany/epiphany-common.c
27388         (epiphany_option_optimization_table): Enable section anchors by
27389         default at -O1 or higher.
27390         * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
27391         (TARGET_MIN_ANCHOR_OFFSET): Likewise.
27392         (epiphany_rtx_costs) <SET>: For binary operators, the set as such
27393         carries no extra cost.
27394         (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
27395         * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
27396         * config/epiphany/predicates.md (memclob_operand): New predicate.
27397         * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
27398         Use memclob_operand predicate and X constraint for operand 3.
27399
27400 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
27401
27402         * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
27403         with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
27404         its operands.
27405
27406 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
27407
27408         PR rtl-optimization/60651
27409         * mode-switching.c (optimize_mode_switching): Make sure to emit
27410         sets of a lower numbered entity before sets of a higher numbered
27411         entity to a mode of the same or lower priority.
27412         When creating a seginfo for a basic block that starts with a code
27413         label, move the insertion point past the code label.
27414         (new_seginfo): Document and enforce requirement that
27415         NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
27416         * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
27417         * doc/tm.texi: Regenerate.
27418
27419 2014-01-11  Joern Rennecke  <joern.rennecke@embecosm.com>
27420
27421         PR target/60811
27422         * config/arc/arc.c (arc_save_restore): Fix assert typo.
27423
27424 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
27425
27426         * BASE-VER: Set to 4.10.0.
27427
27428 2014-04-11  Tobias Burnus  <burnus@net-b.de>
27429
27430         PR other/59055
27431         * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
27432         * doc/gcc.texi (Service): Update description in the @menu
27433         * doc/invoke.texi (Option Summary): Remove misplaced and
27434         duplicated @menu.
27435
27436 2014-04-11  Steve Ellcey  <sellcey@mips.com>
27437             Jakub Jelinek  <jakub@redhat.com>
27438
27439         PR middle-end/60556
27440         * expr.c (convert_move): Use emit_store_flag_force instead of
27441         emit_store_flag.  Pass lowpart_mode instead of VOIDmode as 5th
27442         argument to it.
27443
27444 2014-04-11  Richard Biener  <rguenther@suse.de>
27445
27446         PR middle-end/60797
27447         * varasm.c (assemble_alias): Avoid endless error reporting
27448         recursion by setting TREE_ASM_WRITTEN.
27449
27450 2014-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27451
27452         * config/s390/s390.md: Add a splitter for NOT rtx.
27453
27454 2014-04-11  Jakub Jelinek  <jakub@redhat.com>
27455
27456         PR rtl-optimization/60663
27457         * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
27458
27459 2014-04-10  Jan Hubicka  <hubicka@ucw.cz>
27460             Jakub Jelinek  <jakub@redhat.com>
27461
27462         PR lto/60567
27463         * ipa.c (function_and_variable_visibility): Copy forced_by_abi
27464         flag from decl_node to node.
27465
27466 2014-04-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
27467
27468         PR debug/60655
27469         * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
27470         (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
27471         ameliorating the cases where it can be.
27472
27473 2014-04-09  David Edelsohn  <dje.gcc@gmail.com>
27474
27475         Revert
27476         2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
27477
27478         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
27479         (loadsync_<mode>): Change mode.
27480         (load_quadpti, store_quadpti): New.
27481         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
27482         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
27483         * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
27484
27485 2014-04-09  Cong Hou  <congh@google.com>
27486
27487         PR testsuite/60773
27488         * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
27489         documentation.
27490
27491 2014-04-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27492
27493         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
27494         instead of vnor to exploit possible fusion opportunity in the
27495         future.
27496         (altivec_expand_vec_perm_const_le): Likewise.
27497
27498 2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
27499
27500         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
27501         (loadsync_<mode>): Change mode.
27502         (load_quadpti, store_quadpti): New.
27503         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
27504         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
27505
27506 2014-04-08  Richard Sandiford  <rdsandiford@googlemail.com>
27507
27508         PR target/60763
27509         * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
27510         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
27511         Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
27512
27513 2014-04-08  Richard Biener  <rguenther@suse.de>
27514
27515         PR middle-end/60706
27516         * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
27517         a 64bit widest int print double-int similar to on HWI64 hosts.
27518
27519 2014-04-08  Richard Biener  <rguenther@suse.de>
27520
27521         PR tree-optimization/60785
27522         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
27523         default defs properly.
27524
27525 2014-04-08  Nathan Sidwell  <nathan@codesourcery.com>
27526
27527         * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
27528         (Weffc++): Likewise.
27529
27530 2014-04-07  Jan Hubicka  <hubcika@ucw.cz>
27531
27532         * ipa-devirt.c (maybe_record_node): When node is not recorded,
27533         set completep to false rather than true.
27534
27535 2014-04-07  Douglas B Rupp  <rupp@adacore.com>
27536
27537         PR target/60504
27538         * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
27539         ARM_TARGET2_DWARF_FORMAT.
27540
27541 2014-04-07  Charles Baylis  <charles.baylis@linaro.org>
27542
27543         PR target/60609
27544         * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
27545         (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
27546         ADDR_DIFF_VEC.
27547
27548 2014-04-07  Richard Biener  <rguenther@suse.de>
27549
27550         PR tree-optimization/60766
27551         * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
27552         (may_eliminate_iv): Convert cand_value_at result to desired type.
27553
27554 2014-04-07  Jason Merrill  <jason@redhat.com>
27555
27556         PR c++/60731
27557         * common.opt (-fno-gnu-unique): Add.
27558         * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
27559
27560 2014-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27561
27562         * haifa-sched.c: Fix outdated function reference and minor
27563         grammar errors in introductory comment.
27564
27565 2014-04-07  Richard Biener  <rguenther@suse.de>
27566
27567         PR middle-end/60750
27568         * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
27569         for noreturn calls.
27570         * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
27571
27572 2014-04-06  John David Anglin  <danglin@gcc.gnu.org>
27573
27574         PR debug/55794
27575         * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
27576         size accounting for thunks.
27577         (pa_asm_output_mi_thunk): Use final_start_function() and
27578         final_end_function() to output function start and end directives.
27579
27580 2014-04-05  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
27581
27582         * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
27583         device specific ISA/ feature information. Remove short_sp and
27584         errata_skip ds.  Add avr_device_specific_features enum to have device
27585         specific info.
27586         * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
27587         errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
27588         * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
27589         updated device specific info.
27590         * config/avr/avr-mcus.def: Merge device specific details to
27591         dev_attribute field.
27592         * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
27593         errata_skip.
27594         * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
27595         * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
27596         assembler if RMW isa supported by current device.
27597         * config/avr/genmultilib.awk: Update as device info structure changed.
27598         * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
27599
27600 2014-04-04  Cong Hou  <congh@google.com>
27601
27602         PR tree-optimization/60656
27603         * tree-vect-stmts.c (supportable_widening_operation):
27604         Fix a bug that elements in a vector with vect_used_by_reduction
27605         property are incorrectly reordered when the operation on it is not
27606         consistant with the one in reduction operation.
27607
27608 2014-04-04  John David Anglin  <danglin@gcc.gnu.org>
27609
27610         PR rtl-optimization/60155
27611         * gcse.c (record_set_data): New function.
27612         (single_set_gcse): New function.
27613         (gcse_emit_move_after): Use single_set_gcse instead of single_set.
27614         (hoist_code): Likewise.
27615         (get_pressure_class_and_nregs): Likewise.
27616
27617 2014-04-04  Eric Botcazou  <ebotcazou@adacore.com>
27618
27619         * explow.c (probe_stack_range): Emit a final optimization blockage.
27620
27621 2014-04-04  Anthony Green  <green@moxielogic.com>
27622
27623         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
27624         typos.
27625
27626 2014-04-04  Jan Hubicka  <hubicka@ucw.cz>
27627
27628         PR ipa/59626
27629         * lto-cgraph.c (input_overwrite_node): Check that partitioning
27630         flags are set only during streaming.
27631         * ipa.c (process_references, walk_polymorphic_call_targets,
27632         symtab_remove_unreachable_nodes): Drop bodies of always inline
27633         after early inlining.
27634         (symtab_remove_unreachable_nodes): Remove always_inline attribute.
27635
27636 2014-04-04  Jakub Jelinek  <jakub@redhat.com>
27637         Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
27638
27639         PR debug/60655
27640         * dwarf2out.c (const_ok_for_output_1): Reject expressions
27641         containing a NOT.
27642
27643 2014-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27644
27645         PR bootstrap/60743
27646         * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
27647         duration.
27648         (cortex_a53_fdivd): Likewise.
27649
27650 2014-04-04  Martin Jambor  <mjambor@suse.cz>
27651
27652         PR ipa/60640
27653         * cgraph.h (cgraph_clone_node): New parameter added to declaration.
27654         Adjust all callers.
27655         * cgraph.c (clone_of_p): Also return true if thunks match.
27656         (verify_edge_corresponds_to_fndecl): Removed extraneous call to
27657         cgraph_function_or_thunk_node and an obsolete comment.
27658         * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
27659         file.
27660         (build_function_decl_skip_args): Likewise.
27661         (set_new_clone_decl_and_node_flags): New function.
27662         (duplicate_thunk_for_node): Likewise.
27663         (redirect_edge_duplicating_thunks): Likewise.
27664         (cgraph_clone_node): New parameter args_to_skip, pass it to
27665         redirect_edge_duplicating_thunks which is called instead of
27666         cgraph_redirect_edge_callee.
27667         (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
27668         moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
27669
27670 2014-04-04  Jeff Law  <law@redhat.com>
27671
27672         PR target/60657
27673         * config/arm/predicates.md (const_int_I_operand): New predicate.
27674         (const_int_M_operand): Similarly.
27675         * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
27676         const_int_operand.
27677         (insv_t2, extv_reg, extzv_t2): Likewise.
27678         (load_multiple_with_writeback): Similarly for const_int_I_operand.
27679         (pop_multiple_with_writeback_and_return): Likewise.
27680         (vfp_pop_multiple_with_writeback): Likewise
27681
27682 2014-04-04  Richard Biener  <rguenther@suse.de>
27683
27684         PR ipa/60746
27685         * tree-ssanames.c (make_ssa_name_fn): Fix assert.
27686         * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
27687         non-GIMPLE_LABELs.
27688         * gimplify.h (gimple_add_tmp_var_fn): Declare.
27689         * gimplify.c (gimple_add_tmp_var_fn): New function.
27690         * gimple-expr.h (create_tmp_reg_fn): Declare.
27691         * gimple-expr.c (create_tmp_reg_fn): New function.
27692         * gimple-low.c (record_vars_into): Don't change cfun.
27693         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
27694         code generation without cfun.
27695
27696 2014-04-04  Thomas Schwinge  <thomas@codesourcery.com>
27697
27698         PR bootstrap/60719
27699         * Makefile.in (install-driver): Fix shell scripting.
27700
27701 2014-04-03  Cong Hou  <congh@google.com>
27702
27703         PR tree-optimization/60505
27704         * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
27705         threshold of number of iterations below which no vectorization
27706         will be done.
27707         * tree-vect-loop.c (new_loop_vec_info):
27708         Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
27709         * tree-vect-loop.c (vect_analyze_loop_operations):
27710         Set LOOP_VINFO_COST_MODEL_THRESHOLD.
27711         * tree-vect-loop.c (vect_transform_loop):
27712         Use LOOP_VINFO_COST_MODEL_THRESHOLD.
27713         * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
27714         of iterations of the loop and see if we should build the epilogue.
27715
27716 2014-04-03  Richard Biener  <rguenther@suse.de>
27717
27718         * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
27719         (streamer_tree_cache_create): Adjust.
27720         * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
27721         to allow optional nodes array.
27722         (streamer_tree_cache_insert_1): Use next_idx to assign idx.
27723         (streamer_tree_cache_append): Likewise.
27724         (streamer_tree_cache_create): Create nodes array optionally
27725         as specified by parameter.
27726         * lto-streamer-out.c (create_output_block): Avoid maintaining
27727         the node array in the writer cache.
27728         (DFS_write_tree): Remove assertion.
27729         (produce_asm_for_decls): Free the out decl state hash table early.
27730         * lto-streamer-in.c (lto_data_in_create): Adjust for
27731         streamer_tree_cache_create prototype change.
27732
27733 2014-04-03  Richard Biener  <rguenther@suse.de>
27734
27735         * tree-streamer-out.c (streamer_write_chain): Do not temporarily
27736         set TREE_CHAIN to NULL_TREE.
27737
27738 2014-04-03  Richard Biener  <rguenther@suse.de>
27739
27740         PR tree-optimization/60740
27741         * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
27742         over all GIMPLE_COND operands.
27743
27744 2014-04-03  Nathan Sidwell  <nathan@codesourcery.com>
27745
27746         * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
27747         (Weffc++): Remove Scott's numbering, merge lists and reference
27748         Wnon-virtual-dtor.
27749
27750 2014-04-03  Nick Clifton  <nickc@redhat.com>
27751
27752         * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
27753         properly.
27754
27755 2014-04-03  Martin Jambor  <mjambor@suse.cz>
27756
27757         * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
27758         mention gcc_unreachable before failing.
27759         * ipa.c (symtab_remove_unreachable_nodes): Also print order of
27760         removed symbols.
27761
27762 2014-04-02  Jan Hubicka  <hubicka@ucw.cz>
27763
27764         PR ipa/60659
27765         * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
27766         inconsistent code and instead mark the context inconsistent.
27767         (possible_polymorphic_call_targets): For inconsistent contexts
27768         return empty complete list.
27769
27770 2014-04-02  Anthony Green  <green@moxielogic.com>
27771
27772         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
27773         (extendqisi2, extendhisi2): Define.
27774         * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
27775         (WCHAR_TYPE): Change to unsigned int.
27776
27777 2014-04-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27778
27779         PR tree-optimization/60733
27780         * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
27781         insertion point for PHI candidates to be the end of the feeding
27782         block for the PHI argument.
27783
27784 2014-04-02  Vladimir Makarov  <vmakarov@redhat.com>
27785
27786         PR rtl-optimization/60650
27787         * lra-constraints.c (process_alt_operands): Decrease reject for
27788         earlyclobber matching.
27789
27790 2014-04-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27791
27792         * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
27793
27794 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27795
27796         * config/spu/spu.c (pad_bb): Do not crash when the last
27797         insn is CODE_FOR_blockage.
27798
27799 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27800
27801         * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
27802         lies outside the target mode.
27803
27804 2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
27805
27806         PR target/60735
27807         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
27808         software floating point or no floating point registers, do not
27809         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
27810         in GPRs that occurs after we tested for GPRs that would never be
27811         true.
27812
27813         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
27814         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
27815         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
27816         specifically allow DDmode, since that does not use the SPE SIMD
27817         instructions.
27818
27819 2014-04-02  Richard Biener  <rguenther@suse.de>
27820
27821         PR middle-end/60729
27822         * optabs.c (expand_abs_nojump): Honor flag_trapv only for
27823         MODE_INTs.  Properly use negv_optab.
27824         (expand_abs): Likewise.
27825
27826 2014-04-02  Richard Biener  <rguenther@suse.de>
27827
27828         PR bootstrap/60719
27829         * Makefile.in (install-driver): Guard extra installs with special
27830         names properly.
27831
27832 2014-04-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
27833
27834         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
27835         Document vec_vgbbd.
27836
27837 2014-04-01  Richard Henderson  <rth@redhat.com>
27838
27839         PR target/60704
27840         * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
27841         alternative enabled before register allocation.
27842
27843 2014-04-01  Chung-Lin Tang  <cltang@codesourcery.com>
27844
27845         * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
27846         * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
27847         typo.
27848         (nios2_large_got_address): Remove unneeded 'sym' parameter.
27849         (nios2_got_address): Update nios2_large_got_address call site.
27850         (nios2_delegitimize_address): New function.
27851         (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
27852         * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
27853         (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
27854
27855 2014-04-01  Martin Husemann  <martin@duskware.de>
27856
27857         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
27858         for -mabi=32.
27859
27860 2014-04-01  Richard Sandiford  <rdsandiford@googlemail.com>
27861
27862         PR rtl-optimization/60604
27863         * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
27864         check from register_operand.
27865         (register_operand): Redefine in terms of general_operand.
27866         (nonmemory_operand): Use register_operand for the non-constant cases.
27867
27868 2014-04-01  Richard Biener  <rguenther@suse.de>
27869
27870         * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
27871
27872 2014-04-01  Sebastian Huber  <sebastian.huber@embedded-brains.de>
27873
27874         * doc/invoke.texi (mapp-regs): Clarify.
27875
27876 2014-03-31  Ulrich Drepper  <drepper@gmail.com>
27877
27878         * config/i386/avx512fintrin.h (__v32hi): Define type.
27879         (__v64qi): Likewise.
27880         (_mm512_set1_epi8): Define.
27881         (_mm512_set1_epi16): Define.
27882         (_mm512_set4_epi32): Define.
27883         (_mm512_set4_epi64): Define.
27884         (_mm512_set4_pd): Define.
27885         (_mm512_set4_ps): Define.
27886         (_mm512_setr4_epi64): Define.
27887         (_mm512_setr4_epi32): Define.
27888         (_mm512_setr4_pd): Define.
27889         (_mm512_setr4_ps): Define.
27890         (_mm512_setzero_epi32): Define.
27891
27892 2014-03-31  Martin Jambor  <mjambor@suse.cz>
27893
27894         PR middle-end/60647
27895         * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
27896         callsite_arguments_match_p.  Updated all callers.  Also check types of
27897         corresponding formal parameters and actual arguments.
27898         (not_all_callers_have_enough_arguments_p) Renamed to
27899         some_callers_have_mismatched_arguments_p.
27900
27901 2014-03-31  Yuri Rumyantsev  <ysrumyan@gmail.com>
27902
27903         * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
27904
27905 2014-03-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
27906
27907         PR target/60034
27908         * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
27909         section anchor.
27910
27911 2014-03-30  Uros Bizjak  <ubizjak@gmail.com>
27912
27913         * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
27914         (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
27915         Split out
27916         <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
27917         Use FMAMODE_NOVF512 mode iterator.
27918         (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
27919         (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
27920         (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
27921         (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
27922         Split out
27923         <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
27924         Use VF_128_256 mode iterator.
27925         (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
27926         Ditto.
27927
27928 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
27929
27930         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
27931         static chain if needed.
27932
27933 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
27934
27935         PR target/60697
27936         * lra-constraints.c (index_part_to_reg): New.
27937         (process_address): Use it.
27938
27939 2014-03-27  Jeff Law  <law@redhat.com>
27940             Jakub Jelinek  <jakub@redhat.com>
27941
27942         PR target/60648
27943         * expr.c (do_tablejump): Use simplify_gen_binary rather than
27944         gen_rtx_{PLUS,MULT} to build up the address expression.
27945
27946         * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
27947         creating non-canonical RTL.
27948
27949 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
27950
27951         PR ipa/60243
27952         * ipa-inline.c (want_inline_small_function_p): Short circuit large
27953         functions; reorganize to make cheap checks first.
27954         (inline_small_functions): Do not estimate growth when dumping;
27955         it is expensive.
27956         * ipa-inline.h (inline_summary): Add min_size.
27957         (growth_likely_positive): New function.
27958         * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
27959         (set_cond_stmt_execution_predicate): Cleanup.
27960         (estimate_edge_size_and_time): Compute min_size.
27961         (estimate_calls_size_and_time): Likewise.
27962         (estimate_node_size_and_time): Likewise.
27963         (inline_update_overall_summary): Update min_size.
27964         (do_estimate_edge_time): Likewise.
27965         (do_estimate_edge_size): Update.
27966         (do_estimate_edge_hints): Update.
27967         (growth_likely_positive): New function.
27968
27969 2014-03-28  Jakub Jelinek  <jakub@redhat.com>
27970
27971         PR target/60693
27972         * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
27973         also if addr has VOIDmode.
27974
27975 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27976
27977         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
27978         * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
27979         Declare extern.
27980         * config/arm/cortex-a53.md: Add reservations and bypass for crypto
27981         instructions as well as AdvancedSIMD loads.
27982
27983 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27984
27985         * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
27986         Use crypto_aese type.
27987         (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
27988         * config/arm/arm.md (is_neon_type): Replace crypto_aes with
27989         crypto_aese, crypto_aesmc.  Move to types.md.
27990         * config/arm/types.md (crypto_aes): Split into crypto_aese,
27991         crypto_aesmc.
27992         * config/arm/iterators.md (crypto_type): Likewise.
27993
27994 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
27995
27996         * cgraph.c: Include expr.h and tree-dfa.h.
27997         (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
27998         remove LHS.
27999
28000 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
28001
28002         PR target/60675
28003         * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
28004         regs from checking multi-reg pseudos.
28005
28006 2014-03-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
28007
28008         * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
28009
28010 2014-03-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28011
28012         * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
28013         if it would clobber the stack pointer, even temporarily.
28014
28015 2014-03-28  Eric Botcazou  <ebotcazou@adacore.com>
28016
28017         * mode-switching.c: Make small adjustments to the top comment.
28018
28019 2014-03-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
28020
28021         * config/rs6000/constraints.md (wD constraint): New constraint to
28022         match the constant integer to get the top DImode/DFmode out of a
28023         vector in a VSX register.
28024
28025         * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
28026         match the constant integer to get the top DImode/DFmode out of a
28027         vector in a VSX register.
28028
28029         * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
28030         for ISA 2.07.
28031
28032         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
28033         vbpermq builtins.
28034
28035         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
28036         -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
28037
28038         * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
28039         Optimize vec_extract of 64-bit values, where the value being
28040         extracted is in the top word, where we can use scalar
28041         instructions.  Add direct move and store support.  Combine the big
28042         endian/little endian vector select load support into a single insn.
28043         (vsx_extract_<mode>_internal1): Likewise.
28044         (vsx_extract_<mode>_internal2): Likewise.
28045         (vsx_extract_<mode>_load): Likewise.
28046         (vsx_extract_<mode>_store): Likewise.
28047         (vsx_extract_<mode>_zero): Delete, big and little endian insns are
28048         combined into vsx_extract_<mode>_load.
28049         (vsx_extract_<mode>_one_le): Likewise.
28050
28051         * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
28052         define the top 64-bit vector element.
28053
28054         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
28055         constraint.
28056
28057         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
28058         Document vec_vbpermq builtin.
28059
28060         PR target/60672
28061         * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
28062         enable use of xxsldwi and xxpermdi builtin functions.
28063         (vec_xxpermdi): Likewise.
28064
28065         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
28066         Document use of vec_xxsldwi and vec_xxpermdi builtins.
28067
28068 2014-03-27  Vladimir Makarov  <vmakarov@redhat.com>
28069
28070         PR rtl-optimization/60650
28071         * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
28072         first_p.  Use it.
28073         (find_spills_for): New.
28074         (assign_by_spills): Pass the new parameter to find_hard_regno_for.
28075         Spill all pseudos on the second iteration.
28076
28077 2014-03-27  Marek Polacek  <polacek@redhat.com>
28078
28079         PR c/50347
28080         * doc/extend.texi (ffs Builtins): Change unsigned types to signed
28081         types.
28082
28083 2014-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28084
28085         * config/s390/s390.c (s390_can_use_return_insn): Check for
28086         call-saved FPRs on 31 bit.
28087
28088 2014-03-27  Jakub Jelinek  <jakub@redhat.com>
28089
28090         PR middle-end/60682
28091         * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
28092         if they need regimplification, just drop them instead of
28093         calling gimple_regimplify_operands on them.
28094
28095 2014-03-27  Marcus Shawcroft  <marcus.shawcroft@arm.com>
28096
28097         PR target/60580
28098         * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
28099         (aarch64_frame_pointer_required): Adjust logic.
28100         (aarch64_can_eliminate): Adjust logic.
28101         (aarch64_override_options_after_change): Adjust logic.
28102
28103 2014-03-27  Dehao Chen  <dehao@google.com>
28104
28105         * ipa-inline.c (early_inliner): Update node's inline info.
28106
28107 2014-03-26  Dehao Chen  <dehao@google.com>
28108
28109         * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
28110         compiler inserted conditional jumps for NAN float check.
28111
28112 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
28113
28114         * ubsan.h (ubsan_create_data): Change second argument's type
28115         to const location_t *.
28116         * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
28117         _("<unknown>").
28118         (ubsan_create_data): Change second argument to const location_t *PLOC.
28119         Create Loc field whenever PLOC is non-NULL.
28120         (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
28121         ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
28122         callers.
28123
28124         PR other/59545
28125         * real.c (real_to_integer2): Change type of low to UHWI.
28126
28127 2014-03-26  Tobias Burnus  <burnus@net-b.de>
28128
28129         * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
28130         (CILK_SELF_SPECS): New define.
28131         (driver_self_specs): Use it.
28132
28133 2014-03-26  Richard Biener  <rguenther@suse.de>
28134
28135         * tree-pretty-print.c (percent_K_format): Implement special
28136         case for LTO and its stripped down BLOCK tree.
28137
28138 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
28139
28140         PR sanitizer/60636
28141         * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
28142
28143         * tree-vrp.c (simplify_internal_call_using_ranges): If only
28144         one range is range_int_cst_p, but not both, at least optimize
28145         addition/subtraction of 0 and multiplication by 0 or 1.
28146         * gimple-fold.c (gimple_fold_call): Fold
28147         IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
28148         (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
28149         INTEGER_CSTs, try to fold at least x * 0 and y - y.
28150
28151 2014-03-26  Eric Botcazou  <ebotcazou@adacore.com>
28152
28153         PR rtl-optimization/60452
28154         * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
28155         <case REG>: Return 1 for invalid offsets from the frame pointer.
28156
28157 2014-03-26  Marek Polacek  <polacek@redhat.com>
28158
28159         PR c/37428
28160         * doc/extend.texi (C Extensions): Mention variable-length arrays in
28161         a structure/union.
28162
28163 2014-03-26  Marek Polacek  <polacek@redhat.com>
28164
28165         PR c/39525
28166         * doc/extend.texi (Designated Inits): Describe what happens to omitted
28167         field members.
28168
28169 2014-03-26  Marek Polacek  <polacek@redhat.com>
28170
28171         PR other/59545
28172         * ira-color.c (update_conflict_hard_regno_costs): Perform the
28173         multiplication in unsigned type.
28174
28175 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
28176
28177         * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
28178
28179 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
28180
28181         * doc/contrib.texi: Add myself as Andes nds32 port contributor.
28182
28183 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
28184
28185         PR ipa/60315
28186         * cif-code.def (UNREACHABLE) New code.
28187         * ipa-inline.c (inline_small_functions): Skip edges to
28188         __builtlin_unreachable.
28189         (estimate_edge_growth): Allow edges to __builtlin_unreachable.
28190         * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
28191         predicate to __bulitin_unreachable.
28192         (set_cond_stmt_execution_predicate): Fix issue when
28193         invert_tree_comparison returns ERROR_MARK.
28194         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
28195         propagate to inline clones.
28196         * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
28197         to unreachable.
28198         * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
28199         * cgraphclones.c (cgraph_clone_node): If call destination is already
28200         ureachable, do not redirect it back.
28201         * tree-inline.c (fold_marked_statements): Hanlde calls becoming
28202         unreachable.
28203
28204 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
28205
28206         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
28207         Do not modify inline clones.
28208
28209 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
28210
28211         * config/i386/i386.md (general_sext_operand): New mode attr.
28212         (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
28213         don't generate (sign_extend (const_int)).
28214         (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
28215         operands[2].  Use We constraint instead of <i> and
28216         <general_sext_operand> predicate instead of <general_operand>.
28217         (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
28218         * config/i386/constraints.md (We): New constraint.
28219         * config/i386/predicates.md (x86_64_sext_operand,
28220         sext_operand): New predicates.
28221
28222 2014-03-25  Martin Jambor  <mjambor@suse.cz>
28223
28224         PR ipa/60600
28225         * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
28226         inconsistent devirtualizations to __builtin_unreachable.
28227
28228 2014-03-25  Marek Polacek  <polacek@redhat.com>
28229
28230         PR c/35449
28231         * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
28232
28233 2014-03-25  Alan Lawrence  <alan.lawrence@arm.com>
28234
28235         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
28236         order of elements for big-endian.
28237
28238 2014-03-25  Richard Biener  <rguenther@suse.de>
28239
28240         PR middle-end/60635
28241         * gimplify-me.c (gimple_regimplify_operands): Update the
28242         re-gimplifed stmt.
28243
28244 2014-03-25  Martin Jambor  <mjambor@suse.cz>
28245
28246         PR ipa/59176
28247         * lto-cgraph.c (lto_output_node): Stream body_removed flag.
28248         (lto_output_varpool_node): Likewise.
28249         (input_overwrite_node): Likewise.
28250         (input_varpool_node): Likewise.
28251
28252 2014-03-25  Richard Biener  <rguenther@suse.de>
28253
28254         * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
28255         (run_gcc): Likewise.
28256
28257 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
28258
28259         * combine.c (simplify_compare_const): Add MODE argument.
28260         Handle mode_width 0 as very large mode_width.
28261         (try_combine, simplify_comparison): Adjust callers.
28262
28263         * cselib.c (cselib_hash_rtx): Perform addition in unsigned
28264         type to avoid signed integer overflow.
28265         * explow.c (plus_constant): Likewise.
28266
28267 2014-03-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
28268
28269         * doc/generic.texi: Correct typos.
28270
28271 2014-03-24  Tobias Burnus  <burnus@net-b.de>
28272
28273         * doc/invoke.texi (-flto): Expand section about
28274         using static libraries with LTO.
28275
28276 2014-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28277
28278         PR rtl-optimization/60501
28279         * optabs.def (addptr3_optab): New optab.
28280         * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
28281         * doc/md.texi ("addptrm3"): Document new RTL standard expander.
28282         * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
28283
28284         * lra.c (emit_add3_insn): Use the addptr pattern if available.
28285
28286         * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
28287
28288 2014-03-24  Ulrich Drepper  <drepper@gmail.com>
28289
28290         * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
28291         _mm512_set1_pd.
28292
28293         * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
28294         (_mm256_undefined_ps): Define.
28295         (_mm256_undefined_pd): Define.
28296         * config/i386/emmintrin.h (_mm_undefined_si128): Define.
28297         (_mm_undefined_pd): Define.
28298         * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
28299         * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
28300         (_mm512_undefined_ps): Define.
28301         (_mm512_undefined_pd): Define.
28302         Use _mm*_undefined_*.
28303         * config/i386/avx2intrin.h: Use _mm*_undefined_*.
28304
28305 2014-03-24  Alex Velenko  <Alex.Velenko@arm.com>
28306
28307         * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
28308         (lshr_simd): DI mode added.
28309         * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
28310         (aarch64_ushr_simddi): Likewise.
28311         * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
28312         * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
28313         (vshrd_n_u64): Likewise.
28314
28315 2014-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28316
28317         * Makefile.in (s-macro_list): Depend on cc1.
28318
28319 2014-03-23  Teresa Johnson  <tejohnson@google.com>
28320
28321         * ipa-utils.c (ipa_print_order): Use specified dump file.
28322
28323 2014-03-23  Eric Botcazou  <ebotcazou@adacore.com>
28324
28325         PR rtl-optimization/60601
28326         * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
28327
28328         * gcc.c (eval_spec_function): Initialize save_growing_value.
28329
28330 2014-03-22  Jakub Jelinek  <jakub@redhat.com>
28331
28332         PR sanitizer/60613
28333         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
28334         code == MINUS_EXPR, never swap op0 with op1.
28335
28336         * toplev.c (init_local_tick): Avoid signed integer multiplication
28337         overflow.
28338         * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
28339         shift by first operand's bitsize.
28340
28341 2014-03-21  Jakub Jelinek  <jakub@redhat.com>
28342
28343         PR target/60610
28344         * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
28345         redefine to 1 or 0.
28346         * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
28347         TARGET_ISA_64BIT_P(x).
28348
28349 2014-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28350
28351         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
28352         pattern for vector nor instead of subtract from splat(-1).
28353         (altivec_expand_vec_perm_const_le): Likewise.
28354
28355 2014-03-21  Richard Henderson  <rth@twiddle.net>
28356
28357         PR target/60598
28358         * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
28359         related insns after epilogue_completed.
28360
28361 2014-03-21  Martin Jambor  <mjambor@suse.cz>
28362
28363         PR ipa/59176
28364         * cgraph.h (symtab_node): New flag body_removed.
28365         * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
28366         when removing bodies.
28367         * symtab.c (dump_symtab_base): Dump body_removed flag.
28368         * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
28369         had their bodies removed.
28370
28371 2014-03-21  Martin Jambor  <mjambor@suse.cz>
28372
28373         PR ipa/60419
28374         * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
28375         in the border.
28376
28377 2014-03-21  Richard Biener  <rguenther@suse.de>
28378
28379         PR tree-optimization/60577
28380         * tree-core.h (struct tree_base): Document nothrow_flag use
28381         in DECL_NONALIASED.
28382         * tree.h (DECL_NONALIASED): New.
28383         (may_be_aliased): Adjust.
28384         * coverage.c (build_var): Set DECL_NONALIASED.
28385
28386 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
28387
28388         * expr.c (expand_expr_real_1): Remove outdated comment.
28389
28390 2014-03-20  Jakub Jelinek  <jakub@redhat.com>
28391
28392         PR middle-end/60597
28393         * ira.c (adjust_cleared_regs): Call copy_rtx on
28394         *reg_equiv[REGNO (loc)].src_p before passing it to
28395         simplify_replace_fn_rtx.
28396
28397         PR target/60568
28398         * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
28399         into CONST, put pic register as first operand of PLUS.  Use
28400         gen_const_mem for both 32-bit and 64-bit PIC got loads.
28401
28402 2014-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
28403
28404         * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
28405
28406 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
28407
28408         * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
28409         around for store forwarding issue in the FPU on the UT699.
28410         * config/sparc/sparc.md (in_branch_delay): Return false for single FP
28411         loads and operations if -mfix-ut699 is specified.
28412         (divtf3_hq): Tweak attribute.
28413         (sqrttf2_hq): Likewise.
28414
28415 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
28416
28417         * calls.c (store_one_arg): Remove incorrect const qualification on the
28418         type of the temporary.
28419         * cfgexpand.c (expand_return): Likewise.
28420         * expr.c (expand_constructor): Likewise.
28421         (expand_expr_real_1): Likewise.
28422
28423 2014-03-20  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
28424
28425         * config/arm/arm.c (arm_dwarf_register_span): Update the element number
28426         of parts.
28427
28428 2014-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
28429
28430         PR target/60039
28431         * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
28432
28433 2014-03-19  James Greenhalgh  <james.greenhalgh@arm.com>
28434
28435         * config/arm/aarch-common-protos.h
28436         (alu_cost_table): Fix spelling of "extend".
28437         * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
28438
28439 2014-03-19  Richard Biener  <rguenther@suse.de>
28440
28441         PR middle-end/60553
28442         * tree-core.h (tree_type_common): Re-order pointer members
28443         to reduce recursion depth during GC walks.
28444
28445 2014-03-19  Marek Polacek  <polacek@redhat.com>
28446
28447         PR sanitizer/60569
28448         * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
28449         before accessing it.
28450
28451 2014-03-19  Richard Biener  <rguenther@suse.de>
28452
28453         PR lto/59543
28454         * lto-streamer-in.c (input_function): In WPA stage do not drop
28455         debug stmts.
28456
28457 2014-03-19  Jakub Jelinek  <jakub@redhat.com>
28458
28459         PR tree-optimization/60559
28460         * vectorizable_mask_load_store): Replace scalar MASK_LOAD
28461         with build_zero_cst assignment.
28462
28463 2014-03-18  Kai Tietz  <ktietz@redhat.com>
28464
28465         PR rtl-optimization/56356
28466         * sdbout.c (sdbout_parms): Verify that parms'
28467         incoming argument is valid.
28468         (sdbout_reg_parms): Likewise.
28469
28470 2014-03-18  Richard Henderson  <rth@redhat.com>
28471
28472         PR target/60562
28473         * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
28474         be shadowed by *float<SWI48><MODEF>2_sse.  Test X87_ENABLE_FLOAT.
28475         (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
28476
28477 2014-03-18  Basile Starynkevitch  <basile@starynkevitch.net>
28478
28479         * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
28480         * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
28481         Italicize plugin event names in description.  Explain that
28482         PLUGIN_PRAGMAS has no sense for lto1.  Explain PLUGIN_INCLUDE_FILE.
28483         Remind that no GCC functions should be called after PLUGIN_FINISH.
28484         Explain what pragmas with expansion are.
28485
28486 2014-03-18  Martin Liska  <mliska@suse.cz>
28487
28488         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
28489         gimple call statement is update.
28490         * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
28491         GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
28492
28493 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
28494
28495         PR sanitizer/60557
28496         * ubsan.c (ubsan_instrument_unreachable): Call
28497         initialize_sanitizer_builtins.
28498         (ubsan_pass): Likewise.
28499
28500         PR sanitizer/60535
28501         * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
28502         varpool_finalize_decl instead of rest_of_decl_compilation.
28503
28504 2014-03-18  Richard Biener  <rguenther@suse.de>
28505
28506         * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
28507         by using bitmap_and_compl instead of bitmap_and_compl_into.
28508         (df_rd_transfer_function): Likewise.
28509
28510 2014-03-18  Richard Biener  <rguenther@suse.de>
28511
28512         * doc/lto.texi (fresolution): Fix typo.
28513
28514 2014-03-18  Richard Biener  <rguenther@suse.de>
28515
28516         * doc/invoke.texi (flto): Update for changes in 4.9.
28517
28518 2014-03-18  Richard Biener  <rguenther@suse.de>
28519
28520         * doc/loop.texi: Remove section on the removed lambda framework.
28521         Update loop docs with recent changes in preserving loop structure.
28522
28523 2014-03-18  Richard Biener  <rguenther@suse.de>
28524
28525         * doc/lto.texi (-fresolution): Document.
28526
28527 2014-03-18  Richard Biener  <rguenther@suse.de>
28528
28529         * doc/contrib.texi: Adjust my name.
28530
28531 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
28532
28533         PR ipa/58721
28534         * internal-fn.c: Include diagnostic-core.h.
28535         (expand_BUILTIN_EXPECT): New function.
28536         * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
28537         (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
28538         IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
28539         * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
28540         IFN_BUILTIN_EXPECT.
28541         * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
28542         Revert 3 argument __builtin_expect code.
28543         (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
28544         * gimple-fold.c (gimple_fold_call): Likewise.
28545         * tree.h (fold_builtin_expect): New prototype.
28546         * builtins.c (build_builtin_expect_predicate): Add predictor
28547         argument, if non-NULL, create 3 argument __builtin_expect.
28548         (fold_builtin_expect): No longer static.  Add ARG2 argument,
28549         pass it through to build_builtin_expect_predicate.
28550         (fold_builtin_2): Adjust caller.
28551         (fold_builtin_3): Handle BUILT_IN_EXPECT.
28552         * internal-fn.def (BUILTIN_EXPECT): New.
28553
28554 2014-03-18  Tobias Burnus  <burnus@net-b.de>
28555
28556         PR ipa/58721
28557         * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
28558         PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
28559         PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
28560
28561 2014-03-18  Jan Hubicka  <hubicka@ucw.cz>
28562
28563         PR ipa/58721
28564         * predict.c (combine_predictions_for_bb): Fix up formatting.
28565         (expr_expected_value_1, expr_expected_value): Add predictor argument,
28566         fill what it points to if non-NULL.
28567         (tree_predict_by_opcode): Adjust caller, use the predictor.
28568         * predict.def (PRED_COMPARE_AND_SWAP): Add.
28569
28570 2014-03-18  Eric Botcazou  <ebotcazou@adacore.com>
28571
28572         * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
28573         proper constant for the store mode.
28574
28575 2014-03-18  Ilya Enkovich  <ilya.enkovich@intel.com>
28576
28577         * symtab.c (change_decl_assembler_name): Fix transparent alias
28578         chain construction.
28579
28580 2014-03-16  Renlin Li  <Renlin.Li@arm.com>
28581
28582         * config/aarch64/aarch64.c: Correct the comments about the
28583         aarch64 stack layout.
28584
28585 2014-03-18  Thomas Schwinge  <thomas@codesourcery.com>
28586
28587         * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
28588         check for GF_OMP_FOR_KIND_FOR.
28589
28590 2013-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
28591
28592         * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
28593         ymm and zmm register names.
28594
28595 2014-03-17  Jakub Jelinek  <jakub@redhat.com>
28596
28597         PR target/60516
28598         * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
28599         note creation for the 2010-08-31 changes.
28600
28601 2014-03-17  Marek Polacek  <polacek@redhat.com>
28602
28603         PR middle-end/60534
28604         * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
28605         as -fno-tree-loop-vectorize.
28606         (expand_omp_simd): Likewise.
28607
28608 2014-03-15  Eric Botcazou  <ebotcazou@adacore.com>
28609
28610         * config/sparc/sparc-protos.h (tls_call_delay): Delete.
28611         (eligible_for_call_delay): New prototype.
28612         * config/sparc/sparc.c (tls_call_delay): Rename into...
28613         (eligible_for_call_delay): ...this.  Return false if the instruction
28614         cannot be put in the delay slot of a branch.
28615         (eligible_for_restore_insn): Simplify.
28616         (eligible_for_return_delay): Return false if the instruction cannot be
28617         put in the delay slot of a branch and simplify.
28618         (eligible_for_sibcall_delay): Return false if the instruction cannot be
28619         put in the delay slot of a branch.
28620         * config/sparc/sparc.md (fix_ut699): New attribute.
28621         (tls_call_delay): Delete.
28622         (in_call_delay): Reimplement.
28623         (eligible_for_sibcall_delay): Rename into...
28624         (in_sibcall_delay): ...this.
28625         (eligible_for_return_delay): Rename into...
28626         (in_return_delay): ...this.
28627         (in_branch_delay): Reimplement.
28628         (in_uncond_branch_delay): Delete.
28629         (in_annul_branch_delay): Delete.
28630
28631 2014-03-14  Richard Henderson  <rth@redhat.com>
28632
28633         PR target/60525
28634         * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
28635         define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
28636         (*floathi<X87MODEF>2_i387_with_temp): Remove.
28637         (floathi splitters): Remove.
28638         (float<SWI48x>xf2): New pattern.
28639         (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2.  Drop
28640         code that tried to handle DImode for 32-bit, but which was excluded
28641         by the pattern's condition.  Drop allocation of stack temporary.
28642         (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
28643         (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
28644         (*float<SWI48><MODEF>2_mixed_interunit): Remove.
28645         (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
28646         (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
28647         (*float<SWI48><MODEF>2_sse_with_temp): Remove.
28648         (*float<SWI48><MODEF>2_sse_interunit): Remove.
28649         (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
28650         (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
28651         (*float<SWI48x><X87MODEF>2_i387): Remove.
28652         (all float _with_temp splitters): Remove.
28653         (*float<SWI48x><MODEF>2_i387): New pattern.
28654         (*float<SWI48><MODEF>2_sse): New pattern.
28655         (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
28656         (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
28657
28658 2014-03-14  Jakub Jelinek  <jakub@redhat.com>
28659             Marek Polacek  <polacek@redhat.com>
28660
28661         PR middle-end/60484
28662         * common.opt (dump_base_name_prefixed): New Variable.
28663         * opts.c (finish_options): Don't prepend directory to x_dump_base_name
28664         if x_dump_base_name_prefixed is already set, set it at the end.
28665
28666 2014-03-14  Vladimir Makarov  <vmakarov@redhat.com>
28667
28668         PR rtl-optimization/60508
28669         * lra-constraints.c (get_reload_reg): Add new parameter
28670         in_subreg_p.
28671         (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
28672         Pass the new parameter values.
28673
28674 2014-03-14  Richard Biener  <rguenther@suse.de>
28675
28676         * common.opt: Revert unintented changes from r205065.
28677         * opts.c: Likewise.
28678
28679 2014-03-14  Richard Biener  <rguenther@suse.de>
28680
28681         PR middle-end/60518
28682         * cfghooks.c (split_block): Properly adjust all loops the
28683         block was a latch of.
28684
28685 2014-03-14  Martin Jambor  <mjambor@suse.cz>
28686
28687         PR lto/60461
28688         * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
28689         and simplify it.
28690
28691 2014-03-14  Georg-Johann Lay  <avr@gjlay.de>
28692
28693         PR target/59396
28694         * config/avr/avr.c (avr_set_current_function): Pass function name
28695         through default_strip_name_encoding before sanity checking instead
28696         of skipping the first char of the assembler name.
28697
28698 2014-03-13  Richard Henderson  <rth@redhat.com>
28699
28700         PR debug/60438
28701         * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
28702         (ix86_force_to_memory, ix86_free_from_memory): Remove.
28703         * config/i386/i386-protos.h: Likewise.
28704         * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
28705         in the expander instead of a splitter.
28706         (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
28707         any possibility of requiring a memory.
28708         (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
28709         (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
28710         (fp branch splitters): Update for ix86_split_fp_branch.
28711         (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
28712         (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
28713         (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
28714         (*fop_<MODEF>_2_i387): Remove f/r alternative.
28715         (*fop_<MODEF>_3_i387): Likewise.
28716         (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
28717         (splitters for the fop_* register patterns): Remove.
28718         (fscalexf4_i387): Rename from *fscalexf4_i387.
28719         (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
28720
28721 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
28722
28723         PR tree-optimization/59779
28724         * tree-dfa.c (get_ref_base_and_extent): Use double_int
28725         type for bitsize and maxsize instead of HOST_WIDE_INT.
28726
28727 2014-03-13  Steven Bosscher  <steven@gcc.gnu.org>
28728
28729         PR rtl-optimization/57320
28730         * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
28731         the CFG after thread_prologue_and_epilogue_insns.
28732
28733 2014-03-13  Vladimir Makarov  <vmakarov@redhat.com>
28734
28735         PR rtl-optimization/57189
28736         * lra-constraints.c (process_alt_operands): Disfavor spilling
28737         vector pseudos.
28738
28739 2014-03-13  Cesar Philippidis  <cesar@codesourcery.com>
28740
28741         * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
28742
28743 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
28744
28745         PR tree-optimization/59025
28746         PR middle-end/60418
28747         * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
28748         same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
28749
28750 2014-03-13  Georg-Johann Lay  <avr@gjlay.de>
28751
28752         PR target/60486
28753         * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
28754         calls of avr_out_plus_1.
28755
28756 2014-03-13  Bin Cheng  <bin.cheng@arm.com>
28757
28758         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
28759         BB's single pred and update the father loop's latch info later.
28760
28761 2014-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
28762
28763         * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
28764         (VEC_M): Likewise.
28765         (VEC_N): Likewise.
28766         (VEC_R): Likewise.
28767         (VEC_base): Likewise.
28768         (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
28769         registers, we need to swap double words in little endian mode.
28770
28771         * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
28772         to be a container mode for 128-bit integer operations added in ISA
28773         2.07.  Unlike TImode and PTImode, the preferred register set is
28774         the Altivec/VMX registers for the 128-bit operations.
28775
28776         * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
28777         declarations.
28778         (rs6000_split_128bit_ok_p): Likewise.
28779
28780         * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
28781         macros for creating ISA 2.07 normal and overloaded builtin
28782         functions with 3 arguments.
28783         (BU_P8V_OVERLOAD_3): Likewise.
28784         (VPERM_1T): Add support for V1TImode in 128-bit vector operations
28785         for use as overloaded functions.
28786         (VPERM_1TI_UNS): Likewise.
28787         (VSEL_1TI): Likewise.
28788         (VSEL_1TI_UNS): Likewise.
28789         (ST_INTERNAL_1ti): Likewise.
28790         (LD_INTERNAL_1ti): Likewise.
28791         (XXSEL_1TI): Likewise.
28792         (XXSEL_1TI_UNS): Likewise.
28793         (VPERM_1TI): Likewise.
28794         (VPERM_1TI_UNS): Likewise.
28795         (XXPERMDI_1TI): Likewise.
28796         (SET_1TI): Likewise.
28797         (LXVD2X_V1TI): Likewise.
28798         (STXVD2X_V1TI): Likewise.
28799         (VEC_INIT_V1TI): Likewise.
28800         (VEC_SET_V1TI): Likewise.
28801         (VEC_EXT_V1TI): Likewise.
28802         (EQV_V1TI): Likewise.
28803         (NAND_V1TI): Likewise.
28804         (ORC_V1TI): Likewise.
28805         (VADDCUQ): Add support for 128-bit integer arithmetic instructions
28806         added in ISA 2.07.  Add both normal 'altivec' builtins, and the
28807         overloaded builtin.
28808         (VADDUQM): Likewise.
28809         (VSUBCUQ): Likewise.
28810         (VADDEUQM): Likewise.
28811         (VADDECUQ): Likewise.
28812         (VSUBEUQM): Likewise.
28813         (VSUBECUQ): Likewise.
28814
28815         * config/rs6000/rs6000-c.c (__int128_type): New static to hold
28816         __int128_t and __uint128_t types.
28817         (__uint128_type): Likewise.
28818         (altivec_categorize_keyword): Add support for vector __int128_t,
28819         vector __uint128_t, vector __int128, and vector unsigned __int128
28820         as a container type for TImode operations that need to be done in
28821         VSX/Altivec registers.
28822         (rs6000_macro_to_expand): Likewise.
28823         (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
28824         to support 128-bit integer instructions vaddcuq, vadduqm,
28825         vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
28826         (altivec_resolve_overloaded_builtin): Add support for V1TImode.
28827
28828         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
28829         for V1TImode, and set up preferences to use VSX/Altivec registers.
28830         Setup VSX reload handlers.
28831         (rs6000_debug_reg_global): Likewise.
28832         (rs6000_init_hard_regno_mode_ok): Likewise.
28833         (rs6000_preferred_simd_mode): Likewise.
28834         (vspltis_constant): Do not allow V1TImode as easy altivec constants.
28835         (easy_altivec_constant): Likewise.
28836         (output_vec_const_move): Likewise.
28837         (rs6000_expand_vector_set): Convert V1TImode set and extract to
28838         simple move.
28839         (rs6000_expand_vector_extract): Likewise.
28840         (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
28841         addressing.
28842         (rs6000_const_vec): Add support for V1TImode.
28843         (rs6000_emit_le_vsx_load): Swap double words when loading or
28844         storing TImode/V1TImode.
28845         (rs6000_emit_le_vsx_store): Likewise.
28846         (rs6000_emit_le_vsx_move): Likewise.
28847         (rs6000_emit_move): Add support for V1TImode.
28848         (altivec_expand_ld_builtin): Likewise.
28849         (altivec_expand_st_builtin): Likewise.
28850         (altivec_expand_vec_init_builtin): Likewise.
28851         (altivec_expand_builtin): Likewise.
28852         (rs6000_init_builtins): Add support for V1TImode type.  Add
28853         support for ISA 2.07 128-bit integer builtins.  Define type names
28854         for the VSX/Altivec vector types.
28855         (altivec_init_builtins): Add support for overloaded vector
28856         functions with V1TImode type.
28857         (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
28858         (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
28859         external function.
28860         (rs6000_split_128bit_ok_p): Likewise.
28861         (rs6000_handle_altivec_attribute): Create V1TImode from vector
28862         __int128_t and vector __uint128_t.
28863
28864         * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
28865         and mode attributes.
28866         (VSX_M): Likewise.
28867         (VSX_M2): Likewise.
28868         (VSm): Likewise.
28869         (VSs): Likewise.
28870         (VSr): Likewise.
28871         (VSv): Likewise.
28872         (VS_scalar): Likewise.
28873         (VS_double): Likewise.
28874         (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
28875
28876         * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
28877         we support the ISA 2.07 128-bit integer arithmetic instructions.
28878         (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
28879         (enum rs6000_builtin_type_index): Add fields to hold V1TImode
28880         and TImode types for use with the builtin functions.
28881         (V1TI_type_node): Likewise.
28882         (unsigned_V1TI_type_node): Likewise.
28883         (intTI_type_internal_node): Likewise.
28884         (uintTI_type_internal_node): Likewise.
28885
28886         * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
28887         128-bit builtin functions.
28888         (UNSPEC_VADDEUQM): Likewise.
28889         (UNSPEC_VADDECUQ): Likewise.
28890         (UNSPEC_VSUBCUQ): Likewise.
28891         (UNSPEC_VSUBEUQM): Likewise.
28892         (UNSPEC_VSUBECUQ): Likewise.
28893         (VM): Add V1TImode to vector mode iterators.
28894         (VM2): Likewise.
28895         (VI_unit): Likewise.
28896         (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
28897         (altivec_vaddcuq): Likewise.
28898         (altivec_vsubuqm): Likewise.
28899         (altivec_vsubcuq): Likewise.
28900         (altivec_vaddeuqm): Likewise.
28901         (altivec_vaddecuq): Likewise.
28902         (altivec_vsubeuqm): Likewise.
28903         (altivec_vsubecuq): Likewise.
28904
28905         * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
28906         mode iterators.
28907         (BOOL_128): Likewise.
28908         (BOOL_REGS_OUTPUT): Likewise.
28909         (BOOL_REGS_OP1): Likewise.
28910         (BOOL_REGS_OP2): Likewise.
28911         (BOOL_REGS_UNARY): Likewise.
28912         (BOOL_REGS_AND_CR0): Likewise.
28913
28914         * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
28915         128-bit integer builtin support.
28916         (vec_vadduqm): Likewise.
28917         (vec_vaddecuq): Likewise.
28918         (vec_vaddeuqm): Likewise.
28919         (vec_vsubecuq): Likewise.
28920         (vec_vsubeuqm): Likewise.
28921         (vec_vsubcuq): Likewise.
28922         (vec_vsubuqm): Likewise.
28923
28924         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
28925         Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
28926         vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
28927         128-bit integer add/subtract to ISA 2.07.
28928
28929 2014-03-12  Joern Rennecke  <joern.rennecke@embecosm.com>
28930
28931         * config/arc/arc.c (arc_predicate_delay_insns):
28932         Fix third argument passed to conditionalize_nonjump.
28933
28934 2014-03-12  Yufeng Zhang  <yufeng.zhang@arm.com>
28935
28936         * config/aarch64/aarch64-builtins.c
28937         (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
28938         BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
28939         * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
28940         instead of __builtin_lfloor.
28941         (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
28942
28943 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
28944
28945         * tree-ssa-ifcombine.c (forwarder_block_to): New function.
28946         (tree_ssa_ifcombine_bb_1): New function.
28947         (tree_ssa_ifcombine_bb): Use it.  Handle also cases where else_bb
28948         is an empty forwarder block to then_bb or vice versa and then_bb
28949         and else_bb are effectively swapped.
28950
28951 2014-03-12  Christian Bruel  <christian.bruel@st.com>
28952
28953         PR target/60264
28954         * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
28955         REG_CFA_DEF_CFA note.
28956         (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
28957         (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
28958
28959 2014-03-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
28960
28961         PR tree-optimization/60454
28962         * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
28963
28964 2014-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28965
28966         * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
28967         Do not define target_cpu_default2 to generic.
28968         * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
28969         * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
28970         * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
28971
28972 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
28973             Marc Glisse  <marc.glisse@inria.fr>
28974
28975         PR tree-optimization/60502
28976         * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
28977         instead of build_low_bits_mask.
28978
28979 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
28980
28981         PR middle-end/60482
28982         * tree-vrp.c (register_edge_assert_for_1): Don't add assert
28983         if there are multiple uses, but op doesn't live on E edge.
28984         * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
28985         clobber stmts before __builtin_unreachable.
28986
28987 2014-03-11  Richard Sandiford  <rdsandiford@googlemail.com>
28988
28989         * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
28990         hard_frame_pointer_rtx.
28991         * cse.c (cse_insn): Remove volatile check.
28992         * cselib.c (cselib_process_insn): Likewise.
28993         * dse.c (scan_insn): Likewise.
28994
28995 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
28996
28997         * config/arc/arc.c (conditionalize_nonjump): New function,
28998         broken out of ...
28999         (arc_ifcvt): ... this.
29000         (arc_predicate_delay_insns): Use it.
29001
29002 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
29003
29004         * config/arc/predicates.md (extend_operand): During/after reload,
29005         allow const_int_operand.
29006         * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
29007         (umulsidi3_700): Likewise.  Change operand 2 constraint back to "cL".
29008         (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
29009         to "i".
29010         (umulsi3_highpart_i): Likewise.
29011
29012 2014-03-11  Richard Biener  <rguenther@suse.de>
29013
29014         * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
29015         Add asserts to guard possible wrong-code bugs.
29016
29017 2014-03-11  Richard Biener  <rguenther@suse.de>
29018
29019         PR tree-optimization/60429
29020         PR tree-optimization/60485
29021         * tree-ssa-structalias.c (set_union_with_increment): Properly
29022         take into account all fields that overlap the shifted vars.
29023         (do_sd_constraint): Likewise.
29024         (do_ds_constraint): Likewise.
29025         (get_constraint_for_ptr_offset): Likewise.
29026
29027 2014-03-11  Chung-Lin Tang  <cltang@codesourcery.com>
29028
29029         * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
29030         (nios2_compute_frame_layout):
29031         Add calculation of cfun->machine->fp_save_offset.
29032         (nios2_expand_prologue): Correct setting of frame pointer register
29033         in prologue.
29034         (nios2_expand_epilogue): Update recovery of stack pointer from
29035         frame pointer accordingly.
29036         (nios2_initial_elimination_offset): Update calculation of offset
29037         for eliminating to HARD_FRAME_POINTER_REGNUM.
29038
29039 2014-03-10  Jakub Jelinek  <jakub@redhat.com>
29040
29041         PR ipa/60457
29042         * ipa.c (symtab_remove_unreachable_nodes): Don't call
29043         cgraph_get_create_node on VAR_DECLs.
29044
29045 2014-03-10  Richard Biener  <rguenther@suse.de>
29046
29047         PR middle-end/60474
29048         * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
29049
29050 2014-03-08  Douglas B Rupp  <rupp@gnat.com>
29051
29052         * config/vms/vms.opt (vms_float_format): New variable.
29053
29054 2014-03-08  Tobias Burnus  <burnus@net-b.de>
29055
29056         * doc/invoke.texi (-fcilkplus): Update implementation status.
29057
29058 2014-03-08  Paulo Matos  <paulo@matos-sorge.com>
29059             Richard Biener  <rguenther@suse.de>
29060
29061         * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
29062         consistently accross all TUs.
29063         (run_gcc): Enable -fshort-double automatically at link at link-time
29064         and disallow override.
29065
29066 2014-03-08  Richard Sandiford  <rdsandiford@googlemail.com>
29067
29068         PR target/58271
29069         * config/mips/mips.c (mips_option_override): Promote -mpaired-single
29070         warning to an error.  Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
29071         if they can't be used.
29072
29073 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29074
29075         * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
29076         for Solaris 11/x86 ld.
29077         * configure: Regenerate.
29078
29079 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29080
29081         * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
29082         (LIB_TLS_SPEC): Save as ld_tls_libs.
29083         (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
29084         (HAVE_AS_IX86_TLSLDM): New test.
29085         * configure, config.in: Regenerate.
29086         * config/i386/i386.c (legitimize_tls_address): Fall back to
29087         TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
29088         cannot support TLS_MODEL_LOCAL_DYNAMIC.
29089         * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
29090         instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
29091
29092 2014-03-07  Paulo Matos  <paulo@matos-sorge.com>
29093
29094         * common.opt (fira-loop-pressure): Mark as optimization.
29095
29096 2014-03-07  Thomas Schwinge  <thomas@codesourcery.com>
29097
29098         * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
29099         an OpenMP mappable type.
29100
29101 2014-03-06  Matthias Klose  <doko@ubuntu.com>
29102
29103         * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
29104         MULTILIB_OSDIRNAMES is not defined.
29105
29106 2014-03-06  Jakub Jelinek  <jakub@redhat.com>
29107             Meador Inge  <meadori@codesourcery.com>
29108
29109         PR target/58595
29110         * config/arm/arm.c (arm_tls_symbol_p): Remove.
29111         (arm_legitimize_address): Call legitimize_tls_address for any
29112         arm_tls_referenced_p expression, handle constant addend.  Call it
29113         before testing for !TARGET_ARM.
29114         (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
29115
29116 2014-03-06  Richard Biener  <rguenther@suse.de>
29117
29118         PR middle-end/60445
29119         PR lto/60424
29120         PR lto/60427
29121         Revert
29122         2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
29123
29124         * tree-streamer.c (record_common_node): Assert we don't record
29125         nodes with type double.
29126         (preload_common_node): Skip type double, complex double and double
29127         pointer since it is now frontend dependent due to fshort-double option.
29128
29129 2014-03-06  Richard Biener  <rguenther@suse.de>
29130
29131         * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
29132         or -fno-lto is specified and the linker has full plugin support.
29133         * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
29134         (main): Remove -flto processing, adjust lto_mode using use_plugin late.
29135         * lto-wrapper.c (merge_and_complain): Merge compile-time
29136         optimization levels.
29137         (run_gcc): And pass it through to the link options.
29138
29139 2014-03-06  Alexandre Oliva  <aoliva@redhat.com>
29140
29141         PR debug/60381
29142         Revert:
29143         2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
29144         PR debug/59992
29145         * cselib.c (remove_useless_values): Skip to avoid quadratic
29146         behavior if the condition moved from...
29147         (cselib_process_insn): ... here holds.
29148
29149 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
29150
29151         PR plugins/59335
29152         * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
29153         ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
29154
29155         PR plugins/59335
29156         * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
29157         (TM_H): Add x86-tune.def.
29158
29159 2014-03-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29160
29161         * config/aarch64/aarch64.c (generic_tunings):
29162         Use cortexa57_extra_costs.
29163
29164 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
29165
29166         PR lto/60404
29167         * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
29168         of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
29169         * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
29170         cost for in_lto_p.
29171
29172 2014-03-04  Heiher  <r@hev.cc>
29173
29174         * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
29175         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
29176
29177 2014-03-04  Uros Bizjak  <ubizjak@gmail.com>
29178
29179         * config/i386/predicates.md (const2356_operand): Change to ...
29180         (const2367_operand): ... this.
29181         * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
29182         const2367_operand.
29183         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
29184         (*avx512pf_scatterpf<mode>sf): Ditto.
29185         (avx512pf_scatterpf<mode>df): Ditto.
29186         (*avx512pf_scatterpf<mode>df_mask): Ditto.
29187         (*avx512pf_scatterpf<mode>df): Ditto.
29188         * config/i386/i386.c (ix86_expand_builtin): Update
29189         incorrect hint operand error message.
29190
29191 2014-03-04  Richard Biener  <rguenther@suse.de>
29192
29193         * lto-section-in.c (lto_get_section_data): Fix const cast.
29194
29195 2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
29196
29197         * tree-streamer.c (record_common_node): Assert we don't record
29198         nodes with type double.
29199         (preload_common_node): Skip type double, complex double and double
29200         pointer since it is now frontend dependent due to fshort-double option.
29201
29202 2014-03-04  Richard Biener  <rguenther@suse.de>
29203
29204         PR lto/60405
29205         * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
29206         (lto_input_toplevel_asms): Likewise.
29207         * lto-section-in.c (lto_get_section_data): Instead do it here
29208         for every section.
29209
29210 2014-03-04  Richard Biener  <rguenther@suse.de>
29211
29212         PR tree-optimization/60382
29213         * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
29214         dead PHIs a reduction.
29215
29216 2014-03-03  Uros Bizjak  <ubizjak@gmail.com>
29217
29218         * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
29219         hint value.
29220         (_mm_prefetch): Move out of GCC target("sse") pragma.
29221         * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
29222         GCC target("prfchw") pragma.
29223         * config/i386/i386.md (prefetch): Emit prefetchwt1 only
29224         for locality <= 2.
29225         * config/i386/i386.c (ix86_option_override_internal): Enable
29226         -mprfchw with -mprefetchwt1.
29227
29228 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
29229
29230         * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
29231         Mark as varying.
29232
29233 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
29234
29235         * opts.h (CL_PCH_IGNORE): Define.
29236         * targhooks.c (option_affects_pch_p):
29237         Return false for options that have CL_PCH_IGNORE set.
29238         * opt-functions.awk: Process PchIgnore.
29239         * doc/options.texi: Document PchIgnore.
29240
29241         * config/arc/arc.opt (misize): Add PchIgnore property.
29242
29243 2014-03-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29244
29245         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
29246         reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
29247         constraint on constants to permit them being loaded into
29248         GENERAL_REGS or BASE_REGS.
29249
29250 2014-03-03  Nick Clifton  <nickc@redhat.com>
29251
29252         * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
29253         anti-cacnonical alternatives.
29254         (negandhi3_real): New pattern.
29255         * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
29256
29257 2014-03-03  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
29258
29259         * config/avr/avr-mcus.def: Remove atxmega16x1.
29260         * config/avr/avr-tables.opt: Regenerate.
29261         * config/avr/t-multilib: Regenerate.
29262         * doc/avr-mmcu.texi: Regenerate.
29263
29264 2014-03-03  Tobias Grosser  <tobias@grosser.es>
29265             Mircea Namolaru  <mircea.namolaru@inria.fr>
29266
29267         PR tree-optimization/58028
29268         * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
29269         scalar dimensions.
29270
29271 2014-03-03  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
29272
29273         * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
29274         not handled by recognizers.
29275
29276 2014-03-03  Jakub Jelinek  <jakub@redhat.com>
29277
29278         PR middle-end/60175
29279         * function.c (expand_function_end): Don't emit
29280         clobber_return_register sequence if clobber_after is a BARRIER.
29281         * cfgexpand.c (construct_exit_block): Append instructions before
29282         return_label to prev_bb.
29283
29284 2014-03-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29285
29286         * config/rs6000/constraints.md: Document reserved use of "wc".
29287
29288 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
29289
29290         PR ipa/60150
29291         * ipa.c (function_and_variable_visibility): When dissolving comdat
29292         group, also set all symbols to local.
29293
29294 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
29295
29296         PR ipa/60306
29297
29298         Revert:
29299         2013-12-14  Jan Hubicka  <jh@suse.cz>
29300         PR middle-end/58477
29301         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
29302
29303 2014-03-02  Jon Beniston  <jon@beniston.com>
29304
29305         PR bootstrap/48230
29306         PR bootstrap/50927
29307         PR bootstrap/52466
29308         PR target/46898
29309         * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
29310           (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
29311         * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
29312         (simple_return, *simple_return): New patterns
29313         * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
29314         * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
29315
29316 2014-03-01  Paolo Carlini  <paolo.carlini@oracle.com>
29317
29318         * dwarf2out.c (gen_subprogram_die): Tidy.
29319
29320 2014-03-01  Oleg Endo  <olegendo@gcc.gnu.org>
29321
29322         PR target/60071
29323         * config/sh/sh.md (*mov_t_msb_neg): Split into ...
29324         (*mov_t_msb_neg_negc): ... this new insn.
29325
29326 2014-02-28  Jason Merrill  <jason@redhat.com>
29327
29328         PR c++/58678
29329         * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
29330         function.
29331
29332 2014-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
29333
29334         PR c++/60314
29335         * dwarf2out.c (decltype_auto_die): New static.
29336         (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
29337         (gen_type_die_with_usage): Handle 'decltype(auto)'.
29338         (is_cxx_auto): Likewise.
29339
29340 2014-02-28  Ian Bolton  <ian.bolton@arm.com>
29341
29342         * config/aarch64/aarch64.h: Define __ARM_NEON by default if
29343         we are not using general regs only.
29344
29345 2014-02-28  Richard Biener  <rguenther@suse.de>
29346
29347         PR target/60280
29348         * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
29349         previous fix and only allow to remove trivial pre-headers
29350         and latches.  Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
29351         (remove_forwarder_block): Properly update the latch of a loop.
29352
29353 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
29354
29355         PR debug/59992
29356         * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
29357         (cselib_preserved_hash_table): New.
29358         (preserve_constants_and_equivs): Move preserved vals to it.
29359         (cselib_find_slot): Look it up first.
29360         (cselib_init): Initialize it.
29361         (cselib_finish): Release it.
29362         (dump_cselib_table): Dump it.
29363
29364 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
29365
29366         PR debug/59992
29367         * cselib.c (remove_useless_values): Skip to avoid quadratic
29368         behavior if the condition moved from...
29369         (cselib_process_insn): ... here holds.
29370
29371 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
29372
29373         PR debug/57232
29374         * var-tracking.c (vt_initialize): Apply the same condition to
29375         preserve the CFA base value.
29376
29377 2014-02-28  Joey Ye  <joey.ye@arm.com>
29378
29379         PR target/PR60169
29380         * config/arm/arm.c (thumb_far_jump_used_p): Don't change
29381         if reload in progress or completed.
29382
29383 2014-02-28  Tobias Burnus  <burnus@net-b.de>
29384
29385         PR middle-end/60147
29386         * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
29387         NAMELIST_DECL.
29388
29389 2014-02-27  H.J. Lu  <hongjiu.lu@intel.com>
29390
29391         * doc/tm.texi.in (Condition Code Status): Update documention for
29392         relative locations of cc0-setter and cc0-user.
29393
29394 2014-02-27  Jeff Law  <law@redhat.com>
29395
29396         PR rtl-optimization/52714
29397         * combine.c (try_combine): When splitting an unrecognized PARALLEL
29398         into two independent simple sets, if I3 is a jump, ensure the
29399         pattern we place into I3 is a (set (pc) ...).
29400
29401 2014-02-27  Mikael Pettersson  <mikpe@it.uu.se>
29402             Jeff Law  <law@redhat.com>
29403
29404         PR rtl-optimization/49847
29405         * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
29406         are in different blocks.
29407         * doc/tm.texi (Condition Code Status): Update documention for
29408         relative locations of cc0-setter and cc0-user.
29409
29410 2014-02-27  Vladimir Makarov  <vmakarov@redhat.com>
29411
29412         PR target/59222
29413         * lra.c (lra_emit_add): Check SUBREG too.
29414
29415 2014-02-27  Andreas Schwab  <schwab@suse.de>
29416
29417         * config/m68k/m68k.c (m68k_option_override): Disable
29418         -flive-range-shrinkage for classic m68k.
29419         (m68k_override_options_after_change): Likewise.
29420
29421 2014-02-27  Marek Polacek  <polacek@redhat.com>
29422
29423         PR middle-end/59223
29424         * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
29425         -Wmaybe-uninitialized.
29426
29427 2014-02-27  Alan Modra  <amodra@gmail.com>
29428
29429         PR target/57936
29430         * reload1.c (emit_input_reload_insns): When reload_override_in,
29431         set old to rl->in_reg when rl->in_reg is a subreg.
29432
29433 2014-02-26  Richard Biener  <rguenther@suse.de>
29434
29435         PR bootstrap/60343
29436         * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
29437
29438 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
29439
29440         * common/config/i386/predicates.md (const1256_operand): Remove.
29441         (const2356_operand): New.
29442         (const_1_to_2_operand): Remove.
29443         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
29444         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
29445         (*avx512pf_gatherpf<mode>sf): Ditto.
29446         (avx512pf_gatherpf<mode>df): Ditto.
29447         (*avx512pf_gatherpf<mode>df_mask): Ditto.
29448         (*avx512pf_gatherpf<mode>df): Ditto.
29449         (avx512pf_scatterpf<mode>sf): Ditto.
29450         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
29451         (*avx512pf_scatterpf<mode>sf): Ditto.
29452         (avx512pf_scatterpf<mode>df): Ditto.
29453         (*avx512pf_scatterpf<mode>df_mask): Ditto.
29454         (*avx512pf_scatterpf<mode>df): Ditto.
29455         * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
29456
29457 2014-02-26  Ilya Tocar  <ilya.tocar@intel.com>
29458
29459         * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
29460         (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
29461         (_mm512_mask_testn_epi64_mask): Move to ...
29462         * config/i386/avx512cdintrin.h: Here.
29463         * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
29464         * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
29465         (avx512f_scalef<mode><mask_name><round_name>): Ditto.
29466         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
29467         TARGET_AVX512F from TARGET_AVX512CD.
29468
29469 2014-02-26  Richard Biener  <rguenther@suse.de>
29470
29471         PR ipa/60327
29472         * ipa.c (walk_polymorphic_call_targets): Properly guard
29473         call to inline_update_overall_summary.
29474
29475 2014-02-26  Bin Cheng  <bin.cheng@arm.com>
29476
29477         PR target/60280
29478         * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
29479         and latches only if requested.  Fix latch if it is removed.
29480         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
29481         LOOPS_HAVE_PREHEADERS.
29482
29483 2014-02-25  Andrew Pinski  <apinski@cavium.com>
29484
29485         * builtins.c (expand_builtin_thread_pointer): Create a new target
29486         when the target is NULL.
29487
29488 2014-02-25  Vladimir Makarov  <vmakarov@redhat.com>
29489
29490         PR rtl-optimization/60317
29491         * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
29492         * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
29493         * lra-assigns.c: Include params.h.
29494         (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
29495         other reload pseudos considerations.
29496
29497 2014-02-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29498
29499         * config/rs6000/vector.md (*vector_unordered<mode>): Change split
29500         to use canonical form for nor<mode>3.
29501
29502 2014-02-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29503
29504         PR target/55426
29505         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
29506         conversions.
29507
29508 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
29509
29510         * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
29511         (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
29512         (ix86_handle_option): Handle OPT_mprefetchwt1.
29513         * config/i386/cpuid.h (bit_PREFETCHWT1): New.
29514         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
29515         PREFETCHWT1 CPUID.
29516         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
29517         OPTION_MASK_ISA_PREFETCHWT1.
29518         * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
29519         (PTA_PREFETCHWT1): New.
29520         (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
29521         (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
29522         * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
29523         * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
29524         (*prefetch_avx512pf_<mode>_: Change into ...
29525         (*prefetch_prefetchwt1_<mode>: This.
29526         * config/i386/i386.opt (mprefetchwt1): New.
29527         * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
29528         (_mm_prefetch): Handle intent to write.
29529         * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
29530
29531 2014-02-25  Richard Biener  <rguenther@suse.de>
29532
29533         PR middle-end/60291
29534         * emit-rtl.c (mem_attrs_htab): Remove.
29535         (mem_attrs_htab_hash): Likewise.
29536         (mem_attrs_htab_eq): Likewise.
29537         (set_mem_attrs): Always allocate new mem-attrs when something changed.
29538         (init_emit_once): Do not allocate mem_attrs_htab.
29539
29540 2014-02-25  Richard Biener  <rguenther@suse.de>
29541
29542         PR lto/60319
29543         * lto-opts.c (lto_write_options): Output non-explicit conservative
29544         -fwrapv, -fno-trapv and -fno-strict-overflow.
29545         * lto-wrapper.c (merge_and_complain): Handle merging those options.
29546         (run_gcc): And pass them through.
29547
29548 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
29549
29550         * sel-sched.c (calculate_new_fences): New parameter ptime.
29551         Calculate it as a maximum over all fence cycles.
29552         (sel_sched_region_2): Adjust the call to calculate_new_fences.
29553         Print the final schedule timing when sched_verbose.
29554
29555 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
29556
29557         PR rtl-optimization/60292
29558         * sel-sched.c (fill_vec_av_set): Do not reset target availability
29559         bit fot the fence instruction.
29560
29561 2014-02-24  Alangi Derick  <alangiderick@gmail.com>
29562
29563         * calls.h: Fix typo in comment.
29564
29565 2014-02-24  John David Anglin  <danglin@gcc.gnu.org>
29566
29567         * config/pa/pa.c (pa_output_move_double): Don't valididate when
29568         adjusting offsetable addresses.
29569
29570 2014-02-24  Guozhi Wei  <carrot@google.com>
29571
29572         * sparseset.h (sparseset_pop): Fix the wrong index.
29573
29574 2014-02-24  Walter Lee  <walt@tilera.com>
29575
29576         * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
29577         (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
29578         triplet.
29579         * common/config/tilegx/tilegx-common.c
29580         (TARGET_DEFAULT_TARGET_FLAGS): Define.
29581         * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
29582         (LINK_SPEC): Ditto.
29583         * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
29584         * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
29585         (tilegx_gimplify_va_arg_expr): Handle big endian.
29586         (tilegx_expand_unaligned_load): Ditto.
29587         (tilegx_expand_unaligned_store): Ditto.
29588         (TARGET_RETURN_IN_MSB): New.
29589         * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
29590         (TARGET_ENDIAN_DEFAULT): New.
29591         (TARGET_BIG_ENDIAN): Handle big endian.
29592         (BYTES_BIG_ENDIAN): Ditto.
29593         (WORDS_BIG_ENDIAN): Ditto.
29594         (FLOAT_WORDS_BIG_ENDIAN): Ditto.
29595         (ENDIAN_SPEC): New.
29596         (EXTRA_SPECS): New.
29597         * config/tilegx/tilegx.md (extv): Handle big endian.
29598         (extzv): Ditto.
29599         (insn_st<n>): Ditto.
29600         (insn_st<n>_add<bitsuffix>): Ditto.
29601         (insn_stnt<n>): Ditto.
29602         (insn_stnt<n>_add<bitsuffix>):Ditto.
29603         (vec_interleave_highv8qi): Handle big endian.
29604         (vec_interleave_highv8qi_be): New.
29605         (vec_interleave_highv8qi_le): New.
29606         (insn_v1int_h): Handle big endian.
29607         (vec_interleave_lowv8qi): Handle big endian.
29608         (vec_interleave_lowv8qi_be): New.
29609         (vec_interleave_lowv8qi_le): New.
29610         (insn_v1int_l): Handle big endian.
29611         (vec_interleave_highv4hi): Handle big endian.
29612         (vec_interleave_highv4hi_be): New.
29613         (vec_interleave_highv4hi_le): New.
29614         (insn_v2int_h): Handle big endian.
29615         (vec_interleave_lowv4hi): Handle big endian.
29616         (vec_interleave_lowv4hi_be): New.
29617         (vec_interleave_lowv4hi_le): New.
29618         (insn_v2int_l): Handle big endian.
29619         (vec_interleave_highv2si): Handle big endian.
29620         (vec_interleave_highv2si_be): New.
29621         (vec_interleave_highv2si_le): New.
29622         (insn_v4int_h): Handle big endian.
29623         (vec_interleave_lowv2si): Handle big endian.
29624         (vec_interleave_lowv2si_be): New.
29625         (vec_interleave_lowv2si_le): New.
29626         (insn_v4int_l): Handle big endian.
29627         * config/tilegx/tilegx.opt (mbig-endian): New option.
29628         (mlittle-endian): New option.
29629         * doc/install.texi: Document tilegxbe-linux.
29630         * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
29631
29632 2014-02-24  Martin Jambor  <mjambor@suse.cz>
29633
29634         PR ipa/60266
29635         * ipa-cp.c (propagate_constants_accross_call): Bail out early if
29636         there are no parameter descriptors.
29637
29638 2014-02-24  Andrey Belevantsev  <abel@ispras.ru>
29639
29640         PR rtl-optimization/60268
29641         * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
29642         initialization to ...
29643         (sched_rgn_init): ... here.
29644         (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
29645
29646 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
29647
29648         * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
29649         names.
29650
29651 2014-02-23  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
29652
29653         * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
29654         definition.
29655
29656 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
29657
29658         * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
29659         define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
29660
29661 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
29662
29663         * config/microblaze/predicates.md: Add cmp_op predicate.
29664         * config/microblaze/microblaze.md: Add branch_compare instruction
29665         which uses cmp_op predicate and emits cmp insn before branch.
29666         * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
29667         to microblaze_expand_conditional_branch and consolidate logic.
29668         (microblaze_expand_conditional_branch): emit branch_compare
29669         insn instead of handling cmp op separate from branch insn.
29670
29671 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29672
29673         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
29674         to permit subregs.
29675
29676 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29677
29678         * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
29679         define_insn with define_expand and new define_insn
29680         *altivec_lve<VI_char>x_internal.
29681         (altivec_stve<VI_char>x): Replace define_insn with define_expand
29682         and new define_insn *altivec_stve<VI_char>x_internal.
29683         * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
29684         prototype.
29685         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
29686         lve*x built-ins.
29687         (altivec_expand_stvex_be): New function.
29688
29689 2014-02-22  Joern Rennecke  <joern.rennecke@embecosm.com>
29690
29691         * config/avr/avr.c (avr_can_eliminate): Allow elimination from
29692         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
29693         * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
29694         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
29695
29696 2014-02-21  Vladimir Makarov  <vmakarov@redhat.com>
29697
29698         PR target/60298
29699         * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
29700         instead of emit_move_insn.
29701
29702 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29703
29704         * config/rs6000/altivec.md (altivec_vsumsws): Replace second
29705         vspltw with vsldoi.
29706         (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
29707         gen_altivec_vsumsws.
29708
29709 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29710
29711         * config/rs6000/altivec.md (altivec_lvxl): Rename as
29712         *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
29713         (altivec_lvxl_<mode>): New define_expand incorporating
29714         -maltivec=be semantics where needed.
29715         (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
29716         (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
29717         semantics where needed.
29718         (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
29719         (altivec_stvx_<mode>): New define_expand incorporating
29720         -maltivec=be semantics where needed.
29721         (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
29722         VM2 iterator instead of V4SI.
29723         (altivec_stvxl_<mode>): New define_expand incorporating
29724         -maltivec=be semantics where needed.
29725         * config/rs6000/rs6000-builtin.def: Add new built-in definitions
29726         LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
29727         LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
29728         STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
29729         STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
29730         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
29731         ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
29732         similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
29733         ALTIVEC_BUILTIN_STVXL.
29734         * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
29735         (altivec_expand_stvx_be): Likewise.
29736         * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
29737         (altivec_expand_lvx_be): Likewise.
29738         (altivec_expand_stvx_be): Likewise.
29739         (altivec_expand_builtin): Add cases for
29740         ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
29741         ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
29742         (altivec_init_builtins): Add definitions for
29743         __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
29744         __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
29745
29746 2014-02-21  Catherine Moore  <clm@codesourcery.com>
29747
29748         * doc/invoke.texi (mvirt, mno-virt): Document.
29749         * config/mips/mips.opt (mvirt): New option.
29750         * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
29751
29752 2014-02-21  Richard Biener  <rguenther@suse.de>
29753
29754         PR tree-optimization/60276
29755         * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
29756         (STMT_VINFO_MIN_NEG_DIST): New macro.
29757         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
29758         STMT_VINFO_MIN_NEG_DIST.
29759         * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
29760         made for negative dependence distances still hold.
29761
29762 2014-02-21  Richard Biener  <rguenther@suse.de>
29763
29764         PR middle-end/60291
29765         * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
29766         DECL_INITIAL for globals not in the current function context.
29767
29768 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
29769
29770         PR tree-optimization/56490
29771         * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
29772         * tree-ssa-uninit.c: Include params.h.
29773         (compute_control_dep_chain): Add num_calls argument, return false
29774         if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
29775         num_calls to recursive call.
29776         (find_predicates): Change dep_chain into normal array,
29777         cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
29778         variable and adjust compute_control_dep_chain caller.
29779         (find_def_preds): Likewise.
29780
29781 2014-02-21  Thomas Schwinge  <thomas@codesourcery.com>
29782
29783         * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
29784         <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
29785
29786 2014-02-21  Nick Clifton  <nickc@redhat.com>
29787
29788         * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
29789         (pushhi1): Likewise.
29790         (popqi1): Add mode to pre_dec.
29791         (pophi1): Likewise.
29792
29793 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
29794
29795         * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
29796         mode for mask of V8SFmode permutation.
29797
29798 2014-02-20  Richard Henderson  <rth@redhat.com>
29799
29800         PR c++/60272
29801         * builtins.c (expand_builtin_atomic_compare_exchange): Always make
29802         a new pseudo for OLDVAL.
29803
29804 2014-02-20  Jakub Jelinek  <jakub@redhat.com>
29805
29806         PR target/57896
29807         * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
29808         gen_reg_rtx if d->testing_p.
29809         (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
29810         if d->testing_p and we will certainly return true.
29811         (expand_vec_perm_even_odd_1): Likewise.  Don't call gen_reg_rtx
29812         if d->testing_p.
29813
29814 2014-02-20  Uros Bizjak  <ubizjak@gmail.com>
29815
29816         * emit-rtl.c (gen_reg_rtx): Assert that
29817         crtl->emit.regno_pointer_align_length is non-zero.
29818
29819 2014-02-20  Richard Henderson  <rth@redhat.com>
29820
29821         PR c++/60272
29822         * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
29823         on failure the store back into EXPECT.
29824
29825 2014-02-20  Chung-Lin Tang  <cltang@codesourcery.com>
29826             Sandra Loosemore  <sandra@codesourcery.com>
29827
29828         * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
29829         * config/nios2/nios2.c (nios2_function_profiler): Add
29830         -fPIC (flag_pic == 2) support.
29831         (nios2_handle_custom_fpu_cfg): Fix warning parameter.
29832         (nios2_large_offset_p): New function.
29833         (nios2_unspec_reloc_p): Move up position, update to use
29834         nios2_large_offset_p.
29835         (nios2_unspec_address): Remove function.
29836         (nios2_unspec_offset): New function.
29837         (nios2_large_got_address): New function.
29838         (nios2_got_address): Add large offset support.
29839         (nios2_legitimize_tls_address): Update usage of removed and new
29840         functions.
29841         (nios2_symbol_binds_local_p): New function.
29842         (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
29843         (nios2_legitimize_address): Update to use nios2_large_offset_p.
29844         (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
29845         (nios2_print_operand): Merge H/L processing, add hiadj/lo
29846         processing for (const (unspec ...)).
29847         (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
29848
29849 2014-02-20  Richard Biener  <rguenther@suse.de>
29850
29851         * tree-cfg.c (replace_uses_by): Mark altered BBs before
29852         doing the substitution.
29853         (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
29854
29855 2014-02-20  Martin Jambor  <mjambor@suse.cz>
29856
29857         PR ipa/55260
29858         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
29859         info when checking whether lattices are bottom.
29860
29861 2014-02-20  Richard Biener  <rguenther@suse.de>
29862
29863         PR middle-end/60221
29864         * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
29865         regions at -O0.
29866
29867 2014-02-20  Jan Hubicka  <hubicka@ucw.cz>
29868
29869         PR ipa/58555
29870         * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
29871         parameter specifying the scaling.
29872         (inline_call): Update.
29873         (want_inline_recursively): Guard division by zero.
29874         (recursive_inlining): Update.
29875         * ipa-inline.h (clone_inlined_nodes): Update.
29876
29877 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
29878
29879         PR target/60204
29880         * config/i386/i386.c (classify_argument): Pass structures of size
29881         64 bytes or less in register.
29882
29883 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
29884             Kirill Yukhin  <kirill.yukhin@intel.com>
29885
29886         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
29887         (_mm_rcp28_round_ss): Ditto.
29888         (_mm_rsqrt28_round_sd): Ditto.
29889         (_mm_rsqrt28_round_ss): Ditto.
29890         * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
29891         (_mm_rcp14_round_ss): Ditto.
29892         (_mm_rsqrt14_round_sd): Ditto.
29893         (_mm_rsqrt14_round_ss): Ditto.
29894         * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
29895         the first input operand, get rid of match_dup.
29896         (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
29897         attribute to sse.
29898         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
29899         Ditto.
29900         (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
29901         operand as the first input operand, set type attribute.
29902         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
29903         Set type attribute.
29904         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
29905         operand as the first input operand, set type attribute.
29906
29907 2014-02-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29908
29909         * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
29910         bit of zero.
29911
29912 2014-02-19  H.J. Lu  <hongjiu.lu@intel.com>
29913
29914         PR target/60207
29915         * config/i386/i386.c (construct_container): Remove TFmode check
29916         for X86_64_INTEGER_CLASS.
29917
29918 2014-02-19  Uros Bizjak  <ubizjak@gmail.com>
29919
29920         PR target/59794
29921         * config/i386/i386.c (type_natural_mode): Warn for ABI changes
29922         only when -Wpsabi is enabled.
29923
29924 2014-02-19  Michael Hudson-Doyle  <michael.hudson@linaro.org>
29925
29926          PR target/59799
29927         * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
29928         passing arrays in registers are the same as for structs, so remove the
29929         special case for them.
29930
29931 2014-02-19  Eric Botcazou  <ebotcazou@adacore.com>
29932
29933         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
29934         destination type, extract only the valid bits if the source type is not
29935         integral and has a different mode.
29936
29937 2014-02-19  Richard Biener  <rguenther@suse.de>
29938
29939         PR ipa/60243
29940         * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
29941         for all calls.
29942
29943 2014-02-19  Richard Biener  <rguenther@suse.de>
29944
29945         PR ipa/60243
29946         * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
29947         (ipa_modify_call_arguments): Emit an argument load explicitely and
29948         preserve virtual SSA form there and for the replacement call.
29949         Do not update SSA form nor free dominance info.
29950
29951 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
29952
29953         * ipa.c (function_and_variable_visibility): Also clear WEAK
29954         flag when disolving COMDAT_GROUP.
29955
29956 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
29957
29958         * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
29959         * ipa-prop.c (ipa_set_jf_known_type): Return early when
29960         not devirtualizing.
29961         (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
29962         do more sanity checks.
29963         (detect_type_change): Return true when giving up early.
29964         (compute_complex_assign_jump_func): Fix type parameter of
29965         ipa_set_ancestor_jf.
29966         (compute_complex_ancestor_jump_func): Likewise.
29967         (update_jump_functions_after_inlining): Fix updating of
29968         ancestor function.
29969         * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
29970
29971 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
29972
29973         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
29974         inline clones when edge disappears.
29975
29976 2014-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
29977
29978         PR target/60203
29979         * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
29980         Split 64-bit moves into 2 patterns.  Do not allow the use of
29981         direct move for TDmode in little endian, since the decimal value
29982         has little endian bytes within a word, but the 64-bit pieces are
29983         ordered in a big endian fashion, and normal subreg's of TDmode are
29984         not allowed.
29985         (mov<mode>_64bit_dm): Likewise.
29986         (movtd_64bit_nodm): Likewise.
29987
29988 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
29989
29990         PR tree-optimization/60174
29991         * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
29992         statement of an SSA_NAME that occurs in an abnormal PHI node.
29993
29994 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
29995
29996         PR sanitizer/60142
29997         * final.c (SEEN_BB): Remove.
29998         (SEEN_NOTE, SEEN_EMITTED): Renumber.
29999         (final_scan_insn): Don't force_source_line on second
30000         NOTE_INSN_BASIC_BLOCK.
30001
30002 2014-02-18  Uros Bizjak  <ubizjak@gmail.com>
30003
30004         PR target/60205
30005         * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
30006         * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
30007         (type_natural_mode): Warn ABI change when %zmm register is not
30008         available for AVX512F vector value passing.
30009
30010 2014-02-18  Kai Tietz  <ktietz@redhat.com>
30011
30012         PR target/60193
30013         * config/i386/i386.c (ix86_expand_prologue): Use value in
30014         rax register as displacement when restoring %r10 or %rax.
30015         Fix wrong offset when restoring both registers.
30016
30017 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
30018
30019         * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
30020         assertion with conditional return.
30021
30022 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
30023             Uros Bizjak  <ubizjak@gmail.com>
30024
30025         PR driver/60233
30026         * config/i386/driver-i386.c (host_detect_local_cpu): If
30027         YMM state is not saved by the OS, also clear has_f16c.  Move
30028         CPUID 0x80000001 handling before YMM state saving checking.
30029
30030 2014-02-18  Andrey Belevantsev  <abel@ispras.ru>
30031
30032         PR rtl-optimization/58960
30033         * haifa-sched.c (alloc_global_sched_pressure_data): New,
30034         factored out from ...
30035         (sched_init): ... here.
30036         (free_global_sched_pressure_data): New, factored out from ...
30037         (sched_finish): ... here.
30038         * sched-int.h (free_global_sched_pressure_data): Declare.
30039         * sched-rgn.c (nr_regions_initial): New static global.
30040         (haifa_find_rgns): Initialize it.
30041         (schedule_region): Disable sched-pressure for the newly
30042         generated regions.
30043
30044 2014-02-17  Richard Biener  <rguenther@suse.de>
30045
30046         * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
30047         release SSA defs of pattern stmts.
30048
30049 2014-02-17  Richard Biener  <rguenther@suse.de>
30050
30051         * tree-inline.c (expand_call_inline): Release the virtual
30052         operand defined by the call we are about to inline.
30053
30054 2014-02-17  Richard Biener  <rguenther@suse.de>
30055
30056         * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
30057
30058 2014-02-17  Kirill Yukhin  <kirill.yukhin@intel.com>
30059             Ilya Tocar  <ilya.tocar@intel.com>
30060
30061         * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
30062         arguments order in builtin.
30063         (_mm512_permutexvar_epi64): Ditto.
30064         (_mm512_mask_permutexvar_epi64): Ditto
30065         (_mm512_maskz_permutexvar_epi32): Ditto
30066         (_mm512_permutexvar_epi32): Ditto
30067         (_mm512_mask_permutexvar_epi32): Ditto
30068
30069 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30070
30071         * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
30072         (p8_vmrgow): Likewise.
30073
30074 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30075
30076         * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
30077         endian targets.
30078
30079 2014-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
30080
30081         PR target/60203
30082         * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
30083         (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
30084         into 64-bit and 32-bit moves.  On 64-bit moves, add support for
30085         using direct move instructions on ISA 2.07.  Also adjust
30086         instruction length for 64-bit.
30087         (mov<mode>_64bit, TFmode/TDmode): Likewise.
30088         (mov<mode>_32bit, TFmode/TDmode): Likewise.
30089
30090 2014-02-15  Alan Modra  <amodra@gmail.com>
30091
30092         PR target/58675
30093         PR target/57935
30094         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
30095         find_replacement on parts of insn rtl that might be reloaded.
30096
30097 2014-02-15  Richard Biener  <rguenther@suse.de>
30098
30099         PR tree-optimization/60183
30100         * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
30101         (tree_ssa_phiprop): Calculate and free post-dominators.
30102
30103 2014-02-14  Jeff Law  <law@redhat.com>
30104
30105         PR rtl-optimization/60131
30106         * ree.c (get_extended_src_reg): New function.
30107         (combine_reaching_defs): Use it rather than assuming location of REG.
30108         (find_and_remove_re): Verify first operand of extension is
30109         a REG before adding the insns to the copy list.
30110
30111 2014-02-14  Roland McGrath  <mcgrathr@google.com>
30112
30113         * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
30114         * configure: Regenerated.
30115         * config.in: Regenerated.
30116         * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
30117         instead of ASM_SHORT.
30118
30119 2014-02-14  Vladimir Makarov  <vmakarov@redhat.com>
30120             Richard Earnshaw  <rearnsha@arm.com>
30121
30122         PR rtl-optimization/59535
30123         * lra-constraints.c (process_alt_operands): Encourage alternative
30124         when unassigned pseudo class is superset of the alternative class.
30125         (inherit_reload_reg): Don't inherit when optimizing for code size.
30126         * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
30127         returning CORE_REGS for anything but Thumb1 and BASE_REGS for
30128         modes not less than 4 for Thumb1.
30129
30130 2014-02-14  Kyle McMartin  <kyle@redhat.com>
30131
30132         PR pch/60010
30133         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
30134
30135 2014-02-14  Richard Biener  <rguenther@suse.de>
30136
30137         * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
30138         (get_frame_arg): Drop the assert with langhook types_compatible_p.
30139         Do not strip INDIRECT_REFs.
30140
30141 2014-02-14  Richard Biener  <rguenther@suse.de>
30142
30143         PR lto/60179
30144         * lto-streamer-out.c (DFS_write_tree_body): Do not follow
30145         DECL_FUNCTION_SPECIFIC_TARGET.
30146         (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
30147         * tree-streamer-out.c (pack_ts_target_option): Remove.
30148         (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
30149         (write_ts_function_decl_tree_pointers): Do not stream
30150         DECL_FUNCTION_SPECIFIC_TARGET.
30151         * tree-streamer-in.c (unpack_ts_target_option): Remove.
30152         (unpack_value_fields): Do not stream TS_TARGET_OPTION.
30153         (lto_input_ts_function_decl_tree_pointers): Do not stream
30154         DECL_FUNCTION_SPECIFIC_TARGET.
30155
30156 2014-02-14  Jakub Jelinek  <jakub@redhat.com>
30157
30158         * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
30159         (get_initial_def_for_induction, vectorizable_induction): Ignore
30160         debug stmts when looking for exit_phi.
30161         (vectorizable_live_operation): Fix up condition.
30162
30163 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
30164
30165         * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
30166         nreverse() because it changes the content of original tree list.
30167
30168 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
30169
30170         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
30171         * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
30172
30173 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
30174
30175         * config/nds32/nds32.c (nds32_naked_function_p): Follow the
30176         GNU coding standards.
30177
30178 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
30179
30180         PR debug/60152
30181         * dwarf2out.c (gen_subprogram_die): Don't call
30182         add_calling_convention_attribute if subr_die is old_die.
30183
30184 2014-02-13  Sharad Singhai  <singhai@google.com>
30185
30186         * doc/optinfo.texi: Fix order of nodes.
30187
30188 2014-02-13  Uros Bizjak  <ubizjak@gmail.com>
30189
30190         * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
30191         operands[2], not operands[3].
30192
30193 2014-02-13  Richard Biener  <rguenther@suse.de>
30194
30195         PR bootstrap/59878
30196         * doc/install.texi (ISL): Update recommended version to 0.12.2,
30197         mention the possibility of an in-tree build.
30198         (CLooG): Update recommended version to 0.18.1, mention the
30199         possibility of an in-tree build and clarify that the ISL
30200         bundled with CLooG does not work.
30201
30202 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
30203
30204         PR target/43546
30205         * expr.c (compress_float_constant): If x is a hard register,
30206         extend into a pseudo and then move to x.
30207
30208 2014-02-13  Dominik Vogt  <vogt@linux.vnet.ibm.com>
30209
30210         * config/s390/s390.c (s390_asm_output_function_label): Fix crash
30211         caused by bad second argument to warning_at() with -mhotpatch and
30212         nested functions (e.g. with gfortran).
30213
30214 2014-02-13  Richard Sandiford  <rdsandiford@googlemail.com>
30215
30216         * opts.c (option_name): Remove "enabled by default" rider.
30217
30218 2014-02-12  John David Anglin  <danglin@gcc.gnu.org>
30219
30220         * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
30221
30222 2014-02-12  H.J. Lu  <hongjiu.lu@intel.com>
30223             Uros Bizjak  <ubizjak@gmail.com>
30224
30225         PR target/60151
30226         * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
30227         * configure: Regenerated.
30228
30229 2014-02-12  Richard Biener  <rguenther@suse.de>
30230
30231         * vec.c (vec_prefix::calculate_allocation): Move as
30232         inline variant to vec.h.
30233         (vec_prefix::calculate_allocation_1): New out-of-line version.
30234         * vec.h (vec_prefix::calculate_allocation_1): Declare.
30235         (vec_prefix::m_has_auto_buf): Rename to ...
30236         (vec_prefix::m_using_auto_storage): ... this.
30237         (vec_prefix::calculate_allocation): Inline the easy cases
30238         and dispatch to calculate_allocation_1 which doesn't need the
30239         prefix address.
30240         (va_heap::reserve): Use gcc_checking_assert.
30241         (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
30242         m_using_auto_storage.
30243         (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
30244         member and adjust.
30245         (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
30246         (vec<T, va_heap, vl_ptr>::release): Avoid casting.
30247         (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
30248
30249 2014-02-12  Richard Biener  <rguenther@suse.de>
30250
30251         * gcse.c (compute_transp): break from loop over canon_modify_mem_list
30252         when we found a dependence.
30253
30254 2014-02-12  Thomas Schwinge  <thomas@codesourcery.com>
30255
30256         * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
30257         common code...
30258         (maybe_fold_stmt): ... into this new function.
30259         * omp-low.c (lower_omp): Update comment.
30260
30261         * omp-low.c (lower_omp_target): Add clobber for sizes array, after
30262         last use.
30263
30264         * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
30265         dereference.
30266
30267 2014-02-12  James Greenhalgh  <james.greenhalgh@arm.com>
30268
30269         * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
30270         identifiers in comments.
30271         (cortexa53_extra_costs): Likewise.
30272         * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
30273         (cortexa7_extra_costs): Likewise.
30274         (cortexa12_extra_costs): Likewise.
30275         (cortexa15_extra_costs): Likewise.
30276         (v7m_extra_costs): Likewise.
30277
30278 2014-02-12  Richard Biener  <rguenther@suse.de>
30279
30280         PR middle-end/60092
30281         * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
30282         of posix_memalign being successful.
30283         (lower_stmt): Restrict lowering of posix_memalign to when
30284         -ftree-bit-ccp is enabled.
30285
30286 2014-02-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
30287
30288         * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
30289         arg_loc.
30290         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
30291
30292 2014-02-12  Eric Botcazou  <ebotcazou@adacore.com>
30293
30294         PR rtl-optimization/60116
30295         * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
30296         other_insn once the combination has been validated.
30297
30298 2014-02-11  Jan Hubicka  <hubicka@ucw.cz>
30299
30300         PR lto/59468
30301         * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
30302         and wrapper.
30303         * ipa-devirt.c: Include demangle.h
30304         (odr_violation_reported): New static variable.
30305         (add_type_duplicate): Update odr_violations.
30306         (maybe_record_node): Add completep parameter; update it.
30307         (record_target_from_binfo): Add COMPLETEP parameter;
30308         update it as needed.
30309         (possible_polymorphic_call_targets_1): Likewise.
30310         (struct polymorphic_call_target_d): Add nonconstruction_targets;
30311         rename FINAL to COMPLETE.
30312         (record_targets_from_bases): Sanity check we found the binfo;
30313         fix COMPLETEP updating.
30314         (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
30315         parameter, fix computing of COMPLETEP.
30316         (dump_possible_polymorphic_call_targets): Imrove readability of dump;
30317         at LTO time do demangling.
30318         (ipa_devirt): Use nonconstruction_targets; Improve dumps.
30319         * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
30320         parameter.
30321         (gimple_get_virt_method_for_binfo): Likewise.
30322         * gimple-fold.h (gimple_get_virt_method_for_binfo,
30323         gimple_get_virt_method_for_vtable): Update prototypes.
30324
30325 2014-02-11  Vladimir Makarov  <vmakarov@redhat.com>
30326
30327         PR target/49008
30328         * genautomata.c (add_presence_absence): Fix typo with
30329         {final_}presence_list.
30330
30331 2014-02-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
30332
30333         PR target/60137
30334         * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
30335         for VSX/Altivec vectors that land in GPR registers.
30336
30337 2014-02-11  Richard Henderson  <rth@redhat.com>
30338             Jakub Jelinek  <jakub@redhat.com>
30339
30340         PR debug/59776
30341         * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
30342         around drhs if type conversion to lacc->type is not useless.
30343
30344 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30345
30346         * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
30347         tuning struct.
30348         (cortex-a57.cortex-a53): Likewise.
30349         * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
30350
30351 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30352
30353         * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
30354         arm_restrict_it.
30355
30356 2014-02-11  Renlin Li  <Renlin.Li@arm.com>
30357
30358         * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
30359         add_options_for_arm_vfp3.
30360
30361 2014-02-11  Jeff Law  <law@redhat.com>
30362
30363         PR middle-end/54041
30364         * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
30365         object with an undesirable mode.
30366
30367 2014-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30368
30369         PR libgomp/60107
30370         * config/i386/sol2-9.h: New file.
30371         * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
30372         *-*-solaris2.9*): Use it.
30373
30374 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
30375
30376         * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
30377         * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
30378
30379 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
30380
30381         * config/microblaze/microblaze.c: Extend mcpu version format
30382
30383 2014-02-10  David Holsgrove  <david.holsgrove@xilinx.com>
30384
30385         * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
30386
30387 2014-02-10  Richard Henderson  <rth@redhat.com>
30388
30389         PR target/59927
30390         * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
30391         * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
30392         ms-abi vs -mno-accumulate-outgoing-args.
30393         (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
30394         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
30395         respect to ms-abi.
30396
30397 2014-02-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
30398
30399         PR middle-end/60080
30400         * cfgexpand.c (expand_asm_operands): Attach source location to
30401         ASM_INPUT rtx objects.
30402         * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
30403
30404 2014-02-10  Nick Clifton  <nickc@redhat.com>
30405
30406         * config/mn10300/mn10300.c (popcount): New function.
30407         (mn10300_expand_prologue): Include saved registers in stack usage
30408         count.
30409
30410 2014-02-10  Jeff Law  <law@redhat.com>
30411
30412         PR middle-end/52306
30413         * reload1.c (emit_input_reload_insns): Do not create invalid RTL
30414         when changing the SET_DEST of a prior insn to avoid an input reload.
30415
30416 2014-02-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30417
30418         * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
30419         big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
30420         -mcall-openbsd, or -mcall-linux.
30421         (CC1_ENDIAN_BIG_SPEC): Remove.
30422         (CC1_ENDIAN_LITTLE_SPEC): Remove.
30423         (CC1_ENDIAN_DEFAULT_SPEC): Remove.
30424         (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
30425         (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
30426         and %cc1_endian_default.
30427         * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
30428
30429 2014-02-10  Richard Biener  <rguenther@suse.de>
30430
30431         PR tree-optimization/60115
30432         * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
30433         MEM_REF handling.  Properly verify that the accesses are not
30434         out of the objects bound.
30435
30436 2014-02-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30437
30438         * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
30439         coretex to cortex.
30440
30441 2014-02-10  Eric Botcazou  <ebotcazou@adacore.com>
30442
30443         * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
30444         proper constants and fix formatting.
30445         (possible_polymorphic_call_targets): Fix formatting.
30446
30447 2014-02-10  Kirill Yukhin  <kirill.yukhin@intel.com>
30448             Ilya Tocar  <ilya.tocar@intel.com>
30449
30450         * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
30451         (_mm512_loadu_epi32): Renamed into...
30452         (_mm512_loadu_si512): This.
30453         (_mm512_storeu_epi32): Renamed into...
30454         (_mm512_storeu_si512): This.
30455         (_mm512_maskz_ceil_ps): Removed.
30456         (_mm512_maskz_ceil_pd): Ditto.
30457         (_mm512_maskz_floor_ps): Ditto.
30458         (_mm512_maskz_floor_pd): Ditto.
30459         (_mm512_floor_round_ps): Ditto.
30460         (_mm512_floor_round_pd): Ditto.
30461         (_mm512_ceil_round_ps): Ditto.
30462         (_mm512_ceil_round_pd): Ditto.
30463         (_mm512_mask_floor_round_ps): Ditto.
30464         (_mm512_mask_floor_round_pd): Ditto.
30465         (_mm512_mask_ceil_round_ps): Ditto.
30466         (_mm512_mask_ceil_round_pd): Ditto.
30467         (_mm512_maskz_floor_round_ps): Ditto.
30468         (_mm512_maskz_floor_round_pd): Ditto.
30469         (_mm512_maskz_ceil_round_ps): Ditto.
30470         (_mm512_maskz_ceil_round_pd): Ditto.
30471         (_mm512_expand_pd): Ditto.
30472         (_mm512_expand_ps): Ditto.
30473         * config/i386/i386.c (ix86_builtins): Remove
30474         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
30475         (bdesc_args): Ditto.
30476         * config/i386/predicates.md (const1256_operand): New.
30477         (const_1_to_2_operand): Ditto.
30478         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
30479         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
30480         (*avx512pf_gatherpf<mode>sf): Ditto.
30481         (avx512pf_gatherpf<mode>df): Ditto.
30482         (*avx512pf_gatherpf<mode>df_mask): Ditto.
30483         (*avx512pf_gatherpf<mode>df): Ditto.
30484         (avx512pf_scatterpf<mode>sf): Ditto.
30485         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
30486         (*avx512pf_scatterpf<mode>sf): Ditto.
30487         (avx512pf_scatterpf<mode>df): Ditto.
30488         (*avx512pf_scatterpf<mode>df_mask): Ditto.
30489         (*avx512pf_scatterpf<mode>df): Ditto.
30490         (avx512f_expand<mode>): Removed.
30491         (<shift_insn><mode>3<mask_name>): Change predicate type.
30492
30493 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
30494
30495         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
30496         not at the end of datarefs vector use ordered_remove to avoid
30497         reordering datarefs vector.
30498
30499         PR c/59984
30500         * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
30501         mark local addressable non-static vars as GOVD_PRIVATE
30502         instead of GOVD_LOCAL.
30503         * omp-low.c (lower_omp_for): Move gimple_bind_vars
30504         and BLOCK_VARS of gimple_bind_block to new_stmt rather
30505         than copying them.
30506
30507         PR middle-end/60092
30508         * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
30509         if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
30510         assume_aligned or alloc_align attributes.
30511         (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
30512         arguments.  Handle also assume_aligned and alloc_align attributes.
30513         (evaluate_stmt): Adjust bit_value_assume_aligned caller.  Handle
30514         calls to functions with assume_aligned or alloc_align attributes.
30515         * doc/extend.texi: Document assume_aligned and alloc_align attributes.
30516
30517 2014-02-08  Terry Guo  <terry.guo@arm.com>
30518
30519         * doc/invoke.texi: Document ARM -march=armv7e-m.
30520
30521 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
30522
30523         * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
30524         flag on __cilkrts_rethrow builtin.
30525
30526         PR ipa/60026
30527         * ipa-cp.c (determine_versionability): Fail at -O0
30528         or __attribute__((optimize (0))) or -fno-ipa-cp functions.
30529         * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
30530
30531         Revert:
30532         2014-02-04  Jakub Jelinek  <jakub@redhat.com>
30533
30534         PR ipa/60026
30535         * tree-inline.c (copy_forbidden): Fail for
30536         __attribute__((optimize (0))) functions.
30537
30538 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
30539
30540         * varpool.c: Include pointer-set.h.
30541         (varpool_remove_unreferenced_decls): Variables in other partitions
30542         will not be output; be however careful to not lose information
30543         about partitioning.
30544
30545 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
30546
30547         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
30548         lookup in the vtable constructor.
30549
30550 2014-02-07  Jeff Law  <law@redhat.com>
30551
30552         PR target/40977
30553         * config/m68k/m68k.md (ashldi_extsi): Turn into a
30554         define_insn_and_split.
30555
30556         * ipa-inline.c (inline_small_functions): Fix typos.
30557
30558 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
30559
30560         * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
30561         (s390_can_use_return_insn): Declare.
30562         * config/s390/s390.h (EPILOGUE_USES): Define.
30563         * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
30564         instructions.
30565         (s390_chunkify_start): Handle return JUMP_LABELs.
30566         (s390_early_mach): Emit a main_pool instruction on the entry edge.
30567         (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
30568         (s390_can_use_return_insn): New functions.
30569         (s390_fix_long_loop_prediction): Handle conditional returns.
30570         (TARGET_SET_UP_BY_PROLOGUE): Define.
30571         * config/s390/s390.md (ANY_RETURN): New code iterator.
30572         (*creturn, *csimple_return, return, simple_return): New patterns.
30573
30574 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
30575
30576         * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
30577         notes to each restore.  Also add REG_CFA_DEF_CFA when restoring %r15.
30578         (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P.  Update the
30579         REG_CFA_RESTORE list when deciding not to restore a register.
30580
30581 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
30582
30583         * config/s390/s390.c: Include tree-pass.h and context.h.
30584         (s390_early_mach): New function, split out from...
30585         (s390_emit_prologue): ...here.
30586         (pass_data_s390_early_mach): New pass structure.
30587         (pass_s390_early_mach): New class.
30588         (s390_option_override): Create and register early_mach pass.
30589         Move to end of file.
30590
30591 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
30592
30593         * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
30594         to match for the exit block.
30595
30596 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30597
30598         * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
30599         ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
30600         Reject misaligned operands.
30601
30602 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30603
30604         * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
30605
30606 2014-02-07  Richard Biener  <rguenther@suse.de>
30607
30608         PR middle-end/60092
30609         * gimple-low.c (lower_builtin_posix_memalign): New function.
30610         (lower_stmt): Call it to lower posix_memalign in a way
30611         to make alignment info accessible.
30612
30613 2014-02-07  Jakub Jelinek  <jakub@redhat.com>
30614
30615         PR c++/60082
30616         * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
30617         __builtin_setjmp_receiver.
30618
30619 2014-02-07  Richard Biener  <rguenther@suse.de>
30620
30621         PR middle-end/60092
30622         * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
30623         * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
30624         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
30625         Handle BUILT_IN_POSIX_MEMALIGN.
30626         (find_func_clobbers): Likewise.
30627         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
30628         (call_may_clobber_ref_p_1): Likewise.
30629
30630 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
30631
30632         PR ipa/59918
30633         * ipa-devirt.c (record_target_from_binfo): Remove overactive
30634         sanity check.
30635
30636 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
30637
30638         PR ipa/59469
30639         * lto-cgraph.c (lto_output_node): Use
30640         symtab_get_symbol_partitioning_class.
30641         (lto_output_varpool_node): likewise.
30642         (symtab_get_symbol_partitioning_class): Move here from
30643         lto/lto-partition.c
30644         * cgraph.h (symbol_partitioning_class): Likewise.
30645         (symtab_get_symbol_partitioning_class): Declare.
30646
30647 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
30648
30649         * ggc.h (ggc_internal_cleared_alloc): New macro.
30650         * vec.h (vec_safe_copy): Handle memory stats.
30651         * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
30652         * target-globals.c (save_target_globals): Likewise.
30653
30654 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
30655
30656         PR target/60077
30657         * expr.c (emit_move_resolve_push): Export; be bit more selective
30658         on when to clear alias set.
30659         * expr.h (emit_move_resolve_push): Declare.
30660         * function.h (struct function): Add tail_call_marked.
30661         * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
30662         * config/i386/i386-protos.h (ix86_expand_push): Remove.
30663         * config/i386/i386.md (TImode move expander): De not call
30664         ix86_expand_push.
30665         (FP push expanders): Preserve memory attributes.
30666         * config/i386/sse.md (push<mode>1): Remove.
30667         * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
30668         (ix86_expand_push): Remove.
30669         * config/i386/mmx.md (push<mode>1): Remove.
30670
30671 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
30672
30673         PR rtl-optimization/60030
30674         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
30675         lopart with paradoxical subreg before shifting it up by hprec.
30676
30677 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30678
30679         * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
30680         Remove extra newline at end of file.
30681         * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
30682         (arm_issue_rate): Handle cortexa57.
30683         * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
30684         (cortex-a57.cortex-a53): Likewise.
30685
30686 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
30687
30688         PR target/59575
30689         * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
30690         don't record in REG_FRAME_RELATED_EXPR registers not set in that
30691         bitmask.
30692         (arm_expand_prologue): Adjust all callers.
30693         (arm_unwind_emit_sequence): Allow saved, but not important for unwind
30694         info, registers also at the lowest numbered registers side.  Use
30695         gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
30696         XEXP.
30697
30698         PR debug/59992
30699         * var-tracking.c (adjust_mems): Before adding a SET to
30700         amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
30701
30702 2014-02-06  Alan Modra  <amodra@gmail.com>
30703
30704         PR target/60032
30705         * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
30706         change SDmode to DDmode when lra_in_progress.
30707
30708 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
30709
30710         PR middle-end/59150
30711         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
30712         free_data_ref on the dr first, and before goto again also set dr
30713         to the next dr.  For simd_lane_access, free old datarefs[i] before
30714         overwriting it.  For get_vectype_for_scalar_type failure, don't
30715         free_data_ref if simd_lane_access.
30716
30717         * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
30718
30719         PR target/60062
30720         * tree.h (opts_for_fn): New inline function.
30721         (opt_for_fn): Define.
30722         * config/i386/i386.c (ix86_function_regparm): Use
30723         opt_for_fn (decl, optimize) instead of optimize.
30724
30725 2014-02-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
30726
30727         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
30728         for SYMBOL_REF in large memory model.
30729
30730 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30731
30732         * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
30733         and crypto support.
30734         (cortex-a57): Likewise.
30735         (cortex-a57.cortex-a53): Likewise.
30736
30737 2014-02-06  Yury Gribov  <y.gribov@samsung.com>
30738             Kugan Vivekanandarajah  <kuganv@linaro.org>
30739
30740         * config/arm/arm.c (arm_vector_alignment_reachable): Check
30741         unaligned_access.
30742         * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
30743
30744 2014-02-06  Richard Biener  <rguenther@suse.de>
30745
30746         * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
30747         set_loop_copy and initialize_original_copy_tables.
30748
30749 2014-02-06  Alex Velenko  <Alex.Velenko@arm.com>
30750
30751         * config/aarch64/aarch64-simd.md
30752         (aarch64_ashr_simddi): Change QI to SI.
30753
30754 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
30755             Jakub Jelinek  <jakub@redhat.com>
30756
30757         PR middle-end/60013
30758         * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
30759         of the dataflow.
30760
30761 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30762
30763         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
30764         CODE_FOR_altivec_vpku[hw]um to
30765         CODE_FOR_altivec_vpku[hw]um_direct.
30766         * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
30767         UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
30768         (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
30769         UNSPEC_VUNPACK_LO_SIGN_DIRECT.
30770
30771 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30772
30773         * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
30774         generation for -maltivec=be.
30775         (altivec_vsumsws): Simplify redundant test.
30776
30777 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30778
30779         * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
30780         (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
30781         (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
30782         (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
30783         gen_altivec_vpkuwum.
30784         (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
30785         BYTES_BIG_ENDIAN.
30786         (altivec_vpks<VI_char>ss): Likewise.
30787         (altivec_vpks<VI_char>us): Likewise.
30788         (altivec_vpku<VI_char>us): Likewise.
30789         (altivec_vpku<VI_char>um): Likewise.
30790         (altivec_vpku<VI_char>um_direct): New (copy of
30791         altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
30792         internal use).
30793         (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
30794         target is little endian and -maltivec=be is not specified.
30795         (*altivec_vupkhs<VU_char>_direct): New (copy of
30796         altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
30797         (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
30798         target is little endian and -maltivec=be is not specified.
30799         (*altivec_vupkls<VU_char>_direct): New (copy of
30800         altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
30801         (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
30802         little endian and -maltivec=be is not specified.
30803         (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
30804         little endian and -maltivec=be is not specified.
30805
30806 2014-02-05  Richard Henderson  <rth@redhat.com>
30807
30808         PR debug/52727
30809         * combine-stack-adj.c: Revert r206943.
30810         * sched-int.h (struct deps_desc): Add last_args_size.
30811         * sched-deps.c (init_deps): Initialize it.
30812         (sched_analyze_insn): Add OUTPUT dependencies between insns that
30813         contain REG_ARGS_SIZE notes.
30814
30815 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
30816
30817         * lto-cgraph.c (asm_nodes_output): Make global.
30818         * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
30819         * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
30820         (driver_handle_option): Handle OPT_fwpa.
30821
30822 2014-02-05  Jakub Jelinek  <jakub@redhat.com>
30823
30824         PR ipa/59947
30825         * ipa-devirt.c (possible_polymorphic_call_targets): Fix
30826         a comment typo and formatting issue.  If odr_hash hasn't been
30827         created, return vNULL and set *completep to false.
30828
30829         PR middle-end/57499
30830         * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
30831         bb with no successors.
30832
30833 2014-02-05  James Greenhalgh  <james.greenhalgh@arm.com>
30834
30835         PR target/59718
30836         * doc/invoke.texi (-march): Clarify documentation for ARM.
30837         (-mtune): Likewise.
30838         (-mcpu): Likewise.
30839
30840 2014-02-05  Richard Biener  <rguenther@suse.de>
30841
30842         * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
30843         when not vectorizing because of too many alias checks.
30844         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
30845         Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
30846
30847 2014-02-05  Nick Clifton  <nickc@redhat.com>
30848
30849         * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
30850         accept extended registers in any mode when compiling for the MN10300.
30851
30852 2014-02-05  Yury Gribov  <y.gribov@samsung.com>
30853
30854         * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
30855         * ipa-inline.c (report_inline_failed_reason): Handle mismatched
30856         sanitization attributes.
30857         (can_inline_edge_p): Likewise.
30858         (sanitize_attrs_match_for_inline_p): New function.
30859
30860 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
30861
30862         * ipa-prop.c (detect_type_change): Shor circuit testing of
30863         type changes on THIS pointer.
30864
30865 2014-02-04  John David Anglin  <danglin@gcc.gnu.org>
30866
30867         PR target/59777
30868         * config/pa/pa.c (legitimize_tls_address): Return original address
30869         if not passed a SYMBOL_REF rtx.
30870         (hppa_legitimize_address): Call legitimize_tls_address for all TLS
30871         addresses.
30872         (pa_emit_move_sequence): Simplify TLS source operands.
30873         (pa_legitimate_constant_p): Reject all TLS constants.
30874         * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
30875         (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
30876
30877 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
30878
30879         * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
30880         groups when we know they are controlled by LTO.
30881         * varasm.c (default_binds_local_p_1): If object is in other partition,
30882         it will be resolved locally.
30883
30884 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
30885
30886         * config/host-linux.c (linux_gt_pch_use_address): Don't
30887         use SSIZE_MAX because it is not always defined.
30888
30889 2014-02-04  Vladimir Makarov  <vmakarov@redhat.com>
30890
30891         PR bootstrap/59913
30892         * lra-constraints.c (need_for_split_p): Use more 3 reloads as
30893         threshold for pseudo splitting.
30894         (update_ebb_live_info): Process call argument hard registers and
30895         hard registers from insn definition too.
30896         (max_small_class_regs_num): New constant.
30897         (inherit_in_ebb): Update live hard regs through EBBs.  Update
30898         reloads_num only for small register classes.  Don't split for
30899         outputs of jumps.
30900
30901 2014-02-04  Markus Trippelsdorf  <markus@trippelsdorf.de>
30902
30903         PR ipa/60058
30904         * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
30905         is non-null.
30906
30907 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
30908
30909         * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
30910         visibility is safe.
30911
30912 2014-02-04  Marek Polacek  <polacek@redhat.com>
30913
30914         * gdbinit.in (pel): Define.
30915
30916 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
30917
30918         * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
30919         behavior.
30920
30921 2014-02-04  Richard Biener  <rguenther@suse.de>
30922
30923         PR lto/59723
30924         * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
30925         in function context local.
30926         (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
30927         * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
30928         similar to LTO_imported_decl_ref.
30929
30930 2014-02-04  Jakub Jelinek  <jakub@redhat.com>
30931
30932         PR tree-optimization/60002
30933         * cgraphclones.c (build_function_decl_skip_args): Clear
30934         DECL_LANG_SPECIFIC.
30935
30936         PR tree-optimization/60023
30937         * tree-if-conv.c (predicate_mem_writes): Pass true instead of
30938         false to gsi_replace.
30939         * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
30940         has been in some EH region and vec_stmt could throw, add
30941         vec_stmt into the same EH region.
30942         * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
30943         has no lhs, ignore it.
30944         * internal-fn.c (expand_MASK_LOAD): Likewise.
30945
30946         PR ipa/60026
30947         * tree-inline.c (copy_forbidden): Fail for
30948         __attribute__((optimize (0))) functions.
30949
30950         PR other/58712
30951         * omp-low.c (simd_clone_struct_copy): If from->inbranch
30952         is set, copy one less argument.
30953         (expand_simd_clones): Don't subtract clone_info->inbranch
30954         from simd_clone_struct_alloc argument.
30955
30956         PR rtl-optimization/57915
30957         * recog.c (simplify_while_replacing): If all unary/binary/relational
30958         operation arguments are constant, attempt to simplify those.
30959
30960         PR middle-end/59261
30961         * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
30962         if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
30963
30964 2014-02-04  Richard Biener  <rguenther@suse.de>
30965
30966         PR tree-optimization/60012
30967         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
30968         TBAA disambiguation to all DDRs.
30969
30970 2014-02-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30971
30972         PR target/59788
30973         * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
30974         (LINK_SPEC): Use it for -shared, -shared-libgcc.
30975
30976 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
30977
30978         PR ipa/59882
30979         * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
30980
30981 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
30982
30983         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
30984         * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
30985
30986 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
30987
30988         PR ipa/59831
30989         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
30990         to figure out targets of polymorphic calls with known decl.
30991         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
30992         * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
30993         * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
30994         (get_polymorphic_call_info): ... here.
30995         (get_polymorphic_call_info_from_invariant): New function.
30996
30997 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
30998
30999         * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
31000         lookup via vtable pointer; check for type consistency
31001         and turn inconsitent facts into UNREACHABLE.
31002         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
31003         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
31004         type inconsistent querries; return UNREACHABLE instead.
31005
31006 2014-02-03  Richard Henderson  <rth@twiddle.net>
31007
31008         PR tree-opt/59924
31009         * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
31010         already processed this node.
31011         (normalize_one_pred_1): Pass along mark_set.
31012         (normalize_one_pred): Create and destroy a pointer_set_t.
31013         (normalize_one_pred_chain): Likewise.
31014
31015 2014-02-03  Laurent Aflonsi  <laurent.alfonsi@st.com>
31016
31017         PR gcov-profile/58602
31018         * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
31019
31020 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
31021
31022         PR ipa/59831
31023         * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
31024         -fno-devirtualize; try to devirtualize by the knowledge of
31025         virtual table pointer given by aggregate propagation.
31026         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
31027         (ipa_print_node_jump_functions): Dump also offset that
31028         is relevant for polymorphic calls.
31029         (determine_known_aggregate_parts): Add arg_type parameter; use it
31030         instead of determining the type from pointer type.
31031         (ipa_compute_jump_functions_for_edge): Update call of
31032         determine_known_aggregate_parts.
31033         * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
31034         (gimple_get_virt_method_for_binfo): ... here; simplify using
31035         vtable_pointer_value_to_vtable.
31036         * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
31037         * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
31038         to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
31039         (vtable_pointer_value_to_vtable): Break out from ...; handle also
31040         POINTER_PLUS_EXPR.
31041         (vtable_pointer_value_to_binfo): ... here.
31042         * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
31043
31044 2014-02-03  Teresa Johnson  <tejohnson@google.com>
31045
31046         * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
31047         redef of outer loop index variable.
31048
31049 2014-02-03  Marc Glisse  <marc.glisse@inria.fr>
31050
31051         PR c++/53017
31052         PR c++/59211
31053         * doc/extend.texi (Function Attributes): Typo.
31054
31055 2014-02-03  Cong Hou  <congh@google.com>
31056
31057         PR tree-optimization/60000
31058         * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
31059         if the vectorized statement is a store.  A store statement can only
31060         appear at the end of pattern statements.
31061
31062 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
31063
31064         * config/i386/i386.c (flag_opts): Add -mlong-double-128.
31065         (ix86_option_override_internal): Default long double to 64-bit for
31066         32-bit Bionic and to 128-bit for 64-bit Bionic.
31067
31068         * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
31069         TARGET_LONG_DOUBLE_128 is true.
31070         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
31071
31072         * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
31073         (mlong-double-64): Negate -mlong-double-128.
31074         (mlong-double-128): New option.
31075
31076         * config/i386/i386-c.c (ix86_target_macros): Define
31077         __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
31078
31079         * doc/invoke.texi: Document -mlong-double-128.
31080
31081 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
31082
31083         PR rtl-optimization/60024
31084         * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
31085
31086 2014-02-03  Markus Trippelsdorf  <markus@trippelsdorf.de>
31087
31088         * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
31089
31090 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
31091
31092         PR rtl-optimization/57662
31093         * sel-sched.c (code_motion_path_driver): Do not mark already not
31094         existing blocks in the visiting bitmap.
31095
31096 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
31097
31098         * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
31099         on the insn being emitted.
31100
31101 2014-02-03  James Greenhalgh  <james.greenhalgh@arm.com>
31102             Will Deacon  <will.deacon@arm.com>
31103
31104         * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
31105
31106 2014-02-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31107
31108         * config/arm/arm-tables.opt: Regenerate.
31109
31110 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31111
31112         * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
31113         for vector types other than V16QImode.
31114         * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
31115         define_expand, and call altivec_expand_vec_perm_le when producing
31116         code with little endian element order.
31117         (*altivec_vperm_<mode>_internal): New insn having previous
31118         behavior of altivec_vperm_<mode>.
31119         (altivec_vperm_<mode>_uns): Change to a define_expand, and call
31120         altivec_expand_vec_perm_le when producing code with little endian
31121         element order.
31122         (*altivec_vperm_<mode>_uns_internal): New insn having previous
31123         behavior of altivec_vperm_<mode>_uns.
31124
31125 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31126
31127         * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
31128         (altivec_vsumsws): Add handling for -maltivec=be with a little
31129         endian target.
31130         (altivec_vsumsws_direct): New.
31131         (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
31132         gen_altivec_vsumsws.
31133
31134 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
31135
31136         * ipa-devirt.c (subbinfo_with_vtable_at_offset,
31137         vtable_pointer_value_to_binfo): New functions.
31138         * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
31139         * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
31140
31141 2014-02-02  Sandra Loosemore  <sandra@codesourcery.com>
31142
31143         * config/nios2/nios2.md (load_got_register): Initialize GOT
31144         pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
31145         * config/nios2/nios2.c (nios2_function_profiler): Likewise.
31146
31147 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
31148
31149         * ipa-prop.c (update_jump_functions_after_inlining): When type is not
31150         preserverd by passthrough, do not propagate the type.
31151
31152 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
31153
31154         * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
31155         (mips_atomic_assign_expand_fenv): New function.
31156         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
31157
31158 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
31159
31160         * doc/extend.texi (__builtin_mips_get_fcsr): Document.
31161         (__builtin_mips_set_fcsr): Likewise.
31162         * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
31163         MIPS_USI_FTYPE_VOID.
31164         * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
31165         (mips16_expand_set_fcsr): Likewise.
31166         * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
31167         (mips16_set_fcsr_stub): Likewise.
31168         (mips16_get_fcsr_one_only_stub): New class.
31169         (mips16_set_fcsr_one_only_stub): Likewise.
31170         (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
31171         (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
31172         (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
31173         (hard_float): New availability predicate.
31174         (mips_builtins): Add get_fcsr and set_fcsr.
31175         (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
31176         * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
31177         (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
31178         (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
31179         (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
31180         patterns.
31181
31182 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
31183
31184         * config/mips/mips.c (mips_one_only_stub): New class.
31185         (mips_need_mips16_rdhwr_p): Replace with...
31186         (mips16_rdhwr_stub): ...this new variable.
31187         (mips16_stub_call_address): New function.
31188         (mips16_rdhwr_one_only_stub): New class.
31189         (mips_expand_thread_pointer): Use mips16_stub_call_address.
31190         (mips_output_mips16_rdhwr): Delete.
31191         (mips_finish_stub): New function.
31192         (mips_code_end): Use it to handle rdhwr stubs.
31193
31194 2014-02-02  Uros Bizjak  <ubizjak@gmail.com>
31195
31196         PR target/60017
31197         * config/i386/i386.c (classify_argument): Fix handling of bit_offset
31198         when calculating size of integer atomic types.
31199
31200 2014-02-02  H.J. Lu  <hongjiu.lu@intel.com>
31201
31202         * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
31203
31204 2014-02-01  Jakub Jelinek  <jakub@redhat.com>
31205
31206         PR tree-optimization/60003
31207         * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
31208         * profile.c (branch_prob): Use gimple_call_builtin_p
31209         to check for BUILT_IN_SETJMP_RECEIVER.
31210         * tree-inline.c (copy_bb): Call notice_special_calls.
31211
31212 2014-01-31  Vladimir Makarov  <vmakarov@redhat.com>
31213
31214         PR bootstrap/59985
31215         * lra-constraints.c (process_alt_operands): Update reload_sum only
31216         on the first pass.
31217
31218 2014-01-31  Richard Henderson  <rth@redhat.com>
31219
31220         PR middle-end/60004
31221         * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
31222         until after else_eh is processed.
31223
31224 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
31225
31226         * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
31227         (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
31228         (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
31229         in smmintrin.h, remove them.
31230         (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
31231         * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
31232         * config/i386/i386.md (ROUND_SAE): Fix value.
31233         * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
31234         (const48_operand): New.
31235         * config/i386/subst.md (round), (round_expand): Use
31236         const_4_or_8_to_11_operand.
31237         (round_saeonly), (round_saeonly_expand): Use const48_operand.
31238
31239 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
31240
31241         * config/i386/constraints.md (Yk): Swap meaning with k.
31242         * config/i386/i386.md (movhi_internal): Change Yk to k.
31243         (movqi_internal): Ditto.
31244         (*k<logic><mode>): Ditto.
31245         (*andhi_1): Ditto.
31246         (*andqi_1): Ditto.
31247         (kandn<mode>): Ditto.
31248         (*<code>hi_1): Ditto.
31249         (*<code>qi_1): Ditto.
31250         (kxnor<mode>): Ditto.
31251         (kortestzhi): Ditto.
31252         (kortestchi): Ditto.
31253         (kunpckhi): Ditto.
31254         (*one_cmplhi2_1): Ditto.
31255         (*one_cmplqi2_1): Ditto.
31256         * config/i386/sse.md (): Change k to Yk.
31257         (avx512f_load<mode>_mask): Ditto.
31258         (avx512f_blendm<mode>): Ditto.
31259         (avx512f_store<mode>_mask): Ditto.
31260         (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
31261         (avx512f_storedqu<mode>_mask): Ditto.
31262         (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
31263         Ditto.
31264         (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
31265         (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
31266         (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
31267         (avx512f_maskcmp<mode>3): Ditto.
31268         (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
31269         (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
31270         (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
31271         (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
31272         (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
31273         (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
31274         (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
31275         (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
31276         (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
31277         (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
31278         (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
31279         (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
31280         (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
31281         (vec_extract_lo_<mode>_maskm): Ditto.
31282         (vec_extract_hi_<mode>_maskm): Ditto.
31283         (avx512f_vternlog<mode>_mask): Ditto.
31284         (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
31285         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
31286         (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
31287         (avx512f_<code>v8div16qi2_mask): Ditto.
31288         (avx512f_<code>v8div16qi2_mask_store): Ditto.
31289         (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
31290         (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
31291         (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
31292         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
31293         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
31294         (*avx512pf_gatherpf<mode>df_mask): Ditto.
31295         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
31296         (*avx512pf_scatterpf<mode>df_mask): Ditto.
31297         (avx512cd_maskb_vec_dupv8di): Ditto.
31298         (avx512cd_maskw_vec_dupv16si): Ditto.
31299         (avx512f_vpermi2var<mode>3_maskz): Ditto.
31300         (avx512f_vpermi2var<mode>3_mask): Ditto.
31301         (avx512f_vpermi2var<mode>3_mask): Ditto.
31302         (avx512f_vpermt2var<mode>3_maskz): Ditto.
31303         (*avx512f_gathersi<mode>): Ditto.
31304         (*avx512f_gathersi<mode>_2): Ditto.
31305         (*avx512f_gatherdi<mode>): Ditto.
31306         (*avx512f_gatherdi<mode>_2): Ditto.
31307         (*avx512f_scattersi<mode>): Ditto.
31308         (*avx512f_scatterdi<mode>): Ditto.
31309         (avx512f_compress<mode>_mask): Ditto.
31310         (avx512f_compressstore<mode>_mask): Ditto.
31311         (avx512f_expand<mode>_mask): Ditto.
31312         * config/i386/subst.md (mask): Change k to Yk.
31313         (mask_scalar_merge): Ditto.
31314         (sd): Ditto.
31315
31316 2014-01-31  Marc Glisse  <marc.glisse@inria.fr>
31317
31318         * doc/extend.texi (Vector Extensions): Document ?: in C++.
31319
31320 2014-01-31  Richard Biener  <rguenther@suse.de>
31321
31322         PR middle-end/59990
31323         * builtins.c (fold_builtin_memory_op): Make sure to not
31324         use a floating-point mode or a boolean or enumeral type for
31325         the copy operation.
31326
31327 2014-01-30  DJ Delorie  <dj@redhat.com>
31328
31329         * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
31330         * config/msp430/msp430.md (msp430_refsym_need_exit): New.
31331         * config/msp430/msp430.c (msp430_expand_epilogue): Call it
31332         whenever main() has an epilogue.
31333
31334 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31335
31336         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
31337         unused variable "field".
31338         * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
31339         (vsx_mergeh_<mode>): Likewise.
31340         * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
31341         (altivec_vmrghh): Likewise.
31342         (altivec_vmrghw): Likewise.
31343         (altivec_vmrglb): Likewise.
31344         (altivec_vmrglh): Likewise.
31345         (altivec_vmrglw): Likewise.
31346         (altivec_vspltb): Add missing uses.
31347         (altivec_vsplth): Likewise.
31348         (altivec_vspltw): Likewise.
31349         (altivec_vspltsf): Likewise.
31350
31351 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
31352
31353         PR target/59923
31354         * ifcvt.c (cond_exec_process_insns): Don't conditionalize
31355         frame related instructions.
31356
31357 2014-01-30  Vladimir Makarov  <vmakarov@redhat.com>
31358
31359         PR rtl-optimization/59959
31360         * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
31361         any reload of register whose subreg is invalid.
31362
31363 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
31364
31365         * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
31366         * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
31367         Add missing return type - void.
31368
31369 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31370
31371         * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
31372         gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
31373         remove element index adjustment for endian (now handled in vsx.md
31374         and altivec.md).
31375         (altivec_expand_vec_perm_const): Use
31376         gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
31377         * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
31378         (vsx_xxspltw_<mode>): Adjust element index for little endian.
31379         * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
31380         define_expand and a new define_insn *altivec_vspltb_internal;
31381         adjust for -maltivec=be on a little endian target.
31382         (altivec_vspltb_direct): New.
31383         (altivec_vsplth): Divide into a define_expand and a new
31384         define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
31385         little endian target.
31386         (altivec_vsplth_direct): New.
31387         (altivec_vspltw): Divide into a define_expand and a new
31388         define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
31389         little endian target.
31390         (altivec_vspltw_direct): New.
31391         (altivec_vspltsf): Divide into a define_expand and a new
31392         define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
31393         a little endian target.
31394
31395 2014-01-30  Richard Biener  <rguenther@suse.de>
31396
31397         PR tree-optimization/59993
31398         * tree-ssa-forwprop.c (associate_pointerplus): Check we
31399         can propagate form the earlier stmt and avoid the transform
31400         when the intermediate result is needed.
31401
31402 2014-01-30  Alangi Derick  <alangiderick@gmail.com>
31403
31404         * README.Portability: Fix typo.
31405
31406 2014-01-30  David Holsgrove  <david.holsgrove@xilinx.com>
31407
31408         * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
31409         comparison_operator with ordered_comparison_operator.
31410
31411 2014-01-30  Nick Clifton  <nickc@redhat.com>
31412
31413         * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
31414         Rename to mn10300_store_multiple_regs.
31415         * config/mn10300/mn10300.c: Likewise.
31416         * config/mn10300/mn10300.md (store_movm): Fix typo: call
31417         store_multiple_regs.
31418         * config/mn10300/predicates.md (mn10300_store_multiple_operation):
31419         Call mn10300_store_multiple_regs.
31420
31421 2014-01-30  Nick Clifton  <nickc@redhat.com>
31422             DJ Delorie  <dj@redhat.com>
31423
31424         * config/rl78/rl78.c (register_sizes): Make the "upper half" of
31425         %fp 2 to keep registers after it properly word-aligned.
31426         (rl78_alloc_physical_registers_umul): Handle the case where both
31427         input operands are the same.
31428
31429 2014-01-30  Richard Biener  <rguenther@suse.de>
31430
31431         PR tree-optimization/59903
31432         * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
31433         check properly.
31434
31435 2014-01-30  Jason Merrill  <jason@redhat.com>
31436
31437         PR c++/59633
31438         * tree.c (walk_type_fields): Handle VECTOR_TYPE.
31439
31440         PR c++/59645
31441         * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
31442
31443 2014-01-30  Richard Biener  <rguenther@suse.de>
31444
31445         PR tree-optimization/59951
31446         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
31447
31448 2014-01-30  Savin Zlobec  <savin.zlobec@gmail.com>
31449
31450         PR target/59784
31451         * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
31452         SFmode to DFmode case.
31453
31454 2014-01-29  DJ Delorie  <dj@redhat.com>
31455
31456         * config/msp430/msp430.opt (-minrt): New.
31457         * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
31458         if -minrt given.
31459         (ENDFILE_SPEC): Likewise.
31460
31461 2014-01-29  Jan Hubicka  <hubicka@ucw.cz>
31462
31463         * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
31464         (estimate_function_body_sizes): Use it.
31465
31466 2014-01-29  Paolo Carlini  <paolo.carlini@oracle.com>
31467
31468         PR c++/58561
31469         * dwarf2out.c (is_cxx_auto): New.
31470         (is_base_type): Use it.
31471         (gen_type_die_with_usage): Likewise.
31472
31473 2014-01-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31474
31475         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const):  Use
31476         CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
31477         * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
31478         -maltivec=be with LE targets.
31479         (vsx_mergeh_<mode>): Likewise.
31480         * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
31481         (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
31482         (altivec_vmrghb): Replace with define_expand and new
31483         *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
31484         (altivec_vmrghb_direct): New define_insn.
31485         (altivec_vmrghh): Replace with define_expand and new
31486         *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
31487         (altivec_vmrghh_direct): New define_insn.
31488         (altivec_vmrghw): Replace with define_expand and new
31489         *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
31490         (altivec_vmrghw_direct): New define_insn.
31491         (*altivec_vmrghsf): Adjust for endianness.
31492         (altivec_vmrglb): Replace with define_expand and new
31493         *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
31494         (altivec_vmrglb_direct): New define_insn.
31495         (altivec_vmrglh): Replace with define_expand and new
31496         *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
31497         (altivec_vmrglh_direct): New define_insn.
31498         (altivec_vmrglw): Replace with define_expand and new
31499         *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
31500         (altivec_vmrglw_direct): New define_insn.
31501         (*altivec_vmrglsf): Adjust for endianness.
31502         (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
31503         (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
31504         (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
31505         (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
31506         (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
31507         (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
31508         (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
31509         (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
31510
31511 2014-01-29  Marcus Shawcroft  <marcus.shawcroft@arm.com>
31512
31513         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
31514         (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
31515         whitespace.
31516
31517 2014-01-29  Richard Biener  <rguenther@suse.de>
31518
31519         PR tree-optimization/58742
31520         * tree-ssa-forwprop.c (associate_pointerplus): Rename to
31521         associate_pointerplus_align.
31522         (associate_pointerplus_diff): New function.
31523         (associate_pointerplus): Likewise.  Call associate_pointerplus_align
31524         and associate_pointerplus_diff.
31525
31526 2014-01-29  Richard Biener  <rguenther@suse.de>
31527
31528         * lto-streamer.h (LTO_major_version): Bump to 3.
31529         (LTO_minor_version): Reset to 0.
31530
31531 2014-01-29  Renlin Li  <Renlin.Li@arm.com>
31532
31533         * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
31534         * config/arm/arm.c (FL_FOR_ARCH7VE): New.
31535         (arm_file_start): Generate correct asm header for armv7ve.
31536         * config/arm/bpabi.h: Add multilib support for armv7ve.
31537         * config/arm/driver-arm.c: Change the architectures of cortex-a7
31538         and cortex-a15 to armv7ve.
31539         * config/arm/t-aprofile: Add multilib support for armv7ve.
31540         * doc/invoke.texi: Document -march=armv7ve.
31541
31542 2014-01-29  Richard Biener  <rguenther@suse.de>
31543
31544         PR tree-optimization/58742
31545         * tree-ssa-forwprop.c (associate_plusminus): Return true
31546         if we changed sth, defer EH cleanup to ...
31547         (ssa_forward_propagate_and_combine): ... here.  Call simplify_mult.
31548         (simplify_mult): New function.
31549
31550 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
31551
31552         PR middle-end/59917
31553         PR tree-optimization/59920
31554         * tree.c (build_common_builtin_nodes): Remove
31555         __builtin_setjmp_dispatcher initialization.
31556         * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
31557         * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
31558         instead of gsi_after_labels + manually skipping debug stmts.
31559         Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
31560         ignore bbs with IFN_ABNORMAL_DISPATCHER.
31561         * tree-inline.c (copy_edges_for_bb): Remove
31562         can_make_abnormal_goto argument, instead add abnormal_goto_dest
31563         argument.  Ignore computed_goto_p stmts.  Don't call
31564         make_abnormal_goto_edges.  If a call might need abnormal edges
31565         for non-local gotos, see if it already has an edge to
31566         IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
31567         with true argument, don't do anything then, otherwise add
31568         EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
31569         (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
31570         caller.
31571         * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
31572         (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
31573         (lower_stmt): Don't set data->calls_builtin_setjmp.
31574         (lower_builtin_setjmp): Adjust comment.
31575         * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
31576         * tree-cfg.c (found_computed_goto): Remove.
31577         (factor_computed_gotos): Remove.
31578         (make_goto_expr_edges): Return bool, true for computed gotos.
31579         Don't call make_abnormal_goto_edges.
31580         (build_gimple_cfg): Don't set found_computed_goto, don't call
31581         factor_computed_gotos.
31582         (computed_goto_p): No longer static.
31583         (make_blocks): Don't set found_computed_goto.
31584         (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
31585         (make_edges): If make_goto_expr_edges returns true, push bb
31586         into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
31587         instead of calling make_abnormal_goto_edges push bb into ab_edge_call
31588         vector.  Record mapping between bbs and OpenMP regions if there
31589         are any, adjust make_gimple_omp_edges caller.  Call
31590         handle_abnormal_edges.
31591         (make_abnormal_goto_edges): Remove.
31592         * tree-cfg.h (make_abnormal_goto_edges): Remove.
31593         (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
31594         * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
31595         * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
31596         * internal-fn.def (ABNORMAL_DISPATCHER): New.
31597         * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
31598         filling *region also set *region_idx to (*region)->entry->index.
31599
31600         PR other/58712
31601         * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
31602         For REGs set ORIGINAL_REGNO.
31603
31604 2014-01-29  Bingfeng Mei  <bmei@broadcom.com>
31605
31606         * doc/md.texi: Mention that a target shouldn't implement
31607         vec_widen_(s|u)mul_even/odd pair if it is less efficient
31608         than hi/lo pair.
31609
31610 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
31611
31612         PR tree-optimization/59594
31613         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
31614         a copy of the datarefs vector rather than the vector itself.
31615
31616 2014-01-28  Jason Merrill  <jason@redhat.com>
31617
31618         PR c++/53756
31619         * dwarf2out.c (auto_die): New static.
31620         (gen_type_die_with_usage): Handle C++1y 'auto'.
31621         (gen_subprogram_die): If in-class DIE had 'auto', emit type again
31622         on definition.
31623
31624 2014-01-28  H.J. Lu  <hongjiu.lu@intel.com>
31625
31626         PR target/59672
31627         * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
31628         (SPEC_X32): Likewise.
31629         (SPEC_64): Likewise.
31630         * config/i386/i386.c (ix86_option_override_internal): Turn off
31631         OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
31632         for TARGET_16BIT.
31633         (x86_file_start): Output .code16gcc for TARGET_16BIT.
31634         * config/i386/i386.h (TARGET_16BIT): New macro.
31635         (TARGET_16BIT_P): Likewise.
31636         * config/i386/i386.opt: Add m16.
31637         * doc/invoke.texi: Document -m16.
31638
31639 2014-01-28  Jakub Jelinek  <jakub@redhat.com>
31640
31641         PR preprocessor/59935
31642         * input.c (location_get_source_line): Bail out on when line number
31643         is zero, and test the return value of lookup_or_add_file_to_cache_tab.
31644
31645 2014-01-28  Richard Biener  <rguenther@suse.de>
31646
31647         PR tree-optimization/58742
31648         * tree-ssa-forwprop.c (associate_plusminus): Handle
31649         pointer subtraction of the form (T)(P + A) - (T)P.
31650
31651 2014-01-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31652
31653         * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
31654         at const_int_cost.
31655
31656 2014-01-28  Richard Biener  <rguenther@suse.de>
31657
31658         Revert
31659         2014-01-28  Richard Biener  <rguenther@suse.de>
31660
31661         PR rtl-optimization/45364
31662         PR rtl-optimization/59890
31663         * var-tracking.c (local_get_addr_clear_given_value): Handle
31664         already cleared slot.
31665         (val_reset): Handle not allocated local_get_addr_cache.
31666         (vt_find_locations): Use post-order on the inverted CFG.
31667
31668 2014-01-28  Richard Biener  <rguenther@suse.de>
31669
31670         * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
31671
31672 2014-01-28  Richard Biener  <rguenther@suse.de>
31673
31674         PR rtl-optimization/45364
31675         PR rtl-optimization/59890
31676         * var-tracking.c (local_get_addr_clear_given_value): Handle
31677         already cleared slot.
31678         (val_reset): Handle not allocated local_get_addr_cache.
31679         (vt_find_locations): Use post-order on the inverted CFG.
31680
31681 2014-01-28  Alan Modra  <amodra@gmail.com>
31682
31683         * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
31684         * configure.ac <recursive call for build != host>: Define
31685         GENERATOR_FILE.  Comment.  Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
31686         and LD_FOR_BUILD too.
31687         * configure: Regenerate.
31688
31689 2014-01-27  Allan Sandfeld Jensen  <sandfeld@kde.org>
31690
31691         * config/i386/i386.c (get_builtin_code_for_version): Separate
31692         Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
31693         Broadwell from Haswell.
31694
31695 2014-01-27  Steve Ellcey  <sellcey@mips.com>
31696
31697         * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
31698         Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
31699         * config/mips/mips.c (mips_option_override): Change setting
31700         of TARGET_DSP.
31701         * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
31702         * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
31703         Change from Mask to Var.
31704
31705 2014-01-27  Jeff Law  <law@redhat.com>
31706
31707         * ipa-inline.c (inline_small_functions): Fix typo.
31708
31709 2014-01-27  Ilya Tocar  <ilya.tocar@intel.com>
31710
31711         * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
31712         (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
31713         (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
31714         (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
31715         (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
31716         (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
31717         (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
31718         (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
31719         (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
31720         (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
31721         (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
31722         (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
31723         (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
31724         (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
31725         (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
31726         (_mm512_storeu_epi64): Ditto.
31727         (_mm512_cmpge_epi32_mask): Ditto.
31728         (_mm512_cmpge_epu32_mask): Ditto.
31729         (_mm512_cmpge_epi64_mask): Ditto.
31730         (_mm512_cmpge_epu64_mask): Ditto.
31731         (_mm512_cmple_epi32_mask): Ditto.
31732         (_mm512_cmple_epu32_mask): Ditto.
31733         (_mm512_cmple_epi64_mask): Ditto.
31734         (_mm512_cmple_epu64_mask): Ditto.
31735         (_mm512_cmplt_epi32_mask): Ditto.
31736         (_mm512_cmplt_epu32_mask): Ditto.
31737         (_mm512_cmplt_epi64_mask): Ditto.
31738         (_mm512_cmplt_epu64_mask): Ditto.
31739         (_mm512_cmpneq_epi32_mask): Ditto.
31740         (_mm512_cmpneq_epu32_mask): Ditto.
31741         (_mm512_cmpneq_epi64_mask): Ditto.
31742         (_mm512_cmpneq_epu64_mask): Ditto.
31743         (_mm512_expand_pd): Ditto.
31744         (_mm512_expand_ps): Ditto.
31745         * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
31746         VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
31747         VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
31748         * config/i386/i386.c (ix86_builtins): Add
31749         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
31750         IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
31751         IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
31752         IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
31753         IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
31754         IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
31755         IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
31756         IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
31757         IX86_BUILTIN_PMOVUSQW512_MEM.
31758         (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
31759         __builtin_ia32_pmovsqd512mem_mask,
31760         __builtin_ia32_pmovqd512mem_mask,
31761         __builtin_ia32_pmovusqw512mem_mask,
31762         __builtin_ia32_pmovsqw512mem_mask,
31763         __builtin_ia32_pmovqw512mem_mask,
31764         __builtin_ia32_pmovusdw512mem_mask,
31765         __builtin_ia32_pmovsdw512mem_mask,
31766         __builtin_ia32_pmovdw512mem_mask,
31767         __builtin_ia32_pmovqb512mem_mask,
31768         __builtin_ia32_pmovusqb512mem_mask,
31769         __builtin_ia32_pmovsqb512mem_mask,
31770         __builtin_ia32_pmovusdb512mem_mask,
31771         __builtin_ia32_pmovsdb512mem_mask,
31772         __builtin_ia32_pmovdb512mem_mask.
31773         (bdesc_args): Add __builtin_ia32_expanddf512,
31774         __builtin_ia32_expandsf512.
31775         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
31776         VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
31777         VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
31778         * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
31779         (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
31780         (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
31781         (avx512f_<code>v8div16qi2_mask_store): This.
31782         (avx512f_expand<mode>): New.
31783
31784 2014-01-27  Kirill Yukhin  <kirill.yukhin@intel.com>
31785
31786         * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
31787         New.
31788         (_mm512_mask_prefetch_i64gather_pd): Ditto.
31789         (_mm512_prefetch_i32scatter_pd): Ditto.
31790         (_mm512_mask_prefetch_i32scatter_pd): Ditto.
31791         (_mm512_prefetch_i64scatter_pd): Ditto.
31792         (_mm512_mask_prefetch_i64scatter_pd): Ditto.
31793         (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
31794         (_mm512_mask_prefetch_i64gather_ps): Ditto.
31795         (_mm512_prefetch_i32scatter_ps): Ditto.
31796         (_mm512_mask_prefetch_i32scatter_ps): Ditto.
31797         (_mm512_prefetch_i64scatter_ps): Ditto.
31798         (_mm512_mask_prefetch_i64scatter_ps): Ditto.
31799         * config/i386/i386-builtin-types.def: Define
31800         VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
31801         and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
31802         * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
31803         IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
31804         IX86_BUILTIN_SCATTERPFQPD.
31805         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
31806         __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
31807         __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
31808         __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
31809         __builtin_ia32_scatterpfqps.
31810         (ix86_expand_builtin): Expand new built-ins.
31811         * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
31812         fix memory access data type.
31813         (*avx512pf_gatherpf<mode>_mask): Ditto.
31814         (*avx512pf_gatherpf<mode>): Ditto.
31815         (avx512pf_scatterpf<mode>): Ditto.
31816         (*avx512pf_scatterpf<mode>_mask): Ditto.
31817         (*avx512pf_scatterpf<mode>): Ditto.
31818         (GATHER_SCATTER_SF_MEM_MODE): New.
31819         (avx512pf_gatherpf<mode>df): Ditto.
31820         (*avx512pf_gatherpf<mode>df_mask): Ditto.
31821         (*avx512pf_scatterpf<mode>df): Ditto.
31822
31823 2014-01-27  Jakub Jelinek  <jakub@redhat.com>
31824
31825         PR bootstrap/59934
31826         * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
31827         know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
31828         reached.
31829
31830 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
31831
31832         * common/config/arm/arm-common.c
31833         (arm_rewrite_mcpu): Handle multiple names.
31834         * config/arm/arm.h
31835         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
31836
31837 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
31838
31839         * gimple-builder.h (create_gimple_tmp): Delete.
31840
31841 2014-01-27  Christian Bruel  <christian.bruel@st.com>
31842
31843         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
31844         words comparisons.
31845
31846 2014-01-26  John David Anglin  <danglin@gcc.gnu.org>
31847
31848         * config/pa/pa.md (call): Generate indirect long calls to non-local
31849         functions when outputing 32-bit code.
31850         (call_value): Likewise except for special call to buggy powf function.
31851
31852         * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
31853         portable runtime and PIC indirect calls.
31854         (pa_output_indirect_call): Remove unnecessary nop from portable runtime
31855         and PIC call sequences.  Use ldo instead of blr to set return register
31856         in PIC call sequence.
31857
31858 2014-01-25  Walter Lee  <walt@tilera.com>
31859
31860         * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
31861         avoid clobbering a live register.
31862
31863 2014-01-25  Walter Lee  <walt@tilera.com>
31864
31865         * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
31866         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
31867         * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
31868         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
31869
31870 2014-01-25  Walter Lee  <walt@tilera.com>
31871
31872         * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
31873         arguments on even registers.
31874         (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
31875         STACK_BOUNDARY.
31876         * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
31877         (BIGGEST_ALIGNMENT): Ditto.
31878         (BIGGEST_FIELD_ALIGNMENT): Ditto.
31879
31880 2014-01-25  Walter Lee  <walt@tilera.com>
31881
31882         * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
31883         insns before bundling.
31884         * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
31885
31886 2014-01-25  Walter Lee  <walt@tilera.com>
31887
31888         * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
31889         PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
31890         * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
31891
31892 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
31893
31894         * config/mips/constraints.md (kl): Delete.
31895         * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
31896         define expands, using...
31897         (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
31898         instructions for MIPS16.
31899         (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
31900         non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
31901
31902 2014-01-25  Walter Lee  <walt@tilera.com>
31903
31904         * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
31905         (clzdi2): Ditto.
31906         (ffsdi2): Ditto.
31907
31908 2014-01-25  Walter Lee  <walt@tilera.com>
31909
31910         * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
31911         (TARGET_EXPAND_TO_RTL_HOOK): Define.
31912
31913 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
31914
31915         * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
31916         Handle XOR.
31917
31918 2014-01-25  Jakub Jelinek  <jakub@redhat.com>
31919
31920         * print-rtl.c (in_call_function_usage): New var.
31921         (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
31922         EXPR_LIST mode as mode and not as reg note name.
31923
31924         PR middle-end/59561
31925         * cfgloopmanip.c (copy_loop_info): If
31926         loop->warned_aggressive_loop_optimizations, make sure
31927         the flag is set in target loop too.
31928
31929 2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
31930
31931         * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
31932         flag_cilkplus.
31933         * builtins.def: Likewise.
31934         * cilk.h (fn_contains_cilk_spawn_p): Likewise.
31935         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
31936         * ira.c (ira_setup_eliminable_regset): Likewise.
31937         * omp-low.c (gate_expand_omp): Likewise.
31938         (execute_lower_omp): Likewise.
31939         (diagnose_sb_0): Likewise.
31940         (gate_diagnose_omp_blocks): Likewise.
31941         (simd_clone_clauses_extract): Likewise.
31942         (gate): Likewise.
31943
31944 2014-01-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31945
31946         * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
31947         correction for little endian...
31948         * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
31949         here.
31950
31951 2014-01-24  Jeff Law  <law@redhat.com>
31952
31953         PR tree-optimization/59919
31954         * tree-vrp.c (find_assert_locations_1): Do not register asserts
31955         for non-returning calls.
31956
31957 2014-01-24  James Greenhalgh  <james.greenhalgh@arm.com>
31958
31959         * common/config/aarch64/aarch64-common.c
31960         (aarch64_rewrite_mcpu): Handle multiple names.
31961         * config/aarch64/aarch64.h
31962         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
31963
31964 2014-01-24  Dodji Seketeli  <dodji@redhat.com>
31965
31966         * input.c (add_file_to_cache_tab): Handle the case where fopen
31967         returns NULL.
31968
31969 2014-01-23  H.J. Lu  <hongjiu.lu@intel.com>
31970
31971         PR target/59929
31972         * config/i386/i386.md (pushsf splitter): Get stack adjustment
31973         from push operand if code of push isn't PRE_DEC.
31974
31975 2014-01-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
31976
31977         PR target/59909
31978         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
31979         -mquad-memory-atomic.  Update -mquad-memory documentation to say
31980         it is only used for non-atomic loads/stores.
31981
31982         * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
31983         -mquad-memory or -mquad-memory-atomic switches.
31984
31985         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
31986         -mquad-memory-atomic to ISA 2.07 support.
31987
31988         * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
31989         to separate support of normal quad word memory operations (ldq, stq)
31990         from the atomic quad word memory operations.
31991
31992         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
31993         support to separate non-atomic quad word operations from atomic
31994         quad word operations.  Disable non-atomic quad word operations in
31995         little endian mode so that we don't have to swap words after the
31996         load and before the store.
31997         (quad_load_store_p): Add comment about atomic quad word support.
31998         (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
31999         options printed with -mdebug=reg.
32000
32001         * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
32002         -mquad-memory-atomic as the test for whether we have quad word
32003         atomic instructions.
32004         (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
32005         or -mp8-vector are used, allow byte/half-word atomic operations.
32006
32007         * config/rs6000/sync.md (load_lockedti): Insure that the address
32008         is a proper indexed or indirect address for the lqarx instruction.
32009         On little endian systems, swap the hi/lo registers after the lqarx
32010         instruction.
32011         (load_lockedpti): Use indexed_or_indirect_operand predicate to
32012         insure the address is valid for the lqarx instruction.
32013         (store_conditionalti): Insure that the address is a proper indexed
32014         or indirect address for the stqcrx. instruction.  On little endian
32015         systems, swap the hi/lo registers before doing the stqcrx.
32016         instruction.
32017         (store_conditionalpti): Use indexed_or_indirect_operand predicate to
32018         insure the address is valid for the stqcrx. instruction.
32019
32020         * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
32021         Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
32022         type of quad memory support is available.
32023
32024 2014-01-23  Vladimir Makarov  <vmakarov@redhat.com>
32025
32026         PR regression/59915
32027         * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
32028         there is a danger of looping.
32029
32030 2014-01-23  Pat Haugen  <pthaugen@us.ibm.com>
32031
32032         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
32033         force flag_ira_loop_pressure if set via command line.
32034
32035 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
32036
32037         * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
32038         (ashr_simd): New builtin handling DI mode.
32039         * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
32040         (aarch64_sshr_simddi): New match pattern.
32041         * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
32042         (vshrd_n_s64): Likewise.
32043         * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
32044
32045 2014-01-23  Nick Clifton  <nickc@redhat.com>
32046
32047         * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
32048         (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
32049         favour of mcu specific scripts.
32050         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
32051         430x multilibs.
32052
32053 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
32054             Alex Velenko  <Alex.Velenko@arm.com>
32055
32056         * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
32057         (vaddv_s16): Likewise.
32058         (vaddv_s32): Likewise.
32059         (vaddv_u8): Likewise.
32060         (vaddv_u16): Likewise.
32061         (vaddv_u32): Likewise.
32062         (vaddvq_s8): Likewise.
32063         (vaddvq_s16): Likewise.
32064         (vaddvq_s32): Likewise.
32065         (vaddvq_s64): Likewise.
32066         (vaddvq_u8): Likewise.
32067         (vaddvq_u16): Likewise.
32068         (vaddvq_u32): Likewise.
32069         (vaddvq_u64): Likewise.
32070         (vaddv_f32): Likewise.
32071         (vaddvq_f32): Likewise.
32072         (vaddvq_f64): Likewise.
32073         (vmaxv_f32): Likewise.
32074         (vmaxv_s8): Likewise.
32075         (vmaxv_s16): Likewise.
32076         (vmaxv_s32): Likewise.
32077         (vmaxv_u8): Likewise.
32078         (vmaxv_u16): Likewise.
32079         (vmaxv_u32): Likewise.
32080         (vmaxvq_f32): Likewise.
32081         (vmaxvq_f64): Likewise.
32082         (vmaxvq_s8): Likewise.
32083         (vmaxvq_s16): Likewise.
32084         (vmaxvq_s32): Likewise.
32085         (vmaxvq_u8): Likewise.
32086         (vmaxvq_u16): Likewise.
32087         (vmaxvq_u32): Likewise.
32088         (vmaxnmv_f32): Likewise.
32089         (vmaxnmvq_f32): Likewise.
32090         (vmaxnmvq_f64): Likewise.
32091         (vminv_f32): Likewise.
32092         (vminv_s8): Likewise.
32093         (vminv_s16): Likewise.
32094         (vminv_s32): Likewise.
32095         (vminv_u8): Likewise.
32096         (vminv_u16): Likewise.
32097         (vminv_u32): Likewise.
32098         (vminvq_f32): Likewise.
32099         (vminvq_f64): Likewise.
32100         (vminvq_s8): Likewise.
32101         (vminvq_s16): Likewise.
32102         (vminvq_s32): Likewise.
32103         (vminvq_u8): Likewise.
32104         (vminvq_u16): Likewise.
32105         (vminvq_u32): Likewise.
32106         (vminnmv_f32): Likewise.
32107         (vminnmvq_f32): Likewise.
32108         (vminnmvq_f64): Likewise.
32109
32110 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
32111
32112         * config/aarch64/aarch64-simd.md
32113         (aarch64_dup_lane<mode>): Correct lane number on big-endian.
32114         (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
32115         (*aarch64_mul3_elt<mode>): Likewise.
32116         (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
32117         (*aarch64_mul3_elt_to_64v2df): Likewise.
32118         (*aarch64_mla_elt<mode>): Likewise.
32119         (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
32120         (*aarch64_mls_elt<mode>): Likewise.
32121         (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
32122         (*aarch64_fma4_elt<mode>): Likewise.
32123         (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
32124         (*aarch64_fma4_elt_to_64v2df): Likewise.
32125         (*aarch64_fnma4_elt<mode>): Likewise.
32126         (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
32127         (*aarch64_fnma4_elt_to_64v2df): Likewise.
32128         (aarch64_sq<r>dmulh_lane<mode>): Likewise.
32129         (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
32130         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
32131         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
32132         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
32133         (aarch64_sqdmull_lane<mode>_internal): Likewise.
32134         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
32135
32136 2013-01-23  Alex Velenko  <Alex.Velenko@arm.com>
32137
32138         * config/aarch64/aarch64-simd.md
32139         (aarch64_be_checked_get_lane<mode>): New define_expand.
32140         * config/aarch64/aarch64-simd-builtins.def
32141         (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
32142         New builtin definition.
32143         * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
32144         Use new safe be builtin.
32145
32146 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
32147
32148         * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
32149         New define_insn.
32150         (aarch64_be_st1<mode>): Likewise.
32151         (aarch_ld1<VALL:mode>): Define_expand modified.
32152         (aarch_st1<VALL:mode>): Likewise.
32153         * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
32154         (UNSPEC_ST1): Likewise.
32155
32156 2014-01-23  David Holsgrove  <david.holsgrove@xilinx.com>
32157
32158         * config/microblaze/microblaze.md: Add trap insn and attribute
32159
32160 2014-01-23  Dodji Seketeli  <dodji@redhat.com>
32161
32162         PR preprocessor/58580
32163         * input.h (location_get_source_line): Take an additional line_size
32164         parameter.
32165         (void diagnostics_file_cache_fini): Declare new function.
32166         * input.c (struct fcache): New type.
32167         (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
32168         New static constants.
32169         (diagnostic_file_cache_init, total_lines_num)
32170         (lookup_file_in_cache_tab, evicted_cache_tab_entry)
32171         (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
32172         (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
32173         (get_next_line, read_next_line, goto_next_line, read_line_num):
32174         New static function definitions.
32175         (diagnostic_file_cache_fini): New function.
32176         (location_get_source_line): Take an additional output line_len
32177         parameter.  Re-write using lookup_or_add_file_to_cache_tab and
32178         read_line_num.
32179         * diagnostic.c (diagnostic_finish): Call
32180         diagnostic_file_cache_fini.
32181         (adjust_line): Take an additional input parameter for the length
32182         of the line, rather than calculating it with strlen.
32183         (diagnostic_show_locus): Adjust the use of
32184         location_get_source_line and adjust_line with respect to their new
32185         signature.  While displaying a line now, do not stop at the first
32186         null byte.  Rather, display the zero byte as a space and keep
32187         going until we reach the size of the line.
32188         * Makefile.in: Add vec.o to OBJS-libcommon
32189
32190 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
32191             Ilya Tocar  <ilya.tocar@intel.com>
32192
32193         * config/i386/avx512fintrin.h (_mm512_kmov): New.
32194         * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
32195         (__builtin_ia32_kmov16): Ditto.
32196         * config/i386/i386.md (UNSPEC_KMOV): New.
32197         (kmovw): Ditto.
32198
32199 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
32200
32201         * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
32202         (_mm512_storeu_si512): Ditto.
32203
32204 2014-01-23  Richard Sandiford  <rdsandiford@googlemail.com>
32205
32206         PR target/52125
32207         * rtl.h (get_referenced_operands): Declare.
32208         * recog.c (get_referenced_operands): New function.
32209         * config/mips/mips.c (mips_reorg_process_insns): Check which asm
32210         operands have been referenced when recording LO_SUM references.
32211
32212 2014-01-22  David Holsgrove  <david.holsgrove@xilinx.com>
32213
32214         * config/microblaze/microblaze.md: Correct bswaphi2 insn.
32215
32216 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
32217
32218         * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
32219         Enable for generic and recent AMD targets.
32220
32221 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
32222
32223         * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
32224         ARG_SIZE note when adjustment was eliminated.
32225
32226 2014-01-22  Jeff Law  <law@redhat.com>
32227
32228         PR tree-optimization/59597
32229         * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
32230         in file.  Accept new argument REGISTERING and use it to modify
32231         dump output appropriately.
32232         (register_jump_thread): Corresponding changes.
32233         (mark_threaded_blocks): Reinstate code to cancel unprofitable
32234         thread paths involving joiner blocks.  Add code to dump cancelled
32235         jump threading paths.
32236
32237 2014-01-22  Vladimir Makarov  <vmakarov@redhat.com>
32238
32239         PR rtl-optimization/59477
32240         * lra-constraints.c (inherit_in_ebb): Process call for living hard
32241         regs.  Update reloads_num and potential_reload_hard_regs for all insns.
32242
32243 2014-01-22  Tom Tromey  <tromey@redhat.com>
32244
32245         * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
32246         PARAMS.
32247         * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
32248
32249 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
32250
32251         PR rtl-optimization/59896
32252         * lra-constraints.c (process_alt_operands): Check unused note for
32253         matched operands of insn with no output reloads.
32254
32255 2014-01-21  Richard Sandiford  <rdsandiford@googlemail.com>
32256
32257         * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
32258         (mips_move_from_gpr_cost): Likewise.
32259
32260 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
32261
32262         PR rtl-optimization/59858
32263         * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
32264         ira_class_hard_regs_num.
32265         (process_alt_operands): Increase reject for dying matched operand.
32266
32267 2014-01-21  Jakub Jelinek  <jakub@redhat.com>
32268
32269         PR target/59003
32270         * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
32271         smaller than size, perform several stores or loads and stores
32272         at dst + count - size to store or copy all of size bytes, rather
32273         than just last modesize bytes.
32274
32275 2014-01-20  DJ Delorie  <dj@redhat.com>
32276
32277         * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
32278         that CLOBBERs are REGs before propogating their values.
32279
32280 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
32281
32282         PR middle-end/59789
32283         * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
32284         (cgraph_inline_failed_type): New function.
32285         * cgraph.h (DEFCIFCODE): Add type.
32286         (cgraph_inline_failed_type_t): New enum.
32287         (cgraph_inline_failed_type): New prototype.
32288         * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
32289         FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
32290         FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
32291         LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
32292         MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
32293         RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
32294         OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
32295         INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
32296         Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
32297         FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
32298         EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
32299         OPTIMIZATION_MISMATCH.
32300         * tree-inline.c (expand_call_inline): Emit errors during
32301         early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
32302
32303 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
32304
32305         PR target/59685
32306         * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
32307         mode attribute in insn output.
32308
32309 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
32310
32311         * output.h (output_constant): Delete.
32312         * varasm.c (output_constant): Make private.
32313
32314 2014-01-20  Alex Velenko  <Alex.Velenko@arm.com>
32315
32316         * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
32317
32318 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
32319
32320         PR middle-end/59860
32321         * tree.h (fold_builtin_strcat): New prototype.
32322         * builtins.c (fold_builtin_strcat): No longer static.  Add len
32323         argument, if non-NULL, don't call c_strlen.  Optimize
32324         directly into __builtin_memcpy instead of __builtin_strcpy.
32325         (fold_builtin_2): Adjust fold_builtin_strcat caller.
32326         * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
32327
32328 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
32329
32330         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
32331         for SImode_address_operand operands, having only a REG argument.
32332
32333 2014-01-20  Marcus Shawcroft  <marcus.shawcroft@arm.com>
32334
32335         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
32336         loader name using mbig-endian.
32337         (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
32338
32339 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
32340
32341         * doc/invoke.texi (-march): Clarify documentation for AArch64.
32342         (-mtune): Likewise.
32343         (-mcpu): Likewise.
32344
32345 2014-01-20  Tejas Belagod  <tejas.belagod@arm.com>
32346
32347         * config/aarch64/aarch64-protos.h
32348         (aarch64_cannot_change_mode_class_ptr): Declare.
32349         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
32350         aarch64_cannot_change_mode_class_ptr): New.
32351         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
32352         backend hook aarch64_cannot_change_mode_class.
32353
32354 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
32355
32356         * common/config/aarch64/aarch64-common.c
32357         (aarch64_handle_option): Don't handle any option order logic here.
32358         * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
32359         selected_cpu, warn on architecture version mismatch.
32360         (aarch64_override_options): Fix parsing order for option strings.
32361
32362 2014-01-20  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
32363             Iain Sandoe  <iain@codesourcery.com>
32364
32365         PR bootstrap/59496
32366         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
32367         warning.  Amend comment to reflect current functionality.
32368
32369 2014-01-20  Richard Biener  <rguenther@suse.de>
32370
32371         PR middle-end/59860
32372         * builtins.c (fold_builtin_strcat): Remove case better handled
32373         by tree-ssa-strlen.c.
32374
32375 2014-01-20  Alan Lawrence  <alan.lawrence@arm.com>
32376
32377         * config/aarch64/aarch64.opt
32378         (mcpu, march, mtune): Make case-insensitive.
32379
32380 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
32381
32382         PR target/59880
32383         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
32384         if operands[1] is a REG or ZERO_EXTEND of a REG.
32385
32386 2014-01-19  Jan Hubicka  <hubicka@ucw.cz>
32387
32388         * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
32389
32390 2014-01-19  John David Anglin  <danglin@gcc.gnu.org>
32391
32392         * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
32393         long non-pic millicode calls.
32394
32395 2014-01-19  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
32396
32397         * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
32398
32399 2014-01-19  Kito Cheng  <kito@0xlab.org>
32400
32401         * builtins.c (expand_movstr): Check movstr expand done or fail.
32402
32403 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
32404             H.J. Lu  <hongjiu.lu@intel.com>
32405
32406         PR target/59379
32407         * config/i386/i386.md (*lea<mode>): Zero-extend return register
32408         to DImode for zero-extended addresses.
32409
32410 2014-01-19  Jakub Jelinek  <jakub@redhat.com>
32411
32412         PR rtl-optimization/57763
32413         * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
32414         on the new indirect jump_insn and increment LABEL_NUSES (label).
32415
32416 2014-01-18  H.J. Lu  <hongjiu.lu@intel.com>
32417
32418         PR bootstrap/59580
32419         PR bootstrap/59583
32420         * config.gcc (x86_archs): New variable.
32421         (x86_64_archs): Likewise.
32422         (x86_cpus): Likewise.
32423         Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
32424         --with-arch/--with-cpu= options.
32425         Support --with-arch=/--with-cpu={nehalem,westmere,
32426         sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
32427
32428 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
32429
32430         * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
32431         and PROCESSOR_ATHLON to simplify code.  Move "memory" calculation.
32432
32433 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
32434
32435         * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
32436
32437 2014-01-18  Jakub Jelinek  <jakub@redhat.com>
32438
32439         PR target/58944
32440         * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
32441         clear cpp_get_options (parse_in)->warn_unused_macros for
32442         ix86_target_macros_internal with cpp_define.
32443
32444 2014-01-18  Richard Sandiford  <rdsandiford@googlemail.com>
32445
32446         * jump.c (delete_related_insns): Keep (use (insn))s.
32447         * reorg.c (redundant_insn): Check for barriers too.
32448
32449 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
32450
32451         * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
32452
32453 2014-01-17  John David Anglin  <danglin@gcc.gnu.org>
32454
32455         * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
32456         call to $$dyncall when TARGET_LONG_CALLS is true.
32457
32458 2014-01-17  Jeff Law  <law@redhat.com>
32459
32460         * ree.c (combine_set_extension): Temporarily disable test for
32461         changing number of hard registers.
32462
32463 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
32464
32465         PR middle-end/58125
32466         * ipa-inline-analysis.c (inline_free_summary):
32467         Do not free summary of aliases.
32468
32469 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
32470
32471         PR middle-end/59706
32472         * gimplify.c (gimplify_expr): Use create_tmp_var
32473         instead of create_tmp_var_raw.  If cond doesn't have
32474         integral type, don't add the IFN_ANNOTATE builtin at all.
32475
32476 2014-01-17  Martin Jambor  <mjambor@suse.cz>
32477
32478         PR ipa/59736
32479         * ipa-cp.c (prev_edge_clone): New variable.
32480         (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
32481         Also resize prev_edge_clone vector.
32482         (ipcp_edge_duplication_hook): Also update prev_edge_clone.
32483         (ipcp_edge_removal_hook): New function.
32484         (ipcp_driver): Register ipcp_edge_removal_hook.
32485
32486 2014-01-17  Andrew Pinski  <apinski@cavium.com>
32487             Steve Ellcey  <sellcey@mips.com>
32488
32489         PR target/59462
32490         * config/mips/mips.c (mips_print_operand): Check operand mode instead
32491         of operator mode.
32492
32493 2014-01-17  Jeff Law  <law@redhat.com>
32494
32495         PR middle-end/57904
32496         * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
32497         so that pass_ccp runs first.
32498
32499 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
32500
32501         * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
32502         (ix86_adjust_cost): Use !TARGET_XXX.
32503         (do_reorder_for_imul): Likewise.
32504         (swap_top_of_ready_list): Likewise.
32505         (ix86_sched_reorder): Likewise.
32506
32507 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
32508
32509         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
32510         PROCESSOR_INTEL.  Treat like PROCESSOR_GENERIC.
32511         * config/i386/i386.c (intel_memcpy): New.  Duplicate slm_memcpy.
32512         (intel_memset): New.  Duplicate slm_memset.
32513         (intel_cost): New.  Duplicate slm_cost.
32514         (m_INTEL): New macro.
32515         (processor_target_table): Add "intel".
32516         (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
32517         with PROCESSOR_INTEL for "intel".
32518         (ix86_lea_outperforms): Support PROCESSOR_INTEL.  Duplicate
32519         PROCESSOR_SILVERMONT.
32520         (ix86_issue_rate): Likewise.
32521         (ix86_adjust_cost): Likewise.
32522         (ia32_multipass_dfa_lookahead): Likewise.
32523         (swap_top_of_ready_list): Likewise.
32524         (ix86_sched_reorder): Likewise.
32525         (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
32526         instead of TARGET_OPT_AGU.
32527         * config/i386/i386.h (TARGET_INTEL): New.
32528         (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
32529         (processor_type): Add PROCESSOR_INTEL.
32530         * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
32531         Add X86_TUNE_AVOID_LEA_FOR_ADDR.
32532
32533 2014-01-17  Marek Polacek  <polacek@redhat.com>
32534
32535         PR c/58346
32536         * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
32537         size is zero.
32538
32539 2014-01-17  Richard Biener  <rguenther@suse.de>
32540
32541         PR tree-optimization/46590
32542         * opts.c (default_options_table): Add entries for
32543         OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
32544         all enabled at -O1 but not for -Og.
32545         * common.opt (fbranch-count-reg): Remove Init(1).
32546         (fmove-loop-invariants): Likewise.
32547         (ftree-pta): Likewise.
32548
32549 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
32550
32551         * config/i386/i386.c (ix86_data_alignment): For compatibility with
32552         (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
32553         decls to at least the GCC 4.8 used alignments.
32554
32555         PR fortran/59440
32556         * tree-nested.c (convert_nonlocal_reference_stmt,
32557         convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
32558         of GIMPLE_BIND stmts, adjust associated decls.
32559
32560 2014-01-17  Richard Biener  <rguenther@suse.de>
32561
32562         PR tree-optimization/46590
32563         * vec.h (vec<>::bseach): New member function implementing
32564         binary search according to C89 bsearch.
32565         (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
32566         * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
32567         bitmap pointer again.  Make accesses_in_loop a flat array.
32568         (mem_ref_obstack): New global.
32569         (outermost_indep_loop): Adjust for mem_ref->stored changes.
32570         (mark_ref_stored): Likewise.
32571         (ref_indep_loop_p_2): Likewise.
32572         (set_ref_stored_in_loop): New helper function.
32573         (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
32574         (memref_free): Adjust.
32575         (record_mem_ref_loc): Simplify.
32576         (gather_mem_refs_stmt): Adjust.
32577         (sort_locs_in_loop_postorder_cmp): New function.
32578         (analyze_memory_references): Sort accesses_in_loop after
32579         loop postorder number.
32580         (find_ref_loc_in_loop_cmp): New function.
32581         (for_all_locs_in_loop): Find relevant cluster of locs in
32582         accesses_in_loop and iterate without recursion.
32583         (execute_sm): Avoid uninit warning.
32584         (struct ref_always_accessed): Simplify.
32585         (ref_always_accessed::operator ()): Likewise.
32586         (ref_always_accessed_p): Likewise.
32587         (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
32588         loop postorder numbers here.
32589         (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
32590         numbers.
32591
32592 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
32593
32594         PR c++/57945
32595         * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
32596         on decls for which assemble_alias has been called.
32597
32598 2014-01-17  Nick Clifton  <nickc@redhat.com>
32599
32600         * config/msp430/msp430.opt: (mcpu): New option.
32601         * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
32602         (msp430_option_override): Parse target_cpu.  If the MCU name
32603         matches a generic string, clear target_mcu.
32604         (msp430_attr): Allow numeric interrupt values up to 63.
32605         (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
32606         * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
32607         option.
32608         * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
32609         Add mcpu matches.
32610         * config/msp430/msp430.md (popm): Use %J rather than %I.
32611         (addsi3): Use msp430_nonimmediate_operand for operand 2.
32612         (addhi_cy_i): Use immediate_operand for operand 2.
32613         * doc/invoke.texi: Document -mcpu option.
32614
32615 2014-01-17  Richard Biener  <rguenther@suse.de>
32616
32617         PR rtl-optimization/38518
32618         * df.h (df_analyze_loop): Declare.
32619         * df-core.c: Include cfgloop.h.
32620         (df_analyze_1): Split out main part of df_analyze.
32621         (df_analyze): Adjust.
32622         (loop_inverted_post_order_compute): New function.
32623         (loop_post_order_compute): Likewise.
32624         (df_analyze_loop): New function avoiding whole-function
32625         postorder computes.
32626         * loop-invariant.c (find_defs): Use df_analyze_loop.
32627         (find_invariants): Adjust.
32628         * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
32629
32630 2014-01-17  Zhenqiang Chen  <zhenqiang.chen@arm.com>
32631
32632         * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
32633         (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
32634
32635 2014-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
32636
32637         * ipa-ref.c (ipa_remove_stmt_references): Fix references
32638         traversal when removing references.
32639
32640 2014-01-16  Jan Hubicka  <hubicka@ucw.cz>
32641
32642         PR ipa/59775
32643         * tree.c (get_binfo_at_offset): Look harder for virtual bases.
32644
32645 2014-01-16  Bernd Schmidt  <bernds@codesourcery.com>
32646
32647         PR middle-end/56791
32648         * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
32649         pushing a reload for an autoinc when we had previously reloaded an
32650         inner part of the address.
32651
32652 2014-01-16  Jakub Jelinek  <jakub@redhat.com>
32653
32654         * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
32655         field.
32656         (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
32657         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
32658         when not giving up or versioning for alias only because of
32659         loop->safelen.
32660         (vect_analyze_data_ref_dependences): Set to true.
32661         * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
32662         is a GIMPLE_PHI.
32663         (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
32664         LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
32665         to the condition.
32666
32667         PR middle-end/58344
32668         * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
32669
32670         PR target/59839
32671         * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
32672         operand 0 predicate for gathers, use a new pseudo as subtarget.
32673
32674 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
32675
32676         PR middle-end/59609
32677         * lra-constraints.c (process_alt_operands): Add printing debug info.
32678         Check absence of input/output reloads for matched operands too.
32679
32680 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
32681
32682         PR rtl-optimization/59835
32683         * ira.c (ira_init_register_move_cost): Increase cost for
32684         impossible modes.
32685
32686 2014-01-16  Alan Lawrence  <alan.lawrence@arm.com>
32687
32688         * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
32689
32690 2014-01-16  Richard Earnshaw  <rearnsha@arm.com>
32691
32692         PR target/59780
32693         * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
32694         non-register objects.  Use gen_(high/low)part more consistently.
32695         Fix assertions.
32696
32697 2014-01-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
32698
32699         PR target/59844
32700         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
32701         endian support, remove tests for WORDS_BIG_ENDIAN.
32702         (p8_mfvsrd_3_<mode>): Likewise.
32703         (reload_gpr_from_vsx<mode>): Likewise.
32704         (reload_gpr_from_vsxsf): Likewise.
32705         (p8_mfvsrd_4_disf): Likewise.
32706
32707 2014-01-16  Richard Biener  <rguenther@suse.de>
32708
32709         PR rtl-optimization/46590
32710         * lcm.c (compute_antinout_edge): Use postorder iteration.
32711         (compute_laterin): Use inverted postorder iteration.
32712
32713 2014-01-16  Nick Clifton  <nickc@redhat.com>
32714
32715         PR middle-end/28865
32716         * varasm.c (output_constant): Return the number of bytes actually
32717         emitted.
32718         (output_constructor_array_range): Update the field size with the
32719         number of bytes emitted by output_constant.
32720         (output_constructor_regular_field): Likewise.  Also do not
32721         complain if the total number of bytes emitted is now greater
32722         than the expected fieldpos.
32723         * output.h (output_constant): Update prototype and descriptive comment.
32724
32725 2014-01-16  Marek Polacek  <polacek@redhat.com>
32726
32727         PR middle-end/59827
32728         * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
32729         it is error_mark_node.
32730
32731 2014-01-15  Uros Bizjak  <ubizjak@gmail.com>
32732
32733         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
32734         VALID_AVX256_REG_OR_OI_MODE.
32735
32736 2014-01-15  Pat Haugen  <pthaugen@us.ibm.com>
32737
32738         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
32739         current procedure should be profiled.
32740
32741 2014-01-15  Andrew Pinski  <apinski@cavium.com>
32742
32743         * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
32744         of moving from/to the STACK_REG register class.
32745
32746 2014-01-15  Richard Henderson  <rth@redhat.com>
32747
32748         PR debug/54694
32749         * reginfo.c (global_regs_decl): Globalize.
32750         * rtl.h (global_regs_decl): Declare.
32751         * ira.c (do_reload): Diagnose frame_pointer_needed and it
32752         reserved via global_regs.
32753
32754 2014-01-15  Teresa Johnson  <tejohnson@google.com>
32755
32756         * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
32757
32758 2014-01-15  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
32759
32760         * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
32761         and vmulosh rather than call gen_vec_widen_smult_*.
32762         (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
32763         than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
32764         (vec_widen_smult_even_v16qi): Likewise.
32765         (vec_widen_umult_even_v8hi): Likewise.
32766         (vec_widen_smult_even_v8hi): Likewise.
32767         (vec_widen_umult_odd_v16qi): Likewise.
32768         (vec_widen_smult_odd_v16qi): Likewise.
32769         (vec_widen_umult_odd_v8hi): Likewise.
32770         (vec_widen_smult_odd_v8hi): Likewise.
32771         (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
32772         vmuloub rather than call gen_vec_widen_umult_*.
32773         (vec_widen_umult_lo_v16qi): Likewise.
32774         (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
32775         vmulosb rather than call gen_vec_widen_smult_*.
32776         (vec_widen_smult_lo_v16qi): Likewise.
32777         (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
32778         rather than call gen_vec_widen_umult_*.
32779         (vec_widen_umult_lo_v8hi): Likewise.
32780         (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
32781         rather than call gen_vec_widen_smult_*.
32782         (vec_widen_smult_lo_v8hi): Likewise.
32783
32784 2014-01-15  Jeff Law  <law@redhat.com>
32785
32786         PR tree-optimization/59747
32787         * ree.c (find_and_remove_re): Properly handle case where a second
32788         eliminated extension requires widening a copy created for elimination
32789         of a prior extension.
32790         (combine_set_extension): Ensure that the number of hard regs needed
32791         for a destination register does not change when we widen it.
32792
32793 2014-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
32794
32795         * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
32796         (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
32797         (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
32798         (arm*-*-rtems*): Use t-rtems from existing tmake_file.
32799         (avr-*-rtems*): Likewise.
32800         (bfin*-rtems*): Likewise.
32801         (moxie-*-rtems*): Likewise.
32802         (h8300-*-rtems*): Likewise.
32803         (i[34567]86-*-rtems*): Likewise.
32804         (lm32-*-rtems*): Likewise.
32805         (m32r-*-rtems*): Likewise.
32806         (m68k-*-rtems*): Likewise.
32807         (microblaze*-*-rtems*): Likewise.
32808         (mips*-*-rtems*): Likewise.
32809         (powerpc-*-rtems*): Likewise.
32810         (sh-*-rtems*): Likewise.
32811         (sparc-*-rtems*): Likewise.
32812         (sparc64-*-rtems*): Likewise.
32813         (v850-*-rtems*): Likewise.
32814         (m32c-*-rtems*): Likewise.
32815
32816 2014-01-15  Vladimir Makarov  <vmakarov@redhat.com>
32817
32818         PR rtl-optimization/59511
32819         * ira.c (ira_init_register_move_cost): Use memory costs for some
32820         cases of register move cost calculations.
32821         * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
32822         instead of BB frequency.
32823         * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
32824         * lra-assigns.c (find_hard_regno_for): Ditto.
32825
32826 2014-01-15  Richard Biener  <rguenther@suse.de>
32827
32828         PR tree-optimization/59822
32829         * tree-vect-stmts.c (hoist_defs_of_uses): New function.
32830         (vectorizable_load): Use it to hoist defs of uses of invariant
32831         loads out of the loop.
32832
32833 2014-01-15  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
32834             Kugan Vivekanandarajah  <kuganv@linaro.org>
32835
32836         PR target/59695
32837         * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
32838         truncation.
32839
32840 2014-01-15  Richard Biener  <rguenther@suse.de>
32841
32842         PR rtl-optimization/59802
32843         * lcm.c (compute_available): Use inverted postorder to seed
32844         the initial worklist.
32845
32846 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32847
32848         PR target/59803
32849         * config/s390/s390.c (s390_preferred_reload_class): Don't return
32850         ADDR_REGS for invalid symrefs in non-PIC code.
32851
32852 2014-01-15  Jakub Jelinek  <jakub@redhat.com>
32853
32854         PR other/58712
32855         * builtins.c (determine_block_size): Initialize *probable_max_size
32856         even if len_rtx is CONST_INT.
32857
32858 2014-01-14  Andrew Pinski  <apinski@cavium.com>
32859
32860         * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
32861         * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
32862         (cortexa53_tunings): Likewise.
32863         (aarch64_sched_issue_rate): New function.
32864         (TARGET_SCHED_ISSUE_RATE): Define.
32865
32866 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
32867
32868         * ira-costs.c (find_costs_and_classes): Add missed
32869         ira_init_register_move_cost_if_necessary.
32870
32871 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
32872
32873         PR target/59787
32874         * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
32875
32876 2014-01-14  H.J. Lu  <hongjiu.lu@intel.com>
32877
32878         PR target/59794
32879         * config/i386/i386.c (type_natural_mode): Add a bool parameter
32880         to indicate if type is used for function return value.  Warn ABI
32881         change if the vector mode isn't available for function return value.
32882         (ix86_function_arg_advance): Pass false to type_natural_mode.
32883         (ix86_function_arg): Likewise.
32884         (ix86_gimplify_va_arg): Likewise.
32885         (function_arg_32): Don't warn ABI change.
32886         (ix86_function_value): Pass true to type_natural_mode.
32887         (ix86_return_in_memory): Likewise.
32888         (ix86_struct_value_rtx): Removed.
32889         (TARGET_STRUCT_VALUE_RTX): Likewise.
32890
32891 2014-01-14  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
32892
32893         * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
32894         converting a conditional jump into a conditional return.
32895
32896 2014-01-14  Richard Biener  <rguenther@suse.de>
32897
32898         PR tree-optimization/58921
32899         PR tree-optimization/59006
32900         * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
32901         hoisting invariant stmts.
32902         * tree-vect-stmts.c (vectorizable_load): Insert the splat of
32903         invariant loads on the preheader edge if possible.
32904
32905 2014-01-14  Joey Ye  <joey.ye@arm.com>
32906
32907         * doc/plugin.texi (Building GCC plugins): Update to C++.
32908
32909 2014-01-14  Kirill Yukhin  <kirill.yukhin@intel.com>
32910
32911         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
32912         (_mm_rcp28_round_ss): Ditto.
32913         (_mm_rsqrt28_round_sd): Ditto.
32914         (_mm_rsqrt28_round_ss): Ditto.
32915         (_mm_rcp28_sd): Ditto.
32916         (_mm_rcp28_ss): Ditto.
32917         (_mm_rsqrt28_sd): Ditto.
32918         (_mm_rsqrt28_ss): Ditto.
32919         * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
32920         * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
32921         * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
32922         (IX86_BUILTIN_RCP28SD): Ditto.
32923         (IX86_BUILTIN_RCP28SS): Ditto.
32924         (IX86_BUILTIN_RSQRT28SD): Ditto.
32925         (IX86_BUILTIN_RSQRT28SS): Ditto.
32926         (bdesc_special_args): Define __builtin_ia32_movntdqa512,
32927         __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
32928         __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
32929         (ix86_expand_special_args_builtin): Expand new FTYPE.
32930         * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
32931         (srcp14<mode>): Make insn unary.
32932         (avx512f_vmscalef<mode><round_name>): Use substed predicate.
32933         (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
32934         (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
32935         (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
32936         (avx512er_exp2<mode><mask_name><round_saeonly_name>):
32937         Fix rounding: make it SAE only.
32938         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
32939         Ditto.
32940         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
32941         Ditto.
32942         (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
32943         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
32944         (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
32945         * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
32946         (round_saeonly_mask_scalar_operand4): Ditto.
32947         (round_saeonly_mask_scalar_op3): Ditto.
32948         (round_saeonly_mask_scalar_op4): Ditto.
32949
32950 2014-01-13  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32951
32952         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
32953         Implement -maltivec=be for vec_insert and vec_extract.
32954
32955 2014-01-10  DJ Delorie  <dj@redhat.com>
32956
32957         * config/msp430/msp430.md (call_internal): Don't allow memory
32958         references with SP as the base register.
32959         (call_value_internal): Likewise.
32960         * config/msp430/constraints.md (Yc): New.  For memory references
32961         that don't use SP as a base register.
32962
32963         * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
32964         "an integer without a # prefix"
32965         * config/msp430/msp430.md (epilogue_helper): Use it.
32966
32967 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
32968
32969         PR target/59617
32970         * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
32971         AVX512F gather builtins.
32972         * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
32973         on gather decls with INTEGER_TYPE masktype.
32974         (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
32975         directly into the builtin rather than hoisting it before loop.
32976
32977         PR tree-optimization/59387
32978         * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
32979         (scev_const_prop): If folded_casts and type has undefined overflow,
32980         use force_gimple_operand instead of force_gimple_operand_gsi and
32981         for each added stmt if it is assign with
32982         arith_code_with_undefined_signed_overflow, call
32983         rewrite_to_defined_overflow.
32984         * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
32985         gimple-fold.h instead.
32986         (arith_code_with_undefined_signed_overflow,
32987         rewrite_to_defined_overflow): Moved to ...
32988         * gimple-fold.c (arith_code_with_undefined_signed_overflow,
32989         rewrite_to_defined_overflow): ... here.  No longer static.
32990         Include gimplify-me.h.
32991         * gimple-fold.h (arith_code_with_undefined_signed_overflow,
32992         rewrite_to_defined_overflow): New prototypes.
32993
32994 2014-01-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32995
32996         * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
32997
32998 2014-01-13  Eric Botcazou  <ebotcazou@adacore.com>
32999
33000         * builtins.c (get_object_alignment_2): Minor tweak.
33001         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
33002
33003 2014-01-13  Christian Bruel  <christian.bruel@st.com>
33004
33005         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
33006         optimized non constant lengths.
33007
33008 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
33009
33010         PR libgomp/59194
33011         * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
33012         load as __atomic_load_N if possible.
33013
33014 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
33015
33016         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
33017         target parameter.
33018         (rs6000_expand_builtin): Adjust call.
33019
33020 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
33021
33022         PR target/58115
33023         * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
33024         * config/rs6000/rs6000.c: Include target-globals.h.
33025         (rs6000_set_current_function): Instead of doing target_reinit
33026         unconditionally, use save_target_globals_default_opts and
33027         restore_target_globals.
33028
33029         * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
33030         FPSCR.
33031         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
33032         (rs6000_expand_builtin): Handle mffs and mtfsf.
33033         (rs6000_init_builtins): Define mffs and mtfsf.
33034         * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
33035         (rs6000_mffs): New pattern.
33036         (rs6000_mtfsf): New pattern.
33037
33038 2014-01-11  Bin Cheng  <bin.cheng@arm.com>
33039
33040         * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
33041         Start narrowing with START.  Apply candidate-use pair
33042         and check overall cost in narrowing.
33043         (iv_ca_prune): Pass new argument.
33044
33045 2014-01-10  Jeff Law  <law@redhat.com>
33046
33047         PR middle-end/59743
33048         * ree.c (combine_reaching_defs): Ensure the defining statement
33049         occurs before the extension when optimizing extensions with
33050         different source and destination hard registers.
33051
33052 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
33053
33054         PR ipa/58585
33055         * ipa-devirt.c (build_type_inheritance_graph): Also add types of
33056         vtables into the type inheritance graph.
33057
33058 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
33059
33060         PR rtl-optimization/59754
33061         * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
33062         modes in the REGNO != REGNO case.
33063
33064 2014-01-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33065
33066         * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
33067
33068 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
33069
33070         PR tree-optimization/59745
33071         * tree-predcom.c (tree_predictive_commoning_loop): Call
33072         free_affine_expand_cache if giving up because components is NULL.
33073
33074         * target-globals.c (save_target_globals): Allocate < 4KB structs using
33075         GC in payload of target_globals struct instead of allocating them on
33076         the heap and the larger structs separately using GC.
33077         * target-globals.h (struct target_globals): Make regs, hard_regs,
33078         reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
33079         of GTY((skip)) and change type to void *.
33080         (reset_target_globals): Cast loads from those fields to corresponding
33081         types.
33082
33083 2014-01-10  Steve Ellcey  <sellcey@mips.com>
33084
33085         PR plugins/59335
33086         * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
33087         gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
33088         tree-ssanames.h, print-tree.h, varasm.h, and context.h.
33089
33090 2014-01-10  Richard Earnshaw  <rearnsha@arm.com>
33091
33092         PR target/59744
33093         * aarch64-modes.def (CC_Zmode): New flags mode.
33094         * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
33095         represents an equality.
33096         (aarch64_get_condition_code): Handle CC_Zmode.
33097         * aarch64.md (compare_neg<mode>): Restrict to equality operations.
33098
33099 2014-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33100
33101         * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
33102         extraction in good case.
33103
33104 2014-01-10  Richard Biener  <rguenther@suse.de>
33105
33106         PR tree-optimization/59374
33107         * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
33108         checking after SLP discovery.  Mark stmts not participating
33109         in any SLP instance properly.
33110
33111 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33112
33113         * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
33114         when handling a SET rtx.
33115
33116 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33117
33118         * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
33119         (cortex-a57): Likewise.
33120         (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
33121
33122 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33123
33124         * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
33125         non-iwmmxt builtins.
33126
33127 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
33128
33129         PR ipa/58252
33130         PR ipa/59226
33131         * ipa-devirt.c record_target_from_binfo): Take as argument
33132         stack of binfos and lookup matching one for virtual inheritance.
33133         (possible_polymorphic_call_targets_1): Update.
33134
33135 2014-01-10  Huacai Chen  <chenhc@lemote.com>
33136
33137         * config/mips/driver-native.c (host_detect_local_cpu): Handle new
33138         kernel strings for Loongson-2E/2F/3A.
33139
33140 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
33141
33142         PR middle-end/59670
33143         * tree-vect-data-refs.c (vect_analyze_data_refs): Check
33144         is_gimple_call before calling gimple_call_internal_p.
33145
33146 2014-01-09  Steve Ellcey  <sellcey@mips.com>
33147
33148         * Makefile.in (TREE_FLOW_H): Remove.
33149         (TREE_SSA_H): Add file names from tree-flow.h.
33150         * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
33151         * tree.h: Remove tree-flow.h reference.
33152         * hash-table.h: Remove tree-flow.h reference.
33153         * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
33154         reference with tree-ssa-loop.h.
33155
33156 2014-01-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33157
33158         * doc/invoke.texi: Add -maltivec={be,le} options, and document
33159         default element-order behavior for -maltivec.
33160         * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
33161         * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
33162         that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
33163         when targeting big endian, at least for now.
33164         * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
33165
33166 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
33167
33168         PR middle-end/47735
33169         * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
33170         var satisfies use_register_for_decl, just take into account type
33171         alignment, rather than decl alignment.
33172
33173         PR tree-optimization/59622
33174         * gimple-fold.c (gimple_fold_call): Fix a typo in message.  For
33175         __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
33176         __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
33177         Don't devirtualize for inplace at all.  For targets.length () == 1,
33178         if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
33179
33180 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
33181
33182         * config/i386/i386.md (cpu): Remove the unused btver1.
33183
33184 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
33185
33186         * gdbasan.in: Put a breakpoint on __sanitizer::Report.
33187
33188 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
33189
33190         PR target/58115
33191         * tree-core.h (struct target_globals): New forward declaration.
33192         (struct tree_target_option): Add globals field.
33193         * tree.h (TREE_TARGET_GLOBALS): Define.
33194         (prepare_target_option_nodes_for_pch): New prototype.
33195         * target-globals.h (struct target_globals): Define even if
33196         !SWITCHABLE_TARGET.
33197         * tree.c (prepare_target_option_node_for_pch,
33198         prepare_target_option_nodes_for_pch): New functions.
33199         * config/i386/i386.h (SWITCHABLE_TARGET): Define.
33200         * config/i386/i386.c: Include target-globals.h.
33201         (ix86_set_current_function): Instead of doing target_reinit
33202         unconditionally, use save_target_globals_default_opts and
33203         restore_target_globals.
33204
33205 2014-01-09  Richard Biener  <rguenther@suse.de>
33206
33207         PR tree-optimization/59715
33208         * tree-cfg.h (split_critical_edges): Declare.
33209         * tree-cfg.c (split_critical_edges): Export.
33210         * tree-ssa-sink.c (execute_sink_code): Split critical edges.
33211
33212 2014-01-09  Max Ostapenko  <m.ostapenko@partner.samsung.com>
33213
33214         * cfgexpand.c (expand_stack_vars): Optionally disable
33215         asan stack protection.
33216         (expand_used_vars): Likewise.
33217         (partition_stack_vars): Likewise.
33218         * asan.c (asan_emit_stack_protection): Optionally disable
33219         after return stack usage.
33220         (instrument_derefs): Optionally disable memory access instrumentation.
33221         (instrument_builtin_call): Likewise.
33222         (instrument_strlen_call): Likewise.
33223         (asan_protect_global): Optionally disable global variables protection.
33224         * doc/invoke.texi: Added doc for new options.
33225         * params.def: Added new options.
33226         * params.h: Likewise.
33227
33228 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
33229
33230         PR rtl-optimization/59724
33231         * ifcvt.c (cond_exec_process_if_block): Don't call
33232         flow_find_head_matching_sequence with 0 longest_match.
33233         * cfgcleanup.c (flow_find_head_matching_sequence): Count even
33234         non-active insns if !stop_after.
33235         (try_head_merge_bb): Revert 2014-01-07 changes.
33236
33237 2014-01-08  Jeff Law  <law@redhat.com>
33238
33239         * ree.c (get_sub_rtx): New function, extracted from...
33240         (merge_def_and_ext): Here.
33241         (combine_reaching_defs): Use get_sub_rtx.
33242
33243 2014-01-08  Eric Botcazou  <ebotcazou@adacore.com>
33244
33245         * cgraph.h (varpool_variable_node): Do not choke on null node.
33246
33247 2014-01-08  Catherine Moore  <clm@codesourcery.com>
33248
33249         * config/mips/mips.md (simple_return): Attempt to use JRC
33250         for microMIPS.
33251         * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
33252
33253 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
33254
33255         PR rtl-optimization/59137
33256         * reorg.c (steal_delay_list_from_target): Call update_block for
33257         elided insns.
33258         (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
33259
33260 2014-01-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33261
33262         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
33263         two duplicate entries.
33264
33265 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
33266
33267         Revert:
33268         2012-10-07  Richard Sandiford  <rdsandiford@googlemail.com>
33269
33270         * config/mips/mips.c (mips_truncated_op_cost): New function.
33271         (mips_rtx_costs): Adjust test for BADDU.
33272         * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
33273
33274         2012-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
33275
33276         * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
33277         (*baddu_si): ...this new pattern.
33278
33279 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
33280
33281         PR ipa/59722
33282         * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
33283
33284 2014-01-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>
33285
33286         PR middle-end/57748
33287         * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
33288         inner_reference_p.
33289         (expand_expr, expand_normal): Adjust.
33290         * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
33291         inner_reference_p. Use inner_reference_p to expand inner references.
33292         (store_expr): Adjust.
33293         * cfgexpand.c (expand_call_stmt): Adjust.
33294
33295 2014-01-08  Rong Xu  <xur@google.com>
33296
33297         * gcov-io.c (gcov_var): Move from gcov-io.h.
33298         (gcov_position): Ditto.
33299         (gcov_is_error): Ditto.
33300         (gcov_rewrite): Ditto.
33301         * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
33302         only part to libgcc/libgcov.h.
33303
33304 2014-01-08  Marek Polacek  <polacek@redhat.com>
33305
33306         PR middle-end/59669
33307         * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
33308
33309 2014-01-08  Marek Polacek  <polacek@redhat.com>
33310
33311         PR sanitizer/59667
33312         * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
33313
33314 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
33315
33316         PR rtl-optimization/59649
33317         * stor-layout.c (get_mode_bounds): For BImode return
33318         0 and STORE_FLAG_VALUE.
33319
33320 2014-01-08  Richard Biener  <rguenther@suse.de>
33321
33322         PR middle-end/59630
33323         * gimple.h (is_gimple_builtin_call): Remove.
33324         (gimple_builtin_call_types_compatible_p): New.
33325         (gimple_call_builtin_p): New overload.
33326         * gimple.c (is_gimple_builtin_call): Remove.
33327         (validate_call): Rename to ...
33328         (gimple_builtin_call_types_compatible_p): ... this and export.  Also
33329         check return types.
33330         (validate_type): New static function.
33331         (gimple_call_builtin_p): New overload and adjust.
33332         * gimple-fold.c (gimple_fold_builtin): Fold the return value.
33333         (gimple_fold_call): Likewise.  Use gimple_call_builtin_p.
33334         (gimple_fold_stmt_to_constant_1): Likewise.
33335         * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
33336
33337 2014-01-08  Richard Biener  <rguenther@suse.de>
33338
33339         PR middle-end/59471
33340         * gimplify.c (gimplify_expr): Gimplify register-register type
33341         VIEW_CONVERT_EXPRs to separate stmts.
33342
33343 2014-01-07  Jeff Law  <law@redhat.com>
33344
33345         PR middle-end/53623
33346         * ree.c (combine_set_extension): Handle case where source
33347         and destination registers in an extension insn are different.
33348         (combine_reaching_defs): Allow source and destination registers
33349         in extension to be different under limited circumstances.
33350         (add_removable_extension): Remove restriction that the
33351         source and destination registers in the extension are the same.
33352         (find_and_remove_re): Emit a copy from the extension's
33353         destination to its source after the defining insn if
33354         the source and destination registers are different.
33355
33356         PR middle-end/59285
33357         * ifcvt.c (merge_if_block): If we are merging a block with more than
33358         one successor with a block with no successors, remove any BARRIER
33359         after the second block.
33360
33361 2014-01-07  Dan Xio Qiang  <ziyan01@163.com>
33362
33363         * hw-doloop.c (reorg_loops): Release the bitmap obstack.
33364
33365 2014-01-07  John David Anglin  <danglin@gcc.gnu.org>
33366
33367         PR target/59652
33368         * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
33369         for 14-bit register offsets when INT14_OK_STRICT is false.
33370
33371 2014-01-07  Roland Stigge  <stigge@antcom.de>
33372             Michael Meissner  <meissner@linux.vnet.ibm.com>
33373
33374         PR 57386/target
33375         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
33376         Only check TFmode for SPE constants.  Don't check TImode or TDmode.
33377
33378 2014-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
33379
33380         * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
33381         -mcpu.
33382
33383 2014-01-07  Yufeng Zhang  <yufeng.zhang@arm.com>
33384
33385         * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
33386         with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
33387         rtx is const0_rtx or not.
33388
33389 2014-01-07  Richard Sandiford  <rdsandiford@googlemail.com>
33390
33391         PR target/58115
33392         * target-globals.c (save_target_globals): Remove this_fn_optab
33393         handling.
33394         * toplev.c: Include optabs.h.
33395         (target_reinit): Temporarily restore the global options if another
33396         set of options are in force.
33397
33398 2014-01-07  Jakub Jelinek  <jakub@redhat.com>
33399
33400         PR rtl-optimization/58668
33401         * cfgcleanup.c (flow_find_cross_jump): Don't count
33402         any jumps if dir_p is NULL.  Remove p1 variable, use active_insn_p
33403         to determine what is counted.
33404         (flow_find_head_matching_sequence): Use active_insn_p to determine
33405         what is counted.
33406         (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
33407         counting change.
33408         * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
33409         determine what is counted.
33410
33411         PR tree-optimization/59643
33412         * tree-predcom.c (split_data_refs_to_components): If one dr is
33413         read and one write, determine_offset fails and the write isn't
33414         in the bad component, just put the read into the bad component.
33415
33416 2014-01-07  Mike Stump  <mikestump@comcast.net>
33417             Jakub Jelinek  <jakub@redhat.com>
33418
33419         PR pch/59436
33420         * tree-core.h (struct tree_optimization_option): Change optabs
33421         type from unsigned char * to void *.
33422         * optabs.c (init_tree_optimization_optabs): Adjust
33423         TREE_OPTIMIZATION_OPTABS initialization.
33424
33425 2014-01-06  Jakub Jelinek  <jakub@redhat.com>
33426
33427         PR target/59644
33428         * config/i386/i386.h (struct machine_function): Add
33429         no_drap_save_restore field.
33430         * config/i386/i386.c (ix86_save_reg): Use
33431         !cfun->machine->no_drap_save_restore instead of
33432         crtl->stack_realign_needed.
33433         (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
33434         this function clears frame_pointer_needed.  Set
33435         cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
33436         and DRAP reg is needed.
33437
33438 2014-01-06  Marek Polacek  <polacek@redhat.com>
33439
33440         PR c/57773
33441         * doc/implement-c.texi: Mention that other integer types are
33442         permitted as bit-field types in strictly conforming mode.
33443
33444 2014-01-06  Felix Yang  <fei.yang0953@gmail.com>
33445
33446         * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
33447         is newly allocated.
33448
33449 2014-01-06  Richard Earnshaw  <rearnsha@arm.com>
33450
33451         * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
33452
33453 2014-01-06  Martin Jambor  <mjambor@suse.cz>
33454
33455         PR ipa/59008
33456         * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
33457         to int.
33458         * ipa-prop.c (ipa_print_node_params): Fix indentation.
33459
33460 2014-01-06  Eric Botcazou  <ebotcazou@adacore.com>
33461
33462         PR debug/59350
33463         PR debug/59510
33464         * var-tracking.c (add_stores): Preserve the value of the source even if
33465         we don't record the store.
33466
33467 2014-01-06  Terry Guo  <terry.guo@arm.com>
33468
33469         * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
33470
33471 2014-01-05  Iain Sandoe  <iain@codesourcery.com>
33472
33473         PR bootstrap/59541
33474         * config/darwin.c (darwin_function_section): Adjust return values to
33475         correspond to optimisation changes made in r206070.
33476
33477 2014-01-05  Uros Bizjak  <ubizjak@gmail.com>
33478
33479         * config/i386/i386.c (ix86_data_alignment): Calculate max_align
33480         from prefetch_block tune setting.
33481         (nocona_cost): Correct size of prefetch block to 64.
33482
33483 2014-01-04  Eric Botcazou  <ebotcazou@adacore.com>
33484
33485         * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
33486         (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
33487         used to save the static chain register in the computation of the offset
33488         from which the FP registers need to be restored.
33489
33490 2014-01-04  Jakub Jelinek  <jakub@redhat.com>
33491
33492         PR tree-optimization/59519
33493         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
33494         ICE if get_current_def (current_new_name) is already non-NULL, as long
33495         as it is a phi result of some other phi in *new_exit_bb that has
33496         the same argument.
33497
33498         * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
33499         or vmovdqu* for misaligned_operand.
33500         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
33501         <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
33502         * config/i386/i386.c (ix86_expand_special_args_builtin): Set
33503         aligned_mem for AVX512F masked aligned load and store builtins and for
33504         non-temporal moves.
33505
33506 2014-01-03  Bingfeng Mei  <bmei@broadcom.com>
33507
33508         PR tree-optimization/59651
33509         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
33510         Address range for negative step should be added by TYPE_SIZE_UNIT.
33511
33512 2014-01-03  Andreas Schwab  <schwab@linux-m68k.org>
33513
33514         * config/m68k/m68k.c (handle_move_double): Handle pushes with
33515         overlapping registers also for registers other than the stack pointer.
33516
33517 2014-01-03  Marek Polacek  <polacek@redhat.com>
33518
33519         PR other/59661
33520         * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
33521         __builtin_FILE.
33522
33523 2014-01-03  Jakub Jelinek  <jakub@redhat.com>
33524
33525         PR target/59625
33526         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
33527         asm goto as jump.
33528
33529         * config/i386/i386.md (MODE_SIZE): New mode attribute.
33530         (push splitter): Use <P:MODE_SIZE> instead of
33531         GET_MODE_SIZE (<P:MODE>mode).
33532         (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
33533         (mov -1, reg peephole2): Likewise.
33534         * config/i386/sse.md (*mov<mode>_internal,
33535         <sse>_storeu<ssemodesuffix><avxsizesuffix>,
33536         <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
33537         *<code><mode>3, *andnot<mode>3<mask_name>,
33538         <mask_codefor><code><mode>3<mask_name>): Likewise.
33539         * config/i386/subst.md (mask_mode512bit_condition,
33540         sd_mask_mode512bit_condition): Likewise.
33541
33542 2014-01-02  Xinliang David Li  <davidxl@google.com>
33543
33544         PR tree-optimization/59303
33545         * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
33546         (dump_predicates): Better output format.
33547         (pred_equal_p): New function.
33548         (is_neq_relop_p): Ditto.
33549         (is_neq_zero_form_p): Ditto.
33550         (pred_expr_equal_p): Ditto.
33551         (pred_neg_p): Ditto.
33552         (simplify_pred): Ditto.
33553         (simplify_preds_2): Ditto.
33554         (simplify_preds_3): Ditto.
33555         (simplify_preds_4): Ditto.
33556         (simplify_preds): Ditto.
33557         (push_pred): Ditto.
33558         (push_to_worklist): Ditto.
33559         (get_pred_info_from_cmp): Ditto.
33560         (is_degenerated_phi): Ditto.
33561         (normalize_one_pred_1): Ditto.
33562         (normalize_one_pred): Ditto.
33563         (normalize_one_pred_chain): Ditto.
33564         (normalize_preds): Ditto.
33565         (normalize_cond_1): Remove function.
33566         (normalize_cond): Ditto.
33567         (is_gcond_subset_of): Ditto.
33568         (is_subset_of_any): Ditto.
33569         (is_or_set_subset_of): Ditto.
33570         (is_and_set_subset_of): Ditto.
33571         (is_norm_cond_subset_of): Ditto.
33572         (pred_chain_length_cmp): Ditto.
33573         (convert_control_dep_chain_into_preds): Type change.
33574         (find_predicates): Ditto.
33575         (find_def_preds): Ditto.
33576         (destroy_predicates_vecs): Ditto.
33577         (find_matching_predicates_in_rest_chains): Ditto.
33578         (use_pred_not_overlap_with_undef_path_pred): Ditto.
33579         (is_pred_expr_subset): Ditto.
33580         (is_pred_chain_subset_of): Ditto.
33581         (is_included_in): Ditto.
33582         (is_superset_of): Ditto.
33583
33584 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
33585
33586         Update copyright years.
33587
33588 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
33589
33590         * common/config/arc/arc-common.c, config/arc/arc-modes.def,
33591         config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
33592         config/arc/arc.md, config/arc/arc.opt,
33593         config/arm/arm_neon_builtins.def, config/arm/crypto.def,
33594         config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
33595         config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
33596         config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
33597         config/linux-protos.h, config/linux.c, config/winnt-c.c,
33598         diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
33599         vtable-verify.c, vtable-verify.h: Use the standard form for the
33600         copyright notice.
33601
33602 2014-01-02  Tobias Burnus  <burnus@net-b.de>
33603
33604         * gcc.c (process_command): Update copyright notice dates.
33605         * gcov-dump.c: Ditto.
33606         * gcov.c: Ditto.
33607         * doc/cpp.texi: Bump @copying's copyright year.
33608         * doc/cppinternals.texi: Ditto.
33609         * doc/gcc.texi: Ditto.
33610         * doc/gccint.texi: Ditto.
33611         * doc/gcov.texi: Ditto.
33612         * doc/install.texi: Ditto.
33613         * doc/invoke.texi: Ditto.
33614
33615 2014-01-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
33616
33617         * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
33618
33619 2014-01-01  Jakub Jelinek  <jakub@redhat.com>
33620
33621         * config/i386/sse.md (*mov<mode>_internal): Guard
33622         EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
33623
33624         PR rtl-optimization/59647
33625         * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
33626         new_rtx into UNSIGNED_FLOAT rtxes.
33627 \f
33628 Copyright (C) 2014 Free Software Foundation, Inc.
33629
33630 Copying and distribution of this file, with or without modification,
33631 are permitted in any medium without royalty provided the copyright
33632 notice and this notice are preserved.