* ipa-polymorphic-call.c (extr_type_from_vtbl_store): Do better
[official-gcc.git] / gcc / ChangeLog
blobeefb8fc31309e9e643175d4f05cccc50ce999d5a
1 2014-10-07  Jan Hubicka  <hubicka@ucw.cz>
3         * ipa-polymorphic-call.c (extr_type_from_vtbl_store): Do better
4         pattern matching of MEM_REF.
5         (check_stmt_for_type_change): Update.
7 2014-10-08  Steve Ellcey  <sellcey@mips.com>
9         * config/mips/linux64.h: Remove.
10         * config/mips/gnu-user64.h: Remove.
11         * gcc.config (mips*-*-*): Remove references to linux64.h and
12         gnu-user64.h
13         * config/mips/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): Replace
14         with modified version from gnu-user64.h.
15         (LINUX_DRIVER_SELF_SPECS): Update parts from gnu-user64.h.
16         (LOCAL_LABEL_PREFIX): Copy from gnu-user64.h.
17         * config/mips/linux.h (GNU_USER_LINK_EMULATION32): Copy from
18         linux64.h.
19         (GNU_USER_LINK_EMULATION64): Ditto.
20         (GNU_USER_LINK_EMULATIONN32): Ditto.
21         (GLIBC_DYNAMIC_LINKER32): Ditto.
22         (GLIBC_DYNAMIC_LINKER64): Ditto.
23         (GLIBC_DYNAMIC_LINKERN32): Ditto.
24         (UCLIBC_DYNAMIC_LINKER32): Ditto.
25         (UCLIBC_DYNAMIC_LINKER64): Ditto.
26         (UCLIBC_DYNAMIC_LINKERN32): Ditto.
27         (BIONIC_DYNAMIC_LINKERN32): Ditto.
28         (GNU_USER_DYNAMIC_LINKERN32): Ditto.
29         (GLIBC_DYNAMIC_LINKER): Delete.
30         (UCLIBC_DYNAMIC_LINKER): Delete.
32 2014-10-08  Joern Rennecke  <joern.rennecke@embecosm.com>
33             Richard Biener  <rguenther@suse.de>
35         * cfgexpand.c (expand_debug_expr) <TARGET_MEM_REF>:
36         Get address space from operand 0 (BASE).
38 2014-10-07  Iain Sandoe  <iain@codesourcery.com>
40         PR target/61387
41         * config/i386/i386.c (x86_output_mi_thunk): Fix darwin fallout.
43 2014-10-07  Aldy Hernandez  <aldyh@redhat.com>
45         * dwarf2out.c: Remove current_function_has_inlines.
46         (gen_subprogram_die): Same.
47         (gen_inlined_subroutine_die): Same.
49 2014-10-07  Ilya Tocar  <ilya.tocar@intel.com>
51         * config/i386/adxintrin.h (_subborrow_u64): Use long long for param
52         type.
53         (_addcarry_u64): Ditto.
54         (_addcarryx_u64): Ditto.
56 2014-10-07  Eric Botcazou  <ebotcazou@adacore.com>
58         * cgraph.h (cgraph_node::get_fun): Declare.
59         * cgraph.c (cgraph_node::get_fun): New method.
60         * ipa-inline.c (can_inline_edge_p): Use it.
62 2014-10-07  Eric Botcazou  <ebotcazou@adacore.com>
64         * lto-opts.c (lto_write_options): Handle -fmath-errno, -fsigned-zeros
65         and -ftrapping-math.
66         * lto-wrapper.c (merge_and_complain): Likewise.
67         (run_gcc): Likewise.
69 2014-10-06  Rong Xu  <xur@google.com>
71         * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): New param.
72         * tree-profile.c: (params.h): New include.
73         (init_ic_make_global_vars): Make __gcov_indirect_call_topn_callee
74         and __gcov_indirect_call_topn_counters for
75         indirect_call_topn_profile.
76         (gimple_init_edge_profiler): New decls for
77         __gcov_indirect_call_topn_profiler.
78         (gimple_gen_ic_profiler): Generate the correct profiler call.
79         (gimple_gen_ic_func_profiler): Fix format.
80         * value-prof.c (params.h): New include.
81         (dump_histogram_value): Hanlde indirect_call_topn counters.
82         (stream_in_histogram_value): Ditto.
83         (gimple_indirect_call_to_profile): Use indirect_call_topn
84         profile when PARAM_INDIR_CALL_TOPN_PROFILE is set.
85         (gimple_find_values_to_profile): Hanlde indirect_call_topn
86         counters.
87         * value-prof.h (enum hist_type): Histrogram type for
88         indirect_call_topn counters.
89         * profile.c (instrument_values): Instrument
90         indirect_call_topn counters.
92 2014-10-06  Rong Xu  <xur@google.com>
94         * Makefile.in: Fix dependence.
95         * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV): Add
96         indirect call topn profiler.
97         * gcov-io.h: Ditto.
99 2014-10-06  Eric Botcazou  <ebotcazou@adacore.com>
101         * calls.c (expand_call): Do not use the target as the return slot if
102         it is not sufficiently aligned.
104 2014-10-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
106         * config/rs6000/rs6000.c (analyze_swaps commentary): Add
107         discussion of permutes and why we don't handle them.
109 2014-10-06  Eric Botcazou  <ebotcazou@adacore.com>
111         * config/sparc/predicates.md (int_register_operand): Delete.
113 2014-10-06  Eric Botcazou  <ebotcazou@adacore.com>
115         * dwarf2cfi.c (create_pseudo_cfg): Fix trace numbering.
117 2014-10-06  Jakub Jelinek  <jakub@redhat.com>
119         * ubsan.h (ubsan_get_source_location): New prototype.
120         * ubsan.c (ubsan_source_location_type): New variable.
121         Function renamed to ...
122         (ubsan_get_source_location_type): ... this.  Cache
123         return value in ubsan_source_location_type variable.
124         (ubsan_source_location, ubsan_create_data): Use
125         ubsan_get_source_location_type instead of
126         ubsan_source_location_type.
127         * asan.c (asan_protect_global): Don't protect globals
128         with ubsan_get_source_location_type () type.
129         (asan_add_global): Provide global decl location info
130         if possible.
132 2014-10-04  Jan Hubicka  <hubicka@ucw.cz>
134         * ipa-prop.c (try_make_edge_direct_virtual_call): Remove overactive
135         sanity check.
137 2014-10-04  Jan Hubicka  <hubicka@ucw.cz>
139         * ipa-polymorphic-call.c (possible_placement_new): Fix condition
140         on size.
141         (ipa_polymorphic_call_context::restrict_to_inner_type): Do not walk
142         into vptr pointer.
143         (ipa_polymorphic_call_context::dump): Fix formating.
144         (walk_ssa_copies): Add logic avoiding loops; update uses.
145         * ipa-prop.c (ipa_analyze_call_uses): Compute vptr_changed.
147 2014-10-02  Mark Wielaard  <mjw@redhat.com>
149         PR debug/63239
150         * dwarf2out.c (gen_subprogram_die): When a member function is
151         explicitly deleted then add a DW_AT_GNU_deleted attribute.
152         * langhooks.h (struct lang_hooks_for_decls): Add
153         function_decl_deleted_p langhook.
154         * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Define.
155         (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_DELETED_P.
157 2014-10-04  Jan Hubicka  <hubicka@ucw.cz>
159         * ipa-polymorphic-call.c (walk_ssa_copies): Recognize
160         NULL pointer checks.
161         (ipa_polymorphic_call_context::get_dynamic_type): Return true
162         if type doesn't change.
163         * cgraph.h (cgraph_indirect_call_info): New flag.
164         * cgraph.c (cgraph_node::create_indirect_edge): Initialize it.
165         (cgraph_node::dump): Dump it.
166         * ipa-prop.c (ipa_analyze_call_uses):  Ignore return valud
167         of context.get_dynamic_type.
168         (ipa_make_edge_direct_to_target): Do not speculate
169         edge that is already speuclative.
170         (try_make_edge_direct_virtual_call): Use VPTR_CHANGED; Do not
171         speculate to __builtin_unreachable
172         (ipa_write_indirect_edge_info, ipa_read_indirect_edge_info): Stream
173         vptr_changed.
174         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use vptr_changed.
176 2014-10-04  Jan Hubicka  <hubicka@ucw.cz>
178         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Call
179         get_dynamic_type; drop TODO.
180         * ipa-polymorphic-call.c
181         (ipa_polymorphic_call_context::get_dynamic_type): Be ready
182         for otr_type to be unknown.
184 2014-10-04  Trevor Saunders  <tsaunders@mozilla.com>
186         * common/config/score/score-common.c: Remove.
187         * config.gcc: Remove support for score-*.
188         * config/score/constraints.md: Remove.
189         * config/score/elf.h: Remove.
190         * config/score/predicates.md: Remove.
191         * config/score/score-conv.h: Remove.
192         * config/score/score-generic.md: Remove.
193         * config/score/score-modes.def: Remove.
194         * config/score/score-protos.h: Remove.
195         * config/score/score.c: Remove.
196         * config/score/score.h: Remove.
197         * config/score/score.md: Remove.
198         * config/score/score.opt: Remove.
199         * doc/md.texi: Don't document score-*.
201 2014-10-04  Trevor Saunders  <tsaunders@mozilla.com>
203         PR pch/63429
204         * genconditions.c: Directly include ggc.h before rtl.h.
206 2014-10-03  Jan Hubicka  <hubicka@ucw.cz>
208         * ipa-polymorphic-call.c
209         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Fix
210         code determining speculative type.
211         (ipa_polymorphic_call_context::combine_with): Fix speculation merge.
213 2014-10-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
215         * altivec.md (altivec_lvsl): New define_expand.
216         (altivec_lvsl_direct): Rename define_insn from altivec_lvsl.
217         (altivec_lvsr): New define_expand.
218         (altivec_lvsr_direct): Rename define_insn from altivec_lvsr.
219         * rs6000.c (rs6000_expand_builtin): Change to use
220         altivec_lvs[lr]_direct; remove commented-out code.
222 2014-10-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
224         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
225         Issue a warning message when vec_lvsl or vec_lvsr is used with a
226         little endian target.
228 2014-10-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
230         * tree-pretty-print.c (dump_location): Make it extern. Dump also
231         the column.
232         * tree-pretty-print.h (dump_location): Declare.
233         * gimple-pretty-print.c (dump_gimple_phi): Use dump_location.
234         (pp_gimple_stmt_1): Likewise.
235         (dump_implicit_edges): Likewise.
236         * gimplify.c (gimplify_call_expr): Use LOCATION_FILE and
237         LOCATION_LINE.
240 2014-10-03  David Malcolm  <dmalcolm@redhat.com>
242         * gcc.c (driver::global_initializations): Remove "const" so
243         that GCC_DRIVER_HOST_INITIALIZATION can modify decoded_options
244         and decoded_options_count.
246 2014-10-03  Maciej W. Rozycki  <macro@codesourcery.com>
248         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Remove
249         macro.
250         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Handle
251         TARGET_E500_DOUBLE case here.
253 2014-10-03  Marc Glisse  <marc.glisse@inria.fr>
255         PR c++/54427
256         PR c++/57198
257         PR c++/58845
258         * doc/extend.texi (Vector Extensions): Document &&, ||, ! in C++.
260 2014-10-03  Jan Hubicka  <hubicka@ucw.cz>
262         * cgraph.h (struct indirect_call_info): Add IN_POLYMORPHIC_CDTOR
263         * lto-cgraph.c (lto_output_edge, input_edge): Stream
264         in_polymorphic_cdtor
265         * cgraph.c (symbol_table::create_edge): Compute in_polymorphic_cdtor.
266         (cgraph_edge::make_speculative): Copy in_polymorphic_cdtor.
267         * cgraphclones.c (cgraph_edge::clone): Likewise.
268         * ipa-prop.c (update_jump_functions_after_inlining,
269         try_make_edge_direct_virtual_call): Pass in_polymorphic_cdtor
270         to possible_dynamic_type_change.
271         (decl_maybe_in_construction_p): Allow empty OUTER_TYPE and BASE.
272         (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
273         IN_POLY_CDOTR argument.
275         * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Be ready
276         for BASE and OUTER_TYPE being NULL.
277         (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
278         in_poly_cdtor parameter.
280 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
282         * config/i386/i386.c (ix86_expand_vec_perm_vpermi2): Fix up formatting.
283         (ix86_expand_vec_perm): Only call ix86_expand_vec_perm_vpermi2 if
284         TARGET_AVX512F.
285         (expand_vec_perm_1): Likewise.
287 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
288             Uros Bizjak  <ubizjak@gmail.com>
290         PR tree-optimization/61403
291         * config/i386/i386.c (expand_vec_perm_palignr): Fix a spelling
292         error in comment.  Also optimize 256-bit vectors for AVX2
293         or AVX (floating vectors only), provided the first permutation
294         can be performed in one insn.
296 2014-10-03  David Malcolm  <dmalcolm@redhat.com>
298         * gcc.c (class driver): New class.
299         (main): Reimplement in terms of driver::main, moving most of the
300         locals to be locals within individual methods of class driver.
301         The remaining locals "explicit_link_files", "decoded_options" and
302         "decoded_options_count" are used by multiple driver:: methods, and
303         so become member data.  Doing so isolates the argc/argv reads and
304         writes.  Replace "goto out" with a special exit code from
305         new method driver::prepare_infiles.  Split out the old
306         implementation of main into the following...
307         (driver::main): New function, corresponding to the old "main"
308         implementation.
309         (driver::set_progname): New function, taken from the old
310         "main" implementation.
311         (driver::expand_at_files): Likewise.
312         (driver::decode_argv): Likewise.
313         (driver::global_initializations): Likewise.
314         (driver::build_multilib_strings): Likewise.
315         (driver::set_up_specs): Likewise.
316         (driver::putenv_COLLECT_GCC): Likewise.
317         (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Likewise.
318         (driver::handle_unrecognized_options): Likewise.
319         (driver::maybe_print_and_exit): Likewise.
320         (driver::prepare_infiles): Likewise.
321         (driver::do_spec_on_infiles): Likewise.
322         (driver::maybe_run_linker): Likewise.
323         (driver::final_actions): Likewise.
324         (driver::get_exit_code): Likewise.
326 2014-10-03  Yury Gribov  <y.gribov@samsung.com>
328         * asan.c (asan_finish_file): Disable __asan_init calls for KASan;
329         don't emit empty ctors.
331 2014-10-03  Eric Botcazou  <ebotcazou@adacore.com>
333         * convert.c (convert_to_integer): Do not introduce useless conversions
334         between integral types.
336 2014-10-03  David Sherwood  <david.sherwood@arm.com>
338         * ira-int.h (ira_allocno): Mark hard_regno as signed.
340 2014-10-03  Ilya Enkovich  <ilya.enkovich@intel.com>
342         * lra-constraints.c (inherit_in_ebb): Handle calls with
343         multiple return values.
344         * caller-save.c (save_call_clobbered_regs): Likewise.
346 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
348         * tree-vect-data-refs.c (vect_permute_load_chain,
349         vect_shift_permute_load_chain): Fix a typo in temporary var names,
350         suffle3 to shuffle3.
352         PR libgomp/61200
353         * omp-low.c (taskreg_contexts): New variable.
354         (scan_omp_parallel): Push newly created context into taskreg_contexts
355         vector and move record layout code to finish_taskreg_scan.
356         (scan_omp_task): Likewise.
357         (finish_taskreg_scan): New function.
358         (execute_lower_omp): Call finish_taskreg_scan on all taskreg_contexts
359         vector elements and release it.
361         PR target/62128
362         * config/i386/i386.c (expand_vec_perm_palignr): If op1, op0 order
363         of palignr arguments can't be used due to min 0 or max - min
364         too high, try also op0, op1 order of palignr arguments.
366 2014-10-02  Jan Hubicka  <hubicka@ucw.cz>
368         * cgraph.h (ipa_polymorphic_call_context):
369         Turn bools into bitfields; add DYNAMIC; make MAKE_SPECULATIVE
370         private, add POSSIBLE_DYNAMIC_TYPE_CHANGE.
371         * ipa-polymorphic-call.c
372         (ipa_polymorphic_call_context::restrict_to_inner_class): Allow accesses
373         past end of dynamic types.
374         (ipa_polymorphic_call_context::stream_out,
375         speculative_outer_type): Stream dynamic flag.
376         (ipa_polymorphic_call_context::set_by_decl): Clear DYNAMIC.
377         (ipa_polymorphic_call_context::ipa_polymorphic_call_context):
378         Clear DYNAMIC.
379         (ipa_polymorphic_call_context::get_dynamic_type): Use DYNAMIC;
380         set it.
381         (ipa_polymorphic_call_context::combine_with): Propagate dynamic.
382         * ipa-prop.c (update_jump_functions_after_inlining,
383         try_make_edge_direct_virtual_call): Use possible_dynamic_type_change.
385 2014-10-02  Teresa Johnson  <tejohnson@google.com>
387         * tree-ssa-threadupdate.c (freqs_to_counts_path): Scale frequencies
388         up when synthesizing counts to avoid rounding errors.
390 2014-10-02  Teresa Johnson  <tejohnson@google.com>
392         PR middle-end/63422
393         * tree-ssa-threadupdate.c (freqs_to_counts_path): Remove
394         asserts to handle incoming insanities.
396 2014-10-02  Martin Jambor  <mjambor@suse.cz>
398         PR tree-optimization/63375
399         * tree-sra.c (build_access_from_expr_1): Disqualify volatile
400         references.
402 2014-10-02  Olivier Hainque  <hainque@adacore.com>
404         * Makefile.in (CROSS): Define, to @CROSS.
406 2014-10-02  Jakub Jelinek  <jakub@redhat.com>
408         PR target/62128
409         * config/i386/i386.c (expand_vec_perm_1): Try expand_vec_perm_palignr
410         if it expands to a single insn only.
411         (expand_vec_perm_palignr): Add SINGLE_INSN_ONLY_P argument.  If true,
412         fail unless in_order is true.  Add forward declaration.
413         (expand_vec_perm_vperm2f128): Fix up comment about which permutation
414         is useful for one_operand_p.
415         (ix86_expand_vec_perm_const_1): Adjust expand_vec_perm_palignr caller.
417 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
419         * cgraphclones.c (build_function_type_skip_args): Do not make new
420         type variant of old.
422 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
424         * ipa-prop.h (ipa_get_controlled_uses): Add hack to avoid ICE
425         when speculation is added.
426         (ipa_edge_args): Add polymorphic_call_contexts.
427         (ipa_get_ith_polymorhic_call_context): New accesor.
428         (ipa_make_edge_direct_to_target): Add SPECULATIVE parameter.
429         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Print contexts.
430         (ipa_compute_jump_functions_for_edge): Compute contexts.
431         (update_jump_functions_after_inlining): Update contexts.
432         (ipa_make_edge_direct_to_target): Add SPECULATIVE argument;
433         update dumping; add speculative edge creation.
434         (try_make_edge_direct_virtual_call): Add CTX_PTR parameter; handle
435         context updating.
436         (update_indirect_edges_after_inlining): Pass down context.
437         (ipa_edge_duplication_hook): Duplicate contexts.
438         (ipa_write_node_info): Stream out contexts.
439         (ipa_read_node_info): Stream in contexts.
440         * ipa-devirt.c (type_all_derivations_known_p): Avoid ICE on non-ODR
441         types.
442         (try_speculative_devirtualization): New function.
443         * ipa-utils.h (try_speculative_devirtualization): Declare.
445 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
447         * ipa.c (walk_polymorphic_call_targets): Avoid ICE when
448         dumping during WPA.
450 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
452         * ipa-prop.c (ipa_modify_formal_parameters): Do not merge
453         type variants.
455 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
457         * ipa-polymorphic-call.c
458         (ipa_polymorphic_call_context::restrict_to_inner_class):
459         Rename EXPECTED_TYPE to OTR_TYPE; Validate speculation late;
460         use speculation_consistent_p to do so; Add CONSDER_BASES
461         and CONSIDER_PLACEMENT_NEW parameters.
462         (contains_type_p): Add CONSDER_PLACEMENT_NEW and CONSIDER_BASES;
463         short circuit obvious cases.
464         (ipa_polymorphic_call_context::dump): Improve formatting.
465         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Use
466         combine_speculation_with to record speculations; Do not ICE when
467         object is located in pointer type decl; do not ICE for methods
468         of UNION_TYPE; do not record nonpolymorphic types.
469         (ipa_polymorphic_call_context::speculation_consistent_p): New method.
470         (ipa_polymorphic_call_context::combine_speculation_with): New method.
471         (ipa_polymorphic_call_context::combine_with): New method.
472         (ipa_polymorphic_call_context::make_speculative): Move here; use
473         combine speculation.
474         * cgraph.h (ipa_polymorphic_call_context): Update
475         restrict_to_inner_class prototype; add offset_by, make_speculative,
476         combine_with, useless_p, combine_speculation_with and
477         speculation_consistent_p methods.
478         (ipa_polymorphic_call_context::offset_by): New method.
479         (ipa_polymorphic_call_context::useless_p): New method.
481 2014-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
483         PR rtl-optimization/62151
484         * combine.c (can_combine_p): Allow the destination register of INSN
485         to be clobbered in I3.
486         (subst): Do not substitute into clobbers of registers.
488 2014-10-01  Jakub Jelinek  <jakub@redhat.com>
490         PR debug/63342
491         * dwarf2out.c (loc_list_from_tree): Handle MEM_REF with non-zero
492         offset, TARGET_MEM_REF and SSA_NAME.
494         * config/i386/i386.c (expand_vec_perm_palignr): Handle
495         256-bit vectors for TARGET_AVX2.
497         * config/i386/i386.c (expand_vec_perm_vperm2f128): Canonicalize
498         dfirst permutation.
500         PR target/63428
501         * config/i386/i386.c (expand_vec_perm_pshufb): Fix up rperm[0]
502         argument to avx2_permv2ti.
504 2014-10-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
506         * config/arm/arm.md (*store_minmaxsi): Disable for arm_restrict_it.
508 2014-09-30  Uros Bizjak  <ubizjak@gmail.com>
510         * config/i386/i386.md (fmodxf3): Enable for flag_finite_math_only only.
511         (fmod<mode>3): Ditto.
512         (fpremxf4_i387): Ditto.
513         (reminderxf3): Ditto.
514         (reminder<mode>3): Ditto.
515         (fprem1xf4_i387): Ditto.
517 2014-09-30  Teresa Johnson  <tejohnson@google.com>
519         * tree-ssa-threadupdate.c (struct ssa_local_info_t): New
520         duplicate_blocks bitmap.
521         (remove_ctrl_stmt_and_useless_edges): Ditto.
522         (create_block_for_threading): Ditto.
523         (compute_path_counts): New function.
524         (update_profile): Ditto.
525         (recompute_probabilities): Ditto.
526         (update_joiner_offpath_counts): Ditto.
527         (freqs_to_counts_path): Ditto.
528         (clear_counts_path): Ditto.
529         (ssa_fix_duplicate_block_edges): Update profile info.
530         (ssa_create_duplicates): Pass new parameter.
531         (ssa_redirect_edges): Remove old profile update.
532         (thread_block_1): New duplicate_blocks bitmap,
533         remove old profile update.
534         (thread_single_edge): Pass new parameter.
536 2014-09-30  Ilya Tocar  <ilya.tocar@intel.com>
538         PR middle-end/62120
539         * varasm.c (decode_reg_name_and_count): Check availability for
540         registers from ADDITIONAL_REGISTER_NAMES.
542 2014-09-30  David Malcolm  <dmalcolm@redhat.com>
544         PR plugins/63410
545         * Makefile.in (PRETTY_PRINT_H): Add wide-int-print.h.
546         (PLUGIN_HEADERS): Add pass-instances.def.
548 2014-09-30  James Greenhalgh  <james.greenhalgh@arm.com>
550         * config/aarch64/aarch64-simd-builtins.def (sqdmull_laneq): Expand
551         iterator.
552         * config/aarch64/aarch64-simd.md
553         (aarch64_sqdmull_laneq<mode>): Expand iterator.
554         * config/aarch64/arm_neon.h (vqdmullh_laneq_s16): New.
555         (vqdmulls_lane_s32): Fix return type.
556         (vqdmulls_laneq_s32): New.
558 2014-09-30  Jakub Jelinek  <jakub@redhat.com>
560         PR inline-asm/63282
561         * ifcvt.c (dead_or_predicable): Don't call redirect_jump_1
562         or invert_jump_1 if jump isn't any_condjump_p.
564 2014-09-30  Terry Guo  <terry.guo@arm.com>
566         * config/arm/arm-cores.def (cortex-m7): New core name.
567         * config/arm/arm-fpus.def (fpv5-sp-d16): New fpu name.
568         (fpv5-d16): Ditto.
569         * config/arm/arm-tables.opt: Regenerated.
570         * config/arm/arm-tune.md: Regenerated.
571         * config/arm/arm.h (TARGET_VFP5): New macro.
572         * config/arm/bpabi.h (BE8_LINK_SPEC): Include cortex-m7.
573         * config/arm/vfp.md (<vrint_pattern><SDF:mode>2,
574         smax<mode>3, smin<mode>3): Enabled for FPU FPv5.
575         * doc/invoke.texi: Document new cpu and fpu names.
577 2014-09-30  Jiong Wang  <jiong.wang@arm.com>
579         * shrink-wrap.c (move_insn_for_shrink_wrap): Check "can_throw_internal"
580         before sinking insn.
582 2014-09-30  David Sherwood  <david.sherwood@arm.com>
584         * ira-int.h (ira_allocno): Add "wmode" field.
585         * ira-build.c (create_insn_allocnos): Add new "parent" function
586         parameter.
587         * ira-conflicts.c (ira_build_conflicts): Add conflicts for registers
588         that cannot be accessed in wmode.
590 2014-09-30  Markus Trippelsdorf  <markus@trippelsdorf.de>
592         * data-streamer.c (bp_unpack_var_len_int): Avoid signed
593         integer overflow.
595 2014-09-29  Andi Kleen  <ak@linux.intel.com>
597         * opts.c (print_filtered_help): Print --param min/max/default
598         with -Q.
600 2014-09-29  Kaz Kojima  <kkojima@gcc.gnu.org>
602         * config/sh/sh.md: Use define_c_enum for "unspec" and "unspecv".
604 2014-09-29  Eric Botcazou  <ebotcazou@adacore.com>
606         * tree-vrp.c (get_single_symbol): New function.
607         (build_symbolic_expr): Likewise.
608         (symbolic_range_based_on_p): New predicate.
609         (extract_range_from_binary_expr_1): Deal with single-symbolic ranges
610         for PLUS and MINUS.  Do not drop symbolic ranges at the end.
611         (extract_range_from_binary_expr): Try harder for PLUS and MINUS if
612         operand is symbolic and based on the other operand.
614 2014-09-29  Chen Gang  <gang.chen.5i5j@gmail.com>
616         * config/microblaze/microblaze.md (call_internal1): Use VOID
617         instead of SI to fix "((void (*)(void)) 0)()" issue
619 2014-09-29  Nick Clifton  <nickc@redhat.com>
621         * config/msp430/msp430.c (msp430_expand_prologue): Return a
622         CLOBBER rtx for naked functions.
623         (msp430_expand_epilogue): Likewise.
624         (msp430_use_f5_series_hwmult): Cache result.
625         (use_32bit_hwmult): Cache result.
626         (msp430_no_hwmult): New function.
627         (msp430_output_labelref): Use it.
629 2014-09-29  Jakub Jelinek  <jakub@redhat.com>
631         PR middle-end/63247
632         * omp-low.c (lower_omp_target): For OMP_CLAUSE_MAP_POINTER
633         of ARRAY_TYPE, if not OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION
634         use the alignment of avar rather than ovar.
636 2014-09-28  John David Anglin  <danglin@gcc.gnu.org>
638         * config/pa/pa.c (pa_output_function_epilogue): Only update
639         last_address when a nonnote insn is found.
641 2014-09-26  Jan Hubicka  <hubicka@ucw.cz>
643         PR ipa/60665
644         * ipa-devirt.c (possible_polymorphic_call_targets): Silence clang warning.
646 2014-09-26  Jan Hubicka  <hubicka@ucw.cz>
648         PR ipa/62121
649         * ipa-polymorphic-call.c (ipa_polymorphic_call_context::restrict_to_inner_class):
650         fix pasto in checking array size.
652 2014-09-26  Jan Hubicka  <hubicka@ucw.cz>
654         PR middle-end/35545
655         * passes.def (pass_tracer): Move before last dominator pass.
657 2014-09-26  Thomas Schwinge  <thomas@codesourcery.com>
659         * gcc.c (try_generate_repro): Remove argument "prog".  Change all
660         users.
661         (run_attempt): Handle errors of "pex_run" invocation.
663 2014-09-26  Christophe Lyon  <christophe.lyon@linaro.org>
665         * config/aarch64/aarch64-linux.h (ASAN_CC1_SPEC): Define.
666         (CC1_SPEC): Define.
667         * config/aarch64/aarch64.c (aarch64_asan_shadow_offset): New function.
668         (TARGET_ASAN_SHADOW_OFFSET): Define.
670 2014-09-26  Martin Liska  <mliska@suse.cz>
672         * cgraph.c (cgraph_node::release_body): New argument keep_arguments
673         introduced.
674         * cgraph.h: Likewise.
675         * cgraphunit.c (cgraph_node::create_wrapper): Usage of new argument introduced.
676         * ipa-utils.h (polymorphic_type_binfo_p): Safe check for binfos created by Java.
677         * tree-ssa-alias.c (ao_ref_base_alias_set): Static function transformed to global.
678         * tree-ssa-alias.h: Likewise.
680 2014-09-26  Jakub Jelinek  <jakub@redhat.com>
681             Max Ostapenko  <m.ostapenko@partner.samsung.com>
683         * common.opt: New option.
684         * doc/invoke.texi: Describe new option.
685         * gcc.c (execute): Don't free first string early, but at the end
686         of the function.  Call retry_ice if compiler exited with
687         ICE_EXIT_CODE.
688         (main): Factor out common code.
689         (print_configuration): New function.
690         (files_equal_p): Likewise.
691         (check_repro): Likewise.
692         (run_attempt): Likewise.
693         (do_report_bug): Likewise.
694         (append_text): Likewise.
695         (try_generate_repro): Likewise
697 2014-09-25  Andi Kleen  <ak@linux.intel.com>
699         * config/i386/i386.c (x86_print_call_or_nop): New function.
700         (x86_function_profiler): Support -mnop-mcount and
701         -mrecord-mcount.
702         * config/i386/i386.opt (-mnop-mcount, -mrecord-mcount): Add
703         * doc/invoke.texi: Document -mnop-mcount, -mrecord-mcount.
705 2014-09-25  Jan Hubicka  <hubicka@ucw.cz>
707         * ipa-prop.c (ipa_intraprocedural_devirtualization): Remove.
708         * ipa-prop.h (ipa_intraprocedural_devirtualization): Remove.
709         * tree-ssa-prop.c (eliminate_dom_walker::before_dom_children):
710         Remove.
712 2014-09-25  Jan Hubicka  <hubicka@ucw.cz>
714         * ipa-utils.h (subbinfo_with_vtable_at_offset, type_all_derivations_known_p,
715         type_known_to_have_no_deriavations_p, types_must_be_same_for_odr,
716         types_odr_comparable): Declare.
717         (polymorphic_type_binfo_p): Move here from ipa-devirt.c
718         * ipa-polymorphic-call.c: New file.
719         (contains_polymorphic_type_p, possible_placement_new,
720         ipa_polymorphic_call_context::restrict_to_inner_class,
721         contains_type_p, decl_maybe_in_construction_p,
722         ipa_polymorphic_call_context::stream_out,
723         ipa_polymorphic_call_context::debug,
724         ipa_polymorphic_call_context::stream_in,
725         ipa_polymorphic_call_context::set_by_decl,
726         ipa_polymorphic_call_context::set_by_invariant,
727         walk_ssa_copies,
728         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
729         type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
730         extr_type_from_vtbl_ptr_store, record_known_type
731         check_stmt_for_type_change,
732         ipa_polymorphic_call_context::get_dynamic_type): Move here from
733         ipa-devirt.c
734         * ipa-devirt.c: No longer include data-streamer.h, lto-streamer.h
735         and streamer-hooks.h
736         (contains_polymorphic_type_p, possible_placement_new,
737         ipa_polymorphic_call_context::restrict_to_inner_class,
738         contains_type_p, decl_maybe_in_construction_p,
739         ipa_polymorphic_call_context::stream_out,
740         ipa_polymorphic_call_context::debug,
741         ipa_polymorphic_call_context::stream_in,
742         ipa_polymorphic_call_context::set_by_decl,
743         ipa_polymorphic_call_context::set_by_invariant,
744         walk_ssa_copies,
745         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
746         type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
747         extr_type_from_vtbl_ptr_store, record_known_type
748         check_stmt_for_type_change,
749         ipa_polymorphic_call_context::get_dynamic_type): Move to
750         ipa-polymorphic-call.c
751         (type_all_derivations_known_p, types_odr_comparable,
752         types_must_be_same_for_odr): Export.
753         (type_known_to_have_no_deriavations_p): New function.
754         * Makefile.in: Add ipa-polymorphic-call.c
756 2014-09-25  Jan Hubicka  <hubicka@ucw.cz>
758         * ipa-devirt.c (polymorphic_call_target_d): Add SPECULATIVE; reorder
759         for better storage.
760         (polymorphic_call_target_hasher::hash): Hash SPECULATIVE.
761         (possible_polymorphic_call_targets): Instead of computing both
762         speculative and non-speculative answers, do just one at a time.
763         Replace NONSPECULATIVE_TARGETSP parameter with SPECULATIVE flag.
764         (dump_targets): Break out from ...
765         (dump_possible_polymorphic_call_targets): ... here; dump both speculative
766         and non-speculative lists.
767         (ipa_devirt): Update for new possible_polymorphic_call_targets API.
768         * ipa-utils.h (possible_polymorphic_call_targets): Update.
770 2014-09-25  Uros Bizjak  <ubizjak@gmail.com>
772         PR rtl-optimization/63348
773         * emit-rtl.c (try_split): Do not emit extra barrier.
775 2014-09-25  James Greenhalgh  <james.greenhalgh@arm.com>
777         * config/aarch64/aarch64-protos.h (aarch64_simd_const_bounds): Delete.
778         * config/aarch64/aarch64-simd.md (aarch64_<sur>q<r>shl<mode>): Use
779         new predicates.
780         (aarch64_<sur>shll2_n<mode>): Likewise.
781         (aarch64_<sur>shr_n<mode>): Likewise.
782         (aarch64_<sur>sra_n<mode>: Likewise.
783         (aarch64_<sur>s<lr>i_n<mode>): Likewise.
784         (aarch64_<sur>qshl<u>_n<mode>): Likewise.
785         * config/aarch64/aarch64.c (aarch64_simd_const_bounds): Delete.
786         * config/aarch64/iterators.md (ve_mode): New.
787         (offsetlr): Remap to infix text for use in new predicates.
788         * config/aarch64/predicates.md (aarch64_simd_shift_imm_qi): New.
789         (aarch64_simd_shift_imm_hi): Likewise.
790         (aarch64_simd_shift_imm_si): Likewise.
791         (aarch64_simd_shift_imm_di): Likewise.
792         (aarch64_simd_shift_imm_offset_qi): Likewise.
793         (aarch64_simd_shift_imm_offset_hi): Likewise.
794         (aarch64_simd_shift_imm_offset_si): Likewise.
795         (aarch64_simd_shift_imm_offset_di): Likewise.
796         (aarch64_simd_shift_imm_bitsize_qi): Likewise.
797         (aarch64_simd_shift_imm_bitsize_hi): Likewise.
798         (aarch64_simd_shift_imm_bitsize_si): Likewise.
799         (aarch64_simd_shift_imm_bitsize_di): Likewise.
801 2014-09-25  Jiong Wang  <jiong.wang@arm.com>
803         * shrink-wrap.c (move_insn_for_shrink_wrap): Initialize the live-in of
804         new created BB as the intersection of live-in from "old_dest" and
805         live-out from "bb".
807 2014-09-25  Felix Yang  <felix.yang@huawei.com>
809         * lra.c (lra_set_insn_recog_data): Fix typo in comment.
810         * genautomata.c (merge_states): Ditto.
812 2014-09-25  Oleg Endo  <olegendo@gcc.gnu.org>
814         PR target/62218
815         * config/sh/sync.md (atomic_test_and_set_soft_imask): Fix typo
816         in instruction sequence.
818 2014-09-25  Nick Clifton  <nickc@redhat.com>
820         PR target/62218
821         * config/sh/sync.md (atomic_fetch_nand<mode>_soft_imask): Fix typo
822         in instruction sequence.
824 2014-09-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
826         PR target/63335
827         * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin):
828         Exclude VSX_BUILTIN_XVCMPGEDP_P from special handling.
830 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
831             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
832             Anna Tikhonova  <anna.tikhonova@intel.com>
833             Ilya Tocar  <ilya.tocar@intel.com>
834             Andrey Turetskiy  <andrey.turetskiy@intel.com>
835             Ilya Verbin  <ilya.verbin@intel.com>
836             Kirill Yukhin  <kirill.yukhin@intel.com>
837             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
839         * config/i386/sse.md
840         (define_expand "<avx2_avx512f>_perm<mode>"): Rename to ...
841         (define_expand "<avx2_avx512>_perm<mode>"): ... this.
842         (define_expand "avx512f_perm<mode>_mask"): Rename to ...
843         (define_expand "<avx512>_perm<mode>_mask"): ... this.
844         Use VI8F_256_512 mode iterator.
845         (define_insn "<avx2_avx512f>_perm<mode>_1<mask_name>"): Rename to ...
846         (define_insn "<avx2_avx512bw>_perm<mode>_1<mask_name>"): ... this.
848 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
849             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
850             Anna Tikhonova  <anna.tikhonova@intel.com>
851             Ilya Tocar  <ilya.tocar@intel.com>
852             Andrey Turetskiy  <andrey.turetskiy@intel.com>
853             Ilya Verbin  <ilya.verbin@intel.com>
854             Kirill Yukhin  <kirill.yukhin@intel.com>
855             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
857         * config/i386/sse.md
858         (define_insn "avx_movshdup256<mask_name>"): Add masking.
859         (define_insn "sse3_movshdup<mask_name>"): Ditto.
860         (define_insn "avx_movsldup256<mask_name>"): Ditto.
861         (define_insn "sse3_movsldup<mask_name>"): Ditto.
862         (define_insn "vec_dupv2df<mask_name>"): Ditto.
863         (define_insn "*vec_concatv2df"): Add EVEX version.
865 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
866             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
867             Anna Tikhonova  <anna.tikhonova@intel.com>
868             Ilya Tocar  <ilya.tocar@intel.com>
869             Andrey Turetskiy  <andrey.turetskiy@intel.com>
870             Ilya Verbin  <ilya.verbin@intel.com>
871             Kirill Yukhin  <kirill.yukhin@intel.com>
872             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
874         * config/i386/sse.md
875         (define_insn "vec_set<mode>_0"): Add EVEX version.
877 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
878             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
879             Anna Tikhonova  <anna.tikhonova@intel.com>
880             Ilya Tocar  <ilya.tocar@intel.com>
881             Andrey Turetskiy  <andrey.turetskiy@intel.com>
882             Ilya Verbin  <ilya.verbin@intel.com>
883             Kirill Yukhin  <kirill.yukhin@intel.com>
884             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
886         * config/i386/sse.md
887         (define_insn
888         "<fixsuffix>fix_trunc<mode><sselongvecmodelower>2<mask_name><round_saeonly_name>"):
889         New.
890         (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
891         (define_insn "ufix_trunc<mode><sseintvecmodelower>2<mask_name>"): Ditto.
892         (define_insn "sse2_cvtss2sd<round_saeonly_name>"): Change
893         "nonimmediate_operand" to "<round_saeonly_nimm_predicate>".
894         (define_insn "avx_cvtpd2ps256<mask_name>"): Add masking.
895         (define_expand "sse2_cvtpd2ps_mask): New.
896         (define_insn "*sse2_cvtpd2ps<mask_name>"): Add masking.
897         (define_insn "sse2_cvtps2pd<mask_name>"): Add masking.
899 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
900             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
901             Anna Tikhonova  <anna.tikhonova@intel.com>
902             Ilya Tocar  <ilya.tocar@intel.com>
903             Andrey Turetskiy  <andrey.turetskiy@intel.com>
904             Ilya Verbin  <ilya.verbin@intel.com>
905             Kirill Yukhin  <kirill.yukhin@intel.com>
906             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
908         * config/i386/i386.c
909         (avx512f_ufix_notruncv8dfv8si_mask_round): Rename to ...
910         (ufix_notruncv8dfv8si2_mask_round): ... this.
911         * config/i386/sse.md
912         (define_insn "avx512f_cvtdq2pd512_2): Update TARGET check.
913         (define_insn "avx_cvtdq2pd256_2"): Add EVEX version.
914         (define_insn "sse2_cvtdq2pd<mask_name>"): Add masking.
915         (define_insn "avx_cvtpd2dq256<mask_name>"): Ditto.
916         (define_expand "sse2_cvtpd2dq"): Delete.
917         (define_insn "sse2_cvtpd2dq<mask_name>"): Add masking and
918         make 2nd operand const0 vector.
919         (define_insn "avx512f_ufix_notruncv8dfv8si<mask_name><round_name>"):
920         Delete.
921         (define_mode_attr pd2udqsuff): New.
922         (define_insn
923         "ufix_notrunc<mode><si2dfmodelower>2<mask_name><round_name>"): Ditto.
924         (define_insn "ufix_notruncv2dfv2si2<mask_name>"): Ditto.
925         (define_insn "*avx_cvttpd2dq256_2"): Delete.
926         (define_expand "sse2_cvttpd2dq"): Ditto.
927         (define_insn "sse2_cvttpd2dq<mask_name>"): Add masking and
928         make 2nd operand const0 vector.
930 2014-09-25  Jakub Jelinek  <jakub@redhat.com>
932         PR tree-optimization/63341
933         * tree-vectorizer.h (vect_create_data_ref_ptr,
934         vect_create_addr_base_for_vector_ref): Add another tree argument
935         defaulting to NULL_TREE.
936         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add byte_offset
937         argument, pass it down to vect_create_addr_base_for_vector_ref.
938         (vect_create_addr_base_for_vector_ref): Add byte_offset argument,
939         add that to base_offset too if non-NULL.
940         * tree-vect-stmts.c (vectorizable_load): Add byte_offset variable,
941         for dr_explicit_realign_optimized set it to vector byte size
942         - 1 instead of setting offset, pass byte_offset down to
943         vect_create_data_ref_ptr.
945 2014-09-24  Jan Hubicka  <hubicka@ucw.cz>
947         * ipa-devirt.c (possible_polymorphic_call_targets): Remove
948         forgotten debug output; canonicalize querries more wtih LTO.
950 2014-09-24  Jan Hubicka  <hubicka@ucw.cz>
952         * cgraph.h (class ipa_polymorphic_call_context): Move here from
953         ipa-utils.h; add stream_int and stream_out methods.
954         (cgraph_indirect_call_info): Remove SPECILATIVE_OFFSET,
955         OUTER_TYPE, SPECULATIVE_OUTER_TYPE, MAYBE_IN_CONSTRUCTION
956         MAYBE_DERIVED_TYPE and SPECULATIEVE_MAYBE_DERIVED_TYPE;
957         add CONTEXT.
958         (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
959         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
960         ipa_polymorphic_call_context::clear_speculation,
961         ipa_polymorphic_call_context::clear_outer_type): Move here from
962         ipa-utils.h
963         * ipa-utils.h (class ipa_polymorphic_call_context): Move to cgraph.h
964         (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
965         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
966         ipa_polymorphic_call_context::clear_speculation,
967         ipa_polymorphic_call_context::clear_outer_type): Likewise.
968         * ipa-devirt.c: Include data-streamer.h, lto-streamer.h and
969         streamer-hooks.h
970         (ipa_polymorphic_call_context::stream_out): New method.
971         (ipa_polymorphic_call_context::stream_in): New method.
972         (noncall_stmt_may_be_vtbl_ptr_store): Add forgotten static.
973         * ipa-prop.c (ipa_analyze_indirect_call_uses): Do not care about
974         OUTER_TYPE.
975         (ipa_analyze_call_uses): Simplify.
976         (update_indirect_edges_after_inlining): Do not care about outer_type.
977         (ipa_write_indirect_edge_info): Update.
978         (ipa_write_indirect_edge_info): Likewise.
979         * cgraph.c (cgraph_node::create_indirect_edge): Simplify.
980         (dump_edge_flags): Break out from ...
981         (cgraph_node::dump): ... here; dump indirect edges.
983 2014-09-24  Jan Hubicka  <hubicka@ucw.cz>
985         * ipa-utils.h (polymorphic_call_context): Add
986         metdhos dump, debug and clear_outer_type.
987         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
988         (ipa_polymorphic_call_context::clear_outer_type): New method.
989         * ipa-prop.c (ipa_analyze_call_uses): Do not overwrite offset.
990         * ipa-devirt.c (types_odr_comparable): New function.
991         (types_must_be_same_for_odr): New function.
992         (odr_subtypes_equivalent_p): Simplify.
993         (possible_placement_new): Break out from ...
994         (ipa_polymorphic_call_context::restrict_to_inner_type): ... here;
995         be more cuatious about returning false in cases the context may be
996         valid in derived type or via placement new.
997         (contains_type_p): Clear maybe_derived_type
998         (ipa_polymorphic_call_context::dump): New method.
999         (ipa_polymorphic_call_context::debug): New method.
1000         (ipa_polymorphic_call_context::set_by_decl): Cleanup comment.
1001         (ipa_polymorphic_call_context::set_by_invariant): Simplify.
1002         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
1003         (possible_polymorphic_call_targets): Trust context.restrict_to_inner_class
1004         to suceed on all valid cases; remove confused sanity check.
1005         (dump_possible_polymorphic_call_targets): Simplify.
1007 2014-09-24  Aldy Hernandez  <aldyh@redhat.com>
1009         * cgraph.h, dbxout.c, dwarfout2.c, gimple-fold.c,
1010         lto-streamer-out.c, print-tree.c, symtab.c, tree-inline.c,
1011         tree-streamer-in.c, tree-streamer-out.c, tree.c, tree.h,
1012         varpool.c: Rename all instances of DECL_ABSTRACT to
1013         DECL_ABSTRACT_P.
1015 2014-09-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1017         * config/rs6000/rs6000.c (insn_is_swappable_p): Don't provide
1018         special handling for stores whose SET_SRC is an UNSPEC (such as
1019         UNSPEC_STVE).
1021 2014-09-24  Jiong Wang  <jiong.wang@arm.com>
1023         * shrink-wrap.c (move_insn_for_shrink_wrap): Add further check when
1024         !REG_P (src) to release more instruction sink opportunities.
1026 2014-09-24  Wilco Dijkstra  <wilco.dijkstra@arm.com>
1028         * config/aarch64/aarch64.c (aarch64_register_move_cost): Add register
1029         move costs for 128-bit types.
1031 2014-09-24  Martin Jambor  <mjambor@suse.cz>
1033         * ipa-prop.c (ipa_edge_duplication_hook): Update controlled_use_count
1034         when duplicating a PASS_THROUGH jump function when creating a
1035         speculative edge.
1037 2014-09-24  Marek Polacek  <polacek@redhat.com>
1039         PR c/61405
1040         PR c/53874
1041         * asan.c (maybe_instrument_call): Add default case.
1042         * ipa-pure-const.c (special_builtin_state): Likewise.
1043         * predict.c (expr_expected_value_1): Likewise.
1044         * lto-streamer-out.c (write_symbol): Initialize variable.
1046 2014-09-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1048         * config/aarch64/arm_neon.h (vmuld_lane_f64): Use macro for getting
1049         the lane.
1050         (vmuld_laneq_f64): Likewise.
1051         (vmuls_lane_f32): Likewise.
1052         (vmuls_laneq_f32): Likewise.
1054 2014-09-24  Kirill Yukhin  <kirill.yukhin@intel.com>
1056         PR bootstrap/63235
1057         * varpool.c (varpool_node::add): Pass decl attributes
1058         to lookup_attribute.
1060 2014-09-24  Jakub Jelinek  <jakub@redhat.com>
1062         PR sanitizer/63316
1063         * asan.c (asan_expand_check_ifn): Fix up align >= 8 optimization.
1065 2014-09-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1067         PR tree-optimization/63266
1068         * tree-ssa-math-opts.c (struct symbolic_number): Add comment about
1069         marker for unknown byte value.
1070         (MARKER_MASK): New macro.
1071         (MARKER_BYTE_UNKNOWN): New macro.
1072         (HEAD_MARKER): New macro.
1073         (do_shift_rotate): Mark bytes with unknown values due to sign
1074         extension when doing an arithmetic right shift. Replace hardcoded
1075         mask for marker by new MARKER_MASK macro.
1076         (find_bswap_or_nop_1): Likewise and adjust ORing of two symbolic
1077         numbers accordingly.
1079 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1080             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1081             Anna Tikhonova  <anna.tikhonova@intel.com>
1082             Ilya Tocar  <ilya.tocar@intel.com>
1083             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1084             Ilya Verbin  <ilya.verbin@intel.com>
1085             Kirill Yukhin  <kirill.yukhin@intel.com>
1086             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1088         * config/i386/sse.md
1089         (define_insn
1090         "<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode><mask_name>"):
1091         Add masking.
1092         (define_insn "fix_truncv8sfv8si2<mask_name>"): Ditto.
1093         (define_insn "fix_truncv4sfv4si2<mask_name>"): Ditto.
1095 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1096             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1097             Anna Tikhonova  <anna.tikhonova@intel.com>
1098             Ilya Tocar  <ilya.tocar@intel.com>
1099             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1100             Ilya Verbin  <ilya.verbin@intel.com>
1101             Kirill Yukhin  <kirill.yukhin@intel.com>
1102             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1104         * config/i386/sse.md
1105         (define_c_enum "unspec"): Add UNSPEC_PSHUFHW, UNSPEC_PSHUFLW.
1106         (define_insn "<mask_codefor>avx512bw_pshuflwv32hi<mask_name>"): New.
1107         (define_expand "avx512vl_pshuflwv3_mask"): Ditto.
1108         (define_insn "avx2_pshuflw_1<mask_name>"): Add masking.
1109         (define_expand "avx512vl_pshuflw_mask"): New.
1110         (define_insn "sse2_pshuflw_1<mask_name>"): Add masking.
1111         (define_insn "<mask_codefor>avx512bw_pshufhwv32hi<mask_name>"): New.
1112         (define_expand "avx512vl_pshufhwv3_mask"): Ditto.
1113         (define_insn "avx2_pshufhw_1<mask_name>"): Add masking.
1114         (define_expand "avx512vl_pshufhw_mask"): New.
1115         (define_insn "sse2_pshufhw_1<mask_name>"): Add masking.
1117 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1118             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1119             Anna Tikhonova  <anna.tikhonova@intel.com>
1120             Ilya Tocar  <ilya.tocar@intel.com>
1121             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1122             Ilya Verbin  <ilya.verbin@intel.com>
1123             Kirill Yukhin  <kirill.yukhin@intel.com>
1124             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1126         * config/i386/i386.c
1127         (ix86_expand_args_builtin): Handle CODE_FOR_sse2_shufpd,
1128         CODE_FOR_sse2_sse2_shufpd_mask, CODE_FOR_sse2_avx512dq_shuf_f64x2_mask,
1129         CODE_FOR_sse2_avx512dq_shuf_i64x2_mask,
1130         CODE_FOR_sse2_avx512vl_shuf_i32x4_mask and
1131         CODE_FOR_sse2_avx512vl_shuf_f32x4_mask.
1132         * config/i386/sse.md
1133         (define_expand "avx512dq_shuf_<shuffletype>64x2_mask"): New.
1134         (define_insn
1135         "<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>"): Ditto.
1136         (define_expand "avx512vl_shuf_<shuffletype>32x4_mask"): Ditto.
1137         (define_insn
1138         "<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>"): Ditto.
1139         (define_expand "avx512vl_pshufdv3_mask"): Ditto.
1140         (define_insn "avx2_pshufd_1<mask_name>"): Add masking.
1141         (define_expand "avx512vl_pshufd_mask"): New.
1142         (define_insn "sse2_pshufd_1<mask_name>"): Add masking.
1144 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1145             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1146             Anna Tikhonova  <anna.tikhonova@intel.com>
1147             Ilya Tocar  <ilya.tocar@intel.com>
1148             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1149             Ilya Verbin  <ilya.verbin@intel.com>
1150             Kirill Yukhin  <kirill.yukhin@intel.com>
1151             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1153         * config/i386/i386.c
1154         (CODE_FOR_avx2_extracti128): Rename to ...
1155         (CODE_FOR_avx_vextractf128v4di): this.
1156         (CODE_FOR_avx2_inserti128): Rename to ...
1157         (CODE_FOR_avx_vinsertf128v4di): this.
1158         (ix86_expand_args_builtin): Handle CODE_FOR_avx_vinsertf128v4di,
1159         CODE_FOR_avx_vextractf128v4di.
1160         (ix86_expand_args_builtin): Handle CODE_FOR_avx512dq_vinsertf32x8_mask,
1161         CODE_FOR_avx512dq_vinserti32x8_mask, CODE_FOR_avx512vl_vinsertv4df,
1162         CODE_FOR_avx512vl_vinsertv4di, CODE_FOR_avx512vl_vinsertv8sf,
1163         CODE_FOR_avx512vl_vinsertv8si.
1164         * config/i386/sse.md
1165         (define_expand
1166         "<extract_type>_vinsert<shuffletype><extract_suf>_mask"): Use
1167         AVX512_VEC mode iterator.
1168         (define_insn
1169         "<mask_codefor><extract_type>_vinsert<shuffletype><extract_suf>_1<mask_name>"):
1170         Ditto.
1171         (define_expand
1172         "<extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask"): Use
1173         AVX512_VEC_2 mode iterator.
1174         (define_insn "vec_set_lo_<mode><mask_name>"): New.
1175         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
1176         (define_expand "avx512vl_vinsert<mode>"): Ditto.
1177         (define_insn "avx2_vec_set_lo_v4di"): Delete.
1178         (define_insn "avx2_vec_set_hi_v4di"): Ditto.
1179         (define_insn "vec_set_lo_<mode><mask_name>"): Add masking.
1180         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
1181         (define_insn "vec_set_lo_<mode><mask_name>"): Ditto.
1182         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
1183         (define_expand "avx2_extracti128"): Delete.
1184         (define_expand "avx2_inserti128"): Ditto.
1186 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1187             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1188             Anna Tikhonova  <anna.tikhonova@intel.com>
1189             Ilya Tocar  <ilya.tocar@intel.com>
1190             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1191             Ilya Verbin  <ilya.verbin@intel.com>
1192             Kirill Yukhin  <kirill.yukhin@intel.com>
1193             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1195         * config/i386/sse.md
1196         (define_insn "avx2_<code>v16qiv16hi2<mask_name>"): Add masking.
1197         (define_insn "avx512bw_<code>v32qiv32hi2<mask_name>"): New.
1198         (define_insn "sse4_1_<code>v8qiv8hi2<mask_name>"): Add masking.
1199         (define_insn "avx2_<code>v8qiv8si2<mask_name>"): Ditto.
1200         (define_insn "sse4_1_<code>v4qiv4si2<mask_name>"): Ditto.
1201         (define_insn "avx2_<code>v8hiv8si2<mask_name>"): Ditto.
1202         (define_insn "sse4_1_<code>v4hiv4si2<mask_name>"): Ditto.
1203         (define_insn "avx2_<code>v4qiv4di2<mask_name>"): Ditto.
1204         (define_insn "sse4_1_<code>v2qiv2di2<mask_name>"): Ditto.
1205         (define_insn "avx2_<code>v4hiv4di2<mask_name>"): Ditto.
1206         (define_insn "sse4_1_<code>v2hiv2di2<mask_name>"): Ditto.
1207         (define_insn "avx2_<code>v4siv4di2<mask_name>"): Ditto.
1208         (define_insn "sse4_1_<code>v2siv2di2<mask_name>"): Ditto.
1210 2014-09-24  Zhenqiang Chen  <zhenqiang.chen@arm.com>
1212         PR rtl-optimization/63210
1213         * ira-color.c (assign_hard_reg): Ignore conflict cost if the
1214         HARD_REGNO is not available for CONFLICT_A.
1216 2014-09-23  Andi Kleen  <ak@linux.intel.com>
1218         * cgraph.h (symtab_node): Add no_reorder attribute.
1219         (symbol_table::output_asm_statements): Remove.
1220         * cgraphclones.c (cgraph_node::create_clone): Copy no_reorder.
1221         (cgraph_node::create_version_clone): Dito.
1222         (symbol_table::output_asm_statements): Remove.
1223         * trans-mem.c (ipa_tm_create_version_alias): Dito.
1224         * cgraphunit.c (varpool_node::finalize_decl): Check no_reorder.
1225         (output_in_order): Add no_reorder flag. Only handle no_reorder
1226         nodes when set.
1227         (symbol_table::compile): Add separate pass for no_reorder nodes.
1228         (process_common_attributes): Set no_reorder flag in symtab node.
1229         Add node argument.
1230         (process_function_and_variable_attributes): Pass symtab nodes to
1231         process_common_attributes.
1232         * doc/extend.texi (no_reorder): Document no_reorder attribute.
1233         * lto-cgraph.c (lto_output_node): Serialize no_reorder.
1234         (lto_output_varpool_node): Dito.
1235         (input_overwrite_node): Dito.
1236         (input_varpool_node): Dito.
1237         * varpool.c (varpool_node::add): Set no_reorder attribute.
1238         (symbol_table::remove_unreferenced_decls): Handle no_reorder.
1239         (symbol_table::output_variables): Dito.
1240         * symtab.c (symtab_node::dump_base): Print no_reorder.
1242 2014-09-23  Jiong Wang  <jiong.wang@arm.com>
1244         * shrink-wrap.c (try_shrink_wrapping): Check PIC_OFFSET_TABLE_REGNUM not
1245         be INVALID_REGNUM.
1247 2014-09-23  Thomas Schwinge  <thomas@codesourcery.com>
1249         * configure: Regenerate.
1251 2014-09-23  Alan Lawrence  <alan.lawrence@arm.com>
1253         * combine.c (simplify_shift_const_1): Allow commuting (ashiftrt (xor))
1254         when result_mode == shift_mode.
1256 2014-09-23  Kostya Serebryany  <kcc@google.com>
1258         Update to match the changed asan API.
1259         * asan.c (asan_global_struct): Update the __asan_global definition
1260         to match the new API.
1261         (asan_add_global): Ditto.
1262         * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v3
1263         to __asan_init_v4.
1265 2014-09-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
1267         * config/rs6000/rs6000.md (f32_vsx): New mode attributes to
1268         refine the constraints used on 32/64-bit floating point moves.
1269         (f32_av): Likewise.
1270         (f64_vsx): Likewise.
1271         (f64_dm): Likewise.
1272         (f64_av): Likewise.
1273         (BOOL_REGS_OUTPUT): Use wt constraint for TImode instead of wa.
1274         (BOOL_REGS_OP1): Likewise.
1275         (BOOL_REGS_OP2): Likewise.
1276         (BOOL_REGS_UNARY): Likewise.
1277         (mov<mode>_hardfloat, SFmode/SDmode): Tighten down constraints for
1278         32/64-bit floating point moves.  Do not use wa, instead use ww/ws
1279         for moves involving VSX registers.  Do not use constraints that
1280         target VSX registers for decimal types.
1281         (mov<mode>_hardfloat32, DFmode/DDmode): Likewise.
1282         (mov<mode>_hardfloat64, DFmode/DDmode): Likewise.
1284 2014-09-23  Jan Hubicka  <hubicka@ucw.cz>
1286         * tree.h (int_bit_position): Turn into inline function;
1287         implement using wide int.
1288         * tree.c (int_bit_position): Remove.
1290 2014-09-23  Richard Sandiford  <richard.sandiford@arm.com>
1292         PR bootstrap/63280
1293         * target-globals.c (target_globals::~target_globals): Fix location
1294         of ira_int destruction.
1296 2014-09-23  Renlin Li  <renlin.li@arm.com>
1298         * config/aarch64/aarch64.md (return): New.
1299         (simple_return): Likewise.
1300         * config/aarch64/aarch64.c (aarch64_use_return_insn_p): New.
1301         * config/aarch64/aarch64-protos.h (aarch64_use_return_insn_p): New.
1303 2014-09-23  Wilco Dijkstra  <wdijkstr@arm.com>
1305         * common/config/aarch64/aarch64-common.c:
1306         (default_options aarch_option_optimization_table):
1307         Default to -fsched-pressure.
1309 2014-09-23  Ilya Enkovich  <ilya.enkovich@intel.com>
1311         * cfgcleanup.c (try_optimize_cfg): Do not remove label
1312         with LABEL_PRESERVE_P flag set.
1314 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1315             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1316             Anna Tikhonova  <anna.tikhonova@intel.com>
1317             Ilya Tocar  <ilya.tocar@intel.com>
1318             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1319             Ilya Verbin  <ilya.verbin@intel.com>
1320             Kirill Yukhin  <kirill.yukhin@intel.com>
1321             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1323         * config/i386/sse.md
1324         (define_expand "avx_shufpd256<mask_expand4_name>"): Add masking.
1325         (define_insn "avx_shufpd256_1<mask_name>"): Ditto.
1326         (define_expand "sse2_shufpd<mask_expand4_name>"): Ditto.
1327         (define_insn "sse2_shufpd_v2df_mask"): New.
1329 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1330             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1331             Anna Tikhonova  <anna.tikhonova@intel.com>
1332             Ilya Tocar  <ilya.tocar@intel.com>
1333             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1334             Ilya Verbin  <ilya.verbin@intel.com>
1335             Kirill Yukhin  <kirill.yukhin@intel.com>
1336             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1338         * config/i386/sse.md
1339         (define_expand "avx_shufps256<mask_expand4_name>"): Add masking.
1340         (define_insn "avx_shufps256_1<mask_name>"): Ditto.
1341         (define_expand "sse_shufps<mask_expand4_name>"): Ditto.
1342         (define_insn "sse_shufps_v4sf_mask"): New.
1344 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1345             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1346             Anna Tikhonova  <anna.tikhonova@intel.com>
1347             Ilya Tocar  <ilya.tocar@intel.com>
1348             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1349             Ilya Verbin  <ilya.verbin@intel.com>
1350             Kirill Yukhin  <kirill.yukhin@intel.com>
1351             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1353         * config/i386/sse.md
1354         (define_insn "avx_unpckhps256<mask_name>"): Add masking.
1355         (define_insn "vec_interleave_highv4sf<mask_name>"): Ditto.
1356         (define_insn "avx_unpcklps256<mask_name>"): Ditto.
1357         (define_insn "unpcklps128_mask"): New.
1359 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1360             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1361             Anna Tikhonova  <anna.tikhonova@intel.com>
1362             Ilya Tocar  <ilya.tocar@intel.com>
1363             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1364             Ilya Verbin  <ilya.verbin@intel.com>
1365             Kirill Yukhin  <kirill.yukhin@intel.com>
1366             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1368         * config/i386/sse.md
1369         (define_insn "avx_unpckhpd256<mask_name>"): Add masking.
1370         (define_insn "avx512vl_unpckhpd128_mask"): New.
1371         (define_expand "avx_movddup256<mask_name>"): Add masking.
1372         (define_expand "avx_unpcklpd256<mask_name>"): Ditto.
1373         (define_insn "*avx_unpcklpd256<mask_name>"): Ditto.
1374         (define_insn "avx512vl_unpcklpd128_mask"): New.
1376 2014-09-22  Joseph Myers  <joseph@codesourcery.com>
1378         * doc/tm.texi.in (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1379         * doc/tm.texi: Regenerate.
1380         * system.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Poison.
1381         * config/alpha/alpha.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1382         * config/i386/i386-interix.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
1383         Remove.
1384         * config/i386/i386.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1385         * config/i386/rtemself.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1386         * config/ia64/ia64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1387         * config/m68k/m68k.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1388         * config/m68k/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
1389         Remove.
1390         * config/mips/mips.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1391         * config/mips/n32-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1392         * config/msp430/msp430.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1393         * config/rl78/rl78.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1394         * config/rs6000/rs6000.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1395         * config/rx/rx.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1396         * config/s390/s390.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1397         * config/sparc/freebsd.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1398         * config/sparc/linux.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1399         * config/sparc/linux64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
1400         * config/sparc/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
1401         Remove.
1403 2014-09-22  Jan Hubicka  <hubicka@ucw.cz>
1405         * tree-ssa-ccp.c (prop_value_d): Rename to ...
1406         (ccp_prop_value_t): ... this one to avoid ODR violation; update uses.
1407         * ipa-prop.c (struct type_change_info): Rename to ...
1408         (prop_type_change_info): ... this; update uses.
1409         * ggc-page.c (globals): Rename to ...
1410         (static struct ggc_globals): ... this; update uses.
1411         * tree-ssa-loop-im.c (mem_ref): Rename to ...
1412         (im_mem_ref): ... this; update uses.
1413         * ggc-common.c (loc_descriptor): Rename to ...
1414         (ggc_loc_descriptor): ... this; update uses.
1415         * lra-eliminations.c (elim_table): Rename to ...
1416         (lra_elim_table): ... this; update uses.
1417         * bitmap.c (output_info): Rename to ...
1418         (bitmap_output_info): ... this; update uses.
1419         * gcse.c (expr): Rename to ...
1420         (gcse_expr) ... this; update uses.
1421         (occr): Rename to ...
1422         (gcse_occr): .. this; update uses.
1423         * tree-ssa-copy.c (prop_value_d): Rename to ...
1424         (prop_value_t): ... this.
1425         * predict.c (block_info_def): Rename to ...
1426         (block_info): ... this; update uses.
1427         (edge_info_def): Rename to ...
1428         (edge_info): ... this; update uses.
1429         * profile.c (bb_info): Rename to ...
1430         (bb_profile_info): ... this; update uses.
1431         * alloc-pool.c (output_info): Rename to ...
1432         (pool_output_info): ... this; update uses.
1433         * ipa-cp.c (topo_info): Rename to ..
1434         (ipa_topo_info): ... this; update uses.
1435         * tree-nrv.c (nrv_data): Rename to ...
1436         (nrv_data_t): ... this; update uses.
1437         * ipa-split.c (bb_info): Rename to ...
1438         (split_bb_info): ... this one.
1439         * profile.h (edge_info): Rename to ...
1440         (edge_profile_info): ... this one; update uses.
1441         * dse.c (bb_info): Rename to ...
1442         (dse_bb_info): ... this one; update uses.
1443         * cprop.c (occr): Rename to ...
1444         (cprop_occr): ... this one; update uses.
1445         (expr): Rename to ...
1446         (cprop_expr): ... this one; update uses.
1448 2014-09-22  Jason Merrill  <jason@redhat.com>
1450         * Makefile.in (check-parallel-%): Add @.
1452 2014-09-22  James Greenhalgh  <james.greenhalgh@arm.com>
1454         * config/aarch64/geniterators.sh: New.
1455         * config/aarch64/iterators.md (VDQF_DF): New.
1456         * config/aarch64/t-aarch64: Generate aarch64-builtin-iterators.h.
1457         * config/aarch64/aarch64-builtins.c (BUILTIN_*) Remove.
1459 2014-09-22  Peter A. Bigot  <pab@pabigot.com>
1461         * config/msp430/msp430.h (LIB_SPEC): Remove automatic addition of
1462         -lnosys when -msim absent.
1464 2014-09-22  Alan Lawrence  <alan.lawrence@arm.com>
1466         * fold-const.c (tree_swap_operands_p): Strip only sign-preserving NOPs.
1468 2014-09-22  Richard Biener  <rguenther@suse.de>
1470         * gimplify.c (gimplify_init_constructor): Do not leave
1471         non-GIMPLE vector constructors around.
1472         * tree-cfg.c (verify_gimple_assign_single): Verify that
1473         CONSTRUCTORs have gimple elements.
1475 2014-09-22  Jakub Jelinek  <jakub@redhat.com>
1477         PR debug/63328
1478         * omp-low.c (ipa_simd_modify_stmt_ops): For debug stmts
1479         insert a debug source bind stmt setting DEBUG_EXPR_DECL
1480         instead of a normal gimple assignment stmt.
1482 2014-09-22  James Greenhalgh  <james.greenhalgh@arm.com>
1484         * config/bfin/bfin.md: Fix use of constraints in define_split.
1486 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
1488         * config/i386/i386.c (ix86_cannot_change_mode_class): Remove
1489         GET_MODE_SIZE (to) < GET_MODE_SIZE (from) test.
1491 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
1493         * hard-reg-set.h: Include hash-table.h.
1494         (target_hard_regs): Add a finalize method and a x_simplifiable_subregs
1495         field.
1496         * target-globals.c (target_globals::~target_globals): Call
1497         hard_regs->finalize.
1498         * rtl.h (subreg_shape): New structure.
1499         (shape_of_subreg): New function.
1500         (simplifiable_subregs): Declare.
1501         * reginfo.c (simplifiable_subreg): New structure.
1502         (simplifiable_subregs_hasher): Likewise.
1503         (simplifiable_subregs): New function.
1504         (invalid_mode_changes): Delete.
1505         (alid_mode_changes, valid_mode_changes_obstack): New variables.
1506         (record_subregs_of_mode): Remove subregs_of_mode parameter.
1507         Record valid mode changes in valid_mode_changes.
1508         (find_subregs_of_mode): Remove subregs_of_mode parameter.
1509         Update calls to record_subregs_of_mode.
1510         (init_subregs_of_mode): Remove invalid_mode_changes and bitmap
1511         handling.  Initialize new variables.  Update call to
1512         find_subregs_of_mode.
1513         (invalid_mode_change_p): Check new variables instead of
1514         invalid_mode_changes.
1515         (finish_subregs_of_mode): Finalize new variables instead of
1516         invalid_mode_changes.
1517         (target_hard_regs::finalize): New function.
1518         * ira-costs.c (print_allocno_costs): Call invalid_mode_change_p
1519         even when CLASS_CANNOT_CHANGE_MODE is undefined.
1521 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
1523         * combine.c (subst): Use simplify_subreg_regno rather than
1524         REG_CANNOT_CHANGE_MODE_P to detect invalid mode changes.
1526 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
1528         * rtl.h (subreg_info): Expand commentary
1529         * rtlanal.c (subreg_get_info): Likewise.
1531 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
1533         * hard-reg-set.h (COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
1534         (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
1535         (IOR_COMPL_HARD_REG_SET): Allow the "from" set to be constant.
1537 2014-09-22  Zhenqiang Chen  <zhenqiang.chen@arm.com>
1539         * config/arm/arm.c: #include "tm-constrs.h"
1540         (thumb1_size_rtx_costs): Adjust rtx costs.
1542 2014-09-22  Hans-Peter Nilsson  <hp@axis.com>
1544         * configure.ac (target_header_dir): Move block defining
1545         this to before the block setting inhibit_libc.
1546         (inhibit_libc): When considering $with_headers, just
1547         check it it's explicitly "no".  If not, also check if
1548         $target_header_dir/stdio.h is present.  If not, set
1549         inhibit_libc=true.
1550         * configure: Regenerate.
1552 2014-09-21  Patrick Oppenlander  <pattyo.lists@gmail.com>
1554         * config/rs6000/t-spe (MULTILIB_EXCEPTIONS): Allow isel without SPE.
1556 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
1558         * config/rs6000/rs6000.md (div<mode>3): Fix comment.  Use a different
1559         insn for divides by integer powers of two.
1560         (div<mode>3_sra, *div<mode>3_sra_dot, *div<mode>3_sra_dot2): New.
1561         (mod<mode>3): Fix formatting.
1562         (three anonymous define_insn and two define_split): Delete.
1564 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
1566         * config/rs6000/rs6000.md (ashr<mode>3, *ashr<mode>3, *ashrsi3_64,
1567         *ashr<mode>3_dot, *ashr<mode>3_dot2): Clobber CA_REGNO.
1568         (floatdisf2_internal2): Ditto.
1569         (ashrdi3_no_power): Ditto.  Fix formatting.
1571 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
1573         * config/rs6000/rs6000.md (ctz<mode>2, ffs<mode>2, popcount<mode>2,
1574         popcntb<mode>2, popcntd<mode>2, parity<mode>2, parity<mode>2_cmpb):
1575         Tidy.
1577 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
1579         * config/rs6000/rs6000.md (strlensi): Don't use subsi3 with a
1580         constant, use addsi3 directly.
1581         (three anonymous define_insn, two define_split): Delete.
1582         (sub<mode>3): Move.  Do not allow constant second operand.
1583         Generate different insn for constant first operand.
1584         (*subf<mode>3, *subf<mode>3_dot, *subf<mode>3_dot2): New.
1585         (subf<mode>3_imm): New.
1586         (ctz<mode>2, ffs<mode>2): Clobber CA_REGNO where required.
1587         (*plus_ltu<mode>): Only handle registers.
1588         (*plus_ltu<mode>_1): New.  Handle integer third operand.
1589         (*plus_gtu<mode>): Only handle registers.
1590         (*plus_gtu<mode>_1): New.  Handle integer third operand.
1592 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
1594         * config/rs6000/rs6000.md (iorxor): New code_iterator.
1595         (iorxor): New code_attr.
1596         (IORXOR): New code_attr.
1597         (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): Delete.
1598         (ior<mode>3, xor<mode>3): Delete.
1599         (<iorxor><mode>3): New.
1600         (splitter for "big" integer ior, xor): New.
1601         (*bool<mode>3): Move.  Also handle AND.
1602         (*bool<mode>3_dot, *bool<mode>3_dot2): Also handle AND.
1603         (splitter for "big" integer ior, xor): Delete.
1605 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
1607         * config/rs6000/rs6000.md (*neg<mode>2_internal): Delete.
1608         (two anonymous define_insn and two define_split): Delete.
1609         (*neg<mode>2, *neg<mode>2_dot, *neg<mode>2_dot2): New.
1611 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
1613         * config/rs6000/rs6000.md (*one_cmpl<mode>2): Generate "not" insn.
1614         (two anonymous define_insn and two define_split): Delete.
1615         (*one_cmpl<mode>2_dot, *one_cmpl<mode>2_dot2): New.
1617 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
1619         * config/rs6000/rs6000.c (rs6000_rtx_costs) <NE>: New.
1621 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
1623         * config/rs6000/predicates.md (ca_operand): Allow subregs.
1624         (input_operand): Do not allow ca_operand.
1625         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): For the
1626         carry bit, allow SImode and Pmode.
1627         (rs6000_init_hard_regno_mode_ok): Make the carry bit class NO_REGS.
1629 2014-09-21  Uros Bizjak  <ubizjak@gmail.com>
1631         * config/i386/i386.c (ix86_expand_call): Generate MS->SYSV extra
1632         clobbered registers using clobber_reg.  Remove UNSPEC decoration.
1633         * config/i386/i386.md (unspec) <UNSPEC_MS_TO_SYSV_CALL>: Remove.
1634         (*call_rex64_ms_sysv): Remove.
1635         (*call_value_rex64_ms_sysv): Ditto.
1636         * config/i386/predicates.md (call_rex64_ms_sysv_operation): Remove.
1638 2014-09-20  Joern Rennecke  <joern.rennecke@embecosm.com>
1640         * config/epiphany/epiphany.md (sub_f_add_imm): Change constraint of
1641         operand 3 to "CnL".
1643 2014-09-20  Andreas Schwab  <schwab@suse.de>
1645         * config/ia64/ia64.md: Remove constraints from define_split
1646         patterns.
1648 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
1650         * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
1651         (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
1652         possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
1653         (get_dynamic_type): Remove.
1654         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
1655         (clear_speculation): Bring to ipa-deivrt.h
1656         (get_class_context): Rename to ...
1657         (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
1658         (contains_type_p): Update.
1659         (get_dynamic_type): Rename to ...
1660         ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
1661         (possible_polymorphic_call_targets): UPdate.
1662         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
1663         * ipa-prop.c (ipa_analyze_call_uses): Update.
1665 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
1667         * ipa-visibility.c (varpool_node::externally_visible_p): Do not
1668         privatize dynamic TLS variables.
1670 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
1672         * diagnostic.c (warning_n): New function.
1673         * diagnostic-core.h (warning_n): Declare.
1674         * ipa-devirt.c (ipa_devirt): Handle singulars correctly;
1675         output dynamic counts when available.
1677 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
1679         PR tree-optimization/63255
1680         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering
1681         issue in setting body_removed flag.
1683 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
1685         PR c++/61825
1686         * c-family/c-common.c (handle_alias_ifunc_attribute): Check
1687         that visibility change is possible
1688         (handle_weakref_attribute): Likewise.
1689         * cgraph.h (symtab_node): Add method get_create and
1690         field refuse_visibility_changes.
1691         (symtab_node::get_create): New method.
1692         * fold-const.c (tree_single_nonzero_warnv_p): Use get_create.
1693         * varasm.c (mark_weak): Verify that visibility change is
1694         possible.
1696 2014-09-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
1698         * config/rs6000/predicates.md (fusion_gpr_mem_load): Move testing
1699         for base_reg_operand to be common between LO_SUM and PLUS.
1700         (fusion_gpr_mem_combo): New predicate to match a fused address
1701         that combines the addis and memory offset address.
1703         * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Change
1704         calling signature.
1705         (emit_fusion_gpr_load): Likewise.
1707         * config/rs6000/rs6000.c (fusion_gpr_load_p): Change calling
1708         signature to pass each argument separately, rather than
1709         using an operands array.  Rewrite the insns found by peephole2 to
1710         be a single insn, rather than hoping the insns will still be
1711         together when the peephole pass is done.  Drop being called via a
1712         normal peephole.
1713         (emit_fusion_gpr_load): Change calling signature to be called from
1714         the fusion_gpr_load_<mode> insns with a combined memory address
1715         instead of the peephole pass passing the addis and offset
1716         separately.
1718         * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): New unspec for GPR
1719         fusion.
1720         (power8 fusion peephole): Drop support for doing power8 via a
1721         normal peephole that was created by the peephole2 pass.
1722         (power8 fusion peephole2): Create a new insn with the fused
1723         address, so that the fused operation is kept together after
1724         register allocation is done.
1725         (fusion_gpr_load_<mode>): Likewise.
1727 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
1729         PR lto/63286
1730         * tree.c (need_assembler_name_p): Do not mangle variadic types.
1732 2014-09-19  Segher Boessenkool  <segher@kernel.crashing.org>
1734         * recog.c (scratch_operand): Do not simply allow all hard registers:
1735         only allow those that are allocatable.
1737 2014-09-19  Felix Yang  <felix.yang@huawei.com>
1739         * cfgrtl.c ira.c ira-color.c ira-conflicts ira-lives.c: Update
1740         comments and fix spacing to conform to coding style.
1742 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
1744         * genrecog.c (validate_pattern): Allow empty constraints in
1745         a match_scratch.
1747 2014-09-19  Aldy Hernandez  <aldyh@redhat.com>
1749         * dwarf2out.c (decl_ultimate_origin): Update comment.
1750         * tree.c (block_ultimate_origin): Same.
1752 2014-09-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1754         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
1755         Update GCC version name to GCC 5.
1756         (rs6000_function_arg_boundary): Likewise.
1757         (rs6000_function_arg): Likewise.
1759 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
1761         * config/sh/sh.md: Fix use of constraints in define_split.
1763 2014-09-19  Markus Trippelsdorf  <markus@trippelsdorf.de>
1765         PR ipa/61998
1766         * ipa-devirt.c (ipa_devirt): Bail out if odr_types_ptr is NULL.
1768 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
1770         * doc/md.texi (Modifiers): Consistently use "read/write"
1771         nomenclature rather than "input/output".
1772         * genrecog.c (constraints_supported_in_insn_p): New.
1773         (validate_pattern): If needed, also check constraints on
1774         MATCH_SCRATCH operands.
1775         * genoutput.c (validate_insn_alternatives): Catch earlyclobber
1776         operands with no '=' or '+' modifier.
1778 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
1780         * config/aarch64/aarch64.md (stack_protect_test_<mode>): Mark
1781         scratch register as written.
1783 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1785         * config/s390/s390.c (s390_emit_epilogue): Remove bogus
1786         assignment.
1788 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1790         * config/s390/s390.md ("trunctdsd2", "extendsdtd2"): New
1791         expanders.
1793 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1795         PR target/62662
1796         * config/s390/s390.c (s390_emit_epilogue): When doing the return
1797         address load optimization force s390_optimize_prologue to leave it
1798         that way.  Only do the optimization if we already decided to push
1799         r14 into a stack slot.
1801 2014-09-19  Marat Zakirov  <m.zakirov@samsung.com>
1803         * asan.c (build_check_stmt): Alignment arg was added.
1804         (asan_expand_check_ifn): Optimization for alignment >= 8.
1806 2014-09-19  Olivier Hainque  <hainque@adacore.com>
1808         * config/i386/vxworksae.h: Remove obsolete definitions.
1809         (STACK_CHECK_PROTECT): Define.
1810         * config/i386/vx-common.h: Remove.  Merge contents within
1811         config/i386/vxworks.h.
1812         * config.gcc (i?86-vxworks*): Use i386/vxworks.h instead of
1813         i386/vx-common.h.
1815 2014-09-19  Olivier Hainque  <hainque@adacore.com>
1817         * config.gcc (powerpc-wrs-vxworksmils): New configuration.
1818         * config/rs6000/t-vxworksmils: New file.
1819         * config/rs6000/vxworksmils.h: New file.
1821 2014-09-19  Olivier Hainque  <hainque@adacore.com>
1823         * varasm.c (default_section_type_flags): Flag .persistent.bss
1824         sections as SECTION_BSS.
1826 2014-09-19  Nick Clifton  <nickc@redhat.com>
1828         * config/rl78/rl78.c (rl78_expand_epilogue): Generate a USE of the
1829         pop'ed registers so that DCE does not eliminate them.
1831 2014-09-18  Jan Hubicka  <hubicka@ucw.cz>
1833         PR lto/63298
1834         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix thinko in a condition.
1836 2014-09-18  Joseph Myers  <joseph@codesourcery.com>
1838         * system.h (LIBGCC2_TF_CEXT): Poison.
1839         * config/i386/cygming.h (LIBGCC2_TF_CEXT): Remove.
1840         * config/i386/darwin.h (LIBGCC2_TF_CEXT): Likewise.
1841         * config/i386/dragonfly.h (LIBGCC2_TF_CEXT): Likewise.
1842         * config/i386/freebsd.h (LIBGCC2_TF_CEXT): Likewise.
1843         * config/i386/gnu-user-common.h (LIBGCC2_TF_CEXT): Likewise.
1844         * config/i386/openbsdelf.h (LIBGCC2_TF_CEXT): Likewise.
1845         * config/i386/sol2.h (LIBGCC2_TF_CEXT): Likewise.
1846         * config/ia64/ia64.h (LIBGCC2_TF_CEXT): Likewise.
1847         * config/ia64/linux.h (LIBGCC2_TF_CEXT): Likewise.
1849 2014-09-19  Kito Cheng  <kito@0xlab.org>
1851         * except.h: Fix header guard.
1852         * addresses.h: Add missing header guard.
1853         * cfghooks.h: Likewise.
1854         * collect-utils.h: Likewise.
1855         * collect2-aix.h: Likewise.
1856         * conditions.h: Likewise.
1857         * cselib.h: Likewise.
1858         * dwarf2asm.h: Likewise.
1859         * graphds.h: Likewise.
1860         * graphite-scop-detection.h: Likewise.
1861         * gsyms.h: Likewise.
1862         * hw-doloop.h: Likewise.
1863         * incpath.h: Likewise.
1864         * ipa-inline.h: Likewise.
1865         * ipa-ref.h: Likewise.
1866         * ira-int.h: Likewise.
1867         * ira.h: Likewise.
1868         * lra-int.h: Likewise.
1869         * lra.h: Likewise.
1870         * lto-section-names.h: Likewise.
1871         * read-md.h: Likewise.
1872         * reload.h: Likewise.
1873         * rtl-error.h: Likewise.
1874         * sdbout.h: Likewise.
1875         * targhooks.h: Likewise.
1876         * tree-affine.h: Likewise.
1877         * xcoff.h: Likewise.
1878         * xcoffout.h: Likewise.
1880 2014-09-18  Vladimir Makarov  <vmakarov@redhat.com>
1882         PR debug/63285
1883         * haifa-sched.c (schedule_block): Advance cycle at the end of BB
1884         if advance != 0.
1886 2014-09-18  Vladimir Makarov  <vmakarov@redhat.com>
1888         PR target/61360
1889         * lra.c (lra): Call recog_init.
1891 2014-09-18  Jakub Jelinek  <jakub@redhat.com>
1893         PR c++/62017
1894         * asan.c (transform_statements): Don't instrument clobber statements.
1896 2014-09-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1898         * config/arm/neon.md (*movmisalign<mode>_neon_load): Change type
1899         to neon_load1_1reg<q>.
1901 2014-09-17  Jakub Jelinek  <jakub@redhat.com>
1903         PR debug/63284
1904         * tree-cfgcleanup.c (fixup_noreturn_call): Don't split block
1905         if there are only debug stmts after the noreturn call, instead
1906         remove the debug stmts.
1908 2014-09-17  Jan Hubicka  <hubicka@ucw.cz>
1910         * ipa-devirt.c (type_pair, default_hashset_traits): New types.
1911         (odr_types_equivalent_p): Use pair hash.
1912         (odr_subtypes_equivalent_p): Likewise, do structural compare
1913         on ODR types that may be mismatched.
1914         (warn_odr): Support warning when only one field is given.
1915         (odr_types_equivalent_p): Strenghten comparsions made;
1916         support VOIDtype.
1917         (add_type_duplicate): Update VISITED hash set.
1919 2014-09-17  Sebastian Huber  <sebastian.huber@embedded-brains.de>
1921         * config.gcc (*-*-rtems*): Default to 'rtems' thread model.
1922         Enable selection of 'posix' or no thread model.
1924 2014-09-17  Andrew Stubbs  <ams@codesourcery.com>
1926         * config/arm/arm.c (arm_option_override): Reject -mfpu=neon
1927         when architecture is older than ARMv7.
1929 2014-09-16  John David Anglin  <danglin@gcc.gnu.org>
1931         PR target/61853
1932         * config/pa/pa.c (pa_function_value): Directly handle aggregates
1933         that fit exactly in a word or double word.
1935 2014-09-16  Ilya Tocar  <ilya.tocar@intel.com>
1937         * config/i386/driver-i386.c (host_detect_local_cpu): Detect lack of
1938         zmm/k regs support.
1940 2014-09-16  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1941             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1942             Anna Tikhonova  <anna.tikhonova@intel.com>
1943             Ilya Tocar  <ilya.tocar@intel.com>
1944             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1945             Ilya Verbin  <ilya.verbin@intel.com>
1946             Kirill Yukhin  <kirill.yukhin@intel.com>
1947             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1949         * config/i386/i386.c
1950         (ix86_expand_vector_extract): Handle V32HI and V64QI modes.
1951         * config/i386/sse.md
1952         (define_mode_iterator VI48F_256): New.
1953         (define_mode_attr extract_type): Ditto.
1954         (define_mode_attr extract_suf): Ditto.
1955         (define_mode_iterator AVX512_VEC): Ditto.
1956         (define_expand
1957         "<extract_type>_vextract<shuffletype><extract_suf>_mask"): Use
1958         AVX512_VEC.
1959         (define_insn "avx512dq_vextract<shuffletype>64x2_1_maskm"): New.
1960         (define_insn
1961         "<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>"):
1962         Ditto.
1963         (define_mode_attr extract_type_2): Ditto.
1964         (define_mode_attr extract_suf_2): Ditto.
1965         (define_mode_iterator AVX512_VEC_2): Ditto.
1966         (define_expand
1967         "<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask"): Use
1968         AVX512_VEC_2 mode iterator.
1969         (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
1970         (define_expand "avx512vl_vextractf128<mode>"): Ditto.
1971         (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
1972         (define_insn "vec_extract_lo_<mode><mask_name>"): New.
1973         (define_split for V16FI mode): Ditto.
1974         (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
1975         (define_insn "vec_extract_lo_<mode><mask_name>"): New.
1976         (define_split for VI8F_256 mode): Ditto.
1977         (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
1978         (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
1979         (define_insn "vec_extract_lo_<mode><mask_name>"): New.
1980         (define_split for VI4F_256 mode): Ditto.
1981         (define_insn "vec_extract_lo_<mode>_maskm"): Ditto.
1982         (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
1983         (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
1984         (define_mode_iterator VEC_EXTRACT_MODE): Add V64QI and V32HI modes.
1985         (define_insn "vcvtph2ps<mask_name>"): Fix pattern condition.
1986         (define_insn "avx512f_vextract<shuffletype>32x4_1_maskm"): Ditto.
1987         (define_insn "<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>"):
1988         Update `type' attribute, remove explicit `memory' attribute calculation.
1990 2014-09-16  Kito Cheng  <kito@0xlab.org>
1992         * ira.c (ira): Don't initialize ira_spilled_reg_stack_slots and
1993         ira_spilled_reg_stack_slots_num if using lra.
1994         (do_reload): Remove release ira_spilled_reg_stack_slots part.
1995         * ira-color.c (ira_sort_regnos_for_alter_reg): Add assertion to
1996         make sure not using lra.
1997         (ira_reuse_stack_slot): Likewise.
1998         (ira_mark_new_stack_slot): Likewise.
2000 2014-09-15  Andi Kleen  <ak@linux.intel.com>
2002         * function.c (allocate_struct_function): Force
2003         DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT to one when
2004         profiling is disabled.
2006 2014-09-15  Trevor Saunders  <tsaunders@mozilla.com>
2008         * cfgrtl.c, combine.c, config/arc/arc.c, config/mcore/mcore.c,
2009         config/rs6000/rs6000.c, config/sh/sh.c, cprop.c, dwarf2out.c,
2010         emit-rtl.c, final.c, function.c, gcse.c, jump.c, reg-stack.c,
2011         reload1.c, reorg.c, resource.c, sel-sched-ir.c: Replace INSN_DELETED_P
2012         macro with statically checked member functions.
2013         * rtl.h (rtx_insn::deleted): New method.
2014         (rtx_insn::set_deleted): Likewise.
2015         (rtx_insn::set_undeleted): Likewise.
2016         (INSN_DELETED_P): Remove.
2018 2014-09-15  Trevor Saunders  <tsaunders@mozilla.com>
2020         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Assign the
2021         result of emit_jump_insn_before to a new variable.
2022         * jump.c (mark_jump_label): Change the type of insn to rtx_insn *.
2023         (mark_jump_label_1): Likewise.
2024         (mark_jump_label_asm): Likewise.
2025         * reload1.c (gen_reload): Change type of tem to rtx_insn *.
2026         * rtl.h (mark_jump_label): Adjust.
2028 2014-09-15  Jakub Jelinek  <jakub@redhat.com>
2030         * Makefile.in (dg_target_exps): Remove.
2031         (check_gcc_parallelize): Change to just an upper bound number.
2032         (check-%-subtargets): Always print the non-parallelized goals.
2033         (check_p_vars, check_p_comma, check_p_subwork): Remove.
2034         (check_p_count, check_p_numbers0, check_p_numbers1, check_p_numbers2,
2035         check_p_numbers3, check_p_numbers4, check_p_numbers5,
2036         check_p_numbers6): New variables.
2037         (check_p_numbers): Set to sequence from 1 to 9999.
2038         (check_p_subdirs): Set to sequence from 1 to minimum of
2039         $(check_p_count) and either GCC_TEST_PARALLEL_SLOTS env var if set,
2040         or 128.
2041         (check-%, check-parallel-%): Rewritten so that for parallelized
2042         testing each job runs all the *.exp files, with
2043         GCC_RUNTEST_PARALLELIZE_DIR set in environment.
2045 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
2047         * config/arc/arc-protos.h (arc_attr_type): Strengthen param from
2048         rtx to rtx_insn *.
2049         (arc_sets_cc_p): Likewise.
2050         * config/arc/arc.c (arc_print_operand): Use methods of
2051         "final_sequence" for clarity, and to enable strengthening of
2052         locals "jump" and "delay" from rtx to rtx_insn *.
2053         (arc_adjust_insn_length): Strengthen local "prev" from rtx to
2054         rtx_insn *; use method of rtx_sequence for typesafety.
2055         (arc_get_insn_variants): Use insn method of rtx_sequence for
2056         typesafety.
2057         (arc_pad_return): Likewise.
2058         (arc_attr_type): Strengthen param from rtx to rtx_insn *.
2059         (arc_sets_cc_p): Likewise.  Also, convert a GET_CODE check to a
2060         dyn_cast to rtx_sequence *, using insn method for typesafety.
2061         * config/arc/arc.h (ADJUST_INSN_LENGTH): Add checked casts to
2062         rtx_sequence * and use insn method when invoking get_attr_length.
2063         * config/bfin/bfin.c (type_for_anomaly): Strengthen param from rtx
2064         to rtx_insn *.  Replace a GET_CODE check with a dyn_cast to
2065         rtx_sequence *, introducing a local "seq", using its insn method
2066         from typesafety and clarity.
2067         (add_sched_insns_for_speculation): Strengthen local "next" from
2068         rtx to rtx_insn *.
2069         * config/c6x/c6x.c (get_insn_side): Likewise for param "insn".
2070         (predicate_insn): Likewise.
2071         * config/cris/cris-protos.h (cris_notice_update_cc): Likewise for
2072         second param.
2073         * config/cris/cris.c (cris_notice_update_cc): Likewise.
2074         * config/epiphany/epiphany-protos.h
2075         (extern void epiphany_insert_mode_switch_use): Likewise for param
2076         "insn".
2077         (get_attr_sched_use_fpu): Likewise for param.
2078         * config/epiphany/epiphany.c (epiphany_insert_mode_switch_use):
2079         Likewise for param "insn".
2080         * config/epiphany/mode-switch-use.c (insert_uses): Likewise for
2081         param "insn" of "target_insert_mode_switch_use" callback.
2082         * config/frv/frv.c (frv_insn_unit): Likewise for param "insn".
2083         (frv_issues_to_branch_unit_p): Likewise.
2084         (frv_pack_insn_p): Likewise.
2085         (frv_compare_insns): Strengthen locals "insn1" and "insn2" from
2086         const rtx * (i.e. mutable rtx_def * const *) to
2087         rtx_insn * const *.
2088         * config/i386/i386-protos.h (standard_sse_constant_opcode):
2089         Strengthen first param from rtx to rtx_insn *.
2090         (output_fix_trunc): Likewise.
2091         * config/i386/i386.c (standard_sse_constant_opcode): Likewise.
2092         (output_fix_trunc): Likewise.
2093         (core2i7_first_cycle_multipass_filter_ready_try): Likewise for
2094         local "insn".
2095         (min_insn_size): Likewise for param "insn".
2096         (get_mem_group): Likewise.
2097         (is_cmp): Likewise.
2098         (get_insn_path): Likewise.
2099         (get_insn_group): Likewise.
2100         (count_num_restricted): Likewise.
2101         (fits_dispatch_window): Likewise.
2102         (add_insn_window): Likewise.
2103         (add_to_dispatch_window): Likewise.
2104         (debug_insn_dispatch_info_file): Likewise.
2105         * config/m32c/m32c-protos.h (m32c_output_compare): Likewise for
2106         first param.
2107         * config/m32c/m32c.c (m32c_compare_redundant): Likewise for param
2108         "cmp" and local "prev".
2109         (m32c_output_compare): Likewise for param "insn".
2110         * config/m32r/predicates.md (define_predicate "small_insn_p"): Add
2111         a checked cast to rtx_insn * on "op" after we know it's an INSN_P.
2112         (define_predicate "large_insn_p"): Likewise.
2113         * config/m68k/m68k-protos.h (m68k_sched_attr_size): Strengthen
2114         param from rtx to rtx_insn *.
2115         (attr_op_mem m68k_sched_attr_op_mem): Likewise.
2116         * config/m68k/m68k.c (sched_get_attr_size_int): Likewise.
2117         (m68k_sched_attr_size): Likewise.
2118         (sched_get_opxy_mem_type): Likewise for param "insn".
2119         (m68k_sched_attr_op_mem): Likewise.
2120         (sched_mem_operand_p): Likewise.
2121         * config/mep/mep-protos.h (mep_multi_slot): Likewise for param.
2122         * config/mep/mep.c (mep_multi_slot): Likewise.
2123         * config/mips/mips-protos.h (mips_output_sync_loop): Likewise for
2124         first param.
2125         (mips_sync_loop_insns): Likewise.
2126         * config/mips/mips.c (mips_print_operand_punctuation): Use insn
2127         method of "final_sequence" for typesafety.
2128         (mips_process_sync_loop): Strengthen param "insn" from rtx to
2129         rtx_insn *.
2130         (mips_output_sync_loop): Likewise.
2131         (mips_sync_loop_insns): Likewise.
2132         (mips_74k_agen_init): Likewise.
2133         (mips_sched_init): Use NULL rather than NULL_RTX when working with
2134         insns.
2135         * config/nds32/nds32-fp-as-gp.c (nds32_symbol_load_store_p):
2136         Strengthen param "insn" from rtx to rtx_insn *.
2137         * config/nds32/nds32.c (nds32_target_alignment): Likewise for
2138         local "insn".
2139         * config/pa/pa-protos.h (pa_insn_refs_are_delayed): Likewise for
2140         param.
2141         * config/pa/pa.c (pa_output_function_epilogue): Likewise for local
2142         "insn".  Use method of rtx_sequence for typesafety.
2143         (branch_to_delay_slot_p): Strengthen param "insn" from rtx to
2144         rtx_insn *.
2145         (branch_needs_nop_p): Likewise.
2146         (use_skip_p): Likewise.
2147         (pa_insn_refs_are_delayed): Likewise.
2148         * config/rl78/rl78.c (rl78_propogate_register_origins): Likewise
2149         for locals "insn", "ninsn".
2150         * config/rs6000/rs6000.c (is_microcoded_insn): Likewise for param
2151         "insn".
2152         (is_cracked_insn): Likewise.
2153         (is_branch_slot_insn): Likewise.
2154         (is_nonpipeline_insn): Likewise.
2155         (insn_terminates_group_p): Likewise.
2156         (insn_must_be_first_in_group): Likewise.
2157         (insn_must_be_last_in_group): Likewise.
2158         (force_new_group): Likewise for param "next_insn".
2159         * config/s390/s390.c (s390_get_sched_attrmask): Likewise for param
2160         "insn".
2161         (s390_sched_score): Likewise.
2162         * config/sh/sh-protos.h (output_branch): Likewise for param 2.
2163         (rtx sfunc_uses_reg): Likewise for sole param.
2164         * config/sh/sh.c (sh_print_operand): Use insn method of
2165         final_sequence for typesafety.
2166         (output_branch): Strengthen param "insn" from rtx to rtx_insn *.
2167         Use insn method of final_sequence for typesafety.
2168         (sfunc_uses_reg): Strengthen param "insn" from rtx to rtx_insn *.
2169         * config/sparc/sparc-protos.h (eligible_for_call_delay): Likewise
2170         for param.
2171         (eligible_for_return_delay): Likewise.
2172         (eligible_for_sibcall_delay): Likewise.
2173         * config/sparc/sparc.c (eligible_for_call_delay): Likewise.
2174         (eligible_for_return_delay): Likewise.
2175         (eligible_for_sibcall_delay): Likewise.
2176         * config/stormy16/stormy16-protos.h
2177         (xstormy16_output_cbranch_hi): Likewise for final param.
2178         (xstormy16_output_cbranch_si): Likewise.
2179         * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi): LIkewise.
2180         (xstormy16_output_cbranch_si): Likewise.
2181         * config/v850/v850-protos.h (notice_update_cc): Likewise.
2182         * config/v850/v850.c (notice_update_cc): Likewise.
2184         * final.c (get_attr_length_1): Strengthen param "insn" and param
2185         of "fallback_fn" from rtx to rtx_insn *, eliminating a checked cast.
2186         (get_attr_length): Strengthen param "insn" from rtx to rtx_insn *.
2187         (get_attr_min_length): Likewise.
2188         (shorten_branches): Likewise for signature of locals "length_fun"
2189         and "inner_length_fun".  Introduce local rtx_sequence * "seqn"
2190         from a checked cast and use its methods for clarity and to enable
2191         strengthening local "inner_insn" from rtx to rtx_insn *.
2192         * genattr.c (gen_attr): When writing out the prototypes of the
2193         various generated "get_attr_" functions, strengthen the params of
2194         the non-const functions from rtx to rtx_insn *.
2195         Similarly, strengthen the params of insn_default_length,
2196         insn_min_length, insn_variable_length_p, insn_current_length.
2197         (main): Similarly, strengthen the param of num_delay_slots,
2198         internal_dfa_insn_code, insn_default_latency, bypass_p,
2199         insn_latency, min_issue_delay, print_reservation,
2200         insn_has_dfa_reservation_p and of the "internal_dfa_insn_code" and
2201         "insn_default_latency" callbacks.  Rename hook_int_rtx_unreachable
2202         to hook_int_rtx_insn_unreachable.
2203         * genattrtab.c (write_attr_get): When writing out the generated
2204         "get_attr_" functions, strengthen the param "insn" from rtx to
2205         rtx_insn *, eliminating a checked cast.
2206         (make_automaton_attrs): When writing out prototypes of
2207         "internal_dfa_insn_code_", "insn_default_latency_" functions
2208         and the "internal_dfa_insn_code" and "insn_default_latency"
2209         callbacks, strengthen their params from rtx to rtx_insn *
2210         * genautomata.c (output_internal_insn_code_evaluation): When
2211         writing out code, add a checked cast from rtx to rtx_insn * when
2212         invoking DFA_INSN_CODE_FUNC_NAME aka dfa_insn_code.
2213         (output_dfa_insn_code_func): Strengthen param of generated
2214         function "dfa_insn_code_enlarge" from rtx to rtx_insn *.
2215         (output_trans_func): Likewise for generated function
2216         "state_transition".
2217         (output_internal_insn_latency_func): When writing out generated
2218         function "internal_insn_latency", rename params from "insn" and
2219         "insn2" to "insn_or_const0" and "insn2_or_const0".  Reintroduce
2220         locals "insn" and "insn2" as rtx_insn * with checked casts once
2221         we've proven that we're not dealing with const0_rtx.
2222         (output_insn_latency_func):  Strengthen param of generated
2223         function "insn_latency" from rtx to rtx_insn *.
2224         (output_print_reservation_func): Likewise for generated function
2225         "print_reservation".
2226         (output_insn_has_dfa_reservation_p): Likewise for generated
2227         function "insn_has_dfa_reservation_p".
2228         * hooks.c (hook_int_rtx_unreachable): Rename to...
2229         (hook_int_rtx_insn_unreachable): ...this, and strengthen param
2230         from rtx to rtx_insn *.
2231         * hooks.h (hook_int_rtx_unreachable): Likewise.
2232         (extern int hook_int_rtx_insn_unreachable): Likewise.
2233         * output.h (get_attr_length): Strengthen param from rtx to rtx_insn *.
2234         (get_attr_min_length): Likewise.
2235         * recog.c (get_enabled_alternatives): Likewise.
2236         * recog.h (alternative_mask get_enabled_alternatives): Likewise.
2237         * reorg.c (find_end_label): Introduce local rtx "pat" and
2238         strengthen local "insn" from rtx to rtx_insn *.
2239         (redundant_insn): Use insn method of "seq" rather than element for
2240         typesafety; strengthen local "control" from rtx to rtx_insn *.
2241         * resource.c (mark_referenced_resources): Add checked cast to
2242         rtx_insn * within INSN/JUMP_INSN case.
2243         (mark_set_resources): Likewise.
2244         * sel-sched.c (estimate_insn_cost): Strengthen param "insn" from
2245         rtx to rtx_insn *.
2247 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
2249         * config/rs6000/rs6000.c (rs6000_loop_align_max_skip): Strengthen
2250         param "label" from rtx to rtx_insn *.
2251         * config/rx/rx.c (rx_max_skip_for_label): Likewise for param "lab"
2252         and local "op".
2253         * doc/tm.texi (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Autogenerated changes.
2254         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Likewise.
2255         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
2256         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
2257         * final.c (default_label_align_after_barrier_max_skip): Strengthen
2258         param from rtx to rtx_insn *.
2259         (default_loop_align_max_skip): Likewise.
2260         (default_label_align_max_skip): Likewise.
2261         (default_jump_align_max_skip): Likewise.
2262         * target.def (label_align_after_barrier_max_skip): Likewise.
2263         (loop_align_max_skip): Likewise.
2264         (label_align_max_skip): Likewise.
2265         (jump_align_max_skip): Likewise.
2266         * targhooks.h (default_label_align_after_barrier_max_skip):
2267         Likewise.
2268         (default_loop_align_max_skip): Likewise.
2269         (default_label_align_max_skip): Likewise.
2270         (default_jump_align_max_skip): Likewise.
2272 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
2274         * config/arc/arc.c (arc_can_follow_jump): Strengthen both params
2275         from const_rtx to const rtx_insn *.  Update union members from rtx
2276         to rtx_insn *.
2277         * doc/tm.texi (TARGET_CAN_FOLLOW_JUMP): Autogenerated change.
2278         * hooks.c (hook_bool_const_rtx_const_rtx_true): Rename to...
2279         (hook_bool_const_rtx_insn_const_rtx_insn_true): ...this, and
2280         strengthen both params from const_rtx to const rtx_insn *.
2281         * hooks.h (hook_bool_const_rtx_const_rtx_true): Likewise.
2282         (hook_bool_const_rtx_insn_const_rtx_insn_true): Likewise.
2283         * reorg.c (follow_jumps): Strengthen param "jump" from rtx to
2284         rtx_insn *.
2285         * target.def (can_follow_jump): Strengthen both params from
2286         const_rtx to const rtx_insn *, and update default implementation
2287         from hook_bool_const_rtx_const_rtx_true to
2288         hook_bool_const_rtx_insn_const_rtx_insn_true.
2290 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
2292         * sched-deps.c (deps_start_bb): Strengthen param "head" and local
2293         "insn" from rtx to rtx_insn *.
2294         * sched-int.h (deps_start_bb): Likewise for 2nd param.
2296 2014-09-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2297             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2298             Anna Tikhonova  <anna.tikhonova@intel.com>
2299             Ilya Tocar  <ilya.tocar@intel.com>
2300             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2301             Ilya Verbin  <ilya.verbin@intel.com>
2302             Kirill Yukhin  <kirill.yukhin@intel.com>
2303             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2305         * config/i386/sse.md
2306         (define_insn "vcvtph2ps<mask_name>"): Add masking.
2307         (define_insn "*vcvtph2ps_load<mask_name>"): Ditto.
2308         (define_insn "vcvtph2ps256<mask_name>"): Ditto.
2309         (define_expand "vcvtps2ph_mask"): New.
2310         (define_insn "*vcvtps2ph<mask_name>"): Add masking.
2311         (define_insn "*vcvtps2ph_store<mask_name>"): Ditto.
2312         (define_insn "vcvtps2ph256<mask_name>"): Ditto.
2314 2014-09-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2315             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2316             Anna Tikhonova  <anna.tikhonova@intel.com>
2317             Ilya Tocar  <ilya.tocar@intel.com>
2318             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2319             Ilya Verbin  <ilya.verbin@intel.com>
2320             Kirill Yukhin  <kirill.yukhin@intel.com>
2321             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2323         * config/i386/sse.md (define_mode_iterator VI248_AVX512BW_AVX512VL):
2324         New.
2325         (define_mode_iterator VI24_AVX512BW_1): Ditto.
2326         (define_insn "<mask_codefor>ashr<mode>3<mask_name>"): Ditto.
2327         (define_insn "<mask_codefor>ashrv2di3<mask_name>"): Ditto.
2328         (define_insn "ashr<VI248_AVX512BW_AVX512VL:mode>3<mask_name>"): Enable
2329         also for TARGET_AVX512VL.
2330         (define_expand "ashrv2di3"): Update to enable TARGET_AVX512VL.
2332 2014-09-15  Markus Trippelsdorf  <markus@trippelsdorf.de>
2334         * doc/install.texi (Options specification): add
2335         --disable-libsanitizer item.
2337 2014-09-14  James Clarke  <jrtc27@jrtc27.com>
2338             Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2340         PR target/61407
2341         * config/darwin-c.c (version_as_macro): Added extra 0 for OS X 10.10
2342         and above.
2343         * config/darwin-driver.c (darwin_find_version_from_kernel): Removed
2344         kernel version check to avoid incrementing it after every major OS X
2345         release.
2346         (darwin_default_min_version): Avoid static memory buffer.
2348 2014-09-13  Jan Hubicka  <hubicka@ucw.cz>
2350         * tree.c (need_assembler_name_p): Store C++ type mangling only
2351         for aggregates.
2353 2014-09-13  Marek Polacek  <polacek@redhat.com>
2355         * tree.c (protected_set_expr_location): Don't check whether T is
2356         non-null here.
2358 2014-09-12  DJ Delorie  <dj@redhat.com>
2360         * config/msp430/msp430.md (extendhipsi2): Use 20-bit form of RLAM/RRAM.
2361         (extend_and_shift1_hipsi2): Likewise.
2362         (extend_and_shift2_hipsi2): Likewise.
2364 2014-09-12  David Malcolm  <dmalcolm@redhat.com>
2366         * config/alpha/alpha.c (alpha_ra_ever_killed): Replace NULL_RTX
2367         with NULL when dealing with an insn.
2368         * config/sh/sh.c (sh_reorg): Strengthen local "last_float_move"
2369         from rtx to rtx_insn *.
2370         * rtl.h (reg_set_between_p): Strengthen params 2 and 3 from
2371         const_rtx to const rtx_insn *.
2372         * rtlanal.c (reg_set_between_p): Likewise, removing a checked cast.
2374 2014-09-12  Trevor Saunders  <tsaunders@mozilla.com>
2376         * hash-table.h (gt_pch_nx): Don't call gt_pch_note_object within an
2377         assert.
2379 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
2381         * target.def (libgcc_floating_mode_supported_p): New hook.
2382         * targhooks.c (default_libgcc_floating_mode_supported_p): New
2383         function.
2384         * targhooks.h (default_libgcc_floating_mode_supported_p): Declare.
2385         * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE, LIBGCC2_HAS_XF_MODE)
2386         (LIBGCC2_HAS_TF_MODE): Remove.
2387         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): New @hook.
2388         * doc/tm.texi: Regenerate.
2389         * genmodes.c (emit_insn_modes_h): Define HAVE_%smode for each
2390         machine mode.
2391         * system.h (LIBGCC2_HAS_SF_MODE, LIBGCC2_HAS_DF_MODE)
2392         (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE): Poison.
2393         * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE): Remove.
2394         * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE): Remove.
2395         * config/i386/djgpp.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
2396         * config/i386/dragonfly.h (LIBGCC2_HAS_TF_MODE): Remove.
2397         * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE): Remove.
2398         * config/i386/gnu-user-common.h (LIBGCC2_HAS_TF_MODE): Remove.
2399         * config/i386/i386-interix.h (IX86_NO_LIBGCC_TFMODE): Define.
2400         * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p): New
2401         function.
2402         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
2403         * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
2404         * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
2405         * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
2406         * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
2407         * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
2408         * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
2409         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE): Remove.
2410         * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Define.
2411         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Remove.
2412         * config/i386/vx-common.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
2413         * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Define.
2414         * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Define.
2415         * config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE):
2416         Remove.
2417         * config/ia64/ia64.c (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P):
2418         New macro.
2419         (ia64_libgcc_floating_mode_supported_p): New function.
2420         * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): Remove.
2421         * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
2422         (IA64_NO_LIBGCC_TFMODE): Define.
2423         * config/msp430/msp430.h (LIBGCC2_HAS_DF_MODE): Remove.
2424         * config/pdp11/pdp11.c (TARGET_SCALAR_MODE_SUPPORTED_P): New
2425         macro.
2426         (pdp11_scalar_mode_supported_p): New function.
2427         * config/rl78/rl78.h (LIBGCC2_HAS_DF_MODE): Remove.
2428         * config/rx/rx.h (LIBGCC2_HAS_DF_MODE): Remove.
2430 2014-09-12  Richard Biener  <rguenther@suse.de>
2432         PR middle-end/63237
2433         * gimple-fold.c (get_maxval_strlen): Gimplify string length.
2435 2014-09-12  Marc Glisse  <marc.glisse@inria.fr>
2437         * tree.c (integer_each_onep): New function.
2438         * tree.h (integer_each_onep): Declare it.
2439         * fold-const.c (fold_binary_loc): Use it for ~A + 1 to -A and
2440         -A - 1 to ~A.  Disable (X & 1) ^ 1, (X ^ 1) & 1 and ~X & 1 to
2441         (X & 1) == 0 for vector and complex.
2443 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
2445         * gcc/config/aarch64/aarch64.c (cortexa57_regmove_cost): New cost table
2446         for A57.
2447         (cortexa53_regmove_cost): New cost table for A53.  Increase GP2FP/FP2GP
2448         cost to spilling from integer to FP registers.
2450 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
2452         * config/aarch64/aarch64.c (aarch64_register_move_cost): Fix Q register
2453         move handling.
2454         (generic_regmove_cost): Undo raised FP2FP move cost as Q register moves
2455         are now handled correctly.
2457 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
2459         * config/aarch64/aarch64.c (aarch64_register_move_cost): Add cost
2460         handling of CALLER_SAVE_REGS and POINTER_REGS.
2462 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
2464         * gcc/ree.c (combine_reaching_defs): Ensure inserted copy don't change
2465         the number of hard registers.
2467 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2468             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2469             Anna Tikhonova  <anna.tikhonova@intel.com>
2470             Ilya Tocar  <ilya.tocar@intel.com>
2471             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2472             Ilya Verbin  <ilya.verbin@intel.com>
2473             Kirill Yukhin  <kirill.yukhin@intel.com>
2474             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2476         * config/i386/sse.md
2477         (define_mode_iterator VI48_AVX512VL): New.
2478         (define_expand "<avx512>_vternlog<mode>_maskz"): Rename from
2479         "avx512f_vternlog<mode>_maskz" and update mode iterator.
2480         (define_insn "<avx512>_vternlog<mode><sd_maskz_name>"): Rename
2481         from "avx512f_vternlog<mode><sd_maskz_name>" and update mode iterator.
2482         (define_insn "<avx512>_vternlog<mode>_mask"): Rename from
2483         "avx512f_vternlog<mode>_mask" and update mode iterator.
2484         (define_insn "<mask_codefor><avx512>_align<mode><mask_name>"): Rename
2485         from "<mask_codefor>avx512f_align<mode><mask_name>" and update mode
2486         iterator.
2487         (define_insn "<avx512>_<rotate>v<mode><mask_name>"): Rename from
2488         "avx512f_<rotate>v<mode><mask_name>" and update mode iterator.
2489         (define_insn "<avx512>_<rotate><mode><mask_name>"): Rename from
2490         "avx512f_<rotate><mode><mask_name>" and update mode iterator.
2491         (define_insn "clz<mode>2<mask_name>"): Use VI48_AVX512VL mode iterator.
2492         (define_insn "<mask_codefor>conflict<mode><mask_name>"): Ditto.
2494 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2495             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2496             Anna Tikhonova  <anna.tikhonova@intel.com>
2497             Ilya Tocar  <ilya.tocar@intel.com>
2498             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2499             Ilya Verbin  <ilya.verbin@intel.com>
2500             Kirill Yukhin  <kirill.yukhin@intel.com>
2501             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2503         * config/i386/sse.md (VI128_256): Delete.
2504         (define_mode_iterator VI124_256): New.
2505         (define_mode_iterator VI124_256_AVX512F_AVX512BW): Ditto.
2506         (define_expand "<code><mode>3<mask_name><round_name>"): Delete.
2507         (define_expand "<code><VI124_256_AVX512F_AVX512BW:mode>3"): New.
2508         (define_insn "*avx2_<code><VI124_256:mode>3"): Rename from
2509         "*avx2_<code><mode>3<mask_name><round_name>" and update mode iterator.
2510         (define_expand "<code><VI48_AVX512VL:mode>3_mask"): New.
2511         (define_insn "*avx512bw_<code><VI48_AVX512VL:mode>3<mask_name>"): Ditto.
2512         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Update mode
2513         iterator.
2514         (define_expand "<code><VI8_AVX2:mode>3"): Update pettern generation
2515         in presence of AVX-512.
2517 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2518             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2519             Anna Tikhonova  <anna.tikhonova@intel.com>
2520             Ilya Tocar  <ilya.tocar@intel.com>
2521             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2522             Ilya Verbin  <ilya.verbin@intel.com>
2523             Kirill Yukhin  <kirill.yukhin@intel.com>
2524             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2526         * config/i386/sse.md
2527         (define_expand "<avx512>_gathersi<mode>"): Rename from
2528         "avx512f_gathersi<mode>".
2529         (define_insn "*avx512f_gathersi<mode>"): Use VI48F.
2530         (define_insn "*avx512f_gathersi<mode>_2"): Ditto.
2531         (define_expand "<avx512>_gatherdi<mode>"): Rename from
2532         "avx512f_gatherdi<mode>".
2533         (define_insn "*avx512f_gatherdi<mode>"): Use VI48F.
2534         (define_insn "*avx512f_gatherdi<mode>_2"): Use VI48F, add 128/256-bit
2535         wide versions.
2536         (define_expand "<avx512>_scattersi<mode>"): Rename from
2537         "avx512f_scattersi<mode>".
2538         (define_insn "*avx512f_scattersi<mode>"): Use VI48F.
2539         (define_expand "<avx512>_scatterdi<mode>"): Rename from
2540         "avx512f_scatterdi<mode>".
2541         (define_insn "*avx512f_scatterdi<mode>"): Use VI48F.
2543 2014-09-12  Richard Sandiford  <richard.sandiford@arm.com>
2545         * ira.h (ira_finish_once): Delete.
2546         * ira-int.h (target_ira_int::~target_ira_int): Declare.
2547         (target_ira_int::free_ira_costs): Likewise.
2548         (target_ira_int::free_register_move_costs): Likewise.
2549         (ira_finish_costs_once): Delete.
2550         * ira.c (free_register_move_costs): Replace with...
2551         (target_ira_int::free_register_move_costs): ...this new function.
2552         (target_ira_int::~target_ira_int): Define.
2553         (ira_init): Call free_register_move_costs as a member function rather
2554         than a global function.
2555         (ira_finish_once): Delete.
2556         * ira-costs.c (free_ira_costs): Replace with...
2557         (target_ira_int::free_ira_costs): ...this new function.
2558         (ira_init_costs): Call free_ira_costs as a member function rather
2559         than a global function.
2560         (ira_finish_costs_once): Delete.
2561         * target-globals.c (target_globals::~target_globals): Call the
2562         target_ira_int destructor.
2563         * toplev.c: Include lra.h.
2564         (finalize): Call lra_finish_once rather than ira_finish_once.
2566 2014-09-11  Jan Hubicka  <hubicka@ucw.cz>
2568         * common.opt (flto-odr-type-merging): New flag.
2569         * ipa-deivrt.c (hash_type_name): Use ODR names for hasing if availale.
2570         (types_same_for_odr): Likewise.
2571         (odr_subtypes_equivalent_p): Likewise.
2572         (add_type_duplicate): Do not walk type variants.
2573         (register_odr_type): New function.
2574         * ipa-utils.h (register_odr_type): Declare.
2575         (odr_type_p): New function.
2576         * langhooks.c (lhd_set_decl_assembler_name): Do not compute
2577         TYPE_DECLs
2578         * doc/invoke.texi (-flto-odr-type-merging): Document.
2579         * tree.c (need_assembler_name_p): Compute ODR names when asked
2580         for it.
2581         * tree.h (DECL_ASSEMBLER_NAME): Update comment.
2583 2014-09-11  H.J. Lu  <hongjiu.lu@intel.com>
2585         PR target/63228
2586         * config/i386/i386.c (ix86_option_override_internal): Also turn
2587         off OPTION_MASK_ABI_X32 for -m16.
2589 2014-09-11  Segher Boessenkool  <segher@kernel.crashing.org>
2591         * config/rs6000/rs6000.md (rs6000_mftb_<mode>): Use mode iterator
2592         GPR instead of P.
2594 2014-09-11  Marc Glisse  <marc.glisse@inria.fr>
2596         PR target/58757
2597         * ginclude/float.h (FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
2598         Directly forward to __*_DENORM_MIN__.
2600 2014-09-11  David Malcolm  <dmalcolm@redhat.com>
2602         * rtl.h (LABEL_REF_LABEL): New macro.
2604         * alias.c (rtx_equal_for_memref_p): Use LABEL_REF_LABEL in place
2605         of XEXP (, 0), where we know that we have a LABEL_REF.
2606         * cfgbuild.c (make_edges): Likewise.
2607         (purge_dead_tablejump_edges): Likewise.
2608         * cfgexpand.c (convert_debug_memory_address): Likewise.
2609         * cfgrtl.c (patch_jump_insn): Likewise.
2610         * combine.c (distribute_notes): Likewise.
2611         * cse.c (hash_rtx_cb): Likewise.
2612         (exp_equiv_p): Likewise.
2613         (fold_rtx): Likewise.
2614         (check_for_label_ref): Likewise.
2615         * cselib.c (rtx_equal_for_cselib_1): Likewise.
2616         (cselib_hash_rtx): Likewise.
2617         * emit-rtl.c (mark_label_nuses): Likewise.
2618         * explow.c (convert_memory_address_addr_space): Likewise.
2619         * final.c (output_asm_label): Likewise.
2620         (output_addr_const): Likewise.
2621         * gcse.c (add_label_notes): Likewise.
2622         * genconfig.c (walk_insn_part): Likewise.
2623         * genrecog.c (validate_pattern): Likewise.
2624         * ifcvt.c (cond_exec_get_condition): Likewise.
2625         (noce_emit_store_flag): Likewise.
2626         (noce_get_alt_condition): Likewise.
2627         (noce_get_condition): Likewise.
2628         * jump.c (maybe_propagate_label_ref): Likewise.
2629         (mark_jump_label_1): Likewise.
2630         (redirect_exp_1): Likewise.
2631         (rtx_renumbered_equal_p): Likewise.
2632         * lra-constraints.c (operands_match_p): Likewise.
2633         * reload.c (operands_match_p): Likewise.
2634         (find_reloads): Likewise.
2635         * reload1.c (set_label_offsets): Likewise.
2636         * reorg.c (get_branch_condition): Likewise.
2637         * rtl.c (rtx_equal_p_cb): Likewise.
2638         (rtx_equal_p): Likewise.
2639         * rtlanal.c (reg_mentioned_p): Likewise.
2640         (rtx_referenced_p): Likewise.
2641         (get_condition): Likewise.
2642         * sched-vis.c (print_value): Likewise.
2643         * varasm.c (const_hash_1): Likewise.
2644         (compare_constant): Likewise.
2645         (const_rtx_hash_1): Likewise.
2646         (output_constant_pool_1): Likewise.
2648 2014-09-11  Segher Boessenkool  <segher@kernel.crashing.org>
2650         * config/rs6000/htm.md (tabort, tabortdc, tabortdci, tabortwc,
2651         tabortwci, tbegin, tcheck, tend, trechkpt, treclaim, tsr): Use xor
2652         instead of minus.
2653         * config/rs6000/vector.md (cr6_test_for_zero_reverse,
2654         cr6_test_for_lt_reverse): Ditto.
2656 2014-09-11  Paolo Carlini  <paolo.carlini@oracle.com>
2658         PR c++/61489
2659         * doc/invoke.texi ([-Wmissing-field-initializers]): Update.
2661 2014-09-11  Alan Lawrence  <alan.lawrence@arm.com>
2663         * config/aarch64/aarch64-builtins.c (aarch64_types_unop_su_qualifiers,
2664         TYPES_REINTERP_SU, aarch64_types_unop_sp_qualifiers, TYPE_REINTERP_SP,
2665         aarch64_types_unop_us_qualifiers, TYPES_REINTERP_US,
2666         aarch64_types_unop_ps_qualifiers, TYPES_REINTERP_PS, BUILTIN_VD):
2667         Delete.
2669         (aarch64_fold_builtin): Remove all reinterpret cases.
2671         * config/aarch64/aarch64-protos.h (aarch64_simd_reinterpret): Delete.
2673         * config/aarch64/aarch64-simd-builtins.def (reinterpret*) : Delete.
2675         * config/aarch64/aarch64-simd.md (aarch64_reinterpretv8qi<mode>,
2676         aarch64_reinterpretv4hi<mode>, aarch64_reinterpretv2si<mode>,
2677         aarch64_reinterpretv2sf<mode>, aarch64_reinterpretdi<mode>,
2678         aarch64_reinterpretv1df<mode>, aarch64_reinterpretv16qi<mode>,
2679         aarch64_reinterpretv8hi<mode>, aarch64_reinterpretv4si<mode>,
2680         aarch64_reinterpretv4sf<mode>, aarch64_reinterpretv2di<mode>,
2681         aarch64_reinterpretv2df<mode>): Delete.
2683         * config/aarch64/aarch64.c (aarch64_simd_reinterpret): Delete.
2685         * config/aarch64/arm_neon.h (vreinterpret_p8_f64,
2686         vreinterpret_p16_f64, vreinterpret_f32_f64, vreinterpret_f64_f32,
2687         vreinterpret_f64_p8, vreinterpret_f64_p16, vreinterpret_f64_s8,
2688         vreinterpret_f64_s16, vreinterpret_f64_s32, vreinterpret_f64_u8,
2689         vreinterpret_f64_u16, vreinterpret_f64_u32, vreinterpret_s64_f64,
2690         vreinterpret_u64_f64, vreinterpret_s8_f64, vreinterpret_s16_f64,
2691         vreinterpret_s32_f64, vreinterpret_u8_f64, vreinterpret_u16_f64,
2692         vreinterpret_u32_f64): Use cast.
2694         * config/aarch64/iterators.md (VD_RE): Delete.
2696 2014-09-11  Alan Lawrence  <alan.lawrence@arm.com>
2698         * config/aarch64/arm_neon.h (aarch64_vset_lane_any): New (*2).
2699         (vset_lane_f32, vset_lane_f64, vset_lane_p8, vset_lane_p16,
2700         vset_lane_s8, vset_lane_s16, vset_lane_s32, vset_lane_s64,
2701         vset_lane_u8, vset_lane_u16, vset_lane_u32, vset_lane_u64,
2702         vsetq_lane_f32, vsetq_lane_f64, vsetq_lane_p8, vsetq_lane_p16,
2703         vsetq_lane_s8, vsetq_lane_s16, vsetq_lane_s32, vsetq_lane_s64,
2704         vsetq_lane_u8, vsetq_lane_u16, vsetq_lane_u32, vsetq_lane_u64):
2705         Replace inline assembler with __aarch64_vset_lane_any.
2707 2014-09-11  James Greenhalgh  <james.greenhalgh@arm.com>
2709         * config/aarch64/arm_neon.h (vmull_high_lane_s16): Fix argument
2710         types.
2711         (vmull_high_lane_s32): Likewise.
2712         (vmull_high_lane_u16): Likewise.
2713         (vmull_high_lane_u32): Likewise.
2715 2014-09-11  Jason Merrill  <jason@redhat.com>
2717         PR c++/58678
2718         * ipa-devirt.c (ipa_devirt): Don't check DECL_COMDAT.
2720 2014-09-11  Georg-Johann Lay  <avr@gjlay.de>
2722         PR target/63223
2723         * config/avr/avr.md (*tablejump.3byte-pc): New insn.
2724         (*tablejump): Restrict to !AVR_HAVE_EIJMP_EICALL.  Add void clobber.
2725         (casesi): Expand to *tablejump.3byte-pc if AVR_HAVE_EIJMP_EICALL.
2727 2014-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2728             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2729             Anna Tikhonova  <anna.tikhonova@intel.com>
2730             Ilya Tocar  <ilya.tocar@intel.com>
2731             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2732             Ilya Verbin  <ilya.verbin@intel.com>
2733             Kirill Yukhin  <kirill.yukhin@intel.com>
2734             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2736         * config/i386/sse.md
2737         (define_expand "<avx512>_vpermi2var<VI48F:mode>3_maskz"): Rename from
2738         "avx512f_vpermi2var<mode>3_maskz" and update mode iterator.
2739         (define_expand "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_maskz"):
2740         New.
2741         (define_insn "<avx512>_vpermi2var<VI48F:mode>3<sd_maskz_name>"): Rename
2742         from "avx512f_vpermi2var<mode>3<sd_maskz_name>" and update mode
2743         iterator.
2744         (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
2745         New.
2746         (define_insn "<avx512>_vpermi2var<VI48F:mode>3_mask"): Rename from
2747         "avx512f_vpermi2var<mode>3_mask" and update mode iterator.
2748         (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_mask"): New.
2749         (define_expand "<avx512>_vpermt2var<VI48F:mode>3_maskz"): Rename from
2750         "avx512f_vpermt2var<mode>3_maskz" and update mode iterator.
2751         (define_expand "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_maskz"): New.
2752         (define_insn "<avx512>_vpermt2var<VI48F:mode>3<sd_maskz_name>"): Rename
2753         from "avx512f_vpermt2var<mode>3<sd_maskz_name>" and update mode
2754         iterator.
2755         (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
2756         New.
2757         (define_insn "<avx512>_vpermt2var<VI48F:mode>3_mask"): Rename from
2758         "avx512f_vpermt2var<mode>3_mask" and update mode iterator.
2759         (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_mask"): New.
2761 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
2763         * varpool.c (varpool_node::ctor_useable_for_folding_p): Do not try
2764         to access removed nodes.
2766 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
2768         PR tree-optimization/63186
2769         * ipa-split.c (test_nonssa_use): Skip nonforced labels.
2770         (mark_nonssa_use): Likewise.
2771         (verify_non_ssa_vars): Verify all header blocks for label
2772         definitions.
2774 2014-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2775             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2776             Anna Tikhonova  <anna.tikhonova@intel.com>
2777             Ilya Tocar  <ilya.tocar@intel.com>
2778             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2779             Ilya Verbin  <ilya.verbin@intel.com>
2780             Kirill Yukhin  <kirill.yukhin@intel.com>
2781             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2783         * config/i386/sse.md
2784         (define_mode_attr avx2_avx512): Rename from avx2_avx512bw.
2785         (define_mode_iterator VI48F_256_512): Extend to AVX-512VL.
2786         (define_insn "<avx2_avx512>_permvar<mode><mask_name>"): Rename from
2787         "<avx2_avx512f>_permvar<mode><mask_name>".
2788         (define_insn "<avx512>_permvar<mode><mask_name>"): New.
2789         (define_insn "<avx2_avx512>_ashrv<VI48_AVX512F_AVX512VL:mode><mask_name>"):
2790         Rename from "<avx2_avx512f>_ashrv<mode><mask_name>".
2791         (define_insn "<avx2_avx512>_ashrv<VI2_AVX512VL:mode><mask_name>"):
2792         Ditto.
2793         (define_insn "<avx2_avx512>_<shift_insn>v<VI48_AVX512F:mode><mask_name>"):
2794         Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
2795         (define_insn "<avx2_avx512>_<shift_insn>v<VI2_AVX512VL:mode><mask_name>"):
2796         Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
2798 2014-09-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
2800         * config/rs6000/vsx.md (vsx_fmav4sf4): Use correct constraints for
2801         V2DF, V4SF, DF, and DI modes.
2802         (vsx_fmav2df2): Likewise.
2803         (vsx_float_fix_<mode>2): Likewise.
2804         (vsx_reduc_<VEC_reduc_name>_v2df_scalar): Likewise.
2806 2014-09-10  Xinliang David Li  <davidxl@google.com>
2808         PR target/63209
2809         * config/arm/arm.md (movcond_addsi): Handle case where source
2810         and target operands are the same.
2812 2014-09-10  David Malcolm  <dmalcolm@redhat.com>
2814         * final.c (this_is_asm_operands): Strengthen this variable from
2815         rtx to const rtx_insn *.
2816         * output.h (this_is_asm_operands): Likewise.
2817         * rtl-error.c (location_for_asm): Strengthen param "insn" from
2818         const_rtx to const rtx_insn *.
2819         (diagnostic_for_asm): Likewise.
2820         * rtl-error.h (error_for_asm): Likewise.
2821         (warning_for_asm): Likewise.
2823 2014-09-10  David Malcolm  <dmalcolm@redhat.com>
2825         * genextract.c (print_header): When writing out insn_extract to
2826         insn-extract.c, strengthen the param "insn" from rtx to rtx_insn *.
2827         * recog.h (insn_extract): Strengthen the param from rtx to
2828         rtx_insn *.
2830 2014-09-10  Mike Stump  <mikestump@comcast.net>
2832         * doc/install.texi (Prerequisites): Note Tcl 8.6 bug fixed in
2833         8.6.1.
2835 2014-09-10  Martin Jambor  <mjambor@suse.cz>
2837         * cgraphunit.c (expand_thunk): If not expanding, set analyzed flag.
2838         (analyze): Do not set analyze flag if expand_thunk returns false;.
2839         (create_wrapper): Likewise.
2840         * cgraphclones.c (duplicate_thunk_for_node): Likewise.
2842 2014-09-10  Martin Jambor  <mjambor@suse.cz>
2844         PR ipa/61654
2845         * cgraphclones.c (duplicate_thunk_for_node): Copy arguments of the
2846         new decl properly.  Analyze the new thunk if it is expanded.
2848 2014-09-10  Andreas Schwab  <schwab@suse.de>
2850         * coretypes.h (struct _dont_use_rtx_insn_here_, rtx_insn)
2851         [USED_FOR_TARGET]: Define.
2853 2014-09-10  Matthew Fortune  <matthew.fortune@imgtec.com>
2855         * config/mips/mips.c (mips_secondary_reload_class): Handle
2856         regno < 0 case.
2858 2014-09-10  Robert Suchanek   <robert.suchanek@imgtec.com>
2860         * lra-lives.c (process_bb_lives): Replace assignment with bitwise OR
2861         assignment.
2863 2014-09-10  Jakub Jelinek  <jakub@redhat.com>
2865         * flag-types.h (enum sanitize_code): Add SANITIZE_NONNULL_ATTRIBUTE
2866         and SANITIZE_RETURNS_NONNULL_ATTRIBUTE, or them into SANITIZE_UNDEFINED.
2867         * opts.c (common_handle_option): Handle SANITIZE_NONNULL_ATTRIBUTE and
2868         SANITIZE_RETURNS_NONNULL_ATTRIBUTE and disable
2869         flag_delete_null_pointer_checks for them.
2870         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
2871         BUILT_IN_UBSAN_HANDLE_NONNULL_ARG_ABORT,
2872         BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN,
2873         BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_ABORT): New.
2874         * ubsan.c (instrument_bool_enum_load): Set *gsi back to
2875         stmt's iterator.
2876         (instrument_nonnull_arg, instrument_nonnull_return): New functions.
2877         (pass_ubsan::gate): Return true even for SANITIZE_NONNULL_ATTRIBUTE
2878         or SANITIZE_RETURNS_NONNULL_ATTRIBUTE.
2879         (pass_ubsan::execute): Call instrument_nonnull_{arg,return}.
2880         * doc/invoke.texi (-fsanitize=nonnull-attribute,
2881         -fsanitize=returns-nonnull-attribute): Document.
2883         * ubsan.h (struct ubsan_mismatch_data): Removed.
2884         (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
2885         * ubsan.c (ubsan_source_location): For unknown locations,
2886         pass { NULL, 0, 0 } instead of { "<unknown>", x, y }.
2887         (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
2888         Allow more than one location and arbitrary extra arguments passed
2889         in ... instead of through MISMATCH pointer.
2890         (ubsan_instrument_unreachable, ubsan_expand_bounds_ifn,
2891         ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
2892         instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
2893         callers.
2895 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2896             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2897             Anna Tikhonova  <anna.tikhonova@intel.com>
2898             Ilya Tocar  <ilya.tocar@intel.com>
2899             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2900             Ilya Verbin  <ilya.verbin@intel.com>
2901             Kirill Yukhin  <kirill.yukhin@intel.com>
2902             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2904         * config/i386/sse.md
2905         (define_mode_iterator VI48F): New.
2906         (define_insn "<avx512>_compress<mode>_mask"): Rename from
2907         "avx512f_compress<mode>_mask" and update mode iterator.
2908         (define_insn "<avx512>_compressstore<mode>_mask"): Rename from
2909         "avx512f_compressstore<mode>_mask" and update mode iterator.
2910         (define_expand "<avx512>_expand<mode>_maskz"): Rename from
2911         "avx512f_expand<mode>_maskz" and update mode iterator.
2912         (define_insn "<avx512>_expand<mode>_mask"): Rename from
2913         "avx512f_expand<mode>_mask" and update mode iterator.
2915 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2916             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2917             Anna Tikhonova  <anna.tikhonova@intel.com>
2918             Ilya Tocar  <ilya.tocar@intel.com>
2919             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2920             Ilya Verbin  <ilya.verbin@intel.com>
2921             Kirill Yukhin  <kirill.yukhin@intel.com>
2922             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2924         * config/i386/i386.c
2925         (ix86_expand_args_builtin): Handle avx512dq_rangepv8df_mask_round,
2926         avx512dq_rangepv16sf_mask_round, avx512dq_rangepv4df_mask,
2927         avx512dq_rangepv8sf_mask, avx512dq_rangepv2df_mask,
2928         avx512dq_rangepv4sf_mask.
2929         * config/i386/sse.md
2930         (define_c_enum "unspec"): Add UNSPEC_REDUCE, UNSPEC_FPCLASS,
2931         UNSPEC_RANGE.
2932         (define_insn "<mask_codefor>reducep<mode><mask_name>"): New.
2933         (define_insn "reduces<mode>"): Ditto.
2934         (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
2935         Ditto.
2936         (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Ditto.
2937         (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Ditto.
2938         (define_insn "avx512dq_vmfpclass<mode>"): Ditto..
2940 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2941             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2942             Anna Tikhonova  <anna.tikhonova@intel.com>
2943             Ilya Tocar  <ilya.tocar@intel.com>
2944             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2945             Ilya Verbin  <ilya.verbin@intel.com>
2946             Kirill Yukhin  <kirill.yukhin@intel.com>
2947             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2949         * config/i386/i386.c
2950         (avx512f_vgetmantv2df_round): Rename from "avx512f_getmantv2df_round".
2951         (avx512f_vgetmantv4sf_round): Rename from "avx512f_vgetmantv4sf_round".
2952         (ix86_expand_args_builtin): Handle avx512vl_getmantv8sf_mask,
2953         avx512vl_getmantv4df_mask, avx512vl_getmantv4sf_mask,
2954         avx512vl_getmantv2df_mask.
2955         (ix86_expand_round_builtin): Handle avx512f_vgetmantv2df_round,
2956         avx512f_vgetmantv4sf_round.
2957         * config/i386/sse.md
2958         (define_insn "<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask"):
2959         Rename from "avx512f_storeu<ssemodesuffix>512_mask" and update
2960         mode iterator.
2961         (define_insn "<mask_codefor>rcp14<mode><mask_name>"): Use VF_AVX512VL.
2962         (define_insn "<mask_codefor>rsqrt14<mode><mask_name>"): Ditto.
2963         (define_insn "<avx512>_scalef<mode><mask_name><round_name>"): Rename
2964         from "avx512f_scalef<mode><mask_name><round_name>" and update mode
2965         iterator..
2966         (define_insn "<avx512>_getexp<mode><mask_name><round_saeonly_name>"):
2967         Rename from "avx512f_getexp<mode><mask_name><round_saeonly_name>" and
2968         update mode iterator.
2969         (define_expand
2970         "<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>"): Rename from
2971         "avx512f_fixupimm<mode>_maskz<round_saeonly_expand_name>" and update
2972         mode iterator.
2973         (define_insn
2974         "<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>"): Rename
2975         from "avx512f_fixupimm<mode><sd_maskz_name><round_saeonly_name>" and
2976         update mode iterator.
2977         (define_insn "<avx512>_fixupimm<mode>_mask<round_saeonly_name>"): Rename
2978         from "avx512f_fixupimm<mode>_mask<round_saeonly_name>" and update mode
2979         iterator..
2980         (define_insn
2981         "<avx512>_rndscale<mode><mask_name><round_saeonly_name>"): rename from
2982         "avx512f_rndscale<mode><mask_name><round_saeonly_name>" and update
2983         mode iterator..
2984         (define_insn "<avx512>_getmant<mode><mask_name><round_saeonly_name>"):
2985         Rename from "avx512f_getmant<mode><mask_name><round_saeonly_name>" and
2986         update mode iterator.
2987         (define_insn "avx512f_vgetmant<mode><round_saeonly_name>"): Rename from
2988         "avx512f_getmant<mode><round_saeonly_name>".
2990 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
2992         PR ipa/63166
2993         * ipa-prop.c (compute_known_type_jump_func): Fix conditional.
2995 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2996             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2997             Anna Tikhonova  <anna.tikhonova@intel.com>
2998             Ilya Tocar  <ilya.tocar@intel.com>
2999             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3000             Ilya Verbin  <ilya.verbin@intel.com>
3001             Kirill Yukhin  <kirill.yukhin@intel.com>
3002             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3004         * config/i386/sse.md (define_mode_iterator VF_AVX512VL): New.
3005         (define_mode_iterator FMAMODEM): Allow 128/256bit EVEX version.
3006         (define_mode_iterator FMAMODE_AVX512): New.
3007         (define_mode_iterator FMAMODE): Remove conditions.
3008         (define_expand "fma4i_fmadd_<mode>"): Use FMAMODE_AVX512 mode iterator.
3009         (define_expand "<avx512>_fmadd_<mode>_maskz<round_expand_name>"): Rename
3010         from "<avx512>_fmadd_<mode>_maskz<round_expand_name>" and use VF_AVX512VL
3011         mode iterator.
3012         (define_mode_iterator FMAMODE_NOVF512): Remove.
3013         (define_insn "*fma_fmadd_<mode>"): Rename from
3014         "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>" and use
3015         FMAMODE mode iterator.
3016         (define_mode_iterator VF_SF_AVX512VL): New.
3017         (define_insn "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>"):
3018         Use VF_SF_AVX512VL mode iterator.
3019         (define_insn "<avx512>_fmadd_<mode>_mask<round_name>"): Rename from
3020         "avx512f_fmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
3021         iterator.
3022         (define_insn "<avx512>_fmadd_<mode>_mask3<round_name>"): Rename from
3023         "avx512f_fmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
3024         iterator.
3025         (define_insn "*fma_fmsub_<mode>"): Rename from
3026         "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>" and use
3027         FMAMODE mode iterator.
3028         (define_insn "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>"):
3029         Use VF_SF_AVX512VL mode iterator.
3030         (define_insn "<avx512>_fmsub_<mode>_mask<round_name>"): Rename from
3031         "avx512f_fmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
3032         iterator.
3033         (define_insn "<avx512>_fmsub_<mode>_mask3<round_name>"): Rename from
3034         "avx512f_fmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
3035         iterator.
3036         (define_insn "*fma_fnmadd_<mode>"): Rename from
3037         "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>" and
3038         use FMAMODE mode iterator.
3039         (define_insn "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>"):
3040         Use VF_SF_AVX512VL mode iterator.
3041         (define_insn "<avx512>_fnmadd_<mode>_mask<round_name>"): Rename from
3042         "avx512f_fnmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
3043         iterator.
3044         (define_insn "<avx512>_fnmadd_<mode>_mask3<round_name>"): Rename from
3045         "avx512f_fnmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
3046         iterator.
3047         (define_insn "*fma_fnmsub_<mode>"): Rename from
3048         "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>" and use
3049         FMAMODE mode iterator.
3050         (define_insn "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>"):
3051         Use VF_SF_AVX512VL mode iterator.
3052         (define_insn "<avx512>_fnmsub_<mode>_mask<round_name>"): Rename from
3053         "avx512f_fnmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
3054         iterator.
3055         (define_insn "<avx512>_fnmsub_<mode>_mask3<round_name>"): Rename from
3056         "avx512f_fnmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
3057         iterator.
3058         (define_expand "<avx512>_fmaddsub_<mode>_maskz<round_expand_name>"):
3059         Rename from "avx512f_fmaddsub_<mode>_maskz<round_expand_name>" and
3060         use VF_AVX512VL mode iterator.
3061         (define_insn "*fma_fmaddsub_<mode>"): Rename from
3062         "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>" and
3063         remove subst usage.
3064         (define_insn "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>"):
3065         Use VF_SF_AVX512VL mode iterator.
3066         (define_insn "<avx512>_fmaddsub_<mode>_mask<round_name>"): Rename from
3067         "avx512f_fmaddsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
3068         iterator.
3069         (define_insn "<avx512>_fmaddsub_<mode>_mask3<round_name>"): Rename from
3070         "avx512f_fmaddsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
3071         iterator.
3072         (define_insn "*fma_fmsubadd_<mode>"): Rename from
3073         "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>" and
3074         remove usage of subst.
3075         (define_insn "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>"):
3076         Use VF_SF_AVX512VL mode iterator.
3077         (define_insn "<avx512>_fmsubadd_<mode>_mask<round_name>"): Rename from
3078         "avx512f_fmsubadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
3079         iterator.
3080         (define_insn "<avx512>_fmsubadd_<mode>_mask3<round_name>"): Rename from
3081         "avx512f_fmsubadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
3082         iterator.
3084 2014-09-10  Kugan Vivekanandarajah  <kuganv@linaro.org>
3086         Revert r213751:
3087         * calls.c (precompute_arguments): Check
3088          promoted_for_signed_and_unsigned_p and set the promoted mode.
3089         (promoted_for_signed_and_unsigned_p): New function.
3090         (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
3091         and set the promoted mode.
3092         * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
3093         * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
3094         SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
3096 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3098         * opth-gen.awk: Generate mapping from cpp message reasons to the
3099         options that enable them.
3100         * doc/options.texi (CppReason): Document.
3102 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3104         * doc/invoke.texi (Wnormalized=): Update.
3106 2014-09-09  Segher Boessenkool  <segher@kernel.crashing.org>
3108         PR target/63195
3109         * config/rs6000/rs6000.md (*bool<mode>3): Allow only register
3110         operands.  Split off the constant operand alternative to ...
3111         (*bool<mode>3_imm): New.
3113 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
3115         * rtl.h (single_set_2): Strengthen first param from const_rtx to
3116         const rtx_insn *, and move prototype to above...
3117         (single_set): ...this.  Convert this from a macro to an inline
3118         function, enforcing the requirement that the param is a const
3119         rtx_insn *.
3120         (find_args_size_adjust): Strengthen param from rtx to rtx_insn *.
3122         * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
3123         Strengthen both params from rtx to rtx_insn *.
3124         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
3125         Likewise; introduce locals "producer_set", "consumer_set", using
3126         them in place of "producer" and "consumer" when dealing with SET
3127         rather than insn.
3128         * config/avr/avr.c (avr_out_plus): Add checked cast to rtx_insn *
3129         when invoking single_set in region guarded by INSN_P.
3130         (avr_out_bitop): Likewise.
3131         (_reg_unused_after): Introduce local rtx_sequence * "seq" in
3132         region guarded by GET_CODE check, using methods to strengthen
3133         local "this_insn" from rtx to rtx_insn *, and for clarity.
3134         * config/avr/avr.md (define_insn_and_split "xload8<mode>_A"):
3135         Strengthen local "insn" from rtx to rtx_insn *.
3136         (define_insn_and_split "xload<mode>_A"): Likewise.
3137         * config/bfin/bfin.c (trapping_loads_p): Likewise for param
3138         "insn".
3139         (find_load): Likewise for return type.
3140         (workaround_speculation): Likewise for both locals named
3141         "load_insn".
3142         * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise for
3143         local "cc0_user".
3144         * config/cris/cris.md (define_peephole2 ; moversideqi): Likewise
3145         for local "prev".
3146         * config/h8300/h8300-protos.h (notice_update_cc): Likewise for
3147         param 2.
3148         * config/h8300/h8300.c (notice_update_cc): Likewise.
3149         * config/i386/i386.c (ix86_flags_dependent): Likewise for params
3150         "insn" and "dep_insn".
3151         (exact_store_load_dependency): Likewise for both params.
3152         (ix86_macro_fusion_pair_p): Eliminate local named "single_set"
3153         since this now clashes with inline function.  Instead, delay
3154         calling single_set until the point where its needed, and then
3155         assign the result to "compare_set" and rework the conditional that
3156         follows.
3157         * config/ia64/ia64.md (define_expand "tablejump"): Strengthen
3158         local "last" from rtx to rtx_insn *.
3159         * config/mips/mips-protos.h (mips_load_store_insns): Likewise for
3160         second param.
3161         (mips_store_data_bypass_p): Likewise for both params.
3162         * config/mips/mips.c (mips_load_store_insns): Likewise for second
3163         param.
3164         (mips_store_data_bypass_p): Likewise for both params.
3165         (mips_orphaned_high_part_p): Likewise for param "insn".
3166         * config/mn10300/mn10300.c (extract_bundle): Likewise.
3167         (mn10300_bundle_liw): Likewise for locals "r", "insn1", "insn2".
3168         Introduce local rtx "insn2_pat".
3169         * config/rl78/rl78.c (move_elim_pass): Likewise for locals "insn",
3170         "ninsn".
3171         (rl78_remove_unused_sets): Likewise for locals "insn", "ninsn".
3172         Introduce local rtx "set", using it in place of "insn" for the
3173         result of single_set.  This appears to fix a bug, since the call
3174         to find_regno_note on a SET does nothing.
3175         * config/rs6000/rs6000.c (set_to_load_agen): Strengthen both
3176         params from rtx to rtx_insn *.
3177         (set_to_load_agen): Likewise.
3178         * config/s390/s390.c (s390_label_align): Likewise for local
3179         "prev_insn".  Introduce new rtx locals "set" and "src", using
3180         them in place of "prev_insn" for the results of single_set
3181         and SET_SRC respectively.
3182         (s390_swap_cmp): Strengthen local "jump" from rtx to rtx_insn *.
3183         Introduce new rtx local "set" using in place of "jump" for the
3184         result of single_set.  Use SET_SRC (set) rather than plain
3185         XEXP (set, 1).
3186         * config/sh/sh.c (noncall_uses_reg): Strengthen param 2from
3187         rtx to rtx_insn *.
3188         (noncall_uses_reg): Likewise.
3189         (reg_unused_after): Introduce local rtx_sequence * "seq" in region
3190         guarded by GET_CODE check, using its methods for clarity, and to
3191         enable strengthening local "this_insn" from rtx to rtx_insn *.
3192         * config/sh/sh.md (define_expand "mulhisi3"): Strengthen local
3193         "insn" from rtx to rtx_insn *.
3194         (define_expand "umulhisi3"): Likewise.
3195         (define_expand "smulsi3_highpart"): Likewise.
3196         (define_expand "umulsi3_highpart"): Likewise.
3197         * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
3198         local "after".  Replace GET_CODE check with a dyn_cast,
3199         introducing new local rtx_sequence * "seq", using insn method for
3200         typesafety.
3202         * dwarf2cfi.c (dwarf2out_frame_debug): Strengthen param "insn"
3203         from rtx to rtx_insn *.  Introduce local rtx "pat", using it in
3204         place of "insn" once we're dealing with patterns rather than the
3205         input insn.
3206         (scan_insn_after): Strengthen param "insn" from rtx to rtx_insn *.
3207         (scan_trace): Likewise for local "elt", updating lookups within
3208         sequence to use insn method rather than element method.
3209         * expr.c (find_args_size_adjust): Strengthen param "insn" from rtx
3210         to rtx_insn *.
3211         * gcse.c (gcse_emit_move_after): Likewise for local "new_rtx".
3212         * ifcvt.c (noce_try_abs): Likewise for local "insn".
3213         * ira.c (fix_reg_equiv_init): Add checked cast to rtx_insn * when
3214         invoking single_set.
3215         * lra-constraints.c (insn_rhs_dead_pseudo_p): Strengthen param
3216         "insn" from rtx to rtx_insn *.
3217         (skip_usage_debug_insns): Likewise for return type, adding a
3218         checked cast.
3219         (check_secondary_memory_needed_p): Likewise for local "insn".
3220         (inherit_reload_reg): Likewise.
3221         * modulo-sched.c (sms_schedule): Likewise for local "count_init".
3222         * recog.c (peep2_attempt): Likewise for local "old_insn", adding
3223         checked casts.
3224         (store_data_bypass_p): Likewise for both params.
3225         (if_test_bypass_p): Likewise.
3226         * recog.h (store_data_bypass_p): Likewise for both params.
3227         (if_test_bypass_p): Likewise.
3228         * reload.c (find_equiv_reg): Likewise for local "where".
3229         * reorg.c (delete_jump): Likewise for param "insn".
3230         * rtlanal.c (single_set_2): Strenghen param "insn" from const_rtx
3231         to const rtx_insn *.
3232         * store-motion.c (replace_store_insn): Likewise for param "del".
3233         (delete_store): Strengthen local "i" from rtx to rtx_insn_list *,
3234         and use its methods for clarity, and to strengthen local "del"
3235         from rtx to rtx_insn *.
3236         (build_store_vectors): Use insn method of "st" when calling
3237         replace_store_insn for typesafety and clarity.
3239 2014-09-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3241         * config/rs6000/rs6000.c (rtx_is_swappable_p): Add
3242         UNSPEC_VSX_CVDPSPN as an unswappable operand, and add commentary
3243         on how to make it legal in future.
3245 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
3247         * caller-save.c (rtx saveinsn): Strengthen this variable from rtx
3248         to rtx_insn *.
3249         (restinsn): Likewise.
3250         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
3251         Likewise for param.
3252         * config/aarch64/aarch64.c (aarch64_simd_attr_length_move):
3253         Likewise.
3254         * config/arc/arc-protos.h (arc_adjust_insn_length): Likewise for
3255         first param.
3256         (arc_hazard): Likewise for both params.
3257         * config/arc/arc.c (arc600_corereg_hazard): Likewise, adding
3258         checked casts to rtx_sequence * and uses of the insn method for
3259         type-safety.
3260         (arc_hazard): Strengthen both params from rtx to rtx_insn *.
3261         (arc_adjust_insn_length): Likewise for param "insn".
3262         (struct insn_length_parameters_s): Likewise for first param of
3263         "get_variants" callback field.
3264         (arc_get_insn_variants): Likewise for first param and local
3265         "inner".  Replace a check of GET_CODE with a dyn_cast to
3266         rtx_sequence *, using methods for type-safety and clarity.
3267         * config/arc/arc.h (ADJUST_INSN_LENGTH): Use casts to
3268         rtx_sequence * and uses of the insn method for type-safety when
3269         invoking arc_adjust_insn_length.
3270         * config/arm/arm-protos.h (arm_attr_length_move_neon): Likewise
3271         for param.
3272         (arm_address_offset_is_imm): Likewise.
3273         (struct tune_params): Likewise for params 1 and 3 of the
3274         "sched_adjust_cost" callback field.
3275         * config/arm/arm.c (cortex_a9_sched_adjust_cost): Likewise for
3276         params 1 and 3 ("insn" and "dep").
3277         (xscale_sched_adjust_cost): Likewise.
3278         (fa726te_sched_adjust_cost): Likewise.
3279         (cortexa7_older_only): Likewise for param "insn".
3280         (cortexa7_younger): Likewise.
3281         (arm_attr_length_move_neon): Likewise.
3282         (arm_address_offset_is_imm): Likewise.
3283         * config/avr/avr-protos.h (avr_notice_update_cc): Likewise.
3284         * config/avr/avr.c (avr_notice_update_cc): Likewise.
3285         * config/bfin/bfin.c (hwloop_pattern_reg): Likewise.
3286         (workaround_speculation): Likewise for local "last_condjump".
3287         * config/c6x/c6x.c (shadow_p): Likewise for param "insn".
3288         (shadow_or_blockage_p): Likewise.
3289         (get_unit_reqs): Likewise.
3290         (get_unit_operand_masks): Likewise.
3291         (c6x_registers_update): Likewise.
3292         (returning_call_p): Likewise.
3293         (can_use_callp): Likewise.
3294         (convert_to_callp): Likewise.
3295         (find_last_same_clock): Likwise for local "t".
3296         (reorg_split_calls): Likewise for local "shadow".
3297         (hwloop_pattern_reg): Likewise for param "insn".
3298         * config/frv/frv-protos.h (frv_final_prescan_insn): Likewise.
3299         * config/frv/frv.c (frv_final_prescan_insn): Likewise.
3300         (frv_extract_membar): Likewise.
3301         (frv_optimize_membar_local): Strengthen param "last_membar" from
3302         rtx * to rtx_insn **.
3303         (frv_optimize_membar_global): Strengthen param "membar" from rtx
3304         to rtx_insn *.
3305         (frv_optimize_membar): Strengthen local "last_membar" from rtx *
3306         to rtx_insn **.
3307         * config/ia64/ia64-protos.h (ia64_st_address_bypass_p): Strengthen
3308         both params from rtx to rtx_insn *.
3309         (ia64_ld_address_bypass_p): Likewise.
3310         * config/ia64/ia64.c (ia64_safe_itanium_class): Likewise for param
3311         "insn".
3312         (ia64_safe_type): Likewise.
3313         (group_barrier_needed): Likewise.
3314         (safe_group_barrier_needed): Likewise.
3315         (ia64_single_set): Likewise.
3316         (is_load_p): Likewise.
3317         (record_memory_reference): Likewise.
3318         (get_mode_no_for_insn): Likewise.
3319         (important_for_bundling_p): Likewise.
3320         (unknown_for_bundling_p): Likewise.
3321         (ia64_st_address_bypass_p): Likewise for both params.
3322         (ia64_ld_address_bypass_p): Likewise.
3323         (expand_vselect): Introduce new local rtx_insn * "insn", using it
3324         in place of rtx "x" after the emit_insn call.
3325         * config/i386/i386-protos.h (x86_extended_QIreg_mentioned_p):
3326         Strengthen param from rtx to rtx_insn *.
3327         (ix86_agi_dependent): Likewise for both params.
3328         (ix86_attr_length_immediate_default): Likewise for param 1.
3329         (ix86_attr_length_address_default): Likewise for param.
3330         (ix86_attr_length_vex_default): Likewise for param 1.
3331         * config/i386/i386.c (ix86_attr_length_immediate_default):
3332         Likewise for param "insn".
3333         (ix86_attr_length_address_default): Likewise.
3334         (ix86_attr_length_vex_default): Likewise.
3335         (ix86_agi_dependent): Likewise for both params.
3336         (x86_extended_QIreg_mentioned_p): Likewise for param "insn".
3337         (vselect_insn): Likewise for this variable.
3338         * config/m68k/m68k-protos.h (m68k_sched_attr_opx_type): Likewise
3339         for param 1.
3340         (m68k_sched_attr_opy_type): Likewise.
3341         * config/m68k/m68k.c (sched_get_operand): Likewise.
3342         (sched_attr_op_type): Likewise.
3343         (m68k_sched_attr_opx_type): Likewise.
3344         (m68k_sched_attr_opy_type): Likewise.
3345         (sched_get_reg_operand): Likewise.
3346         (sched_get_mem_operand): Likewise.
3347         (m68k_sched_address_bypass_p): Likewise for both params.
3348         (sched_get_indexed_address_scale): Likewise.
3349         (m68k_sched_indexed_address_bypass_p): Likewise.
3350         * config/m68k/m68k.h (m68k_sched_address_bypass_p): Likewise.
3351         (m68k_sched_indexed_address_bypass_p): Likewise.
3352         * config/mep/mep.c (mep_jmp_return_reorg): Strengthen locals
3353         "label", "ret" from rtx to rtx_insn *, adding a checked cast and
3354         removing another.
3355         * config/mips/mips-protos.h (mips_linked_madd_p): Strengthen both
3356         params from rtx to rtx_insn *.
3357         (mips_fmadd_bypass): Likewise.
3358         * config/mips/mips.c (mips_fmadd_bypass): Likewise.
3359         (mips_linked_madd_p): Likewise.
3360         (mips_macc_chains_last_hilo): Likewise for this variable.
3361         (mips_macc_chains_record): Likewise for param.
3362         (vr4130_last_insn): Likewise for this variable.
3363         (vr4130_swap_insns_p): Likewise for both params.
3364         (mips_ls2_variable_issue): Likewise for param.
3365         (mips_need_noat_wrapper_p): Likewise for param "insn".
3366         (mips_expand_vselect): Add a new local rtx_insn * "insn", using it
3367         in place of "x" after the emit_insn.
3368         * config/pa/pa-protos.h (pa_fpstore_bypass_p): Strengthen both
3369         params from rtx to rtx_insn *.
3370         * config/pa/pa.c (pa_fpstore_bypass_p): Likewise.
3371         (pa_combine_instructions): Introduce local "par" for result of
3372         gen_rtx_PARALLEL, moving decl and usage of new_rtx for after call
3373         to make_insn_raw.
3374         (pa_can_combine_p): Strengthen param "new_rtx" from rtx to rtx_insn *.
3375         * config/rl78/rl78.c (insn_ok_now): Likewise for param "insn".
3376         (rl78_alloc_physical_registers_op1): Likewise.
3377         (rl78_alloc_physical_registers_op2): Likewise.
3378         (rl78_alloc_physical_registers_ro1): Likewise.
3379         (rl78_alloc_physical_registers_cmp): Likewise.
3380         (rl78_alloc_physical_registers_umul): Likewise.
3381         (rl78_alloc_address_registers_macax): Likewise.
3382         (rl78_alloc_physical_registers): Likewise for locals "insn", "curr".
3383         * config/s390/predicates.md (execute_operation): Likewise for
3384         local "insn".
3385         * config/s390/s390-protos.h (s390_agen_dep_p): Likewise for both
3386         params.
3387         * config/s390/s390.c (s390_safe_attr_type): Likewise for param.
3388         (addr_generation_dependency_p): Likewise for param "insn".
3389         (s390_agen_dep_p): Likewise for both params.
3390         (s390_fpload_toreg): Likewise for param "insn".
3391         * config/sh/sh-protos.h (sh_loop_align): Likewise for param.
3392         * config/sh/sh.c (sh_loop_align): Likewise for param and local
3393         "next".
3394         * config/sh/sh.md (define_peephole2): Likewise for local "insn2".
3395         * config/sh/sh_treg_combine.cc
3396         (sh_treg_combine::make_inv_ccreg_insn): Likewise for return type
3397         and local "i".
3398         (sh_treg_combine::try_eliminate_cstores): Likewise for local "i".
3399         * config/stormy16/stormy16.c (combine_bnp): Likewise for locals
3400         "and_insn", "load", "shift".
3401         * config/tilegx/tilegx.c (match_pcrel_step2): Likewise for param
3402         "insn".
3403         * final.c (final_scan_insn): Introduce local rtx_insn * "other"
3404         for XEXP (note, 0) of the REG_CC_SETTER note.
3405         (cleanup_subreg_operands): Strengthen param "insn" from rtx to
3406         rtx_insn *, eliminating a checked cast made redundant by this.
3407         * gcse.c (process_insert_insn): Strengthen local "insn" from rtx
3408         to rtx_insn *.
3409         * genattr.c (main): When writing out the prototype to
3410         const_num_delay_slots, strengthen the param from rtx to
3411         rtx_insn *.
3412         * genattrtab.c (write_const_num_delay_slots): Likewise when
3413         writing out the implementation of const_num_delay_slots.
3414         * hw-doloop.h (struct hw_doloop_hooks): Strengthen the param
3415         "insn" of callback field "end_pattern_reg" from rtx to rtx_insn *.
3416         * ifcvt.c (noce_emit_store_flag): Eliminate local rtx "tmp" in
3417         favor of new rtx locals "src" and "set" and new local rtx_insn *
3418         "insn" and "seq".
3419         (noce_emit_move_insn): Strengthen locals "seq" and "insn" from rtx
3420         to rtx_insn *.
3421         (noce_emit_cmove): Eliminate local rtx "tmp" in favor of new rtx
3422         locals "cond", "if_then_else", "set" and new rtx_insn * locals
3423         "insn" and "seq".
3424         (noce_try_cmove_arith): Strengthen locals "insn_a" and "insn_b",
3425         "last" from rtx to rtx_insn *.  Likewise for a local "tmp",
3426         renaming to "tmp_insn".  Eliminate the other local rtx "tmp" from
3427         the top-level scope, replacing with new more tightly-scoped rtx
3428         locals "reg", "pat", "mem" and rtx_insn * "insn", "copy_of_a",
3429         "new_insn", "copy_of_insn_b", and make local rtx "set" more
3430         tightly-scoped.
3431         * ira-int.h (ira_setup_alts): Strengthen param "insn" from rtx to
3432         rtx_insn *.
3433         * ira.c (setup_prohibited_mode_move_regs): Likewise for local
3434         "move_insn".
3435         (ira_setup_alts): Likewise for param "insn".
3436         * lra-constraints.c (emit_inc): Likewise for local "add_insn".
3437         * lra.c (emit_add3_insn): Split local rtx "insn" in two, an rtx
3438         and an rtx_insn *.
3439         (lra_emit_add): Eliminate top-level local rtx "insn" in favor of
3440         new more-tightly scoped rtx locals "add3_insn", "insn",
3441         "add2_insn" and rtx_insn * "move_insn".
3442         * postreload-gcse.c (eliminate_partially_redundant_load): Add
3443         checked cast on result of gen_move_insn when invoking
3444         extract_insn.
3445         * recog.c (insn_invalid_p): Strengthen param "insn" from rtx to
3446         rtx_insn *.
3447         (verify_changes): Add a checked cast on "object" when invoking
3448         insn_invalid_p.
3449         (extract_insn_cached): Strengthen param "insn" from rtx to
3450         rtx_insn *.
3451         (extract_constrain_insn_cached): Likewise.
3452         (extract_insn): Likewise.
3453         * recog.h (insn_invalid_p): Likewise for param 1.
3454         (recog_memoized): Likewise for param.
3455         (extract_insn): Likewise.
3456         (extract_constrain_insn_cached): Likewise.
3457         (extract_insn_cached): Likewise.
3458         * reload.c (can_reload_into): Likewise for local "test_insn".
3459         * reload.h (cleanup_subreg_operands): Likewise for param.
3460         * reload1.c (emit_insn_if_valid_for_reload): Rename param from
3461         "insn" to "pat", reintroducing "insn" as an rtx_insn * on the
3462         result of emit_insn.  Remove a checked cast made redundant by this
3463         change.
3464         * sel-sched-ir.c (sel_insn_rtx_cost): Strengthen param "insn" from
3465         rtx to rtx_insn *.
3466         * sel-sched.c (get_reg_class): Likewise.
3468 2014-09-09  Marcus Shawcroft  <marcus.shawcroft@arm.com>
3469         Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3471          * config/aarch64/aarch64-elf-raw.h (ENDFILE_SPEC): Add crtfastmath.o.
3472          * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_MATH_ENDFILE_SPEC):
3473         Define.
3474         (ENDFILE_SPEC): Define and use GNU_USER_TARGET_MATH_ENDFILE_SPEC.
3476 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
3478         * rtl.h (INSN_LOCATION): Strengthen param from const_rtx to
3479         const rtx_insn *, and from rtx to rtx_insn * for the other
3480         overloaded variant.
3481         (RTL_LOCATION): Add a checked cast to rtx_insn * when invoking
3482         INSN_LOCATION, since we know INSN_P holds.
3483         (insn_line): Strengthen param from const_rtx to const rtx_insn *.
3484         (insn_file): Likewise.
3485         (insn_scope): Likewise.
3486         (insn_location): Likewise.
3488         * config/mips/mips.c (mips16_gp_pseudo_reg): Strengthen local
3489         "insn" from rtx to rtx_insn *, introducing a new local rtx "set"
3490         for the result of gen_load_const_gp.
3491         * config/rs6000/rs6000-protos.h (output_call): Strengthen first
3492         param from rtx to rtx_insn *.
3493         * config/rs6000/rs6000.c (output_call): Likewise.
3494         * dwarf2out.c (dwarf2out_var_location): Likewise for local "prev",
3495         introducing a checked cast to rtx_sequence * and use of the insn
3496         method.
3497         * emit-rtl.c (emit_copy_of_insn_after): Strengthen both params
3498         from rtx to rtx_insn *.
3499         (insn_scope): Strengthen param from const_rtx to const rtx_insn *.
3500         (insn_line): Likewise.
3501         (insn_file): Likewise.
3502         (insn_location): Likewise.
3503         * emit-rtl.h (emit_copy_of_insn_after): Strengthen both params
3504         from rtx to rtx_insn *.
3505         * print-rtl.c (print_rtx): Introduce local "in_insn" via a checked
3506         cast, using it for calls to INSN_HAS_LOCATION and insn_location.
3507         * recog.c (peep2_attempt): Introduce local rtx_insn * "peepinsn"
3508         via a checked cast.
3509         * reorg.c (relax_delay_slots): Strengthen locals named "after"
3510         from rtx to rtx_insn *; use methods of "pat" for type-safety.
3512 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
3514         * combine.c (try_combine): Eliminate checked cast on result of
3515         gen_rtx_INSN.
3516         * emit-rtl.c (gen_rtx_INSN): New function, improving over the prior
3517         autogenerated one by strengthening the return type and params 2 and 3
3518         from rtx to rtx_insn *, and by naming the params.
3519         * gengenrtl.c (special_rtx): Add INSN to those that are
3520         special-cased.
3521         * rtl.h (gen_rtx_INSN): New prototype.
3523 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
3525         * ira.c (ira_update_equiv_info_by_shuffle_insn): Use NULL rather
3526         than NULL_RTX.
3527         (no_equiv): Likewise.
3528         (update_equiv_regs): Likewise.
3529         (setup_reg_equiv): Likewise.  Strengthen locals "elem",
3530         "prev_elem", "next_elem" from rtx to rtx_insn_list *, and "insn"
3531         from rtx to rtx_insn *.  Use methods of "elem" for typesafety and
3532         clarity.
3533         * ira.h (struct ira_reg_equiv_s): Strengthen field "init_insns"
3534         from rtx to rtx_insn_list *.
3535         * lra-assigns.c (spill_for): Strengthen local "x" from rtx to
3536         rtx_insn_list * and use methods for clarity and typesafety.
3537         * lra-constraints.c (contains_deleted_insn_p): Likewise for param
3538         "list".
3539         (init_insn_rhs_dead_pseudo_p): Likewise for local "insns".  Remove
3540         redundant check on INSN_P (insns): this cannot hold, as "insns" is
3541         an INSN_LIST, not an insn.
3542         (reverse_equiv_p): Strengthen local "insns" from rtx to
3543         rtx_insn_list * and use methods for clarity and typesafety.
3544         (contains_reloaded_insn_p): Likewise for local "list".
3546 2014-09-09  Jiong Wang  <jiong.wang@arm.com>
3548         * config/arm/arm.c (NEON_COPYSIGNF): New enum.
3549         (arm_init_neon_builtins): Support NEON_COPYSIGNF.
3550         (arm_builtin_vectorized_function): Likewise.
3551         * config/arm/arm_neon_builtins.def: New macro for copysignf.
3552         * config/arm/neon.md (neon_copysignf<mode>): New pattern for vector copysignf.
3554 2014-09-09  Richard Sandiford  <richard.sandiford@arm.com>
3556         * bb-reorder.h (default_target_bb_reorder): Remove redundant GTY.
3557         * builtins.h (default_target_builtins): Likewise.
3558         * gcse.h (default_target_gcse): Likewise.
3559         * target-globals.h (target_globals): Add a destructor.  Convert
3560         void-pointer fields back to their real type and change from
3561         GTY((atomic)) to GTY((skip)).
3562         (restore_target_globals): Remove casts accordingly.
3563         * target-globals.c (save_target_globals): Use XCNEW rather than
3564         ggc_internal_cleared_alloc to allocate non-GC structures.
3565         Use ggc_cleared_alloc to allocate the target_globals structure
3566         itself.
3567         (target_globals::~target_globals): Define.
3569 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3571         * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use vldm
3572         mnemonic instead of fldmfdd.
3573         * config/arm/arm.c (vfp_output_fstmd): Rename to...
3574         (vfp_output_vstmd): ... This.  Convert output to UAL syntax.
3575         Output vpush when address register is SP.
3576         * config/arm/arm-protos.h (vfp_output_fstmd): Rename to...
3577         (vfp_output_vstmd): ... This.
3578         * config/arm/vfp.md (push_multi_vfp): Update call to
3579         vfp_output_vstmd.
3581 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3583         * config/arm/vfp.md (*movcc_vfp): Use UAL syntax.
3585 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3587         * config/arm/vfp.md (*sqrtsf2_vfp): Use UAL assembly syntax.
3588         (*sqrtdf2_vfp): Likewise.
3589         (*cmpsf_vfp): Likewise.
3590         (*cmpsf_trap_vfp): Likewise.
3591         (*cmpdf_vfp): Likewise.
3592         (*cmpdf_trap_vfp): Likewise.
3594 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3596         * config/arm/vfp.md (*extendsfdf2_vfp): Use UAL assembly syntax.
3597         (*truncdfsf2_vfp): Likewise.
3598         (*truncsisf2_vfp): Likewise.
3599         (*truncsidf2_vfp): Likewise.
3600         (fixuns_truncsfsi2): Likewise.
3601         (fixuns_truncdfsi2): Likewise.
3602         (*floatsisf2_vfp): Likewise.
3603         (*floatsidf2_vfp): Likewise.
3604         (floatunssisf2): Likewise.
3605         (floatunssidf2): Likewise.
3607 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3609         * config/arm/vfp.md (*mulsf3_vfp): Use UAL assembly syntax.
3610         (*muldf3_vfp): Likewise.
3611         (*mulsf3negsf_vfp): Likewise.
3612         (*muldf3negdf_vfp): Likewise.
3613         (*mulsf3addsf_vfp): Likewise.
3614         (*muldf3adddf_vfp): Likewise.
3615         (*mulsf3subsf_vfp): Likewise.
3616         (*muldf3subdf_vfp): Likewise.
3617         (*mulsf3negsfaddsf_vfp): Likewise.
3618         (*fmuldf3negdfadddf_vfp): Likewise.
3619         (*mulsf3negsfsubsf_vfp): Likewise.
3620         (*muldf3negdfsubdf_vfp): Likewise.
3622 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3624         * config/arm/vfp.md (*abssf2_vfp): Use UAL assembly syntax.
3625         (*absdf2_vfp): Likewise.
3626         (*negsf2_vfp): Likewise.
3627         (*negdf2_vfp): Likewise.
3628         (*addsf3_vfp): Likewise.
3629         (*adddf3_vfp): Likewise.
3630         (*subsf3_vfp): Likewise.
3631         (*subdf3_vfp): Likewise.
3632         (*divsf3_vfp): Likewise.
3633         (*divdf3_vfp): Likewise.
3635 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3637         * config/arm/arm.c (output_move_vfp): Use UAL syntax for load/store
3638         multiple.
3639         (arm_print_operand): Don't convert real values to decimal
3640         representation in default case.
3641         (fp_immediate_constant): Delete.
3642         * config/arm/arm-protos.h (fp_immediate_constant): Likewise.
3643         * config/arm/vfp.md (*arm_movsi_vfp): Convert to VFP moves to UAL
3644         syntax.
3645         (*thumb2_movsi_vfp): Likewise.
3646         (*movdi_vfp): Likewise.
3647         (*movdi_vfp_cortexa8): Likewise.
3648         (*movhf_vfp_neon): Likewise.
3649         (*movhf_vfp): Likewise.
3650         (*movsf_vfp): Likewise.
3651         (*thumb2_movsf_vfp): Likewise.
3652         (*movdf_vfp): Likewise.
3653         (*thumb2_movdf_vfp): Likewise.
3654         (*movsfcc_vfp): Likewise.
3655         (*thumb2_movsfcc_vfp): Likewise.
3656         (*movdfcc_vfp): Likewise.
3657         (*thumb2_movdfcc_vfp): Likewise.
3659 2014-09-09  James Greenhalgh  <james.greenhalgh@arm.com>
3661         * doc/invoke.texi (-march): Use GNU/Linux rather than Linux.
3662         (-mtune): Likewise.
3663         (-mcpu): Likewise.
3665 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3667         PR target/61749
3668         * config/aarch64/aarch64-builtins.c (aarch64_types_quadop_qualifiers):
3669         Use qualifier_immediate for last operand.  Rename to...
3670         (aarch64_types_ternop_lane_qualifiers): ... This.
3671         (TYPES_QUADOP): Rename to...
3672         (TYPES_TERNOP_LANE): ... This.
3673         (aarch64_simd_expand_args): Return const0_rtx when encountering user
3674         error.  Change return of 0 to return of NULL_RTX.
3675         (aarch64_crc32_expand_builtin): Likewise.
3676         (aarch64_expand_builtin): Return NULL_RTX instead of 0.
3677         ICE when expanding unknown builtin.
3678         * config/aarch64/aarch64-simd-builtins.def (sqdmlal_lane): Use
3679         TERNOP_LANE qualifiers.
3680         (sqdmlsl_lane): Likewise.
3681         (sqdmlal_laneq): Likewise.
3682         (sqdmlsl_laneq): Likewise.
3683         (sqdmlal2_lane): Likewise.
3684         (sqdmlsl2_lane): Likewise.
3685         (sqdmlal2_laneq): Likewise.
3686         (sqdmlsl2_laneq): Likewise.
3688 2014-09-09  Nick Clifton  <nickc@redhat.com>
3690         * doc/invoke.texi (Optimization Options): Add missing @gol to the
3691         end of a line.
3692         (S/390 and zSeries Options): Remove superfluous word from the
3693         description of the -mhotpatch option.
3695 2014-09-09  Zhenqiang Chen  <zhenqiang.chen@arm.com>
3697         * shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED.
3698         * ira.c: #include "shrink-wrap.h"
3699         (split_live_ranges_for_shrink_wrap): Use SHRINK_WRAPPING_ENABLED.
3700         * ifcvt.c: #include "shrink-wrap.h"
3701         (dead_or_predicable): Use SHRINK_WRAPPING_ENABLED.
3703 2014-09-08  Trevor Saunders  <tsaunders@mozilla.com>
3705         * common/config/picochip/picochip-common.c: Remove.
3706         * config.gcc: Remove support for picochip.
3707         * config/picochip/constraints.md: Remove.
3708         * config/picochip/dfa_space.md: Remove.
3709         * config/picochip/dfa_speed.md: Remove.
3710         * config/picochip/picochip-protos.h: Remove.
3711         * config/picochip/picochip.c: Remove.
3712         * config/picochip/picochip.h: Remove.
3713         * config/picochip/picochip.md: Remove.
3714         * config/picochip/picochip.opt: Remove.
3715         * config/picochip/predicates.md: Remove.
3716         * config/picochip/t-picochip: Remove.
3717         * doc/md.texi: Don't document picochi.
3719 2014-09-08  David Malcolm  <dmalcolm@redhat.com>
3721         * basic-block.h (control_flow_insn_p): Strengthen param from
3722         const_rtx to const rtx_insn *.
3723         * cfgbuild.c (control_flow_insn_p): Likewise.
3725 2014-09-08  David Malcolm  <dmalcolm@redhat.com>
3727         * gcse.c (modify_mem_list): Strengthen this variable from
3728         vec<rtx> * to vec<rtx_insn *> *.
3729         (vec_rtx_heap): Strengthen this typedef from vec<rtx> to
3730         vec<rtx_insn *>.
3731         (load_killed_in_block_p): Strengthen local "list" from vec<rtx> to
3732         vec<rtx_insn *>, and local "setter" from rtx to rtx_insn *.
3733         (record_last_mem_set_info): Strengthen param "insn" from rtx to
3734         rtx_insn *.
3735         (record_last_set_info): Likewise for local "last_set_insn".
3737 2014-09-08  DJ Delorie  <dj@redhat.com>
3739         * doc/invoke.texi (MSP430 Options): Add -minrt.
3741 2014-09-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3743         * config/rs6000/rs6000.c (special_handling_values):  Add SH_SPLAT.
3744         (rtx_is_swappable_p): Convert UNSPEC cascading ||s to a switch
3745         statement; allow optimization of UNSPEC_VSPLT_DIRECT with special
3746         handling SH_SPLAT.
3747         (adjust_extract): Fix test for VEC_DUPLICATE case; fix adjustment
3748         of extracted lane.
3749         (adjust_splat): New function.
3750         (handle_special_swappables): Call adjust_splat for SH_SPLAT.
3751         (dump_swap_insn_table): Add case for SH_SPLAT.
3753 2014-09-08  Richard Biener  <rguenther@suse.de>
3755         PR ipa/63196
3756         * tree-inline.c (copy_loops): The source loop header should
3757         always be non-NULL.
3758         (tree_function_versioning): If loops need fixup after removing
3759         unreachable blocks fix them.
3760         * omp-low.c (simd_clone_adjust): Do not add incr block to
3761         loop under construction.
3763 2014-09-08  Alan Lawrence  <alan.lawrence@arm.com>
3765         * config/aarch64/aarch64-builtins.c
3766         (aarch64_types_cmtst_qualifiers, TYPES_TST): Remove as unused.
3768 2014-09-08  Joseph Myers  <joseph@codesourcery.com>
3770         * config/i386/cygming.h (TF_SIZE): Remove.
3771         * config/i386/darwin.h (TF_SIZE): Remove.
3772         * config/i386/dragonfly.h (TF_SIZE): Remove.
3773         * config/i386/freebsd.h (TF_SIZE): Remove.
3774         * config/i386/gnu-user-common.h (TF_SIZE): Remove.
3775         * config/i386/openbsdelf.h (TF_SIZE): Remove.
3776         * config/i386/sol2.h (TF_SIZE): Remove.
3777         * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Remove.
3778         * config/ia64/linux.h (TF_SIZE): Remove.
3779         * doc/tm.texi.in (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Remove.
3780         * doc/tm.texi: Regenerate.
3781         * system.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Poison.
3783 2014-09-08  Joseph Myers  <joseph@codesourcery.com>
3785         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
3786         Remove.
3787         * doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
3788         Remove.
3789         * doc/tm.texi: Regenerate.
3790         * system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
3791         Poison.
3792         * config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
3793         * config/cris/cris.h (__make_dp): Remove.
3795 2014-09-08  Richard Biener  <rguenther@suse.de>
3797         PR bootstrap/63204
3798         * cfgloop.c (mark_loop_for_removal): Track former header
3799         unconditionally.
3800         * cfgloop.h (struct loop): Add former_header member unconditionally.
3801         * loop-init.c (fix_loop_structure): Enable bogus loop removal
3802         diagnostic unconditionally.
3804 2014-09-07 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
3806         PR target/63190
3807         * config/aarch64/aarch64.md (stack_protect_test_<mode>) Add register
3808         constraint for operand0 and remove write only modifier from operand3.
3810 2014-09-07  Richard Sandiford  <richard.sandiford@arm.com>
3812         PR rtl-optimization/62208
3813         * simplify-rtx.c (simplify_relational_operation_1): Use CONST0_RTX
3814         rather than const0_rtx in eq/ne-xor simplifications.
3816 2014-09-06  Joern Rennecke  <joern.rennecke@embecosm.com>
3818         * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
3819         (arc_output_mi_thunk): Likewise.
3821         * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
3822         arguments to silence bogus warning.
3824 2014-09-06  Richard Sandiford  <richard.sandiford@arm.com>
3826         PR middle-end/63171
3827         * rtlanal.c (tls_referenced_p): Don't skip constant subrtxes.
3829 2014-09-06  Tom de Vries  <tom@codesourcery.com>
3831         * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
3832         IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
3833         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
3835 2014-09-05  Dominique Dhumieres  <dominiq@lps.ens.fr>
3837         PR target/63188
3838         * config/darwin.h (INIT_SECTION_ASM_OP): Define to "".
3839         * config/pa/pa64-hpux.h (INIT_SECTION_ASM_OP): Likewise.
3841 2014-09-05  Easwaran Raman  <eraman@google.com>
3843         PR rtl-optimization/62146
3844         * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
3845         hoisted instruction unconditional.
3847 2014-09-05  Segher Boessenkool  <segher@kernel.crashing.org>
3849         PR target/63187
3850         * config/rs6000/rs6000.md (*and<mode>3_imm_dot, *and<mode>3_imm_dot2):
3851         Do not allow any_mask_operand for operands[2].
3852         (*and<mode>3_imm_mask_dot, *and<mode>3_imm_mask_dot2): New.
3854 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
3856         * config/arc/arc.c (arc_print_operand): Use insn method of
3857         final_sequence for type-safety.
3858         * config/bfin/bfin.c (bfin_hardware_loop): Strengthen param
3859         "insn" from rtx to rtx_insn *.
3860         * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
3861         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
3862         Likewise for locals "branch", "label".
3863         * config/h8300/h8300.c (same_cmp_preceding_p): Likewise for
3864         locals "i1", "i2".  Use NULL rather than NULL_RTX in comparisons.
3865         (same_cmp_following_p): Likewise for locals "i2", "i3".
3866         * config/sh/sh_optimize_sett_clrt.cc
3867         (sh_optimize_sett_clrt::sh_cbranch_ccreg_value): Likewise for
3868         param "cbranch_insn".
3869         * function.c (convert_jumps_to_returns): Likewis for local "jump".
3870         * ifcvt.c (cond_exec_get_condition): Likewise for param "jump".
3871         * jump.c (simplejump_p): Strengthen param "insn" from const_rtx to
3872         const rtx_insn *.
3873         (condjump_p): Likewise.
3874         (condjump_in_parallel_p): Likewise.
3875         (pc_set): Likewise.
3876         (any_uncondjump_p): Likewise.
3877         (any_condjump_p): Likewise.
3878         (condjump_label): Likewise.
3879         (returnjump_p): Strengthen param "insn" from rtx to
3880         const rtx_insn *.
3881         (onlyjump_p): Strengthen param "insn" from const_rtx to
3882         const rtx_insn *.
3883         (jump_to_label_p): Likewise.
3884         (invert_jump_1): Strengthen param "jump" from rtx to rtx_insn *.
3885         (invert_jump): Likewise.
3886         * reorg.c (simplejump_or_return_p): Add checked cast when calling
3887         simplejump_p.
3888         (get_jump_flags): Strengthen param "insn" from rtx to
3889         const rtx_insn *.
3890         (get_branch_condition): Likewise.
3891         (condition_dominates_p): Likewise.
3892         (make_return_insns): Move declaration of local "pat" earlier, to
3893         after we've handled NONJUMP_INSN_P and non-sequences, using its
3894         methods to simplify the code and for type-safety.
3895         * rtl.h (find_constant_src): Strengthen param from const_rtx to
3896         const rtx_insn *.
3897         (jump_to_label_p): Strengthen param from rtx to const rtx_insn *.
3898         (condjump_p): Strengthen param from const_rtx to
3899         const rtx_insn *.
3900         (any_condjump_p): Likewise.
3901         (any_uncondjump_p): Likewise.
3902         (pc_set): Likewise.
3903         (condjump_label): Likewise.
3904         (simplejump_p): Likewise.
3905         (returnjump_p): Likewise.
3906         (onlyjump_p): Likewise.
3907         (invert_jump_1): Strengthen param 1 from rtx to rtx_insn *.
3908         (invert_jump): Likewise.
3909         (condjump_in_parallel_p): Strengthen param from const_rtx to
3910         const rtx_insn *.
3911         * rtlanal.c (find_constant_src): Strengthen param from const_rtx
3912         to const rtx_insn *.
3913         * sel-sched-ir.c (fallthru_bb_of_jump): Strengthen param from rtx
3914         to const rtx_insn *.
3915         * sel-sched-ir.h (fallthru_bb_of_jump): Likewise.
3917 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
3919         * reorg.c (relax_delay_slots): Move declaration of "trial_seq"
3920         above the conditional, and convert the check on GET_CODE to a
3921         dyn_cast, so that "trial_seq" is available as an rtx_sequence * in
3922         the conditional.  Simplify the conditional by using methods of
3923         "trial_seq".
3925 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
3927         * haifa-sched.c (check_clobbered_conditions): Strengthen local
3928         "link" from rtx to rtx_insn_list *, and use its methods for
3929         clarity and type-safety.
3930         (toggle_cancelled_flags): Likewise.
3931         (restore_last_backtrack_point): Likewise.
3932         (queue_to_ready): Use insn method of "link" in one place.
3933         (schedule_block): Strengthen local "link" from rtx to
3934         rtx_insn_list *, and use its methods for clarity and type-safety.
3936 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
3938         * sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
3939         param "insn" from const_rtx to const rtx_insn *.
3940         (sched_get_reverse_condition_uncached): Likewise.
3941         (sched_get_condition_with_rev): Likewise.
3942         (sched_has_condition_p): Likewise.
3943         (sched_insns_conditions_mutex_p): Likewise for both params.
3944         (sched_insn_is_legitimate_for_speculation_p): Likewise for param
3945         "insn"; conver use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
3946         (setup_insn_reg_uses): Move local "list" to be more tightly
3947         scoped, strengthening it from an rtx to an rtx_insn_list *.  Use
3948         its methods for clarity and type-safety.
3949         (sched_analyze_1): Strengthen local "pending" from rtx to
3950         rtx_insn_list *, and local "pending_mem" from rtx to
3951         rtx_expr_list *.  Use methods of each for clarity and type-safety.
3952         (sched_analyze_2): Likewise.
3953         (sched_analyze_insn): Likewise.
3955         * sched-int.h (sched_get_reverse_condition_uncached): Strengthen
3956         param from const_rtx to const rtx_insn *.
3957         (sched_insns_conditions_mutex_p): Likewise for both params.
3958         (sched_insn_is_legitimate_for_speculation_p): Likewise for first
3959         param.
3961         * system.h (CONST_CAST_RTX_INSN): New macro.
3963 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
3965         * recog.c (peep2_attempt): Strengthen return type from rtx to
3966         rtx_insn *.
3967         (peep2_update_life): Likewise for params "last", "prev", removing
3968         a checked cast made redundant by this.
3969         (peephole2_optimize): Likewise for local "last".
3971 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
3973         * basic-block.h (set_block_for_insn): Eliminate this macro in
3974         favor of...
3975         * rtl.h (set_block_for_insn): New inline function, imposing the
3976         requirement that the "insn" param is an rtx_insn *.
3978 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
3980         * caller-save.c (setup_save_areas): Strengthen local "insn" from
3981         rtx to rtx_insn *.
3982         * final.c (get_call_reg_set_usage): Likewise for first param,
3983         eliminating a checked cast.
3984         * regs.h (get_call_reg_set_usage): Likewise for first param.
3985         * resource.c (mark_set_resources): Introduce local rtx_call_insn *
3986         "call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
3987         cast, replacing references to "x" with "call_insn" where
3988         appropriate.
3989         (mark_target_live_regs): Strengthen local "real_insn" from rtx to
3990         rtx_insn *, adding a checked cast.
3992 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
3994         * output.h (final_scan_insn): Strengthen first param from rtx to
3995         rtx_insn *.
3997         * final.c (final_scan_insn): Likewise, renaming it back from
3998         "uncast_insn" to "insn", eliminating the checked cast.
4000         * config/h8300/h8300.md (define_insn "jump"): Replace local rtx
4001         "vec" with an rtx_sequence * "seq", taking a copy of
4002         "final_sequence", and using methods of "seq" for clarity, and for
4003         type-safety in the calls to final_scan_insn.
4004         * config/mips/mips.c (mips_output_conditional_branch): Use methods
4005         of "final_sequence" for clarity, and for type-safety in the call to
4006         final_scan_insn.
4007         * config/sh/sh.c (print_slot): Strengthen param from rtx to
4008         rtx_sequence * and rename from "insn" to "seq".
4010 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
4012         * jump.c (delete_related_insns): Introduce a new local "table" by
4013         replacing JUMP_TABLE_DATA_P with a dyn_cast, then use the
4014         get_labels method of "table" to simplify access to the labels in
4015         the jump table.
4017 2014-09-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4019         * config/arm/cortex-a53.md (cortex_a53_fpalu): Add f_rints, f_rintd,
4020         f_minmaxs, f_minmaxd types.
4022 2014-09-05  Richard Biener  <rguenther@suse.de>
4024         * cfgloop.c (mark_loop_for_removal): Record former header
4025         when ENABLE_CHECKING.
4026         * cfgloop.h (strut loop): Add former_header member when
4027         ENABLE_CHECKING.
4028         * loop-init.c (fix_loop_structure): Sanity check loops
4029         marked for removal if they re-appeared.
4031 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
4033         * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
4034         uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
4036         (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
4037         vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
4038         vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
4039         vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
4040         vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
4041         vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
4042         vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
4043         vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
4044         vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
4045         vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
4046         vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
4047         vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
4048         vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
4049         vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
4050         vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
4051         vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
4052         vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
4053         vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
4054         vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
4055         vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
4056         with int{32,16,8}_t.
4058 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
4060         * config/aarch64/arm_neon.h (__GET_HIGH): New macro.
4061         (vget_high_f32, vget_high_f64, vget_high_p8, vget_high_p16,
4062         vget_high_s8, vget_high_s16, vget_high_s32, vget_high_s64,
4063         vget_high_u8, vget_high_u16, vget_high_u32, vget_high_u64):
4064         Remove temporary __asm__ and reimplement.
4066 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
4068         * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Remove code
4069         handling cmge, cmgt, cmeq, cmtst.
4071         * config/aarch64/aarch64-simd-builtins.def (cmeq, cmge, cmgt, cmle,
4072         cmlt, cmgeu, cmgtu, cmtst): Remove.
4074         * config/aarch64/arm_neon.h (vceq_*, vceqq_*, vceqz_*, vceqzq_*,
4075         vcge_*, vcgeq_*, vcgez_*, vcgezq_*, vcgt_*, vcgtq_*, vcgtz_*,
4076         vcgtzq_*, vcle_*, vcleq_*, vclez_*, vclezq_*, vclt_*, vcltq_*,
4077         vcltz_*, vcltzq_*, vtst_*, vtstq_*): Use gcc vector extensions.
4079 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
4081         * config/aarch64/aarch64-builtins.c (aarch64_types_cmtst_qualifiers,
4082         TYPES_TST): Define.
4083         (aarch64_fold_builtin): Update pattern for cmtst.
4085         * config/aarch64/aarch64-protos.h (aarch64_const_vec_all_same_int_p):
4086         Declare.
4088         * config/aarch64/aarch64-simd-builtins.def (cmtst): Update qualifiers.
4090         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>):
4091         Switch operands, separate out more cases, refactor.
4093         (aarch64_cmtst<mode>): Rewrite pattern to match (plus ... -1).
4095         * config/aarch64.c (aarch64_const_vec_all_same_int_p): Take single
4096         argument; rename old version to...
4097         (aarch64_const_vec_all_same_in_range_p): ...this.
4098         (aarch64_print_operand, aarch64_simd_shift_imm_p): Follow renaming.
4100         * config/aarch64/predicates.md (aarch64_simd_imm_minus_one): Define.
4102 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
4104         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
4105         Remove qualifier_const_pointer, update comment.
4107 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
4109         * config/aarch64/aarch64.md (adddi3_aarch64): set type to neon_add.
4111 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
4113         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Replace
4114         varargs with pointer parameter.
4115         (aarch64_simd_expand_builtin): pass pointer into previous.
4117 2014-09-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4119         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add alu_ext,
4120         alus_ext.
4122 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
4124         * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
4125         * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
4126         * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
4127         Replace temporary asm with call to builtin.
4128         (vrbit_p8, vrbitq_p8): New functions.
4130 2014-09-05  Richard Biener  <rguenther@suse.de>
4132         * cfgloop.c (mark_loop_for_removal): New function.
4133         * cfgloop.h (mark_loop_for_removal): Declare.
4134         * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
4135         (merge_blocks): Likewise.
4136         (duplicate_block): Likewise.
4137         * except.c (sjlj_emit_dispatch_table): Likewise.
4138         * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
4139         * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
4140         (thread_through_loop_header): Likewise.
4142 2014-09-05  Richard Biener  <rguenther@suse.de>
4144         PR middle-end/63148
4145         * fold-const.c (try_move_mult_to_index): Remove.
4146         (fold_binary_loc): Do not call it.
4147         * tree-data-ref.c (dr_analyze_indices): Strip conversions
4148         from the base object again.
4150 2014-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
4152         * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
4153         DImode.
4155 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
4157         PR target/55701
4158         * config/arm/arm.md (setmem): New pattern.
4159         * config/arm/arm-protos.h (struct tune_params): New fields.
4160         (arm_gen_setmem): New prototype.
4161         * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
4162         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
4163         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
4164         (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
4165         (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
4166         (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
4167         (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
4168         (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
4169         (arm_const_inline_cost): New function.
4170         (arm_block_set_max_insns): New function.
4171         (arm_block_set_non_vect_profit_p): New function.
4172         (arm_block_set_vect_profit_p): New function.
4173         (arm_block_set_unaligned_vect): New function.
4174         (arm_block_set_aligned_vect): New function.
4175         (arm_block_set_unaligned_non_vect): New function.
4176         (arm_block_set_aligned_non_vect): New function.
4177         (arm_block_set_vect, arm_gen_setmem): New functions.
4179 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
4181         * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
4183 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
4185         * config/arm/arm.c (output_move_neon): Handle REG explicitly.
4187 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
4189         * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
4190         an rtx.
4191         * valtrack.h: Adjust.
4193 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
4195         * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
4196         an rtx.
4197         (emit_jump_insn_before_noloc): Likewise.
4198         (emit_call_insn_before_noloc): Likewise.
4199         (emit_label_before): Likewise.
4200         (emit_label_after): Likewise.
4201         (emit_insn_before_setloc): Likewise.
4202         (emit_jump_insn_before_setloc): Likewise.
4203         (emit_call_insn_before_setloc): Likewise.
4204         (emit_call_insn_before): Likewise.
4205         * rtl.h: Adjust.
4207 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
4209         * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
4210         rtx_insn *, eliminating a checked cast.
4212 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
4214         * rtl.h (modified_between_p): Strengthen params 2 and 3 from
4215         const_rtx to const rtx_insn *.
4216         * rtlanal.c (modified_between_p): Likewise, eliminating a checked
4217         cast.
4219 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
4221         * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
4222         fixup_args_size_notes.
4223         * expr.c (fixup_args_size_notes): Strengthen first two params from
4224         rtx to rtx_insn *, eliminating a checked cast.
4225         * rtl.h (fixup_args_size_notes): Strengthen first two params from
4226         rtx to rtx_insn *.
4228 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
4230         * haifa-sched.c (get_ready_element): Strengthen return type from
4231         rtx to rtx_insn *.
4232         * sched-int.h (get_ready_element): Likewise.
4234 2014-09-04  Segher Boessenkool  <segher@kernel.crashing.org>
4236         PR target/63165
4237         * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
4238         indexed_or_indirect_operand instead of memory_operand.
4239         (floatsi<mode>2_lfiwzx_mem): Ditto.
4241 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
4243         * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
4244         config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
4245         ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
4247 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
4249         * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
4250         rtx.
4251         (get_last_nonnote_insn): Likewise.
4252         (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
4253         * resource.c (find_basic_block): Likewise.
4254         * rtl.h: Adjust.
4255         * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
4256         const_rtx.
4258 2014-09-04  David Malcolm  <dmalcolm@redhat.com>
4260         * genattr.c (main): Within the prototype of insn_latency written
4261         out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
4262         * genautomata.c (output_internal_maximal_insn_latency_func):
4263         Within the implementation of insn_latency written out to
4264         insn-automata.c, strengthen both params from rtx to rtx_insn *,
4265         eliminating a pair of checked casts.
4267 2014-09-04  David Malcolm  <dmalcolm@redhat.com>
4269         * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
4270         rtx_insn *.
4272         * rtl.h (eh_returnjump_p): Likewise.
4274 2014-09-04  Aldy Hernandez  <aldyh@redhat.com>
4276         * Makefile.in (TAGS): Handle constructs in timevar.def.
4278 2014-09-04  Guozhi Wei  <carrot@google.com>
4280         PR target/62040
4281         * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
4282         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
4283         it into two patterns.
4284         (move_lo_quad_internal_be_<mode>): Likewise.
4286 2014-09-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4288         * doc/options.texi: Document that Var and Init are required if CPP
4289         is given.
4290         * optc-gen.awk: Require Var and Init if CPP is given.
4291         * common.opt (Wpedantic): Use Init.
4293 2014-09-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4295         * config/rs6000/rs6000.c (special_handling_values): Add
4296         SH_EXTRACT.
4297         (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
4298         wrapped in a VEC_DUPLICATE, representing an extract.  Mark these
4299         as swappable with special handling SH_EXTRACT.  Remove
4300         UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
4301         optimization.
4302         (adjust_extract): New function.
4303         (handle_special_swappables): Add default to case statement; add
4304         case for SH_EXTRACT that calls adjust_extract.
4305         (dump_swap_insn_table): Handle SH_EXTRACT.
4307 2014-09-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4309         * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
4310         selection of 0th memory doubleword, regardless of endianness.
4312 2014-09-04  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
4314         * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
4316 2014-09-04  Alan Modra  <amodra@gmail.com>
4318         PR debug/60655
4319         * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
4320         can't be output.
4322 2014-09-03  Matthew Fortune  <matthew.fortune@imgtec.com>
4324         * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
4325         * targhooks.c (default_dwarf_frame_reg_mode): New function.
4326         * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
4327         * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
4328         * doc/tm.texi: Regenerate.
4329         * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
4330         selection logic to default_dwarf_frame_reg_mode.
4332 2014-09-03  Marek Polacek  <polacek@redhat.com>
4334         * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
4335         by -Wall.
4337 2014-09-03  Richard Sandiford  <richard.sandiford@arm.com>
4339         * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
4340         the automodified register.
4342 2014-09-03  Richard Sandiford  <richard.sandiford@arm.com>
4344         * output.h (get_some_local_dynamic_name): Declare.
4345         * final.c (some_local_dynamic_name): New variable.
4346         (get_some_local_dynamic_name): New function.
4347         (final_end_function): Clear some_local_dynamic_name.
4348         * config/alpha/alpha.c (machine_function): Remove some_ld_name.
4349         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
4350         (print_operand): Report an error if '%&' is used inappropriately.
4351         * config/i386/i386.c (get_some_local_dynamic_name): Delete.
4352         (get_some_local_dynamic_name_1): Delete.
4353         * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
4354         (rs6000_get_some_local_dynamic_name): Delete.
4355         (rs6000_get_some_local_dynamic_name_1): Delete.
4356         (print_operand): Report an error if '%&' is used inappropriately.
4357         * config/s390/s390.c (machine_function): Remove some_ld_name.
4358         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
4359         (print_operand): Assert that get_some_local_dynamic_name is nonnull.
4360         * config/sparc/sparc.c: Include rtl-iter.h.
4361         (machine_function): Remove some_ld_name.
4362         (sparc_print_operand): Report an error if '%&' is used inappropriately.
4363         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
4365 2014-09-03  Richard Henderson  <rth@redhat.com>
4367         * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
4368         (aarch64_popwb_pair_reg): Remove.
4369         (aarch64_set_frame_expr): Remove.
4370         (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
4371         the restore ops performed by the insns generated.
4372         (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
4373         insn.  Perform the calls_eh_return addition later; do not attempt to
4374         preserve the CFA in that case.  Don't use aarch64_set_frame_expr.
4375         (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
4376         special markup at all.  Load cfun->machine->frame.hard_fp_offset
4377         into a local variable.
4378         (aarch64_frame_pointer_required): Don't check calls_alloca.
4380 2014-09-03  Richard Biener  <rguenther@suse.de>
4382         * opts.c (default_options_optimization): Adjust
4383         max-combine-insns to 2 for -Og.
4385 2014-09-03  Martin Jambor  <mjambor@suse.cz>
4387         PR ipa/62015
4388         * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
4389         pass-trough jump functions correctly.
4391 2014-09-03  Martin Jambor  <mjambor@suse.cz>
4393         PR ipa/61986
4394         * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
4395         created replacements in ascending order of offsets.
4396         (known_aggs_to_agg_replacement_list): Likewise.
4398 2014-09-03  Martin Liska  <mliska@suse.cz>
4400         * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
4401         is set to set uninitialized value for vnresult.
4403 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
4405         * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
4406         for TARGET_MUST_PASS_IN_STACK.
4408 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
4410         * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
4411         for TARGET_ARG_PARTIAL_BYTES.
4413 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
4415         * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
4416         instructions for varargs implementation.
4417         (nds32_expand_epilogue): Emit stack adjustment instructions for
4418         varargs implementation.
4420 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
4422         * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
4423         optimization detection.
4425 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
4427         * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
4428         arguments.
4429         (nds32_function_arg_advance): Deal with nameless arguments.
4430         * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
4431         (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
4432         (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
4434 2014-09-03  Richard Biener  <rguenther@suse.de>
4436         * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
4437         (struct bb_bitmap_sets): Remove deferred member.
4438         (BB_DEFERRED): Remove.
4439         (defer_or_phi_translate_block): Remove.
4440         (compute_antic_aux): Remove deferring of blocks, assert
4441         proper iteration order.
4442         (compute_antic): Do not set BB_DEFERRED.
4443         (eliminate): Allocate el_avail of proper size initially.
4445 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
4447         * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
4448         according to the value of crtl->args.pretend_args_size.
4450 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
4452         * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
4453         varargs information.
4455 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
4457         * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
4458         implementation for TARGET_SETUP_INCOMING_VARARGS.
4459         (nds32_strict_argument_naming): Refine comment.
4460         * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
4461         Define for future implementation.
4463 2014-09-03  Ilya Tocar  <ilya.tocar@intel.com>
4465         * config/i386/adxintrin.h (_subborrow_u32): New.
4466         (_addcarry_u32): Ditto.
4467         (_subborrow_u64): Ditto.
4468         (_addcarry_u64): Ditto.
4469         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
4470         IX86_BUILTIN_SBB64.
4471         (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
4472         __builtin_ia32_sbb_u64
4474 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
4476         * config/nds32/nds32.c (nds32_function_arg): Define and rename some
4477         GPR-specific stuff.
4478         (nds32_function_arg_advance): Likewise.
4479         (nds32_init_cumulative_args): Likewise.
4480         * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
4481         (NDS32_FIRST_GPR_REGNUM): Define.
4482         (NDS32_LAST_GPR_REGNUM): Define.
4483         (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
4484         (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
4485         (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
4486         (machine_function): Use GRP-specific stuff.
4488 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
4490         * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
4491         (nds32_expand_epilogue): Likewise.
4492         (nds32_expand_prologue_v3push): Likewise.
4493         (nds32_expand_epilogue_v3pop): Likewise.
4495 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
4497         * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
4498         v3push/v3pop for variadic function.
4499         * config/nds32/nds32.md (prologue, epilogue): Likewise.
4501 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
4503         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
4504         Check rtx for varargs implementation.
4505         (nds32_output_stack_pop): Likewise.
4506         * config/nds32/nds32-protos.h: Have a rtx argument for
4507         nds32_output_stack_push and nds32_output_stack_pop.
4508         * config/nds32/nds32.md: Likewise.
4510 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
4512         * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
4513         to check if FUNC is an interrupt service routine.
4514         * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
4516 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
4518         * config/nds32/nds32.h (machine_function): Add some fields for variadic
4519         arguments implementation.
4521 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
4523         * config/nds32/nds32-predicates.c
4524         (nds32_valid_stack_push_pop): Rename to ...
4525         (nds32_valid_stack_push_pop_p): ... this.
4526         * config/nds32/nds32-protos.h: Likewise.
4527         * config/nds32/predicates.md: Likewise.
4529 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
4531         * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
4532         (nds32_emit_stack_v3push): ... this.
4533         (nds32_gen_stack_v3pop): Rename to ...
4534         (nds32_emit_stack_v3pop): ... this and consider CFA restore
4535         information.
4537 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
4539         * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
4540         (nds32_emit_stack_push_multiple): ... this.
4541         (nds32_gen_stack_pop_multiple): Rename to ...
4542         (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
4543         information.
4545 2014-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4547         PR target/61078
4548         * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
4549         and add a second splitter to handle the remaining cases.
4551 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
4553         * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
4555 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
4557         * cfgexpand.c (label_rtx_for_bb): Change type to
4558         hash_map<basic_block, rtx_code_label *> *.
4559         (expand_gimple_basic_block): Adjust.
4560         (pass_expand::execute): Likewise.
4562 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
4564         * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
4565         config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
4566         config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
4567         config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
4568         config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
4569         config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
4570         stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
4571         of rtx.
4573 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
4575         * alloc-pool.c: Include coretypes.h.
4576         * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
4577         function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
4578         hash_set instead of htab.
4579         * ggc-page.c (in_gc): New variable.
4580         (ggc_free): Do nothing if a collection is taking place.
4581         (ggc_collect): Set in_gc appropriately.
4582         * ggc.h (gt_ggc_mx(const char *)): New function.
4583         (gt_pch_nx(const char *)): Likewise.
4584         (gt_ggc_mx(int)): Likewise.
4585         (gt_pch_nx(int)): Likewise.
4586         * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
4587         (hash_map::hash_entry::pch_nx): Likewise.
4588         (hash_map::hash_entry::pch_nx_helper): Likewise.
4589 (hash_map::hash_map): Adjust.
4590 (hash_map::create_ggc): New function.
4591 (gt_ggc_mx): Likewise.
4592 (gt_pch_nx): Likewise.
4593         * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
4594 (default_hashset_traits::pch_nx): Likewise.
4595 (hash_set::hash_entry::ggc_mx): Likewise.
4596 (hash_set::hash_entry::pch_nx): Likewise.
4597 (hash_set::hash_entry::pch_nx_helper): Likewise.
4598 (hash_set::hash_set): Adjust.
4599 (hash_set::create_ggc): New function.
4600 (hash_set::elements): Likewise.
4601 (gt_ggc_mx): Likewise.
4602 (gt_pch_nx): Likewise.
4603         * hash-table.h (hash_table::hash_table): Adjust.
4604 (hash_table::m_ggc): New member.
4605         (hash_table::~hash_table): Adjust.
4606         (hash_table::expand): Likewise.
4607         (hash_table::empty): Likewise.
4608 (gt_ggc_mx): New function.
4609         (hashtab_entry_note_pointers): Likewise.
4610 (gt_pch_nx): Likewise.
4612 2014-09-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4614         * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE):  New
4615         built-in definition.
4616         (XVCVUXDDP_SCALE): Likewise.
4617         (XVCVDPSXDS_SCALE): Likewise.
4618         (XVCVDPUXDS_SCALE): Likewise.
4619         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins):  Add
4620         entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
4621         VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
4622         VSX_BUILTIN_XVCVDPUXDS_SCALE.
4623         * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
4624         prototype.
4625         * config/rs6000/rs6000.c (real.h): New include.
4626         (rs6000_scale_v2df): New function.
4627         * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
4628         (UNSPEC_VSX_XVCVUXDDP): Likewise.
4629         (UNSPEC_VSX_XVCVDPSXDS): Likewise.
4630         (UNSPEC_VSX_XVCVDPUXDS): Likewise.
4631         (vsx_xvcvsxddp_scale): New define_expand.
4632         (vsx_xvcvsxddp): New define_insn.
4633         (vsx_xvcvuxddp_scale): New define_expand.
4634         (vsx_xvcvuxddp): New define_insn.
4635         (vsx_xvcvdpsxds_scale): New define_expand.
4636         (vsx_xvcvdpsxds): New define_insn.
4637         (vsx_xvcvdpuxds_scale): New define_expand.
4638         (vsx_xvcvdpuxds): New define_insn.
4639         * doc/extend.texi (vec_ctf): Add new prototypes.
4640         (vec_cts): Likewise.
4641         (vec_ctu): Likewise.
4642         (vec_splat): Likewise.
4643         (vec_div): Likewise.
4644         (vec_mul): Likewise.
4646 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4648         PR target/62275
4649         * config/arm/neon.md
4650         (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
4651         <v_cmp_result>): New pattern.
4652         * config/arm/iterators.md (NEON_VCVT): New int iterator.
4653         * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
4654         vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
4655         vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
4656         * config/arm/arm.c (arm_builtin_vectorized_function): Handle
4657         BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
4659 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4661         PR target/62275
4662         * config/arm/iterators.md (FIXUORS): New code iterator.
4663         (VCVT): New int iterator.
4664         (su_optab): New code attribute.
4665         (su): Likewise.
4666         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
4668 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4670         * config/aarch64/predicates.md (aarch64_comparison_operation):
4671         New special predicate.
4672         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
4673         aarch64_comparison_operation instead of matching an operator.
4674         Update operand numbers.
4675         (csinc3<mode>_insn): Likewise.
4676         (*csinv3<mode>_insn): Likewise.
4677         (*csneg3<mode>_insn): Likewise.
4678         (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
4679         * config/aarch64/aarch64.c (aarch64_get_condition_code):
4680         Return -1 instead of aborting on invalid condition codes.
4681         (aarch64_print_operand): Update aarch64_get_condition_code callsites
4682         to assert that the returned condition code is valid.
4683         * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
4685 2014-09-02  Aldy Hernandez  <aldyh@redhat.com>
4687         * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
4688         tree.def, and gimple.def
4690 2014-09-02  Jakub Jelinek  <jakub@redhat.com>
4691             Balaji V. Iyer  <balaji.v.iyer@intel.com>
4692             Igor Zamyatin  <igor.zamyatin@intel.com>
4694         * cilk-builtins.def (__cilkrts_cilk_for_32): New.
4695         (__cilkrts_cilk_for_64): Likewise.
4696         * cilk-common.c (declare_cilk_for_builtin): New function.
4697         (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
4698         __cilkrts_cilk_for_64 bultins.
4699         * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
4700         CILK_TI_F_LOOP_64.
4701         (cilk_for_32_fndecl): New define.
4702         (cilk_for_64_fndecl): Likewise.
4703         * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
4704         GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
4705         * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
4706         GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
4707         GF_OMP_FOR_COMBINED_INTO.
4708         * gimplify.c (gimplify_scan_omp_clauses): Added
4709         OMP_CLAUSE__CILK_FOR_COUNT_ case.
4710         (gimplify_adjust_omp_clauses): Ditto.
4711         (gimplify_omp_for): Added CILK_FOR case.
4712         (gimplify_expr): Ditto.
4713         * omp-low.c: Include cilk.h.
4714         (extract_omp_for_data): Set appropriate kind for
4715         GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
4716         (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
4717         (create_omp_child_function_name): Added second argument to handle
4718         cilk_for case.
4719         (cilk_for_check_loop_diff_type): New function.
4720         (expand_cilk_for_call): Likewise.
4721         (expand_cilk_for): Likewise.
4722         (create_omp_child_function): Set cilk_for_count; handle the cases when
4723         it is true; call create_omp_child_function_name with second argument.
4724         (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
4725         (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
4726         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
4727         * tree-nested.c (convert_nonlocal_omp_clauses): Added
4728         OMP_CLAUSE__CILK_FOR_COUNT_ case.
4729         (convert_local_omp_clauses): Ditto.
4730         * tree-pretty-print.c (dump_omp_clause): Added
4731         OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
4732         (dump_generic_node): Added CILK_FOR case.
4733         * tree.c (omp_clause_num_ops): New element
4734         OMP_CLAUSE__CILK_FOR_COUNT_ (1).
4735         (omp_clause_code_name): New element _Cilk_for_count_.
4736         (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
4737         * tree.def: Add tree code for CILK_FOR.
4739 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
4741         * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
4742         (ppc403-compare): Add "exts with dot" case.
4743         * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
4744         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
4745         * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
4746         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
4747         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
4748         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
4749         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
4750         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
4751         cell-cmp-microcoded): Similarly.
4752         * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
4753         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
4754         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
4755         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
4756         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
4757         * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
4758         * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
4759         * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
4760         (power6-compare): Add "exts with dot" case.
4761         * config/rs6000/power7.md (power7-integer, power7-compare): As before.
4762         * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
4763         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
4765         * config/rs6000/predicates.md (lwa_operand): Don't allow memory
4766         if avoiding Cell microcode.
4767         * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
4768         (is_cracked_insn): Ditto.
4769         (insn_must_be_first_in_group): Ditto.
4770         * config/rs6000/rs6000.md (dot): Adjust comment.
4771         (cell_micro): Handle exts+dot.
4772         (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
4773         *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
4774         extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
4775         (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
4776         extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
4777         *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
4778         *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
4780 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
4782         * config/rs6000/rs6000.md (QHSI): Delete.
4783         (EXTQI, EXTHI, EXTSI): New mode iterators.
4784         (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
4785         *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
4786         *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
4787         9 anonymous instructions, and 8 splitters): Delete.
4788         (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
4789         *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
4790         *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
4791         zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
4792         *zero_extendsi<mode>2_dot2): New.
4794 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
4796         * config/rs6000/rs6000.md (any_extend): New code iterator.
4797         (u, su): New code attributes.
4798         (dmode, DMODE): New mode attributes.
4799         (<su>mul<mode>3_highpart): New.
4800         (*<su>mul<mode>3_highpart): New.
4801         (<su>mulsi3_highpart_le): New.
4802         (<su>muldi3_highpart_le): New.
4803         (<su>mulsi3_highpart_64): New.
4804         (<u>mul<mode><dmode>3): New.
4805         (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
4806         splitters): Delete.
4807         (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
4808         splitters): Delete.
4810 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
4812         * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
4813         *mulsi3_internal2, and two splitters): Delete.
4814         (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
4815         Delete.
4816         (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
4818 2014-09-02  Richard Biener  <rguenther@suse.de>
4820         PR tree-optimization/62695
4821         * tree-ssa-structalias.c (find_func_clobbers): Add missing
4822         vector truncate.
4824 2014-09-01  Oleg Endo  <olegendo@gcc.gnu.org>
4826         PR target/62312
4827         * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
4829 2014-09-01  Andi Kleen  <ak@linux.intel.com>
4831         * file-find.c (add_prefix_begin): Add.
4832         (do_add_prefix): Rename from add_prefix with first argument.
4833         (add_prefix): Add new wrapper.
4834         * file-find.h (add_prefix_begin): Add.
4835         * gcc-ar.c (main): Support -B option.
4837 2014-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
4839         * genemit.c: Include dumpfile.h.
4840         (gen_split): Print name of splitter function to dump file.
4842 2014-09-01  Richard Biener  <rguenther@suse.de>
4844         * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
4845         Use stack auto_vecs for constraint expressions.
4846         (find_func_aliases_for_call): Likewise.
4847         (find_func_aliases): Likewise.
4848         (find_func_clobbers): Likewise.
4850 2014-09-01  Richard Biener  <rguenther@suse.de>
4852         * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
4853         operands vector in most cases.  Remove redundant code.
4855 2014-09-01  Olivier Hainque  <hainque@adacore.com>
4857         * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
4858         $WIND_BASE instead of designating a harcoded arbitrary home dir.
4859         (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
4861 2014-09-01  Richard Biener  <rguenther@suse.de>
4863         * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
4864         copy_reference_ops_from_call, vn_nary_op_compute_hash,
4865         vn_reference_compute_hash, vn_reference_insert): Remove.
4866         (vn_reference_lookup_call): New function.
4867         * tree-ssa-sccvn.c (vn_reference_compute_hash,
4868         copy_reference_ops_from_ref, copy_reference_ops_from_call,
4869         vn_reference_insert, vn_nary_op_compute_hash): Make static.
4870         (create_reference_ops_from_call): Remove.
4871         (vn_reference_lookup_3): Properly update shared_lookup_references.
4872         (vn_reference_lookup_pieces): Assert that we updated
4873         shared_lookup_references properly.
4874         (vn_reference_lookup): Likewise.
4875         (vn_reference_lookup_call): New function.
4876         (visit_reference_op_call): Use it.  Avoid re-building the
4877         reference ops.
4878         (visit_reference_op_load): Remove redundant lookup.
4879         (visit_reference_op_store): Perform special tail-merging work
4880         only when possibly doing tail-merging.
4881         (visit_use): Likewise.
4882         * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
4884 2014-09-01  Jakub Jelinek  <jakub@redhat.com>
4886         PR target/62025
4887         * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
4888         returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
4889         (find_inc): Revert 2014-08-13 change.
4891 2014-09-01  Marek Polacek  <polacek@redhat.com>
4893         PR middle-end/61903
4894         * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
4895         Change the type of V to unsigned HOST_WIDE_INT.
4897 2014-09-01  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4899         * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
4900         the size of byte markers.
4901         (do_shift_rotate): Fix confusion between host, target and marker byte
4902         size.
4903         (verify_symbolic_number_p): Likewise.
4904         (find_bswap_or_nop_1): Likewise.
4905         (find_bswap_or_nop): Likewise.
4907 2014-09-01  Olivier Hainque  <hainque@adacore.com>
4909         * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
4910         INSTALL_SCRIPT and INSTALL_PROGRAM as well.
4912 2014-09-01  Jakub Jelinek  <jakub@redhat.com>
4914         * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
4915         * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
4916         (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
4918 2014-09-01  Yury Gribov  <y.gribov@samsung.com>
4920         PR sanitizer/61897
4921         PR sanitizer/62140
4922         * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
4923         (build_check_stmt): Likewise.
4924         (instrument_strlen_call): Likewise.
4925         (asan_expand_check_ifn): Likewise and fix types.
4926         (maybe_cast_to_ptrmode): New function.
4928 2014-09-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
4930         * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
4932 2014-08-31  Gerald Pfeifer  <gerald@pfeifer.com>
4934         * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
4936 2014-08-30  John David Anglin  <danglin@gcc.gnu.org>
4938         * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
4939         prefix to function labels when generating fast indirect calls.
4941 2014-08-30  David Malcolm  <dmalcolm@redhat.com>
4943         PR bootstrap/62304
4945         * gcc/reorg.c (skip_consecutive_labels): Convert return type and
4946         param back from rtx_insn * to rtx.  Rename param from "label" to
4947         "label_or_return", reintroducing "label" as an rtx_insn * after
4948         we've ensured it's not a RETURN.
4949         (first_active_target_insn): Likewise for return type and param;
4950         add a checked cast to rtx_insn * once we've ensured "insn" is not
4951         a RETURN.
4952         (steal_delay_list_from_target): Convert param "pnew_thread" back
4953         from rtx_insn ** to rtx *.  Replace use of JUMP_LABEL_AS_INSN
4954         with JUMP_LABEL.
4955         (own_thread_p): Convert param "thread" back from an rtx_insn * to
4956         an rtx.  Introduce local rtx_insn * "thread_insn" with a checked
4957         cast once we've established we're not dealing with a RETURN,
4958         renaming subsequent uses of "thread" to "thread_insn".
4959         (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
4960         to JUMP_LABEL.
4961         (follow_jumps): Convert return type and param "label" from
4962         rtx_insn * back to rtx.  Move initialization of "value" to after
4963         the handling for ANY_RETURN_P, adding a checked cast there to
4964         rtx_insn *.  Convert local rtx_insn * "this_label" to an rtx and
4965         rename to "this_label_or_return", reintroducing "this_label" as
4966         an rtx_insn * once we've handled the case where it could be an
4967         ANY_RETURN_P.
4968         (fill_slots_from_thread): Rename param "thread" to
4969         "thread_or_return", converting from an rtx_insn * back to an rtx.
4970         Reintroduce name "thread" as an rtx_insn * local with a checked
4971         cast once we've handled the case of it being an ANY_RETURN_P.
4972         Convert local "new_thread" from an rtx_insn * back to an rtx.
4973         Add a checked cast when assigning to "trial" from "new_thread".
4974         Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL.  Add a
4975         checked cast to rtx_insn * from "new_thread" when invoking
4976         get_label_before.
4977         (fill_eager_delay_slots): Convert locals "target_label",
4978         "insn_at_target" from rtx_insn * back to rtx.
4979         Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
4980         (relax_delay_slots): Convert locals "trial", "target_label" from
4981         rtx_insn * back to rtx.  Convert uses of JUMP_LABEL_AS_INSN back
4982         to JUMP_LABEL.  Add a checked cast to rtx_insn * on "trial" when
4983         invoking update_block.
4984         (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
4985         JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
4987         * resource.h (mark_target_live_regs): Undo erroneous conversion
4988         of second param of r214693, converting it back from rtx_insn * to
4989         rtx, since it could be a RETURN.
4991         * resource.c (find_dead_or_set_registers): Similarly, convert
4992         param "jump_target" back from an rtx_insn ** to an rtx *, as we
4993         could be writing back a RETURN.  Rename local rtx_insn * "next" to
4994         "next_insn", and introduce "lab_or_return" as a local rtx,
4995         handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
4996         (mark_target_live_regs): Undo erroneous conversion
4997         of second param of r214693, converting it back from rtx_insn * to
4998         rtx, since it could be a RETURN.  Rename it from "target" to
4999         "target_maybe_return", reintroducing the name "target" as a local
5000         rtx_insn * with a checked cast, after we've handled the case of
5001         ANY_RETURN_P.
5003 2014-08-29  DJ Delorie  <dj@redhat.com>
5005         * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
5006         pointer size up to a power of two.
5007         * defaults.h (DWARF2_ADDR_SIZE): Round up.
5008         (POINTER_SIZE_UNITS): New, rounded up value.
5009         * dwarf2asm.c (size_of_encoded_value): Use it.
5010         (dw2_output_indirect_constant_1): Likewise.
5011         * expmed.c (init_expmed_one_conv): We now know the sizes of
5012         partial int modes.
5013         * loop-iv.c (iv_number_of_iterations): Use precision, not size.
5014         * optabs.c (expand_float): Use precision, not size.
5015         (expand_fix): Likewise.
5016         * simplify-rtx (simplify_unary_operation_1): Likewise.
5017         * tree-dfa.c (get_ref_base_and_extent): Likewise.
5018         * varasm.c (assemble_addr_to_section): Round up pointer sizes.
5019         (default_assemble_integer) Likewise.
5020         (dump_tm_clone_pairs): Likewise.
5021         * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
5022         * var-tracking.c (adjust_mems): Allow partial-int modes also.
5023         (prepare_call_arguments): Likewise.
5024         * stor-layout.c (finalize_type_size): Preserve precision.
5025         (layout_type): Use precision, not size.
5027         * expr.c (convert_move): If the target has an explicit converter,
5028         use it.
5030 2014-08-29  David Malcolm  <dmalcolm@redhat.com>
5032         * gdbinit.in: Skip various inline functions in rtl.h when
5033         stepping.
5035 2014-08-29  Richard Sandiford  <richard.sandiford@arm.com>
5037         PR bootstrap/62301
5038         * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
5040 2014-08-29  Richard Biener  <rguenther@suse.de>
5042         PR tree-optimization/62291
5043         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
5044         exactly the vector size needed and use quick_push.
5045         (phi_translate_1): Adjust comment.
5046         (valid_in_sets): Remove block argument and remove pointless
5047         checking of NAMEs.
5048         (dependent_clean): Adjust for removal of block argument.
5049         (clean): Likewise.
5050         (compute_antic_aux): Likewise.
5051         (compute_partial_antic_aux): Likewise.
5053 2014-08-29  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5054             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5055             Anna Tikhonova  <anna.tikhonova@intel.com>
5056             Ilya Tocar  <ilya.tocar@intel.com>
5057             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5058             Ilya Verbin  <ilya.verbin@intel.com>
5059             Kirill Yukhin  <kirill.yukhin@intel.com>
5060             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5062         * config/i386/sse.md
5063         (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
5064         (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
5065         (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
5066         (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
5068 2014-08-29  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5069             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5070             Anna Tikhonova  <anna.tikhonova@intel.com>
5071             Ilya Tocar  <ilya.tocar@intel.com>
5072             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5073             Ilya Verbin  <ilya.verbin@intel.com>
5074             Kirill Yukhin  <kirill.yukhin@intel.com>
5075             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5077         * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
5078         * config/i386/sse.md
5079         (define_mode_iterator VI4_128_8_256): New.
5080         (define_mode_iterator VI2_128_4_256): Ditto.
5081         (define_mode_iterator PMOV_DST_MODE): Rename into
5082         (define_mode_iterator PMOV_DST_MODE_1): this.
5083         (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
5084         Use PMOV_DST_MODE_1 mode iterator.
5085         (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
5086         Ditto.
5087         (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
5088         Ditto.
5089         (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
5090         (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
5091         (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
5092         (define_mode_iterator PMOV_DST_MODE_2): New.
5093         (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
5094         (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
5095         (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
5096         Ditto.
5097         (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
5098         (define_mode_attr pmov_dst_3): Ditto.
5099         (define_mode_attr pmov_dst_zeroed_3): Ditto.
5100         (define_mode_attr pmov_suff_3): Ditto.
5101         (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
5102         (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
5103         (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
5104         (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
5105         (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
5106         (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
5107         (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
5108         (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
5109         (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
5110         (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
5111         (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
5112         (define_mode_attr pmov_dst_4): Ditto.
5113         (define_mode_attr pmov_dst_zeroed_4): Ditto.
5114         (define_mode_attr pmov_suff_4): Ditto.
5115         (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
5116         (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
5117         (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
5118         (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
5119         (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
5120         (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
5121         (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
5122         (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
5123         (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
5124         (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
5125         (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
5127 2014-08-29  Richard Biener  <rguenther@suse.de>
5129         * tree-cfg.c (verify_gimple_assign_unary): Do not allow
5130         NON_LVALUE_EXPR in gimple.
5132 2014-08-29  Richard Biener  <rguenther@suse.de>
5134         PR middle-end/62292
5135         * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
5136         from previous refactoring.
5137         (gimple_fold_builtin_strncpy): Likewise.
5139 2014-08-29  David Malcolm  <dmalcolm@redhat.com>
5141         PR bootstrap/62300
5142         * function.c (assign_parm_setup_reg): Remove erroneous checked
5143         cast to rtx_insn * on result of gen_extend_insn in favor of
5144         introducing a new local rtx "pat".
5146 2014-08-29  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
5148         * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
5149         to silence warning.
5150         * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
5152 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
5154         * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
5155         (next_insn): Likewise.
5156         * emit-rtl.c (next_insn): Likewise.
5157         (previous_insn): Likewise.
5158         * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
5159         "insn" and "next" from rtx to rtx_insn *.
5160         * config/picochip/picochip.c (picochip_reorg): Likewise for locals
5161         "insn", "insn1", "vliw_start",  "prologue_end_note",
5162         "last_insn_in_packet".
5164 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
5166         * shrink-wrap.h (active_insn_between): Strengthen both params from
5167         rtx to rtx_insn *.
5168         * function.c (active_insn_between): Likewise.
5170 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
5172         * genattr.c (main): When writing out insn-attr.h, strengthen param
5173         of dfa_clear_single_insn_cache from rtx to rtx_insn *.
5174         * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
5175         writing out the definition of dfa_clear_single_insn_cache to the
5176         generated insn-automata.c
5178 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
5180         * resource.h (clear_hashed_info_for_insn): Strengthen param from
5181         rtx to rtx_insn *.
5182         (incr_ticks_for_insn): Likewise.
5183         (init_resource_info): Likewise.
5185         * resource.c (init_resource_info): Likewise.
5186         (clear_hashed_info_for_insn): Likewise.
5187         (incr_ticks_for_insn): Likewise.
5189         * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
5190         rtx to rtx_insn *.
5191         (steal_delay_list_from_target): Use methods of "seq".
5192         (try_merge_delay_insns): Use methods of "merged_insns".
5193         (update_block): Strengthen param "insn" from rtx to rtx_insn *.
5194         (reorg_redirect_jump): Likewise for param "jump".
5196 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
5198         * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
5199         rtx to rtx_insn *.
5200         * config/s390/s390.c (s390_split_branches): Eliminate top-level
5201         local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
5202         "set_insn".
5203         (s390_mainpool_finish): In three places, split out a local rtx
5204         "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
5205         "insn".  Strengthen local "pool_end" from rtx to rtx_code_label *
5206          and split another local rtx "insn" out into rtx "pat" and
5207         rtx_insn * "insn".
5208         * config/sh/sh.c (output_branchy_insn): Rather than working
5209         directly on operands[9], introduce local rtx_code_label *
5210         variables named "lab" in two places, working on them, and then
5211         assigning them to operands[9], so that the intervening operations
5212         are known by the type system to be on insns.
5214 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
5216         * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
5217         const rtx_insn *.
5219         * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
5220         in invocation of INSN_HAS_LOCATION.
5222 2014-08-28  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5224         * config/rs6000/altivec.h (vec_xl): New #define.
5225         (vec_xst): Likewise.
5226         * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
5227         (XXSPLTD_V2DI): Likewise.
5228         (DIV_V2DI): Likewise.
5229         (UDIV_V2DI): Likewise.
5230         (MUL_V2DI): Likewise.
5231         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
5232         entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
5233         VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
5234         VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
5235         * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
5236         (UNSPEC_VSX_DIVSD): Likewise.
5237         (UNSPEC_VSX_DIVUD): Likewise.
5238         (UNSPEC_VSX_MULSD): Likewise.
5239         (vsx_mul_v2di): New insn-and-split.
5240         (vsx_div_v2di): Likewise.
5241         (vsx_udiv_v2di): Likewise.
5242         (vsx_xxspltd_<mode>): New insn.
5244 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
5246         * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
5247         NEXT_INSN.
5248         (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
5249         (NEXT_INSN): Likewise.
5250         (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
5251         (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
5252         const rtx_insn *.
5253         (no_labels_between_p): Likewise for both params.
5255         * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
5256         cast when using NEXT_INSN on operands[2].
5257         * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
5258         "insn" from rtx to rtx_insn *, adding a checked cast.
5259         (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
5260         rtx_insn *.
5261         * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
5262         for third param.
5263         (arc_text_label): Likewise for param "insn".
5264         * config/arc/arc.c (arc_expand_epilogue): Likewise for local
5265         "insn".
5266         (arc_ccfsm_record_condition): Likewise for param "jump".
5267         (arc_text_label): Likewise for local "label".
5268         * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
5269         Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
5270         a method for typesafety.  Add a checked cast.
5271         * config/arc/constraints.md (Clb): Add a checked cast when getting
5272         the CODE_LABEL from a LABEL_REF.
5273         * config/arm/arm.c (require_pic_register): Strengthen locals
5274         "seq", "insn" from rtx to rtx_insn *.
5275         (create_fix_barrier): Likewise for locals "selected", "next".
5276         (thumb1_reorg): Likewise for locals "prev", "insn".
5277         (arm_expand_prologue): Likewise for local "last".
5278         (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
5279         operands[0].
5280         (thumb2_output_casesi): Likewise for operands[2].
5281         * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
5282         strengthen local "insn" from rtx to rtx_insn *.
5283         * config/bfin/bfin.c (find_next_insn_start): Likewise for return
5284         type and param "insn".
5285         (find_prev_insn_start): Likewise.
5286         (hwloop_optimize): Likewise for locals "insn", "last_insn",
5287         "prev".
5288         (gen_one_bundle): Likewise for loal "t".
5289         (find_load): Likewise for param "insn".
5290         (workaround_speculation): Likewise for locals "insn", "next",
5291         "target", "next_tgt".
5292         * config/c6x/c6x.c (assign_reservations): Likewise for both params
5293         and for locals "insn", "within", "last".
5294         (count_unit_reqs): Likewise for params "head", "tail" and local
5295         "insn".
5296         (try_rename_operands): Likewise for params "head", "tail".
5297         (reshuffle_units): Likewise for locals "head", "tail", "insn".
5298         (struct c6x_sched_context): Likewise for fields
5299         "last_scheduled_insn", "last_scheduled_iter0".
5300         (init_sched_state): Replace NULL_RTX with NULL.
5301         (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
5302         to rtx_insn *.
5303         (undo_split_delayed_nonbranch): Likewise for param and for local
5304         "prev".
5305         (conditionalize_after_sched): Likewise for local "insn".
5306         (bb_earliest_end_cycle): Likewise.
5307         (filter_insns_above): Likewise for locals "insn", "next".
5308         (hwloop_optimize): Remove redundant checked cast.
5309         (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
5310         * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
5311         NULL_RTX with NULL.
5312         (cris_simple_epilogue): Likewise.
5313         (cris_expand_prologue): Likewise.
5314         (cris_expand_epilogue): Likewise.
5315         * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
5316         local "insn" from rtx to rtx_insn *.
5317         (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
5318         (struct frv_packet_group): Likewise for the elements within array
5319         fields "insns", "sorted", and for field "nop".
5320         (frv_packet): Likewise for the elements within array field
5321         "insns".
5322         (frv_add_insn_to_packet): Likewise for param "insn".
5323         (frv_insert_nop_in_packet): Likewise for param "insn" and local
5324         "last".
5325         (frv_for_each_packet): Likewise for locals "insn", "next_insn".
5326         (frv_sort_insn_group_1): Likewise for local "insn".
5327         (frv_optimize_membar_local): Likewise.
5328         (frv_align_label): Likewise for locals "x", "last", "barrier",
5329         "label".
5330         * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
5331         local.
5332         (ia64_sched_init): Likewise for local "insn".
5333         (scheduled_good_insn): Likewise for param "last".
5334         (struct _ia64_sched_context): Likewise for field
5335         "last_scheduled_insn".
5336         (ia64_init_sched_context): Replace NULL_RTX with NULL.
5337         (struct bundle_state): Likewise for field "insn".
5338         (issue_nops_and_insn): Likewise for param "insn".
5339         (get_next_important_insn): Likewise for return type and both
5340         params.
5341         (ia64_add_bundle_selector_before): Likewise for param "insn".
5342         (bundling): Likewise for params "prev_head_insn", "tail" and
5343         locals "insn", "next_insn", "b".  Eliminate top-level local rtx
5344         "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
5345         * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
5346         Strengthen final param from rtx to rtx_insn *.
5347         (iq2000_move_1word): Likewise for second param.
5348         * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
5349         param "cur_insn" and local "next_insn".
5350         (iq2000_move_1word): Likewise for param "insn".
5351         * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
5352         casts when using NEXT_INSN on operands[1].
5353         * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
5354         "insn" from rtx to rtx_insn *.
5355         * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
5356         "x", introducing local rtx_insn * "insn" for when working with the
5357         CODE_LABEL of the LABEL_REF.
5358         (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
5359         rtx_insn *.
5360         * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
5361         param.
5362         * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
5363         type.
5364         (conditionalize_block): Likewise for return type and param.
5365         (mcore_is_dead): Likewise for param "first" and local "insn".
5366         (emit_new_cond_insn): Likewise for return type.
5367         (conditionalize_block): Likewise for return type, param, and
5368         locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
5369         "newinsn".
5370         (conditionalize_optimization): Likewise for local "insn".
5371         * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
5372         using NEXT_INSN.
5373         * config/microblaze/microblaze.md: Add checked casts when using
5374         NEXT_INSN.
5375         * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
5376         rtx "insn" in favor of various more tightly-scoped rtx "insn" and
5377         and rtx_insn * "insn".
5378         * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
5379         checked cast when using NEXT_INSN on operands[2].
5380         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
5381         local "insn" from rtx to rtx_insn *.
5382         * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
5383         Likewise.
5384         * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
5385         Add a checked cast when using NEXT_INSN on operands[1].
5386         * config/pa/pa-protos.h (pa_following_call): Strengthen param from
5387         rtx to rtx_insn *.
5388         (pa_output_cbranch): Likewise for final param.
5389         (pa_output_lbranch): Likewise for second param.
5390         (pa_output_bb): Likewise for third param.
5391         (pa_output_bvb): Likewise.
5392         (pa_output_dbra): Likewise for second param.
5393         (pa_output_movb): Likewise.
5394         (pa_output_parallel_movb): Likewise.
5395         (pa_output_parallel_addb): Likewise.
5396         (pa_output_millicode_call): Likewise for first param.
5397         (pa_output_mul_insn): Likewise for second param.
5398         (pa_output_div_insn): Likewise for third param.
5399         (pa_output_mod_insn): Likewise for second param.
5400         (pa_jump_in_call_delay): Likewise for param.
5401         * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
5402         (pa_output_div_insn): Likewise.
5403         (pa_output_mod_insn): Likewise.
5404         (pa_output_cbranch): Likewise.
5405         (pa_output_lbranch): Likewise.
5406         (pa_output_bb): Likewise.
5407         (pa_output_bvb): Likewise.
5408         (pa_output_dbra): Likewise.
5409         (pa_output_movb): Likewise.
5410         (pa_output_millicode_call): Likewise; use method of rtx_sequence *
5411         to simplify and for typesafety.
5412         (pa_output_call): Use method of rtx_sequence *.
5413         (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
5414         (pa_jump_in_call_delay): Likewise.
5415         (pa_output_parallel_movb): Likewise.
5416         (pa_output_parallel_addb): Likewise.
5417         (pa_following_call): Likewise.
5418         (pa_combine_instructions): Likewise for locals "anchor",
5419         "floater".
5420         (pa_can_combine_p): Likewise for params "anchor", "floater" and
5421         locals "start", "end".
5422         * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
5423         param "insn" and local "local_insn".
5424         (picochip_final_prescan_insn): Likewise for local "local_insn".
5425         * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
5426         local "insn".
5427         (uses_TOC): Likewise.
5428         * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
5429         (s390_mainpool_finish): Eliminate top-level local rtx "insn",
5430         splitting out to more tightly-scoped locals, 3 as rtx and one as
5431         rtx_insn *.
5432         (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
5433         to rtx_insn *.
5434         (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
5435         where needed.
5436         * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
5437         to rtx_insn *.
5438         (fixup_addr_diff_vecs): Likewise.
5439         (reg_unused_after): Likewise for param 2.
5440         (sh_can_redirect_branch): Likewise for both params.
5441         (check_use_sfunc_addr): Likewise for param 1.
5442         * config/sh/sh.c (fixup_mova): Likewise for local "worker".
5443         (find_barrier): Likewise for local "last_got".
5444         (gen_block_redirect): Likewise for return type, param "jump" and
5445         locals "prev", "scan", "next", "insn".
5446         (struct far_branch): Likewise for fields "near_label",
5447         "insert_place", "far_label".
5448         (gen_far_branch): Likewise for local "jump".
5449         (fixup_addr_diff_vecs): Likewise for param "first" and locals
5450         "insn", "prev".
5451         (barrier_align): Likewise for param and for locals "prev", "x".
5452         Introduce local rtx_sequence * "prev_seq" and use insn method for
5453         typesafety and clarity.
5454         (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
5455         (get_dest_uid): Likewise for local "dest".
5456         (split_branches): Likewise for locals "next", "beyond", "label",
5457         "block", "far_label".  Add checked casts when assigning to
5458         bp->far_label and "far_label".
5459         (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
5460         (sequence_insn_p): Likewise.
5461         (mark_constant_pool_use): Likewise for locals "insn", "lab".  Add a
5462         more loop-scoped rtx "insn" when walking LABEL_REFS.
5463         (sh_can_redirect_branch): Strengthen both params from rtx to
5464         rtx_insn *.
5465         (check_use_sfunc_addr): Likewise for param "insn".  Introduce a
5466         new local rtx_sequence * "seq" via a dyn_cast, and use a method
5467         for clarity and typesafety.
5468         * config/sh/sh.md (define_expand "epilogue"): Strengthen local
5469         "insn" from rtx to rtx_insn *.
5470         (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
5471         when using NEXT_INSN on the CODE_LABEL in operands[2].
5472         (define_insn "casesi_worker_2"): Likewise.
5473         (define_insn "casesi_shift_media"): Likewise.
5474         (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
5475         operands[3].
5476         * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
5477         Strengthen field "insn" from rtx to rtx_insn *.
5478         (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
5479         (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
5480         param "start_insn" and local "start_insn".
5481         * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
5482         field "insn".
5483         (find_set_of_reg_bb): Likewise for param "insn".
5484         (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
5485         (trace_reg_uses): Likewise for param "start_insn".
5486         (sh_treg_combine::cbranch_trace): Likewise for field
5487         "cbranch_insn".
5488         (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
5489         param "insn".
5490         (sh_treg_combine::record_set_of_reg): Likewise for param
5491         "start_insn" and local "i".
5492         (sh_treg_combine::can_remove_cstore): Likewise for local
5493         "prev_insn".
5494         (sh_treg_combine::try_optimize_cbranch): Likewise for param
5495         "insn".
5496         (sh_treg_combine::execute): Likewise for local "i".
5497         * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
5498         param.
5499         (sparc_check_64): Likewise for second param.
5500         * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
5501         locals "insn", "next".  Introduce local rtx_sequence * "seq" via a
5502         dyn_cast, using its insn method for typesafety and clarity.
5503         (empty_delay_slot): Strengthen param "insn" from rtx to
5504         rtx_insn *.
5505         (set_extends): Likewise.
5506         (sparc_check_64): Likewise.
5507         * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
5508         for locals "seq", "last_insn".
5509         (combine_bnp): Likewise for param "insn".
5510         (xstormy16_reorg): Likewise for local "insn".
5511         * config/v850/v850.c (substitute_ep_register): Likewise for params
5512         "first_insn", "last_insn" and local "insn".
5513         (v850_reorg): Likewise for fields "first_insn", "last_insn" within
5514         elements of "regs" array, and local "insn".
5515         * except.c (emit_note_eh_region_end): Likewise for param "insn".
5516         * final.c (final_sequence): Strengthen this global from rtx to
5517         rtx_sequence *.
5518         (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
5519         rtx_insn *.
5520         (final_scan_insn): Update assignment to "final_sequence" to be
5521         from "seq", the cast version of "body", for type-safety.
5522         * function.c (assign_parm_setup_reg): Strengthen locals "insn",
5523         "insns" from rtx to rtx_insn *.
5524         (thread_prologue_and_epilogue_insns): Likewise for local "seq".
5525         * genattr.c (main): When writing out generated insn-attr.h,
5526         strengthen params 1 and 3 of eligible_for_delay,
5527         eligible_for_annul_true, eligible_for_annul_false from rtx to
5528         rtx_insn *.
5529         * genattrtab.c (write_eligible_delay): Likewise when writing out
5530         generated insn-attrtab.c; also local "insn" the generated
5531         functions.
5532         * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
5533         to rtx_insn *.
5534         * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
5535         "start_label" from rtx to rtx_insn *.
5536         * ira.c (decrease_live_ranges_number): Likewise for local "p".
5537         (ira_update_equiv_info_by_shuffle_insn): Likewise for param
5538         "insns" and local "insn".
5539         (validate_equiv_mem): Likewise for param "start" and local "insn".
5540         (memref_used_between_p): Likewise for params "start", "end" and
5541         local "insn".
5542         * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
5543         final param.
5544         * loop-doloop.c (doloop_optimize): Within region guarded by
5545         INSN_P (doloop_pat), introduce a new local rtx_insn *
5546         "doloop_insn" via a checked cast, and use it for typesafety,
5547         eventually writing the value back into doloop_pat.
5548         * output.h (final_sequence): Strengthen this global from rtx to
5549         rtx_sequence *.
5550         * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
5551         reintroducing "insn" as an rtx_insn * via a checked cast.
5552         Strengthen param "attempt" and local "new_insn"from rtx to
5553         rtx_insn *.
5554         (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
5555         to rtx_insn *.
5556         * ree.c (emit_note_eh_region_end): Likewise for local "insn".
5557         * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
5558         "p" in favor of more tightly-scoped replacements, sometimes rtx
5559         and sometimes rtx_insn *, as appropriate.
5560         (delete_output_reload): Eliminate top-level rtx "i1", splitting
5561         into two loop-scoped locals, one an rtx, the other an rtx_insn *.
5562         * reorg.c (delete_scheduled_jump): Add checked cast.  Strengthen
5563         local "trial" from rtx to rtx_insn *.
5564         (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
5565         rtx to rtx_insn *.  Strenghten local "pat" from rtx to
5566         rtx_sequence * and use methods for clarity and typesafety.
5567         (redirect_with_delay_list_safe_p): Strengthen param "jump" from
5568         rtx to rtx_insn *.  Strenghten local "li" from rtx to
5569         rtx_insn_list * and use its methods for clarity and typesafety.
5570         (steal_delay_list_from_target): Strengthen param "insn" from rtx
5571         to rtx_insn *.
5572         (steal_delay_list_from_fallthrough): Likewise.
5573         (try_merge_delay_insns): Likewise for param "thread" and locals
5574         "trial", "next_trial", "delay_insn".
5575         (redundant_insn): Likewise for param "target" and local "trial".
5576         (own_thread_p): Likewise for param "thread" and locals
5577         "active_insn", "insn".
5578         (get_label_before): Likewise for param "insn".
5579         (fill_simple_delay_slots): Likewise for local "new_label"; use
5580         JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
5581         (label_before_next_insn): Strengthen return type and local "insn"
5582         from rtx to rtx_insn *.
5583         (relax_delay_slots): Likewise for locals "other", "tmp".
5584         (make_return_insns): Likewise for param "first" and locals "insn",
5585         "jump_insn", "prev".  Move declaration of "pat" to its assignment
5586         and strengthen from rtx to rtx_sequence *.  Use its methods for
5587         clarity and typesafety.
5588         * rtlanal.c (no_labels_between_p): Strengthen params from
5589         const_rtx to const rtx_insn *.  Strengthen local "p" from rtx to
5590         rtx_insn *.
5591         (reg_used_between_p): Strengthen params "from_insn", "to_insn"
5592         from const_rtx to const rtx_insn *.
5593         (reg_set_between_p): Rename param "from_insn" to
5594         "uncast_from_insn", and reintroduce "from_insn" as a
5595         const rtx_insn * via a checked cast.
5596         (modified_between_p): Likewise for param "start" as "uncast_start".
5597         (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
5598         * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
5599         "tmp", head" from rtx to rtx_insn *.
5600         (recompute_rev_top_order): Likewise for local "insn".
5601         * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
5602         * store-motion.c (build_store_vectors): Likewise for local "insn".
5603         Strengthen local "st" from rtx to rtx_insn_list * and use methods
5604         for clarity and typesafety.
5605         * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
5606         rtx to rtx_insn *.
5607         (computation_cost): Likewise for local "seq".
5608         (get_address_cost): Likewise.
5610 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
5612         * rtl.h (tablejump_p): Strengthen first param from const_rtx to
5613         const rtx_insn *.
5614         (label_is_jump_target_p): Likewise for second param.
5616         * rtlanal.c (tablejump_p): Likewise for param "insn".
5617         (label_is_jump_target_p): Likewise for param "jump_insn".
5619 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
5621         * rtl.h (find_first_parameter_load): Strengthen return type and
5622         both params from rtx to rtx_insn *.
5623         * rtlanal.c (find_first_parameter_load): Strengthen return type,
5624         both params and locals "before", "first_set" from rtx to
5625         rtx_insn *.  Remove now-redundant cast.
5626         * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
5628 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
5630         * rtl.h (find_last_value): Delete.
5631         * rtlanal.c (find_last_value): Delete.
5633 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
5635         * cfgexpand.c (pass_expand::execute): Strengthen local "after"
5636         from rtx to rtx_insn *.
5637         * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
5638         rtx "note" with new local rtx_insn * "new_head" when calculating
5639         head insn of new basic block.
5640         * combine.c (combine_split_insns): Strengthen return type and local
5641         "ret" from rtx to rtx_insn *.
5642         (likely_spilled_retval_p): Likewise for locals "use" and "p".
5643         (try_combine): Eliminate local "m_split", splitting into new
5644         locals "m_split_insn" and "m_split_pat".
5645         (find_split_point): Strengthen local "seq" from rtx into
5646         rtx_insn *.
5647         * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
5648         locals "label", "branch".
5649         * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
5650         for local "insn".
5651         (define_expand "umulsi3_highpart"): Likewise for local "insn".
5652         * dse.c (note_add_store_info): Likewise for fields "first",
5653         "current".
5654         (note_add_store): Likewise for local "insn".
5655         (emit_inc_dec_insn_before): Likewise for locals "insn",
5656         "new_insn", "cur".
5657         (find_shift_sequence): Likewise for locals "shift_seq", "insn".
5658         (replace_read): Likewise for locals "insns", "this_insn".
5659         * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
5660         (notice_eh_throw): Likewise for param "insn".
5661         (before_next_cfi_note): Likewise for return type, param, and local
5662         "prev".
5663         (connect_traces): Likewise for local "note".
5664         * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
5665         (verify_rtl_sharing): Likewise.
5666         (unshare_all_rtl_in_chain): Likewise for param "insn".
5667         (get_first_nonnote_insn): Likewise for local "insn".
5668         (get_last_nonnote_insn): Likewise.  Introduce local rtx_sequence *
5669         "seq" and use its methods to clarify things.
5670         (next_insn): Strengthen return type from rtx to rtx_insn *.
5671         Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
5672         local rtx_insn * using a checked cast, dropping a checked cast
5673         made redundant by this change.  Use a cast to and method of
5674         rtx_sequence to clarify the code.
5675         (previous_insn): Rename param "insn" to "uncast_insn" and
5676         reintroduce "insn" as a local rtx_insn * using a checked cast,
5677         dropping a checked cast made redundant by this change.  Use a cast
5678         to and method of rtx_sequence to clarify the code.
5679         (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
5680         reintroduce "insn" as a local rtx_insn * using a checked cast,
5681         dropping a checked cast made redundant by this change.
5682         (next_nonnote_insn_bb): Likewise.
5683         (prev_nonnote_insn): Likewise.
5684         (prev_nonnote_insn_bb): Likewise.
5685         (next_nondebug_insn): Likewise.
5686         (prev_nondebug_insn): Likewise.
5687         (next_nonnote_nondebug_insn): Likewise.
5688         (prev_nonnote_nondebug_insn): Likewise.
5689         (next_real_insn): Likewise.
5690         (prev_real_insn): Likewise.
5691         (next_active_insn): Likewise.
5692         (prev_active_insn): Likewise.
5693         (next_cc0_user): Likewise.  Use rtx_sequence and a method for
5694         clarity.
5695         (prev_cc0_setter): Likewise.
5696         (try_split): Rename param "trial" to "uncast_trial" and
5697         reintroduce "insn" as a local rtx_insn * using a checked cast,
5698         dropping checked casts made redundant by this change.
5699         Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
5700         rtx to rtx_insn *.
5701         (remove_insn): Rename param "insn" to "uncast_insn" and
5702         reintroduce "insn" as a local rtx_insn * using a checked cast.
5703         (emit_pattern_after_setloc): Likewise for param "after", as
5704         "uncast_after".
5705         (emit_pattern_after): Likewise.  Strengthen local "prev" from
5706         rtx to rtx_insn *.
5707         (emit_pattern_before_setloc): Rename param "before" to
5708         "uncast_before" and reintroduce "before" as a local rtx_insn *
5709         using a checked cast.  Strengthen locals "first", "last" from
5710         rtx to rtx_insn *.
5711         (emit_pattern_before): Likewise rename/cast param "before" to
5712         "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
5713         * except.c (copy_reg_eh_region_note_forward): Strengthen param
5714         "first" and local "insn" from rtx to rtx_insn *.
5715         (copy_reg_eh_region_note_backward): Likewise for param "last"
5716         and local "insn".
5717         * expr.c (fixup_args_size_notes): Rename param "last" to
5718         "uncast_last" and reintroduce "last" as a local rtx_insn *
5719         using a checked cast.  Strengthen local "insn" from rtx to
5720         rtx_insn *.
5721         * function.c (set_insn_locations): Strengthen param "insn" from
5722         rtx to rtx_insn *.
5723         (record_insns): Likewise for param "insns" and local "tmp".
5724         (active_insn_between): Rename param "tail" to
5725         "uncast_tail" and reintroduce "tail" as a local rtx_insn *
5726         using a checked cast.
5727         (thread_prologue_and_epilogue_insns): Split out top-level local
5728         rtx "seq" into three different rtx_insn * locals.  Strengthen
5729         local "prologue_seq" from rtx to rtx_insn *.
5730         * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
5731         from rtx to rtx_insn *.
5732         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
5733         (priority): Likewise for locals "prev_first", "twin".
5734         (setup_insn_max_reg_pressure): Likewise for param "after".
5735         (sched_setup_bb_reg_pressure_info): Likewise.
5736         (no_real_insns_p): Strengthen params from const_rtx to
5737         const rtx_insn *.
5738         (schedule_block): Strengthen local "next_tail" from rtx to
5739         rtx_insn *.
5740         * ifcvt.c (find_active_insn_before): Strengthen return type and
5741         param "insn" from rtx to rtx_insn *.
5742         (find_active_insn_after): Likewise.
5743         (cond_exec_process_insns): Likewise for param "start" and local "insn".
5744         (cond_exec_process_if_block): Likewise for locals "then_start",
5745         "then_end", "else_start", "else_end", "insn", "start", "end", "from".
5746         (noce_process_if_block): Likewise for local "jump".
5747         (merge_if_block): Likewise for two locals named "end".
5748         (cond_exec_find_if_block): Likewise for local "last_insn".
5749         * jump.c (delete_related_insns): Rename param "insn" to
5750         "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
5751         checked cast.  Strengthen local "p" from rtx to rtx_insn *.
5752         * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
5753         NULL.
5754         (split_reg): Likewise.
5755         * lra.c (lra_process_new_insns): Likewise.
5756         * modulo-sched.c (permute_partial_schedule): Strengthen param
5757         "last" from rtx to rtx_insn *.
5758         * optabs.c (add_equal_note): Likewise for param "insns" and local
5759         "last_insn".
5760         (expand_binop_directly): Add checked casts to rtx_insn * within
5761         NEXT_INSN (pat) uses.
5762         (expand_unop_direct): Likewise.
5763         (maybe_emit_unop_insn): Likewise.
5764         * recog.c (peep2_attempt): Strengthen locals "last",
5765         "before_try", "x" from rtx to rtx_insn *.
5766         * reorg.c (optimize_skip): Strengthen return type and local
5767         "delay_list" from rtx to rtx_insn_list *.  Strengthen param "insn"
5768         and locals "trial", "next_trial" from rtx to rtx_insn *.
5769         * resource.c (next_insn_no_annul): Strengthen return type and
5770         param "insn" from rtx to rtx_insn *.  Use a cast to and method of
5771         rtx_sequence to clarify the code.
5772         (mark_referenced_resources): Add a checked cast to rtx_insn *
5773         within PREV_INSN (x).
5774         (find_dead_or_set_registers): Strengthen return type, param
5775         "target", locals "insn", "next", "jump_insn", "this_jump_insn"
5776         from rtx to rtx_insn *.  Strengthen param "jump_target" from rtx *
5777         to rtx_insn **.
5778         (mark_target_live_regs): Strengthen params "insns" and "target",
5779         locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
5780         to rtx_insn *.  Use cast to and method of rtx_sequence to clarify
5781         the code.
5782         * resource.h (mark_target_live_regs): Strengthen params 1 and 2
5783         from rtx to rtx_insn *.
5784         * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
5785         from rtx to rtx_insn *.
5786         (copy_reg_eh_region_note_backward): Likewise.
5787         (unshare_all_rtl_in_chain): Likewise for sole param.
5788         (dump_rtl_slim): Strengthen second and third params from const_rtx
5789         to const rtx_insn *.
5790         * sched-deps.c (sched_free_deps): Strengthen params "head" and
5791         "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
5792         * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
5793         "next_tail" from rtx to rtx_insn *.
5794         (begin_move_insn): Likewise for local "next".
5795         * sched-int.h (sched_free_deps): Likewise for first and second
5796         params.
5797         (no_real_insns_p): Strengthen both params from const_rtx to
5798         const rtx_insn *.
5799         (sched_setup_bb_reg_pressure_info): Strengthen second params from
5800         rtx to rtx_insn *.
5801         * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
5802         "next_tail".
5803         * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
5804         and locals "insn", "tail" from const_rtx to const rtx_insn *.
5805         (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
5806         rtx_insn *.
5807         (debug_rtl_slim): Strengthen params "first" and "last" from
5808         const_rtx to const rtx_insn *.
5809         * shrink-wrap.c (try_shrink_wrapping): Strengthen param
5810         "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
5811         (convert_to_simple_return): Likewise for param "returnjump".
5812         * shrink-wrap.h (try_shrink_wrapping): Likewise for param
5813         "prologue_seq".
5814         (convert_to_simple_return): Likewise for param "returnjump".
5815         * valtrack.c (propagate_for_debug): Likewise for params
5816         "insn", "last".
5817         * valtrack.h (propagate_for_debug): Likewise for second param.
5819 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
5821         * output.h (insn_current_reference_address): Strengthen param
5822         from rtx to rtx_insn *.
5823         * final.c (insn_current_reference_address): Likewise.
5825 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
5827         * basic-block.h (inside_basic_block_p): Strengthen param from
5828         const_rtx to const rtx_insn *.
5829         * cfgbuild.c (inside_basic_block_p): Likewise.
5831 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
5833         * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
5834         rtx_insn *.
5835         (get_trace_info): Likewise for param "insn".
5836         (save_point_p): Likewise.
5837         (maybe_record_trace_start): Likewise for both params.
5838         (maybe_record_trace_start_abnormal): Likewise.
5839         (create_trace_edges): Likewise for sole param and for three of the
5840         locals named "lab".
5841         (scan_trace): Strengthen local "prev", "insn", "control" from rtx
5842         to rtx_insn *, and update a call to pat->element to pat->insn.
5844 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
5846         * function.h (struct expr_status): Convert field "x_forced_labels"
5847         from rtx_expr_list * to rtx_insn_list *.
5849         * cfgbuild.c (make_edges): Convert local "x" from an
5850         rtx_expr_list * to an rtx_insn_list *, replacing use of
5851         "element" method with "insn" method.
5852         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
5853         * except.c (sjlj_emit_dispatch_table): Replace use of
5854         gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
5855         forced_labels.
5856         * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
5857         rtx_expr_list * to an rtx_insn_list *, replacing use of
5858         "element" method with "insn" method.
5859         * reload1.c (set_initial_label_offsets): Likewise for local "x".
5860         * stmt.c (label_rtx): Strengthen local "ref" from rtx to
5861         rtx_insn *, adding a checked cast.  Replace use of
5862         gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
5863         forced_labels.
5864         (expand_label): Likewise for local "label_r".
5866 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
5868         * function.h (struct rtl_data): Convert field
5869         "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
5870         rtx_insn_list *.
5871         * rtl.h (remove_node_from_insn_list): New prototype.
5873         * builtins.c (expand_builtin): When prepending to
5874         nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
5875         gen_rtx_EXPR_LIST.
5876         * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
5877         to rtx_insn_list *, and use its "insn" method rather than
5878         "element" method.
5879         * cfgrtl.c (delete_insn): Use new function
5880         remove_node_from_insn_list rather than
5881         remove_node_from_expr_list.
5882         (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
5883         to rtx_insn_list *, and use its "insn" method rather than
5884         "element" method.
5885         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
5886         * reload1.c (set_initial_label_offsets): Likewise for local "x".
5887         * rtlanal.c (remove_node_from_insn_list): New function, adapted
5888         from remove_node_from_expr_list.
5889         * stmt.c (expand_label): When prepending to
5890         nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
5891         gen_rtx_EXPR_LIST.
5893 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
5895         * function.h (struct rtl_data): Strengthen fields "x_return_label"
5896         and "x_naked_return_label" from rtx to rtx_code_label *.
5898 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
5900         * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
5901         (SET_NEXT_INSN): Likewise.
5902         (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
5904         * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
5905         rtx * to rtx_insn **.  Introduce a new local rtx "seq", using it
5906         to split out the SEQUENCE from local "bundle", strengthening the
5907         latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
5908         Strengthen locals "t" and "insn" from rtx to rtx_insn *.
5909         (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
5910         and the type of the elements of the "slot" array from rtx to
5911         rtx_insn *.
5912         (reorg_split_calls): Likewise for locals "insn" and "next", and
5913         the type of the elements of the "slot" array.
5915         * config/frv/frv.c (frv_nops): Likewise for the elements of this
5916         array.
5917         (frv_function_prologue): Likewise for locals "insn", "next",
5918         "last_call".
5919         (frv_register_nop): Introduce a local "nop_insn" to be the
5920         rtx_insn * containing rtx "nop".
5922         * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
5923         used as an insn and sometimes as a pattern, so rename it to
5924         "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
5925         using it where dealing with the core insn.
5927         * config/picochip/picochip.c (reorder_var_tracking_notes):
5928         Strengthen locals "insn", "next", "last_insn", "queue",
5929         "next_queue", "prev" from rtx to rtx_insn *.
5931         * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
5932         the second param is an rtx_insn ** rather than an rtx **.
5933         (link_insn_into_chain): Strengthen locals "seq" and "sequence"
5934         from rtx to rtx_sequence *, and introduce local named "sequence",
5935         using methods of rtx_sequence to clarify the code.
5936         (remove_insn): Introduce local rtx_sequence * named "sequence" and
5937         use its methods.
5938         (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
5939         Rename param "after" to "uncast_after", reintroducing "after" as a
5940         local rtx_insn * with a checked cast.
5941         (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
5942         reintroducing "after" as a local rtx_insn * with a checked cast.
5943         Strengthen local "last" from rtx to rtx_insn * and remove the
5944         now-redundant checked casts.
5945         (copy_delay_slot_insn): Strengthen return type and param from rtx
5946         to rtx_insn *.
5948         * haifa-sched.c (reemit_notes): Strengthen params "insn" and
5949         "last" from rtx to rtx_insn *.
5951 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
5953         * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
5954         param from rtx to rtx_insn *.
5956         * emit-rtl.c (copy_delay_slot_insn): Likewise.
5958         * reorg.c (skip_consecutive_labels): Strengthen return type, param
5959         and local "insn" from rtx to rtx_insn *.
5960         (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
5961         (unfilled_slots_next): Likewise.
5962         (function_return_label): Strengthen from rtx to rtx_code_label *.
5963         (function_simple_return_label): Likewise.
5964         (first_active_target_insn): Strengthen return type and param from
5965         rtx to rtx_insn *.
5966         (find_end_label): Strengthen return type from rtx to
5967         rtx_code_label *; strengthen locals as appropriate.
5968         (emit_delay_sequence): Strengthen return type, param "insn" and
5969         local "seq_insn" from rtx to rtx_insn *.  Strengthen param "list"
5970         and local "li" from rtx to rtx_insn_list *, using methods of
5971         rtx_insn_list for clarity and typesafety.
5972         (add_to_delay_list): Strengthen return type and param "insn" from
5973         rtx to rtx_insn *.  Strengthen param "delay_list" from rtx to
5974         rtx_insn_list * and use methods of rtx_insn_list.
5975         (delete_from_delay_slot): Strengthen return type, param "insn",
5976         locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
5977         Strengthen local "seq" from rtx to rtx_sequence *, and local
5978         "delay_list" from rtx to rtx_insn_list *, using methods of
5979         rtx_sequence for clarity and type-safety.
5980         (delete_scheduled_jump): Add checked cast when invoking
5981         delete_from_delay_slot.  Strengthen local "trial" from rtx to
5982         rtx_insn *.
5983         (optimize_skip): Strengthen return type and local "delay_list"
5984         from rtx to rtx_insn_list *.  Strengthen local "trial" from rtx to
5985         rtx_insn *.
5986         (steal_delay_list_from_target): Strengthen return type, param
5987         "delay_list" and local "new_delay_list" from rtx to
5988         rtx_insn_list *.  Strengthen param "seq" from rtx to
5989         rtx_sequence *.  Strengthen param "pnew_thread" from rtx * to
5990         rtx_insn **.
5991         Split out local "temp" into multiple more-tightly scoped locals:
5992         sometimes an rtx_insn_list *, and once a rtx_insn *.  Use methods
5993         of rtx_insn_list and rtx_sequence for clarity and typesafety.
5994         Strengthen locals named "trial" from rtx to rtx_insn *.
5995         (steal_delay_list_from_fallthrough): Strengthen return type and
5996         param "delay_list" from rtx to rtx_insn_list *.  Strengthen param
5997         "seq" from rtx to rtx_sequence *.  Use methods of rtx_sequence.
5998         Strengthen local "trial" from rtx to rtx_insn *.
5999         (try_merge_delay_insns): Strength local "merged_insns" from rtx
6000         to rtx_insn_list * and use its methods.  Strengthen local "pat"
6001         from rtx to rtx_sequence * and use its methods.  Strengthen locals
6002         "dtrial" and "new_rtx" from rtx to rtx_insn *.
6003         (get_label_before): Strengthen return type and local "label" from
6004         rtx to rtx_insn *.
6005         (fill_simple_delay_slots): Likewise for locals "insn", "trial",
6006         "next_trial", "next", prev".  Strengthen local "delay_list" from
6007         rtx to rtx_insn_list *  Strengthen local "tmp" from rtx * to
6008         rtx_insn **.
6009         (follow_jumps): Strengthen return type, param "label" and locals
6010         "insn", "next", "value", "this_label" from rtx to rtx_insn *.
6011         (fill_slots_from_thread): Strengthen return type, param
6012         "delay_list" from rtx to rtx_insn_list *.  Strengthen params
6013         "insn", "thread", "opposite_thread" and locals "new_thread",
6014         "trial", "temp", "ninsn" from rtx to rtx_insn *.  Introduce local
6015         "sequence" from a checked cast to rtx_sequence so that we can call
6016         steal_delay_list_from_target and steal_delay_list_from_fallthrough
6017         with an rtx_sequence *.
6018         (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
6019         "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
6020         Strengthen local "delay_list" from rtx to rtx_insn_list *.
6021         (relax_delay_slots): Strengthen param "first" and locals "insn",
6022         "next", "trial", "delay_insn", "target_label" from rtx to
6023         rtx_insn *.  Strengthen local "pat" from rtx to rtx_sequence *.
6024         Introduce a local "trial_seq" for PATTERN (trial) of type
6025         rtx_sequence *, in both cases using methods of rtx_sequence.
6026         (dbr_schedule): Strengthen param "first" and locals "insn",
6027         "next", "epilogue_insn" from rtx to rtx_insn *.
6029 2014-08-28  Richard Biener  <rguenther@suse.de>
6031         PR tree-optimization/62283
6032         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
6033         Do not peel loops for alignment where the vector loop likely
6034         doesn't run at least VF times.
6036 2014-08-28  Bin Cheng  <bin.cheng@arm.com>
6038         * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
6039         important_candidates.  Consider all important candidates if
6040         IVS doesn't give any result.  Remove check on ivs->upto.
6041         (try_add_cand_for): Call iv_ca_add_use only once.
6043 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6044             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6045             Anna Tikhonova  <anna.tikhonova@intel.com>
6046             Ilya Tocar  <ilya.tocar@intel.com>
6047             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6048             Ilya Verbin  <ilya.verbin@intel.com>
6049             Kirill Yukhin  <kirill.yukhin@intel.com>
6050             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6052         (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
6053         (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
6054         masking.
6055         (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
6056         (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
6057         (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
6058         (define_insn "*mul<mode>3"): Add EVEX version.
6060 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6061             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6062             Anna Tikhonova  <anna.tikhonova@intel.com>
6063             Ilya Tocar  <ilya.tocar@intel.com>
6064             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6065             Ilya Verbin  <ilya.verbin@intel.com>
6066             Kirill Yukhin  <kirill.yukhin@intel.com>
6067             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6069         * config/i386/sse.md
6070         (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
6071         (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
6072         (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
6073         (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
6074         (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
6075         (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
6076         (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
6077         (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
6078         (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
6079         (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
6080         (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
6081         (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
6082         (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
6083         (define_insn "vec_interleave_highv16qi<mask_name>"): New.
6084         (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
6085         (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
6087 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6088             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6089             Anna Tikhonova  <anna.tikhonova@intel.com>
6090             Ilya Tocar  <ilya.tocar@intel.com>
6091             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6092             Ilya Verbin  <ilya.verbin@intel.com>
6093             Kirill Yukhin  <kirill.yukhin@intel.com>
6094             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6096         * config/i386/sse.md
6097         (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
6098         (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
6099         (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
6101 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6102             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6103             Anna Tikhonova  <anna.tikhonova@intel.com>
6104             Ilya Tocar  <ilya.tocar@intel.com>
6105             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6106             Ilya Verbin  <ilya.verbin@intel.com>
6107             Kirill Yukhin  <kirill.yukhin@intel.com>
6108             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6110         * config/i386/sse.md
6111         (define_mode_iterator VI128_256): New.
6112         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
6114 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6115             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6116             Anna Tikhonova  <anna.tikhonova@intel.com>
6117             Ilya Tocar  <ilya.tocar@intel.com>
6118             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6119             Ilya Verbin  <ilya.verbin@intel.com>
6120             Kirill Yukhin  <kirill.yukhin@intel.com>
6121             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6123         * config/i386/sse.md
6124         (define_mode_iterator VI8_256_512): New.
6125         (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
6126         Ditto.
6127         (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
6128         (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
6129         Ditto.
6130         (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
6132 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6134         * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx.  Remove the
6135         pointer to the cumulative reloc value and return the value for
6136         this reloc instead.
6137         (compute_reloc_for_rtx): Take a const_rtx.  Call
6138         compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
6139         avoiding any recursion.  Use FOR_EACH_SUBRTX rather than
6140         for_each_rtx for the CONST case.
6142 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6144         * varasm.c (mark_constant): Replace this for_each_rtx callback with...
6145         (mark_constants_in_pattern): ...this new function to iterate over
6146         all the subrtxes.
6147         (mark_constants): Update accordingly.
6149 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6151         * varasm.c: Include rtl-iter.h.
6152         (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
6153         Remove the pointer to the cumulative hashval_t and just return
6154         the hash for this rtx instead.  Remove recursive CONST_VECTOR case.
6155         (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
6156         Accumulate the hashval_ts here instead of const_rtx_hash_1.
6158 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6160         * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
6161         Give real type of data parameter.  Remove return value.
6162         (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
6163         to iterate over subrtxes.
6165 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6167         * var-tracking.c (use_narrower_mode_test): Turn from being a
6168         for_each_rtx callback to being a function that examines each
6169         subrtx itself.
6170         (adjust_mems): Update accordingly.
6172 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6174         * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
6175         callback to being a function that examines each subrtx itself.
6176         Remove handling of null rtxes.
6177         (add_uses): Update accordingly.
6179 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6181         * var-tracking.c: Include rtl-iter.h.
6182         (rtx_debug_expr_p): Turn from being a for_each_rtx callback
6183         to being a function that examines each subrtx itself.
6184         (use_type): Update accordingly.
6186 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6188         * store-motion.c: Include rtl-iter.h.
6189         (extract_mentioned_regs_1): Delete.
6190         (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
6191         for_each_rtx to iterate over subrtxes.
6193 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6195         * sel-sched.c: Include rtl-iter.h
6196         (count_occurrences_1): Delete.
6197         (count_occurrences_equiv): Turn rtxes into const_rtxes.
6198         Use FOR_EACH_SUBRTX rather than for_each_rtx.
6200 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6202         * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
6203         * rtlanal.c (tls_referenced_p_1): Delete.
6204         (tls_referenced_p): Take a const_rtx rather than an rtx.
6205         Use FOR_EACH_SUBRTX rather than for_each_rtx.
6207 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6209         * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
6210         (for_each_inc_dec): Take an rtx rather than an rtx *.
6211         * cselib.c (cselib_record_autoinc_cb): Update accordingly.
6212         (cselib_record_sets): Likewise.
6213         * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
6214         (check_for_inc_dec): Likewise.
6215         * rtlanal.c (for_each_inc_dec_ops): Delete.
6216         (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
6217         rather than a pointer to the memory address.  Replace
6218         for_each_inc_dec_ops argument with separate function and data
6219         arguments.  Abort on non-autoinc addresses.
6220         (for_each_inc_dec_find_mem): Delete.
6221         (for_each_inc_dec): Take an rtx rather than an rtx *.  Use
6222         FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
6224 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6226         * rtl.h (find_all_hard_regs): Declare.
6227         * rtlanal.c (find_all_hard_regs): New function.
6228         (record_hard_reg_uses_1): Delete.
6229         (record_hard_reg_uses): Use find_all_hard_regs.
6231 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6233         * rtl.h (replace_label_data): Delete.
6234         (replace_label): Take the old label, new label and update-nuses flag
6235         as direct arguments.  Return void.
6236         * cfgcleanup.c (outgoing_edges_match): Update accordingly.
6237         * rtlanal.c (replace_label): Update interface as above.  Handle
6238         JUMP_TABLE_DATA as a special case.  Handle JUMPs outside the
6239         iterator.  Use FOR_EACH_SUBRTX_PTR.
6241 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6243         * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
6244         with const_rtx parameters.
6245         * varasm.c (get_pool_constant): Likewise.
6246         * rtlanal.c (rtx_referenced_p_1): Delete.
6247         (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
6248         Assert that the rtx we're looking for is nonnull.  Allow searches
6249         for constant pool SYMBOL_REFs.
6251 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6253         * reload1.c: Include rtl-iter.h.
6254         (note_reg_elim_costly): Turn from being a for_each_rtx callback
6255         to being a function that examines each subrtx itself.
6256         (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
6258 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6260         * regcprop.c (cprop_find_used_regs_1): Delete.
6261         (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
6263 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6265         * regcprop.c: Include rtl-iter.h.
6266         (kill_value): Take a const_rtx.
6267         (kill_autoinc_value): Turn from being a for_each_rtx callback
6268         to being a function that examines each subrtx itself.
6269         (copyprop_hardreg_forward_1): Update accordingly.
6271 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6273         * reg-stack.c: Include rtl-iter.h.
6274         (subst_stack_regs_in_debug_insn): Delete.
6275         (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
6276         instead of for_each_rtx.
6278 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6280         * lower-subreg.c (find_decomposable_subregs): Turn from being
6281         a for_each_rtx callback to being a function that examines each
6282         subrtx itself.  Remove handling of null rtxes.
6283         (decompose_multiword_subregs): Update accordingly.
6285 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6287         * lower-subreg.c (adjust_decomposed_uses): Delete.
6288         (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
6289         Remove handling of null rtxes.
6291 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6293         * lower-subreg.c: Include rtl-iter.h.
6294         (resolve_subreg_use): Turn from being a for_each_rtx callback
6295         to being a function that examines each subrtx itself.  Remove
6296         handling of null rtxes.
6297         (resolve_reg_notes, resolve_simple_move): Update accordingly.
6298         (decompose_multiword_subregs): Likewise.
6300 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6302         * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
6303         to being a function that examines each subrtx itself.
6304         (simplify_using_condition, simplify_using_initial_values): Update
6305         accordingly.
6307 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6309         * loop-iv.c: Include rtl-iter.h.
6310         (find_single_def_src): New function.
6311         (replace_single_def_regs): Turn from being a for_each_rtx callback
6312         to being a function that examines each subrtx itself.
6313         (replace_in_expr, simplify_using_initial_values): Update accordingly.
6315 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6317         * jump.c (eh_returnjump_p_1): Delete.
6318         (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
6319         Remove handling of null rtxes.
6321 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6323         * jump.c: Include rtl-iter.h.
6324         (returnjump_p_1): Delete.
6325         (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
6326         Remove handling of null rtxes.
6328 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6330         * ira.c: Include rtl-iter.h.
6331         (set_paradoxical_subreg): Turn from being a for_each_rtx callback
6332         to being a function that examines each subrtx itself.  Remove
6333         handling of null rtxes.
6334         (update_equiv_regs): Update call accordingly.
6336 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6338         * fwprop.c: Include rtl-iter.h.
6339         (varying_mem_p): Turn from being a for_each_rtx callback to being
6340         a function that examines each subrtx itself.
6341         (propagate_rtx): Update accordingly.
6343 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6345         * function.c: Include rtl-iter.h
6346         (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
6347         callback to being a function that examines each subrtx itself.
6348         Return the changed flag.
6349         (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
6350         (instantiate_virtual_regs): Update calls accordingly.
6352 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6354         * final.c: Include rtl-iter.h.
6355         (mark_symbol_ref_as_used): Delete.
6356         (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
6357         for_each_rtx.
6359 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6361         * emit-rtl.c: Include rtl-iter.h.
6362         (find_auto_inc): Turn from being a for_each_rtx callback to being
6363         a function that examines each subrtx itself.  Assume the first operand
6364         to an RTX_AUTOINC is the automodified register.
6365         (try_split): Update call accordingly.
6367 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6369         * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
6370         Return a bool, inverting the result so that 0/false means "not ok".
6371         Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
6372         subrtxes of a CONST.
6373         (mem_loc_descriptor, add_const_value_attribute)
6374         (resolve_addr_in_expr): Update calls accordingly.
6376 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6378         * dwarf2out.c: Include rtl-iter.h.
6379         (const_ok_for_output_1): Take the rtx instead of a pointer to it.
6380         Remove unused data parameter.  Return a bool, inverting the result
6381         so that 0/false means "not ok".
6382         (const_ok_for_output): Update accordingly.  Use FOR_EACH_SUBRTX_VAR
6383         instead of for_each_rtx.
6385 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6387         * dse.c: Include rtl-iter.h.
6388         (check_mem_read_rtx): Change void * parameter to real type.
6389         Remove return value.
6390         (check_mem_read_use): Fix comment.  Use FOR_EACH_SUBRTX_PTR instead of
6391         for_each_rtx.  Don't handle null rtxes.
6393 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6395         * df-problems.c: Include rtl-iter.h.
6396         (find_memory): Turn from being a for_each_rtx callback to being
6397         a function that examines each subrtx itself.  Continue to look for
6398         volatile references even after a nonvolatile one has been found.
6399         (can_move_insns_across): Update calls accordingly.
6401 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6403         * ddg.c (walk_mems_2, walk_mems_1): Delete.
6404         (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
6405         to iterate over subrtxes.  Return a bool rather than an int.
6407 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6409         * ddg.c: Include rtl-iter.h.
6410         (mark_mem_use_1): Rename to...
6411         (mark_mem_use): ...deleting old mark_mem_use.  Use FOR_EACH_SUBRTX
6412         instead of for_each_rtx.
6413         (mem_read_insn_p): Update accordingly.
6415 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6417         * cse.c (change_cc_mode_args): Delete.
6418         (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
6419         a function that examines each subrtx itself.  Take the fields of
6420         change_cc_mode_args as argument and return void.
6421         (cse_change_cc_mode_insn): Update calls accordingly.
6423 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6425         * cse.c (is_dead_reg): Change argument to const_rtx.
6426         (dead_debug_insn_data): Delete.
6427         (is_dead_debug_insn): Expand commentary.  Turn from being a
6428         for_each_rtx callback to being a function that examines
6429         each subrtx itself.  Take the fields of dead_debug_insn_data
6430         as argument.
6431         (delete_trivially_dead_insns): Update call accordingly.
6433 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6435         * cse.c (check_for_label_ref): Move earlier in file.  Turn from
6436         being a for_each_rtx callback to being a function that examines
6437         each subrtx itself.
6438         (cse_extended_basic_block): Update call accordingly.
6440 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6442         * cse.c (check_dependence_data): Delete.
6443         (check_dependence): Change from being a for_each_rtx callback to being
6444         a function that examines all subrtxes itself.  Don't handle null rtxes.
6445         (invalidate): Update call accordingly.
6447 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6449         * cse.c: Include rtl-iter.h.
6450         (approx_reg_cost_1): Delete.
6451         (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
6452         Don't handle null rtxes.
6454 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6456         * cfgcleanup.c: Include rtl-iter.h.
6457         (mentions_nonequal_regs): Turn from being a for_each_rtx callback
6458         to being a function that examines each subrtx itself.
6459         (thread_jump): Update accordingly.
6461 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6463         * combine-stack-adj.c: Include rtl-iter.h.
6464         (record_stack_refs_data): Delete.
6465         (record_stack_refs): Turn from being a for_each_rtx callback
6466         to being a function that examines each subrtx itself.
6467         Take a pointer to the reflist.  Invert sense of return value
6468         so that true means success and false means failure.  Don't
6469         handle null rtxes.
6470         (combine_stack_adjustments_for_block): Update accordingly.
6472 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6474         * combine.c (record_truncated_value): Turn from being a for_each_rtx
6475         callback to a function that takes an rtx and returns a bool
6476         (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
6477         for_each_rtx.
6479 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6481         * combine.c: Include rtl-iter.h.
6482         (unmentioned_reg_p_1): Delete.
6483         (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
6484         Don't handle null rtxes.
6486 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6488         * calls.c: Include rtl-iter.h.
6489         (internal_arg_pointer_based_exp_1): Delete.
6490         (internal_arg_pointer_based_exp): Take a const_rtx.
6491         Use FOR_EACH_SUBRTX to iterate over subrtxes.
6493 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6495         * caller-save.c: Include rtl-iter.h.
6496         (add_used_regs_1): Delete.
6497         (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
6498         to iterate over subrtxes.  Assert that any remaining pseudos
6499         have been spilled.
6501 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6503         * bt-load.c: Include rtl-iter.h.
6504         (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
6505         (find_btr_use): Move further up file.  Use FOR_EACH_SUBRTX_PTR
6506         to iterate over subrtxes.
6507         (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
6508         find_btr_use rather than btr_referenced_p.
6510 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6512         * alias.c: Include rtl-iter.h.
6513         (refs_newer_value_cb): Delete.
6514         (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
6516 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
6518         * rtl-iter.h: New file.
6519         * rtlanal.c: Include it.
6520         (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
6521         (generic_subrtx_iterator <T>::add_single_to_queue)
6522         (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
6523         (generic_subrtx_iterator <T>::free_array): New functions.
6524         (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
6525         (generic_subrtx_iterator <const_rtx_accessor>)
6526         (generic_subrtx_iterator <rtx_var_accessor>
6527         (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
6528         (setup_reg_subrtx_bounds): New function.
6529         (init_rtlanal): Call it.
6531 2014-08-27  Kaz Kojima  <kkojima@gcc.gnu.org>
6533         PR target/62261
6534         * config/sh/sh.md (ashlsi3): Handle negative shift count for
6535         TARGET_SHMEDIA.
6536         (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
6538 2014-08-27  Richard Sandiford  <rdsandiford@googlemail.com>
6540         * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
6542 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6544         * rtl.h (JUMP_LABEL_AS_INSN): New.
6546 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6548         * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
6549         rtx_expr_list **.
6550         (alloc_EXPR_LIST): Strengthen return type from rtx to
6551         rtx_expr_list *.
6552         (remove_free_EXPR_LIST_node): Likewise for param.
6553         * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
6554         from rtx to rtx_expr_list *.
6555         * sched-int.h (struct deps_desc): Strengthen fields
6556         "pending_read_mems" and "pending_write_mems" from rtx to
6557         rtx_expr_list *.
6559         * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
6560         rtx to rtx_expr_list *.
6561         * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
6562         (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
6563         rtx_expr_list **.
6564         (remove_free_EXPR_LIST_node): Likewise.  Strengthen local "node"
6565         from rtx to rtx_expr_list *.
6566         * loop-iv.c (simplify_using_initial_values): Strengthen local
6567         "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
6568         "pnote_next" from rtx * to rtx_expr_list **.
6569         * sched-deps.c (remove_from_both_dependence_lists):  Strengthen
6570         param "exprp" from rtx * to rtx_expr_list **.
6571         (add_insn_mem_dependence): Strengthen local "mem_list" from
6572         rtx * to rtx_expr_list **.  Strengthen local "mem_node" from rtx
6573         to rtx_expr_list *.
6574         * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
6575         and local "new_mems" from rtx to rtx_expr_list *.  Strengthen
6576         param "old_mems_p" from rtx * to rtx_expr_list **.
6577         * var-tracking.c (struct adjust_mem_data): Strengthen field
6578         "side_effects" from rtx to rtx_expr_list *.
6579         (adjust_insn): Replace NULL_RTX with NULL when assigning to
6580         rtx_expr_list *.
6581         (prepare_call_arguments): Likewise.
6583 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6585         * function.h (struct rtl_data): Strengthen field
6586         "x_stack_slot_list" from rtx to rtx_expr_list *.
6588         * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
6589         when assigning to stack_slot_list.
6591 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6593         * function.h (struct rtl_data): Strengthen field
6594         x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
6595         * rtl.h (remove_node_from_expr_list): Strengthen second param from
6596         rtx * to rtx_expr_list **.
6598         * cfgbuild.c (make_edges): In loop over
6599         nonlocal_goto_handler_labels, strengthen local "x" from rtx to
6600         rtx_expr_list *, and use methods of the latter class to clarify
6601         the code.
6602         * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
6603         rtx_expr_list *, and use methods of the latter class to clarify
6604         the code.
6605         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
6606         * reload1.c (set_initial_label_offsets): Likewise for local "x".
6607         * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
6608         from rtx * to rtx_expr_list **.  Strengthen local "temp" from rtx
6609         to rtx_expr_list *.  Use methods of the latter class to clarify
6610         the code.
6612 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6614         * function.h (struct expr_status): Strengthen field
6615         "x_forced_labels" from rtx to rtx_expr_list *.
6617         * cfgbuild.c (make_edges): Split local "x" into two locals,
6618         strengthening one from rtx to rtx_expr_list *, and using methods
6619         of said class.
6620         * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
6621         loop over forced_labels, introduce strengthen it from rtx to
6622         rtx_expr_list *, using methods to clarify the code.
6623         * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
6624         to rtx_expr_list *, using methods of said class to clarify the
6625         code.
6626         * reload1.c (set_initial_label_offsets): Split local "x" into two
6627         per-loop variables, strengthening the first from rtx to
6628         rtx_expr_list * and using methods.
6630 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6632         * coretypes.h (class rtx_expr_list): Add forward declaration.
6633         * emit-rtl.c (gen_rtx_EXPR_LIST): New.
6634         * gengenrtl.c (special_rtx): Add EXPR_LIST.
6635         * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
6636         invariant: GET_CODE (X) == EXPR_LIST.
6637         (is_a_helper <rtx_expr_list *>::test): New.
6638         (rtx_expr_list::next): New.
6639         (rtx_expr_list::element): New.
6640         (gen_rtx_EXPR_LIST): New.
6642 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6644         * varasm.c (mark_constants): Convert a GET_CODE check into a
6645         dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
6646         Use methods of rtx_sequence to clarify the code.
6648 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6650         * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
6651         local "seq" via a checked cast, and use methods of rtx_sequence
6652         to simplify the code.
6654 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6656         * resource.c (mark_referenced_resources): Strengthen local
6657         "sequence" from rtx to rtx_sequence *, adding a checked cast, and
6658         using methods of rtx_sequence to clarify the code.
6659         (find_dead_or_set_registers): Within the switch statement, convert
6660         a GET_CODE check to a dyn_cast, introducing local "seq".  Within
6661         the JUMP_P handling, introduce another local "seq", adding a
6662         checked cast to rtx_sequence *.  In both cases, use methods of
6663         rtx_sequence to clarify the code.
6664         (mark_set_resources): Within SEQUENCE case, introduce local "seq"
6665         via a checked cast, and use methods of rtx_sequence to simplify
6666         the code.
6668 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6670         * reorg.c (redundant_insn): In two places in the function, replace
6671         a check of GET_CODE with a dyn_cast, introducing local "seq", and
6672         usings methods of rtx_sequence to clarify the code.
6674 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6676         * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
6677         local "seq" with a checked cast, and use methods of rtx_sequence
6678         to clarify the code.
6680 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6682         * function.c (contains): Introduce local "seq" for PATTERN (insn),
6683         with a checked cast, in the region for where we know it's a
6684         SEQUENCE.  Use methods of rtx_sequence.
6686 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6688         * final.c (get_attr_length_1): Replace GET_CODE check with a
6689         dyn_cast, introducing local "seq" and the use of methods of
6690         rtx_sequence.
6691         (shorten_branches): Likewise, introducing local "body_seq".
6692         Strengthen local "inner_insn" from rtx to rtx_insn *.
6693         (reemit_insn_block_notes): Replace GET_CODE check with a
6694         dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
6695         Use methods of rtx_sequence.
6696         (final_scan_insn): Likewise, introducing local "seq" for when
6697         "body" is known to be a SEQUENCE, using its methods.
6699 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6701         * except.c (can_throw_external): Strengthen local "seq" from rtx
6702         to rtx_sequence *.  Use methods of rtx_sequence.
6703         (insn_nothrow_p): Likewise.
6705 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6707         * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
6708         dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
6709         Use methods of rtx_sequence.
6710         (scan_trace): Likewise for local "pat".
6712 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6714         * coretypes.h (class rtx_sequence): Add forward declaration.
6715         * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
6716         invariant: GET_CODE (X) == SEQUENCE.
6717         (is_a_helper <rtx_sequence *>::test): New.
6718         (is_a_helper <const rtx_sequence *>::test): New.
6719         (rtx_sequence::len): New.
6720         (rtx_sequence::element): New.
6721         (rtx_sequence::insn): New.
6723 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6725         * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
6726         rtx_insn_list **.
6727         (alloc_INSN_LIST): Strengthen return type from rtx to
6728         rtx_insn_list *.
6729         (copy_INSN_LIST): Likewise for return type and param.
6730         (concat_INSN_LIST): Likewise for both params and return type.
6731         (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
6732         rtx_insn *.  Strengthen second param from rtx * to rtx_insn_list **.
6733         (remove_free_INSN_LIST_node): Strenghten return type from rtx to
6734         rtx_insn *.  Strengthen param from rtx * to rtx_insn_list **.
6736         * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
6737         "implicit_sets", "control_uses", "clobbers" from rtx to
6738         rtx_insn_list *.
6739         (struct deps_desc): Likewise for fields "pending_read_insns",
6740         "pending_write_insns", "pending_jump_insns",
6741         "last_pending_memory_flush", "last_function_call",
6742         "last_function_call_may_noreturn", "sched_before_next_call",
6743         "sched_before_next_jump".
6744         (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
6745         (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
6747         * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
6748         from rtx to rtx_insn_list *.
6749         (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
6750         rtx_insn_list *.
6752         * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
6753         to rtx_insn_list **.
6754         (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
6755         rtx_insn_list *.
6756         (queue_insn): Likewise for local "link".
6757         (struct haifa_saved_data): Strengthen field "insn_queue" from
6758         rtx * to rtx_insn_list **.
6759         (save_backtrack_point): Update allocation of save->insn_queue to
6760         reflect the strengthening of elements from rtx to rtx_insn_list *.
6761         (queue_to_ready): Strengthen local "link" from rtx to
6762         rtx_insn_list *; use methods "next" and "insn" when traversing the
6763         list.
6764         (early_queue_to_ready): Likewise for locals "link", "next_link",
6765         "prev_link".
6766         (schedule_block): Update allocation of insn_queue to reflect the
6767         strengthening of elements from rtx to rtx_insn_list *.  Strengthen
6768         local "link" from rtx to rtx_insn_list *, and use methods when
6769         working it.
6770         (add_to_speculative_block): Strengthen locals "twins" and
6771         "next_node" from rtx to rtx_insn_list *, and use methods when
6772         working with them.  Strengthen local "twin" from rtx to
6773         rtx_insn *, eliminating a checked cast.
6774         (fix_recovery_deps): Strengthen locals "ready_list" and "link"
6775         from rtx to rtx_insn_list *, and use methods when working with
6776         them.
6778         * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
6779         from rtx to rtx_insn_list *, adding a checked cast.
6780         (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
6781         rtx_insn_list **.
6782         (copy_INSN_LIST): Strengthen return type and locals "new_queue",
6783         "newlink" from rtx to rtx_insn_list *.  Strengthen local
6784         "pqueue" from rtx * to rtx_insn_list **.  Strengthen local "x"
6785         from rtx to rtx_insn *.
6786         (concat_INSN_LIST): Strengthen return type and local "new_rtx",
6787         from rtx to rtx_insn_list *.  Use methods of the latter class.
6788         (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
6789         rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
6790         (remove_free_INSN_LIST_node): Strengthen return type and local
6791         "elem" from rtx to rtx_insn *.  Strenghten param "listp" from
6792         rtx * to rtx_insn_list **.  Strengthen local "node" from rtx to
6793         rtx_insn_list *, using "insn" method.
6795         * sched-deps.c (add_dependence_list):  Strengthen param "list"
6796         from rtx to rtx_insn_list *, and use methods when working with it.
6797         (add_dependence_list_and_free):  Strengthen param "listp" from
6798         rtx * to rtx_insn_list **.
6799         (remove_from_dependence_list): Strenghten param "listp" from rtx *
6800         to rtx_insn_list **, and use methods when working with *listp.
6801         (remove_from_both_dependence_lists): Strengthen param "listp" from
6802         rtx * to rtx_insn_list **
6803         (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
6804         to rtx_insn_list **.  Eliminate local "link", in favor of two new
6805         locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
6806         respectively.
6807         (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
6808         by introducing local "cond_deps".
6809         (remove_from_deps): Strengthen param "insn" from rtx to
6810         rtx_insn *.
6812         * sched-rgn.c (concat_insn_mem_list): Strengthen param
6813         "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
6814         Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
6815         Use methods of rtx_insn_list.
6817         * store-motion.c (struct st_expr): Strengthen fields
6818         "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
6819         (st_expr_entry): Replace NULL_RTX with NULL when dealing with
6820         rtx_insn_list *.
6821         (find_moveable_store): Split out "tmp" into multiple more-tightly
6822         scoped locals.  Use methods of rtx_insn_list *.
6823         (compute_store_table): Strengthen local "tmp" from rtx to
6824         rtx_insn *.  Use methods of rtx_insn_list *.
6826 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6828         * coretypes.h (class rtx_insn_list): Add forward declaration.
6829         * rtl.h (class rtx_insn_list): New subclass of rtx_def
6830         (is_a_helper <rtx_insn_list *>::test): New.
6831         (rtx_insn_list::next): New.
6832         (rtx_insn_list::insn): New.
6833         (gen_rtx_INSN_LIST): Add prototype.
6834         * emit-rtl.c (gen_rtx_INSN_LIST): New.
6835         * gengenrtl.c (special_rtx): Add INSN_LIST.
6837 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6839         * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
6840         "prev" from rtx to rtx_insn *.
6842 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6844         * rtl.h (INSN_UID): Convert from a macro to a pair of inline
6845         functions.  Require merely an rtx for now, not an rtx_insn *.
6846         (BLOCK_FOR_INSN): Likewise.
6847         (INSN_LOCATION): Likewise.
6848         (INSN_HAS_LOCATION): Convert from a macro to an inline function.
6850 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6852         * rtl.h (PATTERN): Convert this macro into a pair of inline
6853         functions, for now, requiring const_rtx and rtx.
6855 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6857         * target.def (unwind_emit): Strengthen param "insn" from rtx to
6858         rtx_insn *.
6859         (final_postscan_insn): Likewise.
6860         (adjust_cost): Likewise.
6861         (adjust_priority): Likewise.
6862         (variable_issue): Likewise.
6863         (macro_fusion_pair_p): Likewise.
6864         (dfa_post_cycle_insn): Likewise.
6865         (first_cycle_multipass_dfa_lookahead_guard): Likewise.
6866         (first_cycle_multipass_issue): Likewise.
6867         (dfa_new_cycle): Likewise.
6868         (adjust_cost_2): Likewise for params "insn" and "dep_insn".
6869         (speculate_insn): Likewise for param "insn".
6870         (gen_spec_check): Likewise for params "insn" and "label".
6871         (get_insn_spec_ds): Likewise for param "insn".
6872         (get_insn_checked_ds): Likewise.
6873         (dispatch_do): Likewise.
6874         (dispatch): Likewise.
6875         (cannot_copy_insn_p): Likewise.
6876         (invalid_within_doloop): Likewise.
6877         (legitimate_combined_insn): Likewise.
6878         (needed): Likewise.
6879         (after): Likewise.
6881         * doc/tm.texi: Automatically updated to reflect changes to
6882         target.def.
6884         * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
6885         working with insn.
6886         (schedule_block): Likewise.
6887         (sched_init): Likewise.
6888         (sched_speculate_insn): Strengthen param "insn" from rtx to
6889         rtx_insn *.
6890         (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
6891         working with insn.
6892         * hooks.c (hook_bool_rtx_true): Rename to...
6893         hook_bool_rtx_insn_true): ...this, and strengthen first param from
6894         rtx to rtx_insn *.
6895         (hook_constcharptr_const_rtx_null): Rename to...
6896         (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
6897         first param from const_rtx to const rtx_insn *.
6898         (hook_bool_rtx_int_false): Rename to...
6899         (hook_bool_rtx_insn_int_false): ...this, and strengthen first
6900         param from rtx to rtx_insn *.
6901         (hook_void_rtx_int): Rename to...
6902         (hook_void_rtx_insn_int): ...this, and strengthen first param from
6903         rtx to rtx_insn *.
6905         * hooks.h (hook_bool_rtx_true): Rename to...
6906         (hook_bool_rtx_insn_true): ...this, and strengthen first param from
6907         rtx to rtx_insn *.
6908         (hook_bool_rtx_int_false): Rename to...
6909         (hook_bool_rtx_insn_int_false): ...this, and strengthen first
6910         param from rtx to rtx_insn *.
6911         (hook_void_rtx_int): Rename to...
6912         (hook_void_rtx_insn_int): ...this, and strengthen first param from
6913         rtx to rtx_insn *.
6914         (hook_constcharptr_const_rtx_null): Rename to...
6915         (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
6916         first param from const_rtx to const rtx_insn *.
6918         * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
6919         and local "prev" from rtx to rtx_insn *.
6921         * sched-int.h (sched_speculate_insn): Strengthen first param from
6922         rtx to rtx_insn *.
6924         * sel-sched.c (create_speculation_check): Likewise for local "label".
6925         * targhooks.c (default_invalid_within_doloop): Strengthen param
6926         "insn" from const_rtx to const rtx_insn *.
6927         * targhooks.h (default_invalid_within_doloop): Strengthen param
6928         from const_rtx to const rtx_insn *.
6930         * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
6931         (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
6933         * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
6934         "insn".
6935         (arc_invalid_within_doloop): Likewise, with const.
6937         * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
6938         (arm_cannot_copy_insn_p): Likewise for param "insn".
6939         (arm_unwind_emit): Likewise.
6941         * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
6942         "dep_insn".
6944         * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
6945         (c6x_variable_issue): Likewise.  Removed now-redundant checked
6946         cast.
6947         (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
6949         * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
6950         Likewise for param "insn".
6951         (epiphany_mode_after): Likewise.
6952         * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
6953         params "insn", "dep_insn".
6954         (epiphany_mode_needed): Likewise for param "insn".
6955         (epiphany_mode_after): Likewise.
6957         * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
6958         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
6959         (ix86_avx_u128_mode_needed): Likewise.
6960         (ix86_i387_mode_needed): Likewise.
6961         (ix86_mode_needed): Likewise.
6962         (ix86_avx_u128_mode_after): Likewise.
6963         (ix86_mode_after): Likewise.
6964         (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
6965         (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
6966         (ix86_adjust_priority): Likewise for param "insn".
6967         (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
6968         (do_dispatch): Likewise.
6969         (has_dispatch): Likewise.
6970         * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
6972         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
6973         reflect renaming of default hook implementation from
6974         hook_constcharptr_const_rtx_null to
6975         hook_constcharptr_const_rtx_insn_null.
6976         (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
6977         rtx to rtx_insn *.
6978         (ia64_variable_issue): Likewise for param "insn".
6979         (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
6980         (ia64_dfa_new_cycle): Likewise.
6981         (ia64_get_insn_spec_ds): Likewise.
6982         (ia64_get_insn_checked_ds): Likewise.
6983         (ia64_speculate_insn): Likewise.
6984         (ia64_gen_spec_check): Likewise for params "insn", "label".
6985         (ia64_asm_unwind_emit): Likewise for param "insn".
6987         * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
6989         * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
6990         "insn", "def_insn".
6991         (m68k_sched_variable_issue): Likewise for param "insn".
6993         * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
6994         "def_insn".
6996         * config/microblaze/microblaze.c (microblaze_adjust_cost):
6997         Likewise for params "insn", "dep".
6999         * config/mips/mips.c (mips_adjust_cost): Likewise.
7000         (mips_variable_issue): Likewise for param "insn".
7001         (mips_final_postscan_insn): Likewise.
7003         * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
7004         for params "insn", "dep".
7006         * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
7007         "dep_insn".
7008         (pa_adjust_priority): Likewise for param "insn".
7010         * config/picochip/picochip.c (picochip_sched_adjust_cost):
7011         Likewise for params "insn", "dep_insn".
7013         * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
7014         param "insn".
7015         (rs6000_variable_issue): Likewise.
7016         (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
7017         (rs6000_debug_adjust_cost): Likewise.
7018         (rs6000_adjust_priority): Likewise for param "insn".
7019         (rs6000_use_sched_lookahead_guard): Likewise.
7020         (get_next_active_insn): Likewise for return type and both params.
7021         (redefine_groups): Likewise for params "prev_head_insn", "tail"
7022         and locals "insn", "next_insn".
7023         (pad_groups): Likewise.
7025         * config/s390/s390.c (s390_adjust_priority): Likewise for param
7026         "insn".
7027         (s390_cannot_copy_insn_p): Likewise.
7028         (s390_sched_variable_issue): Likewise for third param, eliminating
7029         checked cast.
7030         (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
7031         default hook implementation from hook_constcharptr_const_rtx_null
7032         to hook_constcharptr_const_rtx_insn_null.
7034         * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
7035         from rtx to rtx_insn *.
7036         (sh_adjust_cost): Likewise for params "insn", "dep_insn".
7037         (sh_variable_issue): Likewise for param "insn".
7038         (sh_dfa_new_cycle): Likewise.
7039         (sh_mode_needed): Likewise.
7040         (sh_mode_after): Likewise.
7042         * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
7043         params "insn", "dep_insn".
7044         (hypersparc_adjust_cost): Likewise.
7045         (sparc_adjust_cost): Likewise.
7047         * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
7048         param, eliminated checked cast.
7049         (spu_sched_adjust_cost): Likewise for first and third params.
7051         * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
7052         params "insn" and "dep_insn" from rtx to rtx_insn *.
7054         * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
7056 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
7058         * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
7059         (set_is_load_p): ...this, updating to work on a SET pattern rather
7060         than an insn.
7061         (is_store_insn): Rename to...
7062         (set_is_store_p): ...this, updating to work on a SET pattern
7063         rather than an insn.
7064         (mn10300_adjust_sched_cost): Move call to get_attr_timings from
7065         top of function to where it is needed.  Rewrite the bogus
7066         condition that checks for "insn" and "dep" being PARALLEL to
7067         instead use single_set, introducing locals "insn_set" and
7068         "dep_set".  Given that we only ever returned "cost" for a non-pair
7069         of SETs, bail out early if we don't have a pair of SET.
7070         Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
7071         use the new locals "insn_set" and "dep_set", and update calls to
7072         is_load_insn and is_store_insn to be calls to set_is_load_p and
7073         set_is_store_p.
7075 2014-08-27  Guozhi Wei  <carrot@google.com>
7077         PR target/62262
7078         * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
7079         amount before using it.
7081 2014-08-27  Richard Biener  <rguenther@suse.de>
7083         * gimple-fold.c (get_maxval_strlen): Add overload wrapping
7084         get_maxval_strlen inside a more useful API.
7085         (gimple_fold_builtin_with_strlen): Remove and fold into ...
7086         (gimple_fold_builtin): ... caller.
7087         (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
7088         gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
7089         gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
7090         gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
7091         gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
7092         gimple_fold_builtin_sprintf): Adjust to compute maxval
7093         themselves.
7095 2014-08-27  Yvan Roux  <yvan.roux@linaro.org>
7097         PR other/62248
7098         * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
7100 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7101             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
7102             Anna Tikhonova  <anna.tikhonova@intel.com>
7103             Ilya Tocar  <ilya.tocar@intel.com>
7104             Andrey Turetskiy  <andrey.turetskiy@intel.com>
7105             Ilya Verbin  <ilya.verbin@intel.com>
7106             Kirill Yukhin  <kirill.yukhin@intel.com>
7107             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
7109         * config/i386/sse.md
7110         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
7111         Use `concat_tg_mode' attribute to determine asm register size.
7113 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7114             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
7115             Anna Tikhonova  <anna.tikhonova@intel.com>
7116             Ilya Tocar  <ilya.tocar@intel.com>
7117             Andrey Turetskiy  <andrey.turetskiy@intel.com>
7118             Ilya Verbin  <ilya.verbin@intel.com>
7119             Kirill Yukhin  <kirill.yukhin@intel.com>
7120             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
7122         * config/i386/sse.md
7123         (define_mode_iterator VI48_AVX512VL): New.
7124         (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
7125         (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
7126         (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
7127         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
7128         with VI1): Change mode iterator.
7129         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
7130         with VI_ULOADSTORE_BW_AVX512VL): New.
7131         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
7132         with VI_ULOADSTORE_F_AVX512VL): Ditto.
7133         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
7134         with VI1): Change mode iterator.
7135         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
7136         with VI_ULOADSTORE_BW_AVX512VL): New.
7137         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
7138         with VI_ULOADSTORE_F_AVX512VL): Ditto.
7139         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
7140         with VI1): Change mode iterator.
7141         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
7142         with VI_ULOADSTORE_BW_AVX512VL): New.
7143         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
7144         with VI_ULOADSTORE_BW_AVX512VL): Ditto.
7145         (define_insn "avx512f_storedqu<mode>_mask"): Delete.
7146         (define_insn "<avx512>_storedqu<mode>_mask" with
7147         VI48_AVX512VL): New.
7148         (define_insn "<avx512>_storedqu<mode>_mask" with
7149         VI12_AVX512VL): Ditto.
7151 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7152             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
7153             Anna Tikhonova  <anna.tikhonova@intel.com>
7154             Ilya Tocar  <ilya.tocar@intel.com>
7155             Andrey Turetskiy  <andrey.turetskiy@intel.com>
7156             Ilya Verbin  <ilya.verbin@intel.com>
7157             Kirill Yukhin  <kirill.yukhin@intel.com>
7158             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
7160         * config/i386/sse.md
7161         (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
7162         (define_mode_iterator VI48_AVX512BW): New.
7163         (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
7164         (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
7165         with VI48_AVX2_48_AVX512F): New.
7166         (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
7167         with VI2_AVX512VL): Ditto.
7169 2014-08-27  Richard Biener  <rguenther@suse.de>
7171         PR middle-end/62239
7172         * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
7173         (fold_builtin_3): Do not fold strcat_chk here.
7174         * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
7175         from builtins.c.
7176         (gimple_fold_builtin): Fold strcat_chk here.
7178 2014-08-26  Aldy Hernandez  <aldyh@redhat.com>
7180         * dwarf2out.h (dwarf2out_decl): Remove prototype.
7181         * dwarf2out.c (dwarf2out_decl): Make static.
7183 2014-08-26  Joel Sherrill <joel.sherrill@oarcorp.com>
7185         * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
7187 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7189         * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
7190         from rtx to rtx_insn *.
7191         (cselib_lookup_from_insn): Likewise for final param.
7192         (cselib_subst_to_values_from_insn): Likewise.
7193         (cselib_add_permanent_equiv): Likewise.
7195         * cselib.c (cselib_current_insn): Likewise for this variable.
7196         (cselib_subst_to_values_from_insn): Likewise for param "insn".
7197         (cselib_lookup_from_insn): Likewise.
7198         (cselib_add_permanent_equiv): Likewise for param "insn" and local
7199         "save_cselib_current_insn".
7200         (cselib_process_insn): Replace use of NULL_RTX with NULL.
7202         * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
7203         from rtx to rtx_insn *.
7205 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7207         * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
7208         rtx_insn *.
7210 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7212         * df.h (df_dump_insn_problem_function): Strengthen first param of
7213         this callback from const_rtx to const rtx_insn *.
7214         (struct df_insn_info): Strengthen field "insn" from rtx to
7215         rtx_insn *.
7216         (DF_REF_INSN): Eliminate this function, reinstating the older
7217         macro definition.
7218         (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
7219         (df_reg_defined): Likewise.
7220         (df_find_use): Likewise.
7221         (df_reg_used): Likewise.
7222         (df_dump_insn_top): Strengthen param 1 from const_rtx to
7223         const rtx_insn *.
7224         (df_dump_insn_bottom): Likewise.
7225         (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
7226         (df_insn_debug_regno): Likewise.
7227         (debug_df_insn): Likewise.
7228         (df_rd_simulate_one_insn): Likewise for param 2.
7229         (df_word_lr_simulate_defs): Likewise for param 1.
7230         (df_word_lr_simulate_uses): Likewise.
7231         (df_md_simulate_one_insn): Likewise for param 2.
7232         (df_simulate_find_noclobber_defs): Likewise for param 1.
7233         (df_simulate_find_defs): Likewise.
7234         (df_simulate_defs): Likewise.
7235         (df_simulate_uses): Likewise.
7236         (df_simulate_one_insn_backwards): Likewise for param 2.
7237         (df_simulate_one_insn_forwards): Likewise.
7238         (df_uses_create): Likewise for param 2.
7239         (df_insn_create_insn_record): Likewise for param 1.
7240         (df_insn_delete): Likewise.
7241         (df_insn_rescan): Likewise.
7242         (df_insn_rescan_debug_internal): Likewise.
7243         (df_insn_change_bb): Likewise.
7244         (df_notes_rescan): Likewise.
7245         * rtl.h (remove_death): Likewise for param 2.
7246         (print_rtl_with_bb): Strengthen param 2 from const_rtx to
7247         const rtx_insn *.
7248         * sched-int.h (reemit_notes): Strengthen param from rtx to
7249         rtx_insn *.
7250         * valtrack.h (propagate_for_debug): Likewise for param 1.
7252         * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
7253         local "tmp_rtx" from const_rtx to const rtx_insn *.
7254         * combine.c (remove_death): Strengthen param "insn" from rtx to
7255         rtx_insn *.
7256         (move_deaths): Likewise for local "where_dead".
7257         * cse.c (delete_trivially_dead_insns): Introduce local
7258         "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
7259         * df-core.c (df_find_def): Strengthen param "insn" from rtx to
7260         rtx_insn *.
7261         (df_reg_defined): Likewise.
7262         (df_find_use): Likewise.
7263         (df_reg_used): Likewise.
7264         (df_dump_insn_problem_data): Strengthen param "insn" from
7265         const_rtx to const rtx_insn *.
7266         (df_dump_insn_top): Likewise.
7267         (df_dump_insn_bottom): Likewise.
7268         (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
7269         (df_insn_debug_regno): Likewise.
7270         (debug_df_insn): Likewise.
7271         (DF_REF_INSN): Delete.
7272         * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
7273         from rtx to rtx_insn *.
7274         (df_chain_insn_top_dump): Strengthen param "insn" from
7275         const_rtx to const rtx_insn *.
7276         (df_chain_insn_bottom_dump): Likewise.
7277         (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
7278         rtx_insn *.
7279         (df_word_lr_simulate_uses): Likewise.
7280         (df_print_note): Likewise.
7281         (df_remove_dead_and_unused_notes): Likewise.
7282         (df_set_unused_notes_for_mw): Likewise.
7283         (df_set_dead_notes_for_mw): Likewise.
7284         (df_create_unused_note): Likewise.
7285         (df_simulate_find_defs): Likewise.
7286         (df_simulate_find_uses): Likewise.
7287         (df_simulate_find_noclobber_defs): Likewise.
7288         (df_simulate_defs): Likewise.
7289         (df_simulate_uses): Likewise.
7290         (df_simulate_one_insn_backwards): Likewise.
7291         (df_simulate_one_insn_forwards): Likewise.
7292         (df_md_simulate_one_insn): Likewise.
7293         * df-scan.c (df_uses_create): Likewise.
7294         (df_insn_create_insn_record): Likewise.
7295         (df_insn_delete): Likewise.
7296         (df_insn_rescan): Likewise.
7297         (df_insn_rescan_debug_internal): Likewise.
7298         (df_insn_change_bb): Likewise.
7299         (df_notes_rescan): Likewise.
7300         (df_refs_add_to_chains): Likewise.
7301         (df_insn_refs_verify): Likewise.
7302         * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
7303         when invoking df_insn_delete.
7304         (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
7305         (set_unique_reg_note): Add checked cast.
7306         * final.c (cleanup_subreg_operands): Likewise.
7307         * gcse.c (update_ld_motion_stores): Likewise, strengthening local
7308         "insn" from rtx to rtx_insn *.
7309         * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
7310         "last" from rtx to rtx_insn *.
7311         * ira-emit.c (change_regs_in_insn): New function.
7312         (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
7313         Invoke change_regs_in_insn rather than change_regs.
7314         * ira.c (update_equiv_regs): Strengthen locals "insn",
7315         "init_insn", "new_insn" from rtx to rtx_insn *.  Invoke
7316         for_each_rtx_in_insn rather than for_each_rtx.
7317         * recog.c (confirm_change_group): Add checked casts.
7318         (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
7319         Add checked cast.
7320         (peep2_fill_buffer): Add checked cast.
7321         * rtlanal.c (remove_note): Likewise.
7322         * valtrack.c (propagate_for_debug): Strengthen param "insn" and
7323         locals "next" "end" from rtx to rtx_insn *.
7325 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7327         * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
7328         to rtx_insn *.
7329         (struct reg_use_data): Likewise for field "insn".
7330         (insn_cost): Likewise for param.
7331         (real_insn_for_shadow): Likewise for return type and param.
7332         (increase_insn_priority): Likewise for param 1.
7333         (debug_dependencies): Likewise for both params.
7335         * haifa-sched.c (insn_delay): Likewise for param "insn".
7336         (real_insn_for_shadow): Likewise for return type and param "insn".
7337         (update_insn_after_change): Likewise for param "insn".
7338         (recompute_todo_spec): Likewise for param "next" and locals "pro",
7339         "other".
7340         (insn_cost): Likewise for param "insn".
7341         (increase_insn_priority): Likewise.
7342         (calculate_reg_deaths): Likewise.
7343         (setup_insn_reg_pressure_info): Likewise.
7344         (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
7345         (model_index): Strengthen param "insn" from rtx to rtx_insn *.
7346         (model_recompute): Likewise.
7347         (must_restore_pattern_p): Likewise for param "next".
7348         (model_excess_cost): Likewise for param "insn".
7349         (queue_remove): Likewise.
7350         (adjust_priority): Likewise for param "prev".
7351         (update_register_pressure): Likewise for param "insn".
7352         (setup_insn_max_reg_pressure): Likewise for local "insn".
7353         (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
7354         (model_add_to_schedule): Likewise.
7355         (model_reset_queue_indices): Likewise for local "insn".
7356         (unschedule_insns_until): Strengthen local "recompute_vec" from
7357         auto_vec<rtx> to auto_vec<rtx_insn *>.  Strengthen locals "last",
7358         "con" from rtx to rtx_insn *.
7359         (restore_last_backtrack_point): Likewise for both locals "x". Add
7360         checked casts.
7361         (estimate_insn_tick): Likewise for param "insn".
7362         (commit_schedule): Likewise for params "prev_head", "tail" and
7363         local "x".
7364         (verify_shadows): Likewise for locals "i1", "i2".
7365         (dump_insn_stream): Likewise for params "head", "tail" and locals
7366         "next_tail", "insn".
7367         (schedule_block): Likewise for locals "insn", "x".  Add a checked
7368         cast.
7369         (fix_inter_tick): Likewise for params "head", "tail".
7370         (create_check_block_twin): Likewise for local "jump".
7371         (haifa_change_pattern): Likewise for param "insn".
7372         (haifa_speculate_insn): Likewise.
7373         (dump_new_block_header): Likewise for params "head", "tail".
7374         (fix_jump_move): Likewise for param "jump".
7375         (move_block_after_check): Likewise.
7376         (sched_init_insn_luid): Likewise for param "insn".
7377         (sched_init_luids): Likewise for local "insn".
7378         (insn_luid): Likewise for param "insn".
7379         (init_h_i_d): Likewise.
7380         (haifa_init_h_i_d): Likewise for local "insn".
7381         (haifa_init_insn): Likewise for param "insn".
7382         * sched-deps.c (add_dependence): Likewise for local "real_pro",
7383         "other".
7384         (create_insn_reg_use): Likewise for param "insn".
7385         (setup_insn_reg_uses): Likewise.  Add a checked cast.
7386         * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
7387         "tail" from rtx to rtx_insn *.
7388         * sched-rgn.c (void debug_dependencies): Likewise, also for locals
7389         "insn", "next_tail".
7391 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7393         * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
7394         from rtx to rtx_insn *.
7395         (model_add_to_schedule): Likewise for locals "start", "end",
7396         "iter".
7398 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7400         * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
7401         rtx_insn *.
7402         * cfgrtl.c (duplicate_insn_chain): Likewise for  params "from",
7403         "to" and locals "insn", "next", "copy".  Remove now-redundant
7404         checked cast.
7406 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7408         * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
7409         rtx_insn * and param 4 from rtx * to rtx_insn **.
7410         (get_condition): Strengthen param 1 from rtx to rtx_insn * and
7411         param 2 from rtx * to rtx_insn **.
7413         * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
7414         rtx_insn * and final param from rtx * to rtx_insn **.
7416         * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
7417         from rtx to rtx_insn *.
7418         (try_head_merge_bb): Likewise for both locals named "move_upto".
7419         * df-problems.c (can_move_insns_across): Likewise for params
7420         "from", "to", "across_from", "across_to" and locals "insn",
7421         "next", "max_to".  Strengthen param "pmove_upto" from rtx * to
7422         rtx_insn **.
7423         * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
7424         from rtx to rtx_insn *.
7425         (noce_get_alt_condition): Strengthen param "earliest" from rtx *
7426         to rtx_insn **.  Strengthen local "insn" from rtx to rtx_insn *.
7427         (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
7428         rtx_insn *.
7429         (noce_try_abs): Likewise.
7430         (noce_get_condition): Likewise for param "jump".  Strengthen param
7431         "earliest" from rtx * to rtx_insn **.
7432         (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
7433         rtx_insn *.
7434         (find_cond_trap): Likewise.
7435         (dead_or_predicable): Likewise for local "earliest".
7436         * loop-iv.c (check_simple_exit): Likewise for local "at".  Add
7437         checked cast.
7438         * rtlanal.c (canonicalize_condition): Likewise for param "insn"
7439         and local "prev".  Strengthen param "earliest" from rtx * to
7440         rtx_insn **.
7441         (get_condition): Strengthen param "jump" from rtx to rtx_insn *
7442         Strengthen param "earliest" from rtx * to rtx_insn **.
7444 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7446         * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
7447         "to" and local "insn" from rtx to rtx_insn *.
7449 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7451         * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
7452         from rtx to rtx_insn *.
7453         (need_nop_to_preserve_insn_bb): Likewise for param "insn".
7454         (code_motion_path_driver): Likewise for local "last_insn".
7455         (simplify_changed_insns): Likewise for local "insn".
7457 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7459         * rtl.h (push_to_sequence): Strengthen param from rtx to
7460         rtx_insn *.
7461         (push_to_sequence2): Likewise for both params.
7462         (delete_insns_since): Likewise for param.
7463         (reorder_insns_nobb): Likewise for all three params.
7464         (set_new_first_and_last_insn): Likewise for both params.
7466         * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
7467         rtx_insn *.  Remove now-redundant cast.
7468         (set_last_insn): Likewise.
7470         * builtins.c (expand_builtin_return): Strengthen local
7471         "call_fusage" from rtx to rtx_insn *.
7472         * cfgrtl.c (create_basic_block_structure): Likewise for local
7473         "after".
7474         * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
7475         "first", "last" and local "insn".
7476         (delete_insns_since): Likewise for param "from".
7477         (reorder_insns_nobb): Likewise for params "from", "to", "after"
7478         and local "x".
7479         (push_to_sequence): Likewise for param "first" and local "last".
7480         (push_to_sequence2): Likewise for params "first" and "last".
7481         * lra.c (emit_add3_insn): Likewise for local "last".
7482         (lra_emit_add): Likewise.
7483         * lra-constraints.c (base_to_reg): Likewise for locals "insn",
7484         "last_insn".
7485         (process_address_1): Likewise for locals "insn", last".
7486         * modulo-sched.c (ps_first_note): Likewise for return type.
7487         * optabs.c (expand_binop_directly): Likewise for param "last".
7489 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7491         * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
7492         to rtx_insn*.
7493         * emit-rtl.c (get_last_insn_anywhere): Likewise.
7495 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7497         * function.h (struct sequence_stack): Strengthen fields "first"
7498         and "last" from rtx to rtx_insn *.
7499         (struct emit_status): Likewise for fields "x_first_insn" and
7500         "x_last_insn".
7502         * emit-rtl.h (get_insns): Remove now-redundant checked cast.
7503         (set_first_insn): Add checked cast.
7504         (get_last_insn): Remove now-redundant checked cast.
7505         (set_last_insn): Add checked cast.
7507         * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
7508         "saved_first" and "saved_last" from rtx to rtx_insn *.
7510 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7512         * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
7513         (unlink_insn_chain): Strengthen both params from rtx to
7514         rtx_insn *.
7516         * cfgrtl.c (cfg_layout_function_header): Likewise for this
7517         variable.
7518         (unlink_insn_chain): Likewise for params "first" and "last".
7519         Remove now-redundant checked cast.
7520         (record_effective_endpoints): Replace use of NULL_RTX with NULL.
7521         (fixup_reorder_chain): Strengthen local "insn" from rtx to
7522         rtx_insn *.
7523         * emit-rtl.c (link_insn_into_chain): Likewise for all three
7524         params.
7525         (add_insn): Likewise for param "insn" and local "prev".
7526         (add_insn_after_nobb): Likewise for both params and local "next".
7527         (add_insn_before_nobb): Likewise for both params and local "prev".
7528         (add_insn_after): Rename param "after" to "uncast_after",
7529         introducing local "after" with another checked cast.
7530         (add_insn_before): Rename params "insn" and "before", giving them
7531         "uncast_" prefixes, adding the old names back using checked casts.
7532         (emit_note_after): Likewise for param "after".
7533         (emit_note_before): Likewise for param "before".
7534         (emit_label): Add a checked cast.
7536 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7538         * cselib.h (cselib_record_sets_hook):  Strengthen initial param
7539         "insn" from rtx to rtx_insn *.
7541         * cselib.c (cselib_record_sets_hook): Likewise.
7543         * var-tracking.c (add_with_sets): Likewise, renaming back from
7544         "uncast_insn" to "insn" and eliminating the checked cast from rtx
7545         to rtx_insn *.
7547 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7549         * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
7550         and "header_" from rtx to rtx_insn *.
7551         (struct basic_block_d): Likewise for field "head_" within "x"
7552         field of union basic_block_il_dependent.
7553         (BB_HEAD): Drop function...
7554         (SET_BB_HEAD): ...and this function in favor of...
7555         (BB_HEAD): ...reinstate macro.
7556         (BB_END): Drop function...
7557         (SET_BB_END): ...and this function in favor of...
7558         (BB_END): ...reinstate macro.
7559         (BB_HEADER): Drop function...
7560         (SET_BB_HEADER): ...and this function in favor of...
7561         (BB_HEADER): ...reinstate macro.
7563         * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
7564         (fix_crossing_unconditional_branches): Likewise.
7565         * caller-save.c (save_call_clobbered_regs): Likewise.
7566         (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
7567         * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
7568         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
7569         (merge_blocks_move_successor_nojumps): Likewise.
7570         (outgoing_edges_match): Update use of for_each_rtx to
7571         for_each_rtx_in_insn.
7572         * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
7573         (expand_gimple_cond): Likewise.
7574         (expand_gimple_tailcall): Likewise.
7575         (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
7576         SET_BB_END.
7577         (construct_exit_block): Drop use of SET_BB_END.
7578         * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
7579         rtx_insn *.
7580         (delete_insn): Rename param "insn" to "uncast_insn", introducing
7581         a new local "insn" with a checked cast to rtx_insn *.  Drop use of
7582         SET_BB_HEAD and SET_BB_END.
7583         (create_basic_block_structure): Drop use of SET_BB_HEAD and
7584         SET_BB_END.
7585         (rtl_delete_block): Drop use of SET_BB_HEAD.
7586         (rtl_split_block): Drop use of SET_BB_END.
7587         (emit_nop_for_unique_locus_between): Likewise.
7588         (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
7589         (block_label): Drop use of SET_BB_HEAD.
7590         (fixup_abnormal_edges): Drop use of SET_BB_END.
7591         (record_effective_endpoints): Drop use of SET_BB_HEADER.
7592         (relink_block_chain): Likewise.
7593         (fixup_reorder_chain): Drop use of SET_BB_END.
7594         (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
7595         (cfg_layout_delete_block): Strengthen local "to" from rtx * to
7596         rtx_insn **.  Drop use of SET_BB_HEADER.
7597         (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
7598         SET_BB_HEAD.
7599         (BB_HEAD): Delete this function.
7600         (SET_BB_HEAD): Likewise.
7601         (BB_END): Likewise.
7602         (SET_BB_END): Likewise.
7603         (BB_HEADER): Likewise.
7604         (SET_BB_HEADER): Likewise.
7605         * emit-rtl.c (add_insn_after):  Rename param "insn" to
7606         "uncast_insn", adding a new local "insn" and a checked cast to
7607         rtx_insn *.  Drop use of SET_BB_END.
7608         (remove_insn): Strengthen locals "next" and "prev" from rtx to
7609         rtx_insn *.  Drop use of SET_BB_HEAD and SET_BB_END.
7610         (reorder_insns): Drop use of SET_BB_END.
7611         (emit_insn_after_1): Strengthen param "first" and locals "last",
7612         "after_after" from rtx to rtx_insn *.  Drop use of SET_BB_END.
7613         (emit_pattern_after_noloc): Add checked cast.
7614         * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
7615         (restore_other_notes): Likewise.
7616         (move_insn): Likewise.
7617         (sched_extend_bb): Likewise.
7618         (fix_jump_move): Likewise.
7619         * ifcvt.c (noce_process_if_block): Likewise.
7620         (dead_or_predicable): Likewise.
7621         * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
7622         * reg-stack.c (change_stack): Drop use of SET_BB_END.
7623         * sel-sched-ir.c (sel_move_insn): Likewise.
7624         * sel-sched.c (move_nop_to_previous_block): Likewise.
7626         * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
7627         SET_BB_END.
7628         * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
7630 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7632         * basic-block.h (create_basic_block_structure): Strengthen params
7633         1 "head" and 2 "end" from rtx to rtx_insn *.
7634         * cfgrtl.c (create_basic_block_structure): Likewise.
7635         (rtl_create_basic_block): Update casts from void * to rtx to
7636         rtx_insn *, so that we can pass them as rtx_insn * to
7637         create_basic_block_structure.
7638         * sel-sched-ir.c (sel_create_basic_block): Likewise.
7640 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7642         * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
7643         rtx_insn **.
7644         (check_for_inc_dec): Strengthen param "insn" from rtx to
7645         rtx_insn *.
7647         * cselib.h (cselib_process_insn): Likewise.
7649         * cselib.c (cselib_record_sets): Likewise.
7650         (cselib_process_insn): Likewise.
7652         * dse.c (struct insn_info): Likewise for field "insn".
7653         (check_for_inc_dec_1): Likewise for local "insn".
7654         (check_for_inc_dec): Likewise for param "insn".
7655         (scan_insn): Likewise.
7656         (dse_step1): Likewise for local "insn".
7658         * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
7659         rtx_insn **.  Use for_each_rtx_in_insn rather than for_each_rtx.
7661 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7663         * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
7664         from rtx to rtx_insn *.
7665         (DEP_PRO): Delete this function and...
7666         (SET_DEP_PRO): ...this function in favor of...
7667         (DEP_PRO): ...reinstate this macro.
7668         (DEP_CON): Delete this function and...
7669         (SET_DEP_CON): ...this function in favor of...
7670         (DEP_CON): ...reinstate this old macro.
7671         (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
7672         (init_dep): Likewise.
7673         (set_priorities): Likewise for both params.
7674         (sd_copy_back_deps): Likewise for params 1 and 2.
7676         * haifa-sched.c (priority): Likewise for param "insn" and local
7677         "next".
7678         (set_priorities): Likewise for params "head" and "tail" and local
7679         "insn".
7680         (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
7681         local "consumer".
7682         (add_to_speculative_block): Add a checked cast.
7683         (create_check_block_twin): Drop use of SET_DEP_CON.
7684         (add_jump_dependencies): Strengthen params "insn" and "jump" from
7685         rtx to rtx_insn *.
7687         * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
7688         Drop use of SET_DEP_PRO
7689         (init_dep): Strengthen params "pro" and "con" from rtx to
7690         rtx_insn *.
7691         (sd_copy_back_deps): Likewise for params "to" and "from".  Drop
7692         use of SET_DEP_CON.
7693         (DEP_PRO): Delete.
7694         (DEP_CON): Delete.
7695         (SET_DEP_PRO): Delete.
7696         (SET_DEP_CON): Delete.
7698 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7700         * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
7701         from rtx to rtx_insn *.
7702         (VINSN_INSN_RTX): Eliminate rvalue function and...
7703         (SET_VINSN_INSN): ...lvalue function in favor of...
7704         (VINSN_INSN_RTX): reinstate this old macro.
7706         * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
7707         in favor of VINSN_INSN_RTX.
7708         (VINSN_INSN_RTX): Delete this function.
7709         (SET_VINSN_INSN_RTX): Likewise.
7711 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7713         * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
7714         (BND_TO): Delete this function and...
7715         (SET_BND_TO): ...this functions in favor of...
7716         (BND_TO): ...reinstating this macro.
7717         (struct _fence): Strengthen field "executing_insns" from
7718         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.  Strengthen fields
7719         "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
7720         (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
7721         and param "insn" from rtx to insn_t.
7722         (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
7723         rtx_insn *.
7725         * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
7726         vec<rtx_insn *> .
7727         (rtx_vec_t): Likewise.
7728         (struct sched_deps_info_def): Strengthen param of "start_insn"
7729         callback from rtx to rtx_insn *.  Likewise for param "insn2" of
7730         "note_mem_dep" callback and first param of "note_dep" callback.
7732         * haifa-sched.c (add_to_speculative_block): Strengthen param
7733         "insn" from rtx to rtx_insn *.
7734         (clear_priorities): Likewise.
7735         (calc_priorities): Likewise for local "insn".
7737         * sched-deps.c (haifa_start_insn): Likewise for param "insn".
7738         Remove redundant checked cast.
7739         (haifa_note_mem_dep): Likewise for param "pending_insn".
7740         (haifa_note_dep): Likewise for param "elem".
7741         (note_mem_dep): Likewise for param "e".
7742         (sched_analyze_1): Add checked casts.
7743         (sched_analyze_2): Likewise.
7745         * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
7746         from rtx to rtx_insn *.
7747         (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
7748         from vec<rtx> * to vec<rtx_insn *> *.
7750         * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
7751         scaffolding.
7752         (flist_add): Strengthen param "executing_insns" from
7753         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
7754         (advance_deps_context): Remove now-redundant checked cast.
7755         (init_fences): Replace uses of NULL_RTX with NULL.
7756         (merge_fences): Strengthen params "last_scheduled_insn" and
7757         "sched_next" from rtx to rtx_insn * and "executing_insns" from
7758         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
7759         (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
7760         (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
7761         an instruction, rather than doing double-duty as a pattern.
7762         (return_nop_to_pool): Update for change of insn_t.
7763         (deps_init_id): Remove now-redundant checked cast.
7764         (struct sched_scan_info_def): Strengthen param of "init_insn"
7765         callback from rtx to insn_t.
7766         (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
7767         (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
7768         NULL.
7769         (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
7770         "end" from rtx to rtx_insn *.
7771         (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
7772         (rtx insn_rtx, bool force_unique_p)
7773         (BND_TO): Delete function.
7774         (SET_BND_TO): Delete function.
7776         * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
7777         rtx to rtx_insn *.
7778         (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
7779         (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
7780         rtx to rtx_insn *.
7781         (undo_transformations): Likewise for param "insn".
7782         (update_liveness_on_insn): Likewise.
7783         (compute_live_below_insn): Likewise for param "insn" and local
7784         "succ".
7785         (update_data_sets): Likewise for param "insn".
7786         (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
7787         (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
7788         (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
7789         rtx_insn *.
7790         (move_cond_jump): Likewise for param "insn".
7791         (move_cond_jump): Drop use of SET_BND_TO.
7792         (compute_av_set_on_boundaries): Likewise.
7793         (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
7794         (update_and_record_unavailable_insns): Strengthen local "bb_end"
7795         from rtx to rtx_insn *.
7796         (maybe_emit_renaming_copy): Likewise for param "insn".
7797         (maybe_emit_speculative_check): Likewise.
7798         (handle_emitting_transformations): Likewise.
7799         (remove_insn_from_stream): Likewise.
7800         (code_motion_process_successors): Strengthen local "succ" from rtx
7801         to insn_t.
7803 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7805         * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
7806         ilist_t, not _xlist_t;
7807         (ILIST_INSN): Define in terms of new union field "insn".
7808         (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
7809         _XLIST_NEXT.
7810         (struct _list_node): Add new field "insn" to the union, of type
7811         insn_t.
7812         (ilist_add): Replace macro with an inline function, requiring an
7813         insn_t.
7814         (ilist_remove): Define this macro directly in terms of
7815         _list_remove, rather than indirectly via _xlist_remove.
7816         (ilist_clear): Likewise, in terms of _list_clear rather than
7817         _xlist_clear.
7818         (ilist_is_in_p): Replace macro with an inline function, requiring
7819         an insn_t.
7820         (_list_iter_cond_insn): New function.
7821         (ilist_iter_remove): Define this macro directly in terms of
7822         _list_iter_remove, rather than indirectly via _xlist_iter_remove.
7823         (ilist_iterator): Define directly in terms of _list_iterator
7824         rather than indirectly through _xlist_iterator.
7825         (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
7826         than in terms of _FOR_EACH_X.
7827         (FOR_EACH_INSN_1): Likewise.
7829 2014-08-26  Joseph Myers  <joseph@codesourcery.com>
7831         PR target/60606
7832         PR target/61330
7833         * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
7834         DECL_HARD_REGISTER and return for invalid register specifications.
7835         * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
7836         DECL_HARD_REGISTER, call expand_one_error_var.
7837         * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
7838         CC_REGNUM with non-MODE_CC modes.
7839         (arm_regno_class): Return NO_REGS for PC_REGNUM.
7841 2014-08-26  Marek Polacek  <polacek@redhat.com>
7843         PR c/61271
7844         * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
7846 2014-08-26  Evandro Menezes <e.menezes@samsung.com>
7848         * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
7849         qi cost; add di cost.
7850         (cortexa57_addrcost_table): Likewise.
7852 2014-08-26  Marek Polacek  <polacek@redhat.com>
7854         PR c/61271
7855         * expr.c (is_aligning_offset): Remove logical not.
7857 2014-08-26  Marek Polacek  <polacek@redhat.com>
7859         PR c/61271
7860         * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
7861         LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
7863 2014-08-26  Richard Biener  <rguenther@suse.de>
7865         PR tree-optimization/62175
7866         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
7867         expand possibly trapping operations.
7869 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7871         * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
7872         "insn" from rtx to rtx_insn *.
7873         (permute_load): Likewise for param "insn".
7874         (permute_store): Likewise.
7875         (handle_special_swappables): Likewise for local "insn".
7876         (replace_swap_with_copy): Likewise for locals "insn" and
7877         "new_insn".
7878         (rs6000_analyze_swaps): Likewise for local "insn".
7880 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7882         * regrename.h (struct du_chain): Strengthen field "insn" from rtx
7883         to rtx_insn *.
7885 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7887         * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
7888         "note_list" from rtx to rtx_insn *.
7889         (BB_NOTE_LIST): Replace this function and...
7890         (SET_BB_NOTE_LIST): ...this function with...
7891         (BB_NOTE_LIST): ...the former macro implementation.
7893         * sched-int.h (concat_note_lists): Strengthen param "from_end" and
7894         local "from_start" from rtx to rtx_insn *.  Strengthen param
7895         "to_endp" from rtx * to rtx_insn **.
7897         * haifa-sched.c (concat_note_lists): Likewise.
7898         * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
7899         BB_NOTE_LIST.
7900         (sel_restore_notes): Likewise.
7901         (move_bb_info): Likewise.
7902         (BB_NOTE_LIST): Delete this function.
7903         (SET_BB_NOTE_LIST): Delete this function.
7904         * sel-sched.c (create_block_for_bookkeeping): Eliminate
7905         SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
7907 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7909         * target.def (reorder): Strengthen param "ready" of this DEFHOOK
7910         from rtx * to rtx_insn **.
7911         (reorder2): Likewise.
7912         (dependencies_evaluation_hook): Strengthen params "head", "tail"
7913         from rtx to rtx_insn *.
7915         * doc/tm.texi: Update mechanically for above change to target.def.
7917         * sched-int.h (note_list): Strengthen this variable from rtx to
7918         rtx_insn *.
7919         (remove_notes): Likewise for both params.
7920         (restore_other_notes): Likewise for return type and first param.
7921         (struct ready_list): Strengthen field "vec" from rtx * to
7922         rtx_insn **.
7923         (struct dep_replacement): Strenghten field "insn" from rtx to
7924         rtx_insn *.
7925         (struct deps_desc): Likewise for fields "last_debug_insn",
7926         "last_args_size".
7927         (struct haifa_sched_info): Likewise for callback field
7928         "can_schedule_ready_p"'s param, for first param of "new_ready"
7929         callback field, for both params of "rank" callback field, for
7930         first field of "print_insn" callback field (with a const), for
7931         both params of "contributes_to_priority" callback, for param
7932         of "insn_finishes_block_p" callback, for fields "prev_head",
7933         "next_tail", "head", "tail", for first param of "add_remove_insn"
7934         callback, for first param of "begin_schedule_ready" callback, for
7935         both params of "begin_move_insn" callback, and for second param
7936         of "advance_target_bb" callback.
7937         (add_dependence): Likewise for params 1 and 2.
7938         (sched_analyze): Likewise for params 2 and 3.
7939         (deps_analyze_insn): Likewise for param 2.
7940         (ready_element): Likewise for return type.
7941         (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
7942         (try_ready): Strenghten param from rtx to rtx_insn *.
7943         (sched_emit_insn): Likewise for return type.
7944         (record_delay_slot_pair): Likewise for params 1 and 2.
7945         (add_delay_dependencies): Likewise for param.
7946         (contributes_to_priority): Likewise for both params.
7947         (find_modifiable_mems): Likewise.
7949         * config/arm/arm.c (cortexa7_sched_reorder):  Strengthen param
7950         "ready" from rtx * to rtx_insn **.  Strengthen locals "insn",
7951         "first_older_only_insn" from rtx to rtx_insn *.
7952         (arm_sched_reorder):  Strengthen param "ready"  from rtx * to
7953         rtx_insn **.
7955         * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
7956         "last_scheduled_iter0" from rtx to rtx_insn *.
7957         (init_sched_state): Replace use of NULL_RTX with NULL for insn.
7958         (c6x_sched_reorder_1): Strengthen param "ready" and locals
7959         "e_ready", "insnp" from rtx * to rtx_insn **.  Strengthen local
7960         "insn" from rtx to rtx_insn *.
7961         (c6x_sched_reorder): Strengthen param "ready" from rtx * to
7962         rtx_insn **.
7963         (c6x_sched_reorder2): Strengthen param "ready" and locals
7964         "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
7965         "insn" from rtx to rtx_insn *.
7966         (c6x_variable_issue):  Add a checked cast when assigning from insn
7967         to ss.last_scheduled_iter0.
7968         (split_delayed_branch): Strengthen param "insn" and local "i1"
7969         from rtx to rtx_insn *.
7970         (split_delayed_nonbranch): Likewise.
7971         (undo_split_delayed_nonbranch): Likewise for local "insn".
7972         (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
7973         "entry_after", "end_packet", "head_insn", "tail_insn",
7974         "new_insns", "last_insn", "this_iter", "prev_stage_insn".
7975         Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
7976         to rtx_insn **.  Remove now-redundant checked cast on last_insn,
7977         but add a checked cast on loop->start_label.  Consolidate calls to
7978         avoid assigning result of gen_spkernel to "insn", now an
7979         rtx_insn *.
7981         * config/i386/i386.c (do_reorder_for_imul): Strengthen param
7982         "ready" from rtx * to rtx_insn **.  Strengthen local "insn" from
7983         rtx to rtx_insn *.
7984         (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
7985         rtx_insn **.  Strengthen locals "top", "next" from rtx to
7986         rtx_insn *.
7987         (ix86_sched_reorder): Strengthen param "ready" from rtx * to
7988         rtx_insn **.  Strengthen local "insn" from rtx to rtx_insn *.
7989         (add_parameter_dependencies): Strengthen params "call", "head" and
7990         locals "insn", "last", "first_arg" from rtx to rtx_insn *.
7991         (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
7992         (add_dependee_for_func_arg): Likewise for param "arg" and local
7993         "insn".
7994         (ix86_dependencies_evaluation_hook): Likewise for params "head",
7995         "tail" and locals "insn", "first_arg".
7997         * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
7998         for params "head", "tail" and locals "insn", "next", "next_tail".
7999         (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
8000         "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
8001         "insn", "lowest", "highest" from rtx to rtx_insn *.
8002         (ia64_sched_reorder): Strengthen param "ready" from rtx * to
8003         rtx_insn **.
8004         (ia64_sched_reorder2): Likewise.
8006         * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
8007         and local "insn" from rtx to rtx_insn *.  Strengthen param "ready"
8008         from rtx * to rtx_insn **.
8009         (mep_move_ready_insn): Strengthen param "ready" from rtx * to
8010         rtx_insn **.
8011         (mep_print_sched_insn): Strengthen param "insn" from rtx to
8012         rtx_insn *.
8013         (mep_sched_reorder): Strengthen param "ready" from rtx * to
8014         rtx_insn **.  Strengthen locals "core_insn", "cop_insn" from rtx
8015         to rtx_insn *.
8017         * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
8018         from rtx * to rtx_insn **.  Strengthen local "new_head" from rtx
8019         to rtx_insn *.
8020         (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
8021         rtx_insn **.  Strengthen local "temp" from rtx to rtx_insn *.
8022         (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
8023         rtx_insn **.
8024         (vr4130_reorder): Likewise.
8025         (mips_74k_agen_reorder): Likewise.  Strengthen local "insn" from
8026         rtx to rtx_insn *.
8027         (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
8028         rtx_insn **.
8029         (mips_sched_reorder): Likewise.
8030         (mips_sched_reorder2): Likewise.
8032         * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
8034         * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
8035         Strengthen local "tmp" from rtx to rtx_insn *.
8036         (rs6000_sched_reorder2): Likewise.
8038         * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
8039         Likewise.  Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
8040         (s390_sched_reorder): Strengthen param "ready" from rtx * to
8041         rtx_insn **.  Strengthen local "tmp" from rtx to rtx_insn *.
8043         * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
8044         "tmp2" from rtx to rtx_insn *.
8045         (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
8046         Strengthen local "insn" from rtx to rtx_insn *.
8047         (ready_reorder): Strengthen param "ready" from rtx * to
8048         rtx_insn **.  Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
8049         (sh_reorder):  Strengthen param "ready" from rtx * to rtx_insn **.
8050         (sh_reorder2): Likewise.
8052         * config/spu/spu.c (spu_sched_reorder): Likewise.  Strengthen
8053         local "insn" from rtx to rtx_insn *.
8055         * haifa-sched.c (note_list): Strengthen this variable from rtx to
8056         rtx_insn *.
8057         (scheduled_insns): Strengthen this variable from vec<rtx> to
8058         vec<rtx_insn *>.
8059         (set_modulo_params): Likewise for locals "i1", "i2".
8060         (record_delay_slot_pair): Likewise for params "i1", "i2".
8061         (add_delay_dependencies): Likewise for param "insn".
8062         (cond_clobbered_p): Likewise.
8063         (recompute_todo_spec): Likewise for local "prev".
8064         (last_scheduled_insn): Likewise for this variable.
8065         (nonscheduled_insns_begin): Likewise.
8066         (model_set_excess_costs): Strengthen param "insns" from rtx * to
8067         rtx_insn **.
8068         (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
8069         rtx_insn *.
8070         (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
8071         Strengthen local "insn" from rtx to rtx_insn *.
8072         (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
8073         (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
8074         (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
8075         (ready_remove_first): Likewise for return type and local "t".
8076         (ready_element): Likewise for return type.
8077         (ready_remove): Likewise for return type and local "t".
8078         (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
8079         (check_clobbered_conditions): Strengthen local "x" from rtx to
8080         rtx_insn *, adding a checked cast.
8081         (schedule_insn): Likewise for param "insn".
8082         (remove_notes): Likewise for params "head", "tail" and locals
8083         "next_tail", "insn", "next".
8084         (struct haifa_saved_data): Likewise for fields
8085         "last_scheduled_insn", "nonscheduled_insns_begin".
8086         (save_backtrack_point): Update for change to field "vec" of
8087         struct ready_list.
8088         (toggle_cancelled_flags): Strengthen local "first" from rtx * to
8089         rtx_insn **.
8090         (restore_last_backtrack_point): Likewise.  Strengthen local "insn"
8091         from rtx to rtx_insn *
8092         (resolve_dependencies): Strengthen param "insn" from rtx to
8093         rtx_insn *
8094         (restore_other_notes): Likewise for return type, for param "head"
8095         and local "note_head".
8096         (undo_all_replacements): Likewise for local "insn".
8097         (first_nonscheduled_insn): Likewise for return type and local "insn".
8098         (queue_to_ready): Likewise for local "insn", adding checked casts.
8099         (early_queue_to_ready): Likewise for local "insn".
8100         (debug_ready_list_1): Strengthen local "p" from rtx * to
8101         rtx_insn **.
8102         (move_insn): Strengthen param "insn" and local "note" from rtx to
8103         rtx_insn *
8104         (insn_finishes_cycle_p): Likewise for param "insn".
8105         (max_issue): Likewise for local "insn".
8106         (choose_ready): Likewise.  Strengthen param "insn_ptr" from rtx *
8107         to rtx_insn **.
8108         (commit_schedule): Strengthen param "prev_head" and local "insn"
8109         from rtx to rtx_insn *
8110         (prune_ready_list): Likewise for local "insn".
8111         (schedule_block): Likewise for locals "prev_head", "head", "tail",
8112         "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
8113         (set_priorities): Likewise for local "prev_head".
8114         (try_ready): Likewise for param "next".
8115         (fix_tick_ready): Likewise.
8116         (change_queue_index): Likewise.
8117         (sched_extend_ready_list): Update for change to field "vec" of
8118         struct ready_list.
8119         (generate_recovery_code): Strengthen param "insn" from rtx to
8120         rtx_insn *.
8121         (begin_speculative_block): Likewise.
8122         (create_check_block_twin): Likewise for param "insn" and locals
8123         "label", "check", "twin".  Introduce local "check_pat" to avoid
8124         "check" being used as a plain rtx before being used as an insn.
8125         (fix_recovery_deps): Add a checked cast to rtx_insn * when
8126         extracting elements from ready_list.
8127         (sched_remove_insn): Strengthen param "insn" from rtx to
8128         rtx_insn *.
8129         (sched_emit_insn): Likewise for return type.
8130         (ready_remove_first_dispatch): Likewise for return type and local
8131         "insn".
8133         * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
8135         * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
8136         const rtx_insn *.
8138         * sched-deps.c (add_dependence): Strengthen params "con", "pro"
8139         from rtx to rtx_insn *.
8140         (add_dependence_list): Likewise for param "insn".  Add a checked
8141         cast.
8142         (add_dependence_list_and_free): Strengthen param "insn" from rtx
8143         to rtx_insn *.  Strengthen param "list_p" from rtx * to
8144         rtx_insn **.
8145         (chain_to_prev_insn): Strengthen param "insn" and locals
8146         "prec_nonnote", "i" from rtx to rtx_insn *.
8147         (flush_pending_lists): Likewise for param "insn".
8148         (cur_insn): Likewise for this variable.
8149         (haifa_start_insn): Add a checked cast.
8150         (note_dep): Strengthen param "e" from rtx to rtx_insn *.
8151         (sched_analyze_reg): Likewise for param "insn".
8152         (sched_analyze_1): Likewise.
8153         (sched_analyze_2): Likewise.  Add checked casts.
8154         (sched_analyze_insn): Likewise.  Also for local "prev".
8155         (deps_analyze_insn): Likewise for param "insn".
8156         (sched_analyze): Likewise for params "head", "tail" and local "insn".
8157         (add_dependence_1): Likewise for params "insn", "elem".
8158         (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
8159         (parse_add_or_inc): Likewise for param "insn".
8160         (find_inc): Likewise for local "inc_cand".
8161         (find_modifiable_mems): Likewise for params "head", "tail" and
8162         locals "insn", "next_tail".
8164         * sched-ebb.c (init_ready_list): Likewise for local "insn".
8165         (begin_schedule_ready): Likewise for param "insn".
8166         (begin_move_insn): Likewise for params "insn" and "last".
8167         (ebb_print_insn): Strengthen param "insn" from const_rtx to
8168         const rtx_insn *.
8169         (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
8170         (ebb_contributes_to_priority): Likewise for params "next", "insn".
8171         (ebb_add_remove_insn): Likewise for param "insn".
8172         (advance_target_bb): Likewise.
8174         * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
8175         "insn".
8176         (check_live): Likewise for param "insn".
8177         (init_ready_list): Likewise for local "insn".
8178         (can_schedule_ready_p): Likewise for param "insn".
8179         (begin_schedule_ready): Likewise.
8180         (new_ready): Likewise for param "next".
8181         (rgn_print_insn): Likewise for param "insn".
8182         (rgn_rank): Likewise for params "insn1", "insn2".
8183         (contributes_to_priority): Likewise for params "next", "insn".
8184         (rgn_insn_finishes_block_p): Likewise for param "insn".
8185         (add_branch_dependences): Likewise for params "head", "tail" and
8186         locals "insn", "last".
8187         (rgn_add_remove_insn): Likewise for param "insn".
8188         (advance_target_bb): Likewise.
8190         * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
8191         const_rtx to const rtx_insn *.
8193         * sel-sched-dump.h (sel_print_insn): Likewise.
8195         * sel-sched-ir.c (advance_deps_context): Add a checked cast.
8196         (deps_init_id): Likewise.
8198         * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
8199         (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
8200         rtx_insn **.
8202 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8204         * output.h (final_start_function): Strengthen param 1 from rtx to
8205         rtx_insn *.
8207         * final.c (final_start_function): Likewise, renaming back from
8208         "uncast_first" to "first", and dropping the checked cast from rtx
8209         to rtx_insn *.
8211 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8213         * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
8214         * final.c (final): Likewise.  Rename param back from
8215         "uncast_first" to "first" and eliminate the checked cast from rtx
8216         to rtx_insn *.
8218 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8220         * output.h (shorten_branches): Strengthen param from rtx to
8221         rtx_insn *.
8223         * final.c (shorten_branches): Likewise, renaming param back from
8224         "uncast_first" to "first", and dropping the checked cast from rtx
8225         to rtx_insn *.
8227         * genattr.c (gen_attr): Likewise when writing out the prototype of
8228         shorten_branches.
8230 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8232         * sched-int.h (struct haifa_sched_info): Strengthen fields
8233         "prev_head" and "next_tail" from rtx to rtx_insn *.
8235 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8237         * rtl.h (rtx_jump_table_data::get_labels): New method.
8238         * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
8239         with use of the new rtx_jump_table_data::get_labels method.
8240         (purge_dead_tablejump_edges): Strengthen param "table" from rtx
8241         to rtx_jump_table_data *.  Simplify by using get_labels method.
8242         * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
8243         a dyn_cast, introducing local "table", using it to replace
8244         label-lookup logic with a get_labels method call.
8245         (patch_jump_insn): Simplify using get_labels method.
8246         * dwarf2cfi.c (create_trace_edges): Likewise.
8247         * rtlanal.c (label_is_jump_target_p): Likewise.
8249 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8251         * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
8252         to rtx_insn *.
8254         * emit-rtl.c (unshare_all_rtl_1): Likewise.
8255         (unshare_all_rtl_again): Likewise, also for local "p".
8257 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8259         * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
8260         to rtx_insn *.
8261         * cfgrtl.c (delete_insn_and_edges): Likewise.
8263 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8265         * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
8266         from rtx to rtx_insn *.
8268         * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
8270 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8272         * function.c (thread_prologue_and_epilogue_insns): Likewise for
8273         locals "returnjump", "epilogue_end", "insn", "next".
8275         * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
8276         "returnjump" from rtx * to rtx_insn **.
8277         * shrink-wrap.c (get_unconverted_simple_return): Likewise.
8279 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8281         * basic-block.h (struct edge_def). Strengthen "r" within
8282         union edge_def_insns from rtx to rtx_insn *.
8284         * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
8285         from rtx to rtx_insn *.  Strengthen local "insns" from rtx to
8286         rtx_insn *.
8287         * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
8288         from rtx to rtx_insn *.
8289         * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
8290         rtx_insn *.
8291         * postreload-gcse.c (reg_killed_on_edge): Likewise.
8292         (reg_used_on_edge): Likewise.
8293         * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
8294         (gt_pch_nx): New overload for rtx_insn *&.
8295         * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
8296         from rtx to rtx_insn *.
8298 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8300         * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
8301         from rtx to rtx_insn *.
8302         (BB_FOOTER): Replace function with access macro.
8303         (SET_BB_FOOTER): Delete.
8305         * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
8306         with BB_FOOTER.
8307         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
8308         (emit_barrier_after_bb): Likewise.
8309         (record_effective_endpoints): Likewise.
8310         (relink_block_chain): Likewise.
8311         (fixup_fallthru_exit_predecessor): Likewise.
8312         (cfg_layout_duplicate_bb): Likewise.
8313         (cfg_layout_split_block): Likewise.
8314         (cfg_layout_delete_block): Likewise.
8315         (cfg_layout_merge_blocks): Likewise.
8316         (BB_FOOTER): Delete function.
8317         (SET_BB_FOOTER): Delete function.
8318         * combine.c (update_cfg_for_uncondjump): Replace uses of
8319         SET_BB_FOOTER with BB_FOOTER.
8321 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8323         * except.h (struct eh_landing_pad_d): Strengthen field
8324         "landing_pad" from rtx to rtx_code_label *.
8326         * except.c (sjlj_emit_dispatch_table): Likewise for param
8327         "dispatch_label"
8328         (sjlj_build_landing_pads): Likewise for local "dispatch_label".
8330 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8332         * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
8333         first param from rtx to rtx_insn *.
8334         * config/xtensa/xtensa.c (struct machine_function): Likewise for
8335         field "set_frame_ptr_insn".
8336         (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
8337         "csend" from rtx to rtx_code_label *.
8338         (xtensa_expand_atomic): Likewise for local "csloop".
8339         (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
8340         rtx_insn *.
8341         (xtensa_call_tls_desc): Likewise for return type and locals
8342         "call_insn", "insns".
8343         (xtensa_legitimize_tls_address): Likewise for local "insns".
8344         (xtensa_expand_prologue): Likewise for locals "insn", "first".
8346 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8348         * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
8349         first param from rtx to rtx_insn *.
8350         * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
8351         "insn".
8353 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8355         * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
8356         Strengthen param 1 from rtx to rtx_insn *.
8357         (tilepro_output_cbranch): Likewise.
8358         (tilepro_adjust_insn_length): Likewise.
8359         (tilepro_final_prescan_insn): Likewise for sole param.
8361         * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
8362         Likewise for local "last".
8363         (cbranch_predicted_p): Likewise for param "insn".
8364         (tilepro_output_simple_cbranch_with_opcode): Likewise.
8365         (tilepro_output_cbranch_with_opcode): Likewise.
8366         (tilepro_output_cbranch): Likewise.
8367         (frame_emit_load): Likewise for return type and locals "seq",
8368         "insn".
8369         (emit_sp_adjust): Likewise for return type and local "insn".
8370         (tilepro_expand_epilogue): Likewise for locals "last_insn",
8371         "insn".
8372         (tilepro_adjust_insn_length): Likewise for param "insn".
8373         (next_insn_to_bundle): Likewise for return type and params
8374         "r", "end".
8375         (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
8376         (replace_pc_relative_symbol_ref): Likewise for param "insn" and
8377         local "new_insns".
8378         (match_addli_pcrel): Likewise for param "insn".
8379         (replace_addli_pcrel): Likewise.
8380         (match_auli_pcrel): Likewise.
8381         (replace_auli_pcrel): Likewise.
8382         (tilepro_fixup_pcrel_references): Likewise for locals "insn",
8383         "next_insn".
8384         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
8385         "queue", "next_queue", "prev".
8386         (tilepro_asm_output_mi_thunk): Likewise for local "insn".
8387         (tilepro_final_prescan_insn): Likewise for param "insn".
8389 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8391         * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
8392         Strengthen param 1 from rtx to rtx_insn *.
8393         (tilegx_output_cbranch): Likewise.
8394         (tilegx_adjust_insn_length): Likewise.
8395         (tilegx_final_prescan_insn): Likewise for sole param.
8397         * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
8398         or local "last".
8399         (cbranch_predicted_p): Likewise for param "insn".
8400         (tilegx_output_simple_cbranch_with_opcode): Likewise.
8401         (tilegx_output_cbranch_with_opcode): Likewise.
8402         (tilegx_output_cbranch): Likewise.
8403         (frame_emit_load): Likewise for return type.
8404         (set_frame_related_p): Likewise for locals "seq", "insn".
8405         (emit_sp_adjust): Likewise for return type, and for local "insn".
8406         Introduce local "pat" for use in place of "insn" where the latter
8407         isn't an instruction.
8408         (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
8409         from rtx to rtx_insn *.
8410         (tilegx_adjust_insn_length): Likewise for param "insn".
8411         (next_insn_to_bundle): Likewise for return type and params "r" and
8412         "end".
8413         (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
8414         "end".
8415         (replace_insns): Likewise for params "old_insn", "new_insns".
8416         (replace_mov_pcrel_step1): Likewise for param "insn" and local
8417         "new_insns".
8418         (replace_mov_pcrel_step2): Likewise.
8419         (replace_mov_pcrel_step3): Likewise.
8420         (tilegx_fixup_pcrel_references): Likewise for locals "insn",
8421         "next_insn".
8422         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
8423         "queue", "next_queue", "prev".
8424         (tilegx_output_mi_thunk): Likewise for local "insn".
8425         (tilegx_final_prescan_insn): Likewise for param "insn".
8427 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8429         * config/spu/spu.c (frame_emit_store): Strengthen return type from
8430         rtx to rtx_insn *.
8431         (frame_emit_load): Likewise.
8432         (frame_emit_add_imm): Likewise, also for local "insn".
8433         (spu_expand_prologue): Likewise for local "insn".
8434         (struct spu_bb_info): Likewise for field "prop_jump".
8435         (emit_nop_for_insn): Likewise for param "insn" and local
8436         "new_insn".
8437         (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
8438         "hbr_insn".
8439         (spu_emit_branch_hint): Likewise for params "before", "branch" and
8440         locals "hint", "insn".
8441         (get_branch_target): Likewise for param "branch".
8442         (insn_clobbers_hbr): Likewise for param "insn".
8443         (insert_hbrp_for_ilb_runout): Likewise for param "first" and
8444         locals "insn", "before_4", "before_16".
8445         (insert_hbrp): Likewise for local "insn".
8446         (spu_machine_dependent_reorg): Likewise for locals "branch",
8447         "insn", "next", "bbend".
8448         (uses_ls_unit): Likewise for param "insn".
8449         (get_pipe): Likewise.
8450         (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
8451         introducing a checked cast.
8452         (spu_sched_adjust_cost): Likewise for params "insn" and
8453         "dep_insn".
8454         (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
8455         (spu_sms_res_mii): Likewise.
8457 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8459         * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
8460         from rtx to rtx_insn *.
8461         (output_cbranch): Likewise for param 6.
8462         (output_return): Likewise for param 1.
8463         (output_sibcall): Likewise.
8464         (output_v8plus_shift): Likewise.
8465         (output_v8plus_mult): Likewise.
8466         (output_v9branch): Likewise for param 7.
8467         (output_cbcond):  Likewise for param 3.
8469         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
8470         for local "insn".
8471         (sparc_legitimize_pic_address): Likewise.
8472         (sparc_emit_call_insn): Likewise.
8473         (emit_save_or_restore_regs): Likewise.
8474         (emit_window_save): Likewise for return type and local "insn".
8475         (sparc_expand_prologue): Likewise for local "insn".
8476         (sparc_flat_expand_prologue): Likewise.
8477         (output_return): Likewise for param "insn".
8478         (output_sibcall): Likewise for param "insn" and local "delay".
8479         (output_ubranch): Likewise for param "insn".
8480         (output_cbranch): Likewise.
8481         (output_cbcond): Likewise.
8482         (output_v9branch): Likewise.
8483         (output_v8plus_shift): Likewise.
8484         (sparc_output_mi_thunk): Likewise for local "insn".
8485         (get_some_local_dynamic_name): Likewise.
8486         (output_v8plus_mult): Likewise for param "insn".
8488 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8490         * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
8491         from rtx to rtx_insn *.
8492         (output_branchy_insn): Likewise for param 3.
8493         (output_far_jump): Likewise for param 1.
8494         (final_prescan_insn): Likewise.
8495         (sh_insn_length_adjustment): Likewise for sole param.
8497         * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
8498         (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
8499         rtx_code_label *.
8500         (sh_emit_compare_and_set): Likewise for local "lab".
8501         (output_far_jump): Strengthen param "insn" and local "prev" from
8502         rtx to rtx_insn *.
8503         (output_branchy_insn): Likewise for param "insn" and local
8504         "next_insn".
8505         (output_ieee_ccmpeq): Likewise for param "insn".
8506         (struct label_ref_list_d): Strengthen field "label" from rtx to
8507         rtx_code_label *.
8508         (pool_node): Likewise.
8509         (pool_window_label): Likewise for this global.
8510         (add_constant): Likewise for return type and locals "lab", "new_rtx".
8511         (dump_table): Strengthen params "start", "barrier" and local
8512         "scan" from rtx to rtx_insn *.
8513         (broken_move): Likewise for param "insn".
8514         (untangle_mova): Likewise for params "first_mova" and "new_mova".
8515         Strengthen param "first_mova" from rtx * to rtx_insn **.
8516         (mova_p): Likewise for param "insn".
8517         (fixup_mova): Likewise for param "mova".
8518         (find_barrier): Likewise for return type, params "mova" and
8519         "from", and locals "barrier_before_mova", "found_barrier",
8520         "good_barrier", "orig", "last_symoff", "next".  Strengthen local
8521         "label" from rtx to rtx_code_label *.
8522         (sh_loop_align): Strengthen locals "first", "insn", "mova" from
8523         rtx to rtx_insn *.
8524         (sh_reorg): Likewise for locals "link", "scan", "barrier".
8525         (split_branches): Likewise for param "first" and local "insn".
8526         (final_prescan_insn): Likewise for param "insn".
8527         (sequence_insn_p): Likewise for locals "prev", "next".
8528         (sh_insn_length_adjustment): Likewise for param "insn".
8529         (sh_can_redirect_branch): Likewise for local "insn".
8530         (find_r0_life_regions): Likewise for locals "end", "insn".
8531         (sh_output_mi_thunk): Likewise for local "insns".
8533 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8535         * config/score/score.c (score_output_mi_thunk): Strengthen local
8536         "insn" from rtx to rtx_insn *.
8537         (score_prologue): Likewise.
8539 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8541         * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
8542         1 from rtx to rtx_insn *.
8543         (s390_emit_jump): Likewise for return type.
8544         (s390_emit_call): Likewise.
8545         (s390_load_got): Likewise.
8547         * config/s390/s390.c (last_scheduled_insn): Likewise for this
8548         variable.
8549         (s390_match_ccmode): Likewise for param "insn".
8550         (s390_emit_jump): Likewise for return type.
8551         (s390_split_branches): Likewise for local "label".
8552         (struct constant): Strengthen field "label" from rtx to
8553         rtx_code_label *.
8554         (struct constant_pool): Likewise for field "label".  Strengthen
8555         fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
8556         rtx_insn *.
8557         (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
8558         insns.
8559         (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
8560         (s390_end_pool): Likewise.
8561         (s390_dump_pool): Likewise for local "insn".
8562         (s390_mainpool_start): Likewise.
8563         (s390_chunkify_start): Likewise.
8564         (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
8565         with insns.  Strengthen locals "label", "jump", "barrier", "next",
8566         "prev", "vec_insn", "insn" from rtx to rtx_insn *.
8567         (s390_chunkify_finish): Strengthen local "insn" from rtx to
8568         rtx_insn *.
8569         (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
8570         "jump", "label", "next_insn".
8571         (s390_regs_ever_clobbered): Likewise for local "cur_insn".
8572         (s390_optimize_nonescaping_tx): Likewise for locals "insn",
8573         "tbegin_insn".
8574         (s390_load_got): Likewise for return type and local "insns".
8575         (s390_save_gprs_to_fprs): Likewise for local "insn".
8576         (s390_restore_gprs_from_fprs): Likewise.
8577         (pass_s390_early_mach::execute): Likewise.
8578         (s390_emit_prologue): Likewise for local "insns".
8579         (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
8580         rtx_code_label *.
8581         (s390_emit_call): Strengthen return type and local "insn" from
8582         rtx to rtx_insn *.
8583         (s390_emit_tpf_eh_return): Likewise for local "insn".
8584         (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
8585         "next_insn", introducing locals "s_pat", "rpat" to allow this.
8586         (s390_fix_long_loop_prediction): Likewise for param "insn" and
8587         local "cur_insn".
8588         (s390_non_addr_reg_read_p): Likewise for param "insn".
8589         (find_cond_jump): Likewise for return type and param "insn".
8590         (s390_swap_cmp): Likewise for param "insn".
8591         (s390_z10_optimize_cmp): Likewise for param "insn" and locals
8592         "prev_insn", "next_insn".
8593         (s390_reorg): Likewise for locals "insn", "target".
8594         (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
8595         (s390_sched_variable_issue): For now, rename param "insn" to
8596         "uncast_insn", introducing a checked cast.
8597         (s390_sched_init): Replace NULL_RTX with NULL when dealing with
8598         insn.
8599         (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
8600         rtx_insn *.  Use for_each_rtx_in_insn rather than for_each_rtx.
8602 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8604         * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
8605         param from rtx to rtx_insn *.
8606         * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
8608 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8610         * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
8611         4 from rtx to rtx_insn *.
8612         (rs6000_final_prescan_insn): Likewise for first param.
8613         * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
8614         local "insn".
8615         (rs6000_get_some_local_dynamic_name): Likewise.
8616         (output_cbranch): Likewise for param "insn".
8617         (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
8618         (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
8619         (rs6000_emit_allocate_stack): Likewise for local "insn".
8620         (load_cr_save): Likewise.
8621         (restore_saved_cr): Likewise.
8622         (restore_saved_lr): Likewise.
8623         (emit_cfa_restores): Likewise.
8624         (rs6000_output_function_epilogue): Likewise for locals "insn" and
8625         "deleted_debug_label".
8626         (rs6000_output_mi_thunk): Likewise for local "insn".
8627         (rs6000_final_prescan_insn): Likewise for param "insn".
8629 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8631         * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
8632         Strengthen param "insn" from rtx to rtx_insn *.
8633         * config/picochip/picochip.c (picochip_current_prescan_insn):
8634         Likewise for this variable.
8635         (picochip_final_prescan_insn): Likewise for param "insn".
8637 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8639         * config/pa/pa-protos.h (pa_output_call): Strengthen first param
8640         from rtx to rtx_insn *.
8641         (pa_output_indirect_call): Likewise.
8642         (pa_adjust_insn_length): Likewise.
8643         (pa_attr_length_millicode_call): Likewise.
8644         (pa_attr_length_call): Likewise.
8645         (pa_attr_length_indirect_call): Likewise.
8647         * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
8648         "insn".
8649         (pa_attr_length_millicode_call): Likewise.
8650         (pa_attr_length_call): Likewise.
8651         (pa_output_call): Likewise.
8652         (pa_attr_length_indirect_call): Likewise.
8653         (pa_output_indirect_call): Likewise.
8655 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8657         * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
8658         Strengthen first param from rtx to rtx_insn *.
8659         * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
8660         param "insn".
8662 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8664         * config/mips/mips-protos.h (mips_emit_move): Strengthen return
8665         type from rtx to rtx_insn *.
8666         (mips_expand_call): Likewise.
8667         (mips_adjust_insn_length): Likewise for first param.
8668         (mips_output_conditional_branch): Likewise.
8669         (mips_output_order_conditional_branch): Likewise.
8670         (mips_final_prescan_insn): Likewise.
8672         * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
8673         rtx_insn * for the SEQUENCE case.
8674         (SEQ_END): Likewise.
8675         (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
8676         (mips_emit_call_insn): Likewise, also for local "insn".
8677         (mips16_gp_pseudo_reg): Likewise for local "scan".
8678         (mips16_build_call_stub): Likewise for return type and for local
8679         "insn".  Introduce a new local "pattern" so that "insn" can indeed
8680         be an insn.
8681         (mips_expand_call): Strengthen return type and local "insn" from
8682         rtx to rtx_insn *.
8683         (mips_block_move_loop): Strengthen local "label" from rtx to
8684         rtx_code_label *.
8685         (mips_expand_synci_loop): Likewise for locals "label",
8686         "end_label".
8687         (mips_set_frame_expr): Strengthen local "insn" from rtx to
8688         rtx_insn *.
8689         (mips16e_collect_argument_saves): Likewise for locals "insn",
8690         "next".
8691         (mips_find_gp_ref): Likewise for param of callback for "pred"
8692         param, and for local "insn".
8693         (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
8694         (mips_insn_has_flexible_gp_ref_p): Likewise.
8695         (mips_epilogue_emit_cfa_restores): Likewise for return type and
8696         local "insn".
8697         (mips_epilogue_set_cfa): Likewise for local "insn".
8698         (mips_expand_epilogue): Likewise.
8699         (mips_adjust_insn_length): Likewise for param "insn".
8700         (mips_output_conditional_branch): Likewise.
8701         (mips_output_order_conditional_branch): Likewise.
8702         (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
8703         "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
8704         "falu2_turn_enabled_insn".
8705         (mips_builtin_branch_and_move): Strengthen locals "true_label",
8706         "done_label" from rtx to rtx_code_label *.
8707         (struct mips16_constant): Likewise for field "label".
8708         (mips16_add_constant): Likewise for return type.
8709         (mips16_emit_constants_1): Strengthen return type and param "insn"
8710         from rtx to rtx_insn *.
8711         (mips16_emit_constants): Likewise for param "insn".
8712         (mips16_insn_length): Likewise.
8713         (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
8714         to rtx_code_label *.
8715         (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
8716         from rtx to rtx_insn *.
8717         (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
8718         "jump".  Strengthen local "label" from rtx to rtx_code_label *.
8719         (r10k_simplify_address): Strengthen param "insn" and local
8720         "def_insn" from rtx to rtx_insn *.
8721         (r10k_safe_address_p): Strengthen param "insn" from rtx to
8722         rtx_insn *.
8723         (r10k_needs_protection_p_1): Update target type of cast of data
8724         from to rtx to rtx_insn *.
8725         (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
8726         rtx * to rtx_insn **.
8727         (r10k_needs_protection_p): Strengthen param "insn" from rtx to
8728         rtx_insn *.
8729         (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
8730         (mips_call_expr_from_insn): Likewise for param "insn".
8731         (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
8732         (mips_find_pic_call_symbol): Likewise for param "insn".
8733         (mips_annotate_pic_calls): Likewise for local "insn".
8734         (mips_sim_insn): Likewise for this variable.
8735         (struct mips_sim): Likewise for field "insn" within elements of
8736         last_set array.
8737         (mips_sim_wait_reg): Likewise for param "insn".
8738         (mips_sim_wait_regs): Likewise.
8739         (mips_sim_wait_units): Likewise.
8740         (mips_sim_wait_insn): Likewise.
8741         (mips_sim_issue_insn): Likewise.
8742         (mips_sim_finish_insn): Likewise.
8743         (mips_seq_time): Likewise for param "seq" and local "insn".
8744         (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
8745         locals "first", "second".
8746         (vr4130_align_insns): Likewise for locals "insn", "subinsn",
8747         "last", "last2", "next".
8748         (mips_avoid_hazard): Likewise for params "after", "insn".
8749         (mips_reorg_process_insns): Likewise for locals "insn",
8750         "last_insn", "subinsn", "next_insn".
8751         (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
8752         (mips16_split_long_branches): Likewise for locals "insn" "jump",
8753         "jump_sequence".
8754         (mips_output_mi_thunk): Likewise for local "insn".
8755         (mips_final_prescan_insn): Likewise for param "insn".
8757 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8759         * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
8760         Strengthen return type and local "insns" from rtx to rtx_insn *.
8761         (microblaze_legitimize_tls_address): Likewise for local "insns".
8762         (microblaze_block_move_loop): Strengthen local "label" from rtx
8763         to rtx_code_label *.
8764         (microblaze_expand_prologue): Strengthen two locals named "insn"
8765         from rtx to rtx_insn *.
8766         (microblaze_asm_output_mi_thunk): Likewise for local "insn".
8767         (microblaze_expand_divide): Likewise for locals "jump", "cjump",
8768         "insn".  Strengthen locals "div_label", "div_end_label" from rtx
8769         to rtx_code_label *.
8771 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8773         * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
8774         param from rtx to rtx_insn *.
8775         (mep_reuse_lo): Likewise for third param.
8776         (mep_use_post_modify_p): Likewise for first param.
8777         (mep_core_address_length): Likewise.
8778         (mep_cop_address_length): Likewise.
8779         (mep_final_prescan_insn): Likewise.
8780         (mep_store_data_bypass_p): Likewise for both params.
8781         (mep_mul_hilo_bypass_p): Likewise.
8782         (mep_ipipe_ldc_p): Likewise for param.
8784         * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
8785         (mep_rewrite_mult): Likewise.
8786         (mep_rewrite_mulsi3): Likewise.
8787         (mep_rewrite_maddsi3): Likewise.
8788         (mep_reuse_lo_p_1): Likewise.
8789         (mep_reuse_lo_p): Likewise.
8790         (mep_frame_expr): Likewise.
8791         (mep_make_parallel): Likewise for both params.
8792         (mep_use_post_modify_p_1): Likewise for param "set_insn" and
8793         local "insn".
8794         (mep_use_post_modify_p): Likewise for param "insn".
8795         (mep_core_address_length): Likewise.
8796         (mep_cop_address_length): Likewise.
8797         (mep_reg_set_in_function): Likewise for local "insn".
8798         (mep_asm_without_operands_p): Likewise.
8799         (F): Likewise for return type and param "x".
8800         (add_constant): Likewise for local "insn".
8801         (maybe_dead_move): Likewise for return type and local "insn".
8802         (mep_expand_prologue): Likewise for local "insn".
8803         (mep_final_prescan_insn): Likewise for param "insn".
8804         (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
8805         "next", "follow", "x".
8806         (mep_insert_repeat_label_last): Likewise for return type, param
8807         "last_insn", and locals "next", "prev".  Strengthen param "label"
8808         from rtx to rtx_code_label *.
8809         (struct mep_doloop_begin): Strengthen field "insn" from rtx to
8810         rtx_insn *.
8811         (struct mep_doloop_end): Likewise for fields "insn" and
8812         "fallthrough".
8813         (mep_reorg_repeat): Likewise for param "insns" and local "insn".
8814         Strengthen local "repeat_label" from rtx to rtx_code_label *.
8815         (mep_invertable_branch_p): Strengthen param "insn" from rtx to
8816         rtx_insn *.
8817         (mep_invert_branch): Likewise for params "insn" and "after".
8818         (mep_reorg_erepeat): Likewise for param "insns" and locals
8819         "insn", "prev", "new_last", "barrier", "user".  Strengthen local
8820         "l" from rtx to rtx_code_label *.
8821         (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
8822         from rtx to rtx_insn *.
8823         (mep_reorg_addcombine): Likewise for param "insns" and locals
8824         "i", "n".
8825         (add_sp_insn_p): Likewise for param "insn".
8826         (mep_reorg_noframe): Likewise for param "insns" and locals
8827         "start_frame_insn", "end_frame_insn", "next".
8828         (mep_reorg): Likewise for local "insns".
8829         (mep_store_data_bypass_1): Likewise for param "prev".  Add checked
8830         cast.
8831         (mep_store_data_bypass_p): Likewise for params "prev", "insn".
8832         (mep_mul_hilo_bypass_p): Likewise.
8833         (mep_ipipe_ldc_p): Likewise for param "insn".
8834         (mep_make_bundle): Likewise for return type, param "cop" and local
8835         "insn", splitting out the latter into a new local "seq" for when it
8836         is a SEQUENCE rather than an insn.
8837         (core_insn_p): Likewise for param "insn".
8838         (mep_bundle_insns): Likewise for param "insns" and locals "insn",
8839         "last", "first", "note", "prev", "core_insn".
8841 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8843         * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
8844         rtx to rtx_insn *.
8845         (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
8846         (m68k_final_prescan_insn): Likewise for first param.
8848         * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
8849         (m68k_set_frame_related): Likewise for param "insn".
8850         (output_btst): Likewise for param "insn".
8851         (m68k_final_prescan_insn): Likewise.
8852         (m68k_move_to_reg): Likewise for local "insn".
8853         (m68k_call_tls_get_addr): Likewise for local "insns".
8854         (m68k_call_m68k_read_tp): Likewise.
8855         (strict_low_part_peephole_ok): Likewise for param "first_insn".
8856         (m68k_output_mi_thunk): Likewise for local "insn".
8858 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8860         * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
8861         first param from rtx to rtx_insn *.
8862         (iq2000_adjust_insn_length): Likewise.
8863         (iq2000_output_conditional_branch): Likewise.
8864         * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
8865         "insn" and local "nop_insn".
8866         (iq2000_annotate_frame_insn): Likewise for param "insn".
8867         (iq2000_expand_prologue): Likewise for both locals "insn".
8868         (iq2000_adjust_insn_length): Likewise for param "insn".
8869         (iq2000_output_conditional_branch): Likewise.
8871 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8873         * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
8874         "insns" from rtx to rtx_insn *.
8875         (ia64_emit_cond_move): Likewise for locals "insn", "first".
8876         (struct spill_fill_data): Likewise for field "init_after" and for
8877         elements of array field "prev_insn".
8878         (spill_restore_mem): Likewise for locals "insn", "first".
8879         (do_spill): Likewise for local "insn".
8880         (do_restore): Likewise.
8881         (ia64_expand_prologue): Likewise.
8882         (ia64_expand_epilogue): Likewise.
8883         (emit_insn_group_barriers): Likewise for locals "insn",
8884         "last_label".
8885         (emit_all_insn_group_barriers): Likewise for locals "insn",
8886         "last".
8887         (dfa_stop_insn): Likewise for this global.
8888         (dfa_pre_cycle_insn): Likewise.
8889         (ia64_nop): Likewise.
8890         (final_emit_insn_group_barriers): Likewise for locals "insn",
8891         "last".
8892         (emit_predicate_relation_info): Likewise for locals "head", "n",
8893         "insn", "b", "a".
8894         (ia64_reorg): Likewise for local "insn".
8895         (ia64_output_mi_thunk): Likewise.
8896         (expand_vec_perm_interleave_2): Likewise for local "seq".
8898 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8900         * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
8901         param 1 "insn" from rtx to rtx_insn *.
8902         (ix86_use_lea_for_mov): Likewise.
8903         (ix86_avoid_lea_for_addr): Likewise.
8904         (ix86_split_lea_for_addr): Likewise.
8905         (ix86_lea_for_add_ok): Likewise.
8906         (ix86_output_call_insn): Likewise.
8908         * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
8909         (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
8910         (ix86_output_function_epilogue): Likewise for locals "insn",
8911         "deleted_debug_label".
8912         (legitimize_tls_address): Likewise for local "insn".
8913         (get_some_local_dynamic_name): Likewise.
8914         (increase_distance): Likewise for params "prev", "next".
8915         (distance_non_agu_define_in_bb): Likewise for params "insn",
8916         "start" and locals "prev", "next".
8917         (distance_non_agu_define): Likewise for param "insn".
8918         (distance_agu_use_in_bb): Likewise for params "insn", "start" and
8919         locals "next", "prev".
8920         (distance_agu_use): Likewise for param "insn".
8921         (ix86_lea_outperforms): Likewise.
8922         (ix86_ok_to_clobber_flags): Likewise.
8923         (ix86_avoid_lea_for_add): Likewise.
8924         (ix86_use_lea_for_mov): Likewise.
8925         (ix86_avoid_lea_for_addr): Likewise.
8926         (find_nearest_reg_def): Likewise, also for locals "prev", "start".
8927         (ix86_split_lea_for_addr): Likewise for param "insn".
8928         (ix86_lea_for_add_ok): Likewise for param "insn".
8929         (ix86_expand_carry_flag_compare): Likewise for local
8930         "compare_seq".
8931         (ix86_expand_int_movcc): Likewise.
8932         (ix86_output_call_insn): Likewise for param "insn".
8933         (ix86_output_call_insn): Likewise for local "i".
8934         (x86_output_mi_thunk): Introduce local "insn", using it in place
8935         of "tmp" when dealing with insns.
8936         (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
8937         "start".
8938         (ix86_pad_returns): Likewise for locals "ret", "prev".
8939         (ix86_count_insn_bb): Likewise for local "insn".
8940         (ix86_pad_short_function): Likewise for locals "ret", "insn".
8941         (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
8942         (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
8943         (expand_vec_perm_interleave2): Likewise for local "seq".
8944         (expand_vec_perm_vperm2f128_vblend): Likewise.
8945         (ix86_loop_unroll_adjust): Likewise for local "insn".  Convert
8946         call to for_each_rtx with for_each_rtx_in_insn.
8948 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8950         * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
8951         "label" from rtx to rtx_code_label *.
8952         (ix86_expand_prologue): Likewise.
8953         (ix86_expand_split_stack_prologue): Likewise for locals "label",
8954         "varargs_label".
8955         (ix86_split_idivmod): Likewise for locals "end_label" and
8956         "qimode_label".
8957         (ix86_expand_branch): Likewise for local "label2".
8958         (ix86_expand_aligntest): Likewise for return type and local "label".
8959         (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
8960         "top_label".
8961         (expand_movmem_epilogue): Likewise for the various locals named
8962         "label".
8963         (expand_setmem_epilogue): Likewise.
8964         (expand_small_movmem_or_setmem): Likewise for local "label".
8965         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
8966         Strengthen param "done_label" from rtx * to rtx_code_label **.
8967         Strengthen locals "loop_label" and "label" from rtx to
8968         rtx_code_label *.
8969         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
8970         Likewise for locals "loop_label", "label".
8971         (ix86_expand_set_or_movmem): Likewise for locals "label",
8972         "jump_around_label", "hot_label".
8973         (ix86_expand_strlensi_unroll_1): Likewise for locals
8974         "align_2_label", align_3_label", "align_4_label", "end_0_label",
8975         "end_2_label".
8976         (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
8977         (void ix86_emit_i387_log1p): Likewise for locals "label1",
8978         "label2", "jump_label".
8979         (ix86_expand_sse_compare_and_jump): Likewise for return type and
8980         local "label".
8981         (ix86_expand_lfloorceil): Likewise for local "label".
8982         (ix86_expand_rint): Likewise.
8983         (ix86_expand_floorceildf_32): Likewise.
8984         (ix86_expand_floorceil): Likewise.
8985         (ix86_expand_rounddf_32): Likewise.
8986         (ix86_expand_trunc): Likewise.
8987         (ix86_expand_truncdf_32): Likewise.
8988         (ix86_expand_round): Likewise.
8990 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8992         * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
8993         first param from rtx to rtx_insn *.
8994         (h8300_insn_length_from_table): Likewise.
8995         * config/h8300/h8300.c (F): Likewise for return type and param
8996         "x".
8997         (Fpa): Add a checked cast to rtx_insn *.
8998         (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
8999         rtx_insn *.
9000         (final_prescan_insn): Likewise for param "insn".
9001         (h8300_binary_length): Likewise.
9002         (h8300_insn_length_from_table): Likewise.
9004 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9006         * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
9007         Strengthen first param "insn" from rtx to rtx_insn *.
9009         * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
9010         Likewise.
9011         (frame_insn): Likewise for return type.  Introduce local "insn"
9012         for use in place of local "x" for use as an rtx_insn *.
9013         (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
9014         (epiphany_expand_prologue): Likewise for local "insn".
9015         * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
9016         * config/epiphany/resolve-sw-modes.c
9017         (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
9018         "seq".
9020 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9022         * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
9023         param from rtx to rtx_insn *.
9024         (c6x_final_prescan_insn): Likewise for first param.
9026         * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
9027         (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
9028         (c6x_expand_compare): Strengthen local "insns" from rtx to
9029         rtx_insn *.
9030         (c6x_get_unit_specifier): Likewise for param "insn".
9031         (c6x_print_unit_specifier_field): Likewise.
9032         (c6x_final_prescan_insn): Likewise.
9033         (emit_add_sp_const): Likewise for local "insn".
9034         (c6x_expand_prologue): Likewise.
9036 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9038         * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
9039         param 1 from rtx to rtx_insn *.
9040         * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
9041         the various locals named "insn".
9042         (expand_epilogue_reg_restore): Likewise.
9043         (frame_related_constant_load): Likewise.
9044         (add_to_reg): Likewise.
9045         (emit_link_insn): Likewise.
9046         (do_link): Likewise.
9047         (expand_interrupt_handler_prologue): Likewise.
9048         (branch_dest): Likewise for param "branch".
9049         (asm_conditional_branch): Likewise for param "insn".
9050         (gen_one_bundle): Likewise for elements of param "slot" and local
9051         "t".
9052         (bfin_gen_bundles): Likewise for locals "insn", "next" and
9053         elements of local "slot".
9054         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
9055         "queue", "next_queue", "prev".
9056         (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
9057         (add_sched_insns_for_speculation): Likewise for local "insn".
9059 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9061         * config/avr/avr-protos.h (output_movqi): Strengthen first param
9062         from rtx to rtx_insn *.
9063         (output_movhi): Likewise.
9064         (output_movsisf): Likewise.
9065         (avr_out_tstsi): Likewise.
9066         (avr_out_tsthi): Likewise.
9067         (avr_out_tstpsi): Likewise.
9068         (avr_out_compare): Likewise.
9069         (avr_out_compare64): Likewise.
9070         (avr_out_movpsi): Likewise.
9071         (ashlqi3_out): Likewise.
9072         (ashlhi3_out): Likewise.
9073         (ashlsi3_out): Likewise.
9074         (ashrqi3_out): Likewise.
9075         (ashrhi3_out): Likewise.
9076         (ashrsi3_out): Likewise.
9077         (lshrqi3_out): Likewise.
9078         (lshrhi3_out): Likewise.
9079         (lshrsi3_out): Likewise.
9080         (avr_out_ashlpsi3): Likewise.
9081         (avr_out_ashrpsi3): Likewise.
9082         (avr_out_lshrpsi3): Likewise.
9083         (avr_out_fract): Likewise.
9084         (avr_out_sbxx_branch): Likewise.
9085         (avr_out_round): Likewise.
9086         (avr_out_xload): Likewise.
9087         (avr_out_movmem): Likewise.
9088         (adjust_insn_length): Likewise.
9089         (avr_out_lpm): Likewise.
9090         (reg_unused_after): Likewise.
9091         (_reg_unused_after): Likewise.
9092         (avr_jump_mode): Likewise for second param.
9093         (jump_over_one_insn): Likewise for first param.
9094         (avr_final_prescan_insn): Likewise.
9095         (out_shift_with_cnt): Likewise for second param.
9097         * config/avr/avr.c (get_sequence_length): Likewise for param
9098         "insns" and local "insn".
9099         (emit_push_byte): Likewise for local "insn".
9100         (emit_push_sfr): Likewise.
9101         (avr_prologue_setup_frame): Likewise for locals "insn",
9102         "fp_plus_insns", "sp_plus_insns".
9103         (avr_expand_epilogue): Likewise for local "fp_plus_insns",
9104         "sp_plus_insns".
9105         (avr_jump_mode): Likewise for param "insn".
9106         (avr_final_prescan_insn): Likewise.
9107         (avr_find_unused_d_reg): Likewise.
9108         (avr_out_lpm_no_lpmx): Likewise.
9109         (avr_out_lpm): Likewise.
9110         (avr_out_xload): Likewise.
9111         (output_movqi): Likewise.
9112         (output_movhi): Likewise.
9113         (out_movqi_r_mr): Likewise.
9114         (out_movhi_r_mr): Likewise.
9115         (out_movsi_r_mr): Likewise.
9116         (out_movsi_mr_r): Likewise.
9117         (output_movsisf): Likewise.
9118         (avr_out_load_psi): Likewise.
9119         (avr_out_store_psi): Likewise.
9120         (avr_out_movpsi): Likewise.
9121         (out_movqi_mr_r): Likewise.
9122         (avr_out_movhi_mr_r_xmega): Likewise.
9123         (out_movhi_mr_r): Likewise.
9124         (compare_condition): Likewise for param "insn" and local "next".
9125         (compare_sign_p): Likewise for param "insn".
9126         (compare_diff_p): Likewise.
9127         (compare_eq_p): Likewise.
9128         (avr_out_compare): Likewise.
9129         (avr_out_compare64): Likewise.
9130         (avr_out_tsthi): Likewise.
9131         (avr_out_tstpsi): Likewise.
9132         (avr_out_tstsi): Likewise.
9133         (out_shift_with_cnt): Likewise.
9134         (ashlqi3_out): Likewise.
9135         (ashlhi3_out): Likewise.
9136         (avr_out_ashlpsi3): Likewise.
9137         (ashlsi3_out): Likewise.
9138         (ashrqi3_out): Likewise.
9139         (ashrhi3_out): Likewise.
9140         (avr_out_ashrpsi3): Likewise.
9141         (ashrsi3_out): Likewise.
9142         (lshrqi3_out): Likewise.
9143         (lshrhi3_out): Likewise.
9144         (avr_out_lshrpsi3): Likewise.
9145         (lshrsi3_out): Likewise.
9146         (avr_out_fract): Likewise.
9147         (avr_out_round): Likewise.
9148         (avr_adjust_insn_length): Likewise.
9149         (reg_unused_after): Likewise.
9150         (_reg_unused_after): Likewise.
9151         (avr_compare_pattern): Likewise.
9152         (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
9153         and locals "branch1", "branch2", "insn2", "jump".
9154         (avr_reorg): Likewise for local "insn".
9155         (avr_2word_insn_p): Likewise for param "insn".
9156         (jump_over_one_insn_p): Likewise.
9157         (avr_out_sbxx_branch): Likewise.
9158         (avr_out_movmem): Likewise.
9160 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9162         * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
9163         param from rtx to rtx_insn *.
9164         (thumb1_final_prescan_insn): Likewise.
9165         (thumb2_final_prescan_insn): Likewise.
9167         * config/arm/arm.c (emit_set_insn): Strengthen return type from
9168         rtx to rtx_insn *.
9169         (struct minipool_node): Likewise for field "insn".
9170         (dump_minipool): Likewise for param "scan".
9171         (create_fix_barrier): Likewise for local "from".  Strengthen local
9172         "label" from rtx to rtx_code_label *.
9173         (push_minipool_barrier): Strengthen param "insn" from rtx to
9174         rtx_insn *.
9175         (push_minipool_fix): Likewise.
9176         (note_invalid_constants): Likewise.
9177         (thumb2_reorg): Likewise for local "insn".
9178         (arm_reorg): Likewise.
9179         (thumb2_final_prescan_insn): Likewise for param
9180         "insn" and local "first_insn".
9181         (arm_final_prescan_insn): Likewise for param "insn" and locals
9182         "start_insn", "this_insn".
9183         (arm_debugger_arg_offset): Likewise for param "insn".
9184         (thumb1_emit_multi_reg_push): Likewise for return type and local
9185         "insn".
9186         (thumb1_final_prescan_insn): Likewise for param "insn".
9187         (thumb_far_jump_used_p): Likewise for local "insn".
9188         (thumb1_expand_prologue): Likewise.
9189         (arm_expand_epilogue_apcs_frame): Likewise.
9190         (arm_expand_epilogue): Likewise for locals "insn", "tmp".
9191         (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
9192         from rtx to rtx_code_label *.
9193         (arm_split_atomic_op): Likewise for local "label".
9194         (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
9196 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9198         * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
9199         first param from rtx to rtx_insn *.
9200         (arc_verify_short): Likewise.
9201         (arc_short_long): Likewise.
9202         (arc_need_delay): Likewise.
9204         * config/arc/arc.c (struct arc_ccfsm): Likewise for field
9205         "target_insn".
9206         (arc_ccfsm_advance): Likewise for param "insn" and locals
9207         "start_insn", "this_insn".
9208         (arc_ccfsm_record_condition): Likewise for local "seq_insn".
9209         (arc_ccfsm_post_advance): Likewise for param "insn".
9210         (arc_next_active_insn): Likewise for return type and param "insn".
9211         Convert NULL_RTX to NULL as appropriate.  Add a checked cast.
9212         (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
9213         (output_short_suffix): Likewise for local "insn".
9214         (arc_final_prescan_insn): Likewise for param "insn".  Remove
9215         now-redundant checked cast.
9216         (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
9217         "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
9218         rtx_insn *.  Add a checked cast.  Introduce local "lc_set_insn"
9219         for use where lc_set became an insn.
9220         (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
9221         rtx to rtx_insn *.
9222         (arc_get_insn_variants): Likewise for local "prev".
9223         (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
9224         "next".
9225         (arc_predicate_delay_insns): Likewise for local "insn".
9226         (arc_pad_return): Likewise for local "prev".  For now, add a
9227         checked cast when extracting the insn from "final_sequence".
9228         (arc_short_long): Likewise for param "insn".
9229         (arc_need_delay): Likewise for param "insn" and local "next".
9230         (arc_label_align): Likewise for locals "prev", "next".
9232 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9234         * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
9235         "insn" from rtx to rtx_insn *.
9236         (alpha_gp_save_rtx): Likewise for local "seq".
9237         (alpha_instantiate_decls): Likewise for local "top".
9238         (get_some_local_dynamic_name): Likewise for local "insn".
9239         (alpha_does_function_need_gp): Likewise.
9240         (set_frame_related_p): Likewise for return type and for locals
9241         "seq" and "insn".
9242         (emit_frame_store_1): Likewise for local "insn".
9243         (alpha_expand_prologue): Likewise for locals "insn", "seq".
9244         (alpha_end_function): Likewise for local "insn".
9245         (alpha_output_mi_thunk_osf): Likewise.
9246         (alphaev4_insn_pipe): Likewise for param "insn".
9247         (alphaev5_insn_pipe): Likewise.
9248         (alphaev4_next_group): Likewise for return type and param 1
9249         "insn".
9250         (alphaev5_next_group): Likewise.
9251         (alpha_align_insns_1): Likewise for return type and param 1 of
9252         callback param "next_group", and for locals "i", "next", "prev",
9253         "where", "where2", "insn".
9255 2014-08-25  Bernd Schmidt  <bernds@codesourcery.com>
9257         * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
9258         rather than modifying the stmt.
9260 2014-08-25  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
9262         * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
9263         cgraph_state conversion.
9265 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9267         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
9268         Strengthen local "insns" from rtx to rtx_insn *.
9269         (aarch64_set_frame_expr): Likewise for local "insn".
9270         (aarch64_save_or_restore_fprs): Likewise.
9271         (aarch64_save_or_restore_callee_save_registers): Likewise.
9272         (aarch64_expand_prologue): Likewise.
9273         (aarch64_expand_epilogue): Likewise.
9274         (aarch64_output_mi_thunk): Likewise.
9275         (aarch64_split_compare_and_swap): Strengthen locals "label1" and
9276         "label2" from rtx to rtx_code_label *.
9277         (aarch64_split_atomic_op): Likewise for local "label".
9279 2014-08-25  Martin Liska  <mliska@suse.cz>
9281         * cgraph.h (symtab_node):
9282         (bool needed_p (void)): created from decide_is_symbol_needed
9283         (bool referred_to_p (void)): created from referred_to_p
9284         (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
9285         * cgraph.h (cgraph_node):
9286         (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
9287         (void expand (void)): created from expand_function
9288         (static void finalize_function (tree, bool)): created from cgraph_finalize_function
9289         (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
9290         (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
9291         (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
9292         * cgraph.h (varpool_node):
9293         (static void add (tree decl): created from varpool_add_new_variable
9294         * cgraph.h (cgraph_edge):
9295         void remove (void);
9296         (void remove_caller (void)): created from cgraph_edge_remove_caller
9297         (void remove_callee (void)): created from cgraph_edge_remove_callee
9298         (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
9299           created from cgraph_set_call_stmt
9300         (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
9301         (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
9302         (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
9303           gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
9304         (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
9305           created from cgraph_speculative_call_info
9306         (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
9307           int freq_scale, bool update_original)): created from cgraph_clone_edge
9308         (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
9309         (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
9310         (bool recursive_p (void)): created from cgraph_edge_recursive_p
9311         (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
9312         (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
9313         (static void rebuild_references (void)): created from cgraph_rebuild_references
9314         * cgraph.h (symbol_table):
9315         (create_reference): renamed from add_reference
9316         (maybe_create_reference): renamed from maybe_add_reference
9317         (void register_symbol (symtab_node *node)): new function
9318         (void clear_asm_symbols (void)): new function
9319         (void unregister (symtab_node *node)): new function
9320         (void release_symbol (cgraph_node *node, int uid)): new function
9321         (cgraph_node * allocate_cgraph_symbol (void)): new function
9322         (void initialize (void)): created from cgraph_init
9323         (symtab_node *first_symbol (void)):new function
9324         (asm_node *first_asm_symbol (void)):new function
9325         (symtab_node *first_defined_symbol (void)):new function
9326         (varpool_node *first_variable (void)):new function
9327         (varpool_node *next_variable (varpool_node *node)):new function
9328         (varpool_node *first_static_initializer (void)):new function
9329         (varpool_node *next_static_initializer (varpool_node *node)):new function
9330         (varpool_node *first_defined_variable (void)):new function
9331         (varpool_node *next_defined_variable (varpool_node *node)):new function
9332         (cgraph_node *first_defined_function (void)):new function
9333         (cgraph_node *next_defined_function (cgraph_node *node)):new function
9334         (cgraph_node *first_function (void)):new function
9335         (cgraph_node *next_function (cgraph_node *node)):new function
9336         (cgraph_node *first_function_with_gimple_body (void)):new function
9337         (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
9338         (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
9339           created from symtab_remove_unreachable_nodes
9340         (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
9341         (void process_new_functions (void)): created from cgraph_process_new_functions
9342         (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
9343         (bool output_variables (void)): created from varpool_node::output_variables
9344         (void output_asm_statements (void)): created from output_asm_statements
9345         (void finalize_compilation_unit (void)): created from finalize_compilation_unit
9346         (void compile (void)): created from compile
9347         (void output_weakrefs (void)): created from output_weakrefs
9348         (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
9349         (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
9350           gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
9351         (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
9352         (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
9353           created from cgraph_next_function_with_gimple_body
9354         (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
9355           created from cgraph_remove_edge_removal_hook
9356         (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
9357           created from cgraph_add_node_removal_hook
9358         (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
9359           created from cgraph_remove_node_removal_hook
9360         (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
9361           created from varpool_add_node_removal_hook
9362         (void remove_varpool_removal_hook (varpool_node_hook_list *)):
9363           created from varpool_remove_node_removal_hook
9364         (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
9365           created from cgraph_add_function_insertion_hook
9366         (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
9367           created from cgraph_remove_function_insertion_hook
9368         (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
9369           created from varpool_add_variable_insertion_hook
9370         (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
9371           created from varpool_remove_variable_insertion_hook
9372         (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
9373           created from cgraph_add_edge_duplication_hook
9374         (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
9375           created from cgraph_remove_edge_duplication_hook
9376         (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
9377           created from cgraph_add_node_duplication_hook
9378         (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
9379           created from cgraph_remove_node_duplication_hook
9380         (void call_edge_removal_hooks (cgraph_edge *e)):
9381           created from cgraph_call_edge_removal_hooks
9382         (void call_cgraph_insertion_hooks (cgraph_node *node)):
9383           created from call_function_insertion_hooks
9384         (void call_cgraph_removal_hooks (cgraph_node *node)):
9385           created from cgraph_call_node_removal_hooks
9386         (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
9387           created from cgraph_node::call_duplication_hooks
9388         (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
9389           created from cgraph_call_edge_duplication_hooks
9390         (void call_varpool_removal_hooks (varpool_node *node)):
9391           created from varpool_call_node_removal_hooks
9392         (void call_varpool_insertion_hooks (varpool_node *node)):
9393           created from varpool_call_variable_insertion_hooks
9394         (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
9395           created from insert_to_assembler_name_hash
9396         (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
9397           created from unlink_from_assembler_name_hash
9398         (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
9399           created from symtab_prevail_in_asm_name_hash
9400         (void symtab_initialize_asm_name_hash (void)):
9401           created from symtab_initialize_asm_name_hash
9402         (void change_decl_assembler_name (tree decl, tree name)):
9403           created from change_decl_assembler_name
9404         (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
9405         (static hashval_t decl_assembler_name_hash (const_tree asmname)):
9406           created from decl_assembler_name_hash
9407         (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
9408           created from decl_assembler_name_equal
9409         (static hashval_t hash_node_by_assembler_name (const void *p)):
9410           created from hash_node_by_assembler_name
9411         (static int eq_assembler_name (const void *p1, const void *p2)):
9412           created from eq_assembler_name
9414 2014-08-25  Marek Polacek  <polacek@redhat.com>
9416         * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
9418 2014-08-25  Petr Murzin  <petr.murzin@intel.com>
9420         * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
9421         (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
9422         SWI1248_AVX512BW mode iterator.
9424 2014-08-25  Kaz Kojima  <kkojima@gcc.gnu.org>
9426         PR target/62111
9427         * config/sh/predicates.md (general_extend_operand): Disable
9428         TRUNCATE before reload completes.
9430 2014-08-24  Gerald Pfeifer  <gerald@pfeifer.com>
9432         * doc/invoke.texi (Optimize Options): Fix markup in two cases.
9434 2014-08-24  Oleg Endo  <olegendo@gcc.gnu.org>
9436         PR target/61996
9437         * config/sh/sh.opt (musermode): Allow negative form.
9438         * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
9439         targets that don't support it.
9440         * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
9441         Document -mno-usermode option.
9443 2014-08-24  Kito Cheng  <kito@0xlab.org>
9445         * system.h (CALLER_SAVE_PROFITABLE): Poison.
9446         * regs.h (CALLER_SAVE_PROFITABLE): Remove.
9447         * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
9448         * doc/tm.texi: Regenerate.
9450 2014-08-24  Kito Cheng  <kito@0xlab.org>
9452         * ira.c: Fix typo in comment.
9454 2014-08-23  Edward Smith-Rowland  <3dw4rd@verizon.net>
9456         * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
9457         Deprecate c++1y. Change language to reflect greater confidence in C++14.
9459 2014-08-23  John David Anglin  <danglin@gcc.gnu.org>
9461         PR target/62038
9462         * config/pa/pa.c (pa_output_function_epilogue): Don't set
9463         last_address when the current function is a thunk.
9464         (pa_asm_output_mi_thunk): When we don't have named sections or they
9465         are not being used, check that thunk can reach the stub table with a
9466         short branch.
9468 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
9470         * web.c (union_match_dups): Strengthen param "insn" from rtx to
9471         rtx_insn *.
9472         (pass_web::execute): Likewise for local "insn".
9474 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
9476         * var-tracking.c (struct micro_operation_def): Strengthen field
9477         "insn" from rtx to rtx_insn *.
9478         (struct emit_note_data_def): Likewise.
9479         (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
9480         (vt_stack_adjustments): Likewise for local "insn".
9481         (adjust_insn): Likewise for param "insn".
9482         (val_store): Likewise.
9483         (val_resolve): Likewise.
9484         (struct count_use_info): Likewise for field "insn".
9485         (log_op_type): Likewise for param "insn".
9486         (reverse_op): Likewise.
9487         (prepare_call_arguments): Likewise.
9488         (add_with_sets):  The initial param takes an insn, but we can't
9489         yet strengthen it from rtx to rtx_insn * since it's used as a
9490         cselib_record_sets_hook callback.  For now rename initial param
9491         from "insn" to "uncast_insn", and introduce a local "insn" of
9492         the stronger rtx_insn * type, with a checked cast.
9493         (compute_bb_dataflow): Strengthen local "insn" from rtx to
9494         rtx_insn *.
9495         (emit_note_insn_var_location): Likewise.
9496         (emit_notes_for_changes): Likewise.
9497         (emit_notes_for_differences): Likewise.
9498         (next_non_note_insn_var_location): Likewise for return type and
9499         for param "insn".
9500         (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
9501         (vt_initialize): Likewise for local "insn".
9502         (delete_debug_insns): Likewise for locals "insn" and "next".
9504 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
9506         * varasm.c (mark_constants): Strengthen param "insn" from rtx to
9507         rtx_insn *.
9508         (mark_constant_pool): Likewise for local "insn".
9510 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
9512         * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
9513         rtx to rtx_insn *.
9514         (dead_debug_promote_uses): Likewise.
9515         (dead_debug_insert_temp): Likewise.
9517 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
9519         * store-motion.c (store_killed_in_insn): Strengthen param "insn"
9520         from const_rtx to const rtx_insn *.
9521         (store_killed_after): Likewise.  Strengthen locals "last", "act"
9522         from rtx to rtx_insn *.
9523         (store_killed_before): Strengthen param "insn" from const_rtx to
9524         const rtx_insn *.  Strengthen local "first" from rtx to rtx_insn *.
9525         (find_moveable_store): Strengthen param "insn" from rtx to
9526         rtx_insn *.
9527         (compute_store_table): Likewise for local "insn".
9528         (insert_insn_start_basic_block): Likewise for param "insn" and
9529         locals "prev", "before", "insn".
9530         (insert_store): For now, add a checked cast to rtx_insn * on the
9531         result of gen_move_insn.
9532         (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
9533         to rtx_insn *.
9534         (replace_store_insn): Likewise.  For now, add a checked cast to
9535         rtx_insn * on the result of gen_move_insn.
9537 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9539         * stmt.c (expand_case): Strengthen local "before_case" from rtx to
9540         rtx_insn *.
9541         (expand_sjlj_dispatch_table): Likewise.
9543 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9545         * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
9546         "insn" from rtx to rtx_insn *.
9548 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9550         * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
9551         "insn" from rtx to rtx_insn *.
9552         (dup_block_and_redirect): Likewise for param 3 "before".
9554         * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
9555         from rtx to rtx_insn *.
9556         (move_insn_for_shrink_wrap): Likewise.
9557         (prepare_shrink_wrap): Likewise for locals "insn", "curr".
9558         (dup_block_and_redirect): Likewise for param "before" and local
9559         "insn".
9560         (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
9561         "end".
9562         (convert_to_simple_return): Likewise for local "start".
9564         * config/i386/i386.c (ix86_finalize_stack_realign_flags):
9565         Strengthen local "insn" from rtx to rtx_insn *, for use when
9566         invoking requires_stack_frame_p.
9568 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9570         * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
9571         rtx_insn *.
9572         (speculate_expr): Likewise for locals "orig_insn_rtx",
9573         "spec_insn_rtx".
9574         (eq_transformed_insns): Likewise for locals "i1", "i2".
9575         (check_for_new_jump): Likewise for return type and local "end".
9576         (find_new_jump): Likewise for return type and local "jump".
9577         (sel_split_edge): Likewise for local "jump".
9578         (sel_create_recovery_block): Likewise.
9579         (sel_redirect_edge_and_branch_force): Likewise.
9580         (sel_redirect_edge_and_branch): Likewise.
9582 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9584         * sel-sched.c (substitute_reg_in_expr): Strengthen local
9585         "new_insn" from rtx to rtx_insn *.
9586         (create_insn_rtx_with_rhs): Likewise for return type and for local
9587         "insn_rtx".
9588         (create_insn_rtx_with_lhs): Likewise.
9589         (create_speculation_check): Likewise for local "insn_rtx".
9590         (implicit_clobber_conflict_p): Likewise for local "insn".
9591         (get_expr_cost): Likewise.
9592         (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
9593         (move_cond_jump): Likewise for locals "next", "prev", "link",
9594         "head", "from", "to".
9596 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9598         * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
9599         "next" from rtx to rtx_insn *.
9600         (find_conditional_protection): Likewise for local "next".
9601         (is_conditionally_protected): Likewise for local "insn1".
9602         (is_pfree): Likewise for locals "insn1", "insn2".
9604 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9606         * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
9607         from rtx to rtx_insn *.
9609         * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
9610         locals "insn1", "insn2" from rtx to rtx_insn *.
9611         (add_deps_for_risky_insns): Likewise for params "head", "tail" and
9612         locals "insn", "prev", "last_jump", "next_tail".
9613         (schedule_ebb): Likewise for params "head", "tail".
9614         (schedule_ebbs): Likewise for locals "tail", "head".
9616         * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
9617         to rtx_insn on "last_insn" in one of the invocations of
9618         schedule_ebb.
9620 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9622         * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
9623         "elem", "insn" from rtx to rtx_insn *.
9624         (change_spec_dep_to_hard): Likewise.
9625         (get_back_and_forw_lists): Likewise for local "con".
9626         (sd_add_dep): Likewise for locals "elem", "insn".
9627         (sd_resolve_dep): Likewise for locals "pro", "con".
9628         (sd_unresolve_dep): Likewise.
9629         (sd_delete_dep): Likewise.
9630         (chain_to_prev_insn): Likewise for local "pro".
9631         (find_inc): Likewise for locals "pro", "con".
9633 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9635         * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
9636         to rtx_insn *.
9637         (reg_set_between_p): Strengthen local "insn" from const_rtx to
9638         const rtx_insn *.
9639         (modified_between_p): Strengthen local "insn" from rtx to
9640         rtx_insn *.
9641         (remove_reg_equal_equiv_notes_for_regno): Likewise.
9642         (keep_with_call_p): Strengthen local "i2" from const_rtx to
9643         const rtx_insn *.
9645 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9647         * resource.c (next_insn_no_annul): Strengthen local "next" from
9648         rtx to rtx_insn *.
9649         (mark_referenced_resources): Likewise for local "insn".
9651 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9653         * reload.h (struct insn_chain): Strengthen field "insn" from rtx
9654         to rtx_insn *.
9655         (find_reloads): Likewise for param 1.
9656         (subst_reloads): Likewise for sole param.
9657         (find_equiv_reg): Likwise for param 2.
9658         (regno_clobbered_p): Likwise for param 2.
9659         (reload): Likewise for param 1.
9661         * caller-save.c (save_call_clobbered_regs): Strengthen local
9662         "insn" from rtx to rtx_insn *.
9663         (insert_one_insn): Likewise for local "insn".
9665         * reload.c (this_insn): Likewise for this global.
9666         (find_reloads): Likewise for param "insn".
9667         (find_reloads_toplev): Likewise.
9668         (find_reloads_address): Likewise.
9669         (subst_reg_equivs): Likewise.
9670         (update_auto_inc_notes): Likewise.
9671         (find_reloads_address_1): Likewise.
9672         (find_reloads_subreg_address): Likewise.
9673         (subst_reloads): Likewise.
9674         (find_equiv_reg): Likewise, also for local "p".
9675         (regno_clobbered_p): Likewise for param "insn".
9677         * reload1.c (reg_reloaded_insn): Likewise for the elements of this
9678         array.
9679         (spill_reg_store): Likewise for the elements of this array.
9680         (remove_init_insns): Likewise for local "equiv_insn".
9681         (will_delete_init_insn_p): Likewise for param "insn".
9682         (reload): Likewise for param ""first" and local "insn".
9683         (calculate_needs_all_insns): Strengthen local "insn" from rtx to
9684         rtx_insn *.
9685         (calculate_elim_costs_all_insns): Likewise.
9686         (delete_caller_save_insns): Likewise.
9687         (spill_failure): Likewise for param "insn".
9688         (delete_dead_insn): Likewise.
9689         (set_label_offsets): Likewise.
9690         (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
9691         "prev_insn".
9692         (elimination_costs_in_insn): Likewise for param "insn".
9693         (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
9694         when referring to an insn.
9695         (set_initial_label_offsets): Likewise.
9696         (set_offsets_for_label): Strengthen param "insn" from rtx to
9697         rtx_insn *.
9698         (init_eliminable_invariants): Likewise for param "first" and local
9699         "insn".
9700         (fixup_eh_region_note): Likewise for param "insn".
9701         (reload_as_needed): Likewise for locals "prev", "insn",
9702         "old_next", "old_prev", "next".
9703         (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
9704         "last".
9705         (reload_inheritance_insn): Strengthen elements of this array from
9706         rtx to rtx_insn *.
9707         (failed_reload): Likewise for param "insn".
9708         (choose_reload_regs): Likewise for local "insn".  Replace use of
9709         NULL_RTX with NULL when referring to an insn.
9710         (input_reload_insns): Strengthen elements of this array from rtx
9711         to rtx_insn *.
9712         (other_input_address_reload_insns): Likewise for this global.
9713         (other_input_reload_insns): Likewise for this global.
9714         (input_address_reload_insns): Likwise for the elements of this
9715         array.
9716         (inpaddr_address_reload_insns): Likwise for the elements of this
9717         array.
9718         (output_reload_insns): Likewise for the elements of this array.
9719         (output_address_reload_insns): Likewise for the elements of this
9720         array.
9721         (outaddr_address_reload_insns): Likewise for the elements of this
9722         array.
9723         (operand_reload_insns): Likewise for this global.
9724         (other_operand_reload_insns): Likewise for this global.
9725         (other_output_reload_insns): Likewise for the elements of this
9726         array.
9727         (new_spill_reg_store): Likewise for the elements of this
9728         array.
9729         (emit_input_reload_insns): Likewise for locals "insn", "temp".
9730         Strengthen local "where" from rtx * to rtx_insn **.
9731         (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
9732         from rtx to rtx_insn *.
9733         (do_input_reload): Likewise for local "insn".
9734         (do_output_reload): Likewise for local "insn".
9735         (emit_reload_insns): Likewise for locals "insn" and "store_insn".
9736         (emit_insn_if_valid_for_reload): Likewise for return type and local
9737         "last".  Add checked cast to rtx_insn when returning "insn" since
9738         this has been through emit_insn.
9739         (gen_reload): Strengthen return type and locals "last", "insn", "set"
9740         from rtx to rtx_insn *.  Add checked cast to rtx_insn when
9741         returning "insn" since it's been through
9742         emit_insn_if_valid_for_reload at this point.
9743         (delete_output_reload): Strengthen param "insn" and locals
9744         "output_reload_insn", "i2" from rtx to rtx_insn *.
9745         (delete_address_reloads): Likewise for params "dead_insn",
9746         "current_insn" and locals "prev", "next".
9747         (delete_address_reloads_1): Likewise for params "dead_insn",
9748         "current_insn" and locals "prev", "i2".
9749         (inc_for_reload): Likewise for locals "last", "add_insn".
9750         (add_auto_inc_notes): Strengthen param "insn" from rtx to
9751         rtx_insn *.
9753         * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
9754         param of this duplicate of the prototype from reload.h
9756 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9758         * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
9759         rtx to rtx_insn *.
9760         (regstat_bb_compute_calls_crossed): Likewise.
9762 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9764         * regrename.c (create_new_chain): Strengthen param "insn" from rtx
9765         to rtx_insn *.
9766         (init_rename_info): Replace use of NULL_RTX with NULL when dealing
9767         with an insn.
9768         (regrename_analyze): Strengthen local "insn" from rtx to
9769         rtx_insn *.
9770         (scan_rtx_reg): Likewise for param "insn".
9771         (scan_rtx_address): Likewise.
9772         (scan_rtx): Likewise.
9773         (restore_operands): Likewise.
9774         (record_out_operands): Likewise.
9775         (build_def_use): Likewise for local "insn".  Replace use of
9776         NULL_RTX with NULL when dealing with an insn.
9778 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9780         * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
9781         * reginfo.c (reg_scan): Likewise, also for local "insn".
9782         (reg_scan_mark_refs): Likewise for param "insn".
9783         (init_subregs_of_mode): Likewise for local "insn".
9785 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9787         * regcprop.c (struct queued_debug_insn_change): Strengthen field
9788         "insn" from rtx to rtx_insn *.
9789         (replace_oldest_value_reg): Likewise for param "insn".
9790         (replace_oldest_value_addr): Likewise.
9791         (replace_oldest_value_mem): Likewise.
9792         (apply_debug_insn_changes): Likewise for local "last_insn".
9793         (copyprop_hardreg_forward_1): Likewise for local "insn".
9795 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9797         * reg-stack.c (next_flags_user): Strengthen return type and param
9798         "insn" from rtx to rtx_insn *.
9799         (straighten_stack): Likewise for param "insn".
9800         (check_asm_stack_operands): Likewise.
9801         (remove_regno_note): Likewise.
9802         (emit_pop_insn): Likewise for return type, param "insn", local
9803         "pop_insn".
9804         (emit_swap_insn):  Strengthen param "insn" and locals "i1", "tmp",
9805         "limit" from rtx to rtx_insn *.
9806         (swap_to_top): Likewise for param "insn".
9807         (move_for_stack_reg): Likewise.
9808         (move_nan_for_stack_reg): Likewise.
9809         (swap_rtx_condition): Likewise.
9810         (compare_for_stack_reg): Likewise.
9811         (subst_all_stack_regs_in_debug_insn): Likewise.
9812         (subst_stack_regs_pat): Likewise, and local "insn2".
9813         (subst_asm_stack_regs): Strengthen param "insn" from rtx to
9814         rtx_insn *.
9815         (subst_stack_regs): Likewise.
9816         (change_stack): Likewise.
9817         (convert_regs_1): Likewise for locals "insn", "next".
9819 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9821         * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
9822         rtx_insn *.
9823         (combine_set_extension): Likewise for param "curr_insn".
9824         (transform_ifelse): Likewise for param "def_insn".
9825         (get_defs): Likewise for param "def_insn".  Strengthen param "dest"
9826         from vec<rtx> * to vec<rtx_insn *> *.
9827         (is_cond_copy_insn): Likewise for param "insn".
9828         (struct ext_state): Strengthen the four vec fields from vec<rtx>
9829         to vec<rtx_insn *>.
9830         (make_defs_and_copies_lists): Strengthen param "extend_insn" and
9831         local "def_insn" from rtx to rtx_insn *.
9832         (get_sub_rtx): Likewise for param "def_insn".
9833         (merge_def_and_ext): Likewise.
9834         (combine_reaching_defs): Likewise.
9835         (add_removable_extension): Likewise for param "insn".
9836         (find_removable_extensions): Likewise for local "insn".
9837         (find_and_remove_re): Likewise for locals "curr_insn" and
9838         "def_insn".  Strengthen locals "reinsn_del_list" and
9839         "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
9841 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9843         * recog.c (split_insn): Strengthen param "insn" and locals
9844         "first", "last" from rtx to rtx_insn *.
9845         (split_all_insns): Likewise for locals "insn", "next".
9846         (split_all_insns_noflow): Likewise.
9848 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9850         * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
9851         const rtx_insn *.
9852         (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
9853         (debug_rtx_find): Likewise for param 1 "x".
9855         * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
9856         const_rtx to const rtx_insn *.  Likewise for local "insn".
9857         (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
9858         (debug_rtx_find): Likewise for param 1 "x".
9859         (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
9860         from const_rtx to const rtx_insn * within the appropriate cases of
9861         the switch statement.
9863         * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
9864         Strengthen local "insns" from rtx to rtx_insn * since this is
9865         passed to a call to debug_rtx_list.
9867 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9869         * predict.h (predict_insn_def): Strengthen param "insn" from rtx
9870         to rtx_insn *.
9872         * function.c (stack_protect_epilogue): Add checked cast to
9873         rtx_insn for now when invoking predict_insn_def.
9875         * predict.c (predict_insn): Strengthen param "insn" from rtx to
9876         rtx_insn *.
9877         (predict_insn_def): Likewise.
9878         (rtl_predict_edge): Likewise for local "last_insn".
9879         (can_predict_insn_p): Strengthen param "insn" from const_rtx to
9880         const rtx_insn *.
9881         (combine_predictions_for_insn): Strengthen param "insn" from rtx
9882         to rtx_insn *.
9883         (bb_estimate_probability_locally): Likewise for local "last_insn".
9884         (expensive_function_p): Likewise for local "insn".
9886         * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
9887         local "jmp", since this is used when invoking predict_insn_def.
9889 2014-08-22  Marek Polacek  <polacek@redhat.com>
9891         PR c++/62199
9892         * doc/invoke.texi: Update -Wlogical-not-parentheses description.
9894 2014-08-22  Marek Polacek  <polacek@redhat.com>
9896         PR c/61271
9897         * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
9898         a comparison in parens.
9899         * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
9900         in parens.
9902 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9904         * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
9905         rtx_insn *.
9907         * cprop.c (fis_get_condition): Likewise.
9909         * postreload.c (reload_cse_regs): Likewise for param "first".
9910         (reload_cse_simplify): Likewise for param "insn".
9911         (reload_cse_regs_1): Likewise for local "insn".
9912         (reload_cse_simplify_set): Likewise for param "insn".
9913         (reload_cse_simplify_operands): Likewise.
9914         (struct reg_use): Likewise for field "insn".
9915         (reload_combine_purge_insn_uses): Likewise for param "insn".
9916         (fixup_debug_insns): Likewise for params "from", "to" and local
9917         "insn".
9918         (try_replace_in_use): Likewise for local "use_insn".
9919         (reload_combine_recognize_const_pattern): Likewise for param
9920         "insn" and locals "add_moved_after_insn", "use_insn".
9921         (reload_combine_recognize_pattern): Likewise for param "insn" and
9922         local "prev".
9923         (reload_combine): Likewise for locals "insn", "prev".
9924         (reload_combine_note_use): Likewise for param "insn".
9925         (move2add_use_add2_insn): Likewise.
9926         (move2add_use_add3_insn): Likewise.
9927         (reload_cse_move2add): Likewise, also for local "next".
9928         (move2add_note_store): Likewise for local "insn".
9930 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9932         * postreload-gcse.c (struct occr): Strengthen field "insn" from
9933         rtx to rtx_insn *.
9934         (struct unoccr): Likewise.
9935         (struct modifies_mem): Likewise.
9936         (alloc_mem): Likewise for local "insn".
9937         (insert_expr_in_table): Likewise for param "insn".
9938         (dump_expr_hash_table_entry): Likewise for local "insn".
9939         (oprs_unchanged_p): Likewise for param "insn".
9940         (load_killed_in_block_p): Likewise for local "setter".
9941         (record_last_reg_set_info): Likewise for param "insn".
9942         (record_last_reg_set_info_regno): Likewise.
9943         (record_last_mem_set_info): Likewise.
9944         (record_last_set_info): Likewise for local "last_set_insn".
9945         (record_opr_changes): Likewise for param "insn".
9946         (hash_scan_set): Likewise.
9947         (compute_hash_table): Likewise for local "insn".
9948         (get_avail_load_store_reg): Likewise for param "insn".
9949         (eliminate_partially_redundant_load): Likewise, also for locals
9950         "avail_insn", "next_pred_bb_end".  Replace use of NULL_RTX with
9951         RTX for insns.
9952         (eliminate_partially_redundant_loads): Likewise for local "insn".
9954 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9956         * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
9957         rtx to rtx_insn *.
9958         (expand_binop): Likewise for locals "entry_last", "last", "insns"
9959         (expand_twoval_unop): Likewise for locals entry_last", "last".
9960         (expand_twoval_binop): Likewise.
9961         (expand_twoval_binop_libfunc): Likewise for local "insns".
9962         (widen_leading): Likewise for local "last".
9963         (expand_doubleword_clz): Likewise for local "seq".  Strengthen
9964         locals "hi0_label", "after_label" from rtx to rtx_code_label *.
9965         (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
9966         (expand_parity): Likewise for locals "last" and "seq".
9967         (expand_ffs): Likewise for local "seq".  Strengthen local
9968         "nonzero_label" from rtx to rtx_code_label *.
9969         (expand_absneg_bit): Strengthen local "insns" from rtx to
9970         rtx_insn *.
9971         (expand_unop_direct): Likewise for local "last".
9972         (expand_unop): Likewise for locals "last", "insns".
9973         (expand_abs_nojump): Likewise for local "last".
9974         (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
9975         (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
9976         rtx_insn *.
9977         (expand_copysign_absneg): Strengthen local "label" from rtx to
9978         rtx_code_label *.
9979         (expand_copysign_bit): Strengthen local "insns" from rtx to
9980         rtx_insn *.
9981         (struct no_conflict_data): Likewise for fields "first", "insn".
9982         (emit_libcall_block_1): Likewise for param "insns" and locals
9983         "next", "last", "insn".
9984         (emit_libcall_block): For now, add a checked cast to rtx_insn *
9985         on "insns" when invoking emit_libcall_block_1.  Ultimately we
9986         want to strengthen insns itself.
9987         (prepare_cmp_insn): Strengthen local "last" from rtx to
9988         rtx_insn *.
9989         (emit_cmp_and_jump_insn_1): Likewise for local "insn".
9990         (prepare_float_lib_cmp): Likewise for local "insns".
9991         (emit_conditional_move): Likewise for local "last".
9992         (emit_conditional_add): Likewise.
9993         (have_sub2_insn): Likewise for local "seq".
9994         (expand_float): Likewise for local "insns".  Strengthen locals
9995         "label", "neglabel" from rtx to rtx_code_label *.
9996         (expand_fix): Likewise for locals "last", "insn", "insns" (to
9997         rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
9998         (expand_fixed_convert): Likewise for local "insns" (to
9999         rtx_insn *).
10000         (expand_sfix_optab): Likewise for local "last".
10001         (expand_compare_and_swap_loop): Strengthen local "label" from rtx
10002         to rtx_code_label *.
10003         (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
10004         from rtx to rtx_insn *.
10005         (expand_atomic_fetch_op): Likewise for local "insn".
10006         (maybe_legitimize_operand_same_code): Likewise for local "last".
10007         (maybe_legitimize_operands): Likewise.
10009 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10011         * modulo-sched.c (struct ps_reg_move_info): Strengthen field
10012         "insn" from rtx to rtx_insn *.
10013         (ps_rtl_insn): Likewise for return type.
10014         (doloop_register_get): Likewise for params "head", "tail" and
10015         locals "insn", "first_insn_not_to_check".
10016         (schedule_reg_move): Likewise for local "this_insn".
10017         (schedule_reg_moves): Add a checked cast to rtx_insn * to result
10018         of gen_move_insn for now.
10019         (reset_sched_times): Strengthen local "insn" from rtx to
10020         rtx_insn *.
10021         (permute_partial_schedule): Likewise.
10022         (duplicate_insns_of_cycles): Likewise for local "u_insn".
10023         (dump_insn_location): Likewise for param "insn".
10024         (loop_canon_p): Likewise for local "insn".
10025         (sms_schedule): Likewise.
10026         (print_partial_schedule): Likewise.
10027         (ps_has_conflicts): Likewise.
10029 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10031         * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
10032         "tailp" from rtx * to rtx_insn **.
10034         * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
10035         from rtx to rtx_insn *.
10036         * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
10037         "tailp" from rtx * to rtx_insn **.  Strengthen locals "beg_head",
10038         "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
10039         rtx to rtx_insn *.
10040         * modulo-sched.c (const_iteration_count): Strengthen return type
10041         and locals "insn", "head", "tail" from rtx to rtx_insn *.  Replace
10042         use of NULL_RTX with NULL when working with insns.
10043         (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
10044         to rtx_insn *.
10045         (sms_schedule): Likewise.
10046         * sched-rgn.c (init_ready_list): Likewise, also for locals
10047         "src_head" and "src_next_tail".
10048         (compute_block_dependences): Likewise.
10049         (free_block_dependencies): Likewise.
10050         (debug_rgn_dependencies): Likewise.
10051         (free_rgn_deps): Likewise.
10052         (compute_priorities): Likewise.
10053         (schedule_region): Likewise.
10054         * sel-sched.c (find_ebb_boundaries): Likewise.
10056         * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
10057         "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
10059 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10061         * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
10062         from rtx to rtx_insn *.
10063         (new_seginfo): Likewise for param "insn".
10064         (create_pre_exit): Likewise for locals "last_insn",
10065         "before_return_copy", "return_copy".
10066         (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
10067         "mode_set".
10069 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10071         * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
10072         from rtx to rtx_insn *.
10073         (lra_push_insn): Likewise for 1st param.
10074         (lra_push_insn_and_update_insn_regno_info): Likewise.
10075         (lra_pop_insn): Likewise for return type.
10076         (lra_invalidate_insn_data): Likewise for 1st param.
10077         (lra_set_insn_deleted): Likewise.
10078         (lra_delete_dead_insn): Likewise.
10079         (lra_process_new_insns): Likewise for first 3 params.
10080         (lra_set_insn_recog_data): Likewise for 1st param.
10081         (lra_update_insn_recog_data): Likewise.
10082         (lra_set_used_insn_alternative): Likewise.
10083         (lra_invalidate_insn_regno_info): Likewise.
10084         (lra_update_insn_regno_info): Likewise.
10085         (lra_former_scratch_operand_p): Likewise.
10086         (lra_eliminate_regs_1): Likewise.
10087         (lra_get_insn_recog_data): Likewise.
10089         * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
10090         rtx to rtx_insn *.
10092         * lra-coalesce.c (move_freq_compare_func): Likewise for locals
10093         "mv1" and "mv2".
10094         (substitute_within_insn): New.
10095         (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
10096         rtx_insn *.  Strengthen sorted_moves from rtx * to rxt_insn **.
10097         Replace call to "substitute" with call to substitute_within_insn.
10099         * lra-constraints.c (curr_insn): Strengthen from rtx to
10100         rtx_insn *.
10101         (get_equiv_with_elimination): Likewise for param "insn".
10102         (match_reload): Strengthen params "before" and "after" from rtx *
10103         to rtx_insn **.
10104         (emit_spill_move): Likewise for return type.  Add a checked cast
10105         to rtx_insn * on result of gen_move_insn for now.
10106         (check_and_process_move): Likewise for local "before".  Replace
10107         NULL_RTX with NULL when referring to insns.
10108         (process_addr_reg): Strengthen params "before" and "after" from
10109         rtx * to rtx_insn **.
10110         (insert_move_for_subreg): Likewise.
10111         (simplify_operand_subreg): Strengthen locals "before" and "after"
10112         from rtx to rtx_insn *.
10113         (process_address_1): Strengthen params "before" and "after" from
10114         rtx * to rtx_insn **.  Strengthen locals "insns", "last_insn" from
10115         rtx to rtx_insn *.
10116         (process_address): Strengthen params "before" and "after" from
10117         rtx * to rtx_insn **.
10118         (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
10119         (curr_insn_transform): Strengthen locals "before" and "after"
10120         from rtx to rtx_insn *.  Replace NULL_RTX with NULL when referring
10121         to insns.
10122         (loc_equivalence_callback): Update cast of "data", changing
10123         resulting type from rtx to rtx_insn *.
10124         (substitute_pseudo_within_insn): New.
10125         (inherit_reload_reg): Strengthen param "insn" from rtx to
10126         rtx_insn *; likewise for local "new_insns".  Replace NULL_RTX with
10127         NULL when referring to insns.  Add a checked cast to rtx_insn *
10128         when using usage_insn to invoke lra_update_insn_regno_info.
10129         (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
10130         likewise for locals "restore", "save".  Add checked casts to
10131         rtx_insn * when using usage_insn to invoke
10132         lra_update_insn_regno_info and lra_process_new_insns.  Replace
10133         NULL_RTX with NULL when referring to insns.
10134         (split_if_necessary): Strengthen param "insn" from rtx to
10135         rtx_insn *.
10136         (update_ebb_live_info): Likewise for params "head", "tail" and local
10137         "prev_insn".
10138         (get_last_insertion_point): Likewise for return type and local "insn".
10139         (get_live_on_other_edges): Likewise for local "last".
10140         (inherit_in_ebb): Likewise for params "head", "tail" and locals
10141         "prev_insn", "next_insn", "restore".
10142         (remove_inheritance_pseudos): Likewise for local "prev_insn".
10143         (undo_optional_reloads): Likewise for local "insn".
10145         * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
10146         "insn".
10147         (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
10148         insns.
10149         (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
10150         rtx_insn *.
10151         (spill_pseudos): Likewise for local "insn".
10152         (init_elimination): Likewise.
10153         (process_insn_for_elimination): Likewise for param "insn".
10155         * lra-lives.c (curr_insn): Likewise.;
10157         * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
10158         (remove_pseudos): Likewise for param "insn".
10159         (spill_pseudos): Likewise for local "insn".
10160         (lra_final_code_change): Likewise for locals "insn", "curr".
10162         * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
10163         (lra_set_insn_deleted): Likewise.
10164         (lra_delete_dead_insn): Likewise, and for local "prev".
10165         (new_insn_reg): Likewise for param "insn".
10166         (lra_set_insn_recog_data): Likewise.
10167         (lra_update_insn_recog_data): Likewise.
10168         (lra_set_used_insn_alternative): Likewise.
10169         (get_insn_freq): Likewise.
10170         (invalidate_insn_data_regno_info): Likewise.
10171         (lra_invalidate_insn_regno_info): Likewise.
10172         (lra_update_insn_regno_info): Likewise.
10173         (lra_constraint_insn_stack): Strengthen from vec<rtx> to
10174         vec<rtx_insn *>.
10175         (lra_push_insn_1): Strengthen param "insn" from rtx to
10176         rtx_insn *.
10177         (lra_push_insn): Likewise.
10178         (lra_push_insn_and_update_insn_regno_info): Likewise.
10179         (lra_pop_insn): Likewise for return type and local "insn".
10180         (push_insns): Likewise for params "from", "to", and local "insn".
10181         (setup_sp_offset): Likewise for params "from", "last" and locals
10182         "before", "insn".
10183         (lra_process_new_insns): Likewise for params "insn", "before",
10184         "after" and local "last".
10185         (struct sloc): Likewise for field "insn".
10186         (lra_former_scratch_operand_p): Likewise for param "insn".
10187         (remove_scratches): Likewise for locals "insn", "last".
10188         (check_rtl): Likewise for local "insn".
10189         (add_auto_inc_notes): Likewise for param "insn".
10190         (update_inc_notes): Likewise for local "insn".
10191         (lra): Replace NULL_RTX with NULL when referring to insn.
10193 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10195         * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
10196         to rtx_insn *.
10197         (resolve_reg_notes): Likewise.
10198         (resolve_simple_move): Likewise for return type, param "insn", and
10199         locals "insns", "minsn".
10200         (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
10201         (resolve_use): Likewise.
10202         (resolve_debug): Likewise.
10203         (find_decomposable_shift_zext): Likewise.
10204         (resolve_shift_zext): Likewise for return type, param "insn", and
10205         locals "insns", "in".  Eliminate use of NULL_RTX in favor of NULL.
10206         (decompose_multiword_subregs): Likewise for local "insn",
10207         "orig_insn", "decomposed_shift", "end".
10209 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10211         * basic-block.h (basic_block split_edge_and_insert): Strengthen
10212         param "insns" from rtx to rtx_insn *.
10214         * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
10215         rtx to rtx_insn *.
10216         (struct iv_to_split): Likewise.
10217         (loop_exit_at_end_p): Likewise for local "insn".
10218         (split_edge_and_insert): Likewise for param "insns".
10219         (compare_and_jump_seq): Likewise for return type, param "cinsn",
10220         and locals "seq", "jump".
10221         (unroll_loop_runtime_iterations): Likewise for locals "init_code",
10222         "branch_code"; update invocations of compare_and_jump_seq to
10223         eliminate NULL_RTX in favor of NULL.
10224         (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
10225         rtx to rtx_insn *.
10226         (reset_debug_uses_in_loop): Likewise.
10227         (analyze_insn_to_expand_var): Likewise for param "insn".
10228         (analyze_iv_to_split_insn): Likewise.
10229         (analyze_insns_in_loop): Likewise for local "insn".
10230         (insert_base_initialization): Likewise for param
10231         "insn" and local "seq".
10232         (split_iv): Likewise for param "insn" and local "seq".
10233         (expand_var_during_unrolling): Likewise for param "insn".
10234         (insert_var_expansion_initialization): Likewise for local "seq".
10235         (combine_var_copies_in_loop_exit): Likewise.
10236         (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
10237         "insn".
10238         (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
10239         (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
10240         "next".
10242 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10244         * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
10245         rtx_insn *.
10246         (iv_analyze_result): Likewise.
10247         (iv_analyze_expr): Likewise.
10248         (biv_p): Likewise.
10250         * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
10251         local "def_insn" from rtx to rtx_insn *.
10252         (get_biv_step_1): Likewise for local "insn".
10253         (iv_analyze_expr): Likewise for param "insn".
10254         (iv_analyze_def): Likewise for local "insn".
10255         (iv_analyze_op): Likewise for param "insn".
10256         (iv_analyze): Likewise.
10257         (iv_analyze_result): Likewise.
10258         (biv_p): Likewise.
10259         (suitable_set_for_replacement): Likewise.
10260         (simplify_using_initial_values): Likewise for local "insn".
10261         (iv_number_of_iterations): Likewise for param "insn".
10262         (check_simple_exit): Add checked cast to rtx_insn when invoking
10263         iv_number_of_iterations for now (until get_condition is
10264         strengthened).
10266         * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
10267         "insn" from rtx to rtx_insn *.
10268         (analyze_insns_in_loop): Likewise for local "insn".
10270 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10272         * loop-invariant.c (struct use): Strengthen field "insn" from rtx
10273         to rtx_insn *.
10274         (struct invariant): Likewise.
10275         (hash_invariant_expr_1): Likewise for param "insn".
10276         (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
10277         (find_exits): Likewise for local "insn".
10278         (create_new_invariant): Likewise for param "insn".
10279         (check_dependencies): Likewise.
10280         (find_invariant_insn): Likewise.
10281         (record_uses): Likewise.
10282         (find_invariants_insn): Likewise.
10283         (find_invariants_bb): Likewise for local "insn".
10284         (get_pressure_class_and_nregs): Likewise for param "insn".
10285         (calculate_loop_reg_pressure): Likewise for local "insn".
10287 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10289         * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
10290         to rtx_insn *.
10291         (add_test): Likewise for locals "seq", "jump".
10292         (doloop_modify): Likewise for locals "sequence", "jump_insn".
10294 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10296         * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
10297         rtx_insn *.
10298         (rebuild_jump_labels_chain): Likewise for param "chain".
10300         * cfgexpand.c (pass_expand::execute): Add checked cast to
10301         rtx_insn * when calling rebuild_jump_labels_chain in region where
10302         we know e->insns.r is non-NULL.
10304         * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
10305         rtx_insn *.
10306         (rebuild_jump_labels): Likewise.
10307         (rebuild_jump_labels_chain): Likewise for param "chain".
10308         (cleanup_barriers): Likewise for locals "insn", "next", "prev".
10309         (init_label_info): Likewise for param "f".
10310         (maybe_propagate_label_ref): Likewise for params "jump_insn",
10311         "prev_nonjump_insn".
10312         (mark_all_labels): Likewise for param "f" and locals "insn",
10313         "prev_nonjump_insn".
10315 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10317         * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
10318         from rtx to rtx_insn *insn.
10319         (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
10320         (ira_add_allocno_copy): Likewise.
10321         * ira-build.c (find_allocno_copy): Strengthen param "insn" from
10322         rtx to rtx_insn *.
10323         (ira_create_copy): Likewise.
10324         (ira_add_allocno_copy): Likewise.
10325         (create_bb_allocnos): Likewise for local "insn".
10326         * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
10327         (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
10328         process_regs_for_copy for rtx_insn * param.
10329         (add_insn_allocno_copies): Strengthen param "insn" from rtx to
10330         rtx_insn *insn.  Update NULL_RTX to NULL in invocation of
10331         process_regs_for_copy for rtx_insn * param.
10332         (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
10333         * ira-costs.c (record_reg_classes): Likewise for param "insn".
10334         (record_operand_costs): Likewise.
10335         (scan_one_insn): Likewise for return type, and for param "insn".
10336         (process_bb_for_costs): Likewise for local "insn".
10337         (process_bb_node_for_hard_reg_moves): Likewise.
10338         * ira-emit.c (struct move): Likewise for field "insn".
10339         (create_move): Eliminate use of NULL_RTX when dealing with an
10340         rtx_insn *.
10341         (emit_move_list): Strengthen return type and locals "result",
10342         "insn" from rtx to rtx_insn *insn.
10343         (emit_moves): Likewise for locals "insns", "tmp".
10344         (ira_emit): Likewise for local "insn".
10345         * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
10346         "insn".
10347         (find_call_crossed_cheap_reg): Likewise.
10348         (process_bb_node_lives): Likewise for local "insn".
10349         * ira.c (decrease_live_ranges_number): Likewise.
10350         (compute_regs_asm_clobbered): Likewise.
10351         (build_insn_chain): Likewise.
10352         (find_moveable_pseudos): Likewise, also locals "def_insn",
10353         "use_insn", "x".  Also strengthen local "closest_uses" from rtx *
10354         to rtx_insn **.  Add a checked cast when assigning from
10355         "closest_use" into closest_uses array in a region where we know
10356         it's a non-NULL insn.
10357         (interesting_dest_for_shprep): Strengthen param "insn" from rtx
10358         to rtx_insn *.
10359         (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
10360         "last_interesting_insn", "uin".
10361         (move_unallocated_pseudos): Likewise for locals "def_insn",
10362         "move_insn", "newinsn".
10364 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10366         * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
10367         Strengthen locals "done_label", "do_error" from rtx to
10368         rtx_code_label *.
10369         (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
10370         from rtx to rtx_insn *.  Strengthen local "sub_check from rtx to
10371         rtx_code_label *.
10372         (ubsan_expand_si_overflow_neg_check): Likewise for locals
10373         "done_label", "do_error" to rtx_code_label * and local  "last" to
10374         rtx_insn *.
10375         (ubsan_expand_si_overflow_mul_check): Likewise for locals
10376         "done_label", "do_error", "large_op0", "small_op0_large_op1",
10377         "one_small_one_large", "both_ops_large", "after_hipart_neg",
10378         "after_lopart_neg", "do_overflow", "hipart_different"  to
10379         rtx_code_label * and local  "last" to rtx_insn *.
10381 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10383         * init-regs.c (initialize_uninitialized_regs): Strengthen locals
10384         "insn" and "move_insn" from rtx to rtx_insn *.
10386 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10388         * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
10389         rtx_insn *.
10390         (cheap_bb_rtx_cost_p): Likewise.
10391         (first_active_insn): Likewise for return type and local "insn".
10392         (last_active_insn):  Likewise for return type and locals "insn",
10393         "head".
10394         (struct noce_if_info): Likewise for fields "jump", "insn_a",
10395         "insn_b".
10396         (end_ifcvt_sequence): Likewise for return type and locals "insn",
10397         "seq".
10398         (noce_try_move): Likewise for local "seq".
10399         (noce_try_store_flag): Likewise.
10400         (noce_try_store_flag_constants): Likewise.
10401         (noce_try_addcc): Likewise.
10402         (noce_try_store_flag_mask): Likewise.
10403         (noce_try_cmove): Likewise.
10404         (noce_try_minmax): Likewise.
10405         (noce_try_abs): Likewise.
10406         (noce_try_sign_mask): Likewise.
10407         (noce_try_bitop): Likewise.
10408         (noce_can_store_speculate_p): Likewise for local "insn".
10409         (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
10410         seq".
10411         (check_cond_move_block): Likewise for local "insn".
10412         (cond_move_convert_if_block): Likewise.
10413         (cond_move_process_if_block): Likewise for locals "seq",
10414         "loc_insn".
10415         (noce_find_if_block): Likewise for local "jump".
10416         (merge_if_block): Likewise for local "last".
10417         (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
10418         (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
10419         (block_has_only_trap): Likewise for return type and local "trap".
10420         (find_if_case_1): Likewise for local "jump".
10421         (dead_or_predicable): Likewise for locals "head", "end", "jump",
10422         "insn".
10424 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10426         * hw-doloop.h (struct hwloop_info_d): Strengthen fields
10427         "last_insn", "loop_end" from rtx to rtx_insn *.
10429         * hw-doloop.c (scan_loop): Likewise for local "insn".
10430         (discover_loop): Likewise for param "tail_insn".
10431         (discover_loops): Likewise for local "tail".
10433         * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
10434         cast to rtx_insn * when assigning from an rtx local to a
10435         hwloop_info's "last_insn" field.
10437 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10439         * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
10440         (add_delay_dependencies): Strengthen local "pro" from rtx to
10441         rtx_insn *.
10442         (recompute_todo_spec): Likewise.
10443         (dep_cost_1): Likewise for locals "insn", "used".
10444         (schedule_insn): Likewise for local "dbg".
10445         (schedule_insn): Likewise for locals "pro", "next".
10446         (unschedule_insns_until): Likewise for local "con".
10447         (restore_pattern): Likewise for local "next".
10448         (estimate_insn_tick): Likewise for local "pro".
10449         (resolve_dependencies): Likewise for local "next".
10450         (fix_inter_tick): Likewise.
10451         (fix_tick_ready): Likewise for local "pro".
10452         (add_to_speculative_block): Likewise for locals "check", "twin",
10453         "pro".
10454         (sched_extend_bb): Likewise for locals "end", "insn".
10455         (init_before_recovery): Likewise for local "x".
10456         (sched_create_recovery_block): Likewise for local "barrier".
10457         (create_check_block_twin): Likewise for local "pro".
10458         (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
10459         "consumer".
10460         (unlink_bb_notes): Update for change to type of bb_header.
10461         Strengthen locals "prev", "label", "note", "next" from rtx to
10462         rtx_insn *.
10463         (clear_priorities): Likewise for local "pro".
10465 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10467         * gcse.c (struct occr): Strengthen field "insn" from rtx to
10468         rtx_insn *.
10469         (test_insn): Likewise for this global.
10470         (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
10471         const rtx_insn *.
10472         (oprs_anticipatable_p): Likewise.
10473         (oprs_available_p): Likewise.
10474         (insert_expr_in_table): Strengthen param "insn" from  rtx to
10475         rtx_insn *.
10476         (hash_scan_set): Likewise.
10477         (hash_scan_clobber): Likewise.
10478         (hash_scan_call): Likewise.
10479         (hash_scan_insn): Likewise.
10480         (compute_hash_table_work): Likewise for local "insn".
10481         (process_insert_insn): Likewise for return type and local "pat".
10482         (insert_insn_end_basic_block): Likewise for locals "new_insn",
10483         "pat", "pat_end", "maybe_cc0_setter".
10484         (pre_edge_insert): Likewise for local "insn".
10485         (pre_insert_copy_insn): Likewise for param "insn".
10486         (pre_insert_copies): Likewise for local "insn".
10487         (struct set_data): Likewise for field "insn".
10488         (single_set_gcse): Likewise for param "insn".
10489         (gcse_emit_move_after): Likewise.
10490         (pre_delete): Likewise for local "insn".
10491         (update_bb_reg_pressure): Likewise for param "from" and local
10492         "insn".
10493         (should_hoist_expr_to_dom): Likewise for param "from".
10494         (hoist_code): Likewise for local "insn".
10495         (get_pressure_class_and_nregs): Likewise for param "insn".
10496         (calculate_bb_reg_pressure): Likewise for local "insn".
10497         (compute_ld_motion_mems): Likewise.
10499 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10501         * genpeep.c (main): Rename param back from "uncast_ins1" to
10502         "ins1", strengthening from rtx to rtx_insn *.  Drop now-redundant
10503         checked cast.
10505         * output.h (peephole): Strengthen param from rtx to rtx_insn *.
10507 2014-08-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
10509         PR target/62195
10510         * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
10511         documentation to state it is only for VSX operations.
10513         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
10514         constraint only active if VSX.
10516         * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
10517         wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
10518         (lfiwzx): Likewise.
10520 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10522         * fwprop.c (single_def_use_dom_walker::before_dom_children):
10523         Strengthen local "insn" from rtx to rtx_insn *.
10524         (use_killed_between): Likewise for param "target_insn".
10525         (all_uses_available_at): Likewise for param "target_insn" and
10526         local "next".
10527         (update_df_init): Likewise for params "def_insn", "insn".
10528         (update_df): Likewise for param "insn".
10529         (try_fwprop_subst): Likewise for param "def_insn" and local
10530         "insn".
10531         (free_load_extend): Likewise for param "insn".
10532         (forward_propagate_subreg): Likewise for param "def_insn" and
10533         local "use_insn".
10534         (forward_propagate_asm): Likewise for param "def_insn" and local
10535         "use_insn".
10536         (forward_propagate_and_simplify): Likewise for param "def_insn"
10537         and local "use_insn".
10538         (forward_propagate_into): Likewise for locals "def_insn" and
10539         "use_insn".
10541 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10543         * function.c (emit_initial_value_sets): Strengthen local "seq"
10544         from rtx to rtx_insn *.
10545         (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
10546         local "seq".
10547         (instantiate_virtual_regs): Likewise for local "insn".
10548         (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
10549         (reorder_blocks_1): Likewise for param "insns" and local "insn".
10550         (expand_function_end): Likewise for locals "insn" and "seq".
10551         (epilogue_done): Likewise for local "insn".
10552         (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
10553         "last", "trial".
10554         (reposition_prologue_and_epilogue_notes): Likewise for locals
10555         "insn", "last", "note", "first".
10556         (match_asm_constraints_1): Likewise for param "insn" and local "insns".
10557         (pass_match_asm_constraints::execute): Likewise for local "insn".
10559 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10561         * output.h (final_scan_insn): Strengthen return type from rtx to
10562         rtx_insn *.
10563         (final_forward_branch_p): Likewise for param.
10564         (current_output_insn): Likewise for this global.
10566         * final.c (rtx debug_insn): Likewise for this variable.
10567         (current_output_insn): Likewise.
10568         (get_attr_length_1): Rename param "insn" to "uncast_insn",
10569         adding "insn" back in as an rtx_insn * with a checked cast, so
10570         that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
10571         first param.
10572         (compute_alignments): Strengthen local "label" from rtx to
10573         rtx_insn *.
10574         (shorten_branches): Rename param from "first" to "uncast_first",
10575         introducing a new local rtx_insn * "first" using a checked cast to
10576         effectively strengthen "first" from rtx to rtx_insn * without
10577         affecting the type signature.  Strengthen locals "insn", "seq",
10578         "next", "label" from rtx to rtx_insn *.
10579         (change_scope): Strengthen param "orig_insn" and local "insn" from
10580         rtx to rtx_insn *.
10581         (final_start_function): Rename param from "first" to "uncast_first",
10582         introducing a new local rtx_insn * "first" using a checked cast to
10583         effectively strengthen "first" from rtx to rtx_insn * without
10584         affecting the type signature.  Strengthen local "insn" from rtx to
10585         rtx_insn *.
10586         (dump_basic_block_info): Strengthen param "insn" from rtx to
10587         rtx_insn *.
10588         (final): Rename param from "first" to "uncast_first",
10589         introducing a new local rtx_insn * "first" using a checked cast to
10590         effectively strengthen "first" from rtx to rtx_insn * without
10591         affecting the type signature.  Strengthen locals "insn", "next"
10592         from rtx to rtx_insn *.
10593         (output_alternate_entry_point): Strengthen param "insn" from rtx to
10594         rtx_insn *.
10595         (call_from_call_insn): Strengthen param "insn" from rtx to
10596         rtx_call_insn *.
10597         (final_scan_insn): Rename param from "insn" to "uncast_insn",
10598         introducing a new local rtx_insn * "insn" using a checked cast to
10599         effectively strengthen "insn" from rtx to rtx_insn * without
10600         affecting the type signature.  Strengthen return type and locals
10601         "next", "note", "prev", "new_rtx" from rtx to rtx_insn *.  Remove
10602         now-redundant checked cast to rtx_insn * from both invocations of
10603         debug_hooks->var_location.  Convert CALL_P into a dyn_cast,
10604         introducing a local "call_insn" for use when invoking
10605         call_from_call_insn.
10606         (notice_source_line): Strengthen param "insn" from rtx to
10607         rtx_insn *.
10608         (leaf_function_p): Likewise for local "insn".
10609         (final_forward_branch_p): Likewise.
10610         (leaf_renumber_regs): Likewise for param "first".
10611         (rest_of_clean_state): Likewise for locals "insn" and "next".
10612         (self_recursive_call_p): Likewise for param "insn".
10613         (collect_fn_hard_reg_usage): Likewise for local "insn".
10614         (get_call_fndecl): Likewise for param "insn".
10615         (get_call_cgraph_rtl_info): Likewise.
10616         (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
10617         introducing a new local rtx_insn * "insn" using a checked cast to
10618         effectively strengthen "insn" from rtx to rtx_insn * without
10619         affecting the type signature.
10621         * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
10622         cast when assigning from param "insn" to current_output_insn.
10623         (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
10624         so that we can assign it back to current_output_insn.
10626 2014-08-20  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
10628         * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
10629         atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
10630         atmxt540s and atmxt540sreva devices.
10631         * config/avr/avr-tables.opt: Regenerate.
10632         * config/avr/t-multilib: Regenerate.
10633         * doc/avr-mmcu.texi: Regenerate.
10635 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10637         * expr.c (convert_move): Strengthen local "insns" from rtx to
10638         rtx_insn *.
10639         (emit_block_move_via_loop): Strengthen locals "cmp_label" and
10640         "top_label" from rtx to rtx_code_label *.
10641         (move_block_to_reg): Strengthen local "insn", "last" from rtx to
10642         rtx_insn *.
10643         (emit_single_push_insn): Likewise for locals "prev", "last".
10644         (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
10645         to rtx_code_label *.
10646         (store_constructor): Likewise for locals "loop_start", "loop_end".
10647         (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
10648         rtx_insn *.
10649         (expand_expr_real_2): Likewise.
10650         (expand_expr_real_1): Strengthen local "label" from rtx to
10651         rtx_code_label *.
10653 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10655         * expmed.c (store_bit_field_using_insv): Strengthen local "last"
10656         from rtx to rtx_insn *.
10657         (store_bit_field_1): Likewise.
10658         (extract_bit_field_1): Likewise.
10659         (expand_mult_const): Likewise for local "insns".
10660         (expmed_mult_highpart): Strengthen local "label" from rtx to
10661         rtx_code_label *.
10662         (expand_smod_pow2): Likewise.
10663         (expand_sdiv_pow2): Likewise.
10664         (expand_divmod): Strengthen locals "last", "insn" from rtx to
10665         rtx_insn *.  Strengthen locals "label", "label1", "label2",
10666         "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
10667         (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
10668         (emit_store_flag): Likewise.
10669         (emit_store_flag_force): Strengthen local "label" from rtx to
10670         rtx_code_label *.
10671         (do_cmp_and_jump): Likewise for param "label".
10673 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10675         * explow.c (force_reg): Strengthen local "insn" from rtx to
10676         rtx_insn *.
10677         (adjust_stack_1): Likewise.
10678         (allocate_dynamic_stack_space): Likewise.  Strengthen locals
10679         "final_label", "available_label", "space_available" from rtx to
10680         rtx_code_label *.
10681         (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
10682         (anti_adjust_stack_and_probe): Likewise.
10684 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10686         * except.h (sjlj_emit_function_exit_after): Strengthen param
10687         "after" from rtx to rtx_insn *.  This is only called with
10688         result of get_last_insn (in function.c) so type-change should be
10689         self-contained.
10691         * function.h (struct rtl_eh): Strengthen field "ehr_label" from
10692         rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
10693         to rtx_insn *.  These fields are only used from except.c so this
10694         type-change should be self-contained to this patch.
10696         * except.c (emit_to_new_bb_before): Strengthen param "seq" and
10697         local "last" from rtx to rtx_insn *.
10698         (dw2_build_landing_pads): Likewise for local "seq".
10699         (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
10700         (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
10701         rtx to rtx_code_label *.  Strengthen locals "fn_begin", "seq" from
10702         rtx to rtx_insn *.
10703         (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
10704         to rtx_insn *.
10705         (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
10706         (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
10707         (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
10708         referring to an insn.  Strengthen local "dispatch_label" from
10709         rtx to rtx_code_label *.
10710         (set_nothrow_function_flags): Strengthen local "insn" from rtx to
10711         rtx_insn *.
10712         (expand_eh_return): Strengthen local "around_label" from
10713         rtx to rtx_code_label *.
10714         (convert_to_eh_region_ranges): Strengthen locals "iter",
10715         "last_action_insn", "first_no_action_insn",
10716         "first_no_action_insn_before_switch",
10717         "last_no_action_insn_before_switch", from rtx to rtx_insn *.
10719 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10721         * dwarf2out.c (last_var_location_insn): Strengthen this variable
10722         from rtx to rtx_insn *.
10723         (cached_next_real_insn): Likewise.
10724         (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
10725         working with insns.
10726         (dwarf2out_var_location): Strengthen locals "next_real",
10727         "next_note", "expected_next_loc_note", "last_start", "insn" from
10728         rtx to rtx_insn *.
10730 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10732         * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
10733         from rtx to rtx_insn *.
10734         (create_pseudo_cfg): Likewise for local "insn".
10736 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10738         * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
10739         from rtx to rtx_insn *.
10740         (df_bb_regno_last_def_find): Likewise.
10742         * df-problems.c (df_rd_bb_local_compute): Likewise.
10743         (df_lr_bb_local_compute): Likewise.
10744         (df_live_bb_local_compute): Likewise.
10745         (df_chain_remove_problem): Likewise.
10746         (df_chain_create_bb): Likewise.
10747         (df_word_lr_bb_local_compute): Likewise.
10748         (df_remove_dead_eq_notes): Likewise for param "insn".
10749         (df_note_bb_compute): Likewise for local "insn".
10750         (simulate_backwards_to_point): Likewise.
10751         (df_md_bb_local_compute): Likewise.
10753         * df-scan.c (df_scan_free_bb_info): Likewise.
10754         (df_scan_start_dump): Likewise.
10755         (df_scan_start_block): Likewise.
10756         (df_install_ref_incremental): Likewise for local "insn".
10757         (df_insn_rescan_all): Likewise.
10758         (df_reorganize_refs_by_reg_by_insn): Likewise.
10759         (df_reorganize_refs_by_insn_bb): Likewise.
10760         (df_recompute_luids): Likewise.
10761         (df_bb_refs_record): Likewise.
10762         (df_update_entry_exit_and_calls): Likewise.
10763         (df_bb_verify): Likewise.
10765 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10767         * ddg.h (struct ddg_node): Strengthen fields "insn" and
10768         "first_note" from rtx to rtx_insn *.
10769         (get_node_of_insn): Likewise for param 2 "insn".
10770         (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
10772         * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
10773         rtx_insn *.
10774         (mem_write_insn_p): Likewise.
10775         (mem_access_insn_p): Likewise.
10776         (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
10777         (def_has_ccmode_p): Likewise for param "insn".
10778         (add_cross_iteration_register_deps): Likewise for locals
10779         "def_insn" and "use_insn".
10780         (insns_may_alias_p): Likewise for params "insn1" and "insn2".
10781         (build_intra_loop_deps): Likewise for local "src_insn".
10782         (create_ddg): Strengthen locals "insn" and "first_note" from rtx
10783         to rtx_insn *.
10784         (get_node_of_insn): Likewise for param "insn".
10786 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10788         * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
10789         (deletable_insn_p): Strengthen param "insn" from rtx to
10790         rtx_insn *.  Add checked cast to rtx_call_insn when invoking
10791         find_call_stack_args, since this is guarded by CALL_P (insn).
10792         (marked_insn_p): Strengthen param "insn" from rtx to
10793         rtx_insn *.
10794         (mark_insn): Likewise.  Add checked cast to rtx_call_insn when
10795         invoking find_call_stack_args, since this is guarded by
10796         CALL_P (insn).
10797         (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
10798         rtx_insn *; we know this is an insn since this was called by
10799         mark_nonreg_stores.
10800         (mark_nonreg_stores_2): Likewise.
10801         (mark_nonreg_stores): Strengthen param "insn" from rtx to
10802         rtx_insn *.
10803         (find_call_stack_args): Strengthen param "call_insn" from rtx to
10804         rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
10805         to rtx_insn *.
10806         (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
10807         from rtx to rtx_insn *.
10808         (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
10809         "next", "ref_insn".
10810         (delete_unmarked_insns): Likewise for locals "insn", "next".
10811         (prescan_insns_for_dce): Likewise for locals "insn", "prev".
10812         (mark_reg_dependencies): Likewise for param "insn".
10813         (rest_of_handle_ud_dce): Likewise for local "insn".
10814         (word_dce_process_block): Likewise.
10815         (dce_process_block): Likewise.
10817 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10819         * cse.c (struct qty_table_elem): Strengthen field "const_insn"
10820         from rtx to rtx_insn *.
10821         (struct change_cc_mode_args): Likewise for field "insn".
10822         (this_insn): Strengthen from rtx to rtx_insn *.
10823         (make_new_qty): Replace use of NULL_RTX with NULL when dealing
10824         with insn.
10825         (validate_canon_reg): Strengthen param "insn" from rtx to
10826         rtx_insn *.
10827         (canon_reg): Likewise.
10828         (fold_rtx): Likewise.  Replace use of NULL_RTX with NULL when
10829         dealing with insn.
10830         (record_jump_equiv): Strengthen param "insn" from rtx to
10831         rtx_insn *.
10832         (try_back_substitute_reg): Likewise, also for locals "prev",
10833         "bb_head".
10834         (find_sets_in_insn): Likewise for param "insn".
10835         (canonicalize_insn): Likewise.
10836         (cse_insn): Likewise.  Add a checked cast.
10837         (invalidate_from_clobbers): Likewise for param "insn".
10838         (invalidate_from_sets_and_clobbers): Likewise.
10839         (cse_process_notes_1): Replace use of NULL_RTX with NULL when
10840         dealing with insn.
10841         (cse_prescan_path): Strengthen local "insn" from rtx to
10842         rtx_insn *.
10843         (cse_extended_basic_block): Likewise for locals "insn" and
10844         "prev_insn".
10845         (cse_main): Likewise for param "f".
10846         (check_for_label_ref): Likewise for local "insn".
10847         (set_live_p): Likewise for second param ("insn").
10848         (insn_live_p): Likewise for first param ("insn") and for local
10849         "next".
10850         (cse_change_cc_mode_insn): Likewise for first param "insn".
10851         (cse_change_cc_mode_insns): Likewise for first and second params
10852         "start" and "end".
10853         (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
10854         and "end".
10855         (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
10856         "cc_src_insn".
10858 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10859             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10860             Anna Tikhonova  <anna.tikhonova@intel.com>
10861             Ilya Tocar  <ilya.tocar@intel.com>
10862             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10863             Ilya Verbin  <ilya.verbin@intel.com>
10864             Kirill Yukhin  <kirill.yukhin@intel.com>
10865             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10867         * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
10868         New.
10869         * config/i386/sse.md
10870         (define_mode_iterator VI248_AVX2): Delete.
10871         (define_mode_iterator VI2_AVX2_AVX512BW): New.
10872         (define_mode_iterator VI48_AVX2): Ditto.
10873         (define_insn <shift_insn><mode>3): Delete.
10874         (define_insn "<shift_insn><mode>3<mask_name>" with
10875         VI2_AVX2_AVX512BW): New.
10876         (define_insn "<shift_insn><mode>3<mask_name>" with
10877         VI48_AVX2): Ditto.
10879 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10880             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10881             Anna Tikhonova  <anna.tikhonova@intel.com>
10882             Ilya Tocar  <ilya.tocar@intel.com>
10883             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10884             Ilya Verbin  <ilya.verbin@intel.com>
10885             Kirill Yukhin  <kirill.yukhin@intel.com>
10886             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10888         * config/i386/sse.md
10889         (define_mode_iterator VI4F_BRCST32x2): New.
10890         (define_mode_attr 64x2_mode): Ditto.
10891         (define_mode_attr 32x2mode): Ditto.
10892         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
10893         with VI4F_BRCST32x2): Ditto.
10894         (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
10895         with V16FI mode iterator): Ditto.
10896         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
10897         with V16FI): Ditto.
10898         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
10899         with VI8F_BRCST64x2): Ditto.
10901 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10902             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10903             Anna Tikhonova  <anna.tikhonova@intel.com>
10904             Ilya Tocar  <ilya.tocar@intel.com>
10905             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10906             Ilya Verbin  <ilya.verbin@intel.com>
10907             Kirill Yukhin  <kirill.yukhin@intel.com>
10908             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10910         * config/i386/sse.md
10911         (define_mode_iterator VI8_AVX512VL): New.
10912         (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
10914 2014-08-22  Kirill Yukhin  <kirill.yukhin@intel.com>
10916         * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
10917         (define_mode_iterator V48_AVX512VL): New.
10918         (define_mode_iterator V12_AVX512VL): Ditto.
10919         (define_insn <avx512>_load<mode>_mask): Split into two similar
10920         patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
10921         Refactor output template.
10922         (define_insn "<avx512>_store<mode>_mask"): Ditto.
10924 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10926         * cprop.c (struct occr): Strengthen field "insn" from rtx to
10927         rtx_insn *.
10928         (reg_available_p): Likewise for param "insn".
10929         (insert_set_in_table): Likewise.
10930         (hash_scan_set): Likewise.
10931         (hash_scan_insn): Likewise.
10932         (make_set_regs_unavailable): Likewise.
10933         (compute_hash_table_work): Likewise for local "insn".
10934         (reg_not_set_p): Strengthen param "insn" from const_rtx to
10935         const rtx_insn *.
10936         (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
10937         (try_replace_reg): Likewise.
10938         (find_avail_set): Likewise.
10939         (cprop_jump): Likewise for params "setcc", "jump".
10940         (constprop_register): Likewise for param "insn".
10941         (cprop_insn): Likewise.
10942         (do_local_cprop): Likewise.
10943         (local_cprop_pass): Likewise for local "insn".
10944         (bypass_block): Likewise for params "setcc" and "jump".
10945         (bypass_conditional_jumps): Likewise for locals "setcc" and
10946         "insn".
10947         (one_cprop_pass): Likewise for local "insn".
10949 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10951         * compare-elim.c (struct comparison_use): Strengthen field "insn"
10952         from rtx to rtx_insn *.
10953         (struct comparison): Likewise, also for field "prev_clobber".
10954         (conforming_compare): Likewise for param "insn".
10955         (arithmetic_flags_clobber_p): Likewise.
10956         (find_flags_uses_in_insn): Likewise.
10957         (find_comparison_dom_walker::before_dom_children): Likewise for
10958         locals "insn", "next", "last_clobber".
10959         (try_eliminate_compare): Likewise for locals "insn", "bb_head".
10961 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10963         * combine-stack-adj.c (struct csa_reflist): Strengthen field
10964         "insn" from rtx to rtx_insn *.
10965         (single_set_for_csa): Likewise for param "insn".
10966         (record_one_stack_ref): Likewise.
10967         (try_apply_stack_adjustment): Likewise.
10968         (struct record_stack_refs_data): Likewise for field "insn".
10969         (maybe_move_args_size_note): Likewise for params "last" and "insn".
10970         (prev_active_insn_bb): Likewise for return type and param "insn".
10971         (next_active_insn_bb): Likewise.
10972         (force_move_args_size_note): Likewise for params "prev" and "last"
10973         and locals "test", "next_candidate", "prev_candidate".
10974         (combine_stack_adjustments_for_block): Strengthen locals
10975         "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
10976         rtx_insn *.
10978 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
10980         * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
10981         (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
10982         (subst_insn): Likewise for this variable.
10983         (added_links_insn): Likewise.
10984         (struct insn_link): Likewise for field "insn".
10985         (alloc_insn_link): Likewise for param "insn".
10986         (struct undobuf): Likewise for field "other_insn".
10987         (find_single_use): Likewise for param "insn" and local "next".
10988         (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
10989         (delete_noop_moves): Likewise for locals "insn", "next".
10990         (create_log_links): Likewise for locals "insn", "use_insn".
10991         Strengthen local "next_use" from rtx * to rtx_insn **.
10992         (insn_a_feeds_b): Likewise for params "a", "b".
10993         (combine_instructions): Likewise for param "f" and locals "insn",
10994         "next", "prev", "first", "last_combined_insn", "link", "link1",
10995         "temp".  Replace use of NULL_RTX with NULL when referring to
10996         insns.
10997         (setup_incoming_promotions): Likewise for param "first"
10998         (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
10999         (can_combine_p): Likewise for params "insn", "i3", "pred",
11000         "pred2", "succ", "succ2" and for local "p".
11001         (combinable_i3pat): Likewise for param "i3".
11002         (cant_combine_insn_p): Likewise for param "insn".
11003         (likely_spilled_retval_p): Likewise.
11004         (adjust_for_new_dest): Likewise.
11005         (update_cfg_for_uncondjump): Likewise, also for local "insn".
11006         (try_combine): Likewise for return type and for params "i3", "i2",
11007         "i1", "i0", "last_combined_insn", and for locals "insn",
11008         "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
11009         "i0_insn".  Eliminate local "tem" in favor of new locals
11010         "tem_note" and "tem_insn", the latter being an rtx_insn *.  Add a
11011         checked cast for now to rtx_insn * on the return type of
11012         gen_rtx_INSN.  Replace use of NULL_RTX with NULL when referring to
11013         insns.
11014         (find_split_point): Strengthen param "insn" from rtx to
11015         rtx_insn *.
11016         (simplify_set): Likewise for local "other_insn".
11017         (recog_for_combine): Likewise for param "insn".
11018         (record_value_for_reg): Likewise.
11019         (record_dead_and_set_regs_1): Likewise for local
11020         "record_dead_insn".
11021         (record_dead_and_set_regs): Likewise for param "insn".
11022         (record_promoted_value): Likewise.
11023         (check_promoted_subreg): Likewise.
11024         (get_last_value_validate): Likewise.
11025         (reg_dead_at_p): Likewise.
11026         (move_deaths): Likewise for param "to_insn".
11027         (distribute_notes): Likewise for params "from_insn", "i3", "i2"
11028         and locals "place", "place2", "cc0_setter".  Eliminate local "tem
11029         in favor of new locals "tem_note" and "tem_insn", the latter being
11030         an rtx_insn *.
11031         (distribute_links): Strengthen locals "place", "insn" from rtx to
11032         rtx_insn *.
11034 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
11036         * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
11037         than a const_rtx.
11038         (can_delete_label_p): Require a const rtx_code_label * rather than
11039         a const_rtx.
11040         (delete_insn): Add checked cast to rtx_code_label * when we know
11041         we're dealing with LABEL_P (insn).  Strengthen local "bb_note" from
11042         rtx to rtx_insn *.
11043         (delete_insn_chain): Strengthen locals "prev" and "current" from
11044         rtx to rtx_insn *.  Add a checked cast when assigning from
11045         "finish" (strengthening the params will come later).  Add a
11046         checked cast to rtx_note * in region where we know
11047         NOTE_P (current).
11048         (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
11049         rtx_insn *.
11050         (compute_bb_for_insn): Likewise.
11051         (free_bb_for_insn): Likewise for local "insn".
11052         (compute_bb_for_insn): Likewise.
11053         (update_bb_for_insn_chain): Strengthen params "begin", "end" and
11054         local "insn" from rtx to rtx_insn *
11055         (flow_active_insn_p): Require a const rtx_insn * rather than a
11056         const_rtx.
11057         (contains_no_active_insn_p): Strengthen local "insn" from rtx to
11058         rtx_insn *.
11059         (can_fallthru): Likewise for locals "insn" and "insn2".
11060         (bb_note): Likewise for local "note".
11061         (first_insn_after_basic_block_note): Likewise for local "note" and
11062         for return type.
11063         (rtl_split_block): Likewise for locals "insn" and "next".
11064         (unique_locus_on_edge_between_p): Likewise for locals "insn" and
11065         "end".
11066         (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
11067         "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
11068         "prev", "tmp".
11069         (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
11070         them), "kill_from", "barrier", "new_insn".
11071         (patch_jump_insn): Likewise for params "insn", "old_label".
11072         (redirect_branch_edge): Likewise for locals "old_label", "insn".
11073         (force_nonfallthru_and_redirect): Likewise for locals "insn",
11074         "old_label", "new_label".
11075         (rtl_tidy_fallthru_edge): Likewise for local "q".
11076         (rtl_split_edge): Likewise for locals "before", "last".
11077         (commit_one_edge_insertion): Likewise for locals "before",
11078         "after", "insns", "tmp", "last", adding a checked cast where
11079         currently necessary.
11080         (commit_edge_insertions): Likewise.
11081         (rtl_dump_bb): Likewise for locals "insn", "last".
11082         (print_rtl_with_bb): Likewise for local "x".
11083         (rtl_verify_bb_insns): Likewise for local "x".
11084         (rtl_verify_bb_pointers): Likewise for local "insn".
11085         (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
11086         "head", "end".
11087         (rtl_verify_fallthru): Likewise for local "insn".
11088         (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
11089         (purge_dead_edges): Likewise for local "insn".
11090         (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
11091         (skip_insns_after_block): Likewise for return type and for locals
11092         "insn", "last_insn", "next_head", "prev".
11093         (record_effective_endpoints): Likewise for locals "next_insn",
11094         "insn", "end".
11095         (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
11096         (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
11097         (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
11098         (duplicate_insn_chain): For now, add checked cast from rtx to
11099         rtx_insn * when returning insn.
11100         (cfg_layout_duplicate_bb): Likewise for local "insn".
11101         (cfg_layout_delete_block): Likewise for locals "insn", "next",
11102         "prev", "remaints".
11103         (cfg_layout_merge_blocks): Likewise for local "insn", "last".
11104         (rtl_block_empty_p): Likewise.
11105         (rtl_split_block_before_cond_jump): Likewise for locals "insn",
11106         "split_point", "last".
11107         (rtl_block_ends_with_call_p): Likewise for local "insn".
11108         (need_fake_edge_p): Strengthen param "insn" from const_rtx to
11109         const rtx_insn *.
11110         (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
11111         "split_at_insn" from rtx to rtx_insn *.
11112         (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
11113         (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
11114         to const rtx_insn *.
11115         (rtl_account_profile_record): Likewise.
11117 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
11119         * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
11120         rtx to rtx_insn *.
11121         (average_num_loop_insns): Likewise.
11122         (init_set_costs): Likewise for local "seq".
11123         (seq_cost): Likewise for param "seq", from const_rtx to const
11124         rtx_insn *.
11126 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
11128         * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
11129         rtx to rtx_insn *.
11131 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
11133         * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
11134         "f1" and "f2" from rtx * to rtx_insn **.
11135         (flow_find_head_matching_sequence): Likewise.
11137         * cfgcleanup.c (try_simplify_condjump): Strengthen local
11138         "cbranch_insn" from rtx to rtx_insn *.
11139         (thread_jump): Likewise for local "insn".
11140         (try_forward_edges): Likewise for local "last".
11141         (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
11142         (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
11143         "real_b_end".
11144         (can_replace_by): Likewise for params "i1", "i2".
11145         (old_insns_match_p): Likewise.
11146         (merge_notes): Likewise.
11147         (walk_to_nondebug_insn): Likewise for param "i1".
11148         (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
11149         to rtx_insn **.  Strengthen locals "i1", "i2", "last1", "last2",
11150         "afterlast1", "afterlast2" from rtx to rtx_insn *.
11151         (flow_find_head_matching_sequence): Strengthen params "f1" and
11152         "f2" from rtx * to rtx_insn **.  Strengthen locals "i1", "i2",
11153         "last1", "last2", "beforelast1", "beforelast2" from rtx to
11154         rtx_insn *.
11155         (outgoing_edges_match): Likewise for locals "last1", "last2".
11156         (try_crossjump_to_edge): Likewise for local "insn".
11157         Replace call to for_each_rtx with for_each_rtx_in_insn.
11159         (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
11160         (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
11161         "e0_last", "e_last", "head", "curr", "insn".  Strengthen locals
11162         "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
11163         (try_optimize_cfg): Strengthen local "last" from rtx to
11164         rtx_insn *.
11165         (delete_dead_jumptables): Likewise for locals "insn", "next",
11166         "label".
11168         * ifcvt.c (cond_exec_process_if_block): Likewise for locals
11169         "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
11170         "rtx else_first_tail", to reflect the basic-block.h changes above.
11172 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
11174         * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
11175         rtx_insn *.
11176         (purge_dead_tablejump_edges): Likewise.
11177         (find_bb_boundaries): Likewise for locals "insn", "end",
11178         "flow_transfer_insn".
11180 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
11182         * caller-save.c (save_call_clobbered_regs): Strengthen locals
11183         "ins" and "prev" from rtx to rtx_insn *.
11185 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
11187         * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
11188         rtx_insn *.
11189         (internal_arg_pointer_exp_state): Likewise for field "scan_start".
11190         (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
11191         "scan_start".
11192         (load_register_parameters): Likewise for local "before_arg".
11193         (check_sibcall_argument_overlap): Likewise for param "insn".
11194         (expand_call): Likewise for locals "normal_call_insns",
11195         "tail_call_insns", "insns", "before_call", "after_args",
11196         "before_arg", "last", "prev".  Strengthen one of the "last" from
11197         rtx to rtx_call_insn *.
11198         (fixup_tail_calls): Strengthen local "insn" from rtx to
11199         rtx_insn *.
11200         (emit_library_call_value_1): Likewise for locals "before_call" and
11201         "last".
11203 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
11205         * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
11206         and "last" from rtx to rtx_insn *.
11207         (expand_builtin_nonlocal_goto): Likewise for local "insn".
11208         (expand_builtin_apply): Strengthen local "call_insn" from rtx to
11209         rtx_call_insn *.
11210         (expand_errno_check): Strengthen local "lab" from rtx to
11211         rtx_code_label *.
11212         (expand_builtin_mathfn): Strengthen local "insns" from rtx to
11213         rtx_insn *.
11214         (expand_builtin_mathfn_2): Likewise.
11215         (expand_builtin_mathfn_ternary): Likewise.
11216         (expand_builtin_mathfn_3): Likewise.
11217         (expand_builtin_interclass_mathfn): Likewise for local "last".
11218         (expand_builtin_int_roundingfn): Likewise for local "insns".
11219         (expand_builtin_int_roundingfn_2): Likewise.
11220         (expand_builtin_strlen): Likewise for local "before_strlen".
11221         (expand_builtin_strncmp): Likewise for local "seq".
11222         (expand_builtin_signbit): Likewise for local "last".
11223         (expand_builtin_atomic_compare_exchange): Strengthen local "label"
11224         from rtx to rtx_code_label *.
11225         (expand_stack_restore):  Strengthen local "prev" from rtx to
11226         rtx_insn *.
11228 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
11230         * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
11231         to rtx_insn *.
11232         (struct btr_def_s): Likewise.
11233         (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
11234         const rtx_insn *.
11235         (add_btr_def): Likewise.
11236         (new_btr_user): Likewise.
11237         (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
11238         rtx to rtx_insn *.
11239         (link_btr_uses): Likewise.
11240         (move_btr_def): Likewise for locals "insp", "old_insn",
11241         "new_insn".  Add checked cast to rtx_insn * for now on result of
11242         gen_move_insn.
11243         (can_move_up): Strengthen param "insn" from const_rtx to
11244         const rtx_insn *.
11246 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
11248         * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
11249         rtx_insn *.
11250         (get_uncond_jump_length): Likewise for locals "label", "jump".
11251         (fix_up_crossing_landing_pad): Likewise for locals "new_label",
11252         "jump", "insn".
11253         (add_labels_and_missing_jumps): Likewise for local "new_jump".
11254         (fix_up_fall_thru_edges): Likewise for local "old_jump".
11255         (find_jump_block): Likewise for local "insn".
11256         (fix_crossing_conditional_branches): Likewise for locals
11257         "old_jump", "new_jump".
11258         (fix_crossing_unconditional_branches): Likewise for locals
11259         "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
11260         (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
11262 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
11264         * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
11265         rtx to rtx_insn *.
11266         (struct mem_insn): Likewise for field "insn".
11267         (reg_next_use): Strengthen from rtx * to rtx_insn **.
11268         (reg_next_inc_use): Likewise.
11269         (reg_next_def): Likewise.
11270         (move_dead_notes): Strengthen params "to_insn" and "from_insn"
11271         from rtx to rtx_insn *.
11272         (move_insn_before): Likewise for param "next_insn" and local "insns".
11273         (attempt_change): Likewise for local "mov_insn".
11274         (try_merge): Likewise for param "last_insn".
11275         (get_next_ref): Likewise for return type and local "insn".
11276         Strengthen param "next_array" from rtx * to rtx_insn **.
11277         (parse_add_or_inc): Strengthen param "insn" from rtx to
11278         rtx_insn *.
11279         (find_inc): Likewise for locals "insn" and "other_insn" (three of
11280         the latter).
11281         (merge_in_block): Likewise for locals "insn", "curr",
11282         "other_insn".
11283         (pass_inc_dec::execute): Update allocations of the arrays to
11284         reflect the stronger types.
11286 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
11288         * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
11289         and "jump" from rtx to rtx_insn *.  Strengthen local "top_label"
11290         from rtx to rtx_code_label *.
11292 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
11294         * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
11295         to rtx_insn *.
11297 2014-08-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
11299         * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
11300         generated a warning and prevented bootstrapping the compiler.
11302 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
11304         * rtl.h (delete_related_insns): Strengthen return type from rtx to
11305         rtx_insn *.
11307         * jump.c (delete_related_insns): Likewise, also for locals "next"
11308         and "prev".
11310 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
11312         * genautomata.c (output_internal_insn_latency_func): When writing
11313         the function "internal_insn_latency" to insn-automata.c,
11314         strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
11315         allowing the optional guard function of (define_bypass) clauses to
11316         expect a pair of rtx_insn *, rather than a pair of rtx.
11317         (output_insn_latency_func): When writing the function
11318         "insn_latency", add an "uncast_" prefix to params "insn" and
11319         "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
11320         using checked casts from the params, thus enabling the above
11321         change to the generated "internal_insn_latency" function.
11323 2014-08-21  Jan Hubicka  <hubicka@ucw.cz>
11325         PR tree-optimization/62091
11326         * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
11327         handle correctly arrays.
11328         (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
11329         inheritance binfos.
11330         (record_known_type): Walk into inner type.
11331         (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
11332         condition on no type changes.
11334 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
11336         * genattrtab.c (write_attr_get): Within the generated get_attr_
11337         functions, rename param "insn" to "uncast_insn" and reintroduce
11338         "insn" as an local rtx_insn * using a checked cast, so that "insn"
11339         is an rtx_insn * within insn-attrtab.c
11341 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
11343         * output.h (peephole): Strengthen return type from rtx to
11344         rtx_insn *.
11345         * rtl.h (delete_for_peephole): Likewise for both params.
11346         * genpeep.c (main): In generated "peephole" function, strengthen
11347         return type and local "insn" from rtx to rtx_insn *.  For now,
11348         rename param "ins1" to "uncast_ins1", adding "ins1" back as an
11349         rtx_insn *, with a checked cast.
11350         * jump.c (delete_for_peephole): Strengthen params "from", "to" and
11351         locals "insn", "next", "prev" from rtx to rtx_insn *.
11353 2014-08-21  Marc Glisse  <marc.glisse@inria.fr>
11355         PR tree-optimization/62112
11356         * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
11357         * gimple-iterator.h (gsi_replace): Return bool.
11358         * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
11359         moved from ref_may_alias_global_p.
11360         (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
11361         New overloads.
11362         (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
11363         (stmt_kills_ref_p_1): Rename...
11364         (stmt_kills_ref_p): ... to this.
11365         * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
11366         stmt_kills_ref_p): Declare.
11367         * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
11368         Move the self-assignment case...
11369         (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
11371 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
11373         * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
11375         * emit-rtl.c (try_split): Likewise, also for locals "before" and
11376         "after".  For now, don't strengthen param "trial", which requires
11377         adding checked casts when returning it.
11379 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
11381         * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
11382         "label" from rtx to rtx_code_label *.  Strengthen param 1 of
11383         "var_location" hook from rtx to rtx_insn *.
11384         (debug_nothing_rtx): Delete in favor of...
11385         (debug_nothing_rtx_code_label): New prototype.
11386         (debug_nothing_rtx_rtx): Delete unused prototype.
11387         (debug_nothing_rtx_insn): New prototype.
11389         * final.c (final_scan_insn): Add checked cast to rtx_insn * when
11390         invoking debug_hooks->var_location (in two places, one in a NOTE
11391         case of a switch statement, the other guarded by a CALL_P
11392         conditional.  Add checked cast to rtx_code_label * when invoking
11393         debug_hooks->label (within CODE_LABEL case of switch statement).
11395         * dbxout.c (dbx_debug_hooks): Update "label" hook from
11396         debug_nothing_rtx to debug_nothing_rtx_code_label.  Update
11397         "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
11398         (xcoff_debug_hooks): Likewise.
11399         * debug.c (do_nothing_debug_hooks): Likewise.
11400         (debug_nothing_rtx): Delete in favor of...
11401         (debug_nothing_rtx_insn): New function.
11402         (debug_nothing_rtx_rtx): Delete unused function.
11403         (debug_nothing_rtx_code_label): New function.
11404         * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
11405         debug_nothing_rtx to debug_nothing_rtx_code_label.
11406         (dwarf2out_var_location): Strengthen param "loc_note" from rtx
11407         to rtx_insn *.
11408         * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
11409         debug_nothing_rtx to debug_nothing_rtx_insn.
11410         (sdbout_label): Strengthen param "insn" from rtx to
11411         rtx_code_label *.
11412         * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
11413         debug_nothing_rtx to debug_nothing_rtx_code_label.  Update
11414         "var_location" hook from debug_nothing_rtx to
11415         debug_nothing_rtx_insn.
11417 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
11419         * recog.h (insn_output_fn): Update this function typedef to match
11420         the changes below to the generated output functions, strengthening
11421         the 2nd param from rtx to rtx_insn *.
11423         * final.c (get_insn_template): Add a checked cast to rtx_insn * on
11424         insn when invoking an output function, to match the new signature
11425         of insn_output_fn with a stronger second param.
11427         * genconditions.c (write_header): In the generated code for
11428         gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
11429         to match the other changes in this patch.
11431         * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
11432         the generated "gen_" functions from rtx to rtx_insn * within their
11433         implementations.
11435         * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
11436         the subfunctions within the generated "recog_", "split", "peephole2"
11437         function trees from rtx to rtx_insn *.  For now, the top-level
11438         generated functions ("recog", "split", "peephole2") continue to
11439         take a plain rtx for "insn", to avoid introducing dependencies on
11440         other patches.  Rename this 2nd param from "insn" to
11441         "uncast_insn", and reintroduce "insn" as a local variable of type
11442         rtx_insn *, initialized at the top of the generated function with
11443         a checked cast on "uncast_insn".
11444         (make_insn_sequence): Strengthen the 1st param "curr_insn" of
11445         the generated "gen_" functions from rtx to rtx_insn * within their
11446         prototypes.
11448         * genoutput.c (process_template): Strengthen the 2nd param within
11449         the generated "output_" functions "insn" from rtx to rtx_insn *.
11451 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
11453         * tree-profile.c (tree_profiling): Skip external functions
11454         when doing coverage instrumentation.
11455         * cgraphunit.c (compile): Do not assert that all nodes are reachable.
11457 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11459         * config/rs6000/altivec.h (vec_cpsgn): New #define.
11460         (vec_mergee): Likewise.
11461         (vec_mergeo): Likewise.
11462         (vec_cntlz): Likewise.
11463         * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
11464         entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
11465         VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
11466         VMRGEW, and VMRGOW.
11467         * doc/extend.texi: Document various forms of vec_cpsgn,
11468         vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
11469         vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
11470         vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
11471         vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
11472         vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
11474 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11476         * config/rs6000/rs6000.c (context.h): New include.
11477         (tree-pass.h): Likewise.
11478         (make_pass_analyze_swaps): New decl.
11479         (rs6000_option_override): Register pass_analyze_swaps.
11480         (swap_web_entry): New subsclass of web_entry_base (df.h).
11481         (special_handling_values): New enum.
11482         (union_defs): New function.
11483         (union_uses): Likewise.
11484         (insn_is_load_p): Likewise.
11485         (insn_is_store_p): Likewise.
11486         (insn_is_swap_p): Likewise.
11487         (rtx_is_swappable_p): Likewise.
11488         (insn_is_swappable_p): Likewise.
11489         (chain_purpose): New enum.
11490         (chain_contains_only_swaps): New function.
11491         (mark_swaps_for_removal): Likewise.
11492         (swap_const_vector_halves): Likewise.
11493         (adjust_subreg_index): Likewise.
11494         (permute_load): Likewise.
11495         (permute_store): Likewise.
11496         (handle_special_swappables): Likewise.
11497         (replace_swap_with_copy): Likewise.
11498         (dump_swap_insn_table): Likewise.
11499         (rs6000_analyze_swaps): Likewise.
11500         (pass_data_analyze_swaps): New pass_data.
11501         (pass_analyze_swaps): New rtl_opt_pass.
11502         (make_pass_analyze_swaps): New function.
11503         * config/rs6000/rs6000.opt (moptimize-swaps): New option.
11505 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
11507         * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
11508         type from rtx to rtx_insn *.
11509         (create_copy_of_insn_rtx): Likewise.
11510         * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
11511         (create_copy_of_insn_rtx): Likewise, also for local "res".
11513 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
11515         * rtl.h (find_first_parameter_load): Strengthen return type from
11516         rtx to rtx_insn *.
11517         * rtlanal.c (find_first_parameter_load): Strengthen return type
11518         from rtx to rtx_insn *.  Add checked cast for now, to postpone
11519         strengthening the params.
11521 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11523         PR fortran/44054
11524         * diagnostic.c: Set default caret.
11525         (diagnostic_show_locus): Use it. Tell pretty-printer that a new
11526         line is needed.
11527         * diagnostic.h (struct diagnostic_context):
11529 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
11531         * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
11532         (sel_bb_head): Strengthen return type insn_t (currently just an
11533         rtx) to rtx_insn *.
11534         (sel_bb_end): Likewise.
11536         * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
11537         (sel_bb_head): Strengthen return type and local "head" from
11538         insn_t (currently just an rtx) to rtx_insn *.
11539         (sel_bb_end): Likewise for return type.
11540         (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
11541         working with insn.
11543 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
11545         * basic-block.h (get_last_bb_insn): Strengthen return type from
11546         rtx to rtx_insn *.
11547         * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
11548         end".
11550 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11552         PR fortran/44054
11553         * diagnostic.c (default_diagnostic_finalizer): Move caret printing
11554          to here ...
11555         (diagnostic_report_diagnostic): ... from here.
11556         * toplev.c (general_init): Move code to c-family.
11558 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11560         * df.h (web_entry_base): Replace existing struct web_entry with a
11561         new class web_entry_base with only the predecessor member.
11562         (unionfind_root): Remove declaration and move to class member.
11563         (unionfind_union): Remove declaration and move to friend
11564         function.
11565         (union_defs): Remove declaration.
11566         * web.c (web_entry_base::unionfind_root): Modify to be member
11567         function and adjust accessors.
11568         (unionfind_union): Modify to be friend function and adjust
11569         accessors.
11570         (web_entry): New subclass of web_entry_base containing the reg
11571         member.
11572         (union_match_dups): Modify for struct -> class changes.
11573         (union_defs): Likewise.
11574         (entry_register): Likewise.
11575         (pass_web::execute): Likewise.
11577 2014-08-20  Bill Schmidt  <wschmidt@vnet.ibm.com>
11579         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
11580         builtin define __VEC_ELEMENT_REG_ORDER__.
11582 2014-08-20  Martin Jambor  <mjambor@suse.cz>
11583             Wei Mi  <wmi@google.com>
11585         PR ipa/60449
11586         PR middle-end/61776
11587         * tree-ssa-operands.c (update_stmt_operands): Remove
11588         MODIFIED_NORETURN_CALLS.
11589         * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
11590         (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
11591         (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
11592         (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
11593         * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
11594         * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
11595         (gimple_call_set_ctrl_altering): New func.
11596         (gimple_call_ctrl_altering_p): Ditto.
11597         * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
11598         (make_blocks): Use gimple_call_initialize_ctrl_altering.
11599         (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
11600         (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
11601         remove MODIFIED_NORETURN_CALLS.
11603 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
11605         * coverage.c (coverage_compute_profile_id): Return non-0;
11606         also handle symbols with unique name.
11607         (coverage_end_function): Do not skip DECL_EXTERNAL functions.
11609 2014-08-20  Steve Ellcey  <sellcey@mips.com>
11611         PR middle-end/49191
11612         * doc/sourcebuild.texi (non_strict_align): New.
11614 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
11616         * cgraphunit.c (ipa_passes, compile): Reshedule
11617         symtab_remove_unreachable_nodes passes; update comments.
11618         * ipa-inline.c (pass_data_ipa_inline): Do not schedule
11619         TODO_remove_functions before the pass; the functions ought to be
11620         already removed.
11621         * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
11622         TODO_remove_functions.
11623         * passes.c (pass_data_early_local_passes): Do not schedule function
11624         removal.
11625         (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
11627 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11629         PR c/59304
11630         * opts-common.c (set_option): Call diagnostic_classify_diagnostic
11631         before setting the option.
11632         * diagnostic.c (diagnostic_classify_diagnostic): Record
11633         command-line status.
11635 2014-08-20  Richard Biener  <rguenther@suse.de>
11637         PR lto/62190
11638         * tree.c (build_common_tree_nodes): Use make_or_reuse_type
11639         to build uint{16,32,64}_type_node.
11641 2014-08-20  Terry Guo  <terry.guo@arm.com>
11643         * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
11644         with immediate_operand.
11646 2014-08-20  David Malcolm  <dmalcolm@redhat.com>
11648         * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
11649         "insn" from an as_a to a safe_as_a, for the case when "insn" is
11650         NULL.
11652 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11654         PR preprocessor/51303
11655         * incpath.c (remove_duplicates): Use cpp_warning.
11657 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11659         PR c/60975
11660         PR c/53063
11661         * doc/options.texi (CPP): Document it.
11662         * doc/invoke.texi (Wvariadic-macros): Fix documentation.
11663         * optc-gen.awk: Handle CPP.
11664         * opth-gen.awk: Likewise.
11666 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11668         * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
11669         rtx_insn *.
11670         (duplicate_insn_chain): Likewise.
11671         * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
11672         rtx_insn *, also for locals "prevfirst" and "nextlast".  Add a
11673         checked cast for now (until we can strengthen the params in the
11674         same way).
11675         (duplicate_insn_chain): Likewise.
11677 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11679         * rtl.h (next_cc0_user): Strengthen return type from rtx to
11680         rtx_insn *.
11681         (prev_cc0_setter): Likewise.
11683         * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
11684         rtx_insn *, adding checked casts for now as necessary.
11685         (prev_cc0_setter): Likewise.
11687 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11689         * expr.h (emit_move_insn): Strengthen return type from rtx to
11690         rtx_insn *.
11691         (emit_move_insn_1): Likewise.
11692         (emit_move_complex_push): Likewise.
11693         (emit_move_complex_parts): Likewise.
11695         * expr.c (emit_move_via_integer): Strengthen return type from rtx
11696         to rtx_insn *.  Replace use of NULL_RTX with NULL when working
11697         with insns.
11698         (emit_move_complex_push): Strengthen return type from rtx to
11699         rtx_insn *.
11700         (emit_move_complex): Likewise, also for local "ret".
11701         (emit_move_ccmode): Likewise.
11702         (emit_move_multi_word): Likewise for return type and locals
11703         "last_insn", "seq".
11704         (emit_move_insn_1): Likewise for return type and locals "result",
11705         "ret".
11706         (emit_move_insn): Likewise for return type and local "last_insn".
11707         (compress_float_constant): Likewise.
11709 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11711         * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
11712         from rtx to rtx_insn *.
11714         * rtl.h (emit_insn_before): Likewise.
11715         (emit_insn_before_noloc): Likewise.
11716         (emit_insn_before_setloc): Likewise.
11717         (emit_jump_insn_before): Likewise.
11718         (emit_jump_insn_before_noloc): Likewise.
11719         (emit_jump_insn_before_setloc): Likewise.
11720         (emit_call_insn_before): Likewise.
11721         (emit_call_insn_before_noloc): Likewise.
11722         (emit_call_insn_before_setloc): Likewise.
11723         (emit_debug_insn_before): Likewise.
11724         (emit_debug_insn_before_noloc): Likewise.
11725         (emit_debug_insn_before_setloc): Likewise.
11726         (emit_label_before): Likewise.
11727         (emit_insn_after): Likewise.
11728         (emit_insn_after_noloc): Likewise.
11729         (emit_insn_after_setloc): Likewise.
11730         (emit_jump_insn_after): Likewise.
11731         (emit_jump_insn_after_noloc): Likewise.
11732         (emit_jump_insn_after_setloc): Likewise.
11733         (emit_call_insn_after): Likewise.
11734         (emit_call_insn_after_noloc): Likewise.
11735         (emit_call_insn_after_setloc): Likewise.
11736         (emit_debug_insn_after): Likewise.
11737         (emit_debug_insn_after_noloc): Likewise.
11738         (emit_debug_insn_after_setloc): Likewise.
11739         (emit_label_after): Likewise.
11740         (emit_insn): Likewise.
11741         (emit_debug_insn): Likewise.
11742         (emit_jump_insn): Likewise.
11743         (emit_call_insn): Likewise.
11744         (emit_label): Likewise.
11745         (gen_clobber): Likewise.
11746         (emit_clobber): Likewise.
11747         (gen_use): Likewise.
11748         (emit_use): Likewise.
11749         (emit): Likewise.
11751         (emit_barrier_before): Strengthen return type from rtx to
11752         rtx_barrier *.
11753         (emit_barrier_after): Likewise.
11754         (emit_barrier): Likewise.
11756         * emit-rtl.c (emit_pattern_before_noloc):  Strengthen return type
11757         from rtx to rtx_insn *.  Add checked casts for now when converting
11758         "last" from rtx to rtx_insn *.
11759         (emit_insn_before_noloc): Likewise for return type.
11760         (emit_jump_insn_before_noloc): Likewise.
11761         (emit_call_insn_before_noloc): Likewise.
11762         (emit_debug_insn_before_noloc): Likewise.
11763         (emit_barrier_before): Strengthen return type and local "insn"
11764         from rtx to rtx_barrier *.
11765         (emit_label_before): Strengthen return type from rtx to
11766         rtx_insn *.  Add checked cast for now when returning param
11767         (emit_pattern_after_noloc): Strengthen return type from rtx to
11768         rtx_insn *.  Add checked casts for now when converting "last" from
11769         rtx to rtx_insn *.
11770         (emit_insn_after_noloc): Strengthen return type from rtx to
11771         rtx_insn *.
11772         (emit_jump_insn_after_noloc): Likewise.
11773         (emit_call_insn_after_noloc): Likewise.
11774         (emit_debug_insn_after_noloc): Likewise.
11775         (emit_barrier_after): Strengthen return type from rtx to
11776         rtx_barrier *.
11777         (emit_label_after): Strengthen return type from rtx to rtx_insn *.
11778         Add checked cast for now when converting "label" from rtx to
11779         rtx_insn *.
11780         (emit_pattern_after_setloc): Strengthen return type from rtx to
11781         rtx_insn *.  Add checked casts for now when converting "last" from
11782         rtx to rtx_insn *.
11783         (emit_pattern_after): Strengthen return type from rtx to
11784         rtx_insn *.
11785         (emit_insn_after_setloc): Likewise.
11786         (emit_insn_after): Likewise.
11787         (emit_jump_insn_after_setloc): Likewise.
11788         (emit_jump_insn_after): Likewise.
11789         (emit_call_insn_after_setloc): Likewise.
11790         (emit_call_insn_after): Likewise.
11791         (emit_debug_insn_after_setloc): Likewise.
11792         (emit_debug_insn_after): Likewise.
11793         (emit_pattern_before_setloc): Likewise.  Add checked casts for now
11794         when converting "last" from rtx to rtx_insn *.
11795         (emit_pattern_before): Strengthen return type from rtx to
11796         rtx_insn *.
11797         (emit_insn_before_setloc): Likewise.
11798         (emit_insn_before): Likewise.
11799         (emit_jump_insn_before_setloc): Likewise.
11800         (emit_jump_insn_before): Likewise.
11801         (emit_call_insn_before_setloc): Likewise.
11802         (emit_call_insn_before): Likewise.
11803         (emit_debug_insn_before_setloc): Likewise.
11804         (emit_debug_insn_before): Likewise.
11805         (emit_insn): Strengthen return type and locals "last", "insn",
11806         "next" from rtx to rtx_insn *.  Add checked cast to rtx_insn
11807         within cases where we know we have an insn.
11808         (emit_debug_insn): Likewise.
11809         (emit_jump_insn): Likewise.
11810         (emit_call_insn): Strengthen return type and local "insn" from rtx
11811         to rtx_insn *.
11812         (emit_label): Strengthen return type from rtx to rtx_insn *.  Add
11813         a checked cast to rtx_insn * for now on "label".
11814         (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
11815         (emit_clobber): Strengthen return type from rtx to rtx_insn *.
11816         (emit_use): Likewise.
11817         (gen_use): Likewise, also for local "seq".
11818         (emit): Likewise for return type and local "insn".
11819         (rtx_insn): Likewise for return type and local "new_rtx".
11821         * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
11822         from rtx to rtx_barrier *.
11824         * config/sh/sh.c (output_stack_adjust): Since emit_insn has
11825         changed return type from rtx to rtx_insn *, we must update
11826         "emit_fn" type, and this in turn means updating...
11827         (frame_insn): ...this.  Strengthen return type from rtx to
11828         rtx_insn *.  Introduce a new local "insn" of the appropriate type.
11830 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11832         * emit-rtl.c (emit_jump_table_data): Strengthen return type from
11833         rtx to rtx_jump_table_data *.  Also for local.
11834         * rtl.h (emit_jump_table_data): Likewise.
11836 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11838         * basic-block.h (create_basic_block_structure): Strengthen third
11839         param "bb_note" from rtx to rtx_note *.
11840         * rtl.h (emit_note_before): Strengthen return type from rtx to
11841         rtx_note *.
11842         (emit_note_after): Likewise.
11843         (emit_note): Likewise.
11844         (emit_note_copy): Likewise.  Also, strengthen param similarly.
11845         * function.h (struct rtl_data): Strengthen field
11846         "x_stack_check_probe_note" from rtx to rtx_note *.
11848         * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
11849         from rtx to rtx_note *.
11850         * cfgrtl.c (create_basic_block_structure): Strengthen third param
11851         "bb_note" from rtx to rtx_note *.
11852         (duplicate_insn_chain): Likewise for local "last".  Add a checked cast
11853         when calling emit_note_copy.
11854         * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
11855         rtx_note *.
11856         (emit_note_after): Likewise.
11857         (emit_note_before): Likewise.
11858         (emit_note_copy): Likewise.  Also, strengthen param similarly.
11859         (emit_note): Likewise.
11860         * except.c (emit_note_eh_region_end): Likewise for return type.
11861         Strengthen local "next" from rtx to rtx_insn *.
11862         (convert_to_eh_region_ranges): Strengthen local "note"
11863         from rtx to rtx_note *.
11864         * final.c (change_scope): Likewise.
11865         (reemit_insn_block_notes): Likewise, for both locals named "note".
11866         Also, strengthen local "insn" from rtx to rtx_insn *.
11867         * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
11868         rtx to rtx_note *.
11869         * reg-stack.c (compensate_edge): Likewise for local "after". Also,
11870         strengthen local "seq" from rtx to rtx_insn *.
11871         * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
11872         to rtx_note *.
11873         * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
11874         vec<rtx_note *>.
11875         (get_bb_note_from_pool): Strengthen return type from rtx to
11876         rtx_note *.
11877         (sel_create_basic_block): Strengthen local "new_bb_note" from
11878         insn_t to rtx_note *.
11879         * var-tracking.c (emit_note_insn_var_location): Strengthen local
11880         "note" from rtx to rtx_note *.
11881         (emit_notes_in_bb): Likewise.
11883 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11885         * function.h (struct rtl_data): Strengthen field
11886         "x_parm_birth_insn" from rtx to rtx_insn *.
11887         * function.c (struct assign_parm_data_all): Strengthen fields
11888         "first_conversion_insn" and "last_conversion_insn" from rtx to
11889         rtx_insn *.
11891 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11893         * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
11894         to rtx_insn *; also for local "var_end_seq".
11895         (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
11896         (maybe_cleanup_end_of_block): Likewise for param "last" and local
11897         "insn".
11898         (expand_gimple_cond): Likewise for locals "last2" and "last".
11899         (mark_transaction_restart_calls): Likewise for local "insn".
11900         (expand_gimple_stmt): Likewise for return type and locals "last"
11901         and "insn".
11902         (expand_gimple_tailcall): Likewise for locals "last2" and "last".
11903         (avoid_complex_debug_insns): Likewise for param "insn".
11904         (expand_debug_locations): Likewise for locals "insn", "last",
11905         "prev_insn" and "insn2".
11906         (expand_gimple_basic_block): Likewise for local "last".
11907         (construct_exit_block): Likewise for locals "head", "end",
11908         "orig_end".
11909         (pass_expand::execute): Likewise for locals "var_seq",
11910         "var_ret_seq", "next".
11912 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11914         * asan.h (asan_emit_stack_protection): Strengthen return type from
11915         rtx to rtx_insn *.
11916         * asan.c (asan_emit_stack_protection): Likewise.  Add local
11917         "insns" to hold the return value.
11919 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11921         * basic-block.h (bb_note): Strengthen return type from rtx to
11922         rtx_note *.
11923         * sched-int.h (bb_note): Likewise.
11924         * cfgrtl.c (bb_note): Likewise.  Add a checked cast to rtx_note *.
11926 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11928         * rtl.h (make_insn_raw): Strengthen return type from rtx to
11929         rtx_insn *.
11931         * emit-rtl.c (make_insn_raw): Strengthen return type and local
11932         "insn" from rtx to rtx_insn *.
11933         (make_debug_insn_raw): Strengthen return type from rtx to
11934         rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
11935         (make_jump_insn_raw):  Strengthen return type from rtx to
11936         rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
11937         (make_call_insn_raw):  Strengthen return type from rtx to
11938         rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
11939         (emit_pattern_before_noloc): Strengthen return type of "make_raw"
11940         callback from rtx to rtx_insn *; likewise for local "insn" and
11941         "next", adding a checked cast to rtx_insn in the relevant cases of
11942         the switch statement.
11943         (emit_pattern_after_noloc): Strengthen return type of "make_raw"
11944         callback from rtx to rtx_insn *.
11945         (emit_pattern_after_setloc): Likewise.
11946         (emit_pattern_after): Likewise.
11947         (emit_pattern_before_setloc): Likewise.
11948         (emit_pattern_before): Likewise.
11950 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11952         * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
11953         rtx_call_insn *.
11954         * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
11955         accepting an rtx_insn *.
11956         (last_call_insn): Strengthen return type from rtx to
11957         rtx_call_insn *.
11959 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11961         * rtl.h (delete_trivially_dead_insns): Strengthen initial param
11962         "insns" from rtx to rtx_insn *.
11963         * cse.c (delete_trivially_dead_insns): Likewise, also do it for
11964         locals "insn" and "prev".
11966 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11968         * rtl.h (tablejump_p): Strengthen third param from rtx * to
11969         rtx_jump_table_data **.
11971         * cfgbuild.c (make_edges): Introduce local "table", using it in
11972         place of "tmp" for jump table data.
11973         (find_bb_boundaries): Strengthen local "table" from rtx to
11974         rtx_jump_table_data *.
11975         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
11976         (outgoing_edges_match): Likewise for locals "table1" and "table2".
11977         (try_crossjump_to_edge): Likewise.
11978         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
11979         "table".
11980         (patch_jump_insn): Introduce local "table", using it in place of
11981         "tmp" for jump table data.
11982         (force_nonfallthru_and_redirect): Introduce local "table", so that
11983         call to tablejump_p can receive an rtx_jump_table_data **.  Update
11984         logic around the call to overwrite "note" appropriately if
11985         tablejump_p returns non-zero.
11986         (get_last_bb_insn): Introduce local "table", using it in place of
11987         "tmp" for jump table data.
11988         * dwarf2cfi.c (create_trace_edges): Likewise.
11990         * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
11991         from rtx to rtx_jump_table_data *.
11992         (create_fix_barrier): Strengthen local "tmp" from rtx to
11993         rtx_jump_table_data *.
11994         (arm_reorg): Likewise for local "table".
11996         * config/s390/s390.c (s390_chunkify_start): Likewise.
11998         * config/spu/spu.c (spu_emit_branch_hint): Likewise.
12000         * jump.c (delete_related_insns): Strengthen local "lab_next" from
12001         rtx to rtx_jump_table_data *.
12003         * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
12004         rtx_jump_table_data **.  Add a checked cast when writing through
12005         the pointer: we know there that local "table" is non-NULL and that
12006         JUMP_TABLE_DATA_P (table) holds.
12007         (label_is_jump_target_p): Introduce local "table", using it in
12008         place of "tmp" for jump table data.
12010 2014-08-19  Marek Polacek  <polacek@redhat.com>
12012         PR c++/62153
12013         * doc/invoke.texi: Document -Wbool-compare.
12015 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12017         * rtl.h (entry_of_function): Strengthen return type from rtx to
12018         rtx_insn *.
12019         * cfgrtl.c (entry_of_function): Likewise.
12021 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12023         * emit-rtl.h (get_insns): Strengthen return type from rtx to
12024         rtx_insn *, adding a checked cast for now.
12025         (get_last_insn): Likewise.
12027 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12029         * rtl.h (gen_label_rtx): Strengthen return type from rtx to
12030         rtx_code_label *.
12032         * emit-rtl.c (gen_label_rtx): Likewise.
12034 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12036         * rtl.h (previous_insn): Strengthen return type from rtx to
12037         rtx_insn *.
12038         (next_insn): Likewise.
12039         (prev_nonnote_insn): Likewise.
12040         (prev_nonnote_insn_bb): Likewise.
12041         (next_nonnote_insn): Likewise.
12042         (next_nonnote_insn_bb): Likewise.
12043         (prev_nondebug_insn): Likewise.
12044         (next_nondebug_insn): Likewise.
12045         (prev_nonnote_nondebug_insn): Likewise.
12046         (next_nonnote_nondebug_insn): Likewise.
12047         (prev_real_insn): Likewise.
12048         (next_real_insn): Likewise.
12049         (prev_active_insn): Likewise.
12050         (next_active_insn): Likewise.
12052         * emit-rtl.c (next_insn): Strengthen return type from rtx to
12053         rtx_insn *, adding a checked cast.
12054         (previous_insn): Likewise.
12055         (next_nonnote_insn): Likewise.
12056         (next_nonnote_insn_bb): Likewise.
12057         (prev_nonnote_insn): Likewise.
12058         (prev_nonnote_insn_bb): Likewise.
12059         (next_nondebug_insn): Likewise.
12060         (prev_nondebug_insn): Likewise.
12061         (next_nonnote_nondebug_insn): Likewise.
12062         (prev_nonnote_nondebug_insn): Likewise.
12063         (next_real_insn): Likewise.
12064         (prev_real_insn): Likewise.
12065         (next_active_insn): Likewise.
12066         (prev_active_insn): Likewise.
12068         * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
12069         param "stepfunc" so that it returns an rtx_insn * rather than an
12070         rtx, to track the change to prev_nonnote_insn_bb, which is the
12071         only function this is called with.
12072         * config/sh/sh.c (sh_find_set_of_reg): Likewise.
12074 2014-08-19  Jan Hubicka  <hubicka@ucw.cz>
12076         * ipa-visibility.c (update_visibility_by_resolution_info): Fix
12077         assert.
12079 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12081         * coretypes.h (class rtx_debug_insn): Add forward declaration.
12082         (class rtx_nonjump_insn): Likewise.
12083         (class rtx_jump_insn): Likewise.
12084         (class rtx_call_insn): Likewise.
12085         (class rtx_jump_table_data): Likewise.
12086         (class rtx_barrier): Likewise.
12087         (class rtx_code_label): Likewise.
12088         (class rtx_note): Likewise.
12090         * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
12091         adding the invariant DEBUG_INSN_P (X).
12092         (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
12093         the invariant NONJUMP_INSN_P (X).
12094         (class rtx_jump_insn): New, a subclass of rtx_insn, adding
12095         the invariant JUMP_P (X).
12096         (class rtx_call_insn): New, a subclass of rtx_insn, adding
12097         the invariant CALL_P (X).
12098         (class rtx_jump_table): New, a subclass of rtx_insn, adding the
12099         invariant JUMP_TABLE_DATA_P (X).
12100         (class rtx_barrier): New, a subclass of rtx_insn, adding the
12101         invariant BARRIER_P (X).
12102         (class rtx_code_label): New, a subclass of rtx_insn, adding
12103         the invariant LABEL_P (X).
12104         (class rtx_note): New, a subclass of rtx_insn, adding
12105         the invariant NOTE_P(X).
12106         (is_a_helper <rtx_debug_insn *>::test): New.
12107         (is_a_helper <rtx_nonjump_insn *>::test): New.
12108         (is_a_helper <rtx_jump_insn *>::test): New.
12109         (is_a_helper <rtx_call_insn *>::test): New.
12110         (is_a_helper <rtx_jump_table_data *>::test): New functions,
12111         overloaded for both rtx and rtx_insn *.
12112         (is_a_helper <rtx_barrier *>::test): New.
12113         (is_a_helper <rtx_code_label *>::test): New functions, overloaded
12114         for both rtx and rtx_insn *.
12115         (is_a_helper <rtx_note *>::test): New.
12117 2014-08-19  Marek Polacek  <polacek@redhat.com>
12119         * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
12120         CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
12121         * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
12122         CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
12124 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12126         * sel-sched-ir.h (BND_TO): insn_t will eventually be an
12127         rtx_insn *.  To help with transition, for now, convert from an
12128         access macro into a pair of functions: BND_TO, returning an
12129         rtx_insn *, and...
12130         (SET_BND_TO): New function, for use where BND_TO is used as an
12131         lvalue.
12133         * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
12134         SET_BND_TO.
12135         (BND_TO): New function, adding a checked cast.
12136         (SET_BND_TO): New function.
12138         * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
12139         SET_BND_TO.
12140         (compute_av_set_on_boundaries): Likewise.
12142 2014-08-19  H.J. Lu  <hongjiu.lu@intel.com>
12144         * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
12145         destination if it is used in source.
12146         (*clz<mode>2_lzcnt_falsedep_1): Likewise.
12147         (*popcount<mode>2_falsedep_1): Likewise.
12149 2014-08-19  H.J. Lu  <hongjiu.lu@intel.com>
12151         PR other/62168
12152         * configure.ac: Set install_gold_as_default to no first.
12153         * configure: Regenerated.
12155 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12157         * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
12158         "note_list" field will eventually be an rtx_insn *.  To help with
12159         transition, for now, convert from an access macro into a pair of
12160         functions: BB_NOTE_LIST, returning an rtx_insn *, and...
12161         (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
12162         used as an lvalue.
12164         * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
12165         of BB_NOTE_LIST to SET_BB_NOTE_LIST.
12167         * sel-sched-ir.c (init_bb): Likewise.
12168         (sel_restore_notes): Likewise.
12169         (move_bb_info): Likewise.
12170         (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
12171         (SET_BB_NOTE_LIST): New function.
12173 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12175         * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
12176         field will eventually be an rtx_insn *.  To help with transition,
12177         for now, convert from an access macro into a pair of functions:
12178         VINSN_INSN_RTX, returning an rtx_insn *, and...
12179         (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
12180         is used as an lvalue.
12182         * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
12183         SET_VINSN_INSN_RTX where it's used as an lvalue.
12184         (VINSN_INSN_RTX): New function.
12185         (SET_VINSN_INSN_RTX): New function.
12187 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12189         * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
12190         eventually be rtx_insn *, but to help with transition, for now,
12191         convert from an access macro into a pair of functions: DEP_PRO
12192         returning an rtx_insn * and...
12193         (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
12194         lvalue, returning an rtx&.
12195         (DEP_CON): Analogous changes to DEP_PRO above.
12196         (SET_DEP_CON): Likewise.
12198         * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
12199         an lvalue to SET_DEP_CON.
12200         * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
12201         (sd_copy_back_deps): Likewise for DEP_CON.
12202         (DEP_PRO): New function, adding a checked cast for now.
12203         (DEP_CON): Likewise.
12204         (SET_DEP_PRO): New function.
12205         (SET_DEP_CON): Likewise.
12207 2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
12209         * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
12210         (extra_options): Add i386/cygwin.opt.
12211         * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
12212         (CPP_SPEC): Accept -pthread.
12213         (LINK_SPEC): Ditto.
12214         (GOMP_SELF_SPECS): Update comment.
12215         * config/i386/cygwin.opt: New file for -pthread flag.
12217 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12219         * df-core.c (DF_REF_INSN): New, using a checked cast for now.
12220         * df.h (DF_REF_INSN): Convert from a macro to a function, so
12221         that we can return an rtx_insn *.
12223 2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
12225         * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
12226         when building executables, not DLLs.  Add --large-address-aware
12227         under the same conditions.
12228         * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
12229         when building executables, not DLLs.  Add --large-address-aware
12230         under the same conditions when using -m32.
12232         * config/i386/cygwin-stdint.h: Throughout, make type
12233         definitions dependent on target architecture, not host.
12235 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12237         * rtl.h (PREV_INSN): Convert to an inline function.  Strengthen
12238         the return type from rtx to rtx_insn *,  which will enable various
12239         conversions in followup patches.  For now this is is done by a
12240         checked cast.
12241         (NEXT_INSN): Likewise.
12242         (SET_PREV_INSN): Convert to an inline function.  This is intended
12243         for use as an lvalue, and so returns an rtx& to allow in-place
12244         modification.
12245         (SET_NEXT_INSN): Likewise.
12247 2014-07-08  Mark Wielaard  <mjw@redhat.com>
12249         PR debug/59051
12250         * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
12252 2014-08-19  Marek Polacek  <polacek@redhat.com>
12254         PR c/61271
12255         * cgraphunit.c (handle_alias_pairs): Fix condition.
12257 2014-08-19  Richard Biener  <rguenther@suse.de>
12259         * gimple-fold.c (fold_gimple_assign): Properly build a
12260         null-pointer constant when devirtualizing addresses.
12262 2014-07-07  Mark Wielaard  <mjw@redhat.com>
12264         * dwarf2out.c (decl_quals): New function.
12265         (modified_type_die): Take one cv_quals argument instead of two,
12266         one for const and one for volatile.
12267         (add_type_attribute): Likewise.
12268         (generic_parameter_die): Call add_type_attribute with one modifier
12269         argument.
12270         (base_type_for_mode): Likewise.
12271         (add_bounds_info): Likewise.
12272         (add_subscript_info): Likewise.
12273         (gen_array_type_die): Likewise.
12274         (gen_descr_array_type_die): Likewise.
12275         (gen_entry_point_die): Likewise.
12276         (gen_enumeration_type_die): Likewise.
12277         (gen_formal_parameter_die): Likewise.
12278         (gen_subprogram_die): Likewise.
12279         (gen_variable_die): Likewise.
12280         (gen_const_die): Likewise.
12281         (gen_field_die): Likewise.
12282         (gen_pointer_type_die): Likewise.
12283         (gen_reference_type_die): Likewise.
12284         (gen_ptr_to_mbr_type_die): Likewise.
12285         (gen_inheritance_die): Likewise.
12286         (gen_subroutine_type_die): Likewise.
12287         (gen_typedef_die): Likewise.
12288         (force_type_die): Likewise.
12290 2014-08-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12292         * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
12293         if unset.
12294         * configure: Regenerate.
12296 2014-08-19  Richard Biener  <rguenther@suse.de>
12298         * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
12299         DECL_EXTERNALs in BLOCKs as non-references.
12300         * tree-streamer-out.c (streamer_write_chain): Likewise.
12302 2014-08-19  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12303             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12304             Anna Tikhonova  <anna.tikhonova@intel.com>
12305             Ilya Tocar  <ilya.tocar@intel.com>
12306             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12307             Ilya Verbin  <ilya.verbin@intel.com>
12308             Kirill Yukhin  <kirill.yukhin@intel.com>
12309             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12311         * config/i386/sse.md
12312         (define_mode_iterator VI48_AVX512F): Delete.
12313         (define_mode_iterator VI48_AVX512F_AVX512VL): New.
12314         (define_mode_iterator VI2_AVX512VL): Ditto.
12315         (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
12316         Delete.
12317         (define_insn
12318         ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
12319         New.
12320         (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
12321         (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
12322         (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
12323         with VI48_AVX512F_AVX512VL): New.
12324         (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
12325         with VI2_AVX512VL): Ditto.
12327 2014-08-19  Marek Polacek  <polacek@redhat.com>
12329         * doc/invoke.texi: Document -Wc99-c11-compat.
12331 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12333         * rtl.h (PREV_INSN): Split macro in two: the existing one,
12334         for rvalues, and...
12335         (SET_PREV_INSN): New macro, for use as an lvalue.
12336         (NEXT_INSN, SET_NEXT_INSN): Likewise.
12338         * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
12339         PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
12340         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
12341         (fixup_abnormal_edges): Likewise.
12342         (unlink_insn_chain): Likewise.
12343         (fixup_reorder_chain): Likewise.
12344         (cfg_layout_delete_block): Likewise.
12345         (cfg_layout_merge_blocks): Likewise.
12346         * combine.c (update_cfg_for_uncondjump): Likewise.
12347         * emit-rtl.c (link_insn_into_chain): Likewise.
12348         (remove_insn): Likewise.
12349         (delete_insns_since): Likewise.
12350         (reorder_insns_nobb): Likewise.
12351         (emit_insn_after_1): Likewise.
12352         * final.c (rest_of_clean_state): Likewise.
12353         (final_scan_insn): Likewise.
12354         * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
12355         * haifa-sched.c (concat_note_lists): Likewise.
12356         (remove_notes): Likewise.
12357         (restore_other_notes): Likewise.
12358         (move_insn): Likewise.
12359         (unlink_bb_notes): Likewise.
12360         (restore_bb_notes): Likewise.
12361         * jump.c (delete_for_peephole): Likewise.
12362         * optabs.c (emit_libcall_block_1): Likewise.
12363         * reorg.c (emit_delay_sequence): Likewise.
12364         (fill_simple_delay_slots): Likewise.
12365         * sel-sched-ir.c (sel_move_insn): Likewise.
12366         (sel_remove_insn): Likewise.
12367         (get_bb_note_from_pool): Likewise.
12368         * sel-sched.c (move_nop_to_previous_block): Likewise.
12370         * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
12371         * config/c6x/c6x.c (gen_one_bundle): Likewise.
12372         (c6x_gen_bundles): Likewise.
12373         (hwloop_optimize): Likewise.
12374         * config/frv/frv.c (frv_function_prologue): Likewise.
12375         (frv_register_nop): Likewise.
12376         * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
12377         (ia64_reorg): Likewise.
12378         * config/mep/mep.c (mep_reorg_addcombine): Likewise.
12379         (mep_make_bundle): Likewise.
12380         (mep_bundle_insns): Likewise.
12381         * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
12382         * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
12383         * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
12385 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12387         * basic-block.h (BB_HEAD): Convert to a function.  Strengthen the
12388         return type from rtx to rtx_insn *.
12389         (BB_END): Likewise.
12390         (BB_HEADER): Likewise.
12391         (BB_FOOTER): Likewise.
12392         (SET_BB_HEAD): Convert to a function.
12393         (SET_BB_END): Likewise.
12394         (SET_BB_HEADER): Likewise.
12395         (SET_BB_FOOTER): Likewise.
12397         * cfgrtl.c (BB_HEAD): New function, from macro of same name.
12398         Strengthen the return type from rtx to rtx_insn *.  For now, this
12399         is done by adding a checked cast, but this will eventually
12400         become a field lookup.
12401         (BB_END): Likewise.
12402         (BB_HEADER): Likewise.
12403         (BB_FOOTER): Likewise.
12404         (SET_BB_HEAD): New function, from macro of same name.  This is
12405         intended for use as an lvalue, and so returns an rtx& to allow
12406         in-place modification.
12407         (SET_BB_END): Likewise.
12408         (SET_BB_HEADER): Likewise.
12409         (SET_BB_FOOTER): Likewise.
12411 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
12413         * basic-block.h (BB_HEAD): Split macro in two: the existing one,
12414         for rvalues, and...
12415         (SET_BB_HEAD): New macro, for use as a lvalue.
12416         (BB_END, SET_BB_END): Likewise.
12417         (BB_HEADER, SET_BB_HEADER): Likewise.
12418         (BB_FOOTER, SET_BB_FOOTER): Likewise.
12420         * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
12421         of BB_* macros into SET_BB_* macros.
12422         (fix_crossing_unconditional_branches): Likewise.
12423         * caller-save.c (save_call_clobbered_regs): Likewise.
12424         (insert_one_insn): Likewise.
12425         * cfgbuild.c (find_bb_boundaries): Likewise.
12426         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
12427         (outgoing_edges_match): Likewise.
12428         (try_optimize_cfg): Likewise.
12429         * cfgexpand.c (expand_gimple_cond): Likewise.
12430         (expand_gimple_tailcall): Likewise.
12431         (expand_gimple_basic_block): Likewise.
12432         (construct_exit_block): Likewise.
12433         * cfgrtl.c (delete_insn): Likewise.
12434         (create_basic_block_structure): Likewise.
12435         (rtl_delete_block): Likewise.
12436         (rtl_split_block): Likewise.
12437         (emit_nop_for_unique_locus_between): Likewise.
12438         (rtl_merge_blocks): Likewise.
12439         (block_label): Likewise.
12440         (try_redirect_by_replacing_jump): Likewise.
12441         (emit_barrier_after_bb): Likewise.
12442         (fixup_abnormal_edges): Likewise.
12443         (record_effective_endpoints): Likewise.
12444         (relink_block_chain): Likewise.
12445         (fixup_reorder_chain): Likewise.
12446         (fixup_fallthru_exit_predecessor): Likewise.
12447         (cfg_layout_duplicate_bb): Likewise.
12448         (cfg_layout_split_block): Likewise.
12449         (cfg_layout_delete_block): Likewise.
12450         (cfg_layout_merge_blocks): Likewise.
12451         * combine.c (update_cfg_for_uncondjump): Likewise.
12452         * emit-rtl.c (add_insn_after): Likewise.
12453         (remove_insn): Likewise.
12454         (reorder_insns): Likewise.
12455         (emit_insn_after_1): Likewise.
12456         * haifa-sched.c (get_ebb_head_tail): Likewise.
12457         (restore_other_notes): Likewise.
12458         (move_insn): Likewise.
12459         (sched_extend_bb): Likewise.
12460         (fix_jump_move): Likewise.
12461         * ifcvt.c (noce_process_if_block): Likewise.
12462         (dead_or_predicable): Likewise.
12463         * ira.c (update_equiv_regs): Likewise.
12464         * reg-stack.c (change_stack): Likewise.
12465         * sel-sched-ir.c (sel_move_insn): Likewise.
12466         * sel-sched.c (move_nop_to_previous_block): Likewise.
12468         * config/c6x/c6x.c (hwloop_optimize): Likewise.
12469         * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
12471 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
12473         * rtl.h (for_each_rtx_in_insn): New function.
12474         * rtlanal.c (for_each_rtx_in_insn): Likewise.
12476 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
12478         * coretypes.h (class rtx_insn): Add forward declaration.
12480         * rtl.h: Include is-a.h.
12481         (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
12482         workaround to ensure gengtype knows inheritance is occurring,
12483         whilst continuing to use the pre-existing special-casing for
12484         rtx_def.
12485         (class rtx_insn): New subclass of rtx_def, adding the
12486         invariant that we're dealing with something we can sanely use
12487         INSN_UID, NEXT_INSN, PREV_INSN on.
12488         (is_a_helper <rtx_insn *>::test): New.
12489         (is_a_helper <const rtx_insn *>::test): New.
12491 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
12493         * is-a.h (template<T, U> safe_as_a <U *p>) New function.
12495 2014-08-18  Jan Hubicka  <hubicka@ucw.cz>
12497         * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
12498         comdats as extern.
12500 2014-08-18  Jan Hubicka  <hubicka@ucw.cz>
12502         * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
12503         to BUILT_IN_UNREACHABLE.
12505 2014-08-18  Uros Bizjak  <ubizjak@gmail.com>
12507         PR target/62011
12508         * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
12509         New tune flag.
12510         * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
12511         * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
12512         (ffs<mode>2): Do not expand with tzcnt for
12513         TARGET_AVOID_FALSE_DEP_FOR_BMI.
12514         (ffssi2_no_cmove): Ditto.
12515         (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
12516         (ctz<mode>2): New expander.
12517         (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
12518         (*ctz<mode>2_falsedep): New insn.
12519         (*ctz<mode>2): Rename from ctz<mode>2.
12520         (clz<mode>2_lzcnt): New expander.
12521         (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
12522         (*clz<mode>2_lzcnt_falsedep): New insn.
12523         (*clz<mode>2): Rename from ctz<mode>2.
12524         (popcount<mode>2): New expander.
12525         (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
12526         (*popcount<mode>2_falsedep): New insn.
12527         (*popcount<mode>2): Rename from ctz<mode>2.
12528         (*popcount<mode>2_cmp): Remove.
12529         (*popcountsi2_cmp_zext): Ditto.
12531 2014-08-18  Ajit Agarwal  <ajitkum@xilinx.com>
12533         * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
12534         (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
12535         * config/microblaze/microblaze.h
12536         (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
12538 2014-08-18  H.J. Lu  <hongjiu.lu@intel.com>
12540         PR other/62168
12541         * configure.ac: Set install_gold_as_default to no for
12542          --enable-gold=no.
12543          * configure: Regenerated.
12545 2014-08-18 Roman Gareev  <gareevroman@gmail.com>
12547         * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
12548         * config.in: Add undef of HAVE_isl.
12549         * configure: Regenerate.
12550         * configure.ac: Add definition of HAVE_isl.
12551         * graphite-blocking.c: Add checking of HAVE_isl.
12552         * graphite-dependences.c: Likewise.
12553         * graphite-interchange.c: Likewise.
12554         * graphite-isl-ast-to-gimple.c: Likewise.
12555         * graphite-optimize-isl.c: Likewise.
12556         * graphite-poly.c: Likewise.
12557         * graphite-scop-detection.c: Likewise.
12558         * graphite-sese-to-poly.c: Likewise.
12559         * graphite.c: Likewise.
12560         * toplev.c: Replace the checking of HAVE_cloog with the checking
12561         of HAVE_isl.
12563 2014-08-18  Richard Biener  <rguenther@suse.de>
12565         PR tree-optimization/62090
12566         * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
12567         (fold_builtin_3): Do not fold snprintf.
12568         (fold_builtin_4): Likewise.
12569         * gimple-fold.c (gimple_fold_builtin_snprintf): New function
12570         moved from builtins.c.
12571         (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
12572         (gimple_fold_builtin): Do not fold sprintf here.
12574 2014-08-18  Richard Biener  <rguenther@suse.de>
12576         * gimple-fold.c (maybe_fold_reference): Move re-gimplification
12577         code to ...
12578         (maybe_canonicalize_mem_ref_addr): ... this function.
12579         (fold_stmt_1): Apply it here before all simplification.
12581 2014-08-18  Ilya Enkovich  <ilya.enkovich@intel.com>
12583         PR ipa/61800
12584         * cgraph.h (cgraph_node::create_indirect_edge): Add
12585         compute_indirect_info param.
12586         * cgraph.c (cgraph_node::create_indirect_edge): Compute
12587         indirect_info only when it is required.
12588         * cgraphclones.c (cgraph_clone_edge): Do not recompute
12589         indirect_info fore cloned indirect edge.
12591 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12592             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12593             Anna Tikhonova  <anna.tikhonova@intel.com>
12594             Ilya Tocar  <ilya.tocar@intel.com>
12595             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12596             Ilya Verbin  <ilya.verbin@intel.com>
12597             Kirill Yukhin  <kirill.yukhin@intel.com>
12598             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12600         * config/i386/sse.md
12601         (define_mode_iterator VI8_AVX2_AVX512BW): New.
12602         (define_insn "<sse2_avx2>_psadbw"): Add evex version.
12604 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12605             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12606             Anna Tikhonova  <anna.tikhonova@intel.com>
12607             Ilya Tocar  <ilya.tocar@intel.com>
12608             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12609             Ilya Verbin  <ilya.verbin@intel.com>
12610             Kirill Yukhin  <kirill.yukhin@intel.com>
12611             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12613         * config/i386/sse.md
12614         (define_mode_iterator VF1_AVX512VL): New.
12615         (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
12616         (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
12617         New.
12619 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12620             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12621             Anna Tikhonova  <anna.tikhonova@intel.com>
12622             Ilya Tocar  <ilya.tocar@intel.com>
12623             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12624             Ilya Verbin  <ilya.verbin@intel.com>
12625             Kirill Yukhin  <kirill.yukhin@intel.com>
12626             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12628         * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
12629         * config/i386/i386.md
12630         (define_code_iterator any_float): New.
12631         (define_code_attr floatsuffix): New.
12632         * config/i386/sse.md
12633         (define_mode_iterator VF1_128_256VL): New.
12634         (define_mode_iterator VF2_512_256VL): New.
12635         (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
12636         TARGET check.
12637         (define_insn "ufloatv8siv8df<mask_name>"): Delete.
12638         (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
12639         New.
12640         (define_mode_attr qq2pssuff): New.
12641         (define_mode_attr sselongvecmode): New.
12642         (define_mode_attr sselongvecmodelower): New.
12643         (define_mode_attr sseintvecmode3): New.
12644         (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
12645         New.
12646         (define_insn "*<floatsuffix>floatv2div2sf2"): New.
12647         (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
12648         (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
12649         (define_insn "ufloatv2siv2df2<mask_name>"): New.
12651 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12652             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12653             Anna Tikhonova  <anna.tikhonova@intel.com>
12654             Ilya Tocar  <ilya.tocar@intel.com>
12655             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12656             Ilya Verbin  <ilya.verbin@intel.com>
12657             Kirill Yukhin  <kirill.yukhin@intel.com>
12658             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12660         * config/i386/sse.md
12661         (define_mode_iterator VF2_AVX512VL): New.
12662         (define_mode_attr sseintvecmode2): New.
12663         (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
12664         (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
12665         (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
12666         (define_insn
12667         "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
12668         Ditto.
12669         (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
12670         Ditto.
12671         (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
12672         Ditto.
12674 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12675             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12676             Anna Tikhonova  <anna.tikhonova@intel.com>
12677             Ilya Tocar  <ilya.tocar@intel.com>
12678             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12679             Ilya Verbin  <ilya.verbin@intel.com>
12680             Kirill Yukhin  <kirill.yukhin@intel.com>
12681             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12683         * config/i386/i386.md
12684         (define_insn "*movoi_internal_avx"): Add evex version.
12685         (define_insn "*movti_internal"): Ditto.
12687 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12688             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12689             Anna Tikhonova  <anna.tikhonova@intel.com>
12690             Ilya Tocar  <ilya.tocar@intel.com>
12691             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12692             Ilya Verbin  <ilya.verbin@intel.com>
12693             Kirill Yukhin  <kirill.yukhin@intel.com>
12694             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12696         * config/i386/i386.md
12697         (define_attr "isa"): Add avx512dq, noavx512dq.
12698         (define_attr "enabled"): Ditto.
12699         * config/i386/sse.md
12700         (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
12702 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12703             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12704             Anna Tikhonova  <anna.tikhonova@intel.com>
12705             Ilya Tocar  <ilya.tocar@intel.com>
12706             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12707             Ilya Verbin  <ilya.verbin@intel.com>
12708             Kirill Yukhin  <kirill.yukhin@intel.com>
12709             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12711         * config/i386/i386.c
12712         (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
12713         avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
12714         avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
12715         avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
12716         avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
12717         avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
12718         avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
12719         avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
12720         * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
12721         * config/i386/sse.md
12722         (define_mode_iterator VMOVE): Allow V4TI mode.
12723         (define_mode_iterator V_AVX512VL): New.
12724         (define_mode_iterator V): New handling for AVX512VL.
12725         (define_insn "avx512f_load<mode>_mask"): Delete.
12726         (define_insn "<avx512>_load<mode>_mask"): New.
12727         (define_insn "avx512f_store<mode>_mask"): Delete.
12728         (define_insn "<avx512>_store<mode>_mask"): New.
12731 2014-08-18  Yury Gribov  <y.gribov@samsung.com>
12733         PR sanitizer/62089
12734         * asan.c (instrument_derefs): Fix bitfield check.
12736 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
12738         * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
12739         * config/rs6000/htm.md (ttest): Remove clobber.
12740         * config/rs6000/predicates.md (any_mask_operand): New predicate.
12741         (and_operand): Reformat.
12742         (and_2rld_operand): New predicate.
12743         * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
12744         parameter.
12745         * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
12746         parameter.  Handle AND directly.
12747         (rs6000_split_logical_di): Remove last parameter.
12748         (rs6000_split_logical): Remove last parameter.  Remove obsolete
12749         comment.
12750         * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
12751         (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
12752         (ctz<mode>2, ffs<mode>2): Delete clobber.  Reformat.
12753         (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
12754         *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
12755         and 5 anonymous splitters):  Delete.
12756         (and<mode>3): New expander.
12757         (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
12758         (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
12759         (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
12760         (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
12761         (floatdisf2_internal1): Remove clobbers.
12762         (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
12763         *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
12764         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
12765         (and<mode>3 for BOOL_128): Remove clobber.
12766         (*and<mode>3_internal for BOOL_128): Remove clobber.  Adjust call of
12767         rs6000_split_logical.
12768         (*bool<mode>3_internal for BOOL_128): Adjust call of
12769         rs6000_split_logical.
12770         (*boolc<mode>3_internal1 for BOOL_128,
12771         *boolc<mode>3_internal2 for BOOL_128,
12772         *boolcc<mode>3_internal1 for BOOL_128,
12773         *boolcc<mode>3_internal2 for BOOL_128,
12774         *eqv<mode>3_internal1 for BOOL_128,
12775         *eqv<mode>3_internal2 for BOOL_128,
12776         *one_cmpl<mode>3_internal for BOOL_128): Ditto.
12777         * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
12778         clobber.
12779         (*vec_reload_and_reg_<mptrsize>): Delete.
12781 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
12783         * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
12784         and split, *boolccsi3_internal3 and split): Delete.
12785         (*boolccdi3_internal1, *boolccdi3_internal2 and split,
12786         *boolccdi3_internal3 and split): Delete.
12787         (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
12788         (*eqv<mode>3): Move.  Add TODO comment.  Fix attributes.
12790 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
12792         * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
12793         and split, *boolcsi3_internal3 and split): Delete.
12794         (*boolcdi3_internal1, *boolcdi3_internal2 and split,
12795         *boolcdi3_internal3 and split): Delete.
12796         (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
12798 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
12800         * config/rs6000/rs6000.c (print_operand) <'e'>: New.
12801         <'u'>: Also support printing the low-order 16 bits.
12802         * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
12803         *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
12804         (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
12805         *booldi3_internal3 and split): Delete.
12806         (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
12807         *bool<mode>3_dot2): New.
12808         (two anonymous define_splits for non_logical_cint_operand): Merge.
12810 2014-08-17  Marek Polacek  <polacek@redhat.com>
12811             Manuel López-Ibáñez  <manu@gcc.gnu.org>
12813         PR c/62059
12814         * diagnostic.c (adjust_line): Add gcc_checking_assert.
12815         (diagnostic_show_locus): Don't print caret diagnostic
12816         if a column is larger than the line_width.
12818 2014-08-17 Roman Gareev  <gareevroman@gmail.com>
12820         * common.opt: Make the ISL AST generator to be the main code generator
12821         of Graphite.
12823 2014-08-16  Gerald Pfeifer  <gerald@pfeifer.com>
12825         * wide-int.h (generic_wide_int): Declare as class instead of struct.
12827 2014-08-16  John David Anglin  <danglin@gcc.gnu.org>
12829         PR target/61641
12830         * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
12831         Declare.
12832         * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
12833         (pa_output_addr_vec, pa_output_addr_diff_vec): New.
12834         * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
12835         Define.
12836         * config/pa/pa.md (begin_brtab): Delete insn.
12837         (end_brtab): Likewise.
12839 2014-08-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12841         * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
12843 2014-08-15  Jan Hubicka  <hubicka@ucw.cz>
12845         * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
12846         (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
12847         possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
12848         (get_dynamic_type): Remove.
12849         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
12850         (clear_speculation): Bring to ipa-deivrt.h
12851         (get_class_context): Rename to ...
12852         (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
12853         (contains_type_p): Update.
12854         (get_dynamic_type): Rename to ...
12855         ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
12856         (possible_polymorphic_call_targets): UPdate.
12857         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
12858         * ipa-prop.c (ipa_analyze_call_uses): Update.
12860 2014-08-15  Oleg Endo  <olegendo@gcc.gnu.org>
12862         * doc/invoke.texi (SH options): Document missing processor variant
12863         options.  Remove references to Hitachi.  Undocument deprecated mspace
12864         option.
12866 2014-08-15  Jason Merrill  <jason@redhat.com>
12868         * tree.c (type_hash_canon): Uncomment assert.
12870 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12872         * input.h (in_system_header_at): Add comment.
12874 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12876         PR fortran/44054
12877         * diagnostic.c (build_message_string): Make it extern.
12878         * diagnostic.h (build_message_string): Make it extern.
12880 2014-08-15  Vladimir Makarov  <vmakarov@redhat.com>
12882         * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
12883         load/store from/to non-floating class pseudo.
12885 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12887         * input.c (diagnostic_file_cache_fini): Fix typo in comment.
12889 2014-08-15  Richard Biener  <rguenther@suse.de>
12891         * tree-ssa-structalias.c (readonly_id): Rename to string_id.
12892         (get_constraint_for_ssa_var): Remove dead code.
12893         (get_constraint_for_1): Adjust.
12894         (find_what_var_points_to): Likewise.
12895         (init_base_vars): Likewise.  STRING_CSTs do not contain pointers.
12897 2014-08-15  Ilya Tocar  <tocarip@gmail.com>
12899         PR target/61878
12900         * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
12901         (_mm512_mask_cmpge_epu32_mask): Ditto.
12902         (_mm512_cmpge_epu32_mask): Ditto.
12903         (_mm512_mask_cmpge_epi64_mask): Ditto.
12904         (_mm512_cmpge_epi64_mask): Ditto.
12905         (_mm512_mask_cmpge_epu64_mask): Ditto.
12906         (_mm512_cmpge_epu64_mask): Ditto.
12907         (_mm512_mask_cmple_epi32_mask): Ditto.
12908         (_mm512_cmple_epi32_mask): Ditto.
12909         (_mm512_mask_cmple_epu32_mask): Ditto.
12910         (_mm512_cmple_epu32_mask): Ditto.
12911         (_mm512_mask_cmple_epi64_mask): Ditto.
12912         (_mm512_cmple_epi64_mask): Ditto.
12913         (_mm512_mask_cmple_epu64_mask): Ditto.
12914         (_mm512_cmple_epu64_mask): Ditto.
12915         (_mm512_mask_cmplt_epi32_mask): Ditto.
12916         (_mm512_cmplt_epi32_mask): Ditto.
12917         (_mm512_mask_cmplt_epu32_mask): Ditto.
12918         (_mm512_cmplt_epu32_mask): Ditto.
12919         (_mm512_mask_cmplt_epi64_mask): Ditto.
12920         (_mm512_cmplt_epi64_mask): Ditto.
12921         (_mm512_mask_cmplt_epu64_mask): Ditto.
12922         (_mm512_cmplt_epu64_mask): Ditto.
12923         (_mm512_mask_cmpneq_epi32_mask): Ditto.
12924         (_mm512_mask_cmpneq_epu32_mask): Ditto.
12925         (_mm512_cmpneq_epu32_mask): Ditto.
12926         (_mm512_mask_cmpneq_epi64_mask): Ditto.
12927         (_mm512_cmpneq_epi64_mask): Ditto.
12928         (_mm512_mask_cmpneq_epu64_mask): Ditto.
12929         (_mm512_cmpneq_epu64_mask): Ditto.
12930         (_mm512_castpd_ps): Ditto.
12931         (_mm512_castpd_si512): Ditto.
12932         (_mm512_castps_pd): Ditto.
12933         (_mm512_castps_si512): Ditto.
12934         (_mm512_castsi512_ps): Ditto.
12935         (_mm512_castsi512_pd): Ditto.
12936         (_mm512_castpd512_pd128): Ditto.
12937         (_mm512_castps512_ps128): Ditto.
12938         (_mm512_castsi512_si128): Ditto.
12939         (_mm512_castpd512_pd256): Ditto.
12940         (_mm512_castps512_ps256): Ditto.
12941         (_mm512_castsi512_si256): Ditto.
12942         (_mm512_castpd128_pd512): Ditto.
12943         (_mm512_castps128_ps512): Ditto.
12944         (_mm512_castsi128_si512): Ditto.
12945         (_mm512_castpd256_pd512): Ditto.
12946         (_mm512_castps256_ps512): Ditto.
12947         (_mm512_castsi256_si512): Ditto.
12948         (_mm512_cmpeq_epu32_mask): Ditto.
12949         (_mm512_mask_cmpeq_epu32_mask): Ditto.
12950         (_mm512_mask_cmpeq_epu64_mask): Ditto.
12951         (_mm512_cmpeq_epu64_mask): Ditto.
12952         (_mm512_cmpgt_epu32_mask): Ditto.
12953         (_mm512_mask_cmpgt_epu32_mask): Ditto.
12954         (_mm512_mask_cmpgt_epu64_mask): Ditto.
12955         (_mm512_cmpgt_epu64_mask): Ditto.
12956         * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
12957         V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
12958         * config/i386/i386.c (enum ix86_builtins): Add
12959         IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
12960         IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
12961         IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
12962         (bdesc_args): Add __builtin_ia32_si512_256si,
12963         __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
12964         __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
12965         __builtin_ia32_pd512_pd.
12966         (ix86_expand_args_builtin): Handle new FTYPEs.
12967         * config/i386/sse.md (castmode): Add 512-bit modes.
12968         (AVX512MODE2P): New.
12969         (avx512f_<castmode><avxsizesuffix>_<castmode): New.
12970         (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
12972 2014-08-15  Richard Biener  <rguenther@suse.de>
12974         * fold-const.c (tree_swap_operands_p): Put all constants
12975         last, also strip sign-changing NOPs when considering further
12976         canonicalization.  Canonicalize also when optimizing for size.
12978 2014-08-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12980         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
12981         one_match > zero_match case to just before simple_sequence.
12983 2014-08-15  Richard Biener  <rguenther@suse.de>
12985         * data-streamer.h (streamer_string_index, string_for_index):
12986         Remove.
12987         * data-streamer-out.c (streamer_string_index): Make static.
12988         * data-streamer-in.c (string_for_index): Likewise.
12989         * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
12990         * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
12992 2014-08-15  Richard Biener  <rguenther@suse.de>
12994         PR tree-optimization/62031
12995         * tree-data-ref.c (dr_analyze_indices): Do not set
12996         DR_UNCONSTRAINED_BASE.
12997         (dr_may_alias_p): All indirect accesses have to go the
12998         formerly DR_UNCONSTRAINED_BASE path.
12999         * tree-data-ref.h (struct indices): Remove
13000         unconstrained_base member.
13001         (DR_UNCONSTRAINED_BASE): Remove.
13003 2014-08-15  Jakub Jelinek  <jakub@redhat.com>
13005         PR middle-end/62092
13006         * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
13007         OMP_CLAUSE_SHARED for global vars if the global var is mentioned
13008         in OMP_CLAUSE_MAP in some outer target region.
13010 2014-08-15  Bin Cheng  <bin.cheng@arm.com>
13012         * tree-ssa-loop-ivopts.c (ivopts_data): New field
13013         name_expansion_cache.
13014         (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
13015         (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
13016         (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
13017         (difference_cannot_overflow_p): New parameter.  Use affine
13018         expansion for equality check.
13019         (iv_elimination_compare_lt): Pass new argument.
13021 2014-08-14  DJ Delorie  <dj@redhat.com>
13023         * config/rl78/rl78-real.md (addqi3_real): Allow adding global
13024         variables to the accumulator.
13026         * config/rl78/predicates.md (rl78_near_mem_operand): New.
13027         * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
13028         (movhi_virt_mm): Split out near mem-mem moves to avoid problems
13029         with far-far moves.
13031         * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
13032         * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
13033         (umulqihi3_virt): Likewise.
13034         * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
13035         (umulqihi3_real): Likewise.
13037         * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
13039 2014-08-14  Jan Hubicka  <hubicka@ucw.cz>
13041         PR tree-optimization/62091
13042         * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
13043         function_entry_reached.
13044         (walk_aliased_vdefs): Clear it here.
13045         * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
13047 2014-08-14  Jan Hubicka  <hubicka@ucw.cz>
13049         * ipa-utils.h (compare_virtual_tables): Declare.
13050         * ipa-devirt.c (odr_subtypes_equivalent_p): New function
13052 2014-08-14  Marek Polacek  <polacek@redhat.com>
13054         DR 458
13055         * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
13056         (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
13058 2014-08-14  Tom de Vries  <tom@codesourcery.com>
13060         * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
13062 2014-08-14  Tom de Vries  <tom@codesourcery.com>
13064         PR rtl-optimization/62004
13065         PR rtl-optimization/62030
13066         * ifcvt.c (rtx_interchangeable_p): New function.
13067         (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
13068         * emit-rtl.h (mem_attrs_eq_p): Declare.
13070 2014-08-14  Roman Gareev  <gareevroman@gmail.com>
13072         * graphite-scop-detection.c:
13073         Add inclusion of cp-tree.h.
13074         (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
13075         in case they are pointers to object types
13077 2014-08-14  Richard Biener  <rguenther@suse.de>
13079         * BASE-VER: Change to 5.0.0
13081 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13082             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13083             Anna Tikhonova  <anna.tikhonova@intel.com>
13084             Ilya Tocar  <ilya.tocar@intel.com>
13085             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13086             Ilya Verbin  <ilya.verbin@intel.com>
13087             Kirill Yukhin  <kirill.yukhin@intel.com>
13088             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13090         * config/i386/sse.md (define_mode_attr avx512): New.
13091         (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
13092         V4DI modes.
13093         (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
13094         (define_mode_attr ssse3_avx2): Ditto.
13095         (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
13096         (define_mode_attr avx2_avx512bw): New.
13097         (define_mode_attr ssedoublemodelower): New.
13098         (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
13099         V32HI, V64QI modes.
13100         (define_mode_attr ssebytemode): Allow V8DI modes.
13101         (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
13102         (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
13103         (define_mode_attr ssePSmode2): New.
13104         (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
13105         V16HI, V32HI modes.
13106         (define_mode_attr dbpsadbwmode): New.
13107         (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
13108         V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
13109         (vi8_sse4_1_avx2_avx512): New.
13110         (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
13111         mode attribute.
13112         (define_mode_attr blendbits): Move before its immediate use.
13114 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13115             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13116             Anna Tikhonova  <anna.tikhonova@intel.com>
13117             Ilya Tocar  <ilya.tocar@intel.com>
13118             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13119             Ilya Verbin  <ilya.verbin@intel.com>
13120             Kirill Yukhin  <kirill.yukhin@intel.com>
13121             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13123         * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
13124         * config/i386/subst.md
13125         (define_mode_iterator SUBST_V): Update.
13126         (define_mode_iterator SUBST_A): Ditto.
13127         (define_subst_attr "mask_operand7"): New.
13128         (define_subst_attr "mask_operand10"): New.
13129         (define_subst_attr "mask_operand_arg34") : New.
13130         (define_subst_attr "mask_expand_op3"): New.
13131         (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
13132         (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
13133         (define_subst_attr "mask_avx512vl_condition"): New.
13134         (define_subst_attr "round_mask_operand4"): Ditto.
13135         (define_subst_attr "round_mask_scalar_op3"): Delete.
13136         (define_subst_attr "round_mask_op4"): New.
13137         (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
13138         V16SImode.
13139         (define_subst_attr "round_modev8sf_condition"): New.
13140         (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
13141         <MODE>mode.
13142         (define_subst_attr "round_saeonly_mask_operand4"): New.
13143         (define_subst_attr "round_saeonly_mask_op4"): New.
13144         (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
13145         V8DImode, V16SImode.
13146         (define_subst_attr "round_saeonly_modev8sf_condition"): New.
13147         (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
13148         (define_subst_attr "mask_expand4_args"): New.
13149         (define_subst "mask_expand4"): New.
13151 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13152             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13153             Anna Tikhonova  <anna.tikhonova@intel.com>
13154             Ilya Tocar  <ilya.tocar@intel.com>
13155             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13156             Ilya Verbin  <ilya.verbin@intel.com>
13157             Kirill Yukhin  <kirill.yukhin@intel.com>
13158             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13160         * config/i386/i386.md
13161         (define_attr "isa"): Add avx512bw,noavx512bw.
13162         (define_attr "enabled"): Ditto.
13163         (define_split): Add 32/64-bit mask logic.
13164         (define_insn "*k<logic>qi"): New.
13165         (define_insn "*k<logic>hi"): New.
13166         (define_insn "*anddi_1"): Add mask version.
13167         (define_insn "*andsi_1"): Ditto.
13168         (define_insn "*<code><mode>_1"): Ditto.
13169         (define_insn "*<code>hi_1"): Ditto.
13170         (define_insn "kxnor<mode>"): New.
13171         (define_insn "kunpcksi"): New.
13172         (define_insn "kunpckdi"): New.
13173         (define_insn "*one_cmpl<mode>2_1"): Add mask version.
13174         (define_insn "*one_cmplhi2_1"): Ditto.
13176 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13177             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13178             Anna Tikhonova  <anna.tikhonova@intel.com>
13179             Ilya Tocar  <ilya.tocar@intel.com>
13180             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13181             Ilya Verbin  <ilya.verbin@intel.com>
13182             Kirill Yukhin  <kirill.yukhin@intel.com>
13183             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13185         * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
13186         V32HImode.
13188 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13189             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13190             Anna Tikhonova  <anna.tikhonova@intel.com>
13191             Ilya Tocar  <ilya.tocar@intel.com>
13192             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13193             Ilya Verbin  <ilya.verbin@intel.com>
13194             Kirill Yukhin  <kirill.yukhin@intel.com>
13195             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13197         * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
13198         registers.
13199         (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
13200         (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
13201         xmm/ymm16+ when availble.
13202         * config/i386/i386.h
13203         (HARD_REGNO_NREGS): Add mask regs.
13204         (VALID_AVX512F_REG_MODE): Ditto.
13205         (VALID_AVX512F_REG_MODE) : Define.
13206         (VALID_MASK_AVX512BW_MODE): Ditto.
13207         (reg_class) (MASK_REG_P(X)): Define.
13208         * config/i386/i386.md: Do not split long moves with mask register,
13209         use kmovb if avx512bw is availible.
13210         (movdi_internal): Handle mask registers.
13212 2014-08-14  Richard Biener  <rguenther@suse.de>
13214         PR tree-optimization/62081
13215         * tree-ssa-loop.c (pass_fix_loops): New pass.
13216         (pass_tree_loop::gate):  Do not fixup loops here.
13217         * tree-pass.h (make_pass_fix_loops): Declare.
13218         * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
13220 2014-08-14  Richard Biener  <rguenther@suse.de>
13222         * tree.c (type_hash_lookup, type_hash_add): Merge into ...
13223         (type_hash_canon): ... this and avoid 2nd lookup for the add.
13225 2014-08-14  Richard Biener  <rguenther@suse.de>
13227         PR tree-optimization/62090
13228         * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
13229         (fold_builtin_2): Do not fold sprintf.
13230         (fold_builtin_3): Likewise.
13231         * gimple-fold.c (gimple_fold_builtin_sprintf): New function
13232         moved from builtins.c.
13233         (gimple_fold_builtin): Fold sprintf.
13235 2014-08-14  Richard Biener  <rguenther@suse.de>
13237         PR rtl-optimization/62079
13238         * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
13239         run cleanup_cfg.
13241 2014-08-14  Ilya Enkovich  <ilya.enkovich@intel.com>
13243         * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
13244         current_function_decl.
13246 2014-08-14  Ilya Enkovich  <ilya.enkovich@intel.com>
13248         * cgraph.c (cgraph_node::function_symbol): Fix wrong
13249         cgraph_function_node to cgraph_node::function_symbol
13250         refactoring.
13252 2014-08-14  Zhenqiang Chen  <zhenqiang.chen@arm.com>
13254         * config/arm/arm.c (arm_option_override): Set max_insns_skipped
13255         to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
13257 2014-08-13  Chen Gang  gang.chen.5i5j@gmail.com
13259         * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
13260         warning.
13262 2014-08-13  Roman Gareev  <gareevroman@gmail.com>
13264         * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
13265         generator.
13267 2014-08-12  Jakub Jelinek  <jakub@redhat.com>
13269         PR target/62025
13270         * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
13271         any registers that are used in mem_insn.
13273 2014-08-12  Steve Ellcey  <sellcey@mips.com>
13275         * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
13277 2014-08-12  Steve Ellcey  <sellcey@mips.com>
13279         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
13280         (MULTILIB_DIRNAMES): Ditto.
13281         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
13282         * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
13283         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
13284         * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
13285         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
13286         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
13288 2014-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13290         PR target/61413
13291         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
13292         of __ARM_SIZEOF_WCHAR_T.
13294 2014-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13296         PR target/62098
13297         * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
13298         Remove unnecessary attributes.
13300 2014-08-12  Yury Gribov  <y.gribov@samsung.com>
13302         * internal-fn.c (init_internal_fns): Fix off-by-one.
13304 2014-08-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13305             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13306             Anna Tikhonova  <anna.tikhonova@intel.com>
13307             Ilya Tocar  <ilya.tocar@intel.com>
13308             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13309             Ilya Verbin  <ilya.verbin@intel.com>
13310             Kirill Yukhin  <kirill.yukhin@intel.com>
13311             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13313         * config/i386/i386.c (standard_sse_constant_opcode): Use
13314         vpxord/vpternlog if avx512 is availible.
13316 2014-08-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
13318         PR middle-end/62103
13319         * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
13320         bitfields, that is when size doesn't match the size of type or the
13321         size of the constructor.
13323 2014-08-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
13325         * config/rs6000/constraints.md (wh constraint): New constraint,
13326         for FP registers if direct move is available.
13327         (wi constraint): New constraint, for VSX/FP registers that can
13328         handle 64-bit integers.
13329         (wj constraint): New constraint for VSX/FP registers that can
13330         handle 64-bit integers for direct moves.
13331         (wk constraint): New constraint for VSX/FP registers that can
13332         handle 64-bit doubles for direct moves.
13333         (wy constraint): Make documentation match implementation.
13335         * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
13336         scalar_in_vmx_p field to simplify tests of whether SFmode or
13337         DFmode can go in the Altivec registers.
13338         (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
13339         (rs6000_setup_reg_addr_masks): Likewise.
13340         (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
13341         field, and wh/wi/wj/wk constraints.
13342         (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
13343         the wh/wi/wj/wk constraints.
13344         (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
13345         upper registers, prefer VSX registers unless the operation is a
13346         memory operation with REG+OFFSET addressing.
13348         * config/rs6000/vsx.md (VSr mode attribute): Add support for
13349         DImode.  Change SFmode to use ww constraint instead of d to allow
13350         SF registers in the upper registers.
13351         (VSr2): Likewise.
13352         (VSr3): Likewise.
13353         (VSr5): Fix thinko in comment.
13354         (VSa): New mode attribute that is an alternative to wa, that
13355         returns the VSX register class that a mode can go in, but may not
13356         be the preferred register class.
13357         (VS_64dm): New mode attribute for appropriate register classes for
13358         referencing 64-bit elements of vectors for direct moves and normal
13359         moves.
13360         (VS_64reg): Likewise.
13361         (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
13362         register allocator to only registers the data type can handle.
13363         (vsx_le_perm_load_<mode>): Likewise.
13364         (vsx_le_perm_store_<mode>): Likewise.
13365         (vsx_xxpermdi2_le_<mode>): Likewise.
13366         (vsx_xxpermdi4_le_<mode>): Likewise.
13367         (vsx_lxvd2x2_le_<mode>): Likewise.
13368         (vsx_lxvd2x4_le_<mode>): Likewise.
13369         (vsx_stxvd2x2_le_<mode>): Likewise.
13370         (vsx_add<mode>3): Likewise.
13371         (vsx_sub<mode>3): Likewise.
13372         (vsx_mul<mode>3): Likewise.
13373         (vsx_div<mode>3): Likewise.
13374         (vsx_tdiv<mode>3_internal): Likewise.
13375         (vsx_fre<mode>2): Likewise.
13376         (vsx_neg<mode>2): Likewise.
13377         (vsx_abs<mode>2): Likewise.
13378         (vsx_nabs<mode>2): Likewise.
13379         (vsx_smax<mode>3): Likewise.
13380         (vsx_smin<mode>3): Likewise.
13381         (vsx_sqrt<mode>2): Likewise.
13382         (vsx_rsqrte<mode>2): Likewise.
13383         (vsx_tsqrt<mode>2_internal): Likewise.
13384         (vsx_fms<mode>4): Likewise.
13385         (vsx_nfma<mode>4): Likewise.
13386         (vsx_eq<mode>): Likewise.
13387         (vsx_gt<mode>): Likewise.
13388         (vsx_ge<mode>): Likewise.
13389         (vsx_eq<mode>_p): Likewise.
13390         (vsx_gt<mode>_p): Likewise.
13391         (vsx_ge<mode>_p): Likewise.
13392         (vsx_xxsel<mode>): Likewise.
13393         (vsx_xxsel<mode>_uns): Likewise.
13394         (vsx_copysign<mode>3): Likewise.
13395         (vsx_float<VSi><mode>2): Likewise.
13396         (vsx_floatuns<VSi><mode>2): Likewise.
13397         (vsx_fix_trunc<mode><VSi>2): Likewise.
13398         (vsx_fixuns_trunc<mode><VSi>2): Likewise.
13399         (vsx_x<VSv>r<VSs>i): Likewise.
13400         (vsx_x<VSv>r<VSs>ic): Likewise.
13401         (vsx_btrunc<mode>2): Likewise.
13402         (vsx_b2trunc<mode>2): Likewise.
13403         (vsx_floor<mode>2): Likewise.
13404         (vsx_ceil<mode>2): Likewise.
13405         (vsx_<VS_spdp_insn>): Likewise.
13406         (vsx_xscvspdp): Likewise.
13407         (vsx_xvcvspuxds): Likewise.
13408         (vsx_float_fix_<mode>2): Likewise.
13409         (vsx_set_<mode>): Likewise.
13410         (vsx_extract_<mode>_internal1): Likewise.
13411         (vsx_extract_<mode>_internal2): Likewise.
13412         (vsx_extract_<mode>_load): Likewise.
13413         (vsx_extract_<mode>_store): Likewise.
13414         (vsx_splat_<mode>): Likewise.
13415         (vsx_xxspltw_<mode>): Likewise.
13416         (vsx_xxspltw_<mode>_direct): Likewise.
13417         (vsx_xxmrghw_<mode>): Likewise.
13418         (vsx_xxmrglw_<mode>): Likewise.
13419         (vsx_xxsldwi_<mode>): Likewise.
13420         (vsx_xscvdpspn): Tighten constraints to only use register classes
13421         the types use.
13422         (vsx_xscvspdpn): Likewise.
13423         (vsx_xscvdpspn_scalar): Likewise.
13425         * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
13426         wj, and wk constraints.
13427         (GPR_REG_CLASS_P): New helper macro for register classes targeting
13428         general purpose registers.
13430         * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
13431         direct moves.
13432         (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
13433         DImode instead of wm.  Use wk constraint for direct move of DFmode
13434         instead of wm.
13435         (extendsidi2_lfiwax): Likewise.
13436         (lfiwax): Likewise.
13437         (lfiwzx): Likewise.
13438         (movdi_internal64): Likewise.
13440         * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
13441         wk constraints. Make the wy constraint documentation match them
13442         implementation.
13444 2014-08-11  Mircea Namolaru  <mircea.namolaru@inria.fr>
13446         Replacement of isl_int by isl_val
13447         * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
13448         (compute_bounds_for_param): use isl_val instead of isl_int
13449         (compute_bounds_for_loop): likewise
13450         * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
13451         (build_linearized_memory_access): use isl_val instead of isl_int
13452         (pdr_stride_in_loop): likewise
13453         * graphite-optimize-isl.c:
13454         (getPrevectorMap): use isl_val instead of isl_int
13455         * graphite-poly.c:
13456         (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
13457         graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
13458         (extern the_isl_ctx): declare
13459         (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
13460         (extract_affine_gmp): likewise
13461         (wrap): likewise
13462         (build_loop_iteration_domains): likewise
13463         (add_param_constraints): likewise
13465 2014-08-11  Richard Biener  <rguenther@suse.de>
13467         PR tree-optimization/62075
13468         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
13469         handle uses in patterns.
13471 2014-08-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13472             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13473             Anna Tikhonova  <anna.tikhonova@intel.com>
13474             Ilya Tocar  <ilya.tocar@intel.com>
13475             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13476             Ilya Verbin  <ilya.verbin@intel.com>
13477             Kirill Yukhin  <kirill.yukhin@intel.com>
13478             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13480         * common/config/i386/i386-common.c
13481         (OPTION_MASK_ISA_AVX512VL_SET): Define.
13482         (OPTION_MASK_ISA_AVX512F_UNSET): Update.
13483         (ix86_handle_option): Handle OPT_mavx512vl.
13484         * config/i386/cpuid.h (bit_AVX512VL): Define.
13485         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
13486         set -mavx512vl accordingly.
13487         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
13488         OPTION_MASK_ISA_AVX512VL.
13489         * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
13490         (ix86_option_override_internal): Define PTA_AVX512VL, handle
13491         PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
13492         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
13493         * config/i386/i386.h (TARGET_AVX512VL): Define.
13494         (TARGET_AVX512VL_P(x)): Ditto.
13495         * config/i386/i386.opt: Add mavx512vl.
13497 2014-08-11  Felix Yang  <fei.yang0953@gmail.com>
13499         PR tree-optimization/62073
13500         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
13501         a basic block.
13503 2014-08-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13504             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13505             Anna Tikhonova  <anna.tikhonova@intel.com>
13506             Ilya Tocar  <ilya.tocar@intel.com>
13507             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13508             Ilya Verbin  <ilya.verbin@intel.com>
13509             Kirill Yukhin  <kirill.yukhin@intel.com>
13510             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13512         * common/config/i386/i386-common.c
13513         (OPTION_MASK_ISA_AVX512BW_SET) : Define.
13514         (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
13515         (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
13516         (ix86_handle_option): Handle OPT_mavx512bw.
13517         * config/i386/cpuid.h (bit_AVX512BW): Define.
13518         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
13519         set -mavx512bw accordingly.
13520         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
13521         OPTION_MASK_ISA_AVX512BW.
13522         * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
13523         (ix86_option_override_internal): Define PTA_AVX512BW, handle
13524         PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
13525         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
13526         * config/i386/i386.h (TARGET_AVX512BW): Define.
13527         (TARGET_AVX512BW_P(x)): Ditto.
13528         * config/i386/i386.opt: Add mavx512bw.
13530 2014-08-11  Richard Biener  <rguenther@suse.de>
13532         PR tree-optimization/62070
13533         * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
13534         Remove SSA checking.
13536 2014-08-11  Yury Gribov  <y.gribov@samsung.com>
13538         * asan.c (asan_check_flags): New enum.
13539         (build_check_stmt_with_calls): Removed function.
13540         (build_check_stmt): Split inlining logic to
13541         asan_expand_check_ifn.
13542         (instrument_derefs): Rename parameter.
13543         (instrument_mem_region_access): Rename parameter.
13544         (instrument_strlen_call): Likewise.
13545         (asan_expand_check_ifn): New function.
13546         (asan_instrument): Remove old code.
13547         (pass_sanopt::execute): Change handling of
13548         asan-instrumentation-with-call-threshold.
13549         (asan_clear_shadow): Fix formatting.
13550         (asan_function_start): Likewise.
13551         (asan_emit_stack_protection): Likewise.
13552         * doc/invoke.texi (asan-instrumentation-with-call-threshold):
13553         Update description.
13554         * internal-fn.c (expand_ASAN_CHECK): New function.
13555         * internal-fn.def (ASAN_CHECK): New internal function.
13556         * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
13557         Update description.
13558         (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
13559         * tree.c: Small comment fix.
13561 2014-08-11  Yury Gribov  <y.gribov@samsung.com>
13563         * gimple.c (gimple_call_fnspec): Support internal functions.
13564         (gimple_call_return_flags): Use const.
13565         * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
13566         * internal-fn.def: Add fnspec information.
13567         * internal-fn.h (internal_fn_fnspec): New function.
13568         (init_internal_fns): Declare new function.
13569         * internal-fn.c (internal_fn_fnspec_array): New global variable.
13570         (init_internal_fns): New function.
13571         * tree-core.h: Update macro call.
13572         * tree.c (build_common_builtin_nodes): Initialize internal fns.
13574 2014-08-10  Gerald Pfeifer  <gerald@pfeifer.com>
13576         * lto-streamer.h (struct output_block::symbol): Change from
13577         struct symtab_node to plain symtab_node.
13578         (referenced_from_this_partition_p): Change first parameter
13579         from struct symtab_node to plain symtab_node.
13581 2014-08-10  Marek Polacek  <polacek@redhat.com>
13583         PR c/51849
13584         * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
13586 2014-08-09  Jan Hubicka  <hubicka@ucw.cz>
13588         * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
13589         DECL correctly; do not give up on types in static storage.
13591 2014-08-09  Paolo Carlini  <paolo.carlini@oracle.com>
13593         * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
13595 2014-08-09  Roman Gareev  <gareevroman@gmail.com>
13597         * graphite-isl-ast-to-gimple.c:
13598         (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
13600         * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
13602 2014-08-08  Guozhi Wei  <carrot@google.com>
13604         * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
13606 2014-08-08  Cary Coutant  <ccoutant@google.com>
13608         * dwarf2out.c (get_skeleton_type_unit): Remove.
13609         (output_skeleton_debug_sections): Remove skeleton type units.
13610         (output_comdat_type_unit): Likewise.
13611         (dwarf2out_finish): Likewise.
13613 2014-08-07  Yi Yang  <ahyangyi@google.com>
13615         * predict.c (expr_expected_value_1): Remove the redundant assignment.
13617 2014-08-08  Richard Biener  <rguenther@suse.de>
13619         * lto-streamer.h (struct lto_input_block): Make it a class
13620         with a constructor.
13621         (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
13622         (struct lto_function_header, struct lto_simple_header,
13623         struct lto_simple_header_with_strings,
13624         struct lto_decl_header, struct lto_function_header): Make
13625         a simple inheritance hieararchy.  Remove unused fields.
13626         (struct lto_asm_header): Remove.
13627         * lto-streamer-out.c (produce_asm): Adjust.
13628         (lto_output_toplevel_asms): Likewise.
13629         (produce_asm_for_decls): Likewise.
13630         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
13631         * data-streamer-in.c (string_for_index): Likewise.
13632         * ipa-inline-analysis.c (inline_read_section): Likewise.
13633         * ipa-prop.c (ipa_prop_read_section): Likewise.
13634         (read_replacements_section): Likewise.
13635         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
13636         * lto-section-in.c (lto_create_simple_input_block): Likewise.
13637         (lto_destroy_simple_input_block): Likewise.
13638         * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
13639         (lto_input_toplevel_asms): Likewise.
13641 2014-08-08  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13642             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13643             Anna Tikhonova  <anna.tikhonova@intel.com>
13644             Ilya Tocar  <ilya.tocar@intel.com>
13645             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13646             Ilya Verbin  <ilya.verbin@intel.com>
13647             Kirill Yukhin  <kirill.yukhin@intel.com>
13648             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13650         * common/config/i386/i386-common.c
13651         (OPTION_MASK_ISA_AVX512DQ_SET): Define.
13652         (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
13653         (ix86_handle_option): Handle OPT_mavx512dq.
13654         * config/i386/cpuid.h (bit_AVX512DQ): Define.
13655         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
13656         set -mavx512dq accordingly.
13657         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
13658         OPTION_MASK_ISA_AVX512DQ.
13659         * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
13660         (ix86_option_override_internal): Define PTA_AVX512DQ, handle
13661         PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
13662         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
13663         * config/i386/i386.h (TARGET_AVX512DQ): Define.
13664         (TARGET_AVX512DQ_P(x)): Ditto.
13665         * config/i386/i386.opt: Add mavx512dq.
13667 2014-08-08  Richard Biener  <rguenther@suse.de>
13669         * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
13670         target_percent, target_percent_s): Export.
13671         (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
13672         fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
13673         fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
13674         fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
13675         fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
13676         Move to gimple-fold.c.
13677         (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
13678         strcat and strcpy.
13679         (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
13680         mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
13681         (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
13682         memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
13683         (rewrite_call_expr_array): Remove.
13684         (fold_builtin_sprintf_chk): Likewise.
13685         (fold_builtin_snprintf_chk): Likewise.
13686         (fold_builtin_varargs): Remove handling of sprintf_chk,
13687         vsprintf_chk, snprintf_chk and vsnprintf_chk.
13688         (gimple_fold_builtin_sprintf_chk): Remove.
13689         (gimple_fold_builtin_snprintf_chk): Likewise.
13690         (gimple_fold_builtin_varargs): Likewise.
13691         (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
13692         * predict.c (optimize_bb_for_size_p): Handle NULL bb.
13693         * gimple.c (gimple_seq_add_seq_without_update): New function.
13694         * gimple.h (gimple_seq_add_seq_without_update): Declare.
13695         * gimple-fold.c: Include output.h.
13696         (gsi_replace_with_seq_vops): New function, split out from ...
13697         (gimplify_and_update_call_from_tree): ... here.
13698         (replace_call_with_value): New function.
13699         (replace_call_with_call_and_fold): Likewise.
13700         (var_decl_component_p): Moved from builtins.c.
13701         (gimple_fold_builtin_memory_op): Moved from builtins.c
13702         fold_builtin_memory_op and rewritten to GIMPLE.
13703         (gimple_fold_builtin_memset): Likewise.
13704         (gimple_fold_builtin_strcpy): Likewise.
13705         (gimple_fold_builtin_strncpy): Likewise.
13706         (gimple_fold_builtin_strcat): Likewise.
13707         (gimple_fold_builtin_fputs): Likewise.
13708         (gimple_fold_builtin_memory_chk): Likewise.
13709         (gimple_fold_builtin_stxcpy_chk): Likewise.
13710         (gimple_fold_builtin_stxncpy_chk): Likewise.
13711         (gimple_fold_builtin_snprintf_chk): Likewise.
13712         (gimple_fold_builtin_sprintf_chk): Likewise.
13713         (gimple_fold_builtin_strlen): New function.
13714         (gimple_fold_builtin_with_strlen): New function split out from
13715         gimple_fold_builtin.
13716         (gimple_fold_builtin): Change signature and handle
13717         bzero, memset, bcopy, memcpy, mempcpy and memmove folding
13718         here.  Call gimple_fold_builtin_with_strlen.
13719         (gimple_fold_call): Adjust.
13721 2014-08-08  Kugan Vivekanandarajah  <kuganv@linaro.org>
13723         * calls.c (precompute_arguments): Check
13724          promoted_for_signed_and_unsigned_p and set the promoted mode.
13725         (promoted_for_signed_and_unsigned_p): New function.
13726         (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
13727         and set the promoted mode.
13728         * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
13729         * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
13730         SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
13733 2014-08-08  Kugan Vivekanandarajah  <kuganv@linaro.org>
13735         * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
13736         instead of SUBREG_PROMOTED_UNSIGNED_SET.
13737         (expand_call): Likewise.
13738         * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
13739         to get promoted mode.
13740         * combine.c (record_promoted_value): Skip > 0 comparison with
13741         SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
13742         * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
13743         of SUBREG_PROMOTED_UNSIGNED_P.
13744         (convert_modes): Likewise.
13745         (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
13746         Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
13747         (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
13748         SUBREG_PROMOTED_UNSIGNED_SET.
13749         * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
13750         instead of SUBREG_PROMOTED_UNSIGNED_SET.
13751         * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
13752         SUBREG_PROMOTED_SET.
13753         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
13754         SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
13755         * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
13756         of SUBREG_PROMOTED_UNSIGNED_P.
13757         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
13758         (SUBREG_PROMOTED_SET): New define.
13759         (SUBREG_PROMOTED_GET): Likewise.
13760         (SUBREG_PROMOTED_SIGN): Likewise.
13761         (SUBREG_PROMOTED_SIGNED_P): Likewise.
13762         (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
13763         (SUBREG_PROMOTED_UNSIGNED_P): Updated.
13764         * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
13765         instead of SUBREG_PROMOTED_UNSIGNED_GET.
13766         (nonzero_bits1): Skip > 0 comparison with the results as
13767         SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
13768         (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
13769         of !SUBREG_PROMOTED_UNSIGNED_P.
13770         * simplify-rtx.c (simplify_unary_operation_1): Use new
13771         SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
13772         (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
13773         SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
13774         SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
13776 2014-08-07  Jan Hubicka  <hubicka@ucw.cz>
13778         * ipa-devirt.c: Include gimple-pretty-print.h
13779         (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
13780         further tests.
13781         (decl_maybe_in_construction_p): Fix conditional on cdtor check
13782         (get_polymorphic_call_info): Fix return value
13783         (type_change_info): New sturcture based on ipa-prop
13784         variant.
13785         (noncall_stmt_may_be_vtbl_ptr_store): New predicate
13786         based on ipa-prop variant.
13787         (extr_type_from_vtbl_ptr_store): New function
13788         based on ipa-prop variant.
13789         (record_known_type): New function.
13790         (check_stmt_for_type_change): New function.
13791         (get_dynamic_type): New function.
13792         * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
13793         * tree-ssa-pre.c: ipa-utils.h
13794         (eliminate_dom_walker::before_dom_children): Use ipa-devirt
13795         machinery; sanity check with ipa-prop devirtualization.
13796         * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
13797         polymorphic flag.
13799 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
13801         * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
13802         * alias.c, cfgexpand.c, cgraphbuild.c,
13803         config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
13804         config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
13805         config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
13806         config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
13807         config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
13808         config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
13809         config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
13810         dse.c, except.c, gengtype.c, gimple-expr.c,
13811         gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
13812         ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
13813         tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
13814         tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
13815         tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
13816         tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
13817         pointer-set.h.
13818         * pointer-set.c: Remove file.
13819         * pointer-set.h: Remove file.
13821 2014-08-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13823         * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
13824         * config/arm/types.md (f_sels, f_seld): Delete.
13826 2014-08-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13828         * config/aarch64/aarch64.md (absdi2): Set simd attribute.
13829         (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
13830         (aarch64_movdi_<mode>high): Likewise.
13831         (aarch64_mov<mode>high_di): Likewise.
13832         (aarch64_movdi_<mode>low): Likewise.
13833         (aarch64_mov<mode>low_di): Likewise.
13834         (aarch64_movtilow_tilow): Likewise.
13835         Add comment explaining usage of fp,simd attributes and of
13836         TARGET_FLOAT and TARGET_SIMD.
13838 2014-08-07  Ian Bolton  <ian.bolton@arm.com>
13839             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13841         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
13842         Use MOVN when one of the half-words is 0xffff.
13844 2014-08-07  Marat Zakirov  <m.zakirov@samsung.com>
13846         * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
13848 2014-08-07  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
13850         * haifa-sched.c (SCHED_SORT): Delete.  Macro used exactly once.
13851         (enum rfs_decition:RFS_*): New constants wrapped in an enum.
13852         (rfs_str): String corresponding to RFS_* constants.
13853         (rank_for_schedule_stats_t): New typedef.
13854         (rank_for_schedule_stats): New static variable.
13855         (rfs_result): New static function.
13856         (rank_for_schedule): Track statistics for deciding heuristics.
13857         (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
13858         static functions.
13859         (ready_sort): Use them for debug printouts.
13860         (schedule_block): Init statistics state.  Print statistics on
13861         rank_for_schedule decisions.
13863 2014-08-07  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
13865         * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
13867 2014-08-07  Ilya Tocar  <ilya.tocar@intel.com>
13869         * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
13870         constraint.
13872 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
13874         * hash-map.h (default_hashmap_traits): Adjust overloads of hash
13875         function to not conflict.
13876         * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
13877         gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
13878         lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
13879         tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
13880         tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
13881         of pointer_map.
13883 2014-08-07  Marek Polacek  <polacek@redhat.com>
13885         * fold-const.c (fold_binary_loc): Add folding of
13886         (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
13888 2013-08-07  Ilya Enkovich  <ilya.enkovich@intel.com>
13890         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
13891         instead of type size.
13892         (ASM_FINISH_DECLARE_OBJECT): Likewise.
13894 2014-08-07  Marat Zakirov  <m.zakirov@samsung.com>
13896         * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
13897         (*thumb1_movqi_insn): Likewise.
13898         * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
13900 2014-08-07  Tom de Vries  <tom@codesourcery.com>
13902         * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
13903         (glibc_2_11_or_earlier): Remove effective-target keywords.
13905 2014-08-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
13907         * config/arm/arm.c (bdesc_2arg): Fix typo.
13908         (arm_atomic_assign_expand_fenv): Remove The default implementation.
13910 2014-08-07  Zhenqiang Chen  <zhenqiang.chen@arm.com>
13912         * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
13914 2014-08-06  Vladimir Makarov  <vmakarov@redhat.com>
13916         PR debug/61923
13917         * haifa-sched.c (advance_one_cycle): Fix dump.
13918         (schedule_block): Don't advance cycle if we are already at the
13919         beginning of the cycle.
13921 2014-08-06  Martin Jambor  <mjambor@suse.cz>
13923         PR ipa/61393
13924         * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
13926 2014-08-06  Richard Biener  <rguenther@suse.de>
13928         PR lto/62034
13929         * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
13930         SCCs here.
13931         (lto_input_tree): Pop SCCs here.
13933 2014-08-06  Richard Biener  <rguenther@suse.de>
13935         PR tree-optimization/61320
13936         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
13937         handle misaligned loads.
13939 2014-08-06  Alan Lawrence  <alan.lawrence@arm.com>
13941         * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
13942         (aarch64_expand_vec_perm_const): Check for dup before zip.
13944 2014-08-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13946         * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
13947         CONST_INT_P instead of GET_CODE and compare.
13948         (aarch64_select_cc_mode): Likewise.
13949         (aarch64_print_operand): Likewise.
13950         (aarch64_rtx_costs): Likewise.
13951         (aarch64_simd_valid_immediate): Likewise.
13952         (aarch64_simd_check_vect_par_cnst_half): Likewise.
13953         (aarch64_simd_emit_pair_result_insn): Likewise.
13955 2014-08-05  David Malcolm  <dmalcolm@redhat.com>
13957         * gdbhooks.py (find_gcc_source_dir): New helper function.
13958         (class PassNames): New class, locating and parsing passes.def.
13959         (class BreakOnPass): New command "break-on-pass".
13961 2014-08-05  Trevor Saunders  <tsaunders@mozilla.com>
13963         * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
13964         getting olde.
13966 2014-08-05  Richard Biener  <rguenther@suse.de>
13968         PR rtl-optimization/61672
13969         * emit-rtl.h (mem_attrs_eq_p): Declare.
13970         * emit-rtl.c (mem_attrs_eq_p): Export.  Handle NULL mem-attrs.
13971         * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
13972         * cfgcleanup.c (merge_memattrs): Likewise.
13973         Include emit-rtl.h.
13975 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13977         * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
13978         rather than singleton vectors.
13979         (vqdmlsls_lane_s32): Likewise.
13981 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13983         * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
13984         Use VSDQ_HSI mode iterator.
13985         (aarch64_sqrdmulh_laneq<mode>): Likewise.
13986         (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
13987         * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
13988         Use BUILTIN_VDQHS macro.
13989         (sqrdmulh_laneq): Likewise.
13990         * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
13991         (vqdmlals_laneq_s32): Likewise.
13992         (vqdmlslh_laneq_s16): Likewise.
13993         (vqdmlsls_laneq_s32): Likewise.
13994         (vqdmulhh_laneq_s16): Likewise.
13995         (vqdmulhs_laneq_s32): Likewise.
13996         (vqrdmulhh_laneq_s16): Likewise.
13997         (vqrdmulhs_laneq_s32): Likewise.
13999 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14001         * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
14002         (vmuld_laneq_f64): Likewise.
14003         (vmuls_laneq_f32): Likewise.
14004         (vmul_n_f64): Likewise.
14005         (vmuld_lane_f64): Reimplement in C.
14006         (vmuls_lane_f32): Likewise.
14008 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14010         * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
14011         to reservation.
14012         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
14014 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14016         * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
14017         (rbitsi2): Likewise.
14018         (*arm_rev): Set predicable and predicable_short_it attributes.
14020 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14022         * convert.c (convert_to_integer): Guard transformation to lrint by
14023         -fno-math-errno.
14025 2014-08-05  James Greenhalgh  <james.greenhalgh@arm.com>
14027         * config/aarch64/aarch64-builtins.c
14028         (aarch64_simd_builtin_type_mode): Delete.
14029         (v8qi_UP): Remap to V8QImode.
14030         (v4hi_UP): Remap to V4HImode.
14031         (v2si_UP): Remap to V2SImode.
14032         (v2sf_UP): Remap to V2SFmode.
14033         (v1df_UP): Remap to V1DFmode.
14034         (di_UP): Remap to DImode.
14035         (df_UP): Remap to DFmode.
14036         (v16qi_UP):V16QImode.
14037         (v8hi_UP): Remap to V8HImode.
14038         (v4si_UP): Remap to V4SImode.
14039         (v4sf_UP): Remap to V4SFmode.
14040         (v2di_UP): Remap to V2DImode.
14041         (v2df_UP): Remap to V2DFmode.
14042         (ti_UP): Remap to TImode.
14043         (ei_UP): Remap to EImode.
14044         (oi_UP): Remap to OImode.
14045         (ci_UP): Map to CImode.
14046         (xi_UP): Remap to XImode.
14047         (si_UP): Remap to SImode.
14048         (sf_UP): Remap to SFmode.
14049         (hi_UP): Remap to HImode.
14050         (qi_UP): Remap to QImode.
14051         (aarch64_simd_builtin_datum): Make mode a machine_mode.
14052         (VAR1): Build builtin name.
14053         (aarch64_init_simd_builtins): Remove dead code.
14055 2014-08-05  Roman Gareev  <gareevroman@gmail.com>
14057         * graphite-isl-ast-to-gimple.c:
14058         (set_options): New function.
14059         (scop_to_isl_ast): Add calling of set_options.
14061 2014-08-05  Jakub Jelinek  <jakub@redhat.com>
14063         * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
14064         (analyze_iv_to_split_insn): Don't initialize them.
14065         (get_ivts_expr): Removed.
14066         (allocate_basic_variable, insert_base_initialization): Use
14067         SET_SRC instead of *get_ivts_expr.
14068         (split_iv): Use &SET_SRC instead of get_ivts_expr.
14070 2014-08-05  Roman Gareev  <gareevroman@gmail.com>
14072         * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
14073         (translate_isl_ast_for_loop): Add checking of the
14074         flag_loop_parallelize_all.
14075         (ast_build_before_for): New function.
14076         (scop_to_isl_ast): Add checking of the
14077         flag_loop_parallelize_all.
14078         * graphite-dependences.c: Move the defenition of the
14079         scop_get_dependences from graphite-optimize-isl.c to this file.
14080         (apply_schedule_on_deps): Add checking of the ux's emptiness.
14081         (carries_deps): Add checking of the x's value.
14082         * graphite-optimize-isl.c: Move the defenition of the
14083         scop_get_dependences to graphite-dependences.c.
14084         * graphite-poly.h: Add declarations of scop_get_dependences
14085         and carries_deps.
14087 2014-08-04  Rohit  <rohitarulraj@freescale.com>
14089         PR target/60102
14090         * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
14091         names.
14092         (alt_reg_names): Likewise.
14093         (rs6000_dwarf_register_span): For SPE high registers, replace
14094         dwarf register numbers with GCC hard register numbers.
14095         (rs6000_init_dwarf_reg_sizes_extra): Likewise.
14096         (rs6000_dbx_register_number): For SPE high registers, return dwarf
14097         register number for the corresponding GCC hard register number.
14098         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
14099         newly added GCC hard register numbers for SPE high registers.
14100         (DWARF_FRAME_REGISTERS):  Likewise.
14101         (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
14102         (DWARF_FRAME_REGNUM): Likewise.
14103         (FIXED_REGISTERS): Likewise.
14104         (CALL_USED_REGISTERS): Likewise.
14105         (CALL_REALLY_USED_REGISTERS): Likewise.
14106         (REG_ALLOC_ORDER): Likewise.
14107         (enum reg_class): Likewise.
14108         (REG_CLASS_NAMES): Likewise.
14109         (REG_CLASS_CONTENTS): Likewise.
14110         (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
14112 2014-08-04  Richard Biener  <rguenther@suse.de>
14114         * gimple-fold.h (gimple_fold_builtin): Remove.
14115         * gimple-fold.c (gimple_fold_builtin): Make static.
14116         * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
14117         fold_stmt, not gimple_fold_builtin.
14119 2014-08-04  Martin Liska <mliska@suse.cz>
14121         * cgraph.h (csi_end_p): Removed.
14122         (csi_next): Likewise.
14123         (csi_node): Likewise.
14124         (csi_start): Likewise.
14125         (cgraph_node_in_set_p): Likewise.
14126         (cgraph_node_set_size): Likewise.
14127         (vsi_end_p): Likewise.
14128         (vsi_next): Likewise.
14129         (vsi_node): Likewise.
14130         (vsi_start): Likewise.
14131         (varpool_node_set_size): Likewise.
14132         (cgraph_node_set_nonempty_p): Likewise.
14133         (varpool_node_set_nonempty_p): Likewise.
14134         * cgraphunit.c (cgraph_process_new_functions): vec replaces
14135         cgraph_node_set.
14136         * ipa-inline-transform.c: Likewise.
14137         * ipa-utils.c (cgraph_node_set_new): Removed.
14138         (cgraph_node_set_add): Likewise.
14139         (cgraph_node_set_remove): Likewise.
14140         (cgraph_node_set_find): Likewise.
14141         (dump_cgraph_node_set): Likewise.
14142         (debug_cgraph_node_set): Likewise.
14143         (free_cgraph_node_set): Likewise.
14144         (varpool_node_set_new): Likewise.
14145         (varpool_node_set_add): Likewise.
14146         (varpool_node_set_remove): Likewise.
14147         (varpool_node_set_find): Likewise.
14148         (dump_varpool_node_set): Likewise.
14149         (free_varpool_node_set): Likewise.
14150         (debug_varpool_node_set): Likewise.
14151         * tree-emutls.c (struct tls_var_data):
14152         (emutls_index): Removed.
14153         (emutls_decl): Likewise.
14154         (gen_emutls_addr): Function implementation uses newly added
14155         hash_map<varpool_node *, tls_var_data>.
14156         (clear_access_vars): Likewise.
14157         (create_emultls_var): Likewise.
14158         (ipa_lower_emutls): Likewise.
14159         (reset_access): New function.
14161 2014-08-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
14163         * config/i386/i386.c (ix86_option_override_internal): Add
14164         PTA_RDRND and PTA_MOVBE for bdver4.
14166 2014-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14167             James Greenhalgh  <james.greenhalgh@arm.com>
14169         * doc/md.texi (clrsb): Document.
14170         (clz): Change reference to x into operand 1.
14171         (ctz): Likewise.
14172         (popcount): Likewise.
14174 2014-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14176         PR target/61713
14177         * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
14178         move to subtarget in serial version if result is ignored.
14180 2014-08-04  Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14181             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14183         * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
14184         to any two insns.  Update comment.  Rename to sched_macro_fuse_insns.
14185         (sched_analyze_insn): Update use of try_group_insn to
14186         sched_macro_fuse_insns.
14187         * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
14188         arguments that are not conditional jumps.
14190 2014-08-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
14192         * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
14193         family information. Handle BTVER2 cpu with cpuid family value.
14195 2014-08-04  Tom de Vries  <tom@codesourcery.com>
14197         * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
14198         (glibc_2_11_or_earlier): Document effective-target keywords.
14200 2014-08-01  Jan Hubicka  <hubicka@ucw.cz>
14202         * ipa-devirt.c (odr_type_warn_count): Add type.
14203         (possible_polymorphic_call_targets): Set it.
14204         (ipa_devirt): Use it.
14206 2014-08-01  Jan Hubicka  <hubicka@ucw.cz>
14208         * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
14209         Document.
14210         * ipa-devirt.c: Include hash-map.h
14211         (struct polymorphic_call_target_d): Add type_warning and decl_warning.
14212         (clear_speculation): Break out of ...
14213         (get_class_context): ... here; speed up handling obviously useless
14214         speculations.
14215         (odr_type_warn_count, decl_warn_count): New structures.
14216         (final_warning_record): New structure.
14217         (final_warning_records): New static variable.
14218         (possible_polymorphic_call_targets): Cleanup handling of
14219         speculative info; do not build speculation when user do not care;
14220         record info about warnings when asked for.
14221         (add_decl_warning): New function.
14222         (type_warning_cmp): New function.
14223         (decl_warning_cmp): New function.
14224         (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
14225         (gate): Enable pass when warnings are requested.
14226         * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
14227         options.
14229 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
14231         * hash-map.h (default_hashmap_traits::mark_key_deleted):
14232         Fix cast.
14233         (hash_map::remove): New method.
14234         (hash_map::traverse): New method.
14235         * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
14236         ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
14237         tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
14238         tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
14239         tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
14240         tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
14241         pointer_map.
14243 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
14245         * hash-set.h: new File.
14246         * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
14247         cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
14248         ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
14249         lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
14250         tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
14251         tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
14252         tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
14253         varpool.c: Use hash_set instead of pointer_set.
14255 2014-08-01  Alan Lawrence  <alan.lawrence@arm.com>
14257         * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
14259 2014-08-01  Jiong Wang <jiong.wang@arm.com>
14261         * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
14262         for frame access when strict_p is false.
14264 2014-08-01  Renlin Li <renlin.li@arm.com>
14265 2014-08-01  Jiong Wang <jiong.wang@arm.com>
14267         * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
14268         aarch64_offset_7bit_signed_scaled_p, remove static and use it.
14269         * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
14270         Declaration.
14271         * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
14272         predicate.
14273         * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
14274         aarch64_mem_pair_offset.
14276 2014-08-01  Jiong Wang <jiong.wang@arm.com>
14278         * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
14279         offset.
14280         (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
14281         * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
14283 2014-08-01  Matthew Fortune  <matthew.fortune@imgtec.com>
14285         * config/mips/mips.h (REGISTER_PREFIX): Define macro.
14287 2014-08-01  James Greenhalgh  <james.greenhalgh@arm.com>
14289         PR regression/61510
14290         * cgraphunit.c (analyze_functions): Use get_create rather than get
14291         for decls which are clones of abstract functions.
14293 2014-08-01  Martin Liska  <mliska@suse.cz>
14295         * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
14296         * ipa-prop.h (count_formal_params): Global function created from static.
14297         * ipa-prop.c (count_formal_params): Likewise.
14298         * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
14299         profiles for semantically equivalent functions.
14300         * passes.c (do_per_function): If we load body of a function
14301         during WPA, this condition should behave same.
14302         * varpool.c (ctor_for_folding): More tolerant assert for variable
14303         aliases created during WPA.
14305 2014-08-01  Martin Liska  <mliska@suse.cz>
14307         * doc/invoke.texi (Options That Control Optimization): Documentation
14308         for -foptimize-strlen introduced. Optimization levels default options
14309         fixed.
14311 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
14313         * opts.c (common_handle_option): Handle -fsanitize=alignment.
14314         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
14315         (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
14316         type to bool.
14317         * stor-layout.h (min_align_of_type): New prototype.
14318         * asan.c (pass_sanopt::execute): Don't perform gsi_next if
14319         ubsan_expand* told us not to do it.  Remove the extra gsi_end_p
14320         check.
14321         * ubsan.c: Include builtins.h.
14322         (ubsan_expand_bounds_ifn): Change return type to bool,
14323         always return true.
14324         (ubsan_expand_null_ifn): Change return type to bool, change
14325         argument to gimple_stmt_iterator *.  Handle both null and alignment
14326         sanitization, take type from ckind argument's type rather than
14327         first argument.
14328         (instrument_member_call): Removed.
14329         (instrument_mem_ref): Remove t argument, add mem and base arguments.
14330         Handle both null and alignment sanitization, don't say whole
14331         struct access is member access.  Build 3 argument IFN_UBSAN_NULL
14332         call instead of 2 argument.
14333         (instrument_null): Adjust instrument_mem_ref caller.  Don't
14334         instrument calls here.
14335         (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
14336         like SANITIZE_NULL.
14337         * stor-layout.c (min_align_of_type): New function.
14338         * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
14339         Or it into SANITIZE_UNDEFINED.
14340         * doc/invoke.texi (-fsanitize=alignment): Document.
14342 2014-07-31  Andi Kleen  <ak@linux.intel.com>
14344         * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
14346 2014-07-31  Andi Kleen  <ak@linux.intel.com>
14348         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
14349         inchash.
14350         (vn_reference_compute_hash): Dito.
14351         (vn_nary_op_compute_hash): Dito.
14352         (vn_phi_compute_hash): Dito.
14353         * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
14355 2014-07-31  Andi Kleen  <ak@linux.intel.com>
14357         * tree-ssa-dom.c (iterative_hash_exprs_commutative):
14358         Rename to inchash:add_expr_commutative. Convert to inchash.
14359         (iterative_hash_hashable_expr): Rename to
14360         inchash:add_hashable_expr. Convert to inchash.
14361         (avail_expr_hash): Dito.
14363 2014-07-31  Andi Kleen  <ak@linux.intel.com>
14365         * ipa-devirt.c (polymorphic_call_target_hasher::hash):
14366         Convert to inchash.
14368 2014-07-31  Andi Kleen  <ak@linux.intel.com>
14370         * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
14372 2014-07-31  Andi Kleen  <ak@linux.intel.com>
14374         * Makefile.in (OBJS): Add rtlhash.o
14375         * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
14376         (loc_checksum): Dito.
14377         (loc_checksum_ordered): Dito.
14378         (hash_loc_operands): Dito.
14379         (hash_locs): Dito.
14380         (hash_loc_list): Dito.
14381         * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
14382         * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
14383         * rtlhash.c: New file.
14384         * rtlhash.h: New file.
14386 2014-07-31  Andi Kleen  <ak@linux.intel.com>
14388         * inchash.h (inchash): Change inchash class to namespace.
14389         (class hash): ... Rename from inchash.
14390         (add_object): Move from macro to class template.
14391         * lto-streamer-out.c (hash_tree): Change inchash
14392         to inchash::hash.
14393         * tree.c (build_type_attribute_qual_variant): Dito.
14394         (type_hash_list): Dito.
14395         (attribute_hash_list): Dito.
14396         (iterative_hstate_expr): Rename to inchash::add_expr
14397         (build_range_type_1): Change inchash to inchash::hash
14398         and use hash::add_expr.
14399         (build_array_type_1): Dito.
14400         (build_function_type): Dito
14401         (build_method_type_directly): Dito.
14402         (build_offset_type): Dito.
14403         (build_complex_type): Dito.
14404         (make_vector_type): Dito.
14405         * tree.h (iterative_hash_expr): Dito.
14407 2014-07-31  Chen Gang  <gang.chen.5i5j@gmail.com>
14409         * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
14411 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
14413         * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
14414         correct alphabetical position.
14415         (vpaddd_f64): Rewrite using builtins.
14416         (vpaddd_s64): Move to correct alphabetical position.
14417         (vpaddd_u64): New.
14419 2014-07-31  Oleg Endo  <olegendo@gcc.gnu.org>
14421         PR target/61844
14422         * config/sh/sh.c (sh_legitimate_address_p,
14423         sh_legitimize_reload_address): Handle reg+reg address modes when
14424         ALLOW_INDEXED_ADDRESS is false.
14425         * config/sh/predicates.md (general_movsrc_operand,
14426         general_movdst_operand): Likewise.
14428 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
14430         * config/aarch64/aarch64-builtins.c
14431         (aarch64_gimple_fold_builtin): Don't fold reduction operations for
14432         BYTES_BIG_ENDIAN.
14434 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
14436         * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
14437         the generated mask based on BYTES_BIG_ENDIAN.
14438         (aarch64_simd_check_vect_par_cnst_half): New.
14439         * config/aarch64/aarch64-protos.h
14440         (aarch64_simd_check_vect_par_cnst_half): New.
14441         * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
14442         the check out to aarch64_simd_check_vect_par_cnst_half.
14443         (vect_par_cnst_lo_half): Likewise.
14444         * config/aarch64/aarch64-simd.md
14445         (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
14446         (move_hi_quad_<mode>): Always generate a low mask.
14448 2014-07-30  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
14450         * doc/invoke.texi (AVR Options): Add documentation about
14451         __AVR_DEVICE_NAME__ built-in macro.
14453 2014-07-31  Charles Baylis  <charles.baylis@linaro.org>
14455         PR target/61948
14456         * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
14457         constraints are satisfied.
14458         (<shift>di3_neon): Likewise.
14460 2014-07-31  Richard Biener  <rguenther@suse.de>
14462         PR tree-optimization/61964
14463         * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
14464         by structural equality.
14466 2014-07-31  Yury Gribov  <y.gribov@samsung.com>
14468         * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
14469         * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
14470         * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
14471         New enums.
14472         * gcc.c (sanitize_spec_function): Support new option.
14473         (SANITIZER_SPEC): Remove now redundant check.
14474         * opts.c (common_handle_option): Support new option.
14475         (finish_options): Check for incompatibilities.
14476         * toplev.c (process_options): Split userspace-specific checks.
14478 2014-07-31  Richard Biener  <rguenther@suse.de>
14480         * lto-streamer.h (struct output_block): Remove global.
14481         (struct data_in): Remove labels, num_named_labels and
14482         num_unnamed_labels.
14483         * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
14484         * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
14486 2014-07-31  Marc Glisse  <marc.glisse@inria.fr>
14488         PR c++/60517
14489         * common.opt (-Wreturn-local-addr): Moved from c.opt.
14490         * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
14491         (isolate_path): New argument to avoid inserting a trap.
14492         (find_implicit_erroneous_behaviour): Handle returning the address
14493         of a local variable.
14494         (find_explicit_erroneous_behaviour): Likewise.
14496 2014-07-31  Bingfeng Mei <bmei@broadcom.com>
14498         PR lto/61868
14499         * toplev.c (init_random_seed): Move piece of code never called to
14500         set_random_seed.
14501         (set_random_seed): see above.
14503 2014-07-31  Tom de Vries  <tom@codesourcery.com>
14505         * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
14507 2014-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
14509         * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
14510         (compute_regs_asm_clobbered): Use extract_asm_operands instead.
14512 2014-07-31  Richard Biener  <rguenther@suse.de>
14514         * data-streamer.h (streamer_write_data_stream): Declare here,
14515         renamed from ...
14516         * lto-streamer.h (lto_output_data_stream): ... this.  Remove.
14517         * lto-cgraph.c (lto_output_node): Adjust.
14518         (lto_output_varpool_node): Likewise.
14519         * data-streamer-out.c (streamer_string_index): Likewise.
14520         (streamer_write_data_stream, lto_append_block): Move from ...
14521         * lto-section-out.c (lto_output_data_stream,
14522         lto_append_block): ... here.
14524 2014-07-30  Mike Stump  <mikestump@comcast.net>
14526         * configure.ac: Also check for popen.
14527         * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
14528         * configure: Regenerate.
14529         * config.in:  Regenerate.
14531 2014-07-30  Martin Jambor  <mjambor@suse.cz>
14533         * tree-sra.c (sra_ipa_modify_assign): Change type of the first
14534         parameter to gimple.
14536 2014-07-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14538         * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
14539         address as second parameter to __tpf_eh_return routine.
14541 2014-07-30  Jiong Wang  <jiong.wang@arm.com>
14543         * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
14544         Thumb2.
14546 2014-07-30  Tom Tromey  <tromey@redhat.com>
14548         PR c/59855
14549         * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
14550         * doc/extend.texi (Type Attributes): Document designated_init
14551         attribute.
14553 2014-07-30  Roman Gareev  <gareevroman@gmail.com>
14555         * graphite-isl-ast-to-gimple.c:
14556         (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
14557         (gcc_expression_from_isl_expression): Pass type to
14558         gcc_expression_from_isl_ast_expr_id.
14560 2014-07-30  Richard Biener  <rguenther@suse.de>
14562         * lto-streamer.h (lto_write_data): New function.
14563         * langhooks.c (lhd_append_data): Do not free block.
14564         * lto-section-out.c (lto_write_data): New function writing
14565         raw data to the current section.
14566         (lto_write_stream): Adjust for langhook semantic change.
14567         (lto_destroy_simple_output_block): Write header directly.
14568         * lto-opts.c (lto_write_options): Write options directly.
14569         * lto-streamer-out.c (produce_asm): Write heaeder directly.
14570         (lto_output_toplevel_asms): Likewise.
14571         (copy_function_or_variable): Copy data directly.
14572         (write_global_references): Output index table directly.
14573         (lto_output_decl_state_refs): Likewise.
14574         (write_symbol): Write data directly.
14575         (produce_symtab): Adjust.
14576         (produce_asm_for_decls): Output header and refs directly.
14578 2014-07-29  Jan Hubicka  <hubicka@ucw.cz>
14580         * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
14581         to speculative_targets
14582         (get_class_context): Fix handling of contextes without outer type;
14583         avoid matching non-polymorphic types in LTO.
14584         (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
14585         parameter to speculative_targetsp; handle speculation.
14586         (dump_possible_polymorphic_call_targets): Update dumping.
14588 2014-07-29  Jan Hubicka  <hubicka@ucw.cz>
14590         * common.opt (Wodr): Enable by default.
14592 2014-07-29  Olivier Hainque  <hainque@adacore.com>
14594         * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
14596 2014-07-29  H.J. Lu  <hongjiu.lu@intel.com>
14598         PR bootstrap/61914
14599         * gengtype.c (strtoken): New function.
14600         (create_user_defined_type): Replace strtok with strtoken.
14602 2014-07-29  Nathan Sidwell  <nathan@acm.org>
14604         * gcov-io.c (gcov_var): Make hidden.
14605         * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
14606         (gcov_do_dump): Declare.
14607         (gcov_output_files): Call gcov_do_dump, not gcov_exit).
14609 2014-07-29  Martin Jambor  <mjambor@suse.cz>
14611         * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
14612         parameter to gimple.
14613         (sra_modify_assign): Likewise.
14615 2014-07-29  Richard Biener  <rguenther@suse.de>
14617         PR middle-end/52478
14618         * expr.c (expand_expr_real_2): Revert last change.
14620 2014-07-28  Jan Hubicka  <hubicka@ucw.cz>
14622         * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
14623         * cgraph.h (cgraph_indirect_call_info): Add speculative data.
14624         * gimple-fold.c (fold_gimple_assign): Fix check for virtual
14625         call.
14626         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
14627         (contains_type_p): Forward declare.
14628         (polymorphic_call_target_hasher::hash): Hash speculative info.
14629         (polymorphic_call_target_hasher::equal): Compare speculative info.
14630         (get_class_context): Handle speuclation.
14631         (contains_type_p): Update.
14632         (get_polymorphic_call_info_for_decl): Update.
14633         (walk_ssa_copies): Break out from ...
14634         (get_polymorphic_call_info): ... here; set speculative context
14635         before giving up.
14636         * ipa-prop.c (ipa_write_indirect_edge_info,
14637         ipa_read_indirect_edge_info): Stream speculative context.
14638         * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
14639         (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
14640         SPECULATIVE_MAYBE_DERIVED_TYPE).
14641         (possible_polymorphic_call_targets overriders): Update.
14642         (dump_possible_polymorphic_call_targets overriders): Update.
14643         (dump_possible_polymorphic_call_target_p overriders): Update.
14645 2014-07-28  Jan Hubicka  <hubicka@ucw.cz>
14647         * gimple-fold.c (fold_gimple_assign): Fix condition guarding
14648         ipa-devirt path; fix thinko there.
14650 2014-07-28  Trevor Saunders  <tsaunders@mozilla.com>
14652         * config/i386/i386.c (ix86_return_in_memory): Replace one
14653         ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
14655 2014-07-28  Marek Polacek  <polacek@redhat.com>
14657         * doc/invoke.texi (-Wno-odr): Fix @item entry.  Tweak wording.
14659 2014-07-28  Peter Bergner  <bergner@vnet.ibm.com>
14661         * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
14662         * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
14663         * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
14664         (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
14665         (USE_LD_AS_NEEDED): Likewise.
14666         (ASM_APP_ON): Likewise.
14667         (ASM_APP_OFF): Likewise.
14668         (TARGET_POSIX_IO): Likewise.
14669         * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
14670         (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
14671         (USE_LD_AS_NEEDED): Likewise.
14672         (ASM_APP_ON): Likewise.
14673         (ASM_APP_OFF): Likewise.
14674         (TARGET_POSIX_IO): Likewise.
14676 2014-07-28  Eric Botcazou  <ebotcazou@adacore.com>
14678         PR middle-end/61734
14679         * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
14680         operators other than the equality operators.
14682 2014-07-28  Richard Biener  <rguenther@suse.de>
14684         PR middle-end/52478
14685         * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
14686         sure to register SImode ones, not only >= word_mode ones.
14687         * expr.c (expand_expr_real_2): When expanding -ftrapv
14688         binops do not use OPTAB_LIB_WIDEN.
14690 2014-07-28  Richard Sandiford  <rdsandiford@googlemail.com>
14692         PR middle-end/61919
14693         * tree-outof-ssa.c (insert_partition_copy_on_edge)
14694         (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
14695         (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
14696         inserting them in the insn stream.
14698 2014-07-28  Marek Polacek  <polacek@redhat.com>
14700         PR middle-end/61913
14701         * common.opt (Wodr): Add Var.
14703 2014-07-28  Richard Biener  <rguenther@suse.de>
14705         PR tree-optimization/61921
14706         * tree-ssa-structalias.c (create_variable_info_for_1): Check
14707         if there is a varpool node before dereferencing it.
14709 2014-07-28  Roman Gareev  <gareevroman@gmail.com>
14711         * graphite-sese-to-poly.c:
14712         (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
14713         id of the pbb), which contains pointer to the pbb1.
14715         * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
14717 2014-07-28  Roman Gareev  <gareevroman@gmail.com>
14719         * graphite-isl-ast-to-gimple.c:
14720         (graphite_create_new_guard): New function.
14721         (translate_isl_ast_node_if): New function.
14722         (translate_isl_ast): Add calling of translate_isl_ast_node_if.
14724         * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
14726 2014-07-27  Anthony Green  <green@moxielogic.com>
14728         * config.gcc: Add moxie-*-moxiebox* configuration.
14729         * config/moxie/moxiebox.h: New file.
14731 2014-07-26  Andrew Pinski  <apinski@cavium.com>
14733         * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
14734         from the read only register.
14736 2014-07-26  Richard Sandiford  <rdsandiford@googlemail.com>
14738         * ira-costs.c (find_costs_and_classes): For -O0, use the best class
14739         as the allocation class if it isn't likely to be spilled.
14741 2014-07-26  Richard Sandiford  <rdsandiford@googlemail.com>
14743         * rtl.h (tls_referenced_p): Declare.
14744         * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
14745         * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
14746         (mips_cannot_force_const_mem): Use tls_referenced_p.
14747         * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
14748         * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
14749         instead of pa_tls_referenced_p.
14750         * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
14751         (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
14752         (pa_legitimate_constant_p): Likewise.
14753         (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
14754         * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
14755         (rs6000_cannot_force_const_mem, rs6000_emit_move)
14756         (rs6000_address_for_altivec): Use tls_referenced_p instead of
14757         rs6000_tls_referenced_p.
14758         (rs6000_tls_symbol_ref_1): Delete.
14760 2014-07-26  Marc Glisse  <marc.glisse@inria.fr>
14762         PR target/44551
14763         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
14764         Optimize inverse of a VEC_CONCAT.
14766 2014-07-25  Xinliang David Li  <davidxl@google.com>
14768         * params.def: New parameter.
14769         * coverage.c (get_coverage_counts): Check new flag.
14770         (coverage_compute_profile_id): Check new flag.
14771         (coverage_begin_function): Check new flag.
14772         (coverage_end_function): Check new flag.
14773         * value-prof.c (coverage_node_map_initialized_p): New function.
14774         (init_node_map): Populate map with all functions.
14775         * doc/invoke.texi: Document new parameter.
14777 2014-07-25  Jan Hubicka  <hubicka@ucw.cz>
14778             Richard Biener <rguenther@suse.de>
14780         * lto-streamer-out.c (struct sccs): Turn to ...
14781         (class DFS): ... this one; refactor the DFS walk so it can
14782         be re-done on per-SCC basis.
14783         (DFS::DFS): New constructor.
14784         (DFS::~DFS): New destructor.
14785         (hash_tree): Add new MAP argument holding in-SCC hash values;
14786         remove POINTER_TYPE hashing hack.
14787         (scc_entry_compare): Rename to ...
14788         (DFS::scc_entry_compare): ... this one.
14789         (hash_scc): Rename to ...
14790         (DFS::hash_scc): ... this one; pass output_block instead
14791         of streamer_cache; work harder to get unique and stable SCC
14792         hashes.
14793         (DFS_write_tree): Rename to ...
14794         (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
14795         (lto_output_tree): Update.
14797 2014-07-25  Andi Kleen  <ak@linux.intel.com>
14799         * lto-streamer-out.c (hash_tree): Convert to inchash.
14801 2014-07-25  Andi Kleen  <ak@linux.intel.com>
14803         * tree.c (build_type_attribute_qual_variant): Use inchash.
14804         (type_hash_list): Dito.
14805         (attribute_hash_list): Dito
14806         (iterative_hstate_expr): Dito.
14807         (iterative_hash_expr): Dito.
14808         (build_range_type_1): Dito.
14809         (build_array_type_1): Dito.
14810         (build_function_type): Dito.
14811         (build_method_type_directly): Dito.
14812         (build_offset_type): Dito.
14813         (build_complex_type): Dito.
14814         (make_vector_type): Dito.
14815         * tree.h (iterative_hash_expr): Add compat wrapper.
14816         (iterative_hstate_expr): Add.
14818 2014-07-25  Andi Kleen  <ak@linux.intel.com>
14820         * Makefile.in (OBJS): Add inchash.o.
14821         (PLUGIN_HEADERS): Add inchash.h.
14822         * ipa-devirt.c: Include inchash.h.
14823         * lto-streamer-out.c: Dito.
14824         * tree-ssa-dom.c: Dito.
14825         * tree-ssa-pre.c: Dito.
14826         * tree-ssa-sccvn.c: Dito.
14827         * tree-ssa-tail-merge.c: Dito.
14828         * asan.c: Dito.
14829         * tree.c (iterative_hash_hashval_t): Move to ...
14830         (iterative_hash_host_wide_int): Move to ...
14831         * inchash.c: Here. New file.
14832         * tree.h (iterative_hash_hashval_t): Move to ...
14833         (iterative_hash_host_wide_int): Move to ...
14834         * inchash.h: Here. New file.
14836 2014-07-25  Richard Biener  <rguenther@suse.de>
14838         PR middle-end/61762
14839         PR middle-end/61894
14840         * fold-const.c (native_encode_int): Add and handle offset
14841         parameter to do partial encodings of expr.
14842         (native_encode_fixed): Likewise.
14843         (native_encode_real): Likewise.
14844         (native_encode_complex): Likewise.
14845         (native_encode_vector): Likewise.
14846         (native_encode_string): Likewise.
14847         (native_encode_expr): Likewise.
14848         * fold-const.c (native_encode_expr): Add offset parameter
14849         defaulting to -1.
14850         * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
14851         (fold_ctor_reference): Handle all reads from tcc_constant
14852         ctors.
14854 2014-07-25  Richard Biener  <rguenther@suse.de>
14856         * tree-inline.c (estimate_move_cost): Mark speed_p argument
14857         as possibly unused.
14859 2014-07-23  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
14861         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
14863 2014-07-24  Kyle McMartin  <kyle@redhat.com>
14865         * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
14867 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14869         * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
14870         Add prototype.
14871         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
14872         function.
14873         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
14874         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
14875         * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
14877 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14879         * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
14880         and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
14881         aggregate types.  Instead, *all* aggregate types, except for single-
14882         element or homogeneous float/vector aggregates, are quadword-aligned
14883         if required by their type alignment.  Issue -Wpsabi note when a type
14884         is now treated differently than before.
14886 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14888         * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
14889         does not fit fully into floating-point registers, and there is still
14890         space in the register parameter area, use GPRs to pass those parts
14891         of the argument.  Issue -Wpsabi note if any parameter is now treated
14892         differently than before.
14893         (rs6000_arg_partial_bytes): Update.
14895 2014-07-24  Uros Bizjak  <ubizjak@gmail.com>
14897         * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
14899 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
14901         * rtl.h (target_rtl): Remove lang_dependent_initialized.
14902         * toplev.c (initialize_rtl): Don't use it.  Move previously
14903         "language-dependent" calls to...
14904         (backend_init): ...here.
14905         (lang_dependent_init_target): Don't set lang_dependent_initialized.
14906         Assert that RTL initialization hasn't happend yet.
14908 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
14910         PR rtl-optimization/61629
14911         * reginfo.c (reinit_regs): Only call ira_init and recog_init if
14912         they have already been initialized.
14914 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
14916         PR middle-end/61268
14917         * function.c (assign_parm_setup_reg): Prevent invalid sharing of
14918         DECL_INCOMING_RTL and entry_parm.
14919         (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
14920         * calls.c (load_register_parameters): Likewise argument values.
14921         (emit_library_call_value_1, store_one_arg): Likewise argument
14922         save areas.
14923         * config/i386/i386.c (assign_386_stack_local): Likewise the local
14924         stack slot.
14925         * explow.c (validize_mem): Modify the argument in-place.
14927 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
14929         * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
14930         (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
14932 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
14934         * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
14935         (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
14937 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
14939         * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
14940         (aarch64_save_callee_saves): New parameter "skip_wb".
14941         (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
14943 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
14945         * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
14946         "wb_candidate2".
14947         * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
14949 2014-07-24  Roman Gareev  <gareevroman@gmail.com>
14951         * graphite-isl-ast-to-gimple.c:
14952         (graphite_create_new_loop): Add calling of isl_id_free to properly
14953         decrement reference counts.
14955         * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
14957 2014-07-24  Martin Liska  <mliska@suse.cz>
14958         * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
14959         function used.
14960         * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
14961         (rs6000_code_end): Likewise.
14963 2014-07-24  Martin Liska  <mliska@suse.cz>
14965         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
14966         symtab_node funtion used.
14967         (rs6000_xcoff_declare_object_name): Likewise.
14969 2014-07-24  Martin Liska  <mliska@suse.cz>
14971         * cgraphunit.c (compile): Correct function used.
14973 2014-07-24  Jan Hubicka  <hubicka@ucw.cz>
14975         * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
14976         as non-indexable.
14978 2014-07-24  Jan Hubicka  <hubicka@ucw.cz>
14980         PR lto/61802
14981         * varasm.c (bss_initializer_p): Handle offlined ctors.
14982         (align_variable, get_variable_align): Likewise.
14983         (make_decl_one_only): Likewise.
14984         (default_binds_local_p_1): Likewise.
14985         (decl_binds_to_current_def_p): Likewise.
14986         (get_variable_section): Get constructor if it is offlined.
14987         (assemble_variable_contents): Sanity check that the caller
14988         streamed in the ctor in LTO.
14990 2014-07-24  Roman Gareev  <gareevroman@gmail.com>
14992         * graphite-isl-ast-to-gimple.c:
14993         (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
14994         (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
14995         isl_ast_op_pdiv_r to the different case.
14997         * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
14999 2014-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15001         PR middle-end/61876
15002         * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
15003         when flag_errno_math is on.
15005 2014-07-24  Martin Liska  <mliska@suse.cz>
15007         * cgraph.h (varpool_node):
15008         (availability get_availability (void)):
15009         created from cgraph_variable_initializer_availability
15010         (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
15011         created from: cgraph_variable_initializer_availability
15012         (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
15013         (void finalize_named_section_flags (void)):
15014         created from varpool_finalize_named_section_flags
15015         (bool assemble_decl (void)): created from varpool_assemble_decl
15016         (void analyze (void)): created from varpool_analyze_node
15017         (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
15018         void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
15019         (void remove_initializer (void)): created from varpool_remove_initializer
15020         (tree get_constructor (void)): created from varpool_get_constructor
15021         (bool externally_visible_p (void)): created from varpool_externally_visible_p
15022         (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
15023         (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
15024         (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
15025         (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
15026         (static void finalize_decl (tree decl)): created from varpool_finalize_decl
15027         (static bool output_variables (void)): created from varpool_output_variables
15028         (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
15029         created from varpool_extra_name_alias
15030         (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
15031         (static void dump_varpool (FILE *f)): created from dump_varpool
15032         (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
15033         (static varpool_node *create_empty (void)): created from varpool_create_empty_node
15034         (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
15035         (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
15036         (void assemble_aliases (void)): created from assemble_aliases
15038 2014-07-24  Martin Liska  <mliska@suse.cz>
15040         * cgraph.h (symtab_node):
15041         (void register_symbol (void)): created from symtab_register_node
15042         (void remove (void)): created from symtab_remove_node
15043         (void dump (FILE *f)): created from dump_symtab_node
15044         (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
15045         (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
15046         (struct ipa_ref *add_reference (symtab_node *referred_node,
15047         enum ipa_ref_use use_type)): created from add_reference
15048         (struct ipa_ref *add_reference (symtab_node *referred_node,
15049         enum ipa_ref_use use_type, gimple stmt)): created from add_reference
15050         (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
15051         gimple stmt)): created from maybe_add_reference
15052         (bool semantically_equivalent_p (symtab_node *target)): created from
15053         symtab_semantically_equivalent_p
15054         (void remove_from_same_comdat_group (void)): created from
15055         remove_from_same_comdat_group
15056         (void add_to_same_comdat_group (symtab_node *old_node)): created from
15057         symtab_add_to_same_comdat_group
15058         (void dissolve_same_comdat_group_list (void)): created from
15059         symtab_dissolve_same_comdat_group_list
15060         (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
15061         (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
15062         created from symtab_alias_ultimate_target
15063         (inline symtab_node *next_defined_symbol (void)): created from
15064         symtab_next_defined_symbol
15065         (bool resolve_alias (symtab_node *target)): created from
15066         symtab_resolve_alias
15067         (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
15068         void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
15069         (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
15070         (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
15071         (void set_section (const char *section)): created from set_section_1
15072         (enum availability get_availability (void)): created from symtab_node_availability
15073         (void make_decl_local (void)): created from symtab_make_decl_local
15074         (bool real_symbol_p (void)): created from symtab_read_node
15075         (can_be_discarded_p (void)): created from symtab_can_be_discarded
15076         (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
15077         (inline bool in_same_comdat_group_p (symtab_node *target)): created from
15078         symtab_in_same_comdat_p;
15079         (bool address_taken_from_non_vtable_p (void)): created from
15080         address_taken_from_non_vtable_p
15081         (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
15082         (static void dump_table (FILE *)): created from dump_symtab
15083         (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
15084         (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
15085         (static bool used_from_object_file_p_worker (symtab_node *node)): created from
15086         symtab_used_from_object_file_p
15087         (void dump_base (FILE *)): created from dump_symtab_base
15088         (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
15089         (void unregister (void)): created from symtab_unregister_node
15090         (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
15091         (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
15092         (static bool noninterposable_alias (symtab_node *node, void *data)): created from
15093         symtab_nonoverwritable_alias_1
15094         * cgraph.h (cgraph_node):
15095         (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
15096         created from cgraph_remove_node_and_inline_clones
15097         (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
15098         (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
15099         bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
15100         (cgraph_node *function_symbol (enum availability *avail = NULL)):
15101         created from cgraph_function_node
15102         (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
15103         vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
15104         struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
15105         created from cgraph_create_clone
15106         (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
15107         vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
15108         created from cgraph_create_virtual_clone
15109         (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
15110         (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
15111         bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
15112         (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
15113         vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
15114         bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
15115         created from cgraph_function_version_info
15116         (struct cgraph_function_version_info *insert_new_function_version (void)):
15117         created from insert_new_cgraph_node_version
15118         (struct cgraph_function_version_info *function_version (void)): created from
15119         get_cgraph_node_version
15120         (void analyze (void)): created from analyze_function
15121         (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
15122         HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
15123         tree real_alias) cgraph_add_thunk
15124         (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
15125         (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
15126         created from cgraph_function_or_thunk_node
15127         (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
15128         created from expand_thunk
15129         (void reset (void)): created from cgraph_reset_node
15130         (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
15131         (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
15132         (void remove (void)): created from cgraph_remove_node
15133         (void dump (FILE *f)): created from dump_cgraph_node
15134         (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
15135         (bool get_body (void)): created from cgraph_get_body
15136         (void release_body (void)): created from cgraph_release_function_body
15137         (void unnest (void)): created from cgraph_unnest_node
15138         (void make_local (void)): created from cgraph_make_node_local
15139         (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
15140         (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
15141         gcov_type count, int freq)): created from cgraph_create_edge
15142         (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
15143         gcov_type count, int freq)): created from cgraph_create_indirect_edge
15144         (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
15145         gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
15146         created from cgraph_create_edge_including_clones
15147         (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
15148         (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
15149         (void remove_callers (void)): created from cgraph_node_remove_callers
15150         (void remove_callees (void)): created from cgraph_node_remove_callees
15151         (enum availability get_availability (void)): created from cgraph_function_body_availability
15152         (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
15153         (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
15154         (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
15155         (void call_duplication_hooks (cgraph_node *node2)): created from
15156         cgraph_call_node_duplication_hooks
15157         (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
15158         void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
15159         (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
15160         void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
15161         (void call_function_insertion_hooks (void)):
15162         created from cgraph_call_function_insertion_hooks
15163         (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
15164         (bool local_p (void)): created from cgraph_local_node
15165         (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
15166         (bool cannot_return_p (void)): created from cgraph_node_cannot_return
15167         (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
15168         (inline bool only_called_directly_or_aliased_p (void)):
15169         created from cgraph_only_called_directly_or_aliased_p
15170         (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
15171         created from cgraph_will_be_removed_from_program_if_no_direct_calls
15172         (bool can_remove_if_no_direct_calls_and_refs_p (void)):
15173         created from cgraph_can_remove_if_no_direct_calls_and_refs_p
15174         (bool can_remove_if_no_direct_calls_p (void)):
15175         created from cgraph_can_remove_if_no_direct_calls_p
15176         (inline bool has_gimple_body_p (void)):
15177         created from cgraph_function_with_gimple_body_p
15178         (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
15179         (static void dump_cgraph (FILE *f)): created from dump_cgraph
15180         (static inline void debug_cgraph (void)): created from debug_cgraph
15181         (static void record_function_versions (tree decl1, tree decl2)):
15182         created from record_function_versions
15183         (static void delete_function_version (tree decl)):
15184         created from delete_function_version
15185         (static void add_new_function (tree fndecl, bool lowered)):
15186         created from cgraph_add_new_function
15187         (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
15188         (static cgraph_node * create (tree decl)): created from cgraph_create_node
15189         (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
15190         (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
15191         (static cgraph_node *get_for_asmname (tree asmname)):
15192         created from cgraph_node_for_asm
15193         (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
15194         created from cgraph_same_body_alias
15195         (static bool used_from_object_file_p_worker (cgraph_node *node,
15196         void *): new function
15197         (static bool non_local_p (cgraph_node *node, void *)):
15198         created from cgraph_non_local_node_p_1
15199         (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
15200         created from verify_cgraph
15201         (static bool make_local (cgraph_node *node, void *)):
15202         created from cgraph_make_node_local
15203         (static cgraph_node *create_alias (tree alias, tree target)):
15204         created from cgraph_create_function_alias
15205         (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
15206         gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
15207         created from cgraph_create_edge_1
15208         * cgraph.h (varpool_node):
15209         (void remove (void)): created from varpool_remove_node
15210         (void dump (FILE *f)): created from dump_varpool_node
15212 2014-07-24  Richard Biener  <rguenther@suse.de>
15214         PR ipa/61823
15215         * tree-ssa-structalias.c (create_variable_info_for_1):
15216         Use varpool_get_constructor.
15217         (create_variable_info_for): Likewise.
15219 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
15221         * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
15222         subtract outgoing area size when restoring stack_pointer_rtx.
15224 2014-07-24  Nick Clifton  <nickc@redhat.com>
15226         * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
15227         that operations are taking place in parallel.
15228         * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
15230 2014-07-24  Thomas Schwinge  <thomas@codesourcery.com>
15232         * omp-low.c (extract_omp_for_data): Add missing break statement.
15234 2014-07-24  Richard Biener  <rguenther@suse.de>
15236         * tree-inline.h (estimate_move_cost): Add speed_p parameter.
15237         * tree-inline.c (estimate_move_cost): Add speed_p parameter
15238         and adjust MOVE_RATIO query accordingly.
15239         (estimate_num_insns): Adjust callers.
15240         * ipa-prop.c (ipa_populate_param_decls): Likewise.
15241         * ipa-cp.c (gather_context_independent_values,
15242         estimate_local_effects): Likewise.
15243         * ipa-split.c (consider_split): Likewise.
15245 2014-07-24  Trevor Saunders  <tsaunders@mozilla.com>
15247         * config/i386/driver-i386.c: Remove names of unused arguments and
15248         unnecessary unused attributes.
15249         * config/i386/host-mingw32.c: Likewise.
15250         * config/i386/i386.c: Likewise.
15251         * config/i386/winnt-stubs.c: Likewise.
15252         * config/i386/winnt.c: Likewise.
15254 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
15256         * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
15257         (aarch64_gen_loadwb_pair): New helper function.
15258         (aarch64_expand_epilogue): Simplify code using new helper functions.
15259         * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
15261 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
15263         * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
15264         (aarch64_gen_storewb_pair): New helper function.
15265         (aarch64_expand_prologue): Simplify code using new helper functions.
15266         * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
15268 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
15270         * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
15271         Rename to aarch64_save_callee_saves, remove restore code.
15272         (aarch64_restore_callee_saves): New function.
15274 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
15276         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
15277         (aarch64_save_callee_saves): New function to handle reg save
15278         for both core and vectore regs.
15280 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
15282         * config/aarch64/aarch64.c (aarch64_gen_load_pair)
15283         (aarch64_gen_store_pair): New helper function.
15284         (aarch64_save_or_restore_callee_save_registers)
15285         (aarch64_save_or_restore_fprs): Use new helper functions.
15287 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
15289         * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
15290         (aarch64_save_or_restore_callee_save_registers)
15291         (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
15293 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
15295         * config/aarch64/aarch64.c
15296         (aarch64_save_or_restore_callee_save_registers)
15297         (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
15299 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
15301         * config/aarch64/aarch64.c
15302         (aarch64_save_or_restore_callee_save_registers)
15303         (aarch64_save_or_restore_fprs): Remove 'increment'.
15305 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
15307         * config/aarch64/aarch64.c
15308         (aarch64_save_or_restore_callee_save_registers)
15309         (aarch64_save_or_restore_fprs): Use register offset in
15310         cfun->machine->frame.reg_offset.
15312 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
15314         * config/aarch64/aarch64.c
15315         (aarch64_save_or_restore_callee_save_registers)
15316         (aarch64_save_or_restore_fprs): Remove base_rtx.
15318 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
15320         * config/aarch64/aarch64.c
15321         (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
15322         to 'start_offset'.  Remove local variable 'start_offset'.
15324 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
15326         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
15327         type to HOST_WIDE_INT.
15329 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
15331         * config/aarch64/aarch64.c (aarch64_expand_prologue)
15332         (aarch64_save_or_restore_fprs)
15333         (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
15335 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
15337         * config/arm/t-rtems-eabi: Add
15338         mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
15339         mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
15340         mbig-endian/mthumb/march=armv7-r, and
15341         mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
15342         multilibs.
15344 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
15345             Chris Johns <chrisj@rtems.org>
15346             Joel Sherrill <joel.sherrill@oarcorp.com>
15348         * config.gcc: Add nios2-*-rtems*.
15349         * config/nios2/rtems.h: New file.
15350         * gcc/config/nios2/t-rtems: New file.
15352 2014-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
15354         PR target/61396
15355         * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
15356         constant numbers, not general constants.
15357         (rs6000_expand_vector_init): Ditto.
15359 2014-07-23  Nathan Sidwell  <nathan@acm.org>
15361         * gcov-tool.c (gcov_list): Declare here.
15362         (set_gcov_list): Remove.
15363         (gcov_output_files): Set gcov_list directly.
15365 2014-07-23  Host Schirmeier  <horst@schirmeier.com>
15367         * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
15369 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
15371         * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
15372         callee-saved registers are available for padding purpose
15373         and r3 is not mandatory, then prefer use those callee-saved
15374         instead of r3.
15376 2014-07-23  Richard Biener  <rguenther@suse.de>
15378         * params.def (PARAM_MAX_COMBINE_INSNS): New.
15379         * combine.c: Include statistics.h and params.h.
15380         (combine_instructions): Guard three and four insn combines
15381         with max-combine-insns value.  Record statistics for combines
15382         performed.
15383         * doc/invoke.texi (max-combine-insns): Document new param.
15385 2014-07-23  Roman Gareev  <gareevroman@gmail.com>
15387         * graphite-isl-ast-to-gimple.c:
15388         (translate_isl_ast_node_block): New function.
15389         (translate_isl_ast): Add calling of translate_isl_ast_node_block.
15391         * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
15392         * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
15394 2014-07-23  Roman Gareev  <gareevroman@gmail.com>
15396         * graphite-isl-ast-to-gimple.c:
15397         (get_max_schedule_dimensions): New function.
15398         (extend_schedule): Likewise.
15399         (generate_isl_schedule): Add calling of extend_schedule and
15400         get_max_schedule_dimensions.
15402 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15404         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
15405         (case UNSPEC): Handle UNSPEC_RBIT.
15407 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15409         * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
15410         (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
15412 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15414         * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
15416 2014-07-22  Roman Gareev  <gareevroman@gmail.com>
15418         * graphite-isl-ast-to-gimple.c:
15419         Add inclusion of gimple-ssa.h, tree-into-ssa.h.
15420         (ivs_params_clear):
15421         (build_iv_mapping): New function.
15422         (translate_isl_ast_node_user): Likewise.
15423         (translate_isl_ast): Add calling of translate_isl_ast_node_user.
15425         * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
15426         * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
15427         * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
15429 2014-07-21  Bin Cheng  <bin.cheng@arm.com>
15431         PR target/55701
15432         * config/arm/arm.md (setmem): New pattern.
15433         * config/arm/arm-protos.h (struct tune_params): New fields.
15434         (arm_gen_setmem): New prototype.
15435         * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
15436         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
15437         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
15438         (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
15439         (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
15440         (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
15441         (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
15442         (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
15443         (arm_const_inline_cost): New function.
15444         (arm_block_set_max_insns): New function.
15445         (arm_block_set_non_vect_profit_p): New function.
15446         (arm_block_set_vect_profit_p): New function.
15447         (arm_block_set_unaligned_vect): New function.
15448         (arm_block_set_aligned_vect): New function.
15449         (arm_block_set_unaligned_non_vect): New function.
15450         (arm_block_set_aligned_non_vect): New function.
15451         (arm_block_set_vect, arm_gen_setmem): New functions.
15453 2014-07-21  Bin Cheng  <bin.cheng@arm.com>
15455         * config/arm/arm.c (output_move_neon): Handle REG explicitly.
15457 2014-07-21  Uros Bizjak  <ubizjak@gmail.com>
15459         PR target/61855
15460         * config/i386/avx512fintrin.h: Move constants for mantissa extraction
15461         out of #ifdef __OPTIMIZE__.
15463 2014-07-20  Eric Botcazou  <ebotcazou@adacore.com>
15465         * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
15466         different trapping status if -fnon-call-exceptions is enabled.
15468 2014-07-20  Eric Botcazou  <ebotcazou@adacore.com>
15470         * expr.c (store_field): Handle VOIDmode for calls that return values
15471         in multiple locations.
15473 2014-07-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15475         * config/rs6000/altivec.md (unspec enum):  Fix typo in UNSPEC_VSLDOI.
15476         (altivec_vsldoi_<mode>): Likewise.
15478 2014-07-20  Roman Gareev  <gareevroman@gmail.com>
15480         * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
15481         to the number of characters in the line.
15483 2014-07-20  Roman Gareev  <gareevroman@gmail.com>
15485         * graphite-isl-ast-to-gimple.c: Add using of
15486         build_nonstandard_integer_type instead of int128_integer_type_node.
15488 2014-07-19  Eric Botcazou  <ebotcazou@adacore.com>
15490         * toplev.c (output_stack_usage): Adjust the location of the warning.
15492 2014-07-19  Daniel Cederman  <cederman@gaisler.com>
15494         * config/sparc/sync.md (*membar_storeload_leon3): New insn.
15495         (*membar_storeload): Disable for LEON3.
15497 2014-07-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15499         PR rtl-optimization/61461
15500         * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
15502 2014-07-18  Uros Bizjak  <ubizjak@gmail.com>
15504         PR target/61794
15505         * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
15506         Fix instruction constraint.
15507         (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
15509 2014-07-18  Jonathan Wakely  <jwakely@redhat.com>
15511         * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
15513 2014-07-18  Chung-Ju Wu  <jasonwucj@gmail.com>
15515         * config/nds32/nds32.c (nds32_can_eliminate): Follow the
15516         GNU coding standards.
15517         (nds32_register_move_cost): Likewise.
15518         (nds32_memory_move_cost): Likewise.
15519         (nds32_address_cost): Likewise.
15521 2014-07-18  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
15523         * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
15525 2014-07-17  John David Anglin  <danglin@gcc.gnu.org>
15527         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
15528         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
15529         and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
15530         (HAVE_sync_compare_and_swapqi): Define.
15531         (HAVE_sync_compare_and_swaphi): Likewise.
15532         (HAVE_sync_compare_and_swapsi): Likewise.
15534 2014-07-17  Richard Sandiford  <rdsandiford@googlemail.com>
15536         * config/mips/p5600.md: Add missing cpu tests.
15538 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15540         * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
15541         (vmla_f64): Likewise.
15542         (vfms_f64): Likewise.
15543         (vmls_f64): Likewise.
15545 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15547         * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
15548         (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
15550 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15552         * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
15553         (vmlal_high_lane_s32): Likewise.
15554         (vmlal_high_lane_u16): Likewise.
15555         (vmlal_high_lane_u32): Likewise.
15556         (vmlsl_high_lane_s16): Likewise.
15557         (vmlsl_high_lane_s32): Likewise.
15558         (vmlsl_high_lane_u16): Likewise.
15559         (vmlsl_high_lane_u32): Likewise.
15561 2014-07-17  Terry Guo  <terry.guo@arm.com>
15563         * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
15564         (alus_reg): Renamed to alus_sreg.
15565         * config/arm/arm-fixed.md: Change type of non-dsp instructions
15566         from alu_reg to alu_sreg.  Change type of dsp instructions from
15567         alu_reg to alu_dsp_reg.
15568         * config/arm/thumb1.md: Likewise.
15569         * config/arm/thumb2.md: Likewise.
15570         * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
15571         * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
15572         with alu_sreg and alus_sreg.
15573         * config/arm/arm1026ejs.md (alu_op): Likewise.
15574         * config/arm/arm1136jfs.md (11_alu_op): Likewise.
15575         * config/arm/arm926ejs.md (9_alu_op): Likewise.
15576         * config/arm/fa526.md (526_alu_op): Likewise.
15577         * config/arm/fa606te.md (606te_alu_op): Likewise.
15578         * config/arm/fa626te.md (626te_alu_op): Likewise.
15579         * config/arm/fa726te.md (726te_alu_op): Likewise.
15580         * config/arm/fmp626.md (mp626_alu_op): Likewise.
15581         * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
15582         alu_sreg, alu_dsp_reg and alus_sreg.
15583         * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
15584         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
15585         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
15586         * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
15587         * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
15588         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
15589         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
15590         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
15591         * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
15592         * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
15593         subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
15594         *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
15595         (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
15596         sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
15597         subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
15598         alus_reg to alus_sreg.
15600 2014-07-17  Andreas Schwab  <schwab@linux-m68k.org>
15602         * real.c (encode_ieee_extended_motorola): Clear integer bit in the
15603         infinity format.
15605 2014-07-17  Richard Biener  <rguenther@suse.de>
15607         PR rtl-optimization/61801
15608         * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
15609         don't set reg_pending_barrier if it appears in a debug-insn.
15611 2014-07-16  DJ Delorie  <dj@redhat.com>
15613         * config/rx/rx.c (rx_option_override): Fix alignment values.
15614         (rx_align_for_label): Likewise.
15616 2014-07-17  Hans-Peter Nilsson  <hp@axis.com>
15618         PR target/61737.
15619         * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
15620         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
15621         (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
15622         functions.
15623         (cris_print_index, cris_print_operand, cris_constant_index_p)
15624         (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
15625         (cris_address_cost): Ditto last CONSTANT_P.
15626         (cris_symbol_type_of): Rename from cris_pic_symbol_type_of.  All
15627         callers changed.  Yield cris_offsettable_symbol for non-PIC
15628         constant symbolic expressions including labels.  Yield cris_unspec
15629         for all unspecs.
15630         (cris_expand_pic_call_address): New parameter MARKERP.  Set its
15631         target to pic_offset_table_rtx for calls that will likely go
15632         through PLT, const0_rtx when they can't.  All callers changed.
15633         Assert flag_pic.  Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
15634         symbolic expressions to be PICified.  Remove second, redundant,
15635         assert on can_create_pseudo_p returning non-zero.  Use
15636         replace_equiv_address_nv, not replace_equiv_address, for final
15637         operand update.
15638         * config/cris/cris.md ("movsi"): Move variable t to pattern
15639         toplevel. Adjust assert for new cris_symbol_type member.  Use
15640         CONSTANT_P instead of CONSTANT_ADDRESS_P.
15641         ("*movsi_internal") <case 9>: Make check for valid unspec operands
15642         for lapc stricter.
15643         <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
15644         ("call", "call_value"): Use second incoming operand as a marker
15645         for pic-offset-table-register being used.
15646         ("*expanded_call_non_v32", "*expanded_call_v32")
15647         ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
15648         second incoming operand to CALL, match cris_call_type_marker.
15649         ("*expanded_call_value_side"): Ditto.  Disable before reload_completed.
15650         ("*expanded_call_side"): Ditto.  Fix typo in comment.
15651         (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
15652         CONSTANT_P.
15653         * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
15654         * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
15655         (enum cris_symbol_type): Rename from cris_pic_symbol_type.  All
15656         users changed.  Add members cris_offsettable_symbol and cris_unspec.
15657         (cris_symbol_type): Rename from cris_pic_symbol_type.
15658         * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
15659         just CONSTANT_P.
15660         * config/cris/cris-protos.h (cris_symbol_type_of,
15661         cris_expand_pic_call_address): Adjust prototypes.
15662         (cris_legitimate_constant_p): New prototype.
15664         * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
15665         an existing tmake_file.  Don't add t-slibgcc and t-linux.
15667 2014-07-17  Jason Merrill  <jason@redhat.com>
15669         PR c++/61623
15670         * symtab.c (symtab_remove_from_same_comdat_group): Also
15671         set_comdat_group to NULL_TREE.
15672         (verify_symtab): Fix diagnostic.
15674 2014-07-16  David Wohlferd  <dw@LimeGreenSocks.com>
15676         PR target/61662
15677         * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
15679 2014-07-16  Dodji Seketeli  <dodji@redhat.com>
15681         Support location tracking for built-in macro tokens
15682         * input.h (is_location_from_builtin_token): New function declaration.
15683         * input.c (is_location_from_builtin_token): New function definition.
15684         * toplev.c (general_init): Tell libcpp what the pre-defined
15685         spelling location for built-in tokens is.
15687 2014-07-16  Jakub Jelinek  <jakub@redhat.com>
15689         * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
15690         on the FUNCTION_DECL.
15692 2014-07-16  Richard Biener  <rguenther@suse.de>
15694         PR other/61782
15695         * doc/extend.texi (always_inline): Clarify.
15697 2014-07-15  Eric Christopher  <echristo@gmail.com>
15699         * doc/invoke.texi (Link Options): Document -z option.
15701 2014-07-15  Uros Bizjak  <ubizjak@gmail.com>
15703         * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
15704         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
15706 2014-07-15  Jan Hubicka  <hubicka@ucw.cz>
15708         * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
15710 2014-07-15  Bernd Schmidt  <bernds@codesourcery.com>
15712         * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
15713         varpool_assemble_decl.
15714         * varpool.c (varpool_assemble_decl): Assert that node->definition is
15715         true.
15717 2014-07-15  Michael Matz  <matz@suse.de>
15719         PR rtl-optimization/61772
15720         * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
15722 2014-07-15  Richard Biener  <rguenther@suse.de>
15724         * opts.c (default_options_table): Disable bit-ccp at -Og.
15726 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
15728         * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
15730 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
15732         * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
15733         NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
15734         call langhook for unknown declaration.
15735         (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
15736         * tree.h (DECL_ARGUMENTS): Update.
15737         * print-tree.c (print_node): Update.
15738         * tree-core.h (tree_decl_non_common): Remove arguments.
15739         (tree_function_decl): Add arguments.
15741 2014-07-14  Richard Earnshaw  <rearnsha@arm.com>
15743         * aarch64.md (add_losym_<mode>): Set type to alu_imm.
15745 2014-07-14  Richard Biener  <rguenther@suse.de>
15747         PR tree-optimization/61779
15748         * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
15749         simplifying a condition.
15751 2014-07-14  Richard Biener  <rguenther@suse.de>
15753         * builtins.c (c_strlen): Make only_value == 2 really only
15754         affect warning generation.
15756 2014-07-14  Richard Biener  <rguenther@suse.de>
15758         PR tree-optimization/61757
15759         PR tree-optimization/61783
15760         PR tree-optimization/61787
15761         * tree-ssa-dom.c (record_equality): Revert canonicalization
15762         change and add comment.
15763         (propagate_rhs_into_lhs): Revert previous fix, removing
15764         loop depth restriction again.
15766 2014-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15768         * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
15769         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
15770         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
15771         * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
15772         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
15773         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
15774         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
15776 2014-07-14  Richard Biener  <rguenther@suse.de>
15778         * cgraph.h (decl_in_symtab_p): Make inline.
15780 2014-07-14  Jakub Jelinek  <jakub@redhat.com>
15782         PR middle-end/61294
15783         * doc/invoke.texi (-Wmemset-transposed-args): Document.
15785         PR target/61656
15786         * config/i386/i386.c (classify_argument): Don't merge classes above
15787         number of words.
15789 2014-07-13  Jan Hubicka  <hubicka@ucw.cz>
15791         * cgraph.h (symtab_node): Add nonzero_address.
15792         (decl_in_symtab_p): Break out from ...
15793         (symtab_get_node): ... here.
15794         * fold-const.c: Include cgraph.h
15795         (tree_single_nonzero_warnv_p): Use symtab to determine
15796         if symbol is non-zero.
15797         * symtab.c (symtab_node::nonzero_address): New method.
15799 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
15801         * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
15802         forgotten in previous commit.
15804 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
15806         * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
15807         on builtin types.
15808         * ipa-devirt.c: Include stor-layout.h and intl.h
15809         (odr_subtypes_equivalent_p): New function.
15810         (warn_odr): New function.
15811         (warn_type_mismatch): New function.
15812         (odr_types_equivalent_p): New function.
15813         (add_type_duplicate): Use it.
15814         * common.opt (Wodr): New flag.
15815         * doc/invoke.texi (Wodr): Document new warning.
15817 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
15819         * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
15820         (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
15821         * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
15822         (varpool_get_constructor): Push CTORS_IN timevar.
15823         * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
15825 2014-07-12  Uros Bizjak  <ubizjak@gmail.com>
15827         * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
15828         Remove VOID_FTYPE_PUSHORT.
15829         * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
15830         Change code to USHORT_FTYPE_VOID.
15831         (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
15832         (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
15833         (ix86_atomic_assign_expand_fenv): Update for
15834         __builtin_ia32_fnstsw changes.
15835         * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
15836         (fnstsw): Change operand 0 to nonimmediate operand.
15838 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
15840         * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
15841         (varpool_get_constructor): New function.
15842         (varpool_ctor_useable_for_folding_p): Break out from ...
15843         (ctor_for_folding): ... here; use varpool_get_constructor.
15844         (varpool_assemble_decl): Likewise.
15845         * lto-streamer.h (struct output_block): Turn cgraph_node
15846         to symbol filed.
15847         (lto_input_variable_constructor): Declare.
15848         * ipa-visibility.c (function_and_variable_visibility): Use
15849         varpool_get_constructor.
15850         * cgraph.h (varpool_get_constructor): Declare.
15851         (varpool_ctor_useable_for_folding_p): New function.
15852         * lto-streamer-out.c (get_symbol_initial_value): Take encoder
15853         parameter; return error_mark_node for non-trivial constructors.
15854         (lto_write_tree_1, DFS_write_tree): Update use of
15855         get_symbol_initial_value.
15856         (output_function): Update initialization of symbol.
15857         (output_constructor): New function.
15858         (copy_function): Rename to ..
15859         (copy_function_or_variable): ... this one; handle vars too.
15860         (lto_output): Output variable sections.
15861         * lto-streamer-in.c (input_constructor): New function.
15862         (lto_read_body): Rename from ...
15863         (lto_read_body_or_constructor): ... this one; handle vars too.
15864         (lto_input_variable_constructor): New function.
15865         * ipa-prop.c (ipa_prop_write_jump_functions,
15866         ipa_prop_write_all_agg_replacement): Update.
15867         * lto-cgraph.c (compute_ltrans_boundary): Use it.
15868         (output_cgraph_opt_summary): Set symbol to NULL.
15870 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
15872         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
15873         non-polymorphic types.
15874         * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
15875         * ipa-devirt.c (types_same_for_odr): Do not explode when one
15876         of types is not polymorphic.
15878 2014-07-11  Vladimir Makarov  <vmakarov@redhat.com>
15880         * lra-constraints.c (remove_inheritance_pseudos): Process
15881         destination pseudo too.
15883 2014-07-11  Rong Xu  <xur@google.com>
15885         * gcov-tool.c (gcov_output_files): Fix build error introduced in
15886         commit r212448.
15888 2014-07-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
15890         * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
15891         * config/avr/avr-devices.c (AVR_MCU): Same.
15892         (avr_mcu_types): add text start value to end of device list.
15893         * config/avr/avr-mcus.def: Add text section start for all devices.
15894         (ata5782): Add new avr5 device.
15895         (ata5831): Same.
15896         * config/avr/avr-tables.opt: Regenerate.
15897         * config/avr/avr.h: Add declaration for text section start handler.
15898         (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
15899         SPEC functions.
15900         (LINK_SPEC): Include text section start handler to linker spec.
15901         * config/avr/driver-avr.c (avr_device_to_text_start): New function to
15902         pass -Ttext option to linker if the text section start for the device
15903         is not zero.
15904         * config/avr/t-multilib: Regenerate.
15905         * doc/avr-mmcu.texi: Regenerate.
15907 2014-07-11  David Edelsohn  <dje.gcc@gmail.com>
15909         * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
15910         * config/rs6000/aix52.h (LINK_SPEC): Same.
15911         * config/rs6000/aix53.h (LINK_SPEC): Same.
15912         * config/rs6000/aix61.h (LINK_SPEC): Same.
15913         * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
15915 2014-07-11  Roman Gareev  <gareevroman@gmail.com>
15917         * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
15918         (graphite_verify): New function.
15919         (ivs_params_clear): New function.
15920         (gcc_expression_from_isl_ast_expr_id): New function.
15921         (gcc_expression_from_isl_expr_int): New function.
15922         (binary_op_to_tree): New function.
15923         (ternary_op_to_tree): New function.
15924         (unary_op_to_tree): New function.
15925         (nary_op_to_tree): New function.
15926         (gcc_expression_from_isl_expr_op): New function.
15927         (gcc_expression_from_isl_expression): New function.
15928         (graphite_create_new_loop): New function.
15929         (translate_isl_ast_for_loop): New function.
15930         (get_upper_bound): New function.
15931         (graphite_create_new_loop_guard): New function.
15932         (translate_isl_ast_node_for): New function.
15933         (translate_isl_ast): New function.
15934         (add_parameters_to_ivs_params): New function.
15935         (scop_to_isl_ast): New parameter ip.
15936         (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
15938 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
15940         * config/xtensa/predicates.md (call expander): Update for
15941         DECL_SECTION_NAME being string.
15943 2014-07-11  Richard Biener  <rguenther@suse.de>
15945         PR middle-end/61473
15946         * builtins.c (fold_builtin_memory_op): Inline memory moves that
15947         can be implemented with a single load followed by a single store.
15948         (c_strlen): Only warn when only_value is not 2.
15950 2014-07-11  Evgeny Stupachenko  <evstupac@gmail.com>
15952         * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
15954 2014-07-11  Marat Zakirov  <m.zakirov@samsung.com>
15956         PR target/61561
15957         * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
15958         (*movhi_bytes): Likewise.
15959         (*arm_movqi_insn): Likewise.
15961 2014-07-11  Uros Bizjak  <ubizjak@gmail.com>
15963         PR target/56858
15964         * config/alpha/alpha.c: Include tree-pass.h, context.h
15965         and pass_manager.h.
15966         (pass_data_handle_trap_shadows): New pass.
15967         (pass_handle_trap_shadows::gate): New pass gate function.
15968         (make_pass_handle_trap_shadows): New function.
15969         (rest_of_handle_trap_shadows): Ditto.
15971         (alpha_align_insns_1): Rename from alpha_align_insns.
15972         (pass_data_align_insns): New pass.
15973         (pass_align_insns::gate): New pass gate function.
15974         (make_pass_aling_insns): New function.
15975         (rest_of_align_insns): Ditto.
15976         (alpha_align_insns): Ditto.
15978         (alpha_option_override): Declare handle_trap_shadows info
15979         and align_insns_info.  Register handle_trap_shadows and align_insns
15980         passes here.
15981         (alpha_reorg): Do not call alpha_trap_shadows and
15982         alpha_align_insn from here.
15984         (alpha_pad_function_end): Do not skip BARRIERs.
15986 2014-07-10  Rong Xu  <xur@google.com>
15988         Add gcov-tool: an offline gcda profile processing tool support.
15989         * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
15990         (gcov_is_error): Ditto.
15991         (gcov_read_string): Ditto.
15992         (gcov_read_sync): Ditto.
15993         * gcov-io.h: Move counter defines to gcov-counter.def.
15994         * gcov-dump.c (tag_counters): Use gcov-counter.def.
15995         * coverage.c: Ditto.
15996         * gcov-tool.c: Offline gcda profile processing tool.
15997         (unlink_gcda_file): Remove one gcda file.
15998         (unlink_profile_dir): Remove gcda files from the profile path.
15999         (gcov_output_files): Output gcda files to an output dir.
16000         (profile_merge): Merge two profiles in directory.
16001         (print_merge_usage_message): Print merge usage.
16002         (merge_usage): Print merge usage and exit.
16003         (do_merge): Driver for profile merge sub-command.
16004         (profile_rewrite): Rewrite profile.
16005         (print_rewrite_usage_message): Print rewrite usage.
16006         (rewrite_usage): Print rewrite usage and exit.
16007         (do_rewrite): Driver for profile rewrite sub-command.
16008         (print_usage): Print gcov-info usage and exit.
16009         (print_version): Print gcov-info version.
16010         (process_args): Process arguments.
16011         (main): Main routine for gcov-tool.
16012         * Makefile.in: Build and install gcov-tool.
16013         * gcov-counter.def: New file split from gcov-io.h.
16014         * doc/gcc.texi: Include gcov-tool.texi.
16015         * doc/gcov-tool.texi: Document for gcov-tool.
16017 2014-07-10  Richard Biener  <rguenther@suse.de>
16019         PR tree-optimization/61757
16020         * tree-ssa-dom.c (loop_depth_of_name): Restore.
16021         (propagate_rhs_into_lhs): Revert part of last change.
16023 2014-07-10  Thomas Schwinge  <thomas@codesourcery.com>
16025         * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
16026         FUNCTION_DECLs.
16028 2014-07-10  Eric Botcazou  <ebotcazou@adacore.com>
16030         PR middle-end/53590
16031         * function.c (allocate_struct_function): Revert r188667 change.
16033         * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
16035 2014-07-10  Tom G. Christensen  <tgc@jupiterrise.com>
16037         * doc/install.texi: Remove links to defunct package providers for
16038         Solaris.
16040 2014-07-09  Tom de Vries  <tom@codesourcery.com>
16042         * final.c (get_call_fndecl): Declare.
16043         (self_recursive_call_p): New function.
16044         (collect_fn_hard_reg_usage): Handle self-recursive function calls.
16046 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
16048         * ipa-devirt.c (record_node): Walk through aliases.
16050 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
16052         * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
16054 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
16056         Revert:
16057         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
16059 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
16061         * ipa-visibility.c (function_and_variable_visibility): Remove
16062         temporary hack disabling local aliases on AIX.
16064 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
16066         * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
16067         * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
16069 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
16071         * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
16072         * rs6000/rs6000.c: Inline output of .set instruction.
16073         (declare_alias_data): New struct.
16074         (rs6000_declare_alias): New function.
16075         (rs6000_xcoff_declare_function_name): Use it.
16076         (rs6000_xcoff_declare_object_name): New function.
16077         * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
16078         (ASM_OUTPUT_DEF): Turn to empty definition.
16080 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
16082         PR bootstrap/61679
16083         * hash-table.h: use hash_table::value_type instead of
16084         Descriptor::value_type in the return types of several methods.
16086 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
16088         * tree-pass.h (pass_data): Remove has_execute member.
16089         * passes.c (execute_one_pass): Don't check pass->has_execute.
16090         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
16091         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
16092         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
16093         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
16094         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
16095         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
16096         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
16097         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
16098         gimple-low.c, gimple-ssa-isolate-paths.c,
16099         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
16100         ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
16101         ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
16102         ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
16103         lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
16104         postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
16105         reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
16106         stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
16107         tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
16108         tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
16109         tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
16110         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
16111         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
16112         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
16113         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
16114         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
16115         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
16116         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
16117         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
16118         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
16119         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
16120         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
16121         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
16122         web.c: Remove initializer for pass_data::has_execute.
16124 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
16126         * graphite-htab.h: Use hash_map instead of hash_table.
16127         * graphite-clast-to-gimple.c: Adjust.
16128         * passes.c: Use hash_map instead of hash_table.
16129         * sese.c: Likewise.
16130         * sese.h: Remove now unused code.
16132 2014-07-08  Sriraman Tallam  <tmsriram@google.com>
16134         PR target/61599
16135         * config/i386/i386.c (ix86_in_large_data_p): Check for size less
16136         than zero.
16138 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
16140         PR rtl-optimization/61673
16141         * combine.c (simplify_comparison): Test just mode's sign bit
16142         in tmode rather than the sign bit and any bits above it.
16144 2014-07-08  Roman Gareev  <gareevroman@gmail.com>
16146         * graphite-isl-ast-to-gimple.c (generate_isl_context):
16147         Add __isl_give to the declaration.
16148         (generate_isl_schedule): Likewise.
16149         (scop_to_isl_ast): Likewise.
16151 2014-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16153         * config/arm/arm.c (cortexa5_extra_costs): New table.
16154         (arm_cortex_a5_tune): Use cortexa5_extra_costs.
16156 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
16158         PR tree-optimization/61725
16159         * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
16160         range, use range_includes_zerop_p instead of integer_zerop on
16161         vr0->min, only use log2 of max if min is not negative.
16163 2014-07-08  Richard Biener  <rguenther@suse.de>
16165         * tree-ssa-dom.h (loop_depth_of_name): Remove.
16166         * tree-ssa-dom.c (record_equivalences_from_phis): Remove
16167         restriction on loop depth difference.
16168         (record_equality): Likewise.
16169         (propagate_rhs_into_lhs): Likewise.  Simplify condition.
16170         (loop_depth_of_name): Remove.
16171         * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
16172         restriction on loop depth difference.
16173         (init_copy_prop): Likewise.
16175 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
16177         * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
16178         parameter.
16179         (walk_aliased_vdefs): Likewise.
16180         * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
16181         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
16182         (detect_type_change_from_memory_writes): Check if entry was reached.
16184 2014-07-08  Richard Biener  <rguenther@suse.de>
16186         PR tree-optimization/61681
16187         * tree-ssa-structalias.c (find_what_var_points_to): Expand
16188         NONLOCAL inside ESCAPED.
16190 2014-07-08  Richard Biener  <rguenther@suse.de>
16192         PR tree-optimization/61680
16193         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
16194         Handle properly all read-write dependences with group accesses.
16196 2014-07-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
16198         PR tree-optimization/61576
16199         * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
16200         block containing reduction statement is predecessor of phi basi block.
16202 2014-07-08  Marek Polacek  <polacek@redhat.com>
16204         PR c/60226
16205         * fold-const.c (round_up_loc): Change the parameter type.
16206         Remove assert.
16207         * fold-const.h (round_up_loc): Adjust declaration.
16208         * stor-layout.c (finalize_record_size): Check for too large types.
16210 2014-07-07  Jan Hubicka  <hubicka@ucw.cz>
16212         * symtab.c: Include calls.h.
16213         (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
16215 2014-07-07  Maciej W. Rozycki  <macro@codesourcery.com>
16217         * config/rs6000/rs6000.c (output_vec_const_move): Handle
16218         little-endian code generation.
16219         * config/rs6000/spe.md (spe_evmergehi): Rename to...
16220         (vec_perm00_v2si): ... this.  Handle little-endian code generation.
16221         (spe_evmergehilo): Rename to...
16222         (vec_perm01_v2si): ... this.  Handle little-endian code generation.
16223         (spe_evmergelo): Rename to...
16224         (vec_perm11_v2si): ... this.  Handle little-endian code generation.
16225         (spe_evmergelohi): Rename to...
16226         (vec_perm10_v2si): ... this.  Handle little-endian code generation.
16227         (spe_evmergehi, spe_evmergehilo): New expanders.
16228         (spe_evmergelo, spe_evmergelohi): Likewise.
16229         (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
16230         (*frob_tf_ti): Likewise.
16231         (*frob_<mode>_di_2): Likewise.
16232         (*frob_tf_di_8_2): Likewise.
16233         (*frob_di_<mode>): Likewise.
16234         (*frob_ti_tf): Likewise.
16235         (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
16236         (*frob_ti_<mode>_8_2): Likewise.
16237         (*frob_ti_tf_2): Likewise.
16238         (mov_si<mode>_e500_subreg0): Rename to...
16239         (mov_si<mode>_e500_subreg0_be): ... this.  Restrict to the big
16240         endianness only.
16241         (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
16242         (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
16243         (*mov_si<mode>_e500_subreg0_elf_low_be): ... this.  Restrict to
16244         the big endianness only.
16245         (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
16246         (*mov_si<mode>_e500_subreg0_2): Rename to...
16247         (*mov_si<mode>_e500_subreg0_2_be): ... this.  Restrict to the
16248         big big endianness only.
16249         (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
16250         (*mov_si<mode>_e500_subreg4): Rename to...
16251         (*mov_si<mode>_e500_subreg4_be): ... this.  Restrict to the big
16252         endianness only.
16253         (mov_si<mode>_e500_subreg4_le): New instruction pattern.
16254         (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
16255         (*mov_si<mode>_e500_subreg4_elf_low_be): ... this.  Restrict to
16256         the big endianness only.
16257         (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
16258         pattern.
16259         (*mov_si<mode>_e500_subreg4_2): Rename to...
16260         (*mov_si<mode>_e500_subreg4_2_be): ... this.  Restrict to the big
16261         endianness only.
16262         (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
16263         (*mov_sitf_e500_subreg8): Rename to...
16264         (*mov_sitf_e500_subreg8_be): ... this.  Restrict to the big
16265         endianness only.
16266         (*mov_sitf_e500_subreg8_le): New instruction pattern.
16267         (*mov_sitf_e500_subreg8_2): Rename to...
16268         (*mov_sitf_e500_subreg8_2_be): ... this.  Restrict to the big
16269         endianness only.
16270         (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
16271         (*mov_sitf_e500_subreg12): Rename to...
16272         (*mov_sitf_e500_subreg12_be): ... this.  Restrict to the big
16273         endianness only.
16274         (*mov_sitf_e500_subreg12_le): New instruction pattern.
16275         (*mov_sitf_e500_subreg12_2): Rename to...
16276         (*mov_sitf_e500_subreg12_2_be): ... this.  Restrict to the big
16277         endianness only.
16278         (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
16280 2014-07-07  Max Ostapenko  <m.ostapenko@partner.samsung.com>
16282         * asan.c (instrument_strlen_call): Do not instrument first byte
16283         in strlen if already instrumented.
16285 2014-07-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16287         * config/arm/arm.opt (mwords-little-endian): Delete.
16288         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
16289         of TARGET_LITTLE_WORDS.
16290         (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
16291         * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
16292         warning.
16293         * doc/invoke.texi: Remove references to -mwords-little-endian.
16295 2014-07-07  Jakub Jelinek  <jakub@redhat.com>
16297         * expmed.c (struct init_expmed_rtl): Change all fields but
16298         pow2 and cint from struct rtx_def to rtx.
16299         (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
16300         (init_expmed): Likewise.  Allocate all the 18 rtxes and ggc_free them
16301         at the end again.
16303 2014-07-06  Marek Polacek  <polacek@redhat.com>
16305         PR c/6940
16306         * doc/invoke.texi: Document -Wsizeof-array-argument.
16308 2014-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
16310         * wide-int.h (wide_int_storage): Change declaration from struct
16311         to class.
16313 2014-07-05  Jan Hubicka  <hubicka@ucw.cz>
16315         * cgraph.c (cgraph_create_indirect_edge): Update call of
16316         get_polymorphic_call_info.
16317         * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
16318         (possible_polymorphic_call_targets): Add parameter call.
16319         (decl_maybe_in_construction_p): New predicate.
16320         (get_polymorphic_call_info): Add parameter call;
16321         use decl_maybe_in_construction_p.
16322         * gimple-fold.c (fold_gimple_assign): Update use of
16323         possible_polymorphic_call_targets.
16324         (gimple_fold_call): Likewise.
16325         * ipa-prop.c: Inlcude calls.h
16326         (ipa_binfo_from_known_type_jfunc): Check that known type is record.
16327         (param_type_may_change_p): New predicate.
16328         (detect_type_change_from_memory_writes): Break out from ...
16329         (detect_type_change): ... this one; use param_type_may_change_p.
16330         (detect_type_change_ssa): Use param_type_may_change_p.
16331         (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
16333 2014-07-05  Charles Baylis  <charles.baylis@linaro.org>
16335         PR target/49423
16336         * config/arm/arm-protos.h (arm_legitimate_address_p,
16337         arm_is_constant_pool_ref): Add prototypes.
16338         * config/arm/arm.c (arm_legitimate_address_p): Remove static.
16339         (arm_is_constant_pool_ref) New function.
16340         * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
16341         arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
16342         (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
16343         operand. Remove pool_range and neg_pool_range attributes.
16344         (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
16345         pool_range and neg_pool_range attributes.
16346         * config/arm/constraints.md (Uh): New constraint.
16347         (Uq): Don't allow constant pool references.
16349 2014-07-04  James Greenhalgh  <james.greenhalgh@arm.com>
16351         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
16352         (move_lo_quad_internal_be_<mode>): Likewise.
16353         (move_lo_quad_<mode>): Convert to define_expand.
16354         (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
16355         (aarch64_simd_move_hi_quad_be_<mode>): New.
16356         (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
16357         (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
16358         (aarch64_combinez_be<mode>): New.
16359         (aarch64_combine<mode>): Convert to define_expand.
16360         (aarch64_combine_internal<mode>): New.
16361         (aarch64_simd_combine<mode>): Remove bogus RTL description.
16363 2014-07-04  Tom de Vries  <tom@codesourcery.com>
16365         * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
16366         combination of earlyclobber and read/write modifiers.
16368 2014-07-04  Tom de Vries  <tom@codesourcery.com>
16370         * config/aarch64/aarch64-simd.md
16371         (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
16373 2014-07-04  Richard Earnshaw  <rearnsha@arm.com>
16375         PR target/61714
16376         * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
16378 2014-07-04  Jakub Jelinek  <jakub@redhat.com>
16380         PR middle-end/61654
16381         * cgraphunit.c (expand_thunk): Call free_dominance_info.
16383         PR tree-optimization/61684
16384         * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
16385         rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
16387 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
16388             Kito Cheng  <kito@0xlab.org>
16389             Monk Chiang  <sh.chiang04@gmail.com>
16391         * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
16392         (nds32_symbol_load_store_p): Move to ...
16393         (nds32_fp_as_gp_check_available): Move to ...
16394         * config/nds32/nds32-fp-as-gp.c: ... here.
16395         * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
16396         extern declaration.
16398 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
16399             Kito Cheng  <kito@0xlab.org>
16400             Monk Chiang  <sh.chiang04@gmail.com>
16402         * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
16403         (nds32_expand_store_multiple): Move to ...
16404         (nds32_expand_movmemqi): Move to ...
16405         * config/nds32/nds32-memory-manipulation.c: ... here.
16407 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
16408             Kito Cheng  <kito@0xlab.org>
16409             Monk Chiang  <sh.chiang04@gmail.com>
16411         * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
16412         (nds32_output_casesi_pc_relative): Move to ...
16413         (nds32_output_casesi): Move to ...
16414         (nds32_mem_format): Move to ...
16415         (nds32_output_16bit_store): Move to ...
16416         (nds32_output_16bit_load): Move to ...
16417         (nds32_output_32bit_store): Move to ...
16418         (nds32_output_32bit_load): Move to ...
16419         (nds32_output_32bit_load_s): Move to ...
16420         (nds32_output_stack_push): Move to ...
16421         (nds32_output_stack_pop): Move to ...
16422         * config/nds32/nds32-md-auxiliary.c: ... here.
16424 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
16425             Ling-Hua Tseng  <uranus@tinlans.org>
16427         * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
16428         the purpose of this file.
16430 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
16431             Kito Cheng  <kito@0xlab.org>
16432             Monk Chiang  <sh.chiang04@gmail.com>
16434         * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
16435         (nds32_address_cost): Move implementation to ...
16436         * config/nds32/nds32-cost.c: ... here.
16437         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
16438         (nds32_address_cost_impl): Declare.
16440 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
16441             Kito Cheng  <kito@0xlab.org>
16442             Monk Chiang  <sh.chiang04@gmail.com>
16444         * config/nds32/nds32.c
16445         (nds32_consecutive_registers_load_store_p): Move to ...
16446         (nds32_valid_multiple_load_store): Move to ...
16447         (nds32_valid_stack_push_pop): Move to ...
16448         (nds32_can_use_bclr_p): Move to ...
16449         (nds32_can_use_bset_p): Move to ...
16450         (nds32_can_use_btgl_p): Move to ...
16451         (nds32_can_use_bitci_p): Move to ...
16452         * config/nds32/nds32-predicates.c: ... here.
16454 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
16455             Kito Cheng  <kito@0xlab.org>
16456             Monk Chiang  <sh.chiang04@gmail.com>
16458         * config/nds32/nds32.c
16459         (nds32_expand_builtin_null_ftype_reg): Move to ...
16460         (nds32_expand_builtin_reg_ftype_imm): Move to ...
16461         (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
16462         (nds32_init_builtins): Move implementation to ...
16463         (nds32_expand_builtin): Move implementation to ...
16464         * config/nds32/nds32-intrinsic.c: ... here.
16465         * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
16466         (nds32_expand_builtin_impl): Declare.
16468 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
16469             Kito Cheng  <kito@0xlab.org>
16470             Monk Chiang  <sh.chiang04@gmail.com>
16472         * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
16473         (nds32_emit_section_tail_template): Move to ...
16474         (nds32_emit_isr_jmptbl_section): Move to ...
16475         (nds32_emit_isr_vector_section): Move to ...
16476         (nds32_emit_isr_reset_conten): Move to ...
16477         (nds32_check_isr_attrs_conflict): Move to ...
16478         (nds32_construct_isr_vectors_information): Move to ...
16479         (nds32_asm_file_start): Move implementation to ...
16480         (nds32_asm_file_end): Move implementation to ...
16481         * config/nds32/nds32-isr.c: ... here.
16482         * config/nds32/nds32-protos.h
16483         (nds32_check_isr_attrs_conflict): Declare.
16484         (nds32_construct_isr_vectors_information): Declare.
16485         (nds32_asm_file_start_for_isr): Declare.
16486         (nds32_asm_file_end_for_isr): Declare.
16488 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
16489             Kito Cheng  <kito@0xlab.org>
16490             Monk Chiang  <sh.chiang04@gmail.com>
16492         * config.gcc (nds32*): Add new modules to extra_objs.
16493         (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
16494         (nds32be-*-*): Likewise.
16495         * config/nds32/nds32-cost.c: New file.
16496         * config/nds32/nds32-fp-as-gp.c: New file.
16497         * config/nds32/nds32-intrinsic.c: New file.
16498         * config/nds32/nds32-isr.c: New file.
16499         * config/nds32/nds32-md-auxiliary.c: New file.
16500         * config/nds32/nds32-memory-manipulation.c: New file.
16501         * config/nds32/nds32-pipelines-auxiliary.c: New file.
16502         * config/nds32/nds32-predicates.c: New file.
16503         * config/nds32/t-nds32: New file.
16505 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
16507         PR tree-optimization/61682
16508         * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
16509         using cases and when one of the operands is equal to 1.
16511 2014-07-03  Segher Boessenkool  <segher@kernel.crashing.org>
16513         * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
16514         ashr<mode>3): Correct mode of operands[2].
16515         (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
16516         lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
16517         Correct mode of operands[2].  Fix split condition.
16519 2014-07-03  Richard Earnshaw  <rearnsha@arm.com>
16521         * arm.md (arch): Add armv6_or_vfpv3.
16522         (arch_enabled): Add test for the above.
16523         * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
16524         on VFP9.
16525         (sqrtsf_vfp, sqrtdf_vfp): Likewise.
16527 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
16529         * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
16530         * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
16531         HWI 1 and negate the unsigned value.
16532         * expmed.c (expand_sdiv_pow2): For modes wider than word always
16533         use AND instead of shift.
16534         * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
16536 2014-07-03  Marek Polacek  <polacek@redhat.com>
16538         * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
16539         (-fsanitize=float-divide-by-zero): Move to the table with
16540         -fsanitize=undefined suboptions.
16541         (-fsanitize=float-cast-overflow): Likewise.
16543 2014-07-03  Maciej W. Rozycki  <macro@codesourcery.com>
16545         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
16546         BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
16547         endianness.
16549 2014-07-03  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
16551         * loop-invariant.c (struct invariant): Add a new member: eqno;
16552         (find_identical_invariants): Update eqno;
16553         (create_new_invariant): Init eqno;
16554         (get_inv_cost): Compute comp_cost with eqno;
16556 2014-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
16558         * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
16559         (walk_insn_part) <ROTATE, ROTATERT>: New cases.
16560         (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
16561         * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
16562         Only do the transformation if both HAVE_rotate and HAVE_rotatert.
16564 2014-07-02  Christian Bruel  <christian.bruel@st.com>
16566         PR target/29349
16567         PR target/53513
16568         * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
16569         (make_preds_opaque): Delete.
16570         (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
16571         (commit_mode_sets): New function.
16572         (optimize_mode_switching): Handle current_mode to mode_switching_emit.
16573         Process all modes at once.
16574         * basic-block.h (pre_edge_lcm_avs): Declare.
16575         * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
16576         Call clear_aux_for_edges. Fix comments.
16577         (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
16578         (pre_edge_rev_lcm): Idem.
16579         * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
16580         parameter.
16581         * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
16582         * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
16583         Idem.
16584         * config/i386/i386.c (x96_emit_mode_set): Idem.
16585         * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
16586         * config/sh/sh.md (toggle_pr):  Defined if TARGET_FPU_SINGLE.
16587         (fpscr_toggle) Disallow from delay slot.
16588         * target.def (emit_mode_set): Add prev_mode parameter.
16589         * doc/tm.texi: Regenerate.
16591 2014-07-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16593         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
16594         variable i.
16596 2014-07-01  Jan Hubicka  <hubicka@ucw.cz>
16598         * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
16599         vtable_pointer_value_to_vtable): Constify.
16600         (contains_polymorphic_type_p): Declare.
16601         * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
16602         vtable_pointer_value_to_vtable): Constify.
16603         (contains_polymorphic_type_p): New predicate.
16604         * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
16605         polymorphic types.
16606         (ipa_set_ancestor_jf): Likewise.
16607         (detect_type_change): Return false in easy cases.
16608         (compute_complex_assign_jump_func): Require type to contain
16609         polymorphic type.
16610         (compute_known_type_jump_func): Likewise.
16612 2014-07-01  Jan Hubicka  <hubicka@ucw.cz>
16614         * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
16615         Remove.
16616         (type_in_anonymous_namespace_p): Constify argument.
16617         * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
16618         * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
16619         (main_odr_variant): New function.
16620         (hash_type_name): Make static; update assert; do not ICE on
16621         non-records.
16622         (types_same_for_odr): Bring here from tree.c; simplify and remove
16623         old structural comparing code that doesn't work for templates.
16624         (odr_hasher::equal): Update assert.
16625         (add_type_duplicate): Return true when bases should be computed;
16626         replace incomplete loader by complete; do not output duplicated
16627         warnings; do not ICE on non-records; set odr_violated flag.
16628         (get_odr_type): Be ready to replace incomplete type by complete
16629         one; work on ODR variants instead of main variants; reorder item
16630         in array so bases have still smaller indexes.
16631         (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
16632         (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
16634 2014-07-01  Cary Coutant  <ccoutant@google.com>
16636         * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
16637         lookup.
16638         (resolve_addr_in_expr): When replacing the rtx in a location list
16639         entry, get a new address table entry.
16640         (dwarf2out_finish): Call index_location_lists even if there are no
16641         addr_index_table entries yet.
16643 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
16645         * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
16646         change for not being obvious.
16648 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
16650         * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
16651         unused argument.
16653 2014-07-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16655         * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
16656         (vcagt_f64): Likewise.
16657         (vcale_f64): Likewise.
16658         (vcaled_f64): Likewise.
16659         (vcales_f32): Likewise.
16660         (vcalt_f64): Likewise.
16661         (vcaltd_f64): Likewise.
16662         (vcalts_f32): Likewise.
16664 2014-07-01  Marek Polacek  <polacek@redhat.com>
16666         * doc/invoke.texi: Document -Wint-conversion.
16668 2014-07-01  Marek Polacek  <polacek@redhat.com>
16670         PR c/58286
16671         * doc/invoke.texi: Document -Wincompatible-pointer-types.
16673 2014-07-01  Martin Liska  <mliska@suse.cz>
16675         IPA REF alias refactoring
16676         * cgraph.h (iterate_direct_aliases): New function.
16677         (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
16678         * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
16679         FOR_EACH_ALIAS added.
16680         (cgraph_for_node_and_aliases): Likewise.
16681         * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
16682         * ipa-inline.c (reset_edge_caches): Likewise.
16683         (update_caller_keys): Likewise.
16684         * trans-mem.c (ipa_tm_execute): Likewise.
16685         *varpool.c (varpool_analyze_node): Likewise.
16686         (varpool_for_node_and_aliases): Likewise.
16687         * ipa-ref.h (first_alias): New function.
16688         (last_alias): Likewise.
16689         (has_aliases_p): Likewise.
16690         * ipa-ref.c (ipa_ref::remove_reference): Removal function
16691         is sensitive to IPA_REF_ALIASes.
16692         * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
16693         are put at the beginning of the list.
16694         (symtab_node::iterate_direct_aliases): New function.
16696 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
16698         Revert:
16699         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
16700         type is complete.
16701         (write_ts_type_common_tree_pointers): Do not stream fields not set
16702         for incomplete types; do not stream duplicated fields for variants;
16703         sanity check that variant and type match.
16704         (write_ts_type_non_common_tree_pointers): Likewise.
16705         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
16706         TYPE_SIZE whether type is complete.
16707         (lto_input_ts_type_common_tree_pointers): Do same changes as in
16708         write_ts_type_common_tree_pointers
16709         (lto_input_ts_type_non_common_tree_pointers): Likewise.
16711 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
16713         * var-tracking.c (add_stores): Return instead of asserting if old
16714         and new values for conditional store are the same.
16716 2014-06-30  Richard Henderson  <rth@redhat.com>
16718         PR rtl-opt/61608
16719         PR target/39284
16720         * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
16721         the cfg if there were any changes.
16722         * passes.def: Revert move of peephole2 after reorder_blocks;
16723         move duplicate_computed_gotos before peephole2.
16725 2014-06-30  Uros Bizjak  <ubizjak@gmail.com>
16727         * except.c (emit_note_eh_region_end): New helper function.
16728         (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
16729         emit EH_REGION_END note.
16730         * jump.c (cleanup_barriers): Do not split a call and its
16731         corresponding CALL_ARG_LOCATION note.
16733 2014-06-30  Jeff Law  <law@redhat.com>
16735         PR tree-optimization/61607
16736         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
16737         deeper into the SSA_NAME_VALUE chain.
16739 2014-06-30  Marek Polacek  <polacek@redhat.com>
16741         * convert.c (convert_to_integer): Don't instrument conversions if the
16742         function has no_sanitize_undefined attribute.
16743         * ubsan.c: Don't run the ubsan pass if the function has
16744         no_sanitize_undefined attribute.
16746 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
16748         * doc/invoke.texi (-fsanitize=bounds): Move to the table with
16749         -fsanitize=undefined suboptions.
16751 2014-06-30  Alan Lawrence  <alan.lawrence@arm.com>
16753         * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
16754         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
16755         against bigendian and adjust indices.
16757 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
16759         * doc/install.texi (Specific, aarch64*-*-*): Fix markup.  Reword a bit.
16761 2014-06-30  Marcus Shawcroft  <marcus.shawcroft@arm.com>
16763         PR target/61633
16764         * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
16765         Add alternative; make early clobber.  Adjust both split patterns
16766         to use operand 0 as the working register.
16768 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
16770         * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
16771         as ira_object_id_map might be NULL, or 1.
16773 2014-06-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
16775         * loop-invariant.c (get_inv_cost): Handle register class.
16776         (gain_for_invariant): Check the register pressure of the inv
16777         and its overlapped register class, other than all.
16779 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
16781         * doc/invoke.texi (Optimize Options): Fix descriptions of
16782         ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
16784 2014-06-29  David Wohlferd <dw@LimeGreenSocks.com>
16786         * doc/extend.texi (Function Attributes): Update 'naked' attribute
16787         documentation.
16789 2014-06-29  Tobias Grosser <tobias@grosser.es>
16791         PR bootstrap/61650
16792         * graphite-isl-ast-to-gimple.c: Add missing guards.
16794 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
16796         * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
16797         * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
16798         * flag-types.h: Add new enum fgraphite_generator.
16799         * graphite-isl-ast-to-gimple.c: New.
16800         * graphite-isl-ast-to-gimple.h: New.
16801         * graphite.c (graphite_transform_loops): Add choice of Graphite
16802         code generator, which depends on flag_graphite_code_gen.
16804 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
16806         * graphite-dependences.c (subtract_commutative_associative_deps):
16807         Add NULL checking of the following variables: must_raw_no_source,
16808         may_raw_no_source, must_war_no_source, may_war_no_source,
16809         must_waw_no_source, may_waw_no_source, must_raw, may_raw,
16810         must_war, may_war, must_waw, may_waw.
16812 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
16814         * graphite-clast-to-gimple.c: gloog is renamed to
16815         graphite_regenerate_ast_cloog.  gloog_error is renamed to
16816         graphite_regenerate_error.
16817         * graphite-clast-to-gimple.h: The definition of the struct
16818         bb_pbb_def is moved to graphite-htab.h.
16819         Add inclusion of the hash-table.h.
16820         * graphite-htab.h: The declaration of the function gloog is moved
16821         to graphite-clast-to-gimple.h and renamed to
16822         graphite_regenerate_ast_cloog.
16823         * graphite.c (graphite_transform_loops): gloog is renamed
16824         to graphite_regenerate_ast_cloog.
16826 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
16828         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
16829         type is complete.
16830         (write_ts_type_common_tree_pointers): Do not stream fields not set
16831         for incomplete types; do not stream duplicated fields for variants;
16832         sanity check that variant and type match.
16833         (write_ts_type_non_common_tree_pointers): Likewise.
16834         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
16835         TYPE_SIZE whether type is complete.
16836         (lto_input_ts_type_common_tree_pointers): Do same changes as in
16837         write_ts_type_common_tree_pointers
16838         (lto_input_ts_type_non_common_tree_pointers): Likewise.
16840 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
16842         * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
16844 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
16846         * tree-inline.c (remap_type_1): Do not duplicate fields
16847         that are shared in between type and its main variant.
16849 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
16851         * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
16852         of the type.
16853         (ipa_set_ancestor_jf) Likewise.
16854         (check_stmt_for_type_change): Check that we work on main variant.
16855         (detect_type_change): Look into main variant.
16856         (compute_known_type_jump_func): Check that main variant has BINFO.
16858 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
16860         * ipa-devirt.c (set_type_binfo): New function.
16861         (add_type_duplicate): Use it.
16862         (get_odr_type): Sanity check that binfos points to main variants.
16863         (get_class_context): Be sure the context's outer_type is main variant.
16864         (contains_type_p): Walk main variant.
16865         (get_polymorphic_call_info_for_decl): Set outer_type to be
16866         main variant.
16867         (get_polymorphic_call_info): Likewise.
16868         (possible_polymorphic_call_targets): Sanity check that we operate
16869         on main variant.
16871 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
16873         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
16875 2014-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16877         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
16878         accidental change due to wide-int branch merge.
16880 2014-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16882         * configure.ac (gcc_cv_as_compress_debug): Check for assembler
16883         compressed debug support.
16884         (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
16885         * configure: Regenerate.
16886         * config.in: Regenerate.
16887         * common.opt (compressed_debug_sections): New enum.
16888         (gz, gz=): New options.
16889         * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
16890         (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
16891         (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
16892         * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
16893         LINK_COMPRESS_DEBUG_SPEC.
16894         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
16895         * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
16896         * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
16897         (Debugging Options): Document -gz[=type].
16899 2014-06-27  Martin Jambor  <mjambor@suse.cz>
16901         PR ipa/61160
16902         * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
16903         args_to_skip, use those from node instead.  Copy args_to_skip and
16904         combined_args_to_skip from node to the new thunk.
16905         (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
16906         (cgraph_create_virtual_clone): Moved computation of
16907         combined_args_to_skip...
16908         (cgraph_clone_node): ...here, simplify it to bitmap_ior..
16910 2014-06-27  trevor Saunders  <tsaunders@mozilla.com>
16912         * config/i386/winnt.c (i386_pe_section_type_flags): Remove
16913         redundant diagnostic machinary.
16915 2014-06-27  Richard Biener  <rguenther@suse.de>
16917         * tree-ssa-math-opts.c (bswap_replace): Fix
16918         SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
16920 2014-06-27  Martin Liska  <mliska@suse.cz>
16922         * gimple.h (gimple_location_safe): New function introduced.
16923         * cgraphunit.c (walk_polymorphic_call_targets): Usage
16924         of gimple_location_safe replaces gimple_location.
16925         (gimple_fold_call): Likewise.
16926         * ipa-devirt.c (ipa_devirt): Likewise.
16927         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
16928         * ipa.c (walk_polymorphic_call_targets): Likewise.
16929         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
16931 2014-06-27  Jakub Jelinek  <jakub@redhat.com>
16933         PR tree-optimization/57233
16934         PR tree-optimization/61299
16935         * tree-vect-generic.c (get_compute_type, count_type_subparts): New
16936         functions.
16937         (expand_vector_operations_1): Use them.  If {L,R}ROTATE_EXPR
16938         would be lowered to scalar shifts, check if corresponding
16939         shifts and vector BIT_IOR_EXPR are supported and don't lower
16940         or lower just to narrower vector type in that case.
16941         * expmed.c (expand_shift_1): Fix up handling of vector
16942         shifts and rotates.
16944 2014-06-26  Uros Bizjak  <ubizjak@gmail.com>
16946         PR target/61586
16947         * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
16949 2014-06-26  Jan Hubicka  <hubicka@ucw.cz>
16951         * doc/invoke.texi (-fsemantic-interposition): Document.
16952         * common.opt (fsemantic-interposition): New flag.
16953         * varasm.c (decl_replaceable_p): Use it.
16955 2014-06-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16957         PR target/61542
16958         * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
16959         extraction other than index 3.
16961 2014-06-26  Teresa Johnson  <tejohnson@google.com>
16963         * doc/invoke.texi: Fix typo.
16964         * dumpfile.c: Add support for documented -fdump-* options
16965         optimized/missed/note/optall.
16967 2014-06-26  Martin Jambor  <mjambor@suse.cz>
16969         * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
16970         (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
16971         (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
16972         (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
16973         * opts.c (default_options_optimization): Set
16974         PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
16975         * doc/invoke.texi (allow-load-data-races)
16976         (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
16977         (allow-store-data-races): Document the new default.
16979 2014-06-26  Martin Jambor  <mjambor@suse.cz>
16981         * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
16982         renamed to ipa_impossible_devirt_target.  Fix typo.
16983         * ipa-prop.h (ipa_impossible_devirt_target): Declare.
16984         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
16985         ipa_impossible_devirt_target.
16987 2014-06-26  Richard Biener  <rguenther@suse.de>
16989         PR tree-optimization/61607
16990         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
16991         explaining why we restrict copies on loop depth.
16992         * tree-ssa-dom.c (cprop_operand): Remove restriction on
16993         on loop depth.
16994         (record_equivalences_from_phis): Instead add it here.
16996 2014-06-26  Bernd Schmidt  <bernds@codesourcery.com>
16998         * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
16999         (LTO_WRAPPER_OBJS): New variable.
17000         (lto-wrapper$(exeext)): Use it.
17001         * collect2.c: Include "collect-utils.h".
17002         (verbose, debug): Remove variables.
17003         (at_file_supplied): No longer static.
17004         (tool_name): New variable.
17005         (do_wait, fork_execute, maybe_unlink): Don't declare.
17006         (tool_cleanup): No longer static.
17007         (notice): Remove function.
17008         (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
17009         fork_execute calls.
17010         (collect_wait, do_wait, collect_execute): Remove functions.
17011         (maybe_unlink): No longer static.
17012         * collect2.h (verbose, debug): Don't declare.
17013         (at_file_supplied): Declare.
17014         * collect-utils.c (utils_cleanup): New arg from_signal.  All callers
17015         changed.
17016         (collect_execute): Replace with implementation from collect2, plus a
17017         new arg use_atfile.  All callers changed.
17018         (collect_wait): Replace with implementation from collect2.
17019         (maybe_unlink_file): Remove function.
17020         (fork_execute): Replace with implementation from collect2, plus a
17021         new arg use_atfile.  All callers changed.
17022         (do_wait): Add call to utils_cleanup to the error path.
17023         * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
17024         (tool_cleanup): Adjust declarations.
17025         * lto-wrapper.c (tool_cleanup): Add unused bool argument.
17026         * tlink.c: Include "collect-utils.h".
17027         (tlink_execute): New arg use_atfile.  All callers changed.
17028         (tlink_init, tlink_execute): Remove declarations.
17030         * collect-utils.c (save_temps): New variable.
17031         (do_wait): Use it instead of debug.  Use fatal_error.
17032         * collect-utils.h (save_temps): Declare.
17033         * collect2.c (verbose): Rename from vflag.  All uses changed.
17034         (tool_cleanup): New function, copied from collect_atexit.
17035         (collect_atexit, handler): Just call it.
17036         * collect2.h (verbose): Declaration renamed from vflag.
17037         * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
17038         debug.
17040         * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
17041         (lto-wrapper$(exeext)): Link with collect-utils.o.
17042         * collect-utils.c: New file.
17043         * collect-utils.h: New file.
17044         * lto-wrapper.c: Include "collect-utils.h".
17045         (args_name): Delete variable.
17046         (tool_name): New variable.
17047         (tool_cleanup): New function.
17048         (maybe_unlink): Renamed from maybe_unlink_file.  All callers changed.
17049         (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
17050         (fork_execute): Remove functions.
17052 2014-06-26  Nick Clifton  <nickc@redhat.com>
17054         * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
17056         * doc/extend.texi (Function Attributes): Fix typo in description
17057         of RX vector attribute.
17059 2014-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
17061         * config.gcc (supported_defaults): Error when passing either
17062         --with-tune or --with-arch in conjunction with --with-cpu for ARM.
17064 2014-06-26  Richard Biener  <rguenther@suse.de>
17066         * tree-ssa-dom.c (cprop_operand): Remove restriction on
17067         propagating volatile pointers.
17069 2014-06-26  Richard Biener  <rguenther@suse.de>
17071         PR tree-optimization/61607
17072         * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
17073         loop if we redirected its latch edge.
17074         (thread_block_1): Do not cancel loops prematurely.
17076 2014-06-25  Jan Hubicka  <hubicka@ucw.cz>
17078         * toplev.c (backend_init_target): Move init_emit_regs and
17079         init_regs to...
17080         (backend_init) ... here; skip ira_init_once and backend_init_target.
17081         (target_reinit) ... and here; clear
17082         this_target_rtl->lang_dependent_initialized.
17083         (lang_dependent_init_target): Clear
17084         this_target_rtl->lang_dependent_initialized;
17085         break out rtl initialization to ...
17086         (initialize_rtl): ... here; call also backend_init_target
17087         and ira_init_once.
17088         * toplev.h (initialize_rtl): New function.
17089         * function.c: Include toplev.h
17090         (init_function_start): Call initialize_rtl.
17091         * rtl.h (target_rtl): Add target_specific_initialized,
17092         lang_dependent_initialized.
17094 2014-06-25  Paul Gortmaker  <paul.gortmaker@windriver.com>
17095             Jakub Jelinek  <jakub@redhat.com>
17097         * gcc.c (set_multilib_dir): Malloc "." pointer as well.
17099 2014-06-25  Tom de Vries  <tom@codesourcery.com>
17101         * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
17103 2014-06-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17105         * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
17106         check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
17107         Issue a strict overflow warning if appropriate.
17109 2014-06-25  Martin Liska  <mliska@suse.cz>
17111         IPA REF refactoring
17112         * Makefile.in: Removed header file (ipa-ref-inline.h).
17113         * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
17114         called.
17115         (cgraph_speculative_call_info): Likewise.
17116         (cgraph_for_node_thunks_and_aliases): Likewise.
17117         (cgraph_for_node_and_aliases): Likewise.
17118         (verify_cgraph_node): Likewise.
17119         * cgraph.h: Batch of IPA REF functions become member functions of
17120         symtab_node: add_reference, maybe_add_reference, clone_references,
17121         clone_referring, clone_reference, find_reference,
17122         remove_stmt_references, remove_all_references,
17123         remove_all_referring, dump_references, dump_referring,
17124         has_alias_p, iterate_reference, iterate_referring.
17125         * cgraphbuild.c (record_reference): New IPA REF function used.
17126         (record_type_list): Likewise.
17127         (record_eh_tables): Likewise.
17128         (mark_address): Likewise.
17129         (mark_load): Likewise.
17130         (mark_store): Likewise.
17131         (pass_build_cgraph_edges): Likewise.
17132         (rebuild_cgraph_edge): Likewise.
17133         (cgraph_rebuild_references): Likewise.
17134         (pass_remove_cgraph_callee_edges): Likewise.
17135         * cgraphclones.c (cgraph_clone_node): Likewise.
17136         (cgraph_create_virtual_clone): Likewise.
17137         (cgraph_materialize_clone): Likewise.
17138         (cgraph_materialize_all_clones): Likewise.
17139         * cgraphunit.c (cgraph_reset_node): Likewise.
17140         (cgraph_reset_node): Likewise.
17141         (analyze_function): Likewise.
17142         (assemble_thunks_and_aliases): Likewise.
17143         (expand_function): Likewise.
17144         * ipa-comdats.c (propagate_comdat_group): Likewise.
17145         (enqueue_references): Likewise.
17146         * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
17147         (create_specialized_node): Likewise.
17148         * ipa-devirt.c (referenced_from_vtable_p): Likewise.
17149         * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
17150         * ipa-inline.c (reset_edge_caches): Likewise.
17151         (update_caller_keys): Likewise.
17152         (execute): Likewise.
17153         * ipa-prop.c (remove_described_reference): Likewise.
17154         (propagate_controlled_uses): Likewise.
17155         (ipa_edge_duplication_hook): Likewise.
17156         (ipa_modify_call_arguments): Likewise.
17157         * ipa-pure-const.c (propagate_pure_const): Likewise.
17158         * ipa-ref-inline.h: Header file removed, functions moved
17159         to symtab_node class.
17160         * ipa-ref.c (remove_reference): New class member function.
17161         (cannot_lead_to_return): New class member function.
17162         (referring_ref_list): Likewise.
17163         (referred_ref_list): Likewise.
17164         Rest of functions moved to symtab_node class.
17165         * ipa-ref.h: New member functions remove_reference,
17166         cannot_lead_to_return, referring_ref_list, referred_ref_list added
17167         to ipa_ref class.
17168         ipa_ref_list class has new member functions: first_reference,
17169         first_referring, clear, nreferences.
17170         * ipa-reference.c (analyze_function): New IPA REF function used.
17171         (write_node_summary_p): Likewise.
17172         (ipa_reference_write_optimization_summary): Likewise.
17173         * ipa-split.c (split_function): Likewise.
17174         * ipa-utils.c (ipa_reverse_postorder): Likewise.
17175         * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
17176         (function_and_variable_visibility): Likewise.
17177         * ipa.c (has_addr_references_p): Likewise.
17178         (process_references): Argument type changed.
17179         (symtab_remove_unreachable_nodes): New IPA REF function used.
17180         (process_references): Likewise.
17181         (set_writeonly_bit): Likewise.
17182         * lto-cgraph.c: Implementation of new symtab_node member functions
17183         that uses new IPA REF functions.
17184         * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
17185         function used.
17186         * lto-streamer-out.c (output_symbol_p): Likewise.
17187         * lto-streamer.h (referenced_from_this_partition_p): Argument type
17188         changed.
17189         * symtab.c: Implementation of new IPA REF API.
17190         * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
17191         (ipa_tm_create_version): Likewise.
17192         (ipa_tm_execute): Likewise.
17193         * tree-emutls.c (gen_emutls_addr): Likewise.
17194         * tree-inline.c (copy_bb): Likewise.
17195         (delete_unreachable_blocks_update_callgraph): Likewise.
17196         * varpool.c (varpool_remove_unreferenced_decls): Likewise.
17197         (varpool_for_node_and_aliases): Likewise.
17199 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
17201         * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
17203 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
17205         PR bootstrap/61598
17206         * fold-const.c (fold_checksum_tree): Use a hash_table of const
17207         tree_node * instead of tree_node *.
17208         (fold): Adjust.
17209         (print_fold_checksum): Likewise.
17210         (fold_check_failed): Likewise.
17211         (debug_fold_checksum): Likewise.
17212         (fold_build1_stat_loc): Likewise.
17213         (fold_build2_stat_loc): Likewise.
17214         (fold_build3_stat_loc): Likewise.
17215         (fold_build_call_array_loc): Likewise.
17217 2014-06-25  David Edelsohn  <dje.gcc@gmail.com>
17219         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
17220         implementation with call to...
17221         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
17222         function.
17223         * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
17224         Declare.
17226 2014-06-25  Marc Glisse  <marc.glisse@inria.fr>
17228         PR tree-optimization/57742
17229         * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
17230         after replacing the statement.
17232 2014-06-25  Nick Clifton  <nickc@redhat.com>
17234         * config/v850/v850.c (GHS_default_section_names): Change to const
17235         char * type.
17236         (GHS_current_section_names): Likewise.
17237         (v850_insert_attributes): Do not build strings, just assign the
17238         names directly.  Change the type of 'chosen_section' to const
17239         char*.
17240         * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
17241         directly to the array entry.
17242         * config/v850/v850.h (GHS_default_section_names): Change to const
17243         char * type.
17244         (GHS_current_section_names): Likewise.
17246 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
17248         * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
17249         (LANG_HOOKS_DECLS): Add it.
17250         * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
17251         has correct type.
17252         * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
17253         * langhooks.h (struct lang_hooks_for_decls): Add
17254         omp_clause_linear_ctor hook.
17255         * omp-low.c (lower_rec_input_clauses): Set max_vf even if
17256         OMP_CLAUSE_LINEAR_ARRAY is set.  Don't fold_convert
17257         OMP_CLAUSE_LINEAR_STEP.  For OMP_CLAUSE_LINEAR_ARRAY in
17258         combined simd loop use omp_clause_linear_ctor hook.
17260 2014-06-24  Cong Hou  <congh@google.com>
17262         * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
17263         pattern recognition.
17264         (type_conversion_p): PROMOTION is true if it's a type promotion
17265         conversion, and false otherwise.  Return true if the given expression
17266         is a type conversion one.
17267         * tree-vectorizer.h: Adjust the number of patterns.
17268         * tree.def: Add SAD_EXPR.
17269         * optabs.def: Add sad_optab.
17270         * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
17271         * expr.c (expand_expr_real_2): Likewise.
17272         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
17273         * gimple.c (get_gimple_rhs_num_ops): Likewise.
17274         * optabs.c (optab_for_tree_code): Likewise.
17275         * tree-cfg.c (estimate_operator_cost): Likewise.
17276         * tree-ssa-operands.c (get_expr_operands): Likewise.
17277         * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
17278         * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
17279         * doc/generic.texi: Add document for SAD_EXPR.
17280         * doc/md.texi: Add document for ssad and usad.
17282 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
17284         * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
17285         qualification in cast.
17287 2014-06-24  Jan Hubicka  <hubicka@ucw.cz>
17289         * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
17290         * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
17291         * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
17292         (tree_function_decl): ... here.
17293         * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
17294         streaming of vindex to ...
17295         (write_ts_function_decl_tree_pointers): ... here.
17296         * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
17297         Do not stream DECL_VINDEX.
17298         (lto_input_ts_function_decl_tree_pointers): Stream it here.
17300 2014-06-24  Catherine Moore  <clm@codesourcery.com>
17301             Sandra Loosemore  <sandra@codesourcery.com>
17303         * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
17304         * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
17305         * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
17307 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
17309         * doc/invoke.texi (Warning Options): Remove duplicated
17310         -Wmaybe-uninitialized.
17312 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
17314         PR tree-optimization/57742
17315         * tree-ssa-strlen.c (get_string_length): Ignore malloc.
17316         (handle_builtin_malloc, handle_builtin_memset): New functions.
17317         (strlen_optimize_stmt): Call them.
17318         * passes.def: Move strlen after loop+dom but before vrp.
17320 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
17322         PR target/61570
17323         * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
17324         model family 6 CPU with has_longmode never use a CPU without
17325         64-bit support.
17327 2014-06-24  H.J. Lu  <hongjiu.lu@intel.com>
17329         PR target/61570
17330         * config/i386/driver-i386.c (host_detect_local_cpu): Revert
17331         the last change.
17333 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
17335         * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
17336         * dominance.c (iterate_fix_dominators): Use hash_map instead of
17337         pointer_map.
17338         * hash-map.h: New file.
17339         * ipa-comdats.c: Use hash_map instead of pointer_map.
17340         * ipa.c: Likewise.
17341         * lto-section-out.c: Adjust.
17342         * lto-streamer.h: Replace pointer_map with hash_map.
17343         * symtab.c (verify_symtab): Likewise.
17344         * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
17345         * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
17346         * tree-streamer.h: Likewise.
17347         * tree-streamer.c: Adjust.
17348         * pointer-set.h: Remove pointer_map.
17350 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
17352         * hash-table.h: Add a template arg to choose between storing values
17353         and storing pointers to values, and then provide partial
17354         specializations for both.
17355         * tree-browser.c (tree_upper_hasher): Provide the type the hash table
17356         should store, not the type values should point to.
17357         * tree-into-ssa.c (var_info_hasher): Likewise.
17358         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
17359         * tree-complex.c: Adjust.
17360         * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
17361         table instead of int_tree_map *.
17362         * tree-parloops.c: Adjust.
17363         * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
17364         type is being stored.
17365         * tree-vectorizer.c: Adjust.
17367 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
17369         * hash-table.h: Remove a layer of indirection from hash_table so that
17370         it contains the hash table's data instead of a pointer to the data.
17371         * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
17372         config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
17373         config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
17374         data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
17375         fold-const.c, gcse.c, ggc-common.c,
17376         gimple-ssa-strength-reduction.c, gimplify.c,
17377         graphite-clast-to-gimple.c, graphite-dependences.c,
17378         graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
17379         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
17380         loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
17381         lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
17382         postreload-gcse.c, sese.c, statistics.c, store-motion.c,
17383         trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
17384         tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
17385         tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
17386         tree-ssa-live.c, tree-ssa-loop-im.c,
17387         tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
17388         tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
17389         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
17390         tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
17391         tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
17392         tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
17393         vtable-verify.c, vtable-verify.h: Adjust.
17395 2014-06-24  Richard Biener  <rguenther@suse.de>
17397         PR tree-optimization/61572
17398         * tree-ssa-sink.c (statement_sink_location): Do not sink
17399         loads from hard registers.
17401 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
17403         * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
17404         not mentioned in clauses use private clause if the iterator is
17405         declared in #pragma omp for simd, and when adding lastprivate
17406         instead, add it to the outer #pragma omp for too.  Diagnose
17407         if the variable is private in outer context.  For simd collapse > 1
17408         loops, replace all iterators with temporaries.
17409         * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
17410         same even in collapse > 1 loops.
17412         * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
17413         OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
17414         non-NULL.
17415         <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
17416         (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
17417         non-NULL.
17418         (gimplify_adjust_omp_clauses): Likewise.
17419         * omp-low.c (lower_rec_simd_input_clauses,
17420         lower_rec_input_clauses, expand_omp_simd): Handle non-constant
17421         safelen the same as safelen(1).
17422         * tree-nested.c (convert_nonlocal_omp_clauses,
17423         convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED.  For
17424         OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
17425         (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
17426         Fixup handling of GIMPLE_OMP_TARGET.
17427         (convert_tramp_reference_stmt, convert_gimple_call): Handle
17428         GIMPLE_OMP_TARGET.
17430 2014-06-24  Chung-Lin Tang  <cltang@codesourcery.com>
17432         PR tree-optimization/61554
17433         * tree-ssa-propagate.c: Include "bitmap.h".
17434         (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
17435         properly update constructor/destructor.
17436         (substitute_and_fold_dom_walker::before_dom_children):
17437         Remove call to gimple_purge_dead_eh_edges, add bb->index to
17438         need_eh_cleaup instead.
17439         (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
17440         need_eh_cleanup.
17442 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
17444         * varpool.c (dump_varpool_node): Dump used_by_single_function.
17445         * tree-pass.h (make_pass_ipa_single_use): New pass.
17446         * cgraph.h (used_by_single_function): New flag.
17447         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
17448         Stream it.
17449         * passes.def (pass_ipa_single_use): Scedule.
17450         * ipa.c (BOTTOM): New macro.
17451         (meet): New function
17452         (propagate_single_user): New function.
17453         (ipa_single_use): New function.
17454         (pass_data_ipa_single_use): New pass.
17455         (pass_ipa_single_use): New pass.
17456         (pass_ipa_single_use::gate): New gate.
17457         (make_pass_ipa_single_use): New function.
17459 2014-06-23  Kai Tietz  <ktietz@redhat.com>
17461         PR target/39284
17462         * passes.def (peephole2): Move peephole2 pass before sched2 pass.
17463         * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
17465 2014-06-23  Richard Biener  <rguenther@suse.de>
17467         * tree-ssa-loop.c (gate_loop): New function.
17468         (pass_tree_loop::gate): Call it.
17469         (pass_data_tree_no_loop, pass_tree_no_loop,
17470         make_pass_tree_no_loop): New.
17471         * tree-vectorizer.c: Include tree-scalar-evolution.c
17472         (pass_slp_vectorize::execute): Initialize loops and SCEV if
17473         required.
17474         (pass_slp_vectorize::clone): New method.
17475         * timevar.def (TV_TREE_NOLOOP): New.
17476         * tree-pass.h (make_pass_tree_no_loop): Declare.
17477         * passes.def (pass_tree_no_loop): New pass group with
17478         SLP vectorizer.
17480 2014-06-23  H.J. Lu  <hongjiu.lu@intel.com>
17482         PR target/61570
17483         * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
17484         to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
17486 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
17488         * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
17489         "yes" where needed.
17491 2014-06-23  Alan Modra  <amodra@gmail.com>
17493         PR bootstrap/61583
17494         * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
17495         to zero on debug statements.
17497 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
17499         PR target/60825
17500         * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
17501         Ignore third operand if present by marking qualifier_internal.
17503         * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
17505         * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
17506         vector extension.
17507         (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
17508         arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
17509         (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
17510         vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
17511         vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
17512         vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
17513         vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
17514         vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
17515         vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
17516         vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
17517         vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
17518         vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
17519         vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
17520         vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
17521         vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
17522         vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
17523         logic in GCC vector extensions
17525         (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
17526         vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
17527         vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
17528         vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
17529         vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
17530         vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
17531         vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
17532         vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
17533         vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
17534         vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
17536         (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
17538         (vget_high_s64, vget_high_u64): Reimplement with GCC vector
17539         extensions.
17541         (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
17542         (vget_low_s64): Use __GET_LOW macro.
17543         (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
17544         gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
17545         (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
17546         (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
17547         __builtin_aarch64_lane_boundsi, use GCC vector extensions.
17549         (vcombine_s64): Use GCC vector extensions; remove cast.
17550         (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
17551         vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
17552         vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
17553         Fix type signature; remove cast.
17555 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
17557         PR target/60825
17558         * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
17559         V1DFmode.
17560         * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
17561         add V1DFmode
17562         (BUILTIN_VD1): New.
17563         (BUILTIN_VD_RE): Remove.
17564         (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
17565         (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
17566         * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
17567         variant but not df.
17568         (vreinterpretv1df*, vreinterpret*v1df): New.
17569         (vreinterpretdf*, vreinterpret*df): Remove.
17570         * config/aarch64/aarch64-simd.md (aarch64_create,
17571         aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
17572         * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
17573         (VD1): New.
17574         * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
17575         (vcreate_f64): Remove cast, use v1df builtin.
17576         (vcombine_f64): Remove cast, get elements with gcc vector extensions.
17577         (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
17578         vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
17579         vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
17580         vmov_n_f64, vst1_f64): Use gcc vector extensions.
17581         (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
17582         add range check using __builtin_aarch64_im_lane_boundsi.
17583         (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
17584         vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
17585         type signature, use gcc vector extensions.
17586         (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
17587         vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
17588         vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
17589         vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
17590         vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
17591         vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
17592         vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
17593         vreinterpret_u64_f64): Use v1df builtin not df.
17595 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
17597         * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
17598         vector registers.
17600 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
17602         * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
17603         priority directly.
17605 2014-06-23  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
17607         * loop-invariant.c (pre_check_invariant_p): New function.
17608         (find_invariant_insn): Call pre_check_invariant_p.
17610 2014-06-22  Richard Henderson  <rth@redhat.com>
17612         PR target/61565
17613         * compare-elim.c (struct comparison): Add eh_note.
17614         (find_comparison_dom_walker::before_dom_children): Don't eliminate
17615         a redundant comparison in a different EH region.  Purge EH edges if
17616         necessary.
17618 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
17620         * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
17621         (var_shift): Use it.
17622         (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
17623         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
17624         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
17625         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
17626         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
17627         *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
17628         *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
17629         *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
17630         *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
17631         *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
17632         *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
17633         *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
17634         *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
17635         *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
17636         *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
17637         *rotldi3_internal15be): Use the new attribute.  Merge register and
17638         integer alternatives.
17640 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
17642         * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
17643         define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
17644         split, *ashrdi3_internal3 and split): Delete, merge into...
17645         (ashr<mode>3): New expander.
17646         (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
17647         (*ashrsi3_64): Fix formatting.  Replace "i" by "n".
17649 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
17651         * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
17652         *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
17653         *rotldi3_internal3 and split): Delete, merge into...
17654         (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
17655         (*rotlsi3_64): Fix formatting.  Fix condition.  Replace "i" by "n".
17656         Use "rotlw" extended mnemonic.
17658 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
17660         * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
17661         and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
17662         and split, *ashldi3_internal3 and split): Delete, merge into...
17663         (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
17664         (*ashlsi3_64): Fix formatting.  Replace "i" by "n".
17666 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
17668         * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
17669         (lshrsi3, two anonymous define_insns and define_splits,
17670         lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
17671         *lshrdi3_internal3 and split): Delete, merge into...
17672         (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
17673         (*lshrsi3_64): Fix formatting.  Replace "i" by "n".
17675 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
17677         * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
17678         Remove "O" alternative.
17680 2014-06-22  Richard Sandiford  <rdsandiford@googlemail.com>
17682         * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
17683         (mips_move_from_gpr_cost): Likewise.
17684         (mips_register_move_cost): Update accordingly.
17685         (mips_secondary_reload_class): Remove name of in_p.
17687 2014-06-22  Marc Glisse  <marc.glisse@inria.fr>
17689         PR target/61503
17690         * config/i386/i386.md (x86_64_shrd, x86_shrd,
17691         ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
17693 2014-06-21  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
17695         * config/nios2/nios2.c: Include "builtins.h".
17697 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
17699         * cgraph.h (tls_model_names): New variable.
17700         * print-tree.c (print_node): Simplify.
17701         * varpool.c (tls_model_names): New variable.
17702         (dump_varpool_node): Output tls model.
17704 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
17706         * ipa-visibility.c (function_and_variable_visibility): Disable
17707         temporarily local aliases for some targets.
17709 2014-06-20  Marek Polacek  <polacek@redhat.com>
17711         * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
17712         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
17713         into SANITIZE_UNDEFINED.
17714         * doc/invoke.texi: Describe -fsanitize=bounds.
17715         * gimplify.c (gimplify_call_expr): Add gimplification of internal
17716         functions created in the FEs.
17717         * internal-fn.c: Move "internal-fn.h" after "tree.h".
17718         (expand_UBSAN_BOUNDS): New function.
17719         * internal-fn.def (UBSAN_BOUNDS): New internal function.
17720         * internal-fn.h: Don't define internal functions here.
17721         * opts.c (common_handle_option): Add -fsanitize=bounds.
17722         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
17723         BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
17724         * tree-core.h: Define internal functions here.
17725         (struct tree_base): Add ifn field.
17726         * tree-pretty-print.c: Include "internal-fn.h".
17727         (dump_generic_node): Handle functions without CALL_EXPR_FN.
17728         * tree.c (get_callee_fndecl): Likewise.
17729         (build_call_expr_internal_loc): New function.
17730         * tree.def (CALL_EXPR): Update description.
17731         * tree.h (CALL_EXPR_IFN): Define.
17732         (build_call_expr_internal_loc): Declare.
17733         * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
17734         types.
17735         (ubsan_type_descriptor): Change bool parameter to enum
17736         ubsan_print_style.  Adjust the code.  Add handling of
17737         UBSAN_PRINT_ARRAY.
17738         (ubsan_expand_bounds_ifn): New function.
17739         (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
17740         (ubsan_build_overflow_builtin): Likewise.
17741         (instrument_bool_enum_load): Likewise.
17742         (ubsan_instrument_float_cast): Likewise.
17743         * ubsan.h (enum ubsan_print_style): New enum.
17744         (ubsan_expand_bounds_ifn): Declare.
17745         (ubsan_type_descriptor): Adjust declaration.  Use a default parameter.
17747 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
17749         * config/rs6000/rs6000.md: Append `DONE' to preparation
17750         statements of `bswap' pattern splitters.
17752 2014-06-20  Tom de Vries  <tom@codesourcery.com>
17754         * target.def (call_fusage_contains_non_callee_clobbers): Update
17755         definition.
17756         * doc/tm.texi: Regenerate.
17758 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
17759             Max Ostapenko  <m.ostapenko@partner.samsung.com>
17761         PR sanitizer/61547
17762         * asan.c (instrument_strlen_call): Fixed instrumentation of
17763         trailing byte.
17765 2014-06-20  Martin Jambor  <mjambor@suse.cz>
17767         PR ipa/61540
17768         * ipa-prop.c (impossible_devirt_target): New function.
17769         (try_make_edge_direct_virtual_call): Use it, also instead of
17770         asserting.
17772 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
17773             Max Ostapenko  <m.ostapenko@partner.samsung.com>
17775         PR sanitizer/61530
17776         * asan.c (build_check_stmt): Add condition.
17778 2014-06-20  Martin Jambor  <mjambor@suse.cz>
17780         PR ipa/61211
17781         * cgraph.c (clone_of_p): Allow skipped_branch to deal with
17782         expanded clones.
17784 2014-06-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17786         * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
17787         Update comments.
17788         (VCONQ): Make comment more helpful.
17789         (VCON): Delete.
17790         * config/aarch64/aarch64-simd.md
17791         (aarch64_sqdmulh_lane<mode>):
17792         Use VCOND for operands 2.  Update lane checking and flipping logic.
17793         (aarch64_sqrdmulh_lane<mode>): Likewise.
17794         (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
17795         (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
17796         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
17797         attribute of operand 3 to VCOND.
17798         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
17799         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
17800         (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
17801         (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
17802         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
17803         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
17804         define_insn.
17805         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
17806         (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
17807         (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
17808         (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
17809         (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
17810         (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
17811         operand to VCOND.  Update lane flipping and bounds checking logic.
17812         (aarch64_sqdmlal2_lane<mode>): Likewise.
17813         (aarch64_sqdmlsl_lane<mode>): Likewise.
17814         (aarch64_sqdmull_lane<mode>): Likewise.
17815         (aarch64_sqdmull2_lane<mode>): Likewise.
17816         (aarch64_sqdmlal_laneq<mode>):
17817         Replace VCON usage with VCONQ.
17818         Emit aarch64_sqdmlal_laneq<mode>_internal insn.
17819         (aarch64_sqdmlal2_laneq<mode>): Emit
17820         aarch64_sqdmlal2_laneq<mode>_internal insn.
17821         Replace VCON with VCONQ.
17822         (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
17823         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
17824         (aarch64_sqdmull_laneq<mode>): Emit
17825         aarch64_sqdmull_laneq<mode>_internal insn.
17826         Replace VCON with VCONQ.
17827         (aarch64_sqdmull2_laneq<mode>): Emit
17828         aarch64_sqdmull2_laneq<mode>_internal insn.
17829         (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
17830         * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
17831         of 3rd argument to int16x4_t.
17832         (vqdmlalh_lane_s16): Likewise.
17833         (vqdmlslh_lane_s16): Likewise.
17834         (vqdmull_high_lane_s16): Likewise.
17835         (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
17836         (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
17837         (vqdmlsl_lane_s16): Likewise.
17838         (vqdmull_lane_s16): Don't create temporary int16x8_t value.
17839         (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
17840         (vqdmlals_lane_s32): Likewise.
17841         (vqdmlsls_lane_s32): Likewise.
17842         (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
17843         (vqdmulls_lane_s32): Likewise.
17844         (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
17845         (vqdmlsl_lane_s32): Likewise.
17846         (vqdmull_lane_s32): Don't create temporary int32x4_t value.
17847         (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
17848         (vqrdmulhh_lane_s16): Likewise.
17849         (vqdmlsl_high_lane_s16): Likewise.
17850         (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
17851         (vqdmlsl_high_lane_s32): Likewise.
17852         (vqrdmulhs_lane_s32): Likewise.
17854 2014-06-20  Tom de Vries  <tom@codesourcery.com>
17856         * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
17857         get_call_reg_set_usage.
17859 2014-06-20  Tom de Vries  <tom@codesourcery.com>
17861         * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
17862         it contains all call_used_regs.
17864 2014-06-20  Tom de Vries  <tom@codesourcery.com>
17866         * final.c (collect_fn_hard_reg_usage): Add and use variable
17867         function_used_regs.
17869 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
17871         * cgraph.h (struct symtab_node): Add field in_init_priority_hash
17872         (set_init_priority, get_init_priority, set_fini_priority,
17873         get_fini_priority): New methods.
17874         * tree.c (init_priority_for_decl): Remove.
17875         (init_ttree): Do not initialize init priority.
17876         (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
17877         (decl_priority_info): Remove.
17878         (decl_init_priority_insert): Rewrite.
17879         (decl_fini_priority_insert): Rewrite.
17880         * tree.h (tree_priority_map_eq, tree_priority_map_hash,
17881         tree_priority_map_marked_p): Remove.
17882         * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
17883         * lto-streamer-out.c (hash_tree): Do not hash priorities.
17884         * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
17885         not output priorities.
17886         (pack_ts_function_decl_value_fields): Likewise.
17887         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
17888         not input priorities.
17889         (unpack_ts_function_decl_value_fields): Likewise.
17890         * symtab.c (symbol_priority_map): Declare.
17891         (init_priority_hash): Declare.
17892         (symtab_unregister_node): Unregister from priority hash, too.
17893         (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
17894         New methods.
17895         (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
17896         (symbol_priority_info): New function.
17897         (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
17898         New methods.
17899         * tree-core.h (tree_priority_map): Remove.
17901 2014-06-20  Jakub Jelinek  <jakub@redhat.com>
17903         * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
17904         0xff to uint64_t before shifting it up.
17906 2014-06-20  Julian Brown  <julian@codesourcery.com>
17907             Chung-Lin Tang  <cltang@codesourcery.com>
17909         * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
17910         TARGET_THUMB1_ONLY. Add comments.
17912 2014-06-19  Tom de Vries  <tom@codesourcery.com>
17914         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
17915         return type to void.
17916         * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
17918 2014-06-19  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
17920         * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
17921         as "move", from depends_on.
17923 2014-06-19  Terry Guo  <terry.guo@arm.com>
17925         * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
17926         stage.
17928 2014-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
17930         * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
17931         Remove cr5.
17932         (REG_ALLOC_ORDER): Update comment.  Move cr5 earlier.
17934 2014-06-18  Kaz Kojima  <kkojima@gcc.gnu.org>
17936         PR target/61550
17937         * config/sh/sh.c (prepare_move_operands): Don't process TLS
17938         addresses here if reload in progress or completed.
17940 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
17942         * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
17943         "TARGET_MIPS16 ? M16_REGS : GR_REGS".
17944         * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
17945         (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
17946         (mips_register_priority): New function that implements the target
17947         hook TARGET_REGISTER_PRIORITY.
17948         (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
17949         (mips_lra_p): Likewise for TARGET_LRA_P.
17950         (TARGET_REGISTER_PRIORITY): Define macro.
17951         (TARGET_SPILL_CLASS): Likewise.
17952         (TARGET_LRA_P): Likewise.
17953         * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
17954         classes.
17955         (REG_CLASS_NAMES): Likewise.
17956         (REG_CLASS_CONTENTS): Likewise.
17957         (BASE_REG_CLASS): Use M16_SP_REGS.
17958         * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
17959         New set attribute to enable alternatives depending on the register
17960         allocator used.
17961         (*mul_acc_si_r3900, *mul_sub_si): Likewise.
17962         (*lea64): Disable pattern for MIPS16.
17963         * config/mips/mips.opt (mlra): New option.
17965 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
17967         * lra-constraints.c (base_to_reg): New function.
17968         (process_address): Use new function.
17970 2014-06-18  Tom de Vries  <tom@codesourcery.com>
17972         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
17973         * config/aarch64/aarch64.c
17974         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
17975         (aarch64_emit_call_insn): New function.
17976         (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
17977         of emit_call_insn.
17978         * config/aarch64/aarch64.md (define_expand "call_internal")
17979         (define_expand "call_value_internal", define_expand "sibcall_internal")
17980         (define_expand "sibcall_value_internal"): New.
17981         (define_expand "call", define_expand "call_value")
17982         (define_expand "sibcall", define_expand "sibcall_value"): Use internal
17983         expand variant and aarch64_emit_call_insn.
17985 2014-06-18  Radovan Obradovic  <robradovic@mips.com>
17986             Tom de Vries  <tom@codesourcery.com>
17988         * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
17989         * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
17990         Redefine to true.
17991         (arm_emit_call_insn): Add and use sibcall parameter.  Add IP and CC
17992         clobbers to CALL_INSN_FUNCTION_USAGE.
17993         (define_expand "sibcall_internal")
17994         (define_expand "sibcall_value_internal"): New.
17995         (define_expand "call", define_expand "call_value"): Add argument to
17996         arm_emit_call_insn.
17997         (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
17998         (define_expand "sibcall_value"): Use sibcall_value_internal and
17999         arm_emit_call_insn.
18001 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
18003         * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
18005 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
18007         * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
18008         __udivmoddi4.
18010 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
18012         * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
18013         push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
18014         annotations. Fix DWARF information.
18016 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
18018         * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
18019         __udivmoddi4, and fixups for negative operands.
18021 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
18023         * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
18025 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
18027         * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
18028         to __udivmoddi4.
18030 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
18032         * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
18033         manipulation.
18035 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
18037         * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
18038         describing register usage on function entry and exit.
18040 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
18042         * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
18043         (__aeabi_ldivmod): Fix whitespace.
18045 2014-06-18  Andreas Schwab  <schwab@suse.de>
18047         * doc/md.texi (Standard Names): Use @itemx for grouped items.
18048         Remove blank line after @item.
18050 2014-06-18  Richard Henderson  <rth@redhat.com>
18052         PR target/61545
18053         * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
18055 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
18057         * config/arm/arm.c (neon_vector_mem_operand): Allow register
18058         POST_MODIFY for neon loads and stores.
18059         (arm_print_operand): Output post-index register for neon loads and
18060         stores.
18062 2014-06-18  Richard Biener  <rguenther@suse.de>
18064         * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
18066 2014-06-18  Richard Biener  <rguenther@suse.de>
18068         * tree-pass.h (make_pass_dce_loop): Remove.
18069         * passes.def: Replace pass_dce_loop with pass_dce.
18070         * tree-ssa-dce.c (perform_tree_ssa_dce): If something
18071         changed free niter estimates and reset the scev cache.
18072         (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
18073         make_pass_dce_loop): Remove.
18074         * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
18075         (fini_copy_prop): Return whether something changed.  Always
18076         let substitute_and_fold perform DCE and free niter estimates
18077         and reset the scev cache if so.
18078         (execute_copy_prop): If sth changed schedule cleanup-cfg.
18079         (pass_data_copy_prop): Do not unconditionally schedule
18080         cleanup-cfg or update-ssa.
18082 2014-06-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
18084         PR tree-optimization/61518
18085         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
18086         reduction var is used in reduction stmt or phi-function only.
18088 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18090         * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
18092 2014-06-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18094         PR tree-optimization/61517
18095         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
18096         whose rhs's first tree is the source expression instead of the
18097         expression itself.
18098         (find_bswap_or_nop): Likewise.
18099         (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
18100         gimple stmt whose rhs's first tree is the source. In the memory source
18101         case, move the stmt to be replaced close to one of the original load to
18102         avoid the problem of a store between the load and the stmt's original
18103         location.
18104         (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
18105         signature.
18107 2014-06-18  Andreas Schwab  <schwab@suse.de>
18109         PR rtl-optimization/54555
18110         * postreload.c (move2add_use_add2_insn): Substitute
18111         STRICT_LOW_PART only if it is cheaper.
18113 2014-06-18  Uros Bizjak  <ubizjak@gmail.com>
18115         * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
18116         Do not use unspec as call operand.  Use memory_operand instead of
18117         memory_nox32_operand and add "m" operand constraint.  Disable
18118         pattern for TARGET_X32.
18119         (*sibcall_pop_memory): Ditto.
18120         (*sibcall_value_memory): Ditto.
18121         (*sibcall_value_pop_memory): Ditto.
18122         (sibcall peepholes): Merge SImode and DImode patterns using
18123         W mode iterator.  Use memory_operand instead of memory_nox32_operand.
18124         Disable pattern for TARGET_X32.  Check if eliminated register is
18125         really dead after call insn.  Generate call RTX without unspec operand.
18126         (sibcall_value peepholes): Ditto.
18127         (sibcall_pop peepholes): Fix call insn RTXes.  Use memory_operand
18128         instead of memory_nox32_operand.  Check if eliminated register is
18129         really dead after call insn. Generate call RTX without unspec operand.
18130         (sibcall_value_pop peepholes): Ditto.
18131         * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
18133 2014-06-18  Terry Guo  <terry.guo@arm.com>
18135         PR target/61544
18136         * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
18137         reach the head.
18139 2014-06-18  Olivier Hainque  <hainque@adacore.com>
18141         * tree-core.h (tree_block): Add an "end_locus" field, allowing
18142         memorization of the end of block source location.
18143         * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
18144         * gimplify.c (gimplify_bind_expr): Propagate the block start and
18145         end source location info we have on the block entry/exit code we
18146         generate.
18148 2014-06-18  Richard Biener  <rguenther@suse.de>
18150         * common.opt (fssa-phiopt): New option.
18151         * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
18152         but not with -Og.
18153         * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
18154         * doc/invoke.texi (-fssa-phiopt): Document.
18156 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18158         * genattrtab.c (n_bypassed): New variable.
18159         (process_bypasses): Initialise n_bypassed.
18160         Count number of bypassed reservations.
18161         (make_automaton_attrs): Allocate space for bypassed reservations
18162         rather than number of bypasses.
18164 2014-06-18  Richard Biener  <rguenther@suse.de>
18166         * tree-ssa-propagate.c (replace_phi_args_in): Return whether
18167         we propagated anything.
18168         (substitute_and_fold_dom_walker::before_dom_children): Something
18169         changed if we propagated into PHI arguments.
18170         * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
18171         we removed a stmt.
18173 2014-06-18  Evgeny Stupachenko  <evstupac@gmail.com>
18175         * config/i386/i386.c (ix86_reassociation_width): Add alternative for
18176         vector case.
18177         * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
18178         * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
18179         * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
18180         Introduces alternative way of loads group permutaions.
18181         (vect_transform_grouped_load): Try alternative way of permutations.
18183 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
18185         * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
18186         changed in ORT_TARGET region, don't jump to do_outer.
18187         (struct gimplify_adjust_omp_clauses_data): New type.
18188         (gimplify_adjust_omp_clauses_1): Adjust for data being
18189         a struct gimplify_adjust_omp_clauses_data pointer instead
18190         of tree *.  Pass pre_p as a new argument to
18191         lang_hooks.decls.omp_finish_clause hook.
18192         (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
18193         splay_tree_foreach to pass both list_p and pre_p.
18194         (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
18195         gimplify_omp_workshare, gimplify_omp_target_update): Adjust
18196         gimplify_adjust_omp_clauses callers.
18197         * langhooks.c (lhd_omp_finish_clause): New function.
18198         * langhooks-def.h (lhd_omp_finish_clause): New prototype.
18199         (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
18200         * langhooks.h (struct lang_hooks_for_decls): Add a new
18201         gimple_seq * argument to omp_finish_clause hook.
18202         * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
18203         non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
18204         (scan_omp_parallel, lower_omp_for): When adding
18205         _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
18206         * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
18207         * tree-nested.c (convert_nonlocal_omp_clauses,
18208         convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
18209         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
18211 2014-06-17  Andrew MacLeod  <amacleod@redhat.com>
18213         * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
18214         * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
18216 2014-06-17  Xinliang David Li  <davidxl@google.com>
18218         * tree-pretty-print.c (dump_function_header): Print cgraph uid.
18219         * passes.c (pass_init_dump_file): Do not set initialize
18220         flag to false unconditionally.
18222 2014-06-17  Richard Biener  <rguenther@suse.de>
18224         * genopinit.c (main): Use vec<>::qsort method.
18225         * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
18226         Likewise.
18227         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
18229 2014-06-17  Matthew Fortune  <matthew.fortune@imgtec.com>
18231         * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
18232         * config/mips/mips.c (mips_expand_fcc_reload): Remove.
18233         (mips_move_to_gpr_cost): Remove ST_REGS case.
18234         (mips_move_from_gpr_cost): Likewise.
18235         (mips_register_move_cost): Likewise.
18236         (mips_secondary_reload_class): Likewise.
18238 2014-06-17  Richard Biener  <rguenther@suse.de>
18240         * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
18241         (pass_all_optimizations): Move 3rd copy-prop pass from after
18242         fre to before ifcombine/phiopt.
18244 2014-06-17  Richard Biener  <rguenther@suse.de>
18246         * tree-switch-conversion.c (collect_switch_conv_info): Simplify
18247         and allow all blocks to be forwarders.
18249 2014-06-17  Yufeng Zhang  <yufeng.zhang@arm.com>
18251         PR target/61483
18252         * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
18253         variable 'size'; calculate 'size' right in the front; use
18254         'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
18255         pcum->aapcs_stack_words.
18257 2014-06-17  Nick Clifton  <nickc@redhat.com>
18259         * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
18260         (umulhi3, mulsidi3, umulsidi3): Likewise.
18262 2014-06-17  Thomas Schwinge  <thomas@codesourcery.com>
18264         PR middle-end/61508
18265         * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
18266         check for section name.
18268 2014-06-17  Richard Biener  <rguenther@suse.de>
18270         * tree-ssa-propagate.c: Include domwalk.h.
18271         (substitute_and_fold): Outline main worker into a domwalker ...
18272         (substitute_and_fold_dom_walker::before_dom_children): ... here.
18273         Schedule stmts we can fully propagate for removal.  Remove
18274         poor-mans DCE.
18275         (substitute_and_fold): Apply a dominator walk to perform
18276         substitution.  Process stmts scheduled for removal here.
18278 2014-06-17  Richard Biener  <rguenther@suse.de>
18280         * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
18281         of PHI node moving.
18283 2014-06-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
18285         * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
18286         default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
18287         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
18288         __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
18289         * config/arm/vfp.md (set_fpscr): Make pattern conditional on
18290         TARGET_HARD_FLOAT.
18291         (get_fpscr) : Likewise.
18293 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
18295         PR rtl-optimization/61325
18296         * lra-constraints.c (valid_address_p): Add forward declaration.
18297         (simplify_operand_subreg): Check address validity before and after
18298         alter_reg of memory subreg.
18300 2014-06-16  Uros Bizjak  <ubizjak@gmail.com>
18302         * config/i386/i386.c (decide_alg): Correctly handle
18303         maximum size of stringop algorithm.
18305 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
18307         * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
18309 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
18311         PR rtl-optimization/61522
18312         * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
18314 2014-06-16  Jan Hubicka  <hubicka@ucw.cz>
18316         Revert:
18317         * symtab.c (symtab_node::reset_section): New method.
18318         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
18319         for localization.
18320         * cgraph.h (reset_section): Declare.
18321         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
18322         do not consider comdat locals.
18323         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
18324         for new symbol.
18325         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
18326         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
18327         reset sections of symbols dragged out of the comdats.
18328         (function_and_variable_visibility): Reset sections of
18329         localized symbols.
18331 2014-06-16  Richard Biener  <rguenther@suse.de>
18333         PR tree-optimization/61482
18334         * tree-vrp.c (adjust_range_with_scev): Avoid setting of
18335         [-INF(OVF), +INF(OVF)] range.
18337 2014-06-16  Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
18339         * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
18340         instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
18341         handling 32-bit multiplication.
18343 2014-06-16  Chung-Lin Tang  <cltang@codesourcery.com>
18345         PR middle-end/61430
18346         * lra-lives.c (process_bb_lives): Skip creating copy during
18347         insn scan when src/dest has constrained to same regno.
18349 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
18351         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
18352         DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
18354 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
18356         * asan.c (check_func): New function.
18357         (maybe_create_ssa_name): Likewise.
18358         (build_check_stmt_with_calls): Likewise.
18359         (use_calls_p): Likewise.
18360         (report_error_func): Change interface.
18361         (build_check_stmt): Allow non-integer lengths; add support
18362         for new parameter.
18363         (asan_instrument): Likewise.
18364         (instrument_mem_region_access): Moved code to build_check_stmt.
18365         (instrument_derefs): Likewise.
18366         (instrument_strlen_call): Likewise.
18367         * cfgcleanup.c (old_insns_match_p): Add support for new functions.
18368         * doc/invoke.texi: Describe new parameter.
18369         * params.def: Define new parameter.
18370         * params.h: Likewise.
18371         * sanitizer.def: Describe new builtins.
18373 2014-06-16  Richard Biener  <rguenther@suse.de>
18375         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
18376         Make all defs available at the end.
18377         (eliminate): If we remove a PHI node schedule cfg-cleanup.
18379 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
18381         PR plugins/45078
18382         * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
18384 2014-06-16  Richard Sandiford  <rdsandiford@googlemail.com>
18386         PR bootstrap/61516
18387         * auto-inc-dec.c (merge_in_block): Fix location of insn_info
18388         initialization.  Replace remaining use of uid.
18390 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
18392         * c-family/c-common.c (handle_tls_model_attribute): Use
18393         set_decl_tls_model.
18394         * c-family/c-common.c (handle_tls_model_attribute): Use
18395         set_decl_tls_model.
18396         * cgraph.h (struct varpool_node): Add tls_model.
18397         * tree.c (decl_tls_model, set_decl_tls_model): New functions.
18398         * tree.h (DECL_TLS_MODEL): Update.
18399         (DECL_THREAD_LOCAL_P): Check that variable is static.
18400         (decl_tls_model): Declare.
18401         (set_decl_tls_model): Declare.
18402         * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
18403         set symbol prorperties.
18404         (get_emutls_init_templ_addr): Cleanup.
18405         (new_emutls_decl): Update.
18406         * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
18407         (lto_input_varpool_node): Likewise.
18408         * lto-streamer-out.c (hash_tree): Likewise.
18409         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
18410         not stream DECL_TLS_MODEL.
18411         * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
18412         * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
18414 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
18416         * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
18418 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
18420         * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
18421         (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
18422         lists.
18423         (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
18424         (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
18425         (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
18426         (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
18427         (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
18428         (df_get_artificial_defs, df_get_artificial_uses)
18429         (df_single_def, df_single_use): Update accordingly.
18430         (df_refs_chain_dump): Take the first element in a linked list as
18431         parameter, rather than a pointer to an array of pointers.
18432         * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
18433         * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
18434         (df_chain_create_bb_process_use): Likewise.
18435         (df_md_bb_local_compute_process_def): Likewise.
18436         * fwprop.c (process_defs, process_uses): Likewise.
18437         (register_active_defs, update_uses): Likewise.
18438         (forward_propagate_asm): Update for new df_ref linking.
18439         * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
18440         (df_null_ref_rec, df_null_mw_rec): Likewise.
18441         (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
18442         explicitly.
18443         (df_scan_free_bb_info): Remove check for null artificial_defs.
18444         (df_install_ref_incremental): Adjust for new df_ref linking.
18445         Use a single-element insertion rather than a full sort.
18446         (df_ref_chain_delete_du_chain): Take the first element
18447         in a linked list as parameter, rather than a pointer to an array of
18448         pointers.
18449         (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
18450         (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
18451         (df_insn_info_delete): Remove check for null defs and call to
18452         df_scan_free_mws_vec.
18453         (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
18454         null rather than df_null_*_rec.
18455         (df_insn_rescan_debug_internal): Likewise, and update null
18456         checks in the same way.  Remove check for null defs.
18457         (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
18458         Move a single element rather doing a full sort.
18459         (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
18460         linking.
18461         (df_notes_rescan): Likewise.  Use a merge rather than a full sort.
18462         Initialize df_ref and df_mw_hardreg lists to null rather than
18463         df_null_*_rec.
18464         (df_ref_compare): Take df_refs as parameter, transferring the
18465         old interface to...
18466         (df_ref_ptr_compare): ...this new function.
18467         (df_sort_and_compress_refs): Update accordingly.
18468         (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
18469         old interface to...
18470         (df_mw_ptr_compare): ...this new function.
18471         (df_sort_and_compress_mws): Update accordingly.
18472         (df_install_refs, df_install_mws): Return a linked list rather than
18473         an array of pointers.
18474         (df_refs_add_to_chains): Assert that old lists are empty rather
18475         than freeing them.
18476         (df_insn_refs_verify): Don't handle null defs speciailly.
18477         * web.c (union_match_dups): Update for new df_ref linking.
18479 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
18481         * df.h (df_ref_create, df_ref_remove): Delete.
18482         * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
18483         (df_ref_remove): Likewise.
18485 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
18487         * df.h (df_single_def, df_single_use): New functions.
18488         * ira.c (find_moveable_pseudos): Use them.
18490 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
18492         * df.h (FOR_EACH_INSN_INFO_MW): New macro.
18493         * df-problems.c (df_note_bb_compute): Use it.
18494         * regstat.c (regstat_bb_compute_ri): Likewise.
18496 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
18498         * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
18499         * cse.c (cse_extended_basic_block): Use them.
18500         * dce.c (mark_artificial_use): Likewise.
18501         * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
18502         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
18503         (df_chain_remove_problem, df_chain_bb_dump): Likewise.
18504         (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
18505         (df_simulate_initialize_backwards): Likewise.
18506         (df_simulate_finalize_backwards): Likewise.
18507         (df_simulate_initialize_forwards): Likewise.
18508         (df_md_simulate_artificial_defs_at_top): Likewise.
18509         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
18510         * regrename.c (init_rename_info): Likewise.
18511         * regstat.c (regstat_bb_compute_ri): Likewise.
18512         (regstat_bb_compute_calls_crossed): Likewise.
18514 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
18516         * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
18517         (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
18518         (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
18519         * auto-inc-dec.c (find_inc, merge_in_block): Use them.
18520         * combine.c (create_log_links): Likewise.
18521         * compare-elim.c (find_flags_uses_in_insn): Likewise.
18522         (try_eliminate_compare): Likewise.
18523         * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
18524         * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
18525         (remove_reg_equal_equiv_notes_for_defs): Likewise.
18526         (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
18527         (word_dce_process_block, dce_process_block): Likewise.
18528         * ddg.c (def_has_ccmode_p): Likewise.
18529         * df-core.c (df_bb_regno_first_def_find): Likewise.
18530         (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
18531         * df-problems.c (df_rd_simulate_one_insn): Likewise.
18532         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
18533         (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
18534         (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
18535         (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
18536         (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
18537         (df_simulate_find_defs, df_simulate_find_uses): Likewise.
18538         (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
18539         (df_simulate_uses, df_md_simulate_one_insn): Likewise.
18540         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
18541         * fwprop.c (local_ref_killed_between_p): Likewise.
18542         (all_uses_available_at, free_load_extend): Likewise.
18543         * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
18544         * hw-doloop.c (scan_loop): Likewise.
18545         * ifcvt.c (dead_or_predicable): Likewise.
18546         * init-regs.c (initialize_uninitialized_regs): Likewise.
18547         * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
18548         (process_bb_node_lives): Likewise.
18549         * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
18550         (find_moveable_pseudos): Likewise.
18551         * loop-invariant.c (check_dependencies, record_uses): Likewise.
18552         * recog.c (peep2_find_free_register): Likewise.
18553         * ree.c (get_defs): Likewise.
18554         * regstat.c (regstat_bb_compute_ri): Likewise.
18555         (regstat_bb_compute_calls_crossed): Likewise.
18556         * sched-deps.c (find_inc, find_mem): Likewise.
18557         * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
18558         (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
18559         * shrink-wrap.c (requires_stack_frame_p): Likewise.
18560         (prepare_shrink_wrap): Likewise.
18561         * store-motion.c (compute_store_table, build_store_vectors): Likewise.
18562         * web.c (union_defs, pass_web::execute): Likewise.
18563         * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
18564         (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
18566 2014-06-13  Vladimir Makarov  <vmakarov@redhat.com>
18568         * lra-assign.c (assign_by_spills): Add code to assign vector regs
18569         to inheritance pseudos.
18570         * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
18572 2014-06-13  Peter Bergner  <bergner@vnet.ibm.com>
18574         PR target/61415
18575         * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
18576         (BU_MISC_2): Rename to ...
18577         (BU_LDBL128_2): ... this.
18578         * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
18579         (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
18580         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
18581         RS6000_BTM_LDBL128.
18582         (rs6000_invalid_builtin): Add long double 128-bit builtin support.
18583         (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
18584         * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
18585         (unpacktf_1): Likewise.
18586         * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
18587         (__builtin_longdouble_dw1): Likewise.
18588         * doc/sourcebuild.texi (longdouble128): Document.
18590 2014-06-13  Jeff Law  <law@redhat.com>
18592         PR rtl-optimization/61094
18593         PR rtl-optimization/61446
18594         * ree.c (combine_reaching_defs): Get the mode for the copy from
18595         the extension insn rather than the defining insn.
18597 2014-06-13  Dehao Chen  <dehao@google.com>
18599         * dwarf2out.c (add_linkage_name): Emit more linkage name.
18601 2014-06-13  Thomas Schwinge  <thomas@codesourcery.com>
18603         * doc/install.texi (--enable-linker-plugin-configure-flags)
18604         (--enable-linker-plugin-flags): Document new flags.
18606 2014-06-13  Martin Jambor  <mjambor@suse.cz>
18608         PR ipa/61186
18609         * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
18610         cache_token if returning early.
18612 2014-06-13  Nick Clifton  <nickc@redhat.com>
18614         * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
18615         requested alignment is active.
18616         (LABEL_ALIGN): Likewise.
18617         (LOOP_ALIGN): Likewise.
18619 2014-06-13  Richard Biener  <rguenther@suse.de>
18621         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
18622         Rewrite to propagate the VN result into all uses where
18623         possible and to remove stmts becoming dead because of that.
18624         (eliminate): Generalize stmt removal handling, remove in
18625         reverse dominator order to support proper debug stmt
18626         generation.  Update stmts before removing stmts.
18627         * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
18629 2014-06-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18631         PR tree-optimization/61375
18632         * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
18633         symbolic number cannot be represented in an uint64_t.
18634         (find_bswap_or_nop_1): Likewise.
18636 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
18638         * symtab.c (symtab_node::reset_section): New method.
18639         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
18640         for localization.
18641         * cgraph.h (reset_section): Declare.
18642         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
18643         do not consider comdat locals.
18644         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
18645         for new symbol.
18646         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
18647         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
18648         reset sections of symbols dragged out of the comdats.
18649         (function_and_variable_visibility): Reset sections of
18650         localized symbols.
18652 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
18654         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
18655         to use symtab and decl_binds_to_current_def_p
18656         * tree-vectorizer.c (increase_alignment): Increase alignment
18657         of alias target, too.
18659 2014-06-12  Jakub Jelinek  <jakub@redhat.com>
18661         PR middle-end/61486
18662         * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
18663         (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
18664         if outer combined construct is distribute.
18665         (gimplify_omp_for): For OMP_DISTRIBUTE set
18666         gimplify_omp_ctxp->distribute.
18667         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
18668         GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
18669         mapping into decl map.
18671 2014-06-12  Jason Merrill  <jason@redhat.com>
18673         * common.opt (fabi-version): Change default to 0.
18675 2014-06-12  Jason Merrill  <jason@redhat.com>
18677         * toplev.c (process_options): Reject -fabi-version=1.
18679 2014-06-12  Jeff Law  <law@redhat.com>
18681         PR tree-optimization/61009
18682         * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
18683         value when we stop processing a block due to problematic PHIs.
18685 2014-06-12  Alan Lawrence  <alan.lawrence@arm.com>
18687         * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
18688         vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
18689         vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
18690         vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
18691         vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
18692         vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
18693         vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
18694         are not in the spec.
18696 2014-06-10  Alan Lawrence  <alan.lawrence@arm.com>
18698         PR target/59843
18699         * config/aarch64/aarch64-modes.def: Add V1DFmode.
18700         * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
18701         Support V1DFmode.
18703 2014-06-12  Eric Botcazou  <ebotcazou@adacore.com>
18705         * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
18707 2014-06-12  Georg-Johann Lay  <avr@gjlay.de>
18709         PR target/61443
18710         * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
18711         loading from address spaces.
18713 2014-06-12  Martin Liska  <mliska@suse.cz>
18715         PR ipa/61462
18716         * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
18717         statement is reachable.
18719 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
18721         * symtab.c (section_hash): New hash.
18722         (symtab_unregister_node): Clear section before freeing.
18723         (hash_section_hash_entry): New haser.
18724         (eq_sections): New function.
18725         (symtab_node::set_section_for_node): New method.
18726         (set_section_1): Update.
18727         (symtab_node::set_section): Take string instead of tree as parameter.
18728         (symtab_resolve_alias): Update.
18729         * cgraph.h (section_hash_entry_d): New structure.
18730         (section_hash_entry): New typedef.
18731         (cgraph_node): Change comdat_group_ to x_comdat_group,
18732         change section_ to x_section and turn into section_hash_entry;
18733         update accestors; put set_section_for_node offline.
18734         * tree.c (decl_section_name): Turn into string.
18735         (set_decl_section_name): Change parameter to be string.
18736         * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
18737         * sdbout.c (sdbout_one_type): Update.
18738         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
18739         * varasm.c (IN_NAMED_SECTION, get_named_section,
18740         resolve_unique_section, hot_function_section, get_named_text_section,
18741         USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
18742         make_decl_rtl, default_unique_section): Update.
18743         * config/c6x/c6x.c (c6x_in_small_data_p): Update.
18744         (c6x_elf_unique_section): Update.
18745         * config/nios2/nios2.c (nios2_in_small_data_p): Update.
18746         * config/pa/pa.c (pa_function_section): Update.
18747         * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
18748         * config/ia64/ia64.c (ia64_in_small_data_p): Update.
18749         * config/arc/arc.c (arc_in_small_data_p): Update.
18750         * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
18751         * config/mcore/mcore.c (mcore_unique_section): Update.
18752         * config/mips/mips.c (mips16_build_function_stub): Update.
18753         (mips16_build_call_stub): Update.
18754         (mips_function_rodata_section): Update.
18755         (mips_in_small_data_p): Update.
18756         * config/score/score.c (score_in_small_data_p): Update.
18757         * config/rx/rx.c (rx_in_small_data): Update.
18758         * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
18759         (rs6000_xcoff_asm_named_section): Update.
18760         (rs6000_xcoff_unique_section): Update.
18761         * config/frv/frv.c (frv_string_begins_with): Update.
18762         (frv_in_small_data_p): Update.
18763         * config/v850/v850.c (v850_encode_data_area): Update.
18764         * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
18765         (bfin_handle_l1_data_attribute): Update.
18766         (bfin_handle_l2_attribute): Update.
18767         * config/mep/mep.c (mep_unique_section): Update.
18768         * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
18769         Update.
18770         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
18771         (h8300_handle_tiny_data_attribute): Update.
18772         * config/m32r/m32r.c (m32r_in_small_data_p): Update.
18773         (m32r_in_small_data_p): Update.
18774         * config/alpha/alpha.c (alpha_in_small_data_p): Update.
18775         * config/i386/i386.c (ix86_in_large_data_p): Update.
18776         * config/i386/winnt.c (i386_pe_unique_section): Update.
18777         * config/darwin.c (darwin_function_section): Update.
18778         * config/lm32/lm32.c (lm32_in_small_data_p): Update.
18779         * tree-emutls.c (get_emutls_init_templ_addr): Update.
18780         (new_emutls_decl): Update.
18781         * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
18782         input_varpool_node): Update.
18783         (ead_string_cst): Turn to ...
18784         (read_string): ... this one.
18785         * dwarf2out.c (secname_for_decl): Update.
18786         * asan.c (asan_protect_global): Update.
18788 2014-06-11  DJ Delorie  <dj@redhat.com>
18790         * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
18791         cache lines.
18792         * config/rx/rx.c (rx_option_override): Likewise.
18793         (rx_align_for_label): Likewise.
18795         * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
18797 2014-06-11  Maciej W. Rozycki  <macro@codesourcery.com>
18799         * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
18800         prototype.
18802 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
18804         * common.md: New file.
18805         * doc/md.texi: Update description of generic, machine-independent
18806         constraints.
18807         * config/s390/constraints.md (e): Delete.
18808         * Makefile.in (md_file): Include common.md.
18809         * config/m32c/t-m32c (md_file): Likewise.
18810         * genpreds.c (general_mem): New array.
18811         (generic_constraint_letters): Remove constraints now defined by
18812         common.md.
18813         (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
18814         Allow the first character to be '<' or '>' as well.
18815         * genoutput.c (general_mem): New array.
18816         (indep_constraints): Remove constraints now defined by common.md.
18817         (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
18818         Remove special handling of 'm'.
18819         * ira-costs.c (record_reg_classes): Remove special handling of
18820         constraints now defined by common.md.
18821         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
18822         * ira-lives.c (single_reg_class): Likewise.
18823         (ira_implicitly_set_insn_hard_regs): Likewise.
18824         * lra-constraints.c (reg_class_from_constraints): Likewise.
18825         (process_alt_operands, process_address, curr_insn_transform): Likewise.
18826         * postreload.c (reload_cse_simplify_operands): Likewise.
18827         * reload.c (push_secondary_reload, scratch_reload_class)
18828         (find_reloads, alternative_allows_const_pool_ref): Likewise.
18829         * reload1.c (maybe_fix_stack_asms): Likewise.
18830         * targhooks.c (default_secondary_reload): Likewise.
18831         * stmt.c (parse_output_constraint): Likewise.
18832         * recog.c (preprocess_constraints): Likewise.
18833         (constrain_operands, peep2_find_free_register): Likewise.
18834         (asm_operand_ok): Likewise, but add a comment saying why 'o'
18835         must be handled specially.
18837 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
18839         * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
18840         * genpreds.c (have_const_dbl_constraints): Delete.
18841         (add_constraint): Don't set it.
18842         (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
18843         * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
18844         constraints using the lookup_constraint logic.
18845         * ira-lives.c (single_reg_class): Likewise.
18846         * ira.c (ira_setup_alts): Likewise.
18847         * lra-constraints.c (process_alt_operands): Likewise.
18848         * recog.c (asm_operand_ok, constrain_operands): Likewise.
18849         * reload.c (find_reloads): Likewise.
18851 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
18853         * genpreds.c (const_int_start, const_int_end): New variables.
18854         (choose_enum_order): Output CONST_INT constraints before memory
18855         constraints.
18856         (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
18857         Add CT_CONST_INT.
18858         * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
18859         * ira.c (ira_setup_alts): Likewise.
18860         * lra-constraints.c (process_alt_operands): Likewise.
18861         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
18862         * reload.c (find_reloads): Likewise.
18864 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
18866         * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
18867         decmem_ok and incmem_ok.  Reformat other bitfields for consistency.
18868         * recog.c (preprocess_constraints): Update accordingly.
18870 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
18872         * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
18873         (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
18874         (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
18875         * genpreds.c (print_type_tree): New function.
18876         (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
18877         REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
18878         EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
18879         Write out enum constraint_type and get_constraint_type.
18880         * lra-constraints.c (satisfies_memory_constraint_p): Take a
18881         constraint_num rather than a constraint string.
18882         (satisfies_address_constraint_p): Likewise.
18883         (reg_class_from_constraints): Avoid old constraint macros.
18884         (process_alt_operands, process_address_1): Likewise.
18885         (curr_insn_transform): Likewise.
18886         * ira-costs.c (record_reg_classes): Likewise.
18887         (record_operand_costs): Likewise.
18888         * ira-lives.c (single_reg_class): Likewise.
18889         (ira_implicitly_set_insn_hard_regs): Likewise.
18890         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
18891         * postreload.c (reload_cse_simplify_operands): Likewise.
18892         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
18893         (constrain_operands, peep2_find_free_register): Likewise.
18894         * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
18895         (find_reloads, alternative_allows_const_pool_ref): Likewise.
18896         * reload1.c (maybe_fix_stack_asms): Likewise.
18897         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
18898         * targhooks.c (default_secondary_reload): Likewise.
18899         * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
18900         to EXTRA_CONSTRAINT_STR.
18901         * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
18903 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
18905         * genpreds.c (write_constraint_satisfied_p_1): Replace with...
18906         (write_constraint_satisfied_p_array): ...this new function.
18907         (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
18908         an array.
18909         (write_insn_preds_c): Update accordingly.
18911 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
18913         * genpreds.c (write_lookup_constraint): Rename to...
18914         (write_lookup_constraint_1): ...this.
18915         (write_lookup_constraint_array): New function.
18916         (write_tm_preds_h): Define lookup_constraint as an inline function
18917         that uses write_lookup_constraint_array where possible.
18918         (write_insn_preds_c): Update for the changes above.
18920 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
18922         * doc/md.texi (regclass_for_constraint): Rename to...
18923         (reg_class_for_constraint): ...this.
18924         * genpreds.c (num_constraints, enum_order, register_start)
18925         (register_end, satisfied_start, memory_start, memory_end)
18926         (address_start, address_end): New variables.
18927         (add_constraint): Count the number of constraints.
18928         (choose_enum_order): New function.
18929         (write_enum_constraint_num): Iterate over enum_order.
18930         (write_regclass_for_constraint): Rename to...
18931         (write_reg_class_for_constraint_1): ...this and update output
18932         accordingly.
18933         (write_constraint_satisfied_p): Rename to...
18934         (write_constraint_satisfied_p_1): ...this and update output
18935         accordingly.  Do nothing if all extra constraints are register
18936         constraints.
18937         (write_insn_extra_memory_constraint): Delete.
18938         (write_insn_extra_address_constraint): Delete.
18939         (write_range_function): New function.
18940         (write_tm_preds_h): Define constraint_satisfied_p and
18941         reg_class_for_constraint as inline functions that do a range check
18942         before calling the out-of-line function.  Use write_range_function
18943         to implement insn_extra_{register,memory,address}_constraint,
18944         the first of which is new.
18945         (write_insn_preds_c): Update after above changes to write_* functions.
18946         (main): Call choose_enum_order.
18948 2014-06-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18950         PR tree-optimization/61306
18951         * tree-ssa-math-opts.c (struct symbolic_number): Store type of
18952         expression instead of its size.
18953         (do_shift_rotate): Adapt to change in struct symbolic_number. Return
18954         false to prevent optimization when the result is unpredictable due to
18955         arithmetic right shift of signed type with highest byte is set.
18956         (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
18957         (init_symbolic_number): Likewise.
18958         (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
18959         when the result is unpredictable due to sign extension.
18961 2014-06-11  Terry Guo  <terry.guo@arm.com>
18963         * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
18964         (*thumb1_addsi3): Ditto.
18965         (*thumb_subdi3): Ditto.
18966         (thumb1_subsi3_insn): Ditto.
18967         (*thumb_mulsi3): Ditto.
18968         (*thumb_mulsi3_v6): Ditto.
18969         (*thumb1_andsi3_insn): Ditto.
18970         (thumb1_bicsi3): Ditto.
18971         (*thumb1_iorsi3_insn): Ditto.
18972         (*thumb1_xorsi3_insn): Ditto.
18973         (*thumb1_ashlsi3): Ditto.
18974         (*thumb1_ashrsi3): Ditto.
18975         (*thumb1_lshrsi3): Ditto.
18976         (*thumb1_rotrsi3): Ditto.
18977         (*thumb1_negdi2): Ditto.
18978         (*thumb1_negsi2): Ditto.
18979         (*thumb1_abssi2): Ditto.
18980         (*thumb1_neg_abssi2): Ditto.
18981         (*thumb1_one_cmplsi2): Ditto.
18982         (*thumb1_zero_extendhisi2): Ditto.
18983         (*thumb1_zero_extendqisi2): Ditto.
18984         (*thumb1_zero_extendqisi2_v6): Ditto.
18985         (thumb1_extendhisi2): Ditto.
18986         (thumb1_extendqisi2): Ditto.
18987         (*thumb1_movdi_insn): Ditto.
18988         (*thumb1_movsi_insn): Ditto.
18989         (*thumb1_movhi_insn): Ditto.
18990         (thumb_movhi_clobber): Ditto.
18991         (*thumb1_movqi_insn): Ditto.
18992         (*thumb1_movhf): Ditto.
18993         (*thumb1_movsf_insn): Ditto.
18994         (*thumb_movdf_insn): Ditto.
18995         (movmem12b): Ditto.
18996         (movmem8b): Ditto.
18997         (cbranchqi4): Ditto.
18998         (cbranchsi4_insn): Ditto.
18999         (cbranchsi4_scratch): Ditto.
19000         (*negated_cbranchsi4): Ditto.
19001         (*tbit_cbranch): Ditto.
19002         (*tlobits_cbranch): Ditto.
19003         (*tstsi3_cbranch): Ditto.
19004         (*cbranchne_decr1): Ditto.
19005         (*addsi3_cbranch): Ditto.
19006         (*addsi3_cbranch_scratch): Ditto.
19007         (*thumb_cmpdi_zero): Ditto.
19008         (cstoresi_eq0_thumb1): Ditto.
19009         (cstoresi_ne0_thumb1): Ditto.
19010         (*cstoresi_eq0_thumb1_insn): Ditto.
19011         (*cstoresi_ne0_thumb1_insn): Ditto.
19012         (cstoresi_nltu_thumb1): Ditto.
19013         (cstoresi_ltu_thumb1): Ditto.
19014         (thumb1_addsi3_addgeu): Ditto.
19015         (*thumb_jump): Ditto.
19016         (*call_reg_thumb1_v5): Ditto.
19017         (*call_reg_thumb1): Ditto.
19018         (*call_value_reg_thumb1_v5): Ditto.
19019         (*call_value_reg_thumb1): Ditto.
19020         (*call_insn): Ditto.
19021         (*call_value_insn): Ditto.
19022         (thumb1_casesi_internal_pic): Ditto.
19023         (thumb1_casesi_dispatch): Ditto.
19024         (*thumb1_indirect_jump): Ditto.
19025         (prologue_thumb1_interwork): Ditto.
19026         (*epilogue_insns): Ditto.
19027         (consttable_1): Ditto.
19028         (consttable_2): Ditto.
19029         (tablejump): Ditto.
19030         (*thumb1_tablejump): Ditto.
19031         (thumb_eh_return): Ditto.
19032         (define_peephole2): Two of them are thumb1 only and got moved into
19033         new file thumb1.md.
19034         (define_split): Six of them are thumb1 only and got moved into new
19035         file thumb1.md.
19036         * config/arm/thumb1.md: New file comprised of above thumb1 only
19037         patterns.
19039 2014-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19041         * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
19042         * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
19043         dependencies.
19044         * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
19045         (aarch64_crc_builtin_datum): New struct.
19046         (aarch64_crc_builtin_data): New.
19047         (aarch64_init_crc32_builtins): New function.
19048         (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
19049         (aarch64_crc32_expand_builtin): New.
19050         (aarch64_expand_builtin): Add CRC32 builtin expansion case.
19051         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
19052         __ARM_FEATURE_CRC32 when appropriate.
19053         (TARGET_CRC32): Define.
19054         * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
19055         UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
19056         UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
19057         (aarch64_<crc_variant>): New pattern.
19058         * config/aarch64/arm_acle.h: New file.
19059         * config/aarch64/iterators.md (CRC): New int iterator.
19060         (crc_variant, crc_mode): New int attributes.
19061         * doc/aarch64-acle-intrinsics.texi: New file.
19062         * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
19063         Include aarch64-acle-intrinsics.texi.
19065 2014-06-11  Evgeny Stupachenko  <evstupac@gmail.com>
19067         * tree-vect-data-refs.c (vect_grouped_store_supported): New
19068         check for stores group of length 3.
19069         (vect_permute_store_chain): New permutations for stores group of
19070         length 3.
19071         * tree-vect-stmts.c (vect_model_store_cost): Change cost
19072         of vec_perm_shuffle for the new permutations.
19074 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
19076         * ipa-visibility.c (function_and_variable_visibility): Disable virtual
19077         table rewriting temporarily on targets not supporting ONE_ONLY.
19079 2014-06-11  Richard Biener  <rguenther@suse.de>
19081         PR middle-end/61437
19082         Revert
19083         2014-06-04  Richard Biener  <rguenther@suse.de>
19085         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
19086         TREE_PUBLIC and DECL_EXTERNAL decls.
19088 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
19090         * varasm.c (set_implicit_section): New function.
19091         (resolve_unique_section): Use it to set implicit section
19092         for aliases, too.
19093         (get_named_text_section): Use symtab_get_node (decl)->implicit_section
19094         (default_function_section): Likewise.
19095         (decl_binds_to_current_def_p): Constify argument.
19096         * varasm.h (decl_binds_to_current_def_p): Update prototype.
19097         * asan.c (asan_protect_global): Use
19098         symtab_get_node (decl)->implicit_section.
19099         * symtab.c (dump_symtab_base): Dump implicit sections.
19100         (verify_symtab_base): Verify sanity of sectoins and comdats.
19101         (symtab_resolve_alias): Alias share the section of its target.
19102         (set_section_1): New function.
19103         (symtab_node::set_section): Move here, recurse to aliases.
19104         (verify_symtab): Check for duplicated symtab lists.
19105         * tree-core.h (implicit_section_name_p): Remove.
19106         * tree-vect-data-refs.c: Include varasm.h.
19107         (vect_can_force_dr_alignment_p): Fix conditional on when
19108         decl bints to current definition; use
19109         symtab_get_node (decl)->implicit_section.
19110         * cgraph.c (cgraph_make_node_local_1): Fix section set.
19111         * cgraph.h (struct symtab_node): Add implicit_section.
19112         (set_section): Rename to ...
19113         (set_section_for_node): ... this one.
19114         (set_section): Declare.
19115         * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
19116         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
19117         input_overwrite_node, input_varpool_node): Stream implicit_section.
19118         * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
19119         removal; it will fail in LTO.
19121 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19123         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
19124         Change second alternative type to f_mcr.
19125         * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
19126         and 12th alternatives' types to f_mcr and f_mrc.
19127         (*movdi_aarch64): Same for 12th and 13th alternatives.
19128         (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
19129         (aarch64_movtilow_tilow): Change type to fmov.
19131 2014-06-10  Jiong Wang  <jiong.wang@arm.com>
19133         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
19134         (aarch64_save_or_restore_callee_save_registers): Fix layout.
19136 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19138         * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
19139         New expander.
19140         (aarch64_sqrdmulh_lane<mode>): Likewise.
19141         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
19142         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
19143         (aarch64_sqdmulh_laneq<mode>): New expander.
19144         (aarch64_sqrdmulh_laneq<mode>): Likewise.
19145         (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
19146         (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
19147         (aarch64_sqdmulh_lane<mode>): New expander.
19148         (aarch64_sqrdmulh_lane<mode>): Likewise.
19149         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
19150         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
19151         (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
19152         (aarch64_sqdmlal_laneq<mode>): Likewise.
19153         (aarch64_sqdmlsl_lane<mode>): Likewise.
19154         (aarch64_sqdmlsl_laneq<mode>): Likewise.
19155         (aarch64_sqdmlal2_lane<mode>): Likewise.
19156         (aarch64_sqdmlal2_laneq<mode>): Likewise.
19157         (aarch64_sqdmlsl2_lane<mode>): Likewise.
19158         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
19159         (aarch64_sqdmull_lane<mode>): Likewise.
19160         (aarch64_sqdmull_laneq<mode>): Likewise.
19161         (aarch64_sqdmull2_lane<mode>): Likewise.
19162         (aarch64_sqdmull2_laneq<mode>): Likewise.
19164 2014-06-10  Richard Biener  <rguenther@suse.de>
19166         PR tree-optimization/61438
19167         * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
19168         (eliminate_dom_walker::before_dom_children): Only try to inhibit
19169         insertion of IVs if running PRE.
19170         (eliminate): Adjust.
19171         (pass_pre::execute): Likewise.
19172         (pass_fre::execute): Likewise.
19174 2014-06-10  Richard Biener  <rguenther@suse.de>
19176         PR middle-end/61456
19177         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
19178         Do not use the main variant for the type comparison.
19179         (ncr_compar): Likewise.
19180         (nonoverlapping_component_refs_p): Likewise.
19182 2014-06-10  Marcus Shawcroft  <marcus.shawcroft@arm.com>
19184         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
19185         REG_CFA_RESTORE mode.
19187 2014-06-10  Evgeny Stupachenko  <evstupac@gmail.com>
19189         * config/i386/i386.c (expand_vec_perm_pblendv): New.
19190         * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
19191         expand_vec_perm_pblendv.
19193 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19195         * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
19196         available.
19197         Simplify description of __crc32d and __crc32cd intrinsics.
19198         * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
19199         availability.
19201 2014-06-10  Thomas Schwinge  <thomas@codesourcery.com>
19203         PR lto/61334
19204         * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
19205         * config.in: Regenerate.
19206         * configure: Likewise.
19208 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
19210         * ipa-reference.c (is_proper_for_analysis): Exclude addressable
19211         and public vars.
19212         (intersect_static_var_sets): Remove.
19213         (propagate): Do not prune local statics.
19215 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
19217         PR fortran/60928
19218         * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
19219         Set lastprivate_firstprivate even if omp_private_outer_ref
19220         langhook returns true.
19221         <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
19222         langhook, call unshare_expr on new_var and call
19223         build_outer_var_ref to get the last argument.
19225 2014-06-10  Marek Polacek  <polacek@redhat.com>
19227         PR c/60988
19228         * doc/extend.texi: Add cindex for transparent_union.
19230 2014-06-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
19232         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
19233         init_symbolic_number ().
19235 2014-05-18  John David Anglin  <danglin@gcc.gnu.org>
19237         PR middle-end/61141
19238         * emit-rtl.c (reset_all_used_flags): In a sequence, check that
19239         XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
19240         (verify_rtl_sharing): Likewise.
19242 2014-06-09  Marc Glisse  <marc.glisse@inria.fr>
19244         PR c++/54442
19245         * tree.c (build_qualified_type): Use a canonical type for
19246         TYPE_CANONICAL.
19248 2014-06-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19250         * config/arm/arm-modes.def: Remove XFmode.
19252 2014-06-09  Alan Lawrence  <alan.lawrence@arm.com>
19254         PR target/61062
19255         * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
19256         vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
19257         vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
19258         vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
19259         vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
19260         vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
19261         vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
19262         vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
19263         vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
19265 2014-06-09  Jan Hubicka  <hubicka@ucw.cz>
19267         * tree-core.h (tree_decl_with_vis): Remove section_name.
19269 2014-06-09  Kito Cheng  <kito@0xlab.org>
19271         * ira.c (ira): Don't call init_caller_save if LRA enabled
19272         since LRA use its own infrastructure to handle that.
19274 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
19276         * symtab.c (dump_symtab_base): Update dumping.
19277         (symtab_make_decl_local): Clear only DECL_COMDAT.
19278         * tree-vect-data-refs.c (Check that variable is static before
19279         tampering with sections.
19280         * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
19281         (cgraph_create_virtual_clone): Likewise.
19282         * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
19283         (decl_section_name, set_decl_section_name): New accessors.
19284         (find_decls_types_r): Do not walk section name
19285         * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
19286         (decl_comdat_group, decl_comdat_group_id): Constify.
19287         (decl_section_name, set_decl_section_name): Update.
19288         * varpool.c (varpool_finalize_named_section_flags): Use get_section.
19289         * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
19290         (cgraph_make_node_local_1): Clear section and comdat group.
19291         * cgraph.h (set_comdat_group): Sanity check.
19292         (get_section, set_section): New.
19293         * ipa-comdats.c (ipa_comdats): Use get_section.
19294         * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
19295         * lto-streamer-out.c: Do not follow section names.
19296         * c-family/c-common.c (handle_section_attribute): Update.
19297         * lto-cgraph.c (lto_output_node): Output section.
19298         (lto_output_varpool_node): Likewise.
19299         (read_comdat_group): Rename to ...
19300         (read_identifier): ... this one.
19301         (read_string_cst): New function.
19302         (input_node, input_varpool_node): Input section names.
19303         * tree-emutls.c (get_emutls_init_templ_addr): Update.
19304         (new_emutls_decl): Update.
19305         (secname_for_decl): Check section names only of static vars.
19306         * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
19307         * config/i386/winnt.c (i386_pe_unique_section): Likewise.
19308         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
19309         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
19310         * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
19311         * config/mcore/mcore.c (mcore_unique_section): Likewise.
19312         * config/mips/mips.c (mips16_build_function_stub): Likewise.
19313         * config/v850/v850.c (v850_insert_attributes): Likewise.
19314         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
19315         Likewise.
19316         (h8300_handle_tiny_data_attribute): Likewise.
19317         * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
19318         (bfin_handle_l2_attribute): Likewise.
19320 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
19322         * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
19323         remove static initializer.
19325 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
19327         * varasm.c (use_blocks_for_decl_p): Check symbol table
19328         instead of alias attribute.
19329         (place_block_symbol): Recurse on aliases.
19331 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
19333         * ipa-visibility.c: Include varasm.h
19334         (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
19336 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
19338         * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
19339         outputting aliases.
19341 2014-06-07  Steven Bosscher  <steven@gcc.gnu.org>
19343         * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
19344         from test_insn into GGC space escape via SET_SRC.
19346 2014-06-07  Eric Botcazou  <ebotcazou@adacore.com>
19348         * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
19349         call statement, if any.
19350         (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
19351         statements, if any.  Tidy up.
19353 2014-06-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
19355         PR target/61431
19356         * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
19357         iterators, VSX_D that handles 64-bit types, and VSX_LE that
19358         handles swapping the two 64-bit double words on little endian
19359         systems.  Include V1TImode and optionally TImode in VSX_LE so that
19360         these types are properly swapped.  Change all of the insns and
19361         splits that do the 64-bit swaps to use VSX_LE.
19362         (vsx_le_perm_load_<mode>): Likewise.
19363         (vsx_le_perm_store_<mode>): Likewise.
19364         (splitters for little endian memory operations): Likewise.
19365         (vsx_xxpermdi2_le_<mode>): Likewise.
19366         (vsx_lxvd2x2_le_<mode>): Likewise.
19367         (vsx_stxvd2x2_le_<mode>): Likewise.
19369 2014-06-06  Uros Bizjak  <ubizjak@gmail.com>
19371         PR target/61423
19372         * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
19373         define_insn_and_split pattern, merged from *floatunssi<mode>2_1
19374         and corresponding splitters.  Zero extend general register
19375         or memory input operand to XMM temporary.  Enable for
19376         TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
19377         (floatunssi<mode>2): Update expander predicate.
19379 2014-06-06  Vladimir Makarov  <vmakarov@redhat.com>
19381         PR rtl-optimization/61325
19382         * lra-constraints.c (process_address_1): Check scale equal to one
19383         to prevent transformation: base + scale * index => base + new_reg.
19385 2014-06-06  Richard Biener  <rguenther@suse.de>
19387         PR tree-optimization/59299
19388         * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
19389         a def operand.
19390         (nearest_common_dominator_of_uses): Likewise.
19391         (statement_sink_location): Adjust.  Support sinking loads.
19393 2014-06-06  Martin Jambor  <mjambor@suse.cz>
19395         * ipa-prop.c (get_place_in_agg_contents_list): New function.
19396         (build_agg_jump_func_from_list): Likewise.
19397         (determine_known_aggregate_parts): Renamed to
19398         determine_locally_known_aggregate_parts.  Moved some functionality
19399         to the two functions above, removed bound checks.
19401 2014-06-06  James Greenhalgh  <james.greenhalgh@arm.com>
19403         * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
19404         * config/aarch64/aarch64.c (aarch64_move_pointer): New.
19405         (aarch64_progress_pointer): Likewise.
19406         (aarch64_copy_one_part_and_move_pointers): Likewise.
19407         (aarch64_expand_movmen): Likewise.
19408         * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
19409         * config/aarch64/aarch64.md (movmem<mode>): New.
19411 2014-06-06  Bingfeng Mei  <bmei@broadcom.com>
19413         * targhooks.c (default_add_stmt_cost): Call target specific
19414         hook instead of default one.
19416 2014-06-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
19418         * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
19419         endianness instead of host endianness.
19420         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
19421         comments.
19423 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
19425         PR debug/53927
19426         * function.c (instantiate_decls): Process the saved static chain.
19427         (expand_function_start): If not optimizing, save the static chain
19428         onto the stack.
19429         * tree-nested.c (convert_all_function_calls): Always create the static
19430         chain for nested functions if not optimizing.
19432 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
19434         * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
19436 2014-06-06  Richard Biener  <rguenther@suse.de>
19438         * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
19439         (construct_init_block): Likewise.
19440         (construct_exit_block): Likewise.
19441         (pass_expand::execute): Likewise.
19442         * graphite.c (graphite_transforms): Replace check for current_loops
19443         with a check for > 1 loops.
19444         (pass_graphite_transforms::execute): Adjust.
19445         * ipa-split.c (split_function): Remove check for current_loops.
19446         * omp-low.c (expand_parallel_call): Likewise.
19447         (expand_omp_for_init_counts): Likewise.
19448         (extract_omp_for_update_vars): Likewise.
19449         (expand_omp_for_generic): Likewise.
19450         (expand_omp_sections): Likewise.
19451         (expand_omp_target): Likewise.
19452         * tracer.c (tail_duplicate): Likewise.
19453         (pass_tracer::execute): Likewise.
19454         * trans-mem.c (expand_transaction): Likewise.
19455         * tree-complex.c (expand_complex_div_wide): Likewise.
19456         * tree-eh.c (lower_resx): Likewise.
19457         (cleanup_empty_eh_merge_phis): Likewise.
19458         * tree-predcom.c (run_tree_predictive_commoning): Replace check for
19459         current_loops with a check for > 1 loops.
19460         (pass_predcom::execute): Adjust.
19461         * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
19462         * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
19463         * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
19464         * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
19465         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
19466         * tree-switch-conversion.c (process_switch): Likewise.
19467         * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
19468         * tree-vrp.c (vrp_visit_phi_node): Likewise.
19469         (execute_vrp): Likewise.
19470         * ubsan.c (ubsan_expand_null_ifn): Likewise.
19472 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
19474         * rtl.h (insn_location): Declare.
19475         * cfgcleanup.c (try_forward_edges): Compare the locus of locations
19476         with UNKNOWN_LOCATION.
19477         * emit-rtl.c (insn_location): New function.
19478         * final.c (notice_source_line): Check that the instruction has a
19479         location before retrieving it and use insn_location.
19480         * modulo-sched.c (loop_single_full_bb_p): Likewise.
19481         * print-rtl.c (print_rtx): Likewise.
19483 2014-06-06  Richard Biener  <rguenther@suse.de>
19485         * passes.def: Move 2nd VRP pass before phi-only-cprop.
19487 2014-06-06  Christian Bruel  <christian.bruel@st.com>
19489         PR tree-optimization/43934
19490         * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
19491         cost.
19493 2014-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
19495         * ira-lives.c (single_reg_class): Add missing break.  Explicitly
19496         return NO_REGS for extra address and memory constraints.  Handle
19497         operands that match (or are equivalent to something that matches)
19498         extra constant constraints.  Ignore other non-register operands.
19500 2014-06-06  Alan Modra  <amodra@gmail.com>
19502         PR target/61300
19503         * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
19504         * doc/tm.texi: Regenerate.
19505         * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
19506         Use throughout in place of REG_PARM_STACK_SPACE.
19507         * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
19508         "incoming" param.  Pass to rs6000_function_parms_need_stack.
19509         (rs6000_function_parms_need_stack): Add "incoming" param, ignore
19510         prototype_p when incoming.  Use function decl when incoming
19511         to handle K&R style functions.
19512         * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
19513         (INCOMING_REG_PARM_STACK_SPACE): Define.
19515 2014-06-05  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
19517         PR target/52472
19518         * cfgexpand.c (expand_debug_expr): Use address space of nested
19519         TREE_TYPE for ADDR_EXPR and MEM_REF.
19521 2014-06-05  Jeff Law  <law@redhat.com>
19523         PR tree-optimization/61289
19524         * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
19525         DST_MAP parameters.   Invalidate by walking all the SSA_NAME_VALUES
19526         looking for those which match LHS.  All callers changed.
19527         (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
19528         parameters and code which manipulated them.  All callers changed.
19529         (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
19530         and DST_MAP parameters.  Simplify invalidation code by just calling
19531         invalidate_equivalences.  All callers changed.
19532         (thread_across_edge): Simplify now that we don't need to maintain
19533         the map of equivalences to invalidate.
19535 2014-06-05  Kai Tietz  <ktietz@redhat.com>
19536             Richard Henderson  <rth@redhat.com>
19538         PR target/46219
19539         * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
19540         checking for !TARGET_X32.
19541         * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
19542         (sibcall_intern): New define_insn, plus required peepholes.
19543         (sibcall_pop_intern): Likewise.
19544         (sibcall_value_intern): Likewise.
19545         (sibcall_value_pop_intern): Likewise.
19547 2014-06-05  Ilya Enkovich  <ilya.enkovich@intel.com>
19549         * tree-inline.c (tree_function_versioning): Check DF info existence
19550         before accessing it.
19552 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
19554         * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
19555         frame_size.
19556         * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
19557         aarch64_frame hard_fp_offset and frame_size.
19558         (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
19559         frame_size; remove original_frame_size.
19560         (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
19561         (aarch64_initial_elimination_offset): Remove frame_size and
19562         offset.  Use aarch64_frame frame_size.
19564 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
19565             Jiong Wang  <jiong.wang@arm.com>
19566             Renlin  <renlin.li@arm.com>
19568         * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
19569         initialization of R30 offset.  Update offset.  Iterate core
19570         regisers upto X30.  Remove X29, X30 specific code.
19572 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
19573             Jiong Wang  <jiong.wang@arm.com>
19575         * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
19576         (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
19577         (aarch64_register_saved_on_entry): Adjust test.
19579 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
19581         * config/aarch64/aarch64.h (machine_function): Move
19582         saved_varargs_size from here...
19583         (aarch64_frame): ... to here.
19585         * config/aarch64/aarch64.c (aarch64_expand_prologue)
19586         (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
19587         (aarch64_initial_elimination_offset)
19588         (aarch64_setup_incoming_varargs): Adjust location of
19589         saved_varargs_size.
19591 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
19593         * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
19594         layout comment.
19596 2014-06-05  Jaydeep Patil  <Jaydeep.Patil@imgtec.com>
19597             Prachi Godbole  <Prachi.Godbole@imgtec.com>
19599         * config/mips/mips-cpus.def: Add definition for p5600.  Updated
19600         mips32r5 entry to use PROCESSOR_P5600.
19601         * config/mips/mips-tables.opt: Regenerate.
19602         * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
19603         * config/mips/mips.c (mips_fmadd_bypass): New function.
19604         (mips_rtx_cost_data): Add costs for p5600.
19605         (mips_issue_rate): Add support for p5600.
19606         (mips_multipass_dfa_lookahead): Likewise.
19607         * config/mips/mips.h (TUNE_P5600): New define.
19608         (TUNE_MACC_CHAINS): Add TUNE_P5600.
19609         (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
19610         * config/mips/mips.md: Include p5600.md.
19611         (processor): Add p5600.
19612         * config/mips/p5600.md: New file.
19614 2014-06-05  Evgeny Stupachenko  <evstupac@gmail.com>
19616         * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
19617         * config/i386/predicates.md (palignr_operand): New.
19618         Indicates if permutation is suitable for palignr instruction.
19620 2014-06-05  Yuri Rumyantsev  <ysrumyan@gmail.com>
19622         PR tree-optimization/61319
19623         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
19624         stmt belongs to loop.
19626 2014-06-05  Richard Biener  <rguenther@suse.de>
19628         * gimplify.c (create_tmp_from_val): Remove is_formal parameter
19629         and set DECL_GIMPLE_REG_P unconditionally if appropriate.
19630         (lookup_tmp_var): Adjust.
19631         (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
19633 2014-06-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19635         * config/arm/arm.md (enabled): Disable opt_enabled attribute.
19637 2014-06-05  Marek Polacek  <polacek@redhat.com>
19639         PR c/49706
19640         * doc/invoke.texi: Document -Wlogical-not-parentheses.
19642 2014-06-04  Tom de Vries  <tom@codesourcery.com>
19644         * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
19645         CONST_INT.
19647 2014-06-04  Marc Glisse  <marc.glisse@inria.fr>
19649         PR tree-optimization/61385
19650         * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
19652 2014-06-04  Bernd Schmidt  <bernds@codesourcery.com>
19654         * lto-wrapper.c (fatal, fatal_perror): Remove functions.  All callers
19655         changed to use fatal_error.
19656         (main): Ensure lto_wrapper_cleanup is run atexit.
19658 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
19660         * lra-constraints.c (valid_address_p): Move earlier in file.
19661         (address_eliminator): New structure.
19662         (satisfies_memory_constraint_p): New function.
19663         (satisfies_address_constraint_p): Likewise.
19664         (process_alt_operands, process_address, curr_insn_transform): Use them.
19666 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
19668         * lra-int.h (lra_static_insn_data): Make operand_alternative a
19669         const pointer.
19670         (target_lra_int, default_target_lra_int, this_target_lra_int)
19671         (op_alt_data): Delete.
19672         * lra.h (lra_init): Delete.
19673         * lra.c (default_target_lra_int, this_target_lra_int): Delete.
19674         (init_insn_code_data_once): Remove op_alt_data handling.
19675         (finish_insn_code_data_once): Likewise.
19676         (init_op_alt_data): Delete.
19677         (get_static_insn_data): Initialize operand_alternative to null.
19678         (free_insn_recog_data): Cast operand_alternative before freeing it.
19679         (setup_operand_alternative): Take the operand_alternative as
19680         parameter and assume it isn't already cached in the static
19681         insn data.
19682         (lra_set_insn_recog_data): Update accordingly.
19683         (lra_init): Delete.
19684         * ira.c (ira_init): Don't call lra_init.
19685         * target-globals.h (this_target_lra_int): Declare.
19686         (target_globals): Remove lra_int.
19687         (restore_target_globals): Update accordingly.
19688         * target-globals.c: Don't include lra-int.h.
19689         (default_target_globals, save_target_globals): Remove lra_int.
19691 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
19693         * recog.h (operand_alternative): Convert reg_class, reject,
19694         matched and matches into bitfields.
19695         (preprocess_constraints): New overload.
19696         (preprocess_insn_constraints): New function.
19697         (preprocess_constraints): Take the insn as parameter.
19698         (recog_op_alt): Change into a pointer.
19699         (target_recog): Add x_op_alt.
19700         * recog.c (asm_op_alt): New variable.
19701         (recog_op_alt): Change into a pointer.
19702         (preprocess_constraints): New overload, replacing the old function
19703         definition with one that doesn't use global state.
19704         (preprocess_insn_constraints): New function.
19705         (preprocess_constraints): Use them.  Take the insn as parameter.
19706         Use asm_op_alt for asms.
19707         (recog_init): Free existing x_op_alt entries.
19708         * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
19709         pointer const.
19710         (make_early_clobber_and_input_conflicts): Likewise.
19711         (process_bb_node_lives): Pass the insn to process_constraints.
19712         * reg-stack.c (check_asm_stack_operands): Likewise.
19713         (subst_asm_stack_regs): Likewise.
19714         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
19715         * regrename.c (build_def_use): Likewise.
19716         * sched-deps.c (sched_analyze_insn): Likewise.
19717         * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
19718         * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
19719         (note_invalid_constants): Likewise.
19720         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
19721         (ix86_legitimate_combined_insn): Make operand_alternative pointer
19722         const.
19724 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
19726         * recog.c (preprocess_constraints): Don't skip disabled alternatives.
19727         * ira-lives.c (check_and_make_def_conflict): Check for disabled
19728         alternatives.
19729         (make_early_clobber_and_input_conflicts): Likewise.
19730         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
19732 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
19734         * recog.h (alternative_class): New function.
19735         (which_op_alt): Return a const recog_op_alt.
19736         * reg-stack.c (check_asm_stack_operands): Update type accordingly.
19737         (subst_asm_stack_regs): Likewise.
19738         * config/arm/arm.c (note_invalid_constants): Likewise.
19739         * regcprop.c (copyprop_hardreg_forward_1): Likewise.  Don't modify
19740         the operand_alternative; use alternative class instead.
19741         * sel-sched.c (get_reg_class): Likewise.
19742         * regrename.c (build_def_use): Likewise.
19743         (hide_operands, restore_operands, record_out_operands): Update type
19744         accordingly.
19746 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
19748         * recog.h (recog_op_alt): Convert to a flat array.
19749         (which_op_alt): New function.
19750         * recog.c (recog_op_alt): Convert to a flat array.
19751         (preprocess_constraints): Update accordingly, grouping all
19752         operands of the same alternative together, rather than the
19753         other way around.
19754         * ira-lives.c (check_and_make_def_conflict): Likewise.
19755         (make_early_clobber_and_input_conflicts): Likewise.
19756         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
19757         * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
19758         (subst_asm_stack_regs): Likewise.
19759         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
19760         * regrename.c (hide_operands, record_out_operands): Likewise.
19761         (build_def_use): Likewise.
19762         * sel-sched.c (get_reg_class): Likewise.
19763         * config/arm/arm.c (note_invalid_constants): Likewise.
19765 2014-06-04  Jason Merrill  <jason@redhat.com>
19767         PR c++/51253
19768         PR c++/61382
19769         * gimplify.c (gimplify_arg): Non-static.
19770         * gimplify.h: Declare it.
19772 2014-06-04  Richard Biener  <rguenther@suse.de>
19774         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
19775         TREE_PUBLIC and DECL_EXTERNAL decls.
19777 2014-06-04  Matthew Fortune  <matthew.fortune@imgtec.com>
19779         * regcprop.c (copyprop_hardreg_forward_1): Account for
19780         HARD_REGNO_CALL_PART_CLOBBERED.
19782 2014-06-04  Richard Biener  <rguenther@suse.de>
19784         * configure.ac: Check whether the underlying type of int64_t
19785         is long or long long.
19786         * configure: Regenerate.
19787         * config.in: Likewise.
19788         * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
19789         (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
19791 2014-06-04  Richard Biener  <rguenther@suse.de>
19793         PR tree-optimization/60098
19794         * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
19795         we hit a kill.
19796         (dse_optimize_stmt): Simplify, now that we found a kill
19797         earlier.
19799 2014-06-04  Richard Biener  <rguenther@suse.de>
19801         * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
19802         of accesses with non-invariant address.
19804 2014-06-04  Martin Liska  <mliska@suse.cz>
19806         * cgraph.h (cgraph_make_wrapper): New function introduced.
19807         * cgraphunit.c (cgraph_make_wrapper): The function implementation.
19808         * ipa-inline.h (inline_analyze_function): The function is global.
19809         * ipa-inline-analysis.c (inline_analyze_function): Likewise.
19811 2014-06-04  Martin Liska  <mliska@suse.cz>
19813         * tree.h (private_lookup_attribute_starting): New function.
19814         (lookup_attribute_starting): Likewise.
19815         * tree.c (private_lookup_attribute_starting): Likewise.
19817 2014-06-04  Martin Liska  <mliska@suse.cz>
19819         * cgraph.h (expand_thunk): New argument added.
19820         (address_taken_from_non_vtable_p): New global function.
19821         * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
19822         * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
19823         * cgraphunit.c (analyze_function): Likewise.
19824         (assemble_thunks_and_aliases): Argument added to call.
19825         (expand_thunk): New argument forces to produce GIMPLE thunk.
19827 2014-06-04  Martin Liska  <mliska@suse.cz>
19829         * coverage.h (coverage_compute_cfg_checksum): Argument added.
19830         * coverage.c (coverage_compute_cfg_checksum): Likewise.
19831         * profile.c (branch_prob): Likewise.
19833 2014-06-04  Martin Jambor  <mjambor@suse.cz>
19835         PR ipa/61340
19836         * ipa-pure-const.c (propagate_pure_const): Add unreachable default
19837         handler for switch on an ipa_ref_use enum.
19838         * ipa-reference.c (analyze_function): Likewise.
19840 2014-06-04  Kai Tietz  <ktietz@redhat.com>
19842         * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
19843         from old call-instruction.
19845 2014-06-04  Bin Cheng  <bin.cheng@arm.com>
19847         * config/aarch64/aarch64.c (aarch64_classify_address)
19848         (aarch64_legitimize_reload_address): Support full addressing modes
19849         for vector modes.
19850         * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
19851         (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
19853 2014-06-03  Andrew Pinski  <apinski@cavium.com>
19855         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
19856         for OP0.
19858 2014-06-03  Andrew Pinski  <apinski@cavium.com>
19860         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
19861         (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
19863 2014-06-03  Kai Tietz  <ktietz@redhat.com>
19865         * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
19866         for 64-bit ms-abi.
19868 2014-06-03  Dehao Chen  <dehao@google.com>
19870         * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
19871         the same loop.
19873 2014-06-03  Marek Polacek  <polacek@redhat.com>
19875         PR c/60439
19876         * doc/invoke.texi: Document -Wswitch-bool.
19877         * function.c (stack_protect_epilogue): Cast controlling expression of
19878         the switch to int.
19879         * gengtype.c (walk_type): Generate switch expression with its
19880         controlling expression cast to int.
19882 2014-06-03  Vishnu K S  <Vishnu.k_s@atmel.com>
19884         * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
19885         and attiny841.
19886         * config/avr/avr-tables.opt: Regenerate.
19887         * config/avr/t-multilib: Regenerate.
19888         * doc/avr-mmcu.texi: Regenerate.
19890 2014-06-03  Vishnu K S  <vishnu.k_s@atmel.com>
19891             Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
19893         * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
19894         (ata6617c, ata664251): Add new avr35 devices.
19895         (ata6612c): Add new avr4 device.
19896         (ata6613c, ata6614q): Add new avr5 devices.
19897         * config/avr/avr-tables.opt: Regenerate.
19898         * config/avr/t-multilib: Regenerate.
19899         * doc/avr-mmcu.texi: Regenerate.
19901 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
19903         * gcc/config/aarch64/aarch64-builtins.c
19904         (aarch64_types_binop_ssu_qualifiers): New static data.
19905         (TYPES_BINOP_SSU): Define.
19906         * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
19907         urshr_n, ushll_n): Use appropriate unsigned qualifiers.
19908         * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
19909         vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
19910         vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
19911         vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
19912         vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
19913         vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
19914         vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
19915         suffix to builtin function name, remove cast.
19916         (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
19917         vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
19918         vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
19920 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
19922         * gcc/config/aarch64/aarch64-builtins.c
19923         (aarch64_types_binop_uus_qualifiers,
19924         aarch64_types_shift_to_unsigned_qualifiers,
19925         aarch64_types_unsigned_shiftacc_qualifiers): Define.
19926         * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
19927         uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
19928         sqshlu_n, uqshl_n): Update qualifiers.
19929         * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
19930         vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
19931         vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
19932         vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
19933         vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
19934         vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
19935         vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
19936         vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
19937         vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
19938         vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
19939         vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
19940         vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
19941         vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
19942         vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
19943         vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
19944         vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
19945         vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
19946         vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
19947         vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
19948         vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
19949         vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
19950         vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
19951         vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
19952         vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
19953         vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
19954         vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
19955         vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
19957 2014-06-03  Teresa Johnson  <tejohnson@google.com>
19959         * tree-sra.c (modify_function): Record caller nodes after rebuild.
19961 2014-06-02  Jason Merrill  <jason@redhat.com>
19963         PR c++/61020
19964         * varpool.c (ctor_for_folding): Handle uninitialized vtables.
19966 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
19968         * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
19969         location == 0.
19971 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
19973         * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
19974         New pattern.
19975         * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
19976         (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
19977         * config/aarch64/iterators.md (REVERSE): New iterator.
19978         (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
19979         (rev_op): New int_attribute.
19980         * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
19981         vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
19982         vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
19983         vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
19984         vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
19985         vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
19986         vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
19987         Replace temporary __asm__ with __builtin_shuffle.
19989 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
19991         * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
19992         mips64r5.
19993         * config/mips/mips-tables.opt: Regenerate.
19994         * config/mips/mips.c (mips_compute_frame_info): Changed if statement
19995         to use mips_isa_rev rather than ISA_MIPS32R2.
19996         * config/mips/mips.h (ISA_MIPS32R3): New define.
19997         (ISA_MIPS32R5): New define.
19998         (ISA_MIPS64R3): New define.
19999         (ISA_MIPS64R5): New define.
20000         (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
20001         ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
20002         (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
20003         and mips64r5.
20004         (MIPS_ISA_SYNCI_SPEC): Likewise.
20005         (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
20006         (LINK_SPEC): Added mips32r3 and mips32r5.
20007         * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
20008         to mips32r2; and mips64r3 and mips64r5 to mips64r2.
20009         * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
20010         * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
20011         * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
20012         * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
20013         * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
20015 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
20017         * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
20018         options.
20019         * config/mips/mips.opt (mxpa): New option.
20020         * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
20021         assembler.
20023 2014-06-03  Martin Jambor  <mjambor@suse.cz>
20025         PR ipa/61160
20026         * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
20027         thunks.
20029 2014-06-03  Thomas Preud'homme  <thomas.preudhomme@arm.com>
20031         PR tree-optimization/61328
20032         * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
20033         initialization from find_bswap_or_nop_1.
20034         (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
20035         in source_expr2 before using the size value the function sets. Also
20036         make use of init_symbolic_number () in both the old place and
20037         find_bswap_or_nop_load () to avoid reading uninitialized memory when
20038         doing recursion in the GIMPLE_BINARY_RHS case.
20040 2014-06-03  Richard Biener  <rguenther@suse.de>
20042         PR tree-optimization/61383
20043         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
20044         stmts can't trap.
20046 2014-06-03  Richard Sandiford  <rdsandiford@googlemail.com>
20048         * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
20049         (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
20050         (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
20051         (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
20052         in this file.
20053         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
20054         (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
20055         * system.h: ...here and make it unconditional.
20056         * target.def (conditional_register_usage): Mention
20057         define_register_constraint instead of old-style constraint macros.
20058         * doc/tm.texi.in: Remove documentation for old-style constraint macros.
20059         * doc/tm.texi: Regenerate.
20060         * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
20061         protected by !USE_MD_CONSTRAINTS.
20062         * config/frv/frv.md: Remove quote from old version of documentation.
20063         * config/frv/frv.c (frv_conditional_register_usage): Likewise.
20064         * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
20065         CONST_DOUBLE_OK_FOR_LETTER.
20066         * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
20068 2014-06-02  Andrew Pinski  <apinski@cavium.com>
20070         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
20071         /lib/ld-linux32-aarch64.so.1 is used for ILP32.
20072         (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
20073         file whose name depends on -mabi= and -mbig-endian.
20074         * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
20075         Handle LP64 better and handle ilp32 too.
20076         (MULTILIB_OPTIONS): Delete.
20077         (MULTILIB_DIRNAMES): Delete.
20079 2014-06-02  Andrew MacLeod  <amacleod@redhat.com>
20081         * expr.h: Remove prototypes of functions defined in builtins.c.
20082         * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
20083         Remove prototypes of functions defined in builtins.c.
20084         * builtins.h: Update prototype list to include all exported functions.
20085         * builtins.c: (default_libc_has_function, gnu_libc_has_function,
20086         no_c99_libc_has_function): Move to targhooks.c
20087         (build_string_literal, build_call_expr_loc_array,
20088         build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
20089         to tree.c.
20090         (expand_builtin_object_size, fold_builtin_object_size): Make static.
20091         * targhooks.c (default_libc_has_function, gnu_libc_has_function,
20092         no_c99_libc_has_function): Relocate from builtins.c.
20093         * tree.c: Include builtins.h.
20094         (build_call_expr_loc_array, build_call_expr_loc_vec,
20095         build_call_expr_loc, build_call_expr, build_string_literal): Relocate
20096         from builtins.c.
20097         * fold-const.h (fold_fma): Move prototype to builtins.h.
20098         * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
20099         * asan.c: Include builtins.h.
20100         * cfgexpand.c: Likewise.
20101         * convert.c: Likewise.
20102         * emit-rtl.c: Likewise.
20103         * except.c: Likewise.
20104         * expr.c: Likewise.
20105         * fold-const.c: Likewise.
20106         * gimple-fold.c: Likewise.
20107         * gimple-ssa-strength-reduction.c: Likewise.
20108         * gimplify.c: Likewise.
20109         * ipa-inline.c: Likewise.
20110         * ipa-prop.c: Likewise.
20111         * lto-streamer-out.c: Likewise.
20112         * stmt.c: Likewise.
20113         * tree-inline.c: Likewise.
20114         * tree-object-size.c: Likewise.
20115         * tree-sra.c: Likewise.
20116         * tree-ssa-ccp.c: Likewise.
20117         * tree-ssa-forwprop.c: Likewise.
20118         * tree-ssa-loop-ivcanon.c: Likewise.
20119         * tree-ssa-loop-ivopts.c: Likewise.
20120         * tree-ssa-math-opts.c: Likewise.
20121         * tree-ssa-reassoc.c: Likewise.
20122         * tree-ssa-threadedge.c: Likewise.
20123         * tree-streamer-in.c: Likewise.
20124         * tree-vect-data-refs.c: Likewise.
20125         * tree-vect-patterns.c: Likewise.
20126         * tree-vect-stmts.c: Likewise.
20127         * config/aarch64/aarch64.c: Likewise.
20128         * config/alpha/alpha.c: Likewise.
20129         * config/arc/arc.c: Likewise.
20130         * config/arm/arm.c: Likewise.
20131         * config/avr/avr.c: Likewise.
20132         * config/bfin/bfin.c: Likewise.
20133         * config/c6x/c6x.c: Likewise.
20134         * config/cr16/cr16.c: Likewise.
20135         * config/cris/cris.c: Likewise.
20136         * config/epiphany/epiphany.c: Likewise.
20137         * config/fr30/fr30.c: Likewise.
20138         * config/frv/frv.c: Likewise.
20139         * config/h8300/h8300.c: Likewise.
20140         * config/i386/i386.c: Likewise.
20141         * config/i386/winnt.c: Likewise.
20142         * config/ia64/ia64.c: Likewise.
20143         * config/iq2000/iq2000.c: Likewise.
20144         * config/lm32/lm32.c: Likewise.
20145         * config/m32c/m32c.c: Likewise.
20146         * config/m32r/m32r.c: Likewise.
20147         * config/m68k/m68k.c: Likewise.
20148         * config/mcore/mcore.c: Likewise.
20149         * config/mep/mep.c: Likewise.
20150         * config/microblaze/microblaze.c: Likewise.
20151         * config/mips/mips.c: Likewise.
20152         * config/mmix/mmix.c: Likewise.
20153         * config/mn10300/mn10300.c: Likewise.
20154         * config/moxie/moxie.c: Likewise.
20155         * config/msp430/msp430.c: Likewise.
20156         * config/nds32/nds32.c: Likewise.
20157         * config/pa/pa.c: Likewise.
20158         * config/pdp11/pdp11.c: Likewise.
20159         * config/picochip/picochip.c: Likewise.
20160         * config/rl78/rl78.c: Likewise.
20161         * config/rs6000/rs6000.c: Likewise.
20162         * config/rx/rx.c: Likewise.
20163         * config/s390/s390.c: Likewise.
20164         * config/score/score.c: Likewise.
20165         * config/sh/sh.c: Likewise.
20166         * config/sparc/sparc.c: Likewise.
20167         * config/spu/spu.c: Likewise.
20168         * config/stormy16/stormy16.c: Likewise.
20169         * config/tilegx/tilegx.c: Likewise.
20170         * config/tilepro/tilepro.c: Likewise.
20171         * config/v850/v850.c: Likewise.
20172         * config/vax/vax.c: Likewise.
20173         * config/xtensa/xtensa.c: Likewise.
20175 2014-06-02  Jeff Law  <law@redhat.com>
20177         PR rtl-optimization/61094
20178         * ree.c (combine_reaching_defs): Do not reextend an insn if it
20179         was marked as do_no_reextend.  If a copy is needed to eliminate
20180         an extension, then mark it as do_not_reextend.
20182 2014-06-02  Marcus Shawcroft  <marcus.shawcroft@arm.com>
20184         * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
20186 2014-06-02  Richard Henderson  <rth@redhat.com>
20188         PR target/61336
20189         * config/alpha/alpha.c (print_operand_address): Allow symbolic
20190         addresses inside asms.  Use output_operand_lossage instead of
20191         gcc_unreachable.
20193 2014-06-02  Uros Bizjak  <ubizjak@gmail.com>
20195         PR target/61239
20196         * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
20197         GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
20199 2014-06-02  Tom de Vries  <tom@codesourcery.com>
20201         * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
20202         case that x has VOIDmode.
20204 2014-06-02  Bernd Schmidt  <bernds@codesourcery.com>
20206         * varasm.c (copy_constant): Delete function.
20207         (build_constant_desc): Don't call it.
20209 2014-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20211         PR target/61154
20212         * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
20213         * config/arm/arm.md (mov64 splitter): Replace const_double_operand
20214         with immediate_operand.
20216 2014-06-02  Andreas Schwab  <schwab@suse.de>
20218         * config/ia64/ia64.c
20219         (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
20220         pending_data_specs first.
20222 2014-06-02  Richard Biener  <rguenther@suse.de>
20224         PR tree-optimization/61378
20225         * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
20226         valueized_anything.
20228 2014-06-01  Uros Bizjak  <ubizjak@gmail.com>
20230         * config/i386/constraints.md (Bw): Rename from 'w'.
20231         (Bz): Rename from 'z'.
20232         * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
20234 2014-06-01  Kai Tietz  <ktietz@redhat.com>
20236         PR target/61377
20237         * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
20238         * config/i386/i386.md (sibcall_insn_operand): Use Bs
20239         instead of m constraint.
20241 2014-05-31  Andreas Schwab  <schwab@linux-m68k.org>
20243         * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
20244         a separate alternative where the scratch operand 2 is marked as
20245         early clobber.
20247 2014-05-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
20249         * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
20250         (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
20251         (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
20252         and __builtins_arm_get_fpscr.
20253         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
20254         __builtins_arm_get_fpscr.
20255         (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
20256         __builtins_arm_ldfpscr.
20257         (arm_atomic_assign_expand_fenv): New function.
20258         * config/arm/vfp.md (set_fpscr): New pattern.
20259         (get_fpscr) : Likewise.
20260         * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
20261         VUNSPEC_SET_FPSCR.
20262         * doc/extend.texi (AARCH64 Built-in Functions) : Document
20263         __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
20265 2014-05-30  Jakub Jelinek  <jakub@redhat.com>
20267         * asan.c (report_error_func): Add SLOW_P argument, use
20268         BUILT_IN_ASAN_*_N if set.
20269         (build_check_stmt): Likewise.
20270         (instrument_derefs): If T has insufficient alignment,
20271         force same handling as for odd sizes.
20273         * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
20274         BUILT_IN_ASAN_REPORT_STORE_N): New.
20275         * asan.c (struct asan_mem_ref): Change access_size type to
20276         HOST_WIDE_INT.
20277         (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
20278         update_mem_ref_hash_table): Likewise.
20279         (asan_mem_ref_hasher::hash): Hash in a HWI.
20280         (report_error_func): Change size_in_bytes argument to HWI.
20281         Use *_N builtins if size_in_bytes is larger than 16 or not power of
20282         two.
20283         (build_shadow_mem_access): New function.
20284         (build_check_stmt): Use it.  Change size_in_bytes argument to HWI.
20285         Handle size_in_bytes not power of two or larger than 16.
20286         (instrument_derefs): Don't give up if size_in_bytes is not
20287         power of two or is larger than 16.
20289 2014-05-30  Kai Tietz  <ktietz@redhat.com>
20291         PR target/60104
20292         * config/i386/i386.c (x86_output_mi_thunk): Add memory case
20293         for sibling-tail-calls.
20294         * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
20295         to its use.
20296         * config/i386/predicates.md (sibcall_memory_operand): New predicate.
20297         (sibcall_insn_operand): Add check for sibcall_memory_operand.
20299 2014-05-30  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
20301         * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
20302         * config/avr/avr-tables.opt: Regenerate.
20303         * config/avr/t-multilib: Regenerate.
20304         * doc/avr-mmcu.texi: Regenerate.
20306 2014-05-30  Ian Lance Taylor  <iant@google.com>
20308         * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
20309         target("sse").
20311 2014-05-30  Tom de Vries  <tom@codesourcery.com>
20313         * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
20314         Redefine as true.
20316 2014-05-30  Tom de Vries  <tom@codesourcery.com>
20318         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
20319         * lra.c (initialize_lra_reg_info_element): Add init of
20320         actual_call_used_reg_set field.
20321         (lra): Call lra_create_live_ranges before lra_inheritance for
20322         -fuse-caller-save.
20323         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
20324         -fuse-caller-save.
20325         * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
20326         instead of call_used_reg_set for -fuse-caller-save.
20327         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
20329 2014-05-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20331         * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
20332         to mov_imm.
20333         * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
20335 2014-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
20337         * ira.c (ira_get_dup_out_num): Check for output operands at
20338         the start of the loop.  Handle cases where an included alternative
20339         follows an excluded one.
20341 2014-05-29  Mike Stump  <mikestump@comcast.net>
20343         PR debug/61352
20344         * collect2.c (maybe_run_lto_and_relink): Be sure to always run
20345         post ld passes when lto is used.
20347 2014-05-29  Vladimir Makarov  <vmakarov@redhat.com>
20349         PR rtl-optimization/61325
20350         * lra-constraints.c (process_address): Rename to process_address_1.
20351         (process_address): New function.
20353 2014-05-29  Alan Lawrence  <alan.lawrence@arm.com>
20355         * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
20356         TYPES_BINOPV): New static data.
20357         * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
20358         New builtin.
20359         * config/aarch64/aarch64-simd.md (aarch64_ext,
20360         aarch64_im_lane_boundsi): New patterns.
20361         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
20362         patterns for EXT.
20363         (aarch64_evpc_ext): New function.
20365         * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
20367         * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
20368         vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
20369         vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
20370         vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
20371         vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
20373 2014-05-29  Tom de Vries  <tom@codesourcery.com>
20375         * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
20377 2014-05-29  Richard Earnshaw <rearnsha@arm.com>
20378             Richard Sandiford  <rdsandiford@googlemail.com>
20380         * arm/iterators.md (shiftable_ops): New code iterator.
20381         (t2_binop0, arith_shift_insn): New code attributes.
20382         * arm/predicates.md (shift_nomul_operator): New predicate.
20383         * arm/arm.md (insn_enabled): Delete.
20384         (enabled): Remove insn_enabled test.
20385         (*arith_shiftsi): Delete.  Replace with ...
20386         (*<arith_shift_insn>_multsi): ... new pattern.
20387         (*<arith_shift_insn>_shiftsi): ... new pattern.
20388         * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
20390 2014-05-29  Radovan Obradovic  <robradovic@mips.com>
20391             Tom de Vries  <tom@codesourcery.com>
20393         * config/mips/mips.h (POST_CALL_TMP_REG): Define.
20394         * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
20395         clobber.
20396         (mips_split_call): Use POST_CALL_TMP_REG.
20397         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
20399 2014-05-29  Tom de Vries  <tom@codesourcery.com>
20401         * final.c (collect_fn_hard_reg_usage): Guard variable declaration
20402         with #ifdef STACK_REGS.
20404 2014-05-28  Jan Hubicka  <hubicka@ucw.cz>
20406         * varasm.c (get_variable_section): Walk aliases.
20407         (place_block_symbol): Walk aliases.
20409 2014-05-28  Tom de Vries  <tom@codesourcery.com>
20411         Revert:
20412         2014-05-28  Tom de Vries  <tom@codesourcery.com>
20414         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
20415         * lra.c (initialize_lra_reg_info_element): Add init of
20416         actual_call_used_reg_set field.
20417         (lra): Call lra_create_live_ranges before lra_inheritance for
20418         -fuse-caller-save.
20419         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
20420         -fuse-caller-save.
20421         * lra-constraints.c (need_for_call_save_p): Use
20422         actual_call_used_reg_set instead of call_used_reg_set for
20423         -fuse-caller-save.
20424         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
20426 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
20428         * doc/md.texi: Document that the % constraint character must
20429         be at the beginning of the string.
20430         * genoutput.c (validate_insn_alternatives): Check that '=',
20431         '+' and '%' only appear at the beginning of a constraint.
20432         * ira.c (commutative_constraint_p): Delete.
20433         (ira_get_dup_out_num): Expect the '%' commutativity marker to be
20434         at the start of the string.
20435         * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
20436         duplicate '='s.
20437         * config/arm/neon.md (bicdi3_neon): Likewise.
20438         * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
20439         (slt_si, sltu_si): Likewise.
20440         * config/vax/vax.md (sbcdi3): Likewise.
20441         * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
20442         * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
20443         (mul64): Move '%' to beginning of constraint.
20444         * config/arm/arm.md (*xordi3_insn): Likewise.
20445         * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
20446         (xorsi3): Likewise.
20448 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
20450         * doc/md.texi: Document the restrictions on the "enabled" attribute.
20452 2014-05-28  Jason Merrill  <jason@redhat.com>
20454         PR c++/47202
20455         * cgraph.h (symtab_node::get_comdat_group_id): New.
20456         * cgraphunit.c (analyze_functions): Call it.
20457         * symtab.c (dump_symtab_node): Likewise.
20458         * tree.c (decl_comdat_group_id): New.
20459         * tree.h: Declare it.
20460         * lto-streamer-out.c (write_symbol): Use it.
20461         * trans-mem.c (ipa_tm_create_version_alias): Likewise.
20463 2014-05-28  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
20465         PR bootstrap/PR61146
20466         * wide-int.cc: Do not include longlong.h when compiling with clang.
20468 2014-05-28  Richard Biener  <rguenther@suse.de>
20470         * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
20471         * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
20472         (vrp_visit_assignment_or_call): Print less vertical space.
20473         (vrp_visit_stmt): Likewise.
20474         (vrp_visit_phi_node): Likewise.  For a PHI argument with
20475         VR_VARYING range consider recording it as copy.
20477 2014-05-28  Richard Biener  <rguenther@suse.de>
20479         Revert
20480         2014-05-28  Richard Biener  <rguenther@suse.de>
20482         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
20484 2014-05-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
20486         * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
20487         sufficiently aligned and an offset is used at the same time.
20488         (expand_expr_real_1): Likewise.
20490 2014-05-28  Richard Biener  <rguenther@suse.de>
20492         PR middle-end/61045
20493         * fold-const.c (fold_comparison): When folding
20494         X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
20495         the sign of the remaining constant operand stays the same.
20497 2014-05-28  Kaushik Phatak  <kaushik.phatak@kpit.com>
20499         * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
20500         __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
20501         (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
20502         to the assembler.
20503         (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
20504         * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
20505         (m32bit-doubles) Likewise.
20506         * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
20507         * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
20508         option for RL78.
20510 2014-05-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20512         * configure.ac ($gcc_cv_ld_clearcap): New test.
20513         * configure: Regenerate.
20514         * config.in: Regenerate.
20515         * config/sol2.opt (mclear-hwcap): New option.
20516         * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
20517         * config/sol2-clearcap.map: Moved here from
20518         testsuite/gcc.target/i386/clearcap.map.
20519         * config/sol2-clearcapv2.map: Move here from
20520         gcc.target/i386/clearcapv2.map.
20521         * config/t-sol2 (install): Depend on install-clearcap-map.
20522         (install-clearcap-map): New target.
20523         * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
20524         -mclear-hwcap.
20526 2014-05-28  Richard Biener  <rguenther@suse.de>
20528         * hwint.h (*_HALF_WIDE_INT*): Move to ...
20529         * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
20530         ... here and remove the rest.
20531         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
20533 2014-05-28  Richard Biener  <rguenther@suse.de>
20535         PR tree-optimization/61335
20536         * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
20537         new range fails, drop to varying.
20539 2014-05-28  Olivier Hainque  <hainque@adacore.com>
20541         * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
20542         (CPP_SPEC): Add entry for -mcpu=8548.
20543         * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
20544         * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
20546 2014-05-28  Tom de Vries  <tom@codesourcery.com>
20548         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
20549         * lra.c (initialize_lra_reg_info_element): Add init of
20550         actual_call_used_reg_set field.
20551         (lra): Call lra_create_live_ranges before lra_inheritance for
20552         -fuse-caller-save.
20553         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
20554         -fuse-caller-save.
20555         * lra-constraints.c (need_for_call_save_p): Use
20556         actual_call_used_reg_set instead of call_used_reg_set for
20557         -fuse-caller-save.
20558         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
20560 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
20561             Tom de Vries  <tom@codesourcery.com>
20563         * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
20564         to gccoptlist.
20565         (@item -fuse-caller-save): New item.
20567 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
20568             Tom de Vries  <tom@codesourcery.com>
20570         * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
20571         OPT_fuse_caller_save.
20573 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
20574             Tom de Vries  <tom@codesourcery.com>
20576         * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
20577         * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
20578         get_call_reg_set_usage.
20579         * resource.c (mark_set_resources, mark_target_live_regs): Use
20580         get_call_reg_set_usage.
20581         * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
20582         field.
20583         (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
20584         * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
20585         Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
20586         * ira-build.c (ira_create_allocno): Init
20587         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
20588         (create_cap_allocno, propagate_allocno_info)
20589         (propagate_some_info_from_allocno)
20590         (copy_info_to_removed_store_destinations): Handle
20591         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
20592         * ira-costs.c (ira_tune_allocno_costs): Use
20593         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
20595 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
20596             Tom de Vries  <tom@codesourcery.com>
20598         * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
20599         and function_used_regs_valid fields.
20600         * final.c: Move include of hard-reg-set.h to before rtl.h to declare
20601         find_all_hard_reg_sets.
20602         (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
20603         (get_call_reg_set_usage): New function.
20604         (rest_of_handle_final): Use collect_fn_hard_reg_usage.
20605         * regs.h (get_call_reg_set_usage): Declare.
20607 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
20609         PR libgcc/61152
20610         * config/dbx.h (License): Add Runtime Library Exception.
20611         * config/newlib-stdint.h (License): Same.
20612         * config/rtems.h (License): Same
20613         * config/initfini-array.h (License): Same
20614         * config/v850/v850.h (License): Same.
20615         * config/v850/v850-opts.h (License): Same
20616         * config/v850/rtems.h (License): Same.
20618 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
20620         PR target/61044
20621         * doc/extend.texi (Local Labels): Note that label differences are
20622         not supported for AVR.
20624 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
20625             Olivier Hainque  <hainque@adacore.com>
20627         * rtl.h (set_for_reg_notes): Declare.
20628         * emit-rtl.c (set_for_reg_notes): New function.
20629         (set_unique_reg_note): Use it.
20630         * optabs.c (add_equal_note): Likewise
20632 2014-05-27  Andrew Pinski  <apinski@cavium.com>
20634         * config/aarch64/aarch64.md (stack_protect_set_<mode>):
20635         Use <w> for the register in assembly template.
20636         (stack_protect_test): Use the mode of operands[0] for the result.
20637         (stack_protect_test_<mode>): Use <w> for the register
20638         in assembly template.
20640 2014-05-27  DJ Delorie  <dj@redhat.com>
20642         * config/rx/rx.c (add_vector_labels): New.
20643         (rx_output_function_prologue): Call it.
20644         (rx_handle_func_attribute): Don't require empty arguments.
20645         (rx_handle_vector_attribute): New.
20646         (rx_attribute_table): Add "vector" attribute.
20647         * doc/extend.texi (interrupt, vector): Document new/changed
20648         RX-specific attributes.
20650         * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
20652 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
20654         * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
20655         predicate to detect a negative quotient.
20657 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
20659         * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
20660         to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
20661         Add X - Y CMP 0 to X CMP Y transformation.
20662         (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
20664 2014-05-27  Segher Boessenkool  <segher@kernel.crashing.org>
20666         * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
20667         before printing.
20669 2014-05-27  Steve Ellcey  <sellcey@mips.com>
20671         * config/mips/mips.c: Add include of cgraph.h.
20673 2014-05-27  Richard Biener  <rguenther@suse.de>
20675         * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
20677 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
20679         PR libgcc/61152
20680         * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
20681         * config/arm/arm-cores.def (License): Same.
20682         * config/arm/arm-opts.h (License): Same.
20683         * config/arm/aout.h (License): Same.
20684         * config/arm/bpabi.h (License): Same.
20685         * config/arm/elf.h (License): Same.
20686         * config/arm/linux-elf.h (License): Same.
20687         * config/arm/linux-gas.h (License): Same.
20688         * config/arm/netbsd-elf.h (License): Same.
20689         * config/arm/uclinux-eabi.h (License): Same.
20690         * config/arm/uclinux-elf.h (License): Same.
20691         * config/arm/vxworks.h (License): Same.
20693 2014-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20695         * config/arm/neon.md (neon_bswap<mode>): New pattern.
20696         * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
20697         (arm_init_neon_builtins): Handle NEON_BSWAP.
20698         Define required type nodes.
20699         (arm_expand_neon_builtin): Handle NEON_BSWAP.
20700         (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
20701         * config/arm/arm_neon_builtins.def (bswap): Define builtins.
20702         * config/arm/iterators.md (VDQHSD): New mode iterator.
20704 2014-05-27  Richard Biener  <rguenther@suse.de>
20706         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
20707         Try using literal operands when comparing value-ranges failed.
20709 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
20711         * ira.c (commutative_operand): Adjust for change to recog_data.
20712         [Missing from previous commit.]
20714 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
20716         * system.h (TEST_BIT): New macro.
20717         * recog.h (alternative_mask): New type.
20718         (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
20719         (recog_data_d): Replace alternative_enabled_p array with
20720         enabled_alternatives.
20721         (target_recog): New structure.
20722         (default_target_recog, this_target_recog): Declare.
20723         (get_enabled_alternatives, recog_init): Likewise.
20724         * recog.c (default_target_recog, this_target_recog): New variables.
20725         (get_enabled_alternatives): New function.
20726         (extract_insn): Use it.
20727         (recog_init): New function.
20728         (preprocess_constraints, constrain_operands): Adjust for change to
20729         recog_data.
20730         * postreload.c (reload_cse_simplify_operands): Likewise.
20731         * reload.c (find_reloads): Likewise.
20732         * ira-costs.c (record_reg_classes): Likewise.
20733         * ira-lives.c (single_reg_class): Likewise.  Fix bug in which
20734         all alternatives after a disabled one would be skipped.
20735         (ira_implicitly_set_insn_hard_regs): Likewise.
20736         * ira.c (ira_setup_alts): Adjust for change to recog_data.
20737         * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
20738         with enabled_alternatives.
20739         * lra.c (free_insn_recog_data): Update accordingly.
20740         (lra_update_insn_recog_data): Likewise.
20741         (lra_set_insn_recog_data): Likewise.  Use get_enabled_alternatives.
20742         * lra-constraints.c (process_alt_operands): Likewise.  Handle
20743         only_alternative as part of the enabled mask.
20744         * target-globals.h (this_target_recog): Declare.
20745         (target_globals): Add a recog field.
20746         (restore_target_globals): Restore this_target_recog.
20747         * target-globals.c: Include recog.h.
20748         (default_target_globals): Initialize recog field.
20749         (save_target_globals): Likewise.
20750         * reginfo.c (reinit_regs): Call recog_init.
20751         * toplev.c (backend_init_target): Likewise.
20753 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
20755         * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
20756         rather than any named insn's code.
20758 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
20760         PR libgcc/61152
20761         * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
20762         * config/arm/arm-cores.def (License): Same.
20764 2014-05-26  Jan Hubicka  <hubicka@ucw.cz>
20766         * tree.h (decl_comdat_group): Declare.
20767         * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
20768         * tree.c (decl_comdat_group): Here.
20770 2014-05-26  Richard Sandiford  <r.sandiford@uk.ibm.com>
20772         PR rtl-optimization/61222
20773         * combine.c (simplify_shift_const_1): When moving a PLUS outside
20774         the shift, truncate the PLUS operand to the result mode.
20776 2014-05-26  Uros Bizjak  <ubizjak@gmail.com>
20778         PR target/61271
20779         * config/i386/i386.c (ix86_rtx_costs)
20780         <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
20781         Fix condition.
20783 2014-05-26  Martin Jambor  <mjambor@suse.cz>
20785         * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
20786         subreg uses.
20788 2014-05-26  Richard Biener  <rguenther@suse.de>
20790         * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
20791         wi::int_traits <long long>, wi::int_traits <unsigned long long>):
20792         Provide specializations.
20793         (wi::int_traits <HOST_WIDE_INT>,
20794         wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
20796 2014-05-26  Alan Modra  <amodra@gmail.com>
20798         PR target/61098
20799         * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
20800         params and return a bool.  Remove dead code.  Update comment.
20801         Assert we have a const_int source.  Remove bogus code from
20802         32-bit HWI days.  Move !TARGET_POWERPC64 handling, and correct
20803         handling of constants > 2G and reg_equal note, from..
20804         (rs6000_emit_set_long_const): ..here.  Remove unneeded param and
20805         return value.  Update comment.  If we can, use a new pseudo
20806         for intermediate calculations.
20807         * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
20808         prototype.
20809         * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
20810         call to rs6000_emit_set_const in splitter.
20811         (movdi_internal64+2, +3): Likewise.
20813 2014-05-26  Richard Biener  <rguenther@suse.de>
20815         * system.h: Define __STDC_FORMAT_MACROS before
20816         including inttypes.h.
20817         * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
20818         HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
20819         HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
20820         HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
20821         HOST_WIDEST_INT_C): Remove.
20822         (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
20823         if C99 inttypes.h is not available.
20824         * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
20825         * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
20826         * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
20827         * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
20828         * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
20829         (struct output_info): Likewise.
20830         (print_statistics): Adjust.
20831         (dump_bitmap_statistics): Likewise.
20832         * bt-load.c (migrate_btr_defs): Print with PRId64.
20833         * cfg.c (dump_edge_info, dump_bb_info): Likewise.
20834         (MAX_SAFE_MULTIPLIER): Adjust.
20835         * cfghooks.c (dump_bb_for_graph): Print with PRId64.
20836         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
20837         dump_cgraph_node): Likewise.
20838         * final.c (dump_basic_block_info): Likewise.
20839         * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
20840         * gcov.c (format_gcov): Likewise.
20841         * ipa-cp.c (good_cloning_opportunity_p): Likewise.  Use int64_t
20842         for calculation.
20843         (get_clone_agg_value): Use HOST_WIDE_INT for offset.
20844         * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
20845         (inline_small_functions, dump_overall_stats, dump_inline_stats):
20846         Use PRId64 for dumping.
20847         * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
20848         * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
20849         (add_allocno_hard_regs): Adjust.
20850         * loop-doloop.c (doloop_modify): Print using PRId64.
20851         * loop-iv.c (inverse): Compute in uint64_t.
20852         (determine_max_iter, iv_number_of_iterations): Likewise.
20853         * loop-unroll.c (decide_peel_completely, decide_peel_simple):
20854         Print using PRId64.
20855         * lto-streamer-out.c (write_symbol): Use uint64_t.
20856         * mcf.c (CAP_INFINITY): Use int64_t maximum.
20857         (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
20858         find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
20859         * modulo-sched.c (const_iteration_count): Use int64_t.
20860         (sms_schedule): Dump using PRId64.
20861         * predict.c (dump_prediction): Likewise.
20862         * pretty-print.h (pp_widest_integer): Remove.
20863         * profile.c (get_working_sets, is_edge_inconsistent,
20864         is_inconsistent, read_profile_edge_counts): Dump using PRId64.
20865         * tree-pretty-print.c (pp_double_int): Remove case handling
20866         HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
20867         * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
20868         and adjust users.
20869         (pass_optimize_bswap::execute): Remove restriction on hosts.
20870         * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
20871         * tree-streamer-out.c (streamer_write_tree_header): Likewise.
20872         * tree.c (widest_int_cst_value): Remove.
20873         * tree.h (widest_int_cst_value): Likewise.
20874         * value-prof.c (dump_histogram_value): Print using PRId64.
20875         * gengtype.c (main): Also inject int64_t.
20876         * ggc-page.c (struct max_alignment): Use int64_t.
20877         * alloc-pool.c (struct allocation_object_def): Likewise.
20878         * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
20879         for computation.
20880         * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
20881         * doc/tm.texi: Regenerated.
20882         * gengtype-lex.l (IWORD): Handle [u]int64_t.
20883         * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
20884         * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
20885         mmix_output_register_setting): Use [u]int64_t in prototypes.
20886         * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
20887         mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
20888         mmix_output_octa, mmix_output_shifted_value): Adjust.
20889         (mmix_intval): Adjust.  Remove unreachable case.
20890         * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
20892 2014-05-26  Richard Biener  <rguenther@suse.de>
20894         * configure.ac: Drop __int64 type check.  Insist that we
20895         found uint64_t and int64_t.
20896         * hwint.h (HOST_BITS_PER___INT64): Remove.
20897         (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
20898         (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
20899         (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
20900         (HOST_WIDEST_FAST_INT): Remove __int64 case.
20901         * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
20902         for dst_q_src_df_rms_cdt.
20903         * configure: Regenerate.
20904         * config.in: Likewise.
20906 2014-05-26  Michael Tautschnig  <mt@debian.org>
20908         PR target/61249
20909         * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
20910         __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
20912 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
20914         PR rtl-optimization/61278
20915         * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
20917 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
20919         PR rtl-optimization/61220
20920         Part of PR rtl-optimization/61225
20921         * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
20922         insn; skip split_edge for a block with only one successor.
20924 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
20926         * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
20927         for variables.
20929 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
20931         * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
20932         (update_vtable_references): New function.
20933         (function_and_variable_visibility): Rewrite also vtable initializers.
20934         * varpool.c (cgraph_variable_initializer_availability): Remove assert.
20936 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
20938         * ggc.h (ggc_grow): New function.
20939         * ggc-none.c (ggc_grow): New function.
20940         * ggc-page.c (ggc_grow): Likewise.
20942 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
20944         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
20945         address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
20946         comdat_can_be_unshared_p, cgraph_externally_visible_p,
20947         varpool_externally_visible_p, can_replace_by_local_alias,
20948         update_visibility_by_resolution_info, function_and_variable_visibility,
20949         pass_data_ipa_function_and_variable_visibility,
20950         make_pass_ipa_function_and_variable_visibility,
20951         whole_program_function_and_variable_visibility,
20952         pass_data_ipa_whole_program_visibility,
20953         make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
20954         * cgraph.h (cgraph_local_node_p): Declare.
20955         * ipa-visibility.c: New file.
20956         * Makefile.in (OBJS): Add ipa-visiblity.o
20958 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
20960         * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
20961         that var decl is available.
20963 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
20965         * tree-core.h (tree_decl_with_vis): Replace comdat_group by
20966         symtab_node pointer.
20967         * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
20968         (find_decls_types_r): Do not walk COMDAT_GROUP.
20969         * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
20970         * varasm.c (make_decl_one_only): Use set_comdat_group;
20971         create node if needed.
20972         * ipa-inline-transform.c (save_inline_function_body): Update
20973         way we decl->symtab mapping.
20974         * symtab.c (symtab_hash, hash_node, eq_node
20975         symtab_insert_node_to_hashtable): Remove.
20976         (symtab_register_node): Update.
20977         (symtab_unregister_node): Update.
20978         (symtab_get_node): Reimplement as inline function.
20979         (symtab_add_to_same_comdat_group): Update.
20980         (symtab_dissolve_same_comdat_group_list): Update.
20981         (dump_symtab_base): Update.
20982         (verify_symtab_base): Update.
20983         (symtab_make_decl_local): Update.
20984         (fixup_same_cpp_alias_visibility): Update.
20985         (symtab_nonoverwritable_alias): Update.
20986         * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
20987         * ipa.c (update_visibility_by_resolution_info): UPdate.
20988         * bb-reorder.c: Include cgraph.h
20989         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
20990         with comdat groups.
20991         * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
20992         * cgraph.c (cgraph_get_create_node): Update.
20993         * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
20994         and comdat_group_.
20995         (symtab_get_node): Make inline.
20996         (symtab_insert_node_to_hashtable): Remove.
20997         (symtab_can_be_discarded): Update.
20998         (decl_comdat_group): New function.
20999         * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
21000         Update.
21001         * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
21002         comdat group name.
21003         (read_comdat_group): New function.
21004         (input_node, input_varpool_node): Use it.
21005         * trans-mem.c (ipa_tm_create_version_alias): Update code creating
21006         comdat groups.
21007         * mips.c (mips_start_unique_function): Likewise.
21008         (ix86_code_end): Likewise.
21009         (rs6000_code_end): Likweise.
21010         * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
21012 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
21014         * gengtype-state.c (fatal_reading_state): Bring offline.
21015         * optabs.c (widening_optab_handler): Bring offline.
21016         * optabs.h (widening_optab_handler): Likewise.
21017         * final.c (get_attr_length_1): Likewise.
21019 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
21021         * sched-int.h (sd_iterator_cond): Manually tail recurse.
21023 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
21025         * config/rs6000/440.md (ppc440-integer): Include shift without dot.
21026         (ppc440-compare): Include shift with dot.
21027         * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
21028         * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
21029         without dot.
21030         * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
21031         without dot.
21032         (e6500_sfx2): Include it.
21033         * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
21034         *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
21035         *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
21036         andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
21037         *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
21038         *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
21039         *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
21040         *lshiftrt_internal1le, *lshiftrt_internal1be,
21041         *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
21042         *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
21043         *rotldi3_internal10le, *rotldi3_internal10be,
21044         *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
21045         ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
21046         ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
21047         *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
21048         define_insns): Use type "shift" in the appropriate alternatives.
21050 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
21052         * config/rs6000/rs6000.md (type): Add "logical".  Delete
21053         "fast_compare".
21054         (dot): Adjust comment.
21055         (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
21056         *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
21057         *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
21058         anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
21059         *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
21060         *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
21061         *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
21062         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
21064         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
21065         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
21066         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
21067         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
21068         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
21069         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
21070         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
21071         * config/rs6000/8540.md (ppc8540_su): Adjust.
21072         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
21073         cell-cmp-microcoded): Adjust.
21074         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
21075         * config/rs6000/e500mc.md (e500mc_su): Adjust.
21076         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
21077         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
21078         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
21079         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
21080         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
21081         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
21082         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
21083         Adjust.
21084         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
21085         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
21086         Adjust.  Adjust comment.
21087         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
21088         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
21090 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
21092         * config/rs6000/rs6000.md (type): Add "add".
21093         (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
21094         *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
21095         define_insns): Use it.
21096         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
21098         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
21099         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
21100         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
21101         * config/rs6000/601.md (ppc601-integer): Adjust.
21102         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
21103         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
21104         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
21105         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
21106         * config/rs6000/8540.md (ppc8540_su): Adjust.
21107         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
21108         cell-cmp-microcoded): Adjust.
21109         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
21110         * config/rs6000/e500mc.md (e500mc_su): Adjust.
21111         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
21112         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
21113         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
21114         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
21115         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
21116         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
21117         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
21118         Adjust.
21119         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
21120         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
21121         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
21122         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
21124 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
21126         * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
21127         "delayed_compare", "var_delayed_compare".
21128         (var_shift): New attribute.
21129         (cell_micro): Adjust.
21130         (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
21131         *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
21132         rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
21133         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
21134         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
21135         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
21136         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
21137         *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
21138         *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
21139         *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
21140         *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
21141         rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
21142         *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
21143         *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
21144         *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
21145         *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
21146         *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
21147         *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
21148         *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
21149         *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
21150         *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
21151         *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
21152         *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
21153         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
21154         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
21156         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
21157         * config/rs6000/440.md (ppc440-integer): Adjust.
21158         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
21159         * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
21160         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
21161         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
21162         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
21163         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
21164         * config/rs6000/8540.md (ppc8540_su): Adjust.
21165         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
21166         cell-cmp-microcoded): Adjust.
21167         * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
21168         * config/rs6000/e500mc.md (e500mc_su): Adjust.
21169         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
21170         e500mc64_delayed): Adjust.
21171         * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
21172         * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
21173         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
21174         * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
21175         * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
21176         * config/rs6000/power6.md (power6-shift, power6-var-rotate,
21177         power6-delayed-compare, power6-var-delayed-compare): Adjust.
21178         * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
21179         * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
21180         Adjust comment.
21181         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
21182         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
21184 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
21186         * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv".  Add "div".
21187         (bits): New mode_attr.
21188         (idiv_ldiv): Delete mode_attr.
21189         (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
21190         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
21191         rs6000_adjust_priority, is_nonpipeline_insn,
21192         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
21194         * config/rs6000/40x.md (ppc403-idiv): Adjust.
21195         * config/rs6000/440.md (ppc440-idiv): Adjust.
21196         * config/rs6000/476.md (ppc476-idiv): Adjust.
21197         * config/rs6000/601.md (ppc601-idiv): Adjust.
21198         * config/rs6000/603.md (ppc603-idiv): Adjust.
21199         * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
21200         ppc620-ldiv): Adjust.
21201         * config/rs6000/7450.md (ppc7450-idiv): Adjust.
21202         * config/rs6000/7xx.md (ppc750-idiv): Adjust.
21203         * config/rs6000/8540.md (ppc8540_divide): Adjust.
21204         * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
21205         * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
21206         * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
21207         * config/rs6000/e500mc.md (e500mc_divide): Adjust.
21208         * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
21209         * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
21210         * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
21211         * config/rs6000/mpc.md (mpccore-idiv): Adjust.
21212         * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
21213         * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
21214         * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
21215         * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
21216         * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
21217         * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
21218         * config/rs6000/titan.md (titan_fxu_div): Adjust.
21220 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
21222         * config/rs6000/rs6000.md (type): Delete "insert_word",
21223         "insert_dword".  Add "insert".
21224         (size): Update comment.
21225         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
21226         insn_must_be_first_in_group): Adjust.
21227         (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
21228         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
21229         *insvsi_internal6, insvdi_internal): Adjust.
21231         * config/rs6000/40x.md (ppc403-integer): Adjust.
21232         * config/rs6000/440.md (ppc440-integer): Adjust.
21233         * config/rs6000/476.md (ppc476-simple-integer): Adjust.
21234         * config/rs6000/601.md (ppc601-integer): Adjust.
21235         * config/rs6000/603.md (ppc603-integer): Adjust.
21236         * config/rs6000/6xx.md (ppc604-integer): Adjust.
21237         * config/rs6000/7450.md (ppc7450-integer): Adjust.
21238         * config/rs6000/7xx.md (ppc750-integer): Adjust.
21239         * config/rs6000/8540.md (ppc8540_su): Adjust.
21240         * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
21241         * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
21242         * config/rs6000/e500mc.md (e500mc_su): Adjust.
21243         * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
21244         * config/rs6000/e5500.md (e5500_sfx): Adjust.
21245         * config/rs6000/e6500.md (e6500_sfx): Adjust.
21246         * config/rs6000/mpc.md (mpccore-integer): Adjust.
21247         * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
21248         * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
21249         * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
21250         * config/rs6000/power7.md (power7-integer): Adjust.
21251         * config/rs6000/power8.md (power8-1cyc): Adjust.
21252         * config/rs6000/rs64.md (rs64a-integer): Adjust.
21253         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
21255 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
21257         * config/rs6000/rs6000.md (type): Add "mul".  Delete "imul",
21258         "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
21259         (size): New attribute.
21260         (dot): New attribute.
21261         (cell_micro): Adjust.
21262         (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
21263         umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
21264         *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
21265         umuldi3_highpart): Adjust.
21266         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
21267         rs6000_adjust_priority, is_nonpipeline_insn,
21268         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
21270         * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
21271         ppc405-imul3): Adjust.
21272         * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
21273         * config/rs6000/476.md (ppc476-imul): Adjust.
21274         * config/rs6000/601.md (ppc601-imul): Adjust.
21275         * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
21276         * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
21277         ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
21278         * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
21279         * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
21280         Adjust.
21281         * config/rs6000/8540.md (ppc8540_multiply): Adjust.
21282         * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
21283         * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
21284         cell-imul): Adjust.
21285         * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
21286         * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
21287         * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
21288         * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
21289         * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
21290         * config/rs6000/mpc.md (mpccore-imul): Adjust.
21291         * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
21292         power4-lmul, power4-imul, power4-imul3): Adjust.
21293         * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
21294         power5-lmul, power5-imul, power5-imul3): Adjust.
21295         * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
21296         power6-lmul, power6-imul, power6-imul3): Adjust.
21297         * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
21298         * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
21300         * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
21301         rs64a-lmul): Adjust.
21302         * config/rs6000/titan.md (titan_imul): Adjust.
21304 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
21306         * config/rs6000/rs6000.md (type): Add new value "halfmul".
21307         (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
21308         *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
21309         *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
21310         *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
21311         *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
21312         * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
21313         * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
21314         * config/rs6000/476.md (ppc476-imul): Add type halfmul.
21315         * config/rs6000/titan.md: Delete nonsensical comment.
21316         (titan_imul): Add type imul3.
21317         (titan_mulhw): Remove type imul3; add type halfmul.
21319 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
21321         * config/rs6000/rs6000.md (type): Reorder, reformat.
21323 2014-05-23  Martin Jambor  <mjambor@suse.cz>
21325         PR tree-optimization/53787
21326         * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
21327         * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
21328         analysis_done, update all uses.
21329         * ipa-prop.c: Include domwalk.h
21330         (param_analysis_info): Removed.
21331         (param_aa_status): New type.
21332         (ipa_bb_info): Likewise.
21333         (func_body_info): Likewise.
21334         (ipa_get_bb_info): New function.
21335         (aa_overwalked): Likewise.
21336         (find_dominating_aa_status): Likewise.
21337         (parm_bb_aa_status_for_bb): Likewise.
21338         (parm_preserved_before_stmt_p): Changed to use new param AA info.
21339         (load_from_unmodified_param): Accept func_body_info as a parameter
21340         instead of parms_ainfo.
21341         (parm_ref_data_preserved_p): Changed to use new param AA info.
21342         (parm_ref_data_pass_through_p): Likewise.
21343         (ipa_load_from_parm_agg_1): Likewise.  Update callers.
21344         (compute_complex_assign_jump_func): Changed to use new param AA info.
21345         (compute_complex_ancestor_jump_func): Likewise.
21346         (ipa_compute_jump_functions_for_edge): Likewise.
21347         (ipa_compute_jump_functions): Removed.
21348         (ipa_compute_jump_functions_for_bb): New function.
21349         (ipa_analyze_indirect_call_uses): Likewise, moved variable
21350         declarations down.
21351         (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
21352         and info, moved variable declarations down.
21353         (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
21354         node and info.
21355         (ipa_analyze_stmt_uses): Likewise.
21356         (ipa_analyze_params_uses): Removed.
21357         (ipa_analyze_params_uses_in_bb): New function.
21358         (ipa_analyze_controlled_uses): Likewise.
21359         (free_ipa_bb_info): Likewise.
21360         (analysis_dom_walker): New class.
21361         (ipa_analyze_node): Handle node-specific forbidden analysis,
21362         initialize and free func_body_info, use dominator walker.
21363         (ipcp_modif_dom_walker): New class.
21364         (ipcp_transform_function): Create and free func_body_info, use
21365         ipcp_modif_dom_walker, moved a lot of functionality there.
21367 2014-05-23  Marek Polacek  <polacek@redhat.com>
21368             Jakub Jelinek  <jakub@redhat.com>
21370         * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
21371         * gcc.c (sanitize_spec_function): Likewise.
21372         * convert.c (convert_to_integer): Include "ubsan.h".  Add
21373         floating-point to integer instrumentation.
21374         * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
21375         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
21376         SANITIZE_NONDEFAULT.
21377         * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
21378         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
21379         BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
21380         * ubsan.c: Include "realmpfr.h" and "dfp.h".
21381         (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
21382         (ubsan_type_descriptor): Set tkind to 0xffff for types other than
21383         float/double/long double.
21384         (ubsan_instrument_float_cast): New function.
21385         * ubsan.h (ubsan_instrument_float_cast): Declare.
21387 2014-05-23 Jiong Wang  <jiong.wang@arm.com>
21389         * config/aarch64/predicates.md (aarch64_call_insn_operand): New
21390         predicate.
21391         * config/aarch64/constraints.md ("Ucs", "Usf"):  New constraints.
21392         * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
21393         Adjust for tailcalling through registers.
21394         * config/aarch64/aarch64.h (enum reg_class): New caller save
21395         register class.
21396         (REG_CLASS_NAMES): Likewise.
21397         (REG_CLASS_CONTENTS): Likewise.
21398         * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
21399         Allow tailcalling without decls.
21401 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
21403         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
21404         Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
21406         * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
21407         gsi, and variables v_* to v*.
21409 2014-05-23  Eric Botcazou  <ebotcazou@adacore.com>
21411         * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
21413 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
21415         * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
21416         * omp-low.c: Update accordingly.
21418         * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
21419         for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
21420         GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
21421         GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
21422         GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
21423         GF_OMP_TARGET_KIND_UPDATE.
21425         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
21426         Explicitly enumerate the expected region types.
21428 2014-05-23  Paul Eggert  <eggert@cs.ucla.edu>
21430         PR other/56955
21431         * doc/extend.texi (Function Attributes): Fix  __attribute__ ((malloc))
21432         documentation; the old documentation didn't clearly state the
21433         constraints on the contents of the pointed-to storage.
21435 2014-05-23  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
21437         Fix bootstrap error on ia64
21438         * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
21439         Return default value.
21441 2014-05-23  Thomas Preud'homme  <thomas.preudhomme@arm.com>
21443         PR tree-optimization/54733
21444         * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
21445         (CMPNOP): Define.
21446         (find_bswap_or_nop_load): New.
21447         (find_bswap_1): Renamed to ...
21448         (find_bswap_or_nop_1): This. Also add support for memory source.
21449         (find_bswap): Renamed to ...
21450         (find_bswap_or_nop): This. Also add support for memory source and
21451         detection of bitwise operations equivalent to load in target
21452         endianness.
21453         (execute_optimize_bswap): Likewise. Also move its leading comment back
21454         in place and split statement transformation into ...
21455         (bswap_replace): This.
21457 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
21459         PR rtl-optimization/61215
21460         * lra-elelimination.c (lra_eliminate_regs_1): Don't use
21461         simplify_gen_subreg until final substitution.
21463 2014-05-23  Alan Modra  <amodra@gmail.com>
21465         PR target/61231
21466         * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
21467         * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
21468         Use "Y" constraint rather than "m".
21470 2014-05-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
21472         * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
21473         define.
21474         * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
21475         New function declaration.
21476         * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
21477         AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
21478         AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
21479         (aarch64_init_builtins) : Initialize builtins
21480         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
21481         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
21482         (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
21483         __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
21484         and __builtins_aarch64_set_fpsr.
21485         (aarch64_atomic_assign_expand_fenv): New function.
21486         * config/aarch64/aarch64.md (set_fpcr): New pattern.
21487         (get_fpcr) : Likewise.
21488         (set_fpsr) : Likewise.
21489         (get_fpsr) : Likewise.
21490         (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
21491          and UNSPECV_SET_FPSR.
21492         * doc/extend.texi (AARCH64 Built-in Functions) : Document
21493         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
21494         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
21496 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
21498         PR rtl-optimization/60969
21499         * ira-costs.c (record_reg_classes): Process NO_REGS for matching
21500         constraints.  Set up mem cost for NO_REGS case.
21502 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
21504         * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
21506 2012-05-22  Bernd Schmidt  <bernds@codesourcery.com>
21508         * config/darwin.c: Include "lto-section-names.h".
21509         (LTO_SEGMENT_NAME): Don't define.
21510         * config/i386/winnt.c: Include "lto-section-names.h".
21511         * lto-streamer.c: Include "lto-section-names.h".
21512         * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
21513         * lto-wrapper.c: Include "lto-section-names.h".
21514         (LTO_SECTION_NAME_PREFIX): Don't define.
21515         * lto-section-names.h: New file.
21516         * cgraphunit.c: Include "lto-section-names.h".
21518 2014-05-22  Peter Bergner  <bergner@vnet.ibm.com>
21520         * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
21522 2014-05-22  Richard Earnshaw  <rearnsha@arm.com>
21524         PR target/61208
21525         * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
21527 2014-05-22  Nick Clifton  <nickc@redhat.com>
21529         * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
21531 2014-05-22  Eric Botcazou  <ebotcazou@adacore.com>
21533         * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
21534         -> (T)A transformation to integer types.
21536 2014-05-22  Teresa Johnson  <tejohnson@google.com>
21538         * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
21539         (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
21540         (gcov_rewrite): Use gcov_nonruntime_assert.
21541         (gcov_open): Ditto.
21542         (gcov_write_words): Ditto.
21543         (gcov_write_length): Ditto.
21544         (gcov_read_words): Use gcov_nonruntime_assert, and remove
21545         gcc_assert from IN_LIBGCOV code.
21546         (gcov_read_summary): Use gcov_error to flag profile corruption.
21547         (gcov_sync): Use gcov_nonruntime_assert.
21548         (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
21549         (gcov_histo_index): Use gcov_nonruntime_assert.
21550         (static void gcov_histogram_merge): Ditto.
21551         (compute_working_sets): Ditto.
21552         * gcov-io.h (gcov_nonruntime_assert): Define.
21553         (gcov_error): Define for !IN_LIBGCOV
21555 2014-05-22  Richard Biener  <rguenther@suse.de>
21557         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
21558         BUILT_IN_REALLOC like BUILT_IN_STRDUP.
21559         (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
21560         and deallocation site.
21561         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
21562         Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
21563         passing through the incoming points-to set.
21564         (handle_lhs_call): Use flags argument instead of recomputing it.
21565         (find_func_aliases_for_call): Call handle_lhs_call with proper
21566         call return flags.
21568 2014-05-22  Jakub Jelinek  <jakub@redhat.com>
21570         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
21571         all padding bits in REAL_VALUE_TYPE are cleared.
21573 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
21575         Cleanup and improve multipass_dfa_lookahead_guard
21576         * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
21577         (core2i7_first_cycle_multipass_begin,)
21578         (core2i7_first_cycle_multipass_issue,)
21579         (core2i7_first_cycle_multipass_backtrack): Update signature.
21580         * config/ia64/ia64.c
21581         (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
21582         (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
21583         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
21584         hook definition.
21585         (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
21586         ia64_first_cycle_multipass_dfa_lookahead_guard_spec.  Update return
21587         values.
21588         * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
21589         return values.
21590         * doc/tm.texi: Regenerate.
21591         * doc/tm.texi.in
21592         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
21593         * haifa-sched.c (ready_try): Make signed to allow negative values.
21594         (rebug_ready_list_1): Update.
21595         (choose_ready): Simplify.
21596         (sched_extend_ready_list): Update.
21598 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
21600         Remove IA64 speculation tweaking flags
21601         * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
21602         speculation tuning flags.
21603         (msched-prefer-non-data-spec-insns,)
21604         (msched-prefer-non-control-spec-insns): Obsolete options.
21605         * haifa-sched.c (choose_ready): Remove handling of
21606         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
21607         * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
21608         and PREFER_NON_DATA_SPEC.
21609         * sel-sched.c (process_spec_exprs): Remove handling of
21610         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
21612 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
21614         Improve scheduling debug output
21615         * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
21616         (advance_one_cycle): Update.
21617         (schedule_insn, queue_to_ready): Add debug printouts.
21618         (debug_ready_list_1): New static function.
21619         (debug_ready_list): Update.
21620         (max_issue): Add debug printouts.
21621         (dump_insn_stream): New static function.
21622         (schedule_block): Use it.  Also better indent printouts.
21624 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
21626         Fix sched_insn debug counter
21627         * haifa-sched.c (schedule_insn): Update.
21628         (struct haifa_saved_data): Add nonscheduled_insns_begin.
21629         (save_backtrack_point, restore_backtrack_point): Update.
21630         (first_nonscheduled_insn): New static function.
21631         (queue_to_ready, choose_ready): Use it.
21632         (schedule_block): Init nonscheduled_insns_begin.
21633         (sched_emit_insn): Update.
21636 2014-05-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
21638         * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
21639         to GENERAL_REGS.
21640         (aarch64_secondary_reload) : LikeWise.
21641         (aarch64_class_max_nregs) : Remove CORE_REGS.
21642         * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
21643         (REG_CLASS_NAMES) : Likewise.
21644         (REG_CLASS_CONTENTS) : LikeWise.
21645         (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
21647 2014-05-21  Guozhi Wei  <carrot@google.com>
21649         PR target/61202
21650         * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
21651         constraint.
21652         (vqdmulhq_n_s16): Likewise.
21654 2014-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
21656         * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
21658 2014-05-21  Marek Polacek  <polacek@redhat.com>
21660         PR sanitizer/61272
21661         * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
21663 2014-05-21  Martin Jambor  <mjambor@suse.cz>
21665         * doc/invoke.texi (Optimize Options): Document parameters
21666         ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
21667         ipa-cp-array-index-hint-bonus.
21669 2014-05-21  Mark Wielaard  <mjw@redhat.com>
21671         PR debug/16063
21672         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
21673         version >= 3 or not strict DWARF.
21674         * langhooks.h (struct lang_hooks_for_types): Add
21675         enum_underlying_base_type.
21676         * langhooks.c (lhd_enum_underlying_base_type): New function.
21677         * gcc/langhooks.h (struct lang_hooks_for_types): Add
21678         enum_underlying_base_type.
21679         * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
21680         (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
21681         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
21683 2014-05-21  Richard Biener  <rguenther@suse.de>
21685         * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
21687 2014-05-21  John Marino  <gnugcc@marino.st>
21689         * config.gcc (*-*-dragonfly*): New target.
21690         * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
21691         * configure: Regenerate.
21692         * config/dragonfly-stdint.h: New.
21693         * config/dragonfly.h: New.
21694         * config/dragonfly.opt: New.
21695         * config/i386/dragonfly.h: New.
21696         * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
21698 2014-05-21  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
21700         * tree.def (VOID_CST): New.
21701         * tree-core.h (TI_VOID): New.
21702         * tree.h (void_node): New.
21703         * tree.c (tree_node_structure_for_code, tree_code_size)
21704         (iterative_hash_expr): Handle VOID_CST.
21705         (build_common_tree_nodes): Initialize void_node.
21707 2014-05-21  Bernd Schmidt  <bernds@codesourcery.com>
21709         * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
21710         functions.
21711         (reload, calculate_needs_all_insns, reload_as_needed): Use them.
21713         * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
21714         more places.
21716         * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
21717         flag_reorder_blocks_and_partition.
21718         * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
21720 2014-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
21722         PR target/54236
21723         * config/sh/sh.md (*addc_r_1): Rename to addc_t_r.  Remove empty
21724         constraints.
21725         (*addc_r_t): Add new insn_and_split.
21727 2014-05-21  Jakub Jelinek  <jakub@redhat.com>
21729         PR middle-end/61252
21730         * omp-low.c (handle_simd_reference): New function.
21731         (lower_rec_input_clauses): Use it.  Defer adding reference
21732         initialization even for reduction without placeholder if in simd,
21733         handle it properly later on.
21735 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
21737         PR tree-optimization/60899
21738         * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
21739         assume all static symbols will have definition wile parsing and
21740         check the do have definition later in compilation; check that
21741         variable referring symbol will be output before concluding that
21742         reference is safe; be conservative for referring local statics;
21743         be more precise about when comdat is output in other partition.
21745 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
21747         PR bootstrap/60984
21748         * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
21749         parameter.
21750         * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
21751         (ipa_inline): Loop inline_to_all_callers until no more aliases
21752         are removed.
21754 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
21756         * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
21757         set writeonly flag only for vars actually written to.
21759 2014-05-20  Dehao Chen  <dehao@google.com>
21761         * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
21762         and callee count to get clone count.
21763         * tree-inline.c (expand_call_inline): Use callee count instead of bb
21764         count in copy_body.
21766 2014-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
21768         PR rtl-optimization/61243
21769         * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
21771 2014-05-20  Xinliang David Li  <davidxl@google.com>
21773         * cgraphunit.c (walk_polymorphic_call_targets): Add
21774         dbgcnt and fopt-info support.
21775         * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
21776         * ipa-devirt.c (ipa_devirt): Ditto.
21777         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
21778         * ipa.c (walk_polymorphic_call_targets): Ditto.
21779         * gimple-fold.c (fold_gimple_assign): Ditto.
21780         (gimple_fold_call): Ditto.
21781         * dbgcnt.def: New counter.
21783 2014-05-20  DJ Delorie  <dj@redhat.com>
21785         * config/msp430/msp430.md (split): Don't allow subregs when
21786         splitting SImode adds.
21787         (andneghi): Fix subtraction logic.
21788         * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
21790 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
21792         * tree.h (DECL_ONE_ONLY): Return true only for externally visible
21793         symbols.
21794         * except.c (switch_to_exception_section, resolve_unique_section,
21795         get_named_text_section, default_function_rodata_section,
21796         align_variable, get_block_for_decl, default_section_type_flags):
21797         Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
21798         * symtab.c (symtab_add_to_same_comdat_group,
21799         symtab_make_decl_local, fixup_same_cpp_alias_visibility,
21800         symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
21801         Likewise.
21802         * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
21803         * bb-reorder.c (pass_partition_blocks::gate): Likewise.
21804         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
21805         (c6x_function_in_section_p): Likewise.
21806         * config/darwin.c (machopic_select_section): Likewise.
21807         * config/arm/arm.c (arm_function_in_section_p): Likewise.
21808         * config/mips/mips.c (mips_function_rodata_section): Likewise.
21809         * config/mep/mep.c (mep_select_section): LIkewise.
21810         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
21812 2014-05-20  Eric Botcazou  <ebotcazou@adacore.com>
21814         * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
21815         EH region of calls to pure functions that can throw an exception.
21816         * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
21817         (copy_reference_ops_from_call): Also copy the EH region of the call if
21818         it can throw an exception.
21820 2014-05-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21822         * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
21823         nested VEC_SELECTs that are inverses of each other.
21825 2014-05-20  Richard Biener  <rguenther@suse.de>
21827         * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
21828         (extract_and_process_scc_for_name): not here.
21829         (cond_dom_walker::before_dom_children): Only process
21830         stmts that end the BB in interesting ways.
21831         (run_scc_vn): Mark param uses as visited.
21833 2014-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21835         * config/arm/arm.md (arith_shiftsi): Do not predicate for
21836         arm_restrict_it.
21838 2014-05-20  Nick Clifton  <nickc@redhat.com>
21840         * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
21841         (msp430_gimplify_va_arg_expr): New function.
21842         (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
21844         * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
21845         operand 0 in order to prevent confusion about the number of
21846         registers involved.
21848 2014-05-20  Richard Biener  <rguenther@suse.de>
21850         PR tree-optimization/61221
21851         * tree-ssa-pre.c (el_to_update): Remove.
21852         (eliminate_dom_walker::before_dom_children): Handle released
21853         VDEFs by value-numbering them to the associated VUSE.  Update
21854         stmt immediately for substituted call address.
21855         (eliminate): Remove delayed stmt updating code.
21856         * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
21857         possibly late re-numbered vuses.
21858         (vn_reference_lookup_2): Adjust.
21859         (vn_reference_lookup_pieces): Likewise.
21860         (vn_reference_lookup): Likewise.
21862 2014-05-20  Richard Biener  <rguenther@suse.de>
21864         * config.gcc: Remove need_64bit_hwint.
21865         * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
21866         * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
21867         it to be true.
21868         * config.in: Regenerate.
21869         * configure: Likewise.
21871 2014-05-19  David Wohlferd <dw@LimeGreenSocks.com>
21873         * doc/extend.texi: Create Label Attributes section,
21874         move all label attributes into it and reference it.
21876 2014-05-19  Richard Earnshaw  <rearnsha@arm.com>
21878         * arm.c (thumb1_reorg): When scanning backwards skip anything
21879         that's not a proper insn.
21881 2014-05-19  Richard Biener  <rguenther@suse.de>
21883         PR tree-optimization/61221
21884         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
21885         Do nothing for unreachable blocks.
21886         * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
21887         Improve unreachability detection.
21889 2014-05-19  Richard Biener  <rguenther@suse.de>
21891         PR tree-optimization/61209
21892         * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
21894 2014-05-19  Nick Clifton  <nickc@redhat.com>
21896         * except.c (init_eh): Fix computation of builtin setjmp buffer
21897         size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
21899 2014-05-19  Richard Biener  <rguenther@suse.de>
21901         PR tree-optimization/61184
21902         * tree-vrp.c (is_negative_overflow_infinity): Use
21903         TREE_OVERFLOW_P and do that check first.
21904         (is_positive_overflow_infinity): Likewise.
21905         (is_overflow_infinity): Likewise.
21906         (vrp_operand_equal_p): Properly treat operands with
21907         differing overflow as not equal.
21909 2014-05-19  Bernd Schmidt  <bernds@codesourcery.com>
21911         * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
21912         shift simplification where it was intended.
21914 2014-05-19  Christian Bruel  <christian.bruel@st.com>
21916         PR target/61195
21917         * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
21919 2014-05-19  Richard Sandiford  <r.sandiford@uk.ibm.com>
21921         PR target/61084
21922         * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
21923         than wide_int.
21925 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
21927         * reg-notes.def (CROSSING_JUMP): Likewise.
21928         * rtl.h (rtx_def): Update comment for jump flag.
21929         (CROSSING_JUMP_P): Define.
21930         * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
21931         of a REG_CROSSING_JUMP note.
21932         * cfghooks.c (tidy_fallthru_edges): Likewise.
21933         * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
21934         * emit-rtl.c (try_split): Likewise.
21935         * haifa-sched.c (sched_create_recovery_edges): Likewise.
21936         * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
21937         * jump.c (redirect_jump_2): Likewise.
21938         * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
21939         (relax_delay_slots): Likewise.
21940         * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
21941         (bbit_di): Likewise.
21942         * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
21943         * config/sh/sh.md (jump_compact): Likewise.
21944         * bb-reorder.c (rotate_loop): Likewise.
21945         (pass_duplicate_computed_gotos::execute): Likewise.
21946         (add_reg_crossing_jump_notes): Rename to...
21947         (update_crossing_jump_flags): ...this.
21948         (pass_partition_blocks::execute): Update accordingly.
21950 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
21952         * tree.h: Remove extraneous template <>.
21954 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
21956         * ipa.c (symtab_remove_unreachable_nodes): Remove
21957         symbol from comdat group if its body was eliminated.
21958         (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
21959         * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
21960         (symtab_unregister_node): ... this one.
21961         (verify_symtab_base): More strict checking of comdats.
21962         * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
21964 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
21966         * tree-pass.h (make_pass_ipa_comdats): New pass.
21967         * timevar.def (TV_IPA_COMDATS): New timevar.
21968         * passes.def (pass_ipa_comdats): Add.
21969         * Makefile.in (OBJS): Add ipa-comdats.o
21970         * ipa-comdats.c: New file.
21972 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
21974         * ipa.c (update_visibility_by_resolution_info): New function.
21975         (function_and_variable_visibility): Use it.
21977 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
21979         * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
21980         New functions.
21981         (FOR_EACH_DEFINED_SYMBOL): New macro.
21982         (varpool_first_static_initializer, varpool_next_static_initializer,
21983         varpool_first_defined_variable, varpool_next_defined_variable):
21984         Fix comments.
21985         (symtab_in_same_comdat_p): Correctly deal with inline functions.
21987 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
21989         * ggc-page.c (ggc_handle_finalizers): Add comment.
21991 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
21993         * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
21994         * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
21995         (ggc_internal_cleared_alloc): Likewise.
21996         * ggc-page.c (finalizer): New class.
21997         (vec_finalizer): Likewise.
21998         (globals::finalizers): New member.
21999         (globals::vec_finalizers): Likewise.
22000         (ggc_internal_alloc): Record the finalizer if any for the block being
22001         allocated.
22002         (ggc_handle_finalizers): New function.
22003         (ggc_collect): Call ggc_handle_finalizers.
22004         * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
22005         finalizer.
22006         (ggc_internal_cleared_alloc): Likewise.
22007         (finalize): New function.
22008         (need_finalization_p): Likewise.
22009         (ggc_alloc): Install the type's destructor as the finalizer if it
22010         might do something.
22011         (ggc_cleared_alloc): Likewise.
22012         (ggc_vec_alloc): Likewise.
22013         (ggc_cleared_vec_alloc): Likewise.
22015 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
22017         * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
22019 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
22021         * alias.c (record_alias_subset): Adjust.
22022         * bitmap.c (bitmap_element_allocate): Likewise.
22023         (bitmap_gc_alloc_stat): Likewise.
22024         * cfg.c (init_flow): Likewise.
22025         (alloc_block): Likewise.
22026         (unchecked_make_edge): Likewise.
22027         * cfgloop.c (alloc_loop): Likewise.
22028         (flow_loops_find): Likewise.
22029         (rescan_loop_exit): Likewise.
22030         * cfgrtl.c (init_rtl_bb_info): Likewise.
22031         * cgraph.c (insert_new_cgraph_node_version): Likewise.
22032         (cgraph_allocate_node): Likewise.
22033         (cgraph_create_edge_1): Likewise.
22034         (cgraph_allocate_init_indirect_info): Likewise.
22035         * cgraphclones.c (cgraph_clone_edge): Likewise.
22036         * cgraphunit.c (add_asm_node): Likewise.
22037         (init_lowered_empty_function): Likewise.
22038         * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
22039         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
22040         (alpha_use_linkage): Likewise.
22041         * config/arc/arc.c (arc_init_machine_status): Likewise.
22042         * config/arm/arm.c (arm_init_machine_status): Likewise.
22043         * config/avr/avr.c (avr_init_machine_status): Likewise.
22044         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
22045         * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
22046         * config/cris/cris.c (cris_init_machine_status): Likewise.
22047         * config/darwin.c (machopic_indirection_name): Likewise.
22048         (darwin_build_constant_cfstring): Likewise.
22049         (darwin_enter_string_into_cfstring_table): Likewise.
22050         * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
22051         * config/frv/frv.c (frv_init_machine_status): Likewise.
22052         * config/i386/i386.c (get_dllimport_decl): Likewise.
22053         (ix86_init_machine_status): Likewise.
22054         (assign_386_stack_local): Likewise.
22055         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
22056         (i386_pe_maybe_record_exported_symbol): Likewise.
22057         (i386_pe_record_stub): Likewise.
22058         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
22059         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
22060         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
22061         (m32c_note_pragma_address): Likewise.
22062         * config/mep/mep.c (mep_init_machine_status): Likewise.
22063         (mep_note_pragma_flag): Likewise.
22064         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
22065         (mips16_local_alias): Likewise.
22066         (mips_init_machine_status): Likewise.
22067         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
22068         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
22069         * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
22070         * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
22071         * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
22072         * config/pa/pa.c (pa_init_machine_status): Likewise.
22073         (pa_get_deferred_plabel): Likewise.
22074         * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
22075         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
22076         (rs6000_init_machine_status): Likewise.
22077         (output_toc): Likewise.
22078         * config/s390/s390.c (s390_init_machine_status): Likewise.
22079         * config/score/score.c (score_output_external): Likewise.
22080         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
22081         * config/spu/spu.c (spu_init_machine_status): Likewise.
22082         * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
22083         * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
22084         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
22085         * coverage.c (coverage_end_function): Likewise.
22086         * dbxout.c (dbxout_init): Likewise.
22087         * doc/gty.texi: Don't mention variable_size attribute.
22088         * dwarf2cfi.c (new_cfi): Adjust.
22089         (new_cfi_row): Likewise.
22090         (copy_cfi_row): Likewise.
22091         (create_cie_data): Likewise.
22092         * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
22093         (new_loc_descr): Likewise.
22094         (find_AT_string_in_table): Likewise.
22095         (add_addr_table_entry): Likewise.
22096         (new_die): Likewise.
22097         (add_var_loc_to_decl): Likewise.
22098         (clone_die): Likewise.
22099         (clone_as_declaration): Likewise.
22100         (break_out_comdat_types): Likewise.
22101         (new_loc_list): Likewise.
22102         (add_loc_descr_to_each): Likewise.
22103         (add_location_or_const_value_attribute): Likewise.
22104         (add_linkage_name): Likewise.
22105         (lookup_filename): Likewise.
22106         (dwarf2out_var_location): Likewise.
22107         (new_line_info_table): Likewise.
22108         (dwarf2out_init): Likewise.
22109         (mem_loc_descriptor): Likewise.
22110         (loc_descriptor): Likewise.
22111         (add_const_value_attribute): Likewise.
22112         (tree_add_const_value_attribute): Likewise.
22113         (comp_dir_string): Likewise.
22114         (dwarf2out_vms_debug_main_pointer): Likewise.
22115         (string_cst_pool_decl): Likewise.
22116         * emit-rtl.c (set_mem_attrs): Likewise.
22117         (get_reg_attrs): Likewise.
22118         (start_sequence): Likewise.
22119         (init_emit): Likewise.
22120         (init_emit_regs): Likewise.
22121         * except.c (init_eh_for_function): Likewise.
22122         (gen_eh_region): Likewise.
22123         (gen_eh_region_catch): Likewise.
22124         (gen_eh_landing_pad): Likewise.
22125         (add_call_site): Likewise.
22126         * function.c (add_frame_space): Likewise.
22127         (insert_temp_slot_address): Likewise.
22128         (assign_stack_temp_for_type): Likewise.
22129         (get_hard_reg_initial_val): Likewise.
22130         (allocate_struct_function): Likewise.
22131         (prepare_function_start): Likewise.
22132         (types_used_by_var_decl_insert): Likewise.
22133         * gengtype.c (variable_size_p): Remove function.
22134         (enum alloc_quantity): Remove enum.
22135         (write_typed_alloc_def): Remove function.
22136         (write_typed_struct_alloc_def): Likewise.
22137         (write_typed_typedef_alloc_def): Likewise.
22138         (write_typed_alloc_defns): Likewise.
22139         (main): Adjust.
22140         * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
22141         (ggc_cleared_alloc_ptr_array_two_args): Likewise.
22142         * ggc.h (ggc_alloc): new function.
22143         (ggc_cleared_alloc): Likewise.
22144         (ggc_vec_alloc): Template on type of vector element, and remove
22145         element size argument.
22146         (ggc_cleared_vec_alloc): Likewise.
22147         * gimple.c (gimple_build_omp_for): Adjust.
22148         (gimple_copy): Likewise.
22149         * ipa-cp.c (get_replacement_map): Likewise.
22150         (find_aggregate_values_for_callers_subset): Likewise.
22151         (known_aggs_to_agg_replacement_list): Likewise.
22152         * ipa-devirt.c (get_odr_type): Likewise.
22153         * ipa-prop.c (ipa_node_duplication_hook): Likewise.
22154         (read_agg_replacement_chain): Likewise.
22155         * loop-iv.c (get_simple_loop_desc): Likewise.
22156         * lto-cgraph.c (input_node_opt_summary): Likewise.
22157         * lto-section-in.c (lto_new_in_decl_state): Likewise.
22158         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
22159         (input_eh_region): Likewise.
22160         (input_eh_lp): Likewise.
22161         (input_cfg): Likewise.
22162         * optabs.c (set_optab_libfunc): Likewise.
22163         (init_tree_optimization_optabs): Likewise.
22164         (set_conv_libfunc): Likewise.
22165         * passes.c (do_per_function_toporder): Likewise.
22166         * rtl.h: Don't use variable_size gty attribute.
22167         * sese.c (if_region_set_false_region): Adjust.
22168         * stringpool.c (gt_pch_save_stringpool): Likewise.
22169         * target-globals.c (save_target_globals): Likewise.
22170         * toplev.c (general_init): Likewise.
22171         * trans-mem.c (record_tm_replacement): Likewise.
22172         (split_bb_make_tm_edge): Likewise.
22173         * tree-cfg.c (move_sese_region_to_fn): Likewise.
22174         * tree-data-ref.h (lambda_vector_new): Likewise.
22175         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
22176         * tree-iterator.c (tsi_link_before): Likewise.
22177         (tsi_link_after): Likewise.
22178         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
22179         * tree-ssa-loop-niter.c (record_estimate): Likewise.
22180         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
22181         * tree-ssa-operands.h: Don't use variable_size gty attribute.
22182         * tree-ssa.c (init_tree_ssa): Adjust.
22183         * tree-ssanames.c (set_range_info): Likewise.
22184         (get_ptr_info): Likewise.
22185         (duplicate_ssa_name_ptr_info): Likewise.
22186         (duplicate_ssa_name_range_info): Likewise.
22187         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
22188         (unpack_ts_fixed_cst_value_fields): Likewise.
22189         * tree.c (build_fixed): Likewise.
22190         (build_real): Likewise.
22191         (build_string): Likewise.
22192         (decl_priority_info): Likewise.
22193         (decl_debug_expr_insert): Likewise.
22194         (decl_value_expr_insert): Likewise.
22195         (decl_debug_args_insert): Likewise.
22196         (type_hash_add): Likewise.
22197         (build_omp_clause): Likewise.
22198         * ubsan.c (decl_for_type_insert): Likewise.
22199         * varasm.c (get_unnamed_section): Likewise.
22200         (get_noswitch_section): Likewise.
22201         (get_section): Likewise.
22202         (get_block_for_section): Likewise.
22203         (create_block_symbol): Likewise.
22204         (build_constant_desc): Likewise.
22205         (create_constant_pool): Likewise.
22206         (force_const_mem): Likewise.
22207         (record_tm_clone_pair): Likewise.
22208         * varpool.c (varpool_create_empty_node): Likewise.
22210 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
22212         * dwarf2out.c (tree_add_const_value_attribute): Call
22213         ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
22214         * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
22215         instead of ggc_internal_<x>alloc_stat.
22216         * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
22217         (ggc_realloc): Likewise.
22218         * ggc-none.c (ggc_internal_alloc): Likewise.
22219         (ggc_internal_cleared_alloc): Likewise.
22220         * ggc-page.c: Likewise.
22221         * ggc.h (ggc_internal_alloc_stat): Likewise.
22222         (ggc_internal_alloc): Remove macro.
22223         (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
22224         (ggc_internal_cleared_alloc): Remove macro.
22225         (GGC_RESIZEVEC): Adjust.
22226         (ggc_resizevar): Remove macro.
22227         (ggc_internal_vec_alloc_stat): Drop _stat suffix.
22228         (ggc_internal_cleared_vec_alloc_stat): Likewise.
22229         (ggc_internal_vec_cleared_alloc): Remove macro.
22230         (ggc_alloc_atomic_stat): Drop _stat suffix.
22231         (ggc_alloc_atomic): Remove macro.
22232         (ggc_alloc_cleared_atomic): Remove macro.
22233         (ggc_alloc_string_stat): Drop _stat suffix.
22234         (ggc_alloc_string): Remove macro.
22235         (ggc_alloc_rtx_def_stat): Adjust.
22236         (ggc_alloc_tree_node_stat): Likewise.
22237         (ggc_alloc_cleared_tree_node_stat): Likewise.
22238         (ggc_alloc_cleared_gimple_statement_stat): Likewise.
22239         (ggc_alloc_cleared_simd_clone_stat): Likewise.
22240         * gimple.c (gimple_build_omp_for): Likewise.
22241         (gimple_copy): Likewise.
22242         * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
22243         * toplev.c (realloc_for_line_map): Adjust.
22244         * tree-data-ref.h (lambda_vector_new): Likewise.
22245         * tree-phinodes.c (allocate_phi_node): Likewise.
22246         * tree.c (grow_tree_vec_stat): Likewise.
22247         * vec.h (va_gc::reserve): Adjust.
22249 2014-05-17  Ajit Agarwal  <ajitkum@xilinx.com>
22251         * config/microblaze/microblaze.c (break_handler): New Declaration.
22252         (microblaze_break_function_p,microblaze_is_break_handler): New.
22253         (compute_frame_size): Use microblaze_break_function_p.
22254         Add the test of break_handler.
22255         (microblaze_function_prologue) : Add the test of variable
22256         break_handler.  Check the fnname by BREAK_HANDLER_NAME.
22257         (microblaze_function_epilogue) : Add the test of break_handler.
22258         (microblaze_globalize_label) : Add the test of break_handler.
22259         Check the name by BREAK_HANDLER_NAME.
22261         * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
22263         * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
22264         microblaze_is_break_handler test.
22265         (call_internal1,call_value_intern): Use microblaze_break_function_p.
22266         Use SYMBOL_REF_DECL.
22268         * config/microblaze/microblaze-protos.h
22269         (microblaze_break_function_p,microblaze_is_break_handler):
22270         New Declaration.
22272         * doc/extend.texi (MicroBlaze break_handler Functions): Document
22273         new MicroBlaze break_handler functions.
22275 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
22277         * doc/extend.texi (Size of an asm): Move node text according
22278         to its @menu entry position.
22280 2014-05-17  Marc Glisse  <marc.glisse@inria.fr>
22282         PR tree-optimization/61140
22283         PR tree-optimization/61150
22284         PR tree-optimization/61197
22285         * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
22287 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
22289         * doc/invoke.texi (free): Mention Alpha.  Also enabled at -Os.
22291 2014-05-17  Richard Sandiford  <r.sandiford@uk.ibm.com>
22293         * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
22294         __SIZEOF_INT128__ is defined.
22296 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
22298         * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
22299         (rs6000_delegitimize_address): Use it.
22301 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
22303         * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
22304         inplace argument.  Store the new address in the original MEM when true.
22305         * emit-rtl.c (change_address_1): Likewise.
22306         (adjust_address_1, adjust_automodify_address_1, offset_address):
22307         Update accordingly.
22308         * rtl.h (plus_constant): Add an inplace argument.
22309         * explow.c (plus_constant): Likewise.  Try to reuse the original PLUS
22310         when true.  Avoid generating (plus X (const_int 0)).
22311         * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
22312         in-place.  Pass true to plus_constant.
22313         (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
22315 2014-05-16  Dehao Chen  <dehao@google.com>
22317         * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
22319 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
22321         PR target/54089
22322         * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
22323         patterns.
22324         * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
22326 2014-05-16  Dehao Chen  <dehao@google.com>
22328         * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
22329         optimize_function_for_size_p.
22330         * regs.h (REG_FREQ_FROM_BB): Likewise.
22332 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
22334         PR target/51244
22335         * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
22336         negt_reg_operand cases.
22337         * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
22338         predicate.
22339         * config/sh/predicates.md (cbranch_treg_value): Simplify.
22341 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
22343         * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
22344         target variants.
22346 2014-05-16  David Malcolm  <dmalcolm@redhat.com>
22348         Revert:
22349         2014-04-29  David Malcolm  <dmalcolm@redhat.com>
22351         * tree-cfg.c (dump_function_to_file): Dump the return type of
22352         functions, in a line to itself before the function body, mimicking
22353         the layout of a C function.
22355 2014-05-16  Dehao Chen  <dehao@google.com>
22357         * cfghooks.c (make_forwarder_block): Use direct computation to
22358         get fall-through edge's count and frequency.
22360 2014-05-16  Benno Schulenberg  <bensberg@justemail.net>
22362         * config/arc/arc.c (arc_init): Fix typo in error message.
22363         * config/i386/i386.c (ix86_expand_builtin): Likewise.
22364         (split_stack_prologue_scratch_regno): Likewise.
22365         * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
22366         word from error message.
22368 2014-05-16  Zhouyi Zhou <yizhouzhou@ict.ac.cn>
22370         * ira-costs.c: Fix typo in comment.
22372 2014-05-16  David Wohlferd <dw@LimeGreenSocks.com>
22374         * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
22376 2014-05-16  Jan Hubicka  <hubicka@ucw.cz>
22378         * varpool.c (dump_varpool_node): Dump write-only flag.
22379         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
22380         write-only flag.
22381         * tree-cfg.c (execute_fixup_cfg): Remove statements setting
22382         write-only variables.
22383         * ipa.c (process_references): New function.
22384         (set_readonly_bit): New function.
22385         (set_writeonly_bit): New function.
22386         (clear_addressable_bit): New function.
22387         (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
22388         fix handling of aliases.
22389         * cgraph.h (struct varpool_node): Add writeonly flag.
22391 2014-05-16  Vladimir Makarov  <vmakarov@redhat.com>
22393         PR rtl-optimization/60969
22394         * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
22395         Calculate costs for this case.
22397 2014-05-16  Eric Botcazou  <ebotcazou@adacore.com>
22399         * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
22400         <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
22402 2014-05-16  Richard Biener  <rguenther@suse.de>
22404         PR tree-optimization/61194
22405         * tree-vect-patterns.c (adjust_bool_pattern): Also handle
22406         bool patterns ending in a COND_EXPR.
22408 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
22410         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
22412 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
22414         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
22415         where we were unable to cost an RTX.
22417 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
22419         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
22420         HIGH, LO_SUM.
22422 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
22423             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
22425         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
22427 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
22428             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
22430         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
22431         FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
22433 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
22434             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
22436         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
22437         operators.
22439 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
22440             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
22442         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
22443         DIV/MOD.
22445 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
22446             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
22448         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
22449         (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
22451 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
22452             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
22454         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
22455         rotates and shifts.
22457 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
22458             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
22460         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
22461         ZERO_EXTEND and SIGN_EXTEND better.
22463 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
22464             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
22466         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
22467         logical operations.
22469 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
22470             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
22472         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
22473         costs when costing loads and stores to memory.
22475 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
22476             Philip Tomsich  <philipp.tomsich@theobroma-systems.com>
22478         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
22479         for SET RTX.
22481 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
22483         * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
22485 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
22486             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
22488         * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
22489         to...
22490         (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
22491         well formed.
22492         (aarch64_rtx_mult_cost): New.
22493         (aarch64_rtx_costs): Use it, refactor as appropriate.
22495 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
22496             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
22498         * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
22499         emit instructions, return number of instructions which would
22500         be emitted.
22501         (aarch64_add_constant): Update call to aarch64_build_constant.
22502         (aarch64_output_mi_thunk): Likewise.
22503         (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
22504         a CONST_DOUBLE.
22506 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
22508         * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
22509         (TARGET_RTX_COSTS): Call it.
22511 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
22513         * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
22514         (cortexa57_vector_cost): Likewise.
22515         (cortexa57_tunings): Use them.
22517 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
22519         * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
22520         (cpu_addrcost_table): Use it.
22521         * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
22522         (aarch64_address_cost): Rewrite using aarch64_classify_address,
22523         move it.
22525 2014-05-16  Richard Biener  <rguenther@suse.de>
22527         * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
22528         (set_ssa_val_to): Handle unexpected sets to VN_TOP.
22529         (visit_phi): Ignore edges marked as not executable.
22530         (class cond_dom_walker): New.
22531         (cond_dom_walker::before_dom_children): Value-number
22532         control statements and mark successor edges as not
22533         executable if possible.
22534         (run_scc_vn): First walk all control statements in
22535         dominator order, marking edges as not executable.
22536         * tree-inline.c (copy_edges_for_bb): Be not confused
22537         about random edge flags.
22539 2014-05-16  Richard Biener  <rguenther@suse.de>
22541         * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
22543 2014-05-15  Peter Bergner  <bergner@vnet.ibm.com>
22545         PR target/61193
22546         * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
22547         (__TM_simple_begin): Use it.
22548         (__TM_begin): Likewise.
22550 2014-05-15  Martin Jambor  <mjambor@suse.cz>
22552         PR ipa/61085
22553         * ipa-prop.c (update_indirect_edges_after_inlining): Check
22554         type_preserved flag when the indirect edge is polymorphic.
22556 2014-05-15  Martin Jambor  <mjambor@suse.cz>
22558         PR tree-optimization/61090
22559         * tree-sra.c (sra_modify_expr): Pass the current gsi to
22560         build_ref_for_model.
22562 2014-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22564         * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
22565         enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
22567 2014-05-15  Jakub Jelinek  <jakub@redhat.com>
22569         PR tree-optimization/61158
22570         * fold-const.c (fold_binary_loc): If X is zero-extended and
22571         shiftc >= prec, make sure zerobits is all ones instead of
22572         invoking undefined behavior.
22574 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
22576         * regcprop.h: New file.
22577         * regcprop.c (skip_debug_insn_p): New decl.
22578         (replace_oldest_value_reg): Check skip_debug_insn_p.
22579         (copyprop_hardreg_forward_bb_without_debug_insn): New function.
22580         * shrink-wrap.c: Include regcprop.h.
22581         (prepare_shrink_wrap): Call
22582         copyprop_hardreg_forward_bb_without_debug_insn.
22584 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
22586         * shrink-wrap.h: Update comment.
22587         * shrink-wrap.c: Update comment.
22588         (next_block_for_reg): Rename to live_edge_for_reg.
22589         (live_edge_for_reg): Allow live_edge->dest has two predecessors.
22590         (move_insn_for_shrink_wrap): Split live_edge.
22591         (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
22593 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
22595         * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
22596         Delete.
22597         * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
22598         * config/sparc/sparc.md (fptype_ut699): New attribute.
22599         (in_branch_delay): Return false if -mfix-ut699 is specified and
22600         fptype_ut699 is set to single.
22601         (truncdfsf2): Add fptype_ut699 attribute.
22602         (fix_truncdfsi2): Likewise.
22603         (floatsisf2): Change fptype attribute.
22604         (fix_truncsfsi2): Likewise.
22605         (negtf2_notv9): Delete.
22606         (negtf2_v9): Likewise.
22607         (negtf2_hq): New instruction.
22608         (negtf2): New instruction and splitter.
22609         (negdf2_notv9): Rewrite.
22610         (abstf2_notv9): Delete.
22611         (abstf2_hq_v9): Likewise.
22612         (abstf2_v9): Likewise.
22613         (abstf2_hq): New instruction.
22614         (abstf2): New instruction and splitter.
22615         (absdf2_notv9): Rewrite.
22617 2014-05-14  Cary Coutant  <ccoutant@google.com>
22619         PR debug/61013
22620         * opts.c (common_handle_option): Don't special-case "-g".
22621         (set_debug_level): Default to at least level 2 with "-g".
22623 2014-05-14  DJ Delorie  <dj@redhat.com>
22625         * config/msp430/msp430.c (msp430_builtin): Add
22626         MSP430_BUILTIN_DELAY_CYCLES.
22627         (msp430_init_builtins): Register void __delay_cycles(long long).
22628         (msp430_builtin_decl): Add it.
22629         (cg_magic_constant): New.
22630         (msp430_expand_delay_cycles): New.
22631         (msp430_expand_builtin): Call it.
22632         (msp430_print_operand_raw): Change integer printing from "int" to
22633         HOST_WIDE_INT.
22634         * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
22635         (delay_cycles_start): New.
22636         (delay_cycles_end): New.
22637         (delay_cycles_32): New.
22638         (delay_cycles_32x): New.
22639         (delay_cycles_16): New.
22640         (delay_cycles_16x): New.
22641         (delay_cycles_2): New.
22642         (delay_cycles_1): New.
22643         * doc/extend.texi: Document __delay_cycles().
22645 2014-05-14  Sandra Loosemore  <sandra@codesourcery.com>
22647         * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
22648         length attribute computation.
22650 2014-05-14  Richard Sandiford  <rdsandiford@googlemail.com>
22652         PR debug/61188
22653         * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
22655 2014-05-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
22657         PR target/61084
22658         * config/sparc/sparc.md: Fix types of low and high in DI constant
22659         splitter.  Use gen_int_mode in some other splitters.
22661 2014-05-14  Martin Jambor  <mjambor@suse.cz>
22663         PR ipa/60897
22664         * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
22666 2014-05-14  James Norris  <jnorris@codesourcery.com>
22668         * omp-low.c (expand_parallel_call): Remove shadow variable.
22669         (expand_omp_taskreg): Likewise.
22671 2014-05-14  Ilya Tocar  <ilya.tocar@intel.com>
22673         * common/config/i386/i386-common.c
22674         (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
22675         (OPTION_MASK_ISA_XSAVES_SET): Ditto.
22676         (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
22677         (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
22678         (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
22679         (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
22680         (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
22681         * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
22682         xsavecintrin.h, xsavesintrin.h.
22683         (x86_64-*-*): Ditto.
22684         * config/i386/clflushoptintrin.h: New.
22685         * config/i386/xsavecintrin.h: Ditto.
22686         * config/i386/xsavesintrin.h: Ditto.
22687         * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
22688         (bit_XSAVES): Ditto.
22689         (bit_XSAVES): Ditto.
22690         * config/i386/driver-i386.c (host_detect_local_cpu): Handle
22691         -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
22692         -mno-clflushopt.
22693         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
22694         OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
22695         OPTION_MASK_ISA_XSAVES.
22696         * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
22697         -mxsavec, -mxsaves.
22698         (PTA_CLFLUSHOPT) Define.
22699         (PTA_XSAVEC): Ditto.
22700         (PTA_XSAVES): Ditto.
22701         (ix86_option_override_internal): Handle new options.
22702         (ix86_valid_target_attribute_inner_p): Ditto.
22703         (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
22704         IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
22705         IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
22706         (bdesc_special_args): Add __builtin_ia32_xsaves,
22707         __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
22708         __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
22709         (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
22710         (ix86_expand_builtin): Handle new builtins.
22711         * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
22712         (TARGET_CLFLUSHOPT_P): Ditto.
22713         (TARGET_XSAVEC): Ditto.
22714         (TARGET_XSAVEC_P): Ditto.
22715         (TARGET_XSAVES): Ditto.
22716         (TARGET_XSAVES_P): Ditto.
22717         * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
22718         (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
22719         (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
22720         (ANY_XRSTOR): New.
22721         (ANY_XRSTOR64): Ditto.
22722         (xrstor): Ditto.
22723         (xrstor): Change into <xrstor>.
22724         (xrstor_rex64): Change into <xrstor>_rex64.
22725         (xrstor64): Change into <xrstor>64
22726         (clflushopt): New.
22727         * config/i386/i386.opt (mclflushopt): New.
22728         (mxsavec): Ditto.
22729         (mxsaves): Ditto.
22730         * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
22731         xsavecintrin.h.
22732         * doc/invoke.texi: Document new options.
22734 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
22736         PR rtl-optimization/60866
22737         * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
22738         Default it to -1.  Pass it down to init_simplejump_data.
22739         (init_simplejump_data): New parameter old_seqno.  Pass it down
22740         to get_seqno_for_a_jump.
22741         (get_seqno_for_a_jump): New parameter old_seqno.  Use it for
22742         initializing new jump seqno as a last resort.  Add comment.
22743         (sel_redirect_edge_and_branch): Save old seqno of the conditional
22744         jump and pass it down to sel_init_new_insn.
22745         (sel_redirect_edge_and_branch_force): Likewise.
22747 2014-05-14  Georg-Johann Lay  <avr@gjlay.de>
22749         * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
22750         shifted values to avoid build warning.
22752 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
22754         * cfgcleanup.c (try_forward_edges): Use location_t for locations.
22755         * cfgrtl.c (rtl_merge_blocks): Fix comment.
22756         (cfg_layout_merge_blocks): Likewise.
22757         * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
22759 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
22761         PR rtl-optimization/60901
22762         * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
22763         bb predecessor belongs to the same scheduling region.  Adjust comment.
22765 2014-05-13  Peter Bergner  <bergner@vnet.ibm.com>
22767         * doc/sourcebuild.texi: (dfp_hw): Document.
22768         (p8vector_hw): Likewise.
22769         (powerpc_eabi_ok): Likewise.
22770         (powerpc_elfv2): Likewise.
22771         (powerpc_htm_ok): Likewise.
22772         (ppc_recip_hw): Likewise.
22773         (vsx_hw): Likewise.
22775 2014-05-13  Cary Coutant  <ccoutant@google.com>
22777         * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
22779 2014-05-13  David Malcolm  <dmalcolm@redhat.com>
22781         * gengtype-parse.c (require3): Eliminate in favor of...
22782         (require4): New.
22783         (require_template_declaration): Update to support optional single *
22784         on a type.
22786         * gengtype.c (get_ultimate_base_class): Add a non-const overload.
22787         (create_user_defined_type): Handle a single level of explicit
22788         pointerness within template arguments.
22789         (struct write_types_data): Add field "kind".
22790         (filter_type_name): Handle "*" character.
22791         (write_user_func_for_structure_ptr): Require a write_types_data
22792         rather than just a prefix string, so that we can look up the kind
22793         of the wtd and use it as an index into wrote_user_func_for_ptr,
22794         ensuring that such functions are written at most once.  Support
22795         subclasses by invoking the marking function of the ultimate base class.
22796         (write_user_func_for_structure_body): Require a write_types_data
22797         rather than just a prefix string, so that we can pass this to
22798         write_user_func_for_structure_ptr.
22799         (write_func_for_structure): Likewise.
22800         (ggc_wtd): Add initializer of new "kind" field.
22801         (pch_wtd): Likewise.
22803         * gengtype.h (enum write_types_kinds): New.
22804         (struct type): Add field wrote_user_func_for_ptr to the "s"
22805         union member.
22807 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
22809         * fold-const.c (optimize_bit_field_compare): Use wi:: operations
22810         instead of const_binop.
22811         (fold_binary_loc): Likewise.
22813 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
22815         * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
22816         calculation to match get_ref_base_and_extent.
22818 2014-05-13  Catherine Moore  <clm@codesourcery.com>
22819             Sandra Loosemore  <sandra@codesourcery.com>
22821         * configure.ac: Fix assembly for explicit JALR relocation check.
22822         * configure: Regenerate.
22824 2014-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22826         * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
22827         (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
22828         Remove associated type declarations and initialisations.
22829         (arm_expand_neon_builtin): Likewise.
22830         (neon_emit_pair_result_insn): Delete.
22831         * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
22832         * config/arm/neon.md (neon_vtrn<mode>): Delete.
22833         (neon_vzip<mode>): Likewise.
22834         (neon_vuzp<mode>): Likewise.
22836 2014-05-13  Richard Biener  <rguenther@suse.de>
22838         PR ipa/60973
22839         * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
22840         it needs revisiting whether the call still may be tail-called.
22842 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
22844         * rtl.def (SYMBOL_REF): Remove middle "0" field.
22845         * rtl.h (block_symbol): Reduce number of fields to 2.
22846         (rtx_def): Add u2.symbol_ref_flags.
22847         (SYMBOL_REF_FLAGS): Use it.
22848         (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
22849         (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
22850         * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
22851         Lower index of SYMBOL_REF_DATA.
22852         * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
22853         Print SYMBOL_REF_FLAGS at the same time.
22854         * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
22856 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
22858         * rtl.def (VAR_LOCATION): Remove "i" field.
22859         * rtl.h (rtx_def): Add u2.var_location_status.
22860         (PAT_VAR_LOCATION_STATUS): Use it.
22861         (gen_rtx_VAR_LOCATION): Declare.
22862         * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
22863         * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
22864         * var-tracking.c (emit_note_insn_var_location): Remove casts.
22866 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
22868         * rtl.def (scratch): Fix outdated comment and remove "0" field.
22869         * gengtype.c (adjust_field_rtx_def): Update accordingly.
22871 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
22873         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
22874         (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
22875         * rtl.h (rtx_def): Add insn_uid to u2 field.
22876         (RTX_FLAG_CHECK8): Delete in favor of...
22877         (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
22878         (INSN_DELETED_P): Update accordingly.
22879         (INSN_UID): Use u2.insn_uid.
22880         (INSN_CHAIN_CODE_P): Define.
22881         (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
22882         (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
22883         (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
22884         (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
22885         (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
22886         indices accordingly.
22887         * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
22888         Update indices for insn-chain rtxes.
22889         * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
22890         (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
22891         * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
22892         * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
22893         * combine.c (try_combine): Likewise.
22894         * ira.c (setup_prohibited_mode_move_regs): Likewise.
22896 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
22898         * rtl.def (REG): Remove middle field.
22899         * rtl.h (rtx_def): Add orignal_regno to u2.
22900         (ORIGINAL_REGNO): Use it instead of field 1.
22901         (REG_ATTRS): Lower field index accordingly.
22902         * gengtype.c (adjust_field_rtx_def): Remove handling of
22903         ORIGINAL_REGNO.  Move REG_ATTRS index down.
22904         * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
22905         code that prints the REGNO.
22907 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
22909         * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
22910         GENERATOR_FILE.
22912 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
22914         * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
22916 2014-05-13  Bin Cheng  <bin.cheng@arm.com>
22918         * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
22919         (alloc_iv): Lower base expressions containing ADDR_EXPR.
22921 2014-05-13  Ian Bolton  <ian.bolton@arm.com>
22923         * config/aarch64/aarch64-protos.h
22924         (aarch64_hard_regno_caller_save_mode): New prototype.
22925         * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
22926         New function.
22927         * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
22929 2014-05-13  Christian Bruel  <christian.bruel@st.com>
22931         * target.def (mode_switching): New hook vector.
22932         (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
22933         (mode_exit, modepriority_to_mode): Likewise.
22934         * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
22935         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
22936         * target.h: Include tm.h and hard-reg-set.h.
22937         * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
22938         (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
22939         * doc/tm.texi Regenerate.
22940         * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
22941         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
22942         * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
22943         (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
22944         * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
22945         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
22946         * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
22947         (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
22948         * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
22949         (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
22950         (ix86_emit_mode_set): Hookify.
22951         * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
22952         Delete.
22953         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
22954         * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
22955         (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
22956         (epiphany_mode_priority_to_mode): Remove declaration.
22957         * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
22958         (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
22959         (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
22960         Likewise.
22961         (epiphany_mode_priority_to_mode): Change priority type.  Hookify.
22962         (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
22963         (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
22965 2014-05-13  Jakub Jelinek  <jakub@redhat.com>
22967         PR target/61060
22968         * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
22969         is const0_rtx, return immediately.  Don't test count == 0 when
22970         it is always true.
22972 2014-05-13  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
22974         * Makefile.in: add shrink-wrap.o.
22975         * config/i386/i386.c: include "shrink-wrap.h"
22976         * function.c: Likewise.
22977         (requires_stack_frame_p, next_block_for_reg,
22978         move_insn_for_shrink_wrap, prepare_shrink_wrap,
22979         dup_block_and_redirect): Move to shrink-wrap.c
22980         (thread_prologue_and_epilogue_insns): Extract three code segments
22981         as functions in shrink-wrap.c
22982         * function.h: Move #ifdef HAVE_simple_return ... #endif block to
22983         shrink-wrap.h
22984         * shrink-wrap.c: New file.
22985         * shrink-wrap.h: New file.
22987 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
22989         * doc/extend.texi: Reflect current numbers of pragmas.  Remove
22990         reference to Solaris.
22992 2014-05-12  Mike Stump  <mikestump@comcast.net>
22994         PR other/31778
22995         * genattrtab.c (filename): Add.
22996         (convert_set_attr_alternative): Improve error message.
22997         (check_defs): Restore read_md_filename for error messages.
22998         (gen_insn): Save filename.
23000 2014-05-12  Dimitris Papavasiliou  <dpapavas@gmail.com>
23002         * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
23003         -fno-local-ivars and -fivar-visibility.
23004         * c-family/c.opt: Make -Wshadow also implicitly enable
23005         -Wshadow-ivar.
23007 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
23009         * doc/tm.texi: Remove reference to deleted macro.
23010         * doc/tm.texi.in: Likewise.
23012 2014-05-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
23014         PR target/60991
23015         * config/avr/avr.c (avr_out_store_psi): Use correct constant
23016         to restore Y.
23018 2014-05-12  Georg-Johann Lay  <avr@gjlay.de>
23020         PR libgcc/61152
23021         * config/arm/arm.h (License): Add GCC Runtime Library Exception.
23022         * config/arm/aout.h (License): Same.
23023         * config/arm/bpabi.h (License): Same.
23024         * config/arm/elf.h (License): Same.
23025         * config/arm/linux-elf.h (License): Same.
23026         * config/arm/linux-gas.h (License): Same.
23027         * config/arm/netbsd-elf.h (License): Same.
23028         * config/arm/uclinux-eabi.h (License): Same.
23029         * config/arm/uclinux-elf.h (License): Same.
23030         * config/arm/vxworks.h (License): Same.
23032 2014-05-11  Jakub Jelinek  <jakub@redhat.com>
23034         * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
23035         * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
23036         number of operands to 3.
23037         (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
23038         * tree-nested.c (convert_nonlocal_omp_clauses,
23039         convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
23040         * gimplify.c (gimplify_scan_omp_clauses): Handle
23041         OMP_CLAUSE_LINEAR_STMT.
23042         * omp-low.c (lower_rec_input_clauses): Fix typo.
23043         (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
23044         cast between Fortran boolean_type_node and C _Bool if
23045         needed.
23047 2014-05-11  Richard Sandiford  <rdsandiford@googlemail.com>
23049         PR tree-optimization/61136
23050         * wide-int.h (multiple_of_p): Define a version that doesn't return
23051         the quotient.
23052         * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
23053         integer_zerop/const_binop pair.
23054         (multiple_of_p): Likewise, converting both operands to widest_int
23055         precision.
23057 2014-05-09  Teresa Johnson  <tejohnson@google.com>
23059         * cgraphunit.c (analyze_functions): Use correct dump file.
23061 2014-05-09  Florian Weimer  <fweimer@redhat.com>
23063         * cfgexpand.c (stack_protect_decl_p): New function, extracted from
23064         expand_used_vars.
23065         (stack_protect_return_slot_p): New function.
23066         (expand_used_vars): Call stack_protect_decl_p and
23067         stack_protect_return_slot_p for -fstack-protector-strong.
23069 2014-05-09  David Wohlferd <LimeGreenSocks@yahoo.com>
23070         Andrew Haley <aph@redhat.com>
23071         Richard Sandiford <rdsandiford@googlemail.com>
23073         * doc/extend.texi: Rewrite inline asm page / re-org asm-related
23074         pages.
23076 2014-05-09  Kenneth Zadeck  <zadeck@naturalbridge.com>
23078         PR middle-end/61111
23079         * fold-const.c (fold_binary_loc): Changed width of mask.
23081 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
23083         * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
23084         unsigned int initializers for regno_in, regno_out.
23086 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
23088         PR target/61055
23089         * config/avr/avr.md (cc): Add new attribute set_vzn.
23090         (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
23091         Set cc insn attribute to set_vzn instead of set_zn for alternatives
23092         with INC, DEC or NEG.
23093         * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
23094         (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
23095         INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
23097 2014-05-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23099         Revert:
23100         2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23102         * wide-int.cc (UTItype): Define.
23103         (UDWtype): Define for appropriate W_TYPE_SIZE.
23105 2014-05-09  Richard Biener  <rguenther@suse.de>
23107         * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
23108         * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
23109         (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
23110         (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
23111         ssa_propagate): Adjust.
23113 2014-05-08  Jeff Law  <law@redhat.com>
23115         PR tree-optimization/61009
23116         * tree-ssa-threadedge.c (thread_through_normal_block): Return a
23117         tri-state rather than a boolean.  When a block is too big to
23118         thread through, inform caller via negative return value.
23119         (thread_across_edge): If a block was too big for normal threading,
23120         then it's too big for a joiner too, so remove temporary equivalences
23121         and return immediately.
23123 2014-05-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23124             Matthias Klose  <doko@ubuntu.com>
23126         PR driver/61106
23127         * optc-gen.awk: Fix option handling for -Wunused-parameter.
23129 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
23131         PR target/59952
23132         * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
23134 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
23136         PR target/61092
23137         * config/alpha/alpha.c: Include gimple-iterator.h.
23138         (alpha_gimple_fold_builtin): New function.  Move
23139         ALPHA_BUILTIN_UMULH folding from ...
23140         (alpha_fold_builtin): ... here.
23141         (TARGET_GIMPLE_FOLD_BUILTIN): New define.
23143 2014-05-08  Wei Mi  <wmi@google.com>
23145         PR target/58066
23146         * config/i386/i386.c (ix86_compute_frame_layout): Update
23147         preferred_stack_boundary for call, expanded from tls descriptor.
23148         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
23149         to depend on SP register.
23150         (*tls_local_dynamic_base_32_gnu): Ditto.
23151         (*tls_local_dynamic_32_once): Ditto.
23152         (tls_global_dynamic_64_<mode>): Set
23153         ix86_tls_descriptor_calls_expanded_in_cfun.
23154         (tls_local_dynamic_base_64_<mode>): Ditto.
23155         (tls_global_dynamic_32): Set
23156         ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
23157         to depend on SP register.
23158         (tls_local_dynamic_base_32): Ditto.
23160 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23162         * config/arm/arm_neon.h: Update comment.
23163         * config/arm/neon-docgen.ml: Delete.
23164         * config/arm/neon-gen.ml: Delete.
23165         * doc/arm-neon-intrinsics.texi: Update comment.
23167 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23169         * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
23170         and v4sf versions.
23171         (vand, vorr, veor, vorn, vbic): Remove.
23172         * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
23173         iterator.
23174         (neon_vsub_unspec): Likewise.
23175         (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
23177 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23179         * config/arm/arm_neon.h (vadd_s8): GNU C implementation
23180         (vadd_s16): Likewise.
23181         (vadd_s32): Likewise.
23182         (vadd_f32): Likewise.
23183         (vadd_u8): Likewise.
23184         (vadd_u16): Likewise.
23185         (vadd_u32): Likewise.
23186         (vadd_s64): Likewise.
23187         (vadd_u64): Likewise.
23188         (vaddq_s8): Likewise.
23189         (vaddq_s16): Likewise.
23190         (vaddq_s32): Likewise.
23191         (vaddq_s64): Likewise.
23192         (vaddq_f32): Likewise.
23193         (vaddq_u8): Likewise.
23194         (vaddq_u16): Likewise.
23195         (vaddq_u32): Likewise.
23196         (vaddq_u64): Likewise.
23197         (vmul_s8): Likewise.
23198         (vmul_s16): Likewise.
23199         (vmul_s32): Likewise.
23200         (vmul_f32): Likewise.
23201         (vmul_u8): Likewise.
23202         (vmul_u16): Likewise.
23203         (vmul_u32): Likewise.
23204         (vmul_p8): Likewise.
23205         (vmulq_s8): Likewise.
23206         (vmulq_s16): Likewise.
23207         (vmulq_s32): Likewise.
23208         (vmulq_f32): Likewise.
23209         (vmulq_u8): Likewise.
23210         (vmulq_u16): Likewise.
23211         (vmulq_u32): Likewise.
23212         (vsub_s8): Likewise.
23213         (vsub_s16): Likewise.
23214         (vsub_s32): Likewise.
23215         (vsub_f32): Likewise.
23216         (vsub_u8): Likewise.
23217         (vsub_u16): Likewise.
23218         (vsub_u32): Likewise.
23219         (vsub_s64): Likewise.
23220         (vsub_u64): Likewise.
23221         (vsubq_s8): Likewise.
23222         (vsubq_s16): Likewise.
23223         (vsubq_s32): Likewise.
23224         (vsubq_s64): Likewise.
23225         (vsubq_f32): Likewise.
23226         (vsubq_u8): Likewise.
23227         (vsubq_u16): Likewise.
23228         (vsubq_u32): Likewise.
23229         (vsubq_u64): Likewise.
23230         (vand_s8): Likewise.
23231         (vand_s16): Likewise.
23232         (vand_s32): Likewise.
23233         (vand_u8): Likewise.
23234         (vand_u16): Likewise.
23235         (vand_u32): Likewise.
23236         (vand_s64): Likewise.
23237         (vand_u64): Likewise.
23238         (vandq_s8): Likewise.
23239         (vandq_s16): Likewise.
23240         (vandq_s32): Likewise.
23241         (vandq_s64): Likewise.
23242         (vandq_u8): Likewise.
23243         (vandq_u16): Likewise.
23244         (vandq_u32): Likewise.
23245         (vandq_u64): Likewise.
23246         (vorr_s8): Likewise.
23247         (vorr_s16): Likewise.
23248         (vorr_s32): Likewise.
23249         (vorr_u8): Likewise.
23250         (vorr_u16): Likewise.
23251         (vorr_u32): Likewise.
23252         (vorr_s64): Likewise.
23253         (vorr_u64): Likewise.
23254         (vorrq_s8): Likewise.
23255         (vorrq_s16): Likewise.
23256         (vorrq_s32): Likewise.
23257         (vorrq_s64): Likewise.
23258         (vorrq_u8): Likewise.
23259         (vorrq_u16): Likewise.
23260         (vorrq_u32): Likewise.
23261         (vorrq_u64): Likewise.
23262         (veor_s8): Likewise.
23263         (veor_s16): Likewise.
23264         (veor_s32): Likewise.
23265         (veor_u8): Likewise.
23266         (veor_u16): Likewise.
23267         (veor_u32): Likewise.
23268         (veor_s64): Likewise.
23269         (veor_u64): Likewise.
23270         (veorq_s8): Likewise.
23271         (veorq_s16): Likewise.
23272         (veorq_s32): Likewise.
23273         (veorq_s64): Likewise.
23274         (veorq_u8): Likewise.
23275         (veorq_u16): Likewise.
23276         (veorq_u32): Likewise.
23277         (veorq_u64): Likewise.
23278         (vbic_s8): Likewise.
23279         (vbic_s16): Likewise.
23280         (vbic_s32): Likewise.
23281         (vbic_u8): Likewise.
23282         (vbic_u16): Likewise.
23283         (vbic_u32): Likewise.
23284         (vbic_s64): Likewise.
23285         (vbic_u64): Likewise.
23286         (vbicq_s8): Likewise.
23287         (vbicq_s16): Likewise.
23288         (vbicq_s32): Likewise.
23289         (vbicq_s64): Likewise.
23290         (vbicq_u8): Likewise.
23291         (vbicq_u16): Likewise.
23292         (vbicq_u32): Likewise.
23293         (vbicq_u64): Likewise.
23294         (vorn_s8): Likewise.
23295         (vorn_s16): Likewise.
23296         (vorn_s32): Likewise.
23297         (vorn_u8): Likewise.
23298         (vorn_u16): Likewise.
23299         (vorn_u32): Likewise.
23300         (vorn_s64): Likewise.
23301         (vorn_u64): Likewise.
23302         (vornq_s8): Likewise.
23303         (vornq_s16): Likewise.
23304         (vornq_s32): Likewise.
23305         (vornq_s64): Likewise.
23306         (vornq_u8): Likewise.
23307         (vornq_u16): Likewise.
23308         (vornq_u32): Likewise.
23309         (vornq_u64): Likewise.
23311 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23313         * wide-int.cc (UTItype): Define.
23314         (UDWtype): Define for appropriate W_TYPE_SIZE.
23316 2014-05-08  Marc Glisse  <marc.glisse@inria.fr>
23318         PR tree-optimization/59100
23319         * tree-ssa-phiopt.c: Include tree-inline.h.
23320         (neutral_element_p, absorbing_element_p): New functions.
23321         (value_replacement): Handle conditional binary operations with a
23322         neutral or absorbing element.
23324 2014-05-08  Richard Biener  <rguenther@suse.de>
23326         * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
23327         folding the expression.
23328         (valueize_expr): Remove.
23329         (visit_reference_op_load): Do not valueize the result of
23330         vn_get_expr_for.
23331         (simplify_binary_expression): Likewise.
23332         (simplify_unary_expression): Likewise.
23334 2014-05-08  Richard Biener  <rguenther@suse.de>
23336         * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
23337         looking at TYPE_ARG_TYPES.
23339 2014-05-08  Richard Biener  <rguenther@suse.de>
23341         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
23342         pointer propagation special-case.
23344 2014-05-08  Bin Cheng  <bin.cheng@arm.com>
23346         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
23347         core part of address expressions.
23349 2014-05-08  Alan Modra  <amodra@gmail.com>
23351         PR target/60737
23352         * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
23353         loads and stores when -mno-strict-align at any alignment.
23354         (expand_block_clear): Similarly.  Also correct calculation of
23355         instruction count.
23357 2014-05-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
23359         PR middle-end/39246
23360         * tree-complex.c (expand_complex_move): Keep line info when expanding
23361         complex move.
23362         * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
23363         of complex expression. Use new argument to display correct location
23364         for values coming from phi statement.
23365         (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
23366         (warn_uninitialized_phi): Pass location of phi argument to
23367         warn_uninit.
23368         * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
23369         COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
23371 2014-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
23373         * config/rs6000/predicates.md (indexed_address_mem): New.
23374         * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
23375         load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
23376         fpstore_ux, fpstore_u.
23377         (sign_extend, indexed, update): New.
23378         (cell_micro): Adjust.
23379         (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
23380         *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
23381         *movsi_internal1, *movsi_internal1_single, *movhi_internal,
23382         *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
23383         *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
23384         *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
23385         *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
23386         *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
23387         *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
23388         *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
23389         *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
23390         *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
23391         *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
23392         *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
23393         *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
23395         * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
23396         * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
23397         *vsx_extract_<mode>_store): Adjust.
23398         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
23399         is_cracked_insn, insn_must_be_first_in_group,
23400         insn_must_be_last_in_group): Adjust.
23402         * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
23403         Adjust.
23404         * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
23405         ppc440-fpstore): Adjust.
23406         * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
23407         ppc476-fpstore): Adjust.
23408         * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
23409         ppc601-fpstore): Adjust.
23410         * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
23411         Adjust.
23412         * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
23413         Adjust.
23414         * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
23415         ppc7450-fpstore): Adjust.
23416         * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
23417         * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
23418         * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
23419         Adjust.
23420         * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
23421         cell-fpload, cell-fpload-update, cell-store, cell-store-update,
23422         cell-fpstore, cell-fpstore-update): Adjust.
23423         * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
23424         ppce300c3_store, ppce300c3_fpstore): Adjust.
23425         * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
23426         e500mc_fpstore): Adjust.
23427         * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
23428         e500mc64_store, e500mc64_fpstore): Adjust.
23429         * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
23430         e5500_fpstore): Adjust.
23431         * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
23432         e6500_fpstore): Adjust.
23433         * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
23434         Adjust.
23435         * config/rs6000/power4.md (power4-load, power4-load-ext,
23436         power4-load-ext-update, power4-load-ext-update-indexed,
23437         power4-load-update-indexed, power4-load-update, power4-fpload,
23438         power4-fpload-update, power4-store, power4-store-update,
23439         power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
23440         Adjust.
23441         * config/rs6000/power5.md (power5-load, power5-load-ext,
23442         power5-load-ext-update, power5-load-ext-update-indexed,
23443         power5-load-update-indexed, power5-load-update, power5-fpload,
23444         power5-fpload-update, power5-store, power5-store-update,
23445         power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
23446         Adjust.
23447         * config/rs6000/power6.md (power6-load, power6-load-ext,
23448         power6-load-update, power6-load-update-indexed,
23449         power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
23450         power6-fpload-update, power6-store, power6-store-update,
23451         power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
23452         Adjust.
23453         * config/rs6000/power7.md (power7-load, power7-load-ext,
23454         power7-load-update, power7-load-update-indexed,
23455         power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
23456         power7-fpload-update, power7-store, power7-store-update,
23457         power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
23458         Adjust.
23459         * config/rs6000/power8.md (power8-load, power8-load-update,
23460         power8-load-ext, power8-load-ext-update, power8-fpload,
23461         power8-fpload-update, power8-store, power8-store-update-indexed,
23462         power8-fpstore, power8-fpstore-update): Adjust.
23463         * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
23464         Adjust.
23465         * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
23466         titan_lsu_store, titan_lsu_fpstore): Adjust.
23467         * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
23469 2014-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
23471         PR target/60884
23472         * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
23473         unrolled byte insns.  Emit address increments after move insns.
23475 2014-05-07  David Malcolm  <dmalcolm@redhat.com>
23477         * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
23478         const_gimple, rather than a gimple.
23479         (gimple_call_builtin_p): Likewise, for the three variants.
23481         * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
23482         (gimple_call_builtin_p): Likewise, for the three variants.
23484 2014-05-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
23486         PR tree-optimization/61095
23487         * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
23489 2014-05-07  Richard Biener  <rguenther@suse.de>
23491         PR tree-optimization/61034
23492         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
23493         (maybe_skip_until): Use translate to take into account
23494         lattices when trying to do disambiguations.
23495         (get_continuation_for_phi_1): Likewise.
23496         (get_continuation_for_phi): Adjust for added translate arguments.
23497         (walk_non_aliased_vuses): Likewise.
23498         * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
23499         (walk_non_aliased_vuses): Likewise.
23500         (call_may_clobber_ref_p_1): Declare.
23501         * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
23502         calls.  Stop early if we are only supposed to disambiguate.
23503         * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
23505 2014-05-07  Joern Rennecke  <joern.rennecke@embecosm.com>
23507         * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
23508         Emit an error when the function has arguments.
23510 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
23512         * cfgloop.h (unswitch_loops): Remove.
23513         * doc/passes.texi: Remove references to loop-unswitch.c
23514         * timevar.def (TV_LOOP_UNSWITCH): Remove.
23516 2014-05-07  Evgeny Stupachenko  <evstupac@gmail.com>
23518         * tree-vect-data-refs.c (vect_grouped_load_supported): New
23519         check for loads group of length 3.
23520         (vect_permute_load_chain): New permutations for loads group of
23521         length 3.
23522         * tree-vect-stmts.c (vect_model_load_cost): Change cost
23523         of vec_perm_shuffle for the new permutations.
23525 2014-05-07  Alan Lawrence  <alan.lawrence@arm.com>
23527         * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
23528         vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
23529         vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
23530         vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
23531         vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
23532         vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
23533         vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
23534         vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
23536 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
23538         * loop-unswitch.c: Delete.
23540 2014-05-07  Richard Biener  <rguenther@suse.de>
23542         * config.gcc: Always set need_64bit_hwint to yes.
23544 2014-05-07  Chung-Ju Wu  <jasonwucj@gmail.com>
23546         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
23547         of using optimize_size.
23549 2014-05-06  Mike Stump  <mikestump@comcast.net>
23551         * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
23553 2014-05-06  Joseph Myers  <joseph@codesourcery.com>
23555         * config/i386/sse.md (*mov<mode>_internal)
23556         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
23557         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
23558         (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
23559         (*<code><mode>3, *andnot<mode>3<mask_name>)
23560         (<mask_codefor><code><mode>3<mask_name>): Only consider
23561         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
23563 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
23565         Revert:
23566         2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
23568         * lra-constraints.c (valid_address_p): Move earlier in file.
23569         Add a constraint argument to the address_info version.
23570         (satisfies_memory_constraint_p): New function.
23571         (satisfies_address_constraint_p): Likewise.
23572         (process_alt_operands, curr_insn_transform): Use them.
23573         (process_address): Pass the constraint to valid_address_p when
23574         checking address operands.
23576 2014-05-06  Richard Sandiford  <r.sandiford@uk.ibm.com>
23578         * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
23579         to their respective blocks.  Fix inadvertent use of "node".
23581 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
23583         * emit-rtl.c (init_derived_machine_modes): New functionm, split
23584         out from...
23585         (init_emit_once): ...here.
23586         * rtl.h (init_derived_machine_modes): Declare.
23587         * toplev.c (do_compile): Call it even if no_backend.
23589 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
23590             Mike Stump  <mikestump@comcast.net>
23591             Richard Sandiford  <rdsandiford@googlemail.com>
23592             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23594         * alias.c (ao_ref_from_mem): Use wide-int interfaces.
23595         (rtx_equal_for_memref_p): Update comment.
23596         (adjust_offset_for_component_ref): Use wide-int interfaces.
23597         * builtins.c (get_object_alignment_2): Likewise.
23598         (c_readstr): Likewise.
23599         (target_char_cast): Add comment.
23600         (determine_block_size): Use wide-int interfaces.
23601         (expand_builtin_signbit): Likewise.
23602         (fold_builtin_int_roundingfn): Likewise.
23603         (fold_builtin_bitop): Likewise.
23604         (fold_builtin_bswap): Likewise.
23605         (fold_builtin_logarithm): Use signop.
23606         (fold_builtin_pow): Likewise.
23607         (fold_builtin_memory_op): Use wide-int interfaces.
23608         (fold_builtin_object_size): Likewise.
23609         * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
23610         nb_iterations_estimate.
23611         (record_niter_bound): Use wide-int interfaces.
23612         (get_estimated_loop_iterations_int): Likewise.
23613         (get_estimated_loop_iterations): Likewise.
23614         (get_max_loop_iterations): Likewise.
23615         * cfgloop.h: Include wide-int.h.
23616         (struct nb_iter_bound): Change bound to widest_int.
23617         (struct loop): Change nb_iterations_upper_bound and
23618         nb_iterations_estimate to widest_int.
23619         (record_niter_bound): Switch to use widest_int.
23620         (get_estimated_loop_iterations): Likewise.
23621         (get_max_loop_iterations): Likewise.
23622         (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
23623         update for wide-int.
23624         * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
23625         * combine.c (try_combine): Likewise.
23626         (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
23627         * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
23628         interfaces.
23629         (aarch64_float_const_representable_p): Likewise.
23630         * config/arc/arc.c: Include wide-int.h.
23631         (arc_can_use_doloop_p): Use wide-int interfaces.
23632         * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
23633         (vfp3_const_double_index): Likewise.
23634         * config/avr/avr.c (avr_out_round): Likewise.
23635         (avr_fold_builtin): Likewise.
23636         * config/bfin/bfin.c (bfin_local_alignment): Likewise.
23637         (bfin_can_use_doloop_p): Likewise.
23638         * config/darwin.c (darwin_mergeable_constant_section): Likewise.
23639         (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
23640         * config/i386/i386.c: Include wide-int.h.
23641         (ix86_data_alignment): Use wide-int interfaces.
23642         (ix86_local_alignment): Likewise.
23643         (ix86_emit_swsqrtsf): Update real_from_integer.
23644         * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
23645         * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
23646         * config/rs6000/predicates.md (any_operand): Add const_wide_int.
23647         (zero_constant): Likewise.
23648         (input_operand): Likewise.
23649         (splat_input_operand): Likewise.
23650         (non_logical_cint_operand): Change const_double to const_wide_int.
23651         * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
23652         (easy_altivec_constant): Remove comment.
23653         (paired_expand_vector_init): Use CONSTANT_P.
23654         (rs6000_legitimize_address): Handle CONST_WIDE_INT.
23655         (rs6000_emit_move): Update checks.
23656         (rs6000_aggregate_candidate): Use wide-int interfaces.
23657         (rs6000_expand_ternop_builtin): Likewise.
23658         (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
23659         (rs6000_assemble_integer): Likewise.
23660         (rs6000_hash_constant): Likewise.
23661         (output_toc): Likewise.
23662         (rs6000_rtx_costs): Likewise.
23663         (rs6000_emit_swrsqrt); Update call to real_from_integer.
23664         * config/rs6000/rs6000-c.c: Include wide-int.h.
23665         (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
23666         * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
23667         * config/rs6000/rs6000.md: Use const_scalar_int_operand.
23668         Handle CONST_WIDE_INT.
23669         * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
23670         Use tree_fits_uhwi_p.
23671         * config/sparc/sparc.c: Include wide-int.h.
23672         (sparc_fold_builtin): Use wide-int interfaces.
23673         * config/vax/vax.c: Include wide-int.h.
23674         (vax_float_literal): Use real_from_integer.
23675         * coretypes.h (struct hwivec_def): New.
23676         (hwivec): New.
23677         (const_hwivec): New.
23678         * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
23679         (equiv_constant): Handle CONST_WIDE_INT.
23680         * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
23681         (cselib_hash_rtx): Handle CONST_WIDE_INT.
23682         * dbxout.c (stabstr_U): Use wide-int interfaces.
23683         (dbxout_type): Update to use cst_fits_shwi_p.
23684         * defaults.h (LOG2_BITS_PER_UNIT): Define.
23685         (TARGET_SUPPORTS_WIDE_INT): Add default.
23686         * dfp.c: Include wide-int.h.
23687         (decimal_real_to_integer2): Use wide-int interfaces and rename to
23688         decimal_real_to_integer.
23689         * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
23690         decimal_real_to_integer.
23691         * doc/generic.texi (Constant expressions): Update for wide_int.
23692         * doc/rtl.texi (const_double): Likewise.
23693         (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
23694         (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
23695         * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
23696         (REAL_VALUE_FROM_INT): Remove.
23697         (TARGET_SUPPORTS_WIDE_INT): New.
23698         * doc/tm.texi: Regenerate.
23699         * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
23700         * double-int.h: Include wide-int.h.
23701         (struct wi::int_traits): New.
23702         * dwarf2out.c (get_full_len): New.
23703         (dw_val_equal_p): Add case dw_val_class_wide_int.
23704         (size_of_loc_descr): Likewise.
23705         (output_loc_operands): Likewise.
23706         (insert_double): Remove.
23707         (insert_wide_int): New.
23708         (add_AT_wide): New.
23709         (print_die): Add case dw_val_class_wide_int.
23710         (attr_checksum): Likewise.
23711         (attr_checksum_ordered): Likewise.
23712         (same_dw_val_p): Likewise.
23713         (size_of_die): Likewise.
23714         (value_format): Likewise.
23715         (output_die): Likewise.
23716         (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
23717         Use wide-int.
23718         (clz_loc_descriptor): Use wide-int interfaces.
23719         (mem_loc_descriptor): Likewise.  Handle CONST_WIDE_INT.
23720         (loc_descriptor): Use wide-int interfaces.  Handle CONST_WIDE_INT.
23721         (round_up_to_align): Use wide-int interfaces.
23722         (field_byte_offset): Likewise.
23723         (insert_double): Rename to insert_wide_int.  Use wide-int interfaces.
23724         (add_const_value_attribute): Handle CONST_WIDE_INT.  Update
23725         CONST_DOUBLE handling.  Use wide-int interfaces.
23726         (add_bound_info): Use tree_fits_uhwi_p.  Use wide-int interfaces.
23727         (gen_enumeration_type_die): Use add_AT_wide.
23728         (hash_loc_operands): Add case dw_val_class_wide_int.
23729         (compare_loc_operands): Likewise.
23730         * dwarf2out.h: Include wide-int.h.
23731         (wide_int_ptr): New.
23732         (enum dw_val_class): Add dw_val_class_wide_int.
23733         (struct dw_val_struct): Add val_wide.
23734         * emit-rtl.c (const_wide_int_htab): New.
23735         (const_wide_int_htab_hash): New.
23736         (const_wide_int_htab_eq): New.
23737         (lookup_const_wide_int): New.
23738         (const_double_htab_hash): Use wide-int interfaces.
23739         (const_double_htab_eq): Likewise.
23740         (rtx_to_double_int): Conditionally compile for wide-int.
23741         (immed_double_int_const): Rename to immed_wide_int_const and
23742         update for wide-int.
23743         (immed_double_const): Conditionally compile for wide-int.
23744         (init_emit_once): Use wide-int interfaces.
23745         * explow.c (plus_constant): Likewise.
23746         * expmed.c (mask_rtx): Move further up file.  Use wide-int interfaces.
23747         (lshift_value): Use wide-int interfaces.
23748         (expand_mult): Likewise.
23749         (choose_multiplier): Likewise.
23750         (expand_smod_pow2): Likewise.
23751         (make_tree): Likewise.
23752         * expr.c (convert_modes): Consolidate handling of constants.
23753         Use wide-int interfaces.
23754         (emit_group_load_1): Add note.
23755         (store_expr): Update comment.
23756         (get_inner_reference): Use wide-int interfaces.
23757         (expand_constructor): Update comment.
23758         (expand_expr_real_2): Use wide-int interfaces.
23759         (expand_expr_real_1): Likewise.
23760         (reduce_to_bit_field_precision): Likewise.
23761         (const_vector_from_tree): Likewise.
23762         * final.c: Include wide-int-print.h.
23763         (output_addr_const): Handle CONST_WIDE_INT.  Use CONST_DOUBLE_AS_INT_P.
23764         * fixed-value.c: Include wide-int.h.
23765         (fixed_from_string): Use wide-int interfaces.
23766         (fixed_to_decimal): Likewise.
23767         (fixed_convert_from_real): Likewise.
23768         (real_convert_from_fixed): Likewise.
23769         * fold-const.h (mem_ref_offset): Return an offset_int.
23770         (div_if_zero_remainder): Remove code parameter.
23771         * fold-const.c (div_if_zero_remainder): Remove code parameter.
23772         Use wide-int interfaces.
23773         (may_negate_without_overflow_p): Use wide-int interfaces.
23774         (negate_expr_p): Likewise.
23775         (fold_negate_expr): Likewise.
23776         (int_const_binop_1): Likewise.
23777         (const_binop): Likewise.
23778         (fold_convert_const_int_from_int): Likewise.
23779         (fold_convert_const_int_from_real): Likewise.
23780         (fold_convert_const_int_from_fixed): Likewise.
23781         (fold_convert_const_fixed_from_int): Likewise.
23782         (all_ones_mask_p): Take an unsigned size.  Use wide-int interfaces.
23783         (sign_bit_p): Use wide-int interfaces.
23784         (make_range_step): Likewise.
23785         (build_range_check): Likewise.  Pass an integer of the correct type
23786         instead of using integer_one_node.
23787         (range_predecessor): Pass an integer of the correct type instead
23788         of using integer_one_node.
23789         (range_successor): Likewise.
23790         (merge_ranges): Likewise.
23791         (unextend): Use wide-int interfaces.
23792         (extract_muldiv_1): Likewise.
23793         (fold_div_compare): Likewise.
23794         (fold_single_bit_test): Likewise.
23795         (fold_sign_changed_comparison): Likewise.
23796         (try_move_mult_to_index): Update calls to div_if_zero_remainder.
23797         (fold_plusminus_mult_expr): Use wide-int interfaces.
23798         (native_encode_int): Likewise.
23799         (native_interpret_int): Likewise.
23800         (fold_unary_loc): Likewise.
23801         (pointer_may_wrap_p): Likewise.
23802         (size_low_cst): Likewise.
23803         (mask_with_tz): Likewise.
23804         (fold_binary_loc): Likewise.
23805         (fold_ternary_loc): Likewise.
23806         (multiple_of_p): Likewise.
23807         (tree_call_nonnegative_warnv_p): Update calls to
23808         tree_int_cst_min_precision and real_from_integer.
23809         (fold_negate_const): Use wide-int interfaces.
23810         (fold_abs_const): Likewise.
23811         (fold_relational_const): Use tree_int_cst_lt.
23812         (round_up_loc): Use wide-int interfaces.
23813         * genemit.c (gen_exp): Add CONST_WIDE_INT case.
23814         * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
23815         * gengtype.c: Remove include of double-int.h.
23816         (do_typedef): Use wide-int interfaces.
23817         (open_base_files): Add wide-int.h.
23818         (main): Add offset_int and widest_int typedefs.
23819         * gengtype-lex.l: Handle "^".
23820         (CXX_KEYWORD): Add "static".
23821         * gengtype-parse.c (require3): New.
23822         (require_template_declaration): Handle constant template arguments
23823         and nested templates.
23824         * gengtype-state.c: Don't include "double-int.h".
23825         * genpreds.c (write_one_predicate_function): Update comment.
23826         (write_tm_constrs_h): Add check for hval and lval use in
23827         CONST_WIDE_INT.
23828         * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
23829         (add_to_sequence): Likewise.
23830         * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
23831         and const_double_operand.
23832         * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
23833         interfaces.
23834         * gimple-fold.c (get_base_constructor): Likewise.
23835         (fold_array_ctor_reference): Likewise.
23836         (fold_nonarray_ctor_reference): Likewise.
23837         (fold_const_aggregate_ref_1): Likewise.
23838         (gimple_val_nonnegative_real_p): Likewise.
23839         (gimple_fold_indirect_ref): Likewise.
23840         * gimple-pretty-print.c (dump_ssaname_info): Likewise.
23841         * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
23842         (struct slsr_cand_d): Change index to be widest_int.
23843         (struct incr_info_d): Change incr to be widest_int.
23844         (alloc_cand_and_find_basis): Use wide-int interfaces.
23845         (slsr_process_phi): Likewise.
23846         (backtrace_base_for_ref): Likewise.  Return a widest_int.
23847         (restructure_reference): Take a widest_int instead of a double_int.
23848         (slsr_process_ref): Use wide-int interfaces.
23849         (create_mul_ssa_cand): Likewise.
23850         (create_mul_imm_cand): Likewise.
23851         (create_add_ssa_cand): Likewise.
23852         (create_add_imm_cand): Take a widest_int instead of a double_int.
23853         (slsr_process_add): Use wide-int interfaces.
23854         (slsr_process_cast): Likewise.
23855         (slsr_process_copy): Likewise.
23856         (dump_candidate): Likewise.
23857         (dump_incr_vec): Likewise.
23858         (replace_ref): Likewise.
23859         (cand_increment): Likewise.  Return a widest_int.
23860         (cand_abs_increment): Likewise.
23861         (replace_mult_candidate): Take a widest_int instead of a double_int.
23862         (replace_unconditional_candidate): Use wide-int interfaces.
23863         (incr_vec_index): Take a widest_int instead of a double_int.
23864         (create_add_on_incoming_edge): Likewise.
23865         (create_phi_basis): Use wide-int interfaces.
23866         (replace_conditional_candidate): Likewise.
23867         (record_increment): Take a widest_int instead of a double_int.
23868         (record_phi_increments): Use wide-int interfaces.
23869         (phi_incr_cost): Take a widest_int instead of a double_int.
23870         (lowest_cost_path): Likewise.
23871         (total_savings): Likewise.
23872         (analyze_increments): Use wide-int interfaces.
23873         (ncd_with_phi): Take a widest_int instead of a double_int.
23874         (ncd_of_cand_and_phis): Likewise.
23875         (nearest_common_dominator_for_cands): Likewise.
23876         (insert_initializers): Use wide-int interfaces.
23877         (all_phi_incrs_profitable): Likewise.
23878         (replace_one_candidate): Likewise.
23879         (replace_profitable_candidates): Likewise.
23880         * godump.c: Include wide-int-print.h.
23881         (go_output_typedef): Use wide-int interfaces.
23882         * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
23883         * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
23884         (build_loop_iteration_domains): Likewise.
23885         * hooks.h: Include wide-int.h rather than double-int.h.
23886         (hook_bool_dint_dint_uint_bool_true): Delete.
23887         (hook_bool_wint_wint_uint_bool_true): Declare.
23888         * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
23889         (hook_bool_wint_wint_uint_bool_true): New.
23890         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
23891         interfaces.
23892         (ubsan_expand_si_overflow_mul_check): Likewise.
23893         * ipa-devirt.c (get_polymorphic_call_info): Likewise.
23894         * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
23895         (get_ancestor_addr_info): Likewise.
23896         (ipa_modify_call_arguments): Likewise.
23897         * loop-doloop.c (doloop_modify): Likewise.
23898         (doloop_optimize): Likewise.
23899         * loop-iv.c (iv_number_of_iterations): Likewise.
23900         * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
23901         (unroll_loop_constant_iterations): Likewise.
23902         (decide_unroll_runtime_iterations): Likewise.
23903         (unroll_loop_runtime_iterations): Likewise.
23904         (decide_peel_simple): Likewise.
23905         (decide_unroll_stupid): Likewise.
23906         * lto-streamer-in.c (streamer_read_wi): Add.
23907         (input_cfg): Use wide-int interfaces.
23908         (lto_input_tree_1): Likewise.
23909         * lto-streamer-out.c (streamer_write_wi): Add.
23910         (hash_tree): Use wide-int interfaces.
23911         (output_cfg): Likewise.
23912         * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
23913         (GTFILES): Add wide-int.h and signop.h.
23914         (TAGS): Look for .cc files too.
23915         * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
23916         * optabs.c (expand_subword_shift): Likewise.
23917         (expand_doubleword_shift): Likewise.
23918         (expand_absneg_bit): Likewise.
23919         (expand_copysign_absneg): Likewise.
23920         (expand_copysign_bit): Likewise.
23921         * postreload.c (reload_cse_simplify_set): Likewise.
23922         * predict.c (predict_iv_comparison): Likewise.
23923         * pretty-print.h: Include wide-int-print.h.
23924         (pp_wide_int) New.
23925         * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
23926         * print-tree.c: Include wide-int-print.h.
23927         (print_node_brief): Use wide-int interfaces.
23928         (print_node): Likewise.
23929         * read-rtl.c (validate_const_wide_int): New.
23930         (read_rtx_code): Add CONST_WIDE_INT case.
23931         * real.c: Include wide-int.h.
23932         (real_to_integer2): Delete.
23933         (real_to_integer): New function, returning a wide_int.
23934         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
23935         (ten_to_ptwo): Update call to real_from_integer.
23936         (real_digit): Likewise.
23937         * real.h: Include signop.h, wide-int.h and insn-modes.h.
23938         (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
23939         (REAL_VALUE_TO_INT): Delete.
23940         (real_to_integer): Declare a wide-int form.
23941         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
23942         * recog.c (const_int_operand): Improve comment.
23943         (const_scalar_int_operand): New.
23944         (const_double_operand): Add a separate definition for CONST_WIDE_INT.
23945         * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
23946         (split_double): Likewise.
23947         * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
23948         (rtx_size): Likewise.
23949         (rtx_alloc_stat_v): New.
23950         (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
23951         (cwi_output_hex): New.
23952         (iterative_hash_rtx): Handle CONST_WIDE_INT.
23953         (cwi_check_failed_bounds): New.
23954         * rtl.def (CONST_WIDE_INT): New.
23955         * rtl.h: Include <utility> and wide-int.h.
23956         (struct hwivec_def): New.
23957         (CWI_GET_NUM_ELEM): New.
23958         (CWI_PUT_NUM_ELEM): New.
23959         (struct rtx_def): Add num_elem and hwiv.
23960         (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
23961         (CASE_CONST_UNIQUE): Likewise.
23962         (CASE_CONST_ANY): Likewise.
23963         (CONST_SCALAR_INT_P): Likewise.
23964         (CONST_WIDE_INT_P): New.
23965         (CWI_ELT): New.
23966         (HWIVEC_CHECK): New.
23967         (cwi_check_failed_bounds): New.
23968         (CWI_ELT): New.
23969         (HWIVEC_CHECK): New.
23970         (CONST_WIDE_INT_VEC) New.
23971         (CONST_WIDE_INT_NUNITS) New.
23972         (CONST_WIDE_INT_ELT) New.
23973         (rtx_mode_t): New type.
23974         (wi::int_traits <rtx_mode_t>): New.
23975         (wi::shwi): New.
23976         (wi::min_value): New.
23977         (wi::max_value): New.
23978         (rtx_alloc_v) New.
23979         (const_wide_int_alloc): New.
23980         (immed_wide_int_const): New.
23981         * sched-vis.c (print_value): Handle CONST_WIDE_INT.
23982         * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
23983         * signop.h: New file.
23984         * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
23985         (simplify_const_unary_operation): Use wide-int interfaces.
23986         (simplify_binary_operation_1): Likewise.
23987         (simplify_const_binary_operation): Likewise.
23988         (simplify_const_relational_operation): Likewise.
23989         (simplify_immed_subreg): Likewise.
23990         * stmt.c (expand_case): Likewise.
23991         * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
23992         signop rather than a bool.
23993         * stor-layout.c (layout_type): Use wide-int interfaces.
23994         (initialize_sizetypes): Update calls to
23995         set_min_and_max_values_for_integral_type.
23996         (set_min_and_max_values_for_integral_type): Take a signop rather
23997         than a bool.  Use wide-int interfaces.
23998         (fixup_signed_type): Update accordingly.  Remove
23999         HOST_BITS_PER_DOUBLE_INT limit.
24000         (fixup_unsigned_type): Likewise.
24001         * system.h (STATIC_CONSTANT_P): New.
24002         (STATIC_ASSERT): New.
24003         * target.def (can_use_doloop_p): Take widest_ints rather than
24004         double_ints.
24005         * target.h: Include wide-int.h rather than double-int.h.
24006         * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
24007         than double_ints.
24008         * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
24009         rather than INT_CST_LT_UNSIGNED.
24010         (can_use_doloop_if_innermost): Take widest_ints rather than
24011         double_ints.
24012         * tree-affine.c: Include wide-int-print.h.
24013         (double_int_ext_for_comb): Delete.
24014         (wide_int_ext_for_comb): New.
24015         (aff_combination_zero): Use wide-int interfaces.
24016         (aff_combination_const): Take a widest_int instead of a double_int.
24017         (aff_combination_elt): Use wide-int interfaces.
24018         (aff_combination_scale): Take a widest_int instead of a double_int.
24019         (aff_combination_add_elt): Likewise.
24020         (aff_combination_add_cst): Likewise.
24021         (aff_combination_add): Use wide-int interfaces.
24022         (aff_combination_convert): Likewise.
24023         (tree_to_aff_combination): Likewise.
24024         (add_elt_to_tree): Take a widest_int instead of a double_int.
24025         (aff_combination_to_tree): Use wide-int interfaces.
24026         (aff_combination_remove_elt): Likewise.
24027         (aff_combination_add_product): Take a widest_int instead of
24028         a double_int.
24029         (aff_combination_mult): Use wide-int interfaces.
24030         (aff_combination_expand): Likewise.
24031         (double_int_constant_multiple_p): Delete.
24032         (wide_int_constant_multiple_p): New.
24033         (aff_combination_constant_multiple_p): Take a widest_int pointer
24034         instead of a double_int pointer.
24035         (print_aff): Use wide-int interfaces.
24036         (get_inner_reference_aff): Take a widest_int pointer
24037         instead of a double_int pointer.
24038         (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
24039         * tree-affine.h: Include wide-int.h.
24040         (struct aff_comb_elt): Change type of coef to widest_int.
24041         (struct affine_tree_combination): Change type of offset to widest_int.
24042         (double_int_ext_for_comb): Delete.
24043         (wide_int_ext_for_comb): New.
24044         (aff_combination_const): Use widest_int instead of double_int.
24045         (aff_combination_scale): Likewise.
24046         (aff_combination_add_elt): Likewise.
24047         (aff_combination_constant_multiple_p): Likewise.
24048         (get_inner_reference_aff): Likewise.
24049         (aff_comb_cannot_overlap_p): Likewise.
24050         (aff_combination_zero_p): Use wide-int interfaces.
24051         * tree.c: Include tree.h.
24052         (init_ttree): Use make_int_cst.
24053         (tree_code_size): Removed code for INTEGER_CST case.
24054         (tree_size): Add INTEGER_CST case.
24055         (make_node_stat): Update comment.
24056         (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
24057         (build_int_cst_type): Use wide-int interfaces.
24058         (double_int_to_tree): Likewise.
24059         (double_int_fits_to_tree_p): Delete.
24060         (force_fit_type_double): Delete.
24061         (force_fit_type): New.
24062         (int_cst_hash_hash): Use wide-int interfaces.
24063         (int_cst_hash_eq): Likewise.
24064         (build_int_cst_wide): Delete.
24065         (wide_int_to_tree): New.
24066         (cache_integer_cst): Use wide-int interfaces.
24067         (build_low_bits_mask): Likewise.
24068         (cst_and_fits_in_hwi): Likewise.
24069         (real_value_from_int_cst): Likewise.
24070         (make_int_cst_stat): New.
24071         (integer_zerop): Use wide_int interfaces.
24072         (integer_onep): Likewise.
24073         (integer_all_onesp): Likewise.
24074         (integer_pow2p): Likewise.
24075         (integer_nonzerop): Likewise.
24076         (tree_log2): Likewise.
24077         (tree_floor_log2): Likewise.
24078         (tree_ctz): Likewise.
24079         (int_size_in_bytes): Likewise.
24080         (mem_ref_offset): Return an offset_int rather than a double_int.
24081         (build_type_attribute_qual_variant): Use wide_int interfaces.
24082         (type_hash_eq): Likewise
24083         (tree_int_cst_equal): Likewise.
24084         (tree_int_cst_lt): Delete.
24085         (tree_int_cst_compare): Likewise.
24086         (tree_fits_shwi_p): Use wide_int interfaces.
24087         (tree_fits_uhwi_p): Likewise.
24088         (tree_int_cst_sign_bit): Likewise.
24089         (tree_int_cst_sgn): Likewise.
24090         (tree_int_cst_min_precision): Take a signop rather than a bool.
24091         (simple_cst_equal): Use wide_int interfaces.
24092         (compare_tree_int): Likewise.
24093         (iterative_hash_expr): Likewise.
24094         (int_fits_type_p): Likewise.  Use tree_int_cst_lt rather than
24095         INT_CST_LT.
24096         (get_type_static_bounds): Use wide_int interfaces.
24097         (tree_int_cst_elt_check_failed): New.
24098         (build_common_tree_nodes): Reordered to set prec before filling in
24099         value.
24100         (int_cst_value): Check cst_and_fits_in_hwi.
24101         (widest_int_cst_value): Use wide_int interfaces.
24102         (upper_bound_in_type): Likewise.
24103         (lower_bound_in_type): Likewise.
24104         (num_ending_zeros): Likewise.
24105         (drop_tree_overflow): Likewise.
24106         * tree-call-cdce.c (check_pow): Update call to real_from_integer.
24107         (gen_conditions_for_pow_cst_base): Likewise.
24108         * tree-cfg.c: Include wide-int.h and wide-int-print.h.
24109         (group_case_labels_stmt): Use wide-int interfaces.
24110         (verify_gimple_assign_binary): Likewise.
24111         (print_loop): Likewise.
24112         * tree-chrec.c (tree_fold_binomial): Likewise.
24113         * tree-core.h (struct tree_base): Add int_length.
24114         (struct tree_int_cst): Change rep of value.
24115         * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
24116         (dr_may_alias_p): Likewise.
24117         (max_stmt_executions_tree): Likewise.
24118         * tree.def (INTEGER_CST): Update comment.
24119         * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
24120         * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
24121         * tree-dump.c: Include wide-int.h and wide-int-print.h.
24122         (dequeue_and_dump): Use wide-int interfaces.
24123         * tree.h: Include wide-int.h.
24124         (NULL_TREE): Moved to earlier loc in file.
24125         (TREE_INT_CST_ELT_CHECK): New.
24126         (tree_int_cst_elt_check_failed): New.
24127         (TYPE_SIGN): New.
24128         (TREE_INT_CST): Delete.
24129         (TREE_INT_CST_LOW): Use wide-int interfaces.
24130         (TREE_INT_CST_HIGH): Delete.
24131         (TREE_INT_CST_NUNITS): New.
24132         (TREE_INT_CST_EXT_NUNITS): Likewise.
24133         (TREE_INT_CST_OFFSET_NUNITS): Likewise.
24134         (TREE_INT_CST_ELT): Likewise.
24135         (INT_CST_LT): Delete.
24136         (tree_int_cst_elt_check): New (two forms).
24137         (type_code_size): Update comment.
24138         (make_int_cst_stat, make_int_cst): New.
24139         (tree_to_double_int): Delete.
24140         (double_int_fits_to_tree_p): Delete.
24141         (force_fit_type_double): Delete.
24142         (build_int_cstu): Replace with out-of-line function.
24143         (build_int_cst_wide): Delete.
24144         (tree_int_cst_lt): Define inline.
24145         (tree_int_cst_le): New.
24146         (tree_int_cst_compare): Define inline.
24147         (tree_int_cst_min_precision): Take a signop rather than a bool.
24148         (wi::int_traits <const_tree>): New.
24149         (wi::int_traits <tree>): New.
24150         (wi::extended_tree): New.
24151         (wi::int_traits <wi::extended_tree>): New.
24152         (wi::to_widest): New.
24153         (wi::to_offset): New.
24154         (wi::fits_to_tree_p): New.
24155         (wi::min_value): New.
24156         (wi::max_value): New.
24157         * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
24158         (copy_tree_body_r): Likewise.
24159         * tree-object-size.c (compute_object_offset): Likewise.
24160         (addr_object_size): Likewise.
24161         * tree-predcom.c: Include wide-int-print.h.
24162         (struct dref_d): Change type of offset to widest_int.
24163         (dump_dref): Call wide-int printer.
24164         (aff_combination_dr_offset): Use wide-int interfaces.
24165         (determine_offset): Take a widest_int pointer rather than a
24166         double_int pointer.
24167         (split_data_refs_to_components): Use wide-int interfaces.
24168         (suitable_component_p): Likewise.
24169         (order_drefs): Likewise.
24170         (add_ref_to_chain): Likewise.
24171         (valid_initializer_p): Likewise.
24172         (determine_roots_comp): Likewise.
24173         * tree-pretty-print.c: Include wide-int-print.h.
24174         (dump_generic_node): Use wide-int interfaces.
24175         * tree-sra.c (sra_ipa_modify_expr): Likewise.
24176         * tree-ssa-address.c (addr_for_mem_ref): Likewise.
24177         (move_fixed_address_to_symbol): Likewise.
24178         (move_hint_to_base): Likewise.
24179         (move_pointer_to_base): Likewise.
24180         (move_variant_to_index): Likewise.
24181         (most_expensive_mult_to_index): Likewise.
24182         (addr_to_parts): Likewise.
24183         (copy_ref_info): Likewise.
24184         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
24185         (indirect_refs_may_alias_p): Likewise.
24186         (stmt_kills_ref_p_1): Likewise.
24187         * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
24188         * tree-ssa-ccp.c: Update comment at top of file.  Include
24189         wide-int-print.h.
24190         (struct prop_value_d): Change type of mask to widest_int.
24191         (extend_mask): New function.
24192         (dump_lattice_value): Use wide-int interfaces.
24193         (get_default_value): Likewise.
24194         (set_constant_value): Likewise.
24195         (set_value_varying): Likewise.
24196         (valid_lattice_transition): Likewise.
24197         (set_lattice_value): Likewise.
24198         (value_to_double_int): Delete.
24199         (value_to_wide_int): New.
24200         (get_value_from_alignment): Use wide-int interfaces.
24201         (get_value_for_expr): Likewise.
24202         (do_dbg_cnt): Likewise.
24203         (ccp_finalize): Likewise.
24204         (ccp_lattice_meet): Likewise.
24205         (bit_value_unop_1): Use widest_ints rather than double_ints.
24206         (bit_value_binop_1): Likewise.
24207         (bit_value_unop): Use wide-int interfaces.
24208         (bit_value_binop): Likewise.
24209         (bit_value_assume_aligned): Likewise.
24210         (evaluate_stmt): Likewise.
24211         (ccp_fold_stmt): Likewise.
24212         (visit_cond_stmt): Likewise.
24213         (ccp_visit_stmt): Likewise.
24214         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
24215         (constant_pointer_difference): Likewise.
24216         (associate_pointerplus): Likewise.
24217         (combine_conversions): Likewise.
24218         * tree-ssa-loop.h: Include wide-int.h.
24219         (struct tree_niter_desc): Change type of max to widest_int.
24220         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
24221         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
24222         (remove_redundant_iv_tests): Likewise.
24223         (canonicalize_loop_induction_variables): Likewise.
24224         * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
24225         (constant_multiple_of): Take a widest_int pointer instead of
24226         a double_int pointer.
24227         (get_computation_aff): Use wide-int interfaces.
24228         (ptr_difference_cost): Likewise.
24229         (difference_cost): Likewise.
24230         (get_loop_invariant_expr_id): Likewise.
24231         (get_computation_cost_at): Likewise.
24232         (iv_elimination_compare_lt): Likewise.
24233         (may_eliminate_iv): Likewise.
24234         * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
24235         instead of double_int.
24236         (max_loop_iterations): Likewise.
24237         (max_stmt_executions): Likewise.
24238         (estimated_stmt_executions): Likewise.
24239         * tree-ssa-loop-niter.c: Include wide-int-print.h.
24240         (split_to_var_and_offset): Use wide-int interfaces.
24241         (determine_value_range): Likewise.
24242         (bound_difference_of_offsetted_base): Likewise.
24243         (bounds_add): Take a widest_int instead of a double_int.
24244         (number_of_iterations_ne_max): Use wide-int interfaces.
24245         (number_of_iterations_ne): Likewise.
24246         (number_of_iterations_lt_to_ne): Likewise.
24247         (assert_loop_rolls_lt): Likewise.
24248         (number_of_iterations_lt): Likewise.
24249         (number_of_iterations_le): Likewise.
24250         (number_of_iterations_cond): Likewise.
24251         (number_of_iterations_exit): Likewise.
24252         (finite_loop_p): Likewise.
24253         (derive_constant_upper_bound_assign): Likewise.
24254         (derive_constant_upper_bound): Return a widest_int.
24255         (derive_constant_upper_bound_ops): Likewise.
24256         (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
24257         (record_estimate): Take a widest_int rather than a double_int.
24258         (record_nonwrapping_iv): Use wide-int interfaces.
24259         (double_int_cmp): Delete.
24260         (wide_int_cmp): New.
24261         (bound_index): Take a widest_int rather than a double_int.
24262         (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
24263         (maybe_lower_iteration_bound): Likewise.
24264         (estimate_numbers_of_iterations_loop): Likewise.
24265         (estimated_loop_iterations): Take a widest_int pointer than than
24266         a double_int pointer.
24267         (estimated_loop_iterations_int): Use wide-int interfaces.
24268         (max_loop_iterations): Take a widest_int pointer than than
24269         a double_int pointer.
24270         (max_loop_iterations_int): Use wide-int interfaces.
24271         (max_stmt_executions): Take a widest_int pointer than than
24272         a double_int pointer.
24273         (estimated_stmt_executions): Likewise.
24274         (n_of_executions_at_most): Use wide-int interfaces.
24275         (scev_probably_wraps_p): Likewise.
24276         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
24277         to real_to_integer.
24278         * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
24279         interfaces.
24280         * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
24281         double_ints.  Adjust for trailing_wide_ints <3> representation.
24282         (set_nonzero_bits): Likewise.
24283         (get_range_info): Return wide_ints rather than double_ints.
24284         Adjust for trailing_wide_ints <3> representation.
24285         (get_nonzero_bits): Likewise.
24286         (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
24287         representation.
24288         * tree-ssanames.h (struct range_info_def): Replace min, max and
24289         nonzero_bits with a trailing_wide_ints <3>.
24290         (set_range_info): Use wide_int_refs rather than double_ints.
24291         (set_nonzero_bits): Likewise.
24292         (get_range_info): Return wide_ints rather than double_ints.
24293         (get_nonzero_bits): Likewise.
24294         * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
24295         * tree-ssa-pre.c (phi_translate_1): Likewise.
24296         * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
24297         (acceptable_pow_call): Likewise.
24298         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
24299         interfaces.
24300         (vn_reference_fold_indirect): Likewise.
24301         (vn_reference_maybe_forwprop_address): Likewise.
24302         (valueize_refs_1): Likewise.
24303         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
24304         * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
24305         tree_int_cst_lt and tree_int_cst_le.
24306         * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
24307         interfaces.
24308         (streamer_alloc_tree): Likewise.
24309         * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
24310         (streamer_write_tree_header): Likewise.
24311         (streamer_write_integer_cst): Likewise.
24312         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
24313         (build_constructors): Likewise.
24314         (array_value_type): Likewise.
24315         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
24316         (vect_check_gather): Likewise.
24317         * tree-vect-generic.c (build_replicated_const): Likewise.
24318         (expand_vector_divmod): Likewise.
24319         * tree-vect-loop.c (vect_transform_loop): Likewise.
24320         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
24321         (vect_do_peeling_for_alignment): Likewise.
24322         * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
24323         * tree-vrp.c: Include wide-int.h.
24324         (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
24325         (extract_range_from_assert): Use wide-int interfaces.
24326         (vrp_int_const_binop): Likewise.
24327         (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
24328         double_int pointers.
24329         (ranges_from_anti_range): Use wide-int interfaces.
24330         (quad_int_cmp): Delete.
24331         (quad_int_pair_sort): Likewise.
24332         (extract_range_from_binary_expr_1): Use wide-int interfaces.
24333         (extract_range_from_unary_expr_1): Likewise.
24334         (adjust_range_with_scev): Likewise.
24335         (masked_increment): Take and return wide_ints rather than double_ints.
24336         (register_edge_assert_for_2): Use wide-int interfaces.
24337         (check_array_ref): Likewise.
24338         (search_for_addr_array): Likewise.
24339         (maybe_set_nonzero_bits): Likewise.
24340         (union_ranges): Pass an integer of the correct type instead of
24341         using integer_one_node.
24342         (intersect_ranges): Likewise.
24343         (simplify_truth_ops_using_ranges): Likewise.
24344         (simplify_bit_ops_using_ranges): Use wide-int interfaces.
24345         (range_fits_type_p): Likewise.
24346         (simplify_cond_using_ranges): Likewise.  Take a signop rather than
24347         a bool.
24348         (simplify_conversion_using_ranges): Use wide-int interfaces.
24349         (simplify_float_conversion_using_ranges): Likewise.
24350         (vrp_finalize): Likewise.
24351         * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
24352         (gimple_stringops_transform): Likewise.
24353         * varasm.c (decode_addr_const): Likewise.
24354         (const_hash_1): Likewise.
24355         (const_rtx_hash_1): Likewise
24356         (output_constant): Likewise.
24357         (array_size_for_constructor): Likewise.
24358         (output_constructor_regular_field): Likewise.
24359         (output_constructor_bitfield): Likewise.
24360         * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
24361         * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
24362         GENERATOR_FILEs.
24363         * gencheck.c: Define BITS_PER_UNIT.
24364         * wide-int.cc: New.
24365         * wide-int.h: New.
24366         * wide-int-print.cc: New.
24367         * wide-int-print.h: New.
24369 2014-05-06  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
24371         * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
24373 2014-05-06  Richard Biener  <rguenther@suse.de>
24375         * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
24376         TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
24377         (TODO_verify_all): Adjust.
24378         * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
24379         TODO_verify_stmts and TODO_verify_rtl_sharing.
24380         * bb-reorder.c: Likewise.
24381         * cfgexpand.c: Likewise.
24382         * cprop.c: Likewise.
24383         * cse.c: Likewise.
24384         * function.c: Likewise.
24385         * fwprop.c: Likewise.
24386         * gcse.c: Likewise.
24387         * gimple-ssa-isolate-paths.c: Likewise.
24388         * gimple-ssa-strength-reduction.c: Likewise.
24389         * ipa-split.c: Likewise.
24390         * loop-init.c: Likewise.
24391         * loop-unroll.c: Likewise.
24392         * lower-subreg.c: Likewise.
24393         * modulo-sched.c: Likewise.
24394         * postreload-gcse.c: Likewise.
24395         * predict.c: Likewise.
24396         * recog.c: Likewise.
24397         * sched-rgn.c: Likewise.
24398         * store-motion.c: Likewise.
24399         * tracer.c: Likewise.
24400         * trans-mem.c: Likewise.
24401         * tree-call-cdce.c: Likewise.
24402         * tree-cfg.c: Likewise.
24403         * tree-cfgcleanup.c: Likewise.
24404         * tree-complex.c: Likewise.
24405         * tree-eh.c: Likewise.
24406         * tree-emutls.c: Likewise.
24407         * tree-if-conv.c: Likewise.
24408         * tree-into-ssa.c: Likewise.
24409         * tree-loop-distribution.c: Likewise.
24410         * tree-object-size.c: Likewise.
24411         * tree-parloops.c: Likewise.
24412         * tree-pass.h: Likewise.
24413         * tree-sra.c: Likewise.
24414         * tree-ssa-ccp.c: Likewise.
24415         * tree-ssa-copy.c: Likewise.
24416         * tree-ssa-copyrename.c: Likewise.
24417         * tree-ssa-dce.c: Likewise.
24418         * tree-ssa-dom.c: Likewise.
24419         * tree-ssa-dse.c: Likewise.
24420         * tree-ssa-forwprop.c: Likewise.
24421         * tree-ssa-ifcombine.c: Likewise.
24422         * tree-ssa-loop-ch.c: Likewise.
24423         * tree-ssa-loop-ivcanon.c: Likewise.
24424         * tree-ssa-loop.c: Likewise.
24425         * tree-ssa-math-opts.c: Likewise.
24426         * tree-ssa-phiopt.c: Likewise.
24427         * tree-ssa-phiprop.c: Likewise.
24428         * tree-ssa-pre.c: Likewise.
24429         * tree-ssa-reassoc.c: Likewise.
24430         * tree-ssa-sink.c: Likewise.
24431         * tree-ssa-strlen.c: Likewise.
24432         * tree-ssa-tail-merge.c: Likewise.
24433         * tree-ssa-uncprop.c: Likewise.
24434         * tree-switch-conversion.c: Likewise.
24435         * tree-tailcall.c: Likewise.
24436         * tree-vect-generic.c: Likewise.
24437         * tree-vectorizer.c: Likewise.
24438         * tree-vrp.c: Likewise.
24439         * tsan.c: Likewise.
24440         * var-tracking.c: Likewise.
24441         * bt-load.c: Likewise.
24442         * cfgcleanup.c: Likewise.
24443         * combine-stack-adj.c: Likewise.
24444         * combine.c: Likewise.
24445         * compare-elim.c: Likewise.
24446         * config/epiphany/resolve-sw-modes.c: Likewise.
24447         * config/i386/i386.c: Likewise.
24448         * config/mips/mips.c: Likewise.
24449         * config/s390/s390.c: Likewise.
24450         * config/sh/sh_treg_combine.cc: Likewise.
24451         * config/sparc/sparc.c: Likewise.
24452         * dce.c: Likewise.
24453         * dse.c: Likewise.
24454         * final.c: Likewise.
24455         * ifcvt.c: Likewise.
24456         * mode-switching.c: Likewise.
24457         * passes.c: Likewise.
24458         * postreload.c: Likewise.
24459         * ree.c: Likewise.
24460         * reg-stack.c: Likewise.
24461         * regcprop.c: Likewise.
24462         * regrename.c: Likewise.
24463         * web.c: Likewise.
24465 2014-05-06  Richard Biener  <rguenther@suse.de>
24467         PR middle-end/61070
24468         * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
24469         * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
24471 2014-05-05  Jan Hubicka  <hubicka@ucw.cz>
24473         PR ipa/60965
24474         * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
24476 2014-05-05  Radovan Obradovic  <robradovic@mips.com>
24477             Tom de Vries  <tom@codesourcery.com>
24479         * target.def (call_fusage_contains_non_callee_clobbers): New
24480         DEFHOOKPOD.
24481         * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
24482         Hooks to @menu.
24483         (@node Miscellaneous Register Hooks): New node.
24484         (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
24485         * doc/tm.texi: Regenerate.
24487 2014-05-05  Marek Polacek  <polacek@redhat.com>
24489         PR driver/61065
24490         * opts.c (common_handle_option): Call error_at instead of warning_at.
24492 2014-05-05  Richard Biener  <rguenther@suse.de>
24494         * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
24495         from last_verified if update_ssa ran.  Move TODO_verify_rtl_sharing
24496         under the TODO_verify_il umbrella.
24498 2014-05-05  Richard Biener  <rguenther@suse.de>
24500         * passes.c (execute_function_todo): Move TODO_verify_flow under
24501         the TODO_verify_ul umbrella.
24503 2014-05-05  Richard Biener  <rguenther@suse.de>
24505         PR middle-end/61010
24506         * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
24507         X & CST away from a CST that is the mask of a mode.
24509 2014-05-05  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
24511         * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
24512         int argument to enum machine_mode.
24513         (picochip_class_max_nregs): Ditto.
24514         * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
24515         (picochip_class_max_nregs): Ditto.
24517 2014-05-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24519         * target.def: Add new target hook.
24520         * doc/tm.texi: Regenerate.
24521         * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
24522         * targhooks.c (default_keep_leaf_when_profiled): New function.
24524         * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
24525         (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
24527 2014-05-05  Bin Cheng  <bin.cheng@arm.com>
24529         PR tree-optimization/60363
24530         * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
24531         (copy_phi_args): New parameters.  Call get_value_locus_in_path.
24532         (update_destination_phis): New parameter.
24533         (create_edge_and_update_destination_phis): Ditto.
24534         (ssa_fix_duplicate_block_edges): Pass new arguments.
24535         (thread_single_edge): Ditto.
24537 2014-05-04  Peter Bergner  <bergner@vnet.ibm.com>
24539         * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
24540         (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
24541         (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
24542         * config/rs6000/rs6000-builtin.def (BU_MISC_1):
24543         Use RS6000_BTM_HARD_FLOAT.
24544         (BU_MISC_2): Likewise.
24545         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
24546         RS6000_BTM_HARD_FLOAT.
24547         (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
24548         is explicitly used.
24549         (rs6000_invalid_builtin): Add hard floating builtin support.
24550         (rs6000_expand_builtin): Relax the gcc_assert to allow the new
24551         hard float builtins.
24552         (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
24554 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
24556         * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
24557         Add missing function* argument.
24559 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
24561         * lra-constraints.c (valid_address_p): Move earlier in file.
24562         Add a constraint argument to the address_info version.
24563         (satisfies_memory_constraint_p): New function.
24564         (satisfies_address_constraint_p): Likewise.
24565         (process_alt_operands, curr_insn_transform): Use them.
24566         (process_address): Pass the constraint to valid_address_p when
24567         checking address operands.
24569 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
24571         * config/mips/mips.c (mips_isa_rev): New variable.
24572         (mips_set_architecture): Set it.
24573         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
24574         from mips_isa_rev.
24575         (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
24576         (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
24577         (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
24578         (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
24579         (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
24580         conditions in terms of mips_isa_rev.
24581         (mips_isa_rev): Declare.
24583 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
24585         * config/sh/sh-mem.cc: Use tabs instead of spaces.
24586         (prob_unlikely, prob_likely): Make variables const.
24588 2014-05-03  Denis Chertykov  <chertykov@gmail.com>
24590         * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
24592 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
24594         * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
24596 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
24598         * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
24599         (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
24600         * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
24601         functions.
24602         (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
24603         sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
24604         sh_pass_in_reg_p.
24605         Replace usage of ROUND_REG with sh_round_reg.
24606         Use CEIL instead of ROUND_ADVANCE.
24608 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
24610         PR target/61026
24611         * config/sh/sh.c: Include stdlib headers before everything else.
24613 2014-05-02  Jakub Jelinek  <jakub@redhat.com>
24615         * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
24616         GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
24617         (gimplify_adjust_omp_clauses): Simd region is never
24618         directly nested in combined parallel.  Instead, for linear
24619         with copyin/copyout, if in combined for simd loop, make decl
24620         firstprivate/lastprivate on OMP_FOR.
24621         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
24622         expand_omp_for_static_chunk): When setting endvar, also set
24623         fd->loop.v to the same value.
24625 2014-05-02  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
24627         * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
24629 2014-05-02  Alan Lawrence  <alan.lawrence@arm.com>
24631         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
24632         expression.
24634 2014-05-02  Marek Polacek  <polacek@redhat.com>
24636         * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
24638 2014-05-02  Kito Cheng  <kito@0xlab.org>
24640         * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
24641         to a C expression marco.
24642         * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
24643         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
24644         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
24645         * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
24646         HONOR_REG_ALLOC_ORDER.
24647         * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
24649 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
24651         * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
24653 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
24655         * config/arc/arc.c (arc_select_cc_mode): Fix typo.
24657 2014-05-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
24659         * tree-if-conv.c (is_cond_scalar_reduction): New function.
24660         (convert_scalar_cond_reduction): Likewise.
24661         (predicate_scalar_phi): Add recognition and transformation
24662         of simple conditioanl reduction to be vectorizable.
24664 2014-05-01  Marek Polacek  <polacek@redhat.com>
24666         PR c/43245
24667         * doc/invoke.texi: Document -Wdiscarded-qualifiers.
24669 2014-04-30  Alan Lawrence  <alan.lawrence@arm.com>
24671         * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
24672         vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
24673         vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
24674         vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
24675         vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
24676         vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
24677         vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
24678         vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
24680 2014-04-30  Joern Rennecke  <joern.rennecke@embecosm.com>
24682         * config/arc/arc.opt (mlra): Move comment above option name
24683         to avoid mis-parsing as language options.
24685 2014-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24687         * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
24688         * config/sol2.h: ... here.
24689         * config/sol2-10.h: Remove.
24691         * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
24692         (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
24693         (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
24694         (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
24695         (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
24696         * config/sol2.h: ... here.
24697         (SECTION_NAME_FORMAT): Don't redefine.
24698         (STARTFILE_ARCH32_SPEC): Rename to ...
24699         (STARTFILE_ARCH_SPEC): ... this.
24700         (ASM_OUTPUT_ALIGNED_COMMON): Move ...
24701         * config/sparc/sol2.h: ... here.
24702         (SECTION_NAME_FORMAT): Don't undef.
24703         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
24704         (SUBTARGET_EXTRA_SPECS): Remove.
24705         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
24707         * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
24708         (MD_STARTFILE_PREFIX): Remove.
24709         (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
24710         (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
24711         (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
24712         (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
24713         (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
24714         (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
24715         * config/i386/sol2.h: ... here.
24716         (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
24717         * config/i386/sol2-bi.h: Remove.
24718         * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
24719         (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
24721         * config/i386/t-sol2-64: Rename to ...
24722         * config/i386/t-sol2: ... this.
24723         * config/sparc/t-sol2-64: Rename to ...
24724         * config/sparc/t-sol2: ... this.
24726         * config.gcc (*-*-solaris2*): Split sol2_tm_file into
24727         sol2_tm_file_head, sol2_tm_file_tail.
24728         Include ${cpu_type}/sol2.h before sol2.h.
24729         Remove sol2-10.h.
24730         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
24731         i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
24732         Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
24733         Reflect i386/t-sol2-64 renaming.
24734         (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
24735         Reflect sparc/t-sol2-64 renaming.
24737 2014-04-30  Richard Biener  <rguenther@suse.de>
24739         * passes.c (execute_function_todo): Move TODO_verify_stmts
24740         and TODO_verify_ssa under the TODO_verify_il umbrella.
24741         * tree-ssa.h (verify_ssa): Adjust prototype.
24742         * tree-ssa.c (verify_ssa): Add parameter to tell whether
24743         we should verify SSA operands.
24744         * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
24745         * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
24746         whether we should verify whether not throwing stmts have EH info.
24747         * graphite-scop-detection.c (create_sese_edges): Adjust.
24748         * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
24749         * tree-eh.c (lower_try_finally_switch): Do not add the
24750         default case label twice.
24752 2014-04-30  Marek Polacek  <polacek@redhat.com>
24754         * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
24755         * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
24756         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
24757         * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
24759 2014-04-29  Alan Lawrence  <alan.lawrence@arm.com>
24761         * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
24762         vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
24763         vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
24764         vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
24765         vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
24766         vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
24767         vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
24768         vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
24770 2014-04-29  David Malcolm  <dmalcolm@redhat.com>
24772         * tree-cfg.c (dump_function_to_file): Dump the return type of
24773         functions, in a line to itself before the function body, mimicking
24774         the layout of a C function.
24776 2014-04-29  Jakub Jelinek  <jakub@redhat.com>
24778         PR tree-optimization/60971
24779         * tree-tailcall.c (process_assignment): Reject conversions which
24780         reduce precision.
24782 2014-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
24784         * calls.c (initialize_argument_information): Always treat
24785         PUSH_ARGS_REVERSED as 1, simplify code accordingly.
24786         (expand_call): Likewise.
24787         (emit_library_call_calue_1): Likewise.
24788         * expr.c (PUSH_ARGS_REVERSED): Do not define.
24789         (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
24790         code accordingly.
24792 2014-04-29  Nick Clifton  <nickc@redhat.com>
24794         * config/msp430/msp430.md (umulsidi): Fix typo.
24795         (mulhisi3): Enable even inside interrupt handlers.
24796         * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
24797         bigger return address pushed in large mode.
24799 2014-04-29  Nick Clifton  <nickc@redhat.com>
24801         * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
24802         (arc_init_reg_tables): Use a machine_mode enum to iterate over
24803         available modes.
24804         * config/m32r/m32r.c (init_reg_tables): Likewise.
24805         * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
24806         enum to hold the modes.
24808 2014-04-29  Richard Biener  <rguenther@suse.de>
24810         * dominance.c (free_dominance_info): Add overload with
24811         function parameter.
24812         (dom_info_state): Likewise.
24813         (dom_info_available_p): Likewise.
24814         * basic-block.h (free_dominance_info, dom_info_state,
24815         dom_info_available_p): Declare overloads.
24816         * passes.c (execute_function_todo): Verify that verifiers
24817         don't change dominator info state.  Drop dominator info
24818         for IPA pass invocations.
24819         * cgraph.c (release_function_body): Restore asserts that
24820         dominator information is released.
24822 2014-04-29  Patrick Palka  <patrick@parcs.ath.cx>
24824         * doc/invoke.texi: Fix typo.
24825         * tree-vrp.c: Fix typos.
24826         * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
24828 2014-04-29  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
24830         * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
24832 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
24834         * config/aarch64/aarch64-builtins.c
24835         (aarch64_types_storestruct_lane_qualifiers): New.
24836         (TYPES_STORESTRUCT_LANE): Likewise.
24837         * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
24838         (st3_lane): Likewise.
24839         (st4_lane): Likewise.
24840         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
24841         (vec_store_lanesci_lane<mode>): Likewise.
24842         (vec_store_lanesxi_lane<mode>): Likewise.
24843         (aarch64_st2_lane<VQ:mode>): Likewise.
24844         (aarch64_st3_lane<VQ:mode>): Likewise.
24845         (aarch64_st4_lane<VQ:mode>): Likewise.
24846         * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
24847         * config/aarch64/arm_neon.h
24848         (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
24849         use new macro arguments.
24850         (__ST3_LANE_FUNC): Likewise.
24851         (__ST4_LANE_FUNC): Likewise.
24852         * config/aarch64/iterators.md (V_TWO_ELEM): New.
24853         (V_THREE_ELEM): Likewise.
24854         (V_FOUR_ELEM): Likewise.
24856 2014-04-28  David Malcolm  <dmalcolm@redhat.com>
24858         * doc/gimple.texi: Replace the description of the now-defunct
24859         union gimple_statement_d with a diagram showing the
24860         gimple_statement_base class hierarchy and its relationships to
24861         the GSS_ and GIMPLE_ enums.
24863 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
24865         * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
24866         * config/aarch64/aarch64.c
24867         (aarch64_cannot_change_mode_class): Weaken conditions.
24868         (aarch64_modes_tieable_p): New.
24869         * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
24871 2014-04-28  Pat Haugen  <pthaugen@us.ibm.com>
24873         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
24874         (loadsync_<mode>): Change mode.
24875         (load_quadpti, store_quadpti): New.
24876         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
24877         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
24879 2014-04-28  Martin Jambor  <mjambor@suse.cz>
24881         * tree-sra.c (sra_modify_expr): Generate new memory accesses with
24882         same alias type as the original statement.
24883         (subreplacement_assignment_data): New type.
24884         (handle_unscalarized_data_in_subtree): New type of parameter,
24885         generate new memory accesses with same alias type as the original
24886         statement.
24887         (load_assign_lhs_subreplacements): Likewise.
24888         (sra_modify_constructor_assign): Generate new memory accesses with
24889         same alias type as the original statement.
24891 2014-04-28  Richard Biener  <rguenther@suse.de>
24893         * tree-pass.h (TODO_verify_il): Define.
24894         (TODO_verify_all): Complete properly.
24895         * passes.c (execute_function_todo): Move existing loop-closed
24896         SSA verification under TODO_verify_il.
24897         (execute_one_pass): Trigger TODO_verify_il at todo-after time.
24898         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
24899         Fix tree sharing issue.
24901 2014-04-28  Richard Biener  <rguenther@suse.de>
24903         PR middle-end/60092
24904         * builtins.def (DEF_C11_BUILTIN): Add.
24905         (BUILT_IN_ALIGNED_ALLOC): Likewise.
24906         * coretypes.h (enum function_class): Add function_c11_misc.
24907         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
24908         BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
24909         (call_may_clobber_ref_p_1): Likewise.
24910         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
24911         (mark_all_reaching_defs_necessary_1): Likewise.
24912         (propagate_necessity): Likewise.
24913         (eliminate_unnecessary_stmts): Likewise.
24914         * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
24916 2014-04-28  Richard Biener  <rguenther@suse.de>
24918         * tree-vrp.c (vrp_var_may_overflow): Remove.
24919         (vrp_visit_phi_node): Rather than bumping to +-INF possibly
24920         with overflow immediately bump to one before that value and
24921         let iteration figure out overflow status.
24923 2014-04-28  Richard Biener  <rguenther@suse.de>
24925         * configure.ac: Do valgrind header checks unconditionally.
24926         Add --enable-valgrind-annotations.
24927         * system.h: Guard valgrind header inclusion with
24928         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
24929         * alloc-pool.c (pool_alloc, pool_free): Use
24930         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
24931         to guard possibly dead code.
24932         * config.in: Regenerated.
24933         * configure: Likewise.
24935 2014-04-28  Jeff Law  <law@redhat.com>
24937         PR tree-optimization/60902
24938         * tree-ssa-threadedge.c
24939         (record_temporary_equivalences_from_stmts_at_dest): Only iterate
24940         over real defs when invalidating outputs from statements that do not
24941         produce useful outputs for threading.
24943 2014-04-28  Richard Biener  <rguenther@suse.de>
24945         PR tree-optimization/60979
24946         * graphite-scop-detection.c (scopdet_basic_block_info): Reject
24947         SCOPs that end in a block with a successor with abnormal
24948         predecessors.
24950 2014-04-28  Richard Biener  <rguenther@suse.de>
24952         * tree-pass.h (execute_pass_list): Adjust prototype.
24953         * passes.c (pass_manager::execute_early_local_passes): Adjust.
24954         (do_per_function): Change callback signature, push all actual
24955         work to the callbals.
24956         (do_per_function_toporder): Likewise.
24957         (execute_function_dump): Adjust.
24958         (execute_function_todo): Likewise.
24959         (clear_last_verified): Likewise.
24960         (verify_curr_properties): Likewise.
24961         (update_properties_after_pass): Likewise.
24962         (execute_pass_list_1): Split out from ...
24963         (execute_pass_list): ... here.  Adjust.
24964         (execute_ipa_pass_list): Likewise.
24965         * cgraphunit.c (cgraph_add_new_function): Adjust.
24966         (analyze_function): Likewise.
24967         (expand_function): Likewise.
24968         * cgraph.c (release_function_body): Free dominance info
24969         here instead of asserting it was magically freed elsewhere.
24971 2014-04-28  Eric Botcazou  <ebotcazou@adacore.com>
24973         * configure.ac: Tweak GAS check for LEON instructions on SPARC.
24974         * configure: Regenerate.
24975         * config/sparc/sparc.opt (muser-mode): New option.
24976         * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
24977         for LEON3.
24978         (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
24979         * doc/invoke.texi (SPARC options): Document -muser-mode.
24981 2014-04-27  Richard Sandiford  <rdsandiford@googlemail.com>
24983         * cselib.c (find_slot_memmode): Delete.
24984         (cselib_hasher): Change compare_type to a struct.
24985         (cselib_hasher::equal): Update accordingly.  Don't expect wrapped
24986         constants.
24987         (preserve_constants_and_equivs): Adjust for new compare_type.
24988         (cselib_find_slot): Likewise.  Take the mode of the rtx as argument.
24989         (wrap_constant): Delete.
24990         (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
24992 2014-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
24994         * doc/install.texi (Building with profile feedback): Remove
24995         outdated sentence.
24997 2014-04-26  Tom de Vries  <tom@codesourcery.com>
24999         * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
25000         array accesses.
25002 2014-04-25  Cary Coutant  <ccoutant@google.com>
25004         PR debug/60929
25005         * dwarf2out.c (should_move_die_to_comdat): A type definition
25006         can contain a subprogram definition, but don't move it to a
25007         comdat unit.
25008         (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
25009         (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
25010         from original DIE.
25011         (clone_tree_hash): Rename to...
25012         (clone_tree_partial): ...this; change callers.  Copy
25013         DW_TAG_subprogram DIEs as declarations.
25014         (copy_decls_walk): Don't copy children of a declaration into a
25015         type unit.
25017 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
25019         PR target/60969
25020         * config/i386/i386.md (*movsf_internal): Set MODE to SI for
25021         alternative 12.
25023 2014-04-25  Jiong Wang  <jiong.wang@arm.com>
25025         * config/arm/predicates.md (call_insn_operand): Add long_call check.
25026         * config/arm/arm.md (sibcall, sibcall_value): Force the address to
25027         reg for long_call.
25028         * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
25029         restriction.
25031 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25033         * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
25035 2014-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25037         PR tree-optimization/60930
25038         * gimple-ssa-strength-reduction.c (create_mul_imm_cand):  Reject
25039         creating a multiply candidate by folding two constant
25040         multiplicands when the result overflows.
25042 2014-04-25  Jakub Jelinek  <jakub@redhat.com>
25044         PR tree-optimization/60960
25045         * tree-vect-generic.c (expand_vector_operation): Only call
25046         expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
25048 2014-04-25  Tom de Vries  <tom@codesourcery.com>
25050         * expr.c (clobber_reg_mode): New function.
25051         * expr.h (clobber_reg): New function.
25053 2014-04-25  Tom de Vries  <tom@codesourcery.com>
25055         * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
25056         clobbers.
25058 2014-04-25  Radovan Obradovic  <robradovic@mips.com>
25059             Tom de Vries  <tom@codesourcery.com>
25061         * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
25062         handle.
25063         * rtl.h (find_all_hard_reg_sets): Add bool parameter.
25064         * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
25065         new argument to find_all_hard_reg_sets call.
25067 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25069         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
25070         Use HOST_WIDE_INT_C for mask literal.
25071         (aarch_rev16_shleft_mask_imm_p): Likewise.
25073 2014-04-25  Eric Botcazou  <ebotcazou@adacore.com>
25075         PR target/60941
25076         * config/sparc/sparc.md (ashlsi3_extend): Delete.
25078 2014-04-25  Marc Glisse  <marc.glisse@inria.fr>
25080         PR preprocessor/56540
25081         * config/i386/i386-c.c (ix86_target_macros): Define
25082         __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
25084 2014-04-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25086         * configure.ac (tga_func): Remove.
25087         (LIB_TLS_SPEC): Remove.
25088         * configure: Regenerate.
25089         * config.in: Regenerate.
25090         * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
25092 2014-04-25  Richard Biener  <rguenther@suse.de>
25094         PR ipa/60912
25095         * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
25096         call stmt use/clobber sets during stmt walk instead of
25097         walking the possibly incomplete set of caller edges.
25099 2014-04-25  Richard Biener  <rguenther@suse.de>
25101         PR ipa/60911
25102         * passes.c (apply_ipa_transforms): Inline into only caller ...
25103         (execute_one_pass): ... here.  Properly bring in function
25104         bodies for nodes we want to apply IPA transforms to.
25106 2014-04-24  Cong Hou  <congh@google.com>
25108         PR tree-optimization/60896
25109         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
25110         all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
25111         (vect_mark_pattern_stmts): Set the def type of all statements in
25112         PATTERN_DEF_SEQ as vect_internal_def.
25114 2014-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
25116         * doc/extend.texi (PowerPC Built-in Functions): Document new
25117         powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
25118         (PowerPC AltiVec/VSX Built-in Functions): Likewise.
25120         * config/rs6000/predicates.md (const_0_to_3_operand): New
25121         predicate to match 0..3 integer constants.
25123         * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
25124         to support adding miscellaneous builtin functions.
25125         (BU_DFP_MISC_2): Likewise.
25126         (BU_P7_MISC_1): Likewise.
25127         (BU_P7_MISC_2): Likewise.
25128         (BU_P8V_MISC_3): Likewise.
25129         (BU_MISC_1): Likewise.
25130         (BU_MISC_2): Likewise.
25131         (DIVWE): Add extended divide builtin functions.
25132         (DIVWEO): Likewise.
25133         (DIVWEU): Likewise.
25134         (DIVWEUO): Likewise.
25135         (DIVDE): Likewise.
25136         (DIVDEO): Likewise.
25137         (DIVDEU): Likewise.
25138         (DIVDEUO): Likewise.
25139         (DXEX): Add decimal floating-point builtin functions.
25140         (DXEXQ): Likewise.
25141         (DDEDPD): Likewise.
25142         (DDEDPDQ): Likewise.
25143         (DENBCD): Likewise.
25144         (DENBCDQ): Likewise.
25145         (DIEX): Likewise.
25146         (DIEXQ): Likewise.
25147         (DSCLI): Likewise.
25148         (DSCLIQ): Likewise.
25149         (DSCRI): Likewise.
25150         (DSCRIQ): Likewise.
25151         (CDTBCD): Add new BCD builtin functions.
25152         (CBCDTD): Likewise.
25153         (ADDG6S): Likewise.
25154         (BCDADD): Likewise.
25155         (BCDADD_LT): Likewise.
25156         (BCDADD_EQ): Likewise.
25157         (BCDADD_GT): Likewise.
25158         (BCDADD_OV): Likewise.
25159         (BCDSUB): Likewise.
25160         (BCDSUB_LT): Likewise.
25161         (BCDSUB_EQ): Likewise.
25162         (BCDSUB_GT): Likewise.
25163         (BCDSUB_OV): Likewise.
25164         (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
25165         (UNPACK_TD): Likewise.
25166         (PACK_TF): Likewise.
25167         (UNPACK_TF): Likewise.
25168         (UNPACK_TF_0): Likewise.
25169         (UNPACK_TF_1): Likewise.
25170         (PACK_V1TI): Likewise.
25171         (UNPACK_V1TI): Likewise.
25173         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
25174         support for decimal floating point builtin functions.
25175         (rs6000_expand_ternop_builtin): Add checks for the new builtin
25176         functions that take constant arguments.
25177         (rs6000_invalid_builtin): Add decimal floating point builtin support.
25178         (rs6000_init_builtins): Setup long double, _Decimal64, and
25179         _Decimal128 types for new builtin functions.
25180         (builtin_function_type): Set the unsigned flags appropriately for
25181         the new builtin functions.
25182         (rs6000_opt_masks): Add support for decimal floating point builtin
25183         functions.
25185         * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
25186         floating point builtin functions.
25187         (RS6000_BTM_COMMON): Likewise.
25188         (RS6000_BTI_long_double): Likewise.
25189         (RS6000_BTI_dfloat64): Likewise.
25190         (RS6000_BTI_dfloat128): Likewise.
25191         (long_double_type_internal_node): Likewise.
25192         (dfloat64_type_internal_node): Likewise.
25193         (dfloat128_type_internal_node): Likewise.
25195         * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
25196         2.07 bcd arithmetic instructions.
25197         (UNSPEC_BCDSUB): Likewise.
25198         (UNSPEC_BCD_OVERFLOW): Likewise.
25199         (UNSPEC_BCD_ADD_SUB): Likewise.
25200         (bcd_add_sub): Likewise.
25201         (BCD_TEST): Likewise.
25202         (bcd<bcd_add_sub>): Likewise.
25203         (bcd<bcd_add_sub>_test): Likewise.
25204         (bcd<bcd_add_sub>_test2): Likewise.
25205         (bcd<bcd_add_sub>_<code>): Likewise.
25206         (peephole2 for combined bcd ops): Likewise.
25208         * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
25209         decimal floating point builtin functions.
25210         (UNSPEC_DENBCD): Likewise.
25211         (UNSPEC_DXEX): Likewise.
25212         (UNSPEC_DIEX): Likewise.
25213         (UNSPEC_DSCLI): Likewise.
25214         (UNSPEC_DSCRI): Likewise.
25215         (D64_D128): Likewise.
25216         (dfp_suffix): Likewise.
25217         (dfp_ddedpd_<mode>): Likewise.
25218         (dfp_denbcd_<mode>): Likewise.
25219         (dfp_dxex_<mode>): Likewise.
25220         (dfp_diex_<mode>): Likewise.
25221         (dfp_dscli_<mode>): Likewise.
25222         (dfp_dscri_<mode>): Likewise.
25224         * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
25225         builtin functions.
25226         (UNSPEC_CDTBCD): Likewise.
25227         (UNSPEC_CBCDTD): Likewise.
25228         (UNSPEC_DIVE): Add support for new extended divide builtin functions.
25229         (UNSPEC_DIVEO): Likewise.
25230         (UNSPEC_DIVEU): Likewise.
25231         (UNSPEC_DIVEUO): Likewise.
25232         (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
25233         pack/unpack 128-bit types.
25234         (UNSPEC_PACK_128BIT): Likewise.
25235         (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
25236         (udiv<mode>3): Use idiv_ldiv mode attribute.
25237         (div<mode>3): Likewise.
25238         (addg6s): Add new BCD builtin functions.
25239         (cdtbcd): Likewise.
25240         (cbcdtd): Likewise.
25241         (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
25242         (div_extend): Likewise.
25243         (div<div_extend>_<mode>"): Likewise.
25244         (FP128_64): Add support for new builtin functions to pack/unpack
25245         128-bit types.
25246         (unpack<mode>): Likewise.
25247         (unpacktf_0): Likewise.
25248         (unpacktf_1): Likewise.
25249         (unpack<mode>_dm): Likewise.
25250         (unpack<mode>_nodm): Likewise.
25251         (pack<mode>): Likewise.
25252         (unpackv1ti): Likewise.
25253         (packv1ti): Likewise.
25255 2014-04-24  Vishnu K S  <Vishnu.k_s@atmel.com>
25257         * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
25258         is disabled.
25260 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
25262         * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
25263         * gimplify.c (omp_is_private): Change last argument's type to int.
25264         Only diagnose lastprivate if the simd argument is 1, only diagnose
25265         linear if the simd argument is 2.
25266         (gimplify_omp_for): Adjust omp_is_private callers.  When adding
25267         lastprivate or private, add the clause to OMP_FOR_CLAUSES.  Pass
25268         GOVD_EXPLICIT to omp_add_variable.  For simd with collapse == 1
25269         create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
25270         If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
25271         increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
25272         * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
25273         OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
25274         * tree-nested.c (convert_nonlocal_omp_clauses,
25275         convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
25277 2014-04-24  Segher Boessenkool  <segher@kernel.crashing.org>
25279         PR target/60822
25280         * config/m68k/m68k.md (extendplussidi): Don't allow memory for
25281         operand 1.
25283 2014-04-24  Dimitris Papavasiliou  <dpapavas@gmail.com>
25285         * flag-types.h (enum ivar_visibility): Add.
25287 2014-04-24  Trevor Saunders  <tsaunders@mozilla.com>
25289         * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
25290         function * argument.
25292 2014-04-24  Alan Lawrence  <alan.lawrence@arm.com>
25294         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
25296 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
25297             Tom de Vries  <tom@codesourcery.com>
25299         * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
25300         * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
25301         reg-note.
25302         * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
25303         * emit-rtl.c (try_split): Same.
25305 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
25306             Tom de Vries  <tom@codesourcery.com>
25308         * common.opt (fuse-caller-save): New option.
25310 2014-04-24  Tejas Belagod  <tejas.belagod@arm.com>
25312         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
25313         elements for big-endian.
25315 2014-04-24  Richard Biener  <rguenther@suse.de>
25317         * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
25318         during TER and instead use the sepops interface for expanding
25319         non-GIMPLE_SINGLE_RHS.
25321 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25323         * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
25324         if not HAVE_AS_IX86_DIFF_SECT_DELTA.
25326 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25328         * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
25329         assembler 64-bit option.
25330         * configure: Regenerate.
25332 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25334         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
25335         TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
25336         (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
25337         (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
25338         (TARGET_CRYPTO): Take TARGET_SIMD into account.
25340 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25342         * config/aarch64/aarch64-builtins.c
25343         (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
25344         BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
25345         * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
25346         * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
25347         builtins.
25348         * config/aarch64/iterator.md (VDQHSD): New mode iterator.
25349         (Vrevsuff): New mode attribute.
25351 2014-04-24  Terry Guo  <terry.guo@arm.com>
25353         * config/arm/arm.h (machine_function): Define variable
25354         after_arm_reorg here.
25355         * config/arm/arm.c (after_arm_reorg): Remove the definition.
25356         (arm_split_constant): Update the way to access variable
25357         after_arm_reorg.
25358         (arm_reorg): Ditto.
25359         (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
25361 2014-04-23  Tom de Vries  <tom@codesourcery.com>
25363         * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
25365 2014-04-23  David Malcolm  <dmalcolm@redhat.com>
25367         * is-a.h: Update comments to reflect the following changes to the
25368         "pointerness" of the API, making the template parameter match the
25369         return type, allowing use of is-a.h with typedefs of pointers.
25370         (is_a_helper::cast): Return a T rather then a pointer to a T, so
25371         that the return type matches the parameter to the is_a_helper.
25372         (as_a): Likewise.
25373         (dyn_cast): Likewise.
25375         * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
25376         pointer from the is-a.h API.
25378         * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
25379         (is_a_helper <cgraph_node *>::test): ...this, matching change to
25380         is-a.h API.
25381         (is_a_helper <varpool_node>::test): Likewise, convert to...
25382         (is_a_helper <varpool_node *>::test): ...this.
25384         (varpool_first_variable): Update for removal of implicit pointer
25385         from the is-a.h API.
25386         (varpool_next_variable): Likewise.
25387         (varpool_first_static_initializer): Likewise.
25388         (varpool_next_static_initializer): Likewise.
25389         (varpool_first_defined_variable): Likewise.
25390         (varpool_next_defined_variable): Likewise.
25391         (cgraph_first_defined_function): Likewise.
25392         (cgraph_next_defined_function): Likewise.
25393         (cgraph_first_function): Likewise.
25394         (cgraph_next_function): Likewise.
25395         (cgraph_first_function_with_gimple_body): Likewise.
25396         (cgraph_next_function_with_gimple_body): Likewise.
25397         (cgraph_alias_target): Likewise.
25398         (varpool_alias_target): Likewise.
25399         (cgraph_function_or_thunk_node): Likewise.
25400         (varpool_variable_node): Likewise.
25401         (symtab_real_symbol_p): Likewise.
25402         * cgraphunit.c (referred_to_p): Likewise.
25403         (analyze_functions): Likewise.
25404         (handle_alias_pairs): Likewise.
25405         * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
25406         * gimple-ssa.h (gimple_vuse_op): Likewise.
25407         (gimple_vdef_op): Likewise.
25408         * gimple-streamer-in.c (input_gimple_stmt): Likewise.
25409         * gimple.c (gimple_build_asm_1): Likewise.
25410         (gimple_build_try): Likewise.
25411         (gimple_build_resx): Likewise.
25412         (gimple_build_eh_dispatch): Likewise.
25413         (gimple_build_omp_for): Likewise.
25414         (gimple_omp_for_set_clauses): Likewise.
25416         * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
25417         (is_a_helper <gimple_statement_asm *>::test): ...this.
25418         (is_a_helper <gimple_statement_bind>::test): Convert to...
25419         (is_a_helper <gimple_statement_bind *>::test): ...this.
25420         (is_a_helper <gimple_statement_call>::test): Convert to...
25421         (is_a_helper <gimple_statement_call *>::test): ...this.
25422         (is_a_helper <gimple_statement_catch>::test): Convert to...
25423         (is_a_helper <gimple_statement_catch *>::test): ...this.
25424         (is_a_helper <gimple_statement_resx>::test): Convert to...
25425         (is_a_helper <gimple_statement_resx *>::test): ...this.
25426         (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
25427         (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
25428         (is_a_helper <gimple_statement_eh_else>::test): Convert to...
25429         (is_a_helper <gimple_statement_eh_else *>::test): ...this.
25430         (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
25431         (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
25432         (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
25433         (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
25434         (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
25435         (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
25436         (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
25437         (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
25438         (is_a_helper <gimple_statement_omp_return>::test): Convert to...
25439         (is_a_helper <gimple_statement_omp_return *>::test): ...this.
25440         (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
25441         (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
25442         (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
25443         (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
25444         (is_a_helper <gimple_statement_omp_for>::test): Convert to...
25445         (is_a_helper <gimple_statement_omp_for *>::test): ...this.
25446         (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
25447         (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
25448         (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
25449         (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
25450         (is_a_helper <gimple_statement_omp_target>::test): Convert to...
25451         (is_a_helper <gimple_statement_omp_target *>::test): ...this.
25452         (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
25453         (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
25454         (is_a_helper <gimple_statement_omp_single>::test): Convert to...
25455         (is_a_helper <gimple_statement_omp_single *>::test): ...this.
25456         (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
25457         (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
25458         (is_a_helper <gimple_statement_omp_task>::test): Convert to...
25459         (is_a_helper <gimple_statement_omp_task *>::test): ...this.
25460         (is_a_helper <gimple_statement_phi>::test): Convert to...
25461         (is_a_helper <gimple_statement_phi *>::test): ...this.
25462         (is_a_helper <gimple_statement_transaction>::test): Convert to...
25463         (is_a_helper <gimple_statement_transaction *>::test): ...this.
25464         (is_a_helper <gimple_statement_try>::test): Convert to...
25465         (is_a_helper <gimple_statement_try *>::test): ...this.
25466         (is_a_helper <gimple_statement_wce>::test): Convert to...
25467         (is_a_helper <gimple_statement_wce *>::test): ...this.
25468         (is_a_helper <const gimple_statement_asm>::test): Convert to...
25469         (is_a_helper <const gimple_statement_asm *>::test): ...this.
25470         (is_a_helper <const gimple_statement_bind>::test): Convert to...
25471         (is_a_helper <const gimple_statement_bind *>::test): ...this.
25472         (is_a_helper <const gimple_statement_call>::test): Convert to...
25473         (is_a_helper <const gimple_statement_call *>::test): ...this.
25474         (is_a_helper <const gimple_statement_catch>::test): Convert to...
25475         (is_a_helper <const gimple_statement_catch *>::test): ...this.
25476         (is_a_helper <const gimple_statement_resx>::test): Convert to...
25477         (is_a_helper <const gimple_statement_resx *>::test): ...this.
25478         (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
25479         (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
25480         (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
25481         (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
25482         (is_a_helper <const gimple_statement_omp_atomic_load>::test):
25483         Convert to...
25484         (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
25485         ...this.
25486         (is_a_helper <const gimple_statement_omp_atomic_store>::test):
25487         Convert to...
25488         (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
25489         ...this.
25490         (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
25491         (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
25492         (is_a_helper <const gimple_statement_omp_continue>::test): Convert
25493         to...
25494         (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
25495         (is_a_helper <const gimple_statement_omp_critical>::test): Convert
25496         to...
25497         (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
25498         (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
25499         (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
25500         (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
25501         (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
25502         (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
25503         to...
25504         (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
25505         (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
25506         (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
25507         (is_a_helper <const gimple_statement_omp_sections>::test): Convert
25508         to...
25509         (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
25510         (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
25511         (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
25512         (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
25513         (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
25514         (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
25515         (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
25516         (is_a_helper <const gimple_statement_phi>::test): Convert to...
25517         (is_a_helper <const gimple_statement_phi *>::test): ...this.
25518         (is_a_helper <const gimple_statement_transaction>::test): Convert to...
25519         (is_a_helper <const gimple_statement_transaction *>::test): ...this.
25520         (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
25521         (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
25522         (is_a_helper <gimple_statement_with_ops>::test): Convert to...
25523         (is_a_helper <gimple_statement_with_ops *>::test): ...this.
25524         (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
25525         to...
25526         (is_a_helper <const gimple_statement_with_memory_ops *>::test):
25527         ...this.
25528         (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
25529         (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
25531         (gimple_use_ops): Update for removal of implicit pointer from the
25532         is-a.h API.
25533         (gimple_set_use_ops): Likewise.
25534         (gimple_vuse): Likewise.
25535         (gimple_vdef): Likewise.
25536         (gimple_vuse_ptr): Likewise.
25537         (gimple_vdef_ptr): Likewise.
25538         (gimple_set_vuse): Likewise.
25539         (gimple_set_vdef): Likewise.
25540         (gimple_omp_return_set_lhs): Likewise.
25541         (gimple_omp_return_lhs): Likewise.
25542         (gimple_omp_return_lhs_ptr): Likewise.
25543         (gimple_call_fntype): Likewise.
25544         (gimple_call_set_fntype): Likewise.
25545         (gimple_call_set_internal_fn): Likewise.
25546         (gimple_call_use_set): Likewise.
25547         (gimple_call_clobber_set): Likewise.
25548         (gimple_bind_vars): Likewise.
25549         (gimple_bind_set_vars): Likewise.
25550         (gimple_bind_body_ptr): Likewise.
25551         (gimple_bind_set_body): Likewise.
25552         (gimple_bind_add_stmt): Likewise.
25553         (gimple_bind_block): Likewise.
25554         (gimple_bind_set_block): Likewise.
25555         (gimple_asm_ninputs): Likewise.
25556         (gimple_asm_noutputs): Likewise.
25557         (gimple_asm_nclobbers): Likewise.
25558         (gimple_asm_nlabels): Likewise.
25559         (gimple_asm_input_op): Likewise.
25560         (gimple_asm_input_op_ptr): Likewise.
25561         (gimple_asm_output_op): Likewise.
25562         (gimple_asm_output_op_ptr): Likewise.
25563         (gimple_asm_set_output_op): Likewise.
25564         (gimple_asm_clobber_op): Likewise.
25565         (gimple_asm_set_clobber_op): Likewise.
25566         (gimple_asm_label_op): Likewise.
25567         (gimple_asm_set_label_op): Likewise.
25568         (gimple_asm_string): Likewise.
25569         (gimple_catch_types): Likewise.
25570         (gimple_catch_types_ptr): Likewise.
25571         (gimple_catch_handler_ptr): Likewise.
25572         (gimple_catch_set_types): Likewise.
25573         (gimple_catch_set_handler): Likewise.
25574         (gimple_eh_filter_types): Likewise.
25575         (gimple_eh_filter_types_ptr): Likewise.
25576         (gimple_eh_filter_failure_ptr): Likewise.
25577         (gimple_eh_filter_set_types): Likewise.
25578         (gimple_eh_filter_set_failure): Likewise.
25579         (gimple_eh_must_not_throw_fndecl): Likewise.
25580         (gimple_eh_must_not_throw_set_fndecl): Likewise.
25581         (gimple_eh_else_n_body_ptr): Likewise.
25582         (gimple_eh_else_e_body_ptr): Likewise.
25583         (gimple_eh_else_set_n_body): Likewise.
25584         (gimple_eh_else_set_e_body): Likewise.
25585         (gimple_try_eval_ptr): Likewise.
25586         (gimple_try_cleanup_ptr): Likewise.
25587         (gimple_try_set_eval): Likewise.
25588         (gimple_try_set_cleanup): Likewise.
25589         (gimple_wce_cleanup_ptr): Likewise.
25590         (gimple_wce_set_cleanup): Likewise.
25591         (gimple_phi_capacity): Likewise.
25592         (gimple_phi_num_args): Likewise.
25593         (gimple_phi_result): Likewise.
25594         (gimple_phi_result_ptr): Likewise.
25595         (gimple_phi_set_result): Likewise.
25596         (gimple_phi_arg): Likewise.
25597         (gimple_phi_set_arg): Likewise.
25598         (gimple_resx_region): Likewise.
25599         (gimple_resx_set_region): Likewise.
25600         (gimple_eh_dispatch_region): Likewise.
25601         (gimple_eh_dispatch_set_region): Likewise.
25602         (gimple_omp_critical_name): Likewise.
25603         (gimple_omp_critical_name_ptr): Likewise.
25604         (gimple_omp_critical_set_name): Likewise.
25605         (gimple_omp_for_clauses): Likewise.
25606         (gimple_omp_for_clauses_ptr): Likewise.
25607         (gimple_omp_for_set_clauses): Likewise.
25608         (gimple_omp_for_collapse): Likewise.
25609         (gimple_omp_for_index): Likewise.
25610         (gimple_omp_for_index_ptr): Likewise.
25611         (gimple_omp_for_set_index): Likewise.
25612         (gimple_omp_for_initial): Likewise.
25613         (gimple_omp_for_initial_ptr): Likewise.
25614         (gimple_omp_for_set_initial): Likewise.
25615         (gimple_omp_for_final): Likewise.
25616         (gimple_omp_for_final_ptr): Likewise.
25617         (gimple_omp_for_set_final): Likewise.
25618         (gimple_omp_for_incr): Likewise.
25619         (gimple_omp_for_incr_ptr): Likewise.
25620         (gimple_omp_for_set_incr): Likewise.
25621         (gimple_omp_for_pre_body_ptr): Likewise.
25622         (gimple_omp_for_set_pre_body): Likewise.
25623         (gimple_omp_parallel_clauses): Likewise.
25624         (gimple_omp_parallel_clauses_ptr): Likewise.
25625         (gimple_omp_parallel_set_clauses): Likewise.
25626         (gimple_omp_parallel_child_fn): Likewise.
25627         (gimple_omp_parallel_child_fn_ptr): Likewise.
25628         (gimple_omp_parallel_set_child_fn): Likewise.
25629         (gimple_omp_parallel_data_arg): Likewise.
25630         (gimple_omp_parallel_data_arg_ptr): Likewise.
25631         (gimple_omp_parallel_set_data_arg): Likewise.
25632         (gimple_omp_task_clauses): Likewise.
25633         (gimple_omp_task_clauses_ptr): Likewise.
25634         (gimple_omp_task_set_clauses): Likewise.
25635         (gimple_omp_task_child_fn): Likewise.
25636         (gimple_omp_task_child_fn_ptr): Likewise.
25637         (gimple_omp_task_set_child_fn): Likewise.
25638         (gimple_omp_task_data_arg): Likewise.
25639         (gimple_omp_task_data_arg_ptr): Likewise.
25640         (gimple_omp_task_set_data_arg): Likewise.
25641         (gimple_omp_taskreg_clauses): Likewise.
25642         (gimple_omp_taskreg_clauses_ptr): Likewise.
25643         (gimple_omp_taskreg_set_clauses): Likewise.
25644         (gimple_omp_taskreg_child_fn): Likewise.
25645         (gimple_omp_taskreg_child_fn_ptr): Likewise.
25646         (gimple_omp_taskreg_set_child_fn): Likewise.
25647         (gimple_omp_taskreg_data_arg): Likewise.
25648         (gimple_omp_taskreg_data_arg_ptr): Likewise.
25649         (gimple_omp_taskreg_set_data_arg): Likewise.
25650         (gimple_omp_task_copy_fn): Likewise.
25651         (gimple_omp_task_copy_fn_ptr): Likewise.
25652         (gimple_omp_task_set_copy_fn): Likewise.
25653         (gimple_omp_task_arg_size): Likewise.
25654         (gimple_omp_task_arg_size_ptr): Likewise.
25655         (gimple_omp_task_set_arg_size): Likewise.
25656         (gimple_omp_task_arg_align): Likewise.
25657         (gimple_omp_task_arg_align_ptr): Likewise.
25658         (gimple_omp_task_set_arg_align): Likewise.
25659         (gimple_omp_single_clauses): Likewise.
25660         (gimple_omp_single_clauses_ptr): Likewise.
25661         (gimple_omp_single_set_clauses): Likewise.
25662         (gimple_omp_target_clauses): Likewise.
25663         (gimple_omp_target_clauses_ptr): Likewise.
25664         (gimple_omp_target_set_clauses): Likewise.
25665         (gimple_omp_target_child_fn): Likewise.
25666         (gimple_omp_target_child_fn_ptr): Likewise.
25667         (gimple_omp_target_set_child_fn): Likewise.
25668         (gimple_omp_target_data_arg): Likewise.
25669         (gimple_omp_target_data_arg_ptr): Likewise.
25670         (gimple_omp_target_set_data_arg): Likewise.
25671         (gimple_omp_teams_clauses): Likewise.
25672         (gimple_omp_teams_clauses_ptr): Likewise.
25673         (gimple_omp_teams_set_clauses): Likewise.
25674         (gimple_omp_sections_clauses): Likewise.
25675         (gimple_omp_sections_clauses_ptr): Likewise.
25676         (gimple_omp_sections_set_clauses): Likewise.
25677         (gimple_omp_sections_control): Likewise.
25678         (gimple_omp_sections_control_ptr): Likewise.
25679         (gimple_omp_sections_set_control): Likewise.
25680         (gimple_omp_for_set_cond): Likewise.
25681         (gimple_omp_for_cond): Likewise.
25682         (gimple_omp_atomic_store_set_val): Likewise.
25683         (gimple_omp_atomic_store_val): Likewise.
25684         (gimple_omp_atomic_store_val_ptr): Likewise.
25685         (gimple_omp_atomic_load_set_lhs): Likewise.
25686         (gimple_omp_atomic_load_lhs): Likewise.
25687         (gimple_omp_atomic_load_lhs_ptr): Likewise.
25688         (gimple_omp_atomic_load_set_rhs): Likewise.
25689         (gimple_omp_atomic_load_rhs): Likewise.
25690         (gimple_omp_atomic_load_rhs_ptr): Likewise.
25691         (gimple_omp_continue_control_def): Likewise.
25692         (gimple_omp_continue_control_def_ptr): Likewise.
25693         (gimple_omp_continue_set_control_def): Likewise.
25694         (gimple_omp_continue_control_use): Likewise.
25695         (gimple_omp_continue_control_use_ptr): Likewise.
25696         (gimple_omp_continue_set_control_use): Likewise.
25697         (gimple_transaction_body_ptr): Likewise.
25698         (gimple_transaction_label): Likewise.
25699         (gimple_transaction_label_ptr): Likewise.
25700         (gimple_transaction_set_body): Likewise.
25701         (gimple_transaction_set_label): Likewise.
25703         * ipa-devirt.c (build_type_inheritance_graph): Likewise.
25704         * ipa-inline-analysis.c (inline_write_summary): Likewise.
25705         * ipa-ref.c (ipa_record_reference): Likewise.
25706         * ipa-reference.c (analyze_function): Likewise.
25707         (ipa_reference_write_optimization_summary): Likewise.
25708         * ipa.c (symtab_remove_unreachable_nodes): Likewise.
25709         (address_taken_from_non_vtable_p): Likewise.
25710         (comdat_can_be_unshared_p_1): Likewise.
25711         * lto-cgraph.c (lto_output_ref): Likewise.
25712         (add_references): Likewise.
25713         (compute_ltrans_boundary): Likewise.
25714         (output_symtab): Likewise.
25715         (input_ref): Likewise.
25716         (input_cgraph_1): Likewise.
25717         (output_cgraph_opt_summary): Likewise.
25718         * lto-streamer-out.c (lto_output): Likewise.
25719         (output_symbol_p): Likewise.
25720         * lto-streamer.h (lsei_next_function_in_partition): Likewise.
25721         (lsei_start_function_in_partition): Likewise.
25722         (lsei_next_variable_in_partition): Likewise.
25723         (lsei_start_variable_in_partition): Likewise.
25724         * symtab.c (insert_to_assembler_name_hash): Likewise.
25725         (unlink_from_assembler_name_hash): Likewise.
25726         (symtab_unregister_node): Likewise.
25727         (symtab_remove_node): Likewise.
25728         (dump_symtab_node): Likewise.
25729         (verify_symtab_base): Likewise.
25730         (verify_symtab_node): Likewise.
25731         (symtab_make_decl_local): Likewise.
25732         (symtab_alias_ultimate_target): Likewise.
25733         (symtab_resolve_alias): Likewise.
25734         (symtab_get_symbol_partitioning_class): Likewise.
25735         * tree-phinodes.c (allocate_phi_node): Likewise.
25736         (reserve_phi_args_for_new_edge): Likewise.
25737         (remove_phi_args): Likewise.
25738         * varpool.c (varpool_node_for_asm): Likewise.
25739         (varpool_remove_unreferenced_decls): Likewise.
25741 2014-04-23  Jeff Law  <law@redhat.com>
25743         PR tree-optimization/60902
25744         * tree-ssa-threadedge.c
25745         (record_temporary_equivalences_from_stmts_at_dest): Make sure to
25746         invalidate outputs from statements that do not produce useful
25747         outputs for threading.
25749 2014-04-23  Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
25751         * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
25752         (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
25753         machine descriptions for Stack Smashing Protector.
25755 2014-04-23  Richard Earnshaw  <rearnsha@arm.com>
25757         * aarch64.md (<optab>_rol<mode>3): New pattern.
25758         (<optab>_rolsi3_uxtw): Likewise.
25759         * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
25761 2014-04-23  James Greenhalgh  <james.greenhalgh@arm.com>
25763         * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
25764         (arm_cortex_a12_tune): Likewise.
25766 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25768         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
25770 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25772         * config/arm/arm.md (arm_rev16si2): New pattern.
25773         (arm_rev16si2_alt): Likewise.
25774         * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
25776 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25778         * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
25779         (rev16<mode>2_alt): Likewise.
25780         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
25781         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
25782         (aarch_rev16_shleft_mask_imm_p): Likewise.
25783         (aarch_rev16_p_1): Likewise.
25784         (aarch_rev16_p): Likewise.
25785         * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
25786         (aarch_rev16_shright_mask_imm_p): Likewise.
25787         (aarch_rev16_shleft_mask_imm_p): Likewise.
25789 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25791         * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
25792         * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
25793         rev cost.
25794         (cortex_a53_extra_costs): Likewise.
25795         (cortex_a57_extra_costs): Likewise.
25796         * config/arm/arm.c (cortexa9_extra_costs): Likewise.
25797         (cortexa7_extra_costs): Likewise.
25798         (cortexa8_extra_costs): Likewise.
25799         (cortexa12_extra_costs): Likewise.
25800         (cortexa15_extra_costs): Likewise.
25801         (v7m_extra_costs): Likewise.
25802         (arm_new_rtx_costs): Handle BSWAP.
25804 2013-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25806         * config/arm/arm.c (cortexa8_extra_costs): New table.
25807         (arm_cortex_a8_tune): New tuning struct.
25808         * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
25810 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25812         * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
25814 2014-04-23  Richard Biener  <rguenther@suse.de>
25816         * Makefile.in (OBJS): Remove loop-unswitch.o.
25817         * tree-pass.h (make_pass_rtl_unswitch): Remove.
25818         * passes.def (pass_rtl_unswitch): Likewise.
25819         * loop-init.c (gate_rtl_unswitch): Likewise.
25820         (rtl_unswitch): Likewise.
25821         (pass_data_rtl_unswitch): Likewise.
25822         (pass_rtl_unswitch): Likewise.
25823         (make_pass_rtl_unswitch): Likewise.
25824         * rtl.h (reversed_condition): Likewise.
25825         (compare_and_jump_seq): Likewise.
25826         * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
25827         and make static.
25828         * loop-unroll.c (compare_and_jump_seq): Likewise.
25830 2014-04-23  Richard Biener  <rguenther@suse.de>
25832         PR tree-optimization/60903
25833         * tree-ssa-loop-im.c (analyze_memory_references): Remove
25834         commented code block.
25835         (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
25836         loop flags to newly created BBs and edges.
25838 2014-04-23  Nick Clifton  <nickc@redhat.com>
25840         * config/msp430/msp430.c (msp430_handle_option): Move function
25841         to msp430-common.c
25842         (msp430_option_override): Simplify mcu and mcpu option handling.
25843         (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult.  Add
25844         support for -mhwmult command line option.
25845         (has_32bit_hwmult): Rename to use_32bit_hwmult.  Add support for
25846         -mhwmult command line option.
25847         (msp430_hwmult_enabled): Delete.
25848         (msp43o_output_labelref): Add support for -mhwmult command line option.
25849         * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
25850         (umulsidi3): Likewise.
25851         * config/msp430/msp430.opt (mmcu): Add Report attribute.
25852         (mcpu, mlarge, msmall): Likewise.
25853         (mhwmult): New option.
25854         * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
25855         prototype.
25856         (msp430_is_f5_mcu): Remove prototype.
25857         (msp430_use_f5_series_hwmult): Add prototype.
25858         * config/msp430/msp430-opts.h: New file.
25859         * common/config/msp430: New directory.
25860         * common/config/msp430/msp430-common.c: New file.
25861         * config.gcc (msp430): Remove target_has_targetm_common.
25862         * doc/invoke.texi: Document -mhwmult command line option.
25864 2014-04-23  Nick Clifton  <nickc@redhat.com>
25866         * config/i386/cygwin.h (ENDFILE_SPEC): Include
25867         default-manifest.o if it can be found in the search path.
25868         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
25870 2014-04-23  Terry Guo  <terry.guo@arm.com>
25872         * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
25874 2014-04-23  Richard Biener  <rguenther@suse.de>
25876         PR middle-end/60895
25877         * tree-inline.c (declare_return_variable): Use mark_addressable.
25879 2014-04-23  Richard Biener  <rguenther@suse.de>
25881         PR middle-end/60891
25882         * loop-init.c (loop_optimizer_init): Make sure to apply
25883         LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
25885 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
25887         PR sanitizer/60275
25888         * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
25889         New options.
25890         * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
25891         if flag_sanitize_undefined_trap_on_error.
25892         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
25893         BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
25894         BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
25895         BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
25896         BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
25897         BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
25898         BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
25899         BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
25900         BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
25901         * ubsan.c (ubsan_instrument_unreachable): Return
25902         __builtin_trap () if flag_sanitize_undefined_trap_on_error.
25903         (ubsan_expand_null_ifn): Emit __builtin_trap ()
25904         if flag_sanitize_undefined_trap_on_error and
25905         __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
25906         (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
25907         instrument_bool_enum_load): Emit __builtin_trap () if
25908         flag_sanitize_undefined_trap_on_error and
25909         __builtin_handle_*_abort () if !flag_sanitize_recover.
25910         * doc/invoke.texi (-fsanitize-recover,
25911         -fsanitize-undefined-trap-on-error): Document.
25913 2014-04-22  Christian Bruel  <christian.bruel@st.com>
25915         * config/sh/sh.md (mov<mode>): Replace movQIHI.
25916          Force immediates to SImode.
25918 2014-04-22  Sandra Loosemore  <sandra@codesourcery.com>
25920         * config/nios2/nios2.md (UNSPEC_ROUND): New.
25921         (lroundsfsi2): New.
25922         * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
25923         * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
25924         * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
25925         (nios2_fpu_insn): Add entry for round.
25926         (N2FPU_NO_ERRNO_P): Define.
25927         (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
25928         flag_errno_math.
25929         * doc/invoke.texi (Nios II Options): Document -mcustom-round.
25931 2014-04-22  Richard Henderson  <rth@redhat.com>
25933         * config/aarch64/aarch64 (addti3, subti3): New expanders.
25934         (add<GPI>3_compare0): Remove leading * from name.
25935         (add<GPI>3_carryin): Likewise.
25936         (sub<GPI>3_compare0): Likewise.
25937         (sub<GPI>3_carryin): Likewise.
25938         (<su_optab>mulditi3): New expander.
25939         (multi3): New expander.
25940         (madd<GPI>): Remove leading * from name.
25942 2014-04-22  Martin Jambor  <mjambor@suse.cz>
25944         * cgraphclones.c (cgraph_function_versioning): Copy
25945         ipa_transforms_to_apply instead of asserting it is empty.
25947 2014-04-22  H.J. Lu  <hongjiu.lu@intel.com>
25949         PR target/60868
25950         * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
25951         on count_exp to get mode.
25953 2014-04-22  Andrew Pinski  <apinski@cavium.com>
25955         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
25956         Handle TLS for ILP32.
25957         * config/aarch64/aarch64.md (tlsie_small): Rename to ...
25958         (tlsie_small_<mode>): this and handle PTR.
25959         (tlsie_small_sidi): New pattern.
25960         (tlsle_small): Change to an expand to handle ILP32.
25961         (tlsle_small_<mode>): New pattern.
25962         (tlsdesc_small): Rename to ...
25963         (tlsdesc_small_<mode>): this and handle PTR.
25965 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25967         * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
25969 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
25971         * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
25972         (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
25973         (aarch64_types_signed_poly_qualifiers): Likewise.
25974         (aarch64_types_unsigned_signed_qualifiers): Likewise.
25975         (aarch64_types_poly_signed_qualifiers): Likewise.
25976         (TYPES_REINTERP_SS): Type macro added.
25977         (TYPES_REINTERP_SU): Likewise.
25978         (TYPES_REINTERP_SP): Likewise.
25979         (TYPES_REINTERP_US): Likewise.
25980         (TYPES_REINTERP_PS): Likewise.
25981         (aarch64_fold_builtin): New expression folding added.
25982         * config/aarch64/aarch64-simd-builtins.def (REINTERP):
25983         Declarations removed.
25984         (REINTERP_SS): Declarations added.
25985         (REINTERP_US): Likewise.
25986         (REINTERP_PS): Likewise.
25987         (REINTERP_SU): Likewise.
25988         (REINTERP_SP): Likewise.
25989         * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
25990         (vreinterpretq_p8_f64): Likewise.
25991         (vreinterpret_p16_f64): Likewise.
25992         (vreinterpretq_p16_f64): Likewise.
25993         (vreinterpret_f32_f64): Likewise.
25994         (vreinterpretq_f32_f64): Likewise.
25995         (vreinterpret_f64_f32): Likewise.
25996         (vreinterpret_f64_p8): Likewise.
25997         (vreinterpret_f64_p16): Likewise.
25998         (vreinterpret_f64_s8): Likewise.
25999         (vreinterpret_f64_s16): Likewise.
26000         (vreinterpret_f64_s32): Likewise.
26001         (vreinterpret_f64_s64): Likewise.
26002         (vreinterpret_f64_u8): Likewise.
26003         (vreinterpret_f64_u16): Likewise.
26004         (vreinterpret_f64_u32): Likewise.
26005         (vreinterpret_f64_u64): Likewise.
26006         (vreinterpretq_f64_f32): Likewise.
26007         (vreinterpretq_f64_p8): Likewise.
26008         (vreinterpretq_f64_p16): Likewise.
26009         (vreinterpretq_f64_s8): Likewise.
26010         (vreinterpretq_f64_s16): Likewise.
26011         (vreinterpretq_f64_s32): Likewise.
26012         (vreinterpretq_f64_s64): Likewise.
26013         (vreinterpretq_f64_u8): Likewise.
26014         (vreinterpretq_f64_u16): Likewise.
26015         (vreinterpretq_f64_u32): Likewise.
26016         (vreinterpretq_f64_u64): Likewise.
26017         (vreinterpret_s64_f64): Likewise.
26018         (vreinterpretq_s64_f64): Likewise.
26019         (vreinterpret_u64_f64): Likewise.
26020         (vreinterpretq_u64_f64): Likewise.
26021         (vreinterpret_s8_f64): Likewise.
26022         (vreinterpretq_s8_f64): Likewise.
26023         (vreinterpret_s16_f64): Likewise.
26024         (vreinterpretq_s16_f64): Likewise.
26025         (vreinterpret_s32_f64): Likewise.
26026         (vreinterpretq_s32_f64): Likewise.
26027         (vreinterpret_u8_f64): Likewise.
26028         (vreinterpretq_u8_f64): Likewise.
26029         (vreinterpret_u16_f64): Likewise.
26030         (vreinterpretq_u16_f64): Likewise.
26031         (vreinterpret_u32_f64): Likewise.
26032         (vreinterpretq_u32_f64): Likewise.
26034 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
26036         * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
26037         * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
26038         (vreinterpret_p8_s8): Likewise.
26039         * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
26040         (vreinterpret_p8_s16): Likewise.
26041         (vreinterpret_p8_s32): Likewise.
26042         (vreinterpret_p8_s64): Likewise.
26043         (vreinterpret_p8_f32): Likewise.
26044         (vreinterpret_p8_u8): Likewise.
26045         (vreinterpret_p8_u16): Likewise.
26046         (vreinterpret_p8_u32): Likewise.
26047         (vreinterpret_p8_u64): Likewise.
26048         (vreinterpret_p8_p16): Likewise.
26049         (vreinterpretq_p8_s8): Likewise.
26050         (vreinterpretq_p8_s16): Likewise.
26051         (vreinterpretq_p8_s32): Likewise.
26052         (vreinterpretq_p8_s64): Likewise.
26053         (vreinterpretq_p8_f32): Likewise.
26054         (vreinterpretq_p8_u8): Likewise.
26055         (vreinterpretq_p8_u16): Likewise.
26056         (vreinterpretq_p8_u32): Likewise.
26057         (vreinterpretq_p8_u64): Likewise.
26058         (vreinterpretq_p8_p16): Likewise.
26059         (vreinterpret_p16_s8): Likewise.
26060         (vreinterpret_p16_s16): Likewise.
26061         (vreinterpret_p16_s32): Likewise.
26062         (vreinterpret_p16_s64): Likewise.
26063         (vreinterpret_p16_f32): Likewise.
26064         (vreinterpret_p16_u8): Likewise.
26065         (vreinterpret_p16_u16): Likewise.
26066         (vreinterpret_p16_u32): Likewise.
26067         (vreinterpret_p16_u64): Likewise.
26068         (vreinterpret_p16_p8): Likewise.
26069         (vreinterpretq_p16_s8): Likewise.
26070         (vreinterpretq_p16_s16): Likewise.
26071         (vreinterpretq_p16_s32): Likewise.
26072         (vreinterpretq_p16_s64): Likewise.
26073         (vreinterpretq_p16_f32): Likewise.
26074         (vreinterpretq_p16_u8): Likewise.
26075         (vreinterpretq_p16_u16): Likewise.
26076         (vreinterpretq_p16_u32): Likewise.
26077         (vreinterpretq_p16_u64): Likewise.
26078         (vreinterpretq_p16_p8): Likewise.
26079         (vreinterpret_f32_s8): Likewise.
26080         (vreinterpret_f32_s16): Likewise.
26081         (vreinterpret_f32_s32): Likewise.
26082         (vreinterpret_f32_s64): Likewise.
26083         (vreinterpret_f32_u8): Likewise.
26084         (vreinterpret_f32_u16): Likewise.
26085         (vreinterpret_f32_u32): Likewise.
26086         (vreinterpret_f32_u64): Likewise.
26087         (vreinterpret_f32_p8): Likewise.
26088         (vreinterpret_f32_p16): Likewise.
26089         (vreinterpretq_f32_s8): Likewise.
26090         (vreinterpretq_f32_s16): Likewise.
26091         (vreinterpretq_f32_s32): Likewise.
26092         (vreinterpretq_f32_s64): Likewise.
26093         (vreinterpretq_f32_u8): Likewise.
26094         (vreinterpretq_f32_u16): Likewise.
26095         (vreinterpretq_f32_u32): Likewise.
26096         (vreinterpretq_f32_u64): Likewise.
26097         (vreinterpretq_f32_p8): Likewise.
26098         (vreinterpretq_f32_p16): Likewise.
26099         (vreinterpret_s64_s8): Likewise.
26100         (vreinterpret_s64_s16): Likewise.
26101         (vreinterpret_s64_s32): Likewise.
26102         (vreinterpret_s64_f32): Likewise.
26103         (vreinterpret_s64_u8): Likewise.
26104         (vreinterpret_s64_u16): Likewise.
26105         (vreinterpret_s64_u32): Likewise.
26106         (vreinterpret_s64_u64): Likewise.
26107         (vreinterpret_s64_p8): Likewise.
26108         (vreinterpret_s64_p16): Likewise.
26109         (vreinterpretq_s64_s8): Likewise.
26110         (vreinterpretq_s64_s16): Likewise.
26111         (vreinterpretq_s64_s32): Likewise.
26112         (vreinterpretq_s64_f32): Likewise.
26113         (vreinterpretq_s64_u8): Likewise.
26114         (vreinterpretq_s64_u16): Likewise.
26115         (vreinterpretq_s64_u32): Likewise.
26116         (vreinterpretq_s64_u64): Likewise.
26117         (vreinterpretq_s64_p8): Likewise.
26118         (vreinterpretq_s64_p16): Likewise.
26119         (vreinterpret_u64_s8): Likewise.
26120         (vreinterpret_u64_s16): Likewise.
26121         (vreinterpret_u64_s32): Likewise.
26122         (vreinterpret_u64_s64): Likewise.
26123         (vreinterpret_u64_f32): Likewise.
26124         (vreinterpret_u64_u8): Likewise.
26125         (vreinterpret_u64_u16): Likewise.
26126         (vreinterpret_u64_u32): Likewise.
26127         (vreinterpret_u64_p8): Likewise.
26128         (vreinterpret_u64_p16): Likewise.
26129         (vreinterpretq_u64_s8): Likewise.
26130         (vreinterpretq_u64_s16): Likewise.
26131         (vreinterpretq_u64_s32): Likewise.
26132         (vreinterpretq_u64_s64): Likewise.
26133         (vreinterpretq_u64_f32): Likewise.
26134         (vreinterpretq_u64_u8): Likewise.
26135         (vreinterpretq_u64_u16): Likewise.
26136         (vreinterpretq_u64_u32): Likewise.
26137         (vreinterpretq_u64_p8): Likewise.
26138         (vreinterpretq_u64_p16): Likewise.
26139         (vreinterpret_s8_s16): Likewise.
26140         (vreinterpret_s8_s32): Likewise.
26141         (vreinterpret_s8_s64): Likewise.
26142         (vreinterpret_s8_f32): Likewise.
26143         (vreinterpret_s8_u8): Likewise.
26144         (vreinterpret_s8_u16): Likewise.
26145         (vreinterpret_s8_u32): Likewise.
26146         (vreinterpret_s8_u64): Likewise.
26147         (vreinterpret_s8_p8): Likewise.
26148         (vreinterpret_s8_p16): Likewise.
26149         (vreinterpretq_s8_s16): Likewise.
26150         (vreinterpretq_s8_s32): Likewise.
26151         (vreinterpretq_s8_s64): Likewise.
26152         (vreinterpretq_s8_f32): Likewise.
26153         (vreinterpretq_s8_u8): Likewise.
26154         (vreinterpretq_s8_u16): Likewise.
26155         (vreinterpretq_s8_u32): Likewise.
26156         (vreinterpretq_s8_u64): Likewise.
26157         (vreinterpretq_s8_p8): Likewise.
26158         (vreinterpretq_s8_p16): Likewise.
26159         (vreinterpret_s16_s8): Likewise.
26160         (vreinterpret_s16_s32): Likewise.
26161         (vreinterpret_s16_s64): Likewise.
26162         (vreinterpret_s16_f32): Likewise.
26163         (vreinterpret_s16_u8): Likewise.
26164         (vreinterpret_s16_u16): Likewise.
26165         (vreinterpret_s16_u32): Likewise.
26166         (vreinterpret_s16_u64): Likewise.
26167         (vreinterpret_s16_p8): Likewise.
26168         (vreinterpret_s16_p16): Likewise.
26169         (vreinterpretq_s16_s8): Likewise.
26170         (vreinterpretq_s16_s32): Likewise.
26171         (vreinterpretq_s16_s64): Likewise.
26172         (vreinterpretq_s16_f32): Likewise.
26173         (vreinterpretq_s16_u8): Likewise.
26174         (vreinterpretq_s16_u16): Likewise.
26175         (vreinterpretq_s16_u32): Likewise.
26176         (vreinterpretq_s16_u64): Likewise.
26177         (vreinterpretq_s16_p8): Likewise.
26178         (vreinterpretq_s16_p16): Likewise.
26179         (vreinterpret_s32_s8): Likewise.
26180         (vreinterpret_s32_s16): Likewise.
26181         (vreinterpret_s32_s64): Likewise.
26182         (vreinterpret_s32_f32): Likewise.
26183         (vreinterpret_s32_u8): Likewise.
26184         (vreinterpret_s32_u16): Likewise.
26185         (vreinterpret_s32_u32): Likewise.
26186         (vreinterpret_s32_u64): Likewise.
26187         (vreinterpret_s32_p8): Likewise.
26188         (vreinterpret_s32_p16): Likewise.
26189         (vreinterpretq_s32_s8): Likewise.
26190         (vreinterpretq_s32_s16): Likewise.
26191         (vreinterpretq_s32_s64): Likewise.
26192         (vreinterpretq_s32_f32): Likewise.
26193         (vreinterpretq_s32_u8): Likewise.
26194         (vreinterpretq_s32_u16): Likewise.
26195         (vreinterpretq_s32_u32): Likewise.
26196         (vreinterpretq_s32_u64): Likewise.
26197         (vreinterpretq_s32_p8): Likewise.
26198         (vreinterpretq_s32_p16): Likewise.
26199         (vreinterpret_u8_s8): Likewise.
26200         (vreinterpret_u8_s16): Likewise.
26201         (vreinterpret_u8_s32): Likewise.
26202         (vreinterpret_u8_s64): Likewise.
26203         (vreinterpret_u8_f32): Likewise.
26204         (vreinterpret_u8_u16): Likewise.
26205         (vreinterpret_u8_u32): Likewise.
26206         (vreinterpret_u8_u64): Likewise.
26207         (vreinterpret_u8_p8): Likewise.
26208         (vreinterpret_u8_p16): Likewise.
26209         (vreinterpretq_u8_s8): Likewise.
26210         (vreinterpretq_u8_s16): Likewise.
26211         (vreinterpretq_u8_s32): Likewise.
26212         (vreinterpretq_u8_s64): Likewise.
26213         (vreinterpretq_u8_f32): Likewise.
26214         (vreinterpretq_u8_u16): Likewise.
26215         (vreinterpretq_u8_u32): Likewise.
26216         (vreinterpretq_u8_u64): Likewise.
26217         (vreinterpretq_u8_p8): Likewise.
26218         (vreinterpretq_u8_p16): Likewise.
26219         (vreinterpret_u16_s8): Likewise.
26220         (vreinterpret_u16_s16): Likewise.
26221         (vreinterpret_u16_s32): Likewise.
26222         (vreinterpret_u16_s64): Likewise.
26223         (vreinterpret_u16_f32): Likewise.
26224         (vreinterpret_u16_u8): Likewise.
26225         (vreinterpret_u16_u32): Likewise.
26226         (vreinterpret_u16_u64): Likewise.
26227         (vreinterpret_u16_p8): Likewise.
26228         (vreinterpret_u16_p16): Likewise.
26229         (vreinterpretq_u16_s8): Likewise.
26230         (vreinterpretq_u16_s16): Likewise.
26231         (vreinterpretq_u16_s32): Likewise.
26232         (vreinterpretq_u16_s64): Likewise.
26233         (vreinterpretq_u16_f32): Likewise.
26234         (vreinterpretq_u16_u8): Likewise.
26235         (vreinterpretq_u16_u32): Likewise.
26236         (vreinterpretq_u16_u64): Likewise.
26237         (vreinterpretq_u16_p8): Likewise.
26238         (vreinterpretq_u16_p16): Likewise.
26239         (vreinterpret_u32_s8): Likewise.
26240         (vreinterpret_u32_s16): Likewise.
26241         (vreinterpret_u32_s32): Likewise.
26242         (vreinterpret_u32_s64): Likewise.
26243         (vreinterpret_u32_f32): Likewise.
26244         (vreinterpret_u32_u8): Likewise.
26245         (vreinterpret_u32_u16): Likewise.
26246         (vreinterpret_u32_u64): Likewise.
26247         (vreinterpret_u32_p8): Likewise.
26248         (vreinterpret_u32_p16): Likewise.
26249         (vreinterpretq_u32_s8): Likewise.
26250         (vreinterpretq_u32_s16): Likewise.
26251         (vreinterpretq_u32_s32): Likewise.
26252         (vreinterpretq_u32_s64): Likewise.
26253         (vreinterpretq_u32_f32): Likewise.
26254         (vreinterpretq_u32_u8): Likewise.
26255         (vreinterpretq_u32_u16): Likewise.
26256         (vreinterpretq_u32_u64): Likewise.
26257         (vreinterpretq_u32_p8): Likewise.
26258         (vreinterpretq_u32_p16): Likewise.
26260 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
26262         * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
26263         Pattern extended.
26264         * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
26265         (sqabs): Likewise.
26266         * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
26267         (vqnegd_s64): Likewise.
26268         (vqabs_s64): Likewise.
26269         (vqabsd_s64): Likewise.
26271 2014-04-22  Richard Henderson  <rth@redhat.com>
26273         * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
26274         computation to the top of the loop.
26276 2014-04-22  Renlin  <renlin.li@arm.com>
26277             Jiong Wang  <jiong.wang@arm.com>
26279         * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
26280         * config/aarch64/aarch64.c (aarch64_layout_frame)
26281         (aarch64_initial_elimination_offset): Likewise.
26283 2014-04-22  Marcus Shawcroft  <marcus.shawcroft@arm.com>
26285         * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
26286         Fix indentation.
26288 2014-04-22  Richard Sandiford  <rdsandiford@googlemail.com>
26290         * machmode.h (bitwise_mode_for_mode): Declare.
26291         * stor-layout.h (bitwise_type_for_mode): Likewise.
26292         * stor-layout.c (bitwise_mode_for_mode): New function.
26293         (bitwise_type_for_mode): Likewise.
26294         * builtins.c (fold_builtin_memory_op): Use it instead of
26295         int_mode_for_mode and build_nonstandard_integer_type.
26297 2014-04-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26299         * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
26300         (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
26301         (*-*-solaris2*): Simplify.
26302         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
26303         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
26304         *-*-solaris2.9* handling.
26306         * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
26307         as bug.
26308         (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
26309         (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
26310         handling, simplify.
26311         (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
26312         * configure: Regenerate.
26314         * config/i386/sol2-9.h: Remove.
26316         * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
26317         (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
26318         Remove Solaris 9 references.
26320 2014-04-22  Vidya Praveen  <vidyapraveen@arm.com>
26322         * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
26323         (floatuns<GPI:mode><GPF:mode>2): Remove.
26324         (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
26325         and floatuns conversions.
26326         (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
26327         and floatuns conversions.
26328         * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
26329         (w1,w2): New mode attributes for inequal width conversions.
26331 2014-04-22  Renlin Li  <Renlin.Li@arm.com>
26333         * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
26334         the output asm format.
26336 2014-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
26338         * config/aarch64/aarch64-simd.md
26339         (aarch64_cm<optab>di): Always split.
26340         (*aarch64_cm<optab>di): New.
26341         (aarch64_cmtstdi): Always split.
26342         (*aarch64_cmtstdi): New.
26344 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
26346         PR tree-optimization/60823
26347         * omp-low.c (ipa_simd_modify_function_body): Go through
26348         all SSA_NAMEs and for those refering to vector arguments
26349         which are going to be replaced adjust SSA_NAME_VAR and,
26350         if it is a default definition, change it into a non-default
26351         definition assigned at the beginning of function from new_decl.
26352         (ipa_simd_modify_stmt_ops): Rewritten.
26353         * tree-dfa.c (set_ssa_default_def): When removing default def,
26354         check for NULL loc instead of NULL *loc.
26356 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26358         * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
26359         restrictions on core registers for DImode values in Thumb2.
26361 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
26363         * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
26364         * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
26366 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
26368         * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
26369         (*iordi_notzesidi_di): Likewise.
26370         (*iordi_notsesidi_di): Likewise.
26372 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
26374         * config/arm/arm-protos.h (tune_params): New struct members.
26375         * config/arm/arm.c: Initialise tune_params per processor.
26376         (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
26377         for speed, based on new tune_params.
26379 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
26381         * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
26382         * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
26383         * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
26384         * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
26385         * config/aarch64/arm_neon.h (vrnd_f64): Added.
26386         (vrnda_f64): Likewise.
26387         (vrndi_f64): Likewise.
26388         (vrndm_f64): Likewise.
26389         (vrndn_f64): Likewise.
26390         (vrndp_f64): Likewise.
26391         (vrndx_f64): Likewise.
26393 2014-04-22  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
26395         * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
26396         GET_MODE_SIZE argument is enum machine_mode.
26398 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
26400         PR target/60910
26401         * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
26402         value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
26404 2014-04-22  Lin Zuojian  <manjian2006@gmail.com>
26406         PR middle-end/60281
26407         * asan.c (asan_emit_stack_protection): Force the base to align to
26408         appropriate bits if STRICT_ALIGNMENT.  Set shadow_mem align to
26409         appropriate bits if STRICT_ALIGNMENT.
26410         * cfgexpand.c (expand_stack_vars): Set base_align appropriately
26411         when asan is on.
26412         (expand_used_vars): Leave a space in the stack frame for alignment
26413         if STRICT_ALIGNMENT.
26415 2014-04-21  David Malcolm  <dmalcolm@redhat.com>
26417         * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
26418         than a gimple.
26419         (gimple_store_p): Likewise.
26420         (gimple_assign_load_p): Likewise.
26421         (gimple_assign_cast_p): Likewise.
26422         (gimple_clobber_p): Likewise.
26424         * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
26425         rather than a gimple.
26426         (gimple_assign_cast_p): Likewise.
26428 2014-04-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
26430         PR target/60735
26431         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
26432         If mode is DDmode and TARGET_E500_DOUBLE allow move.
26434         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
26435         more debug information for E500 if -mdebug=reg.
26437 2014-04-21  Uros Bizjak  <ubizjak@gmail.com>
26439         PR target/60909
26440         * config/i386/i386.c (ix86_expand_builtin)
26441         <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
26442         register for target RTX.
26443         <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
26445 2014-04-18  Cong Hou  <congh@google.com>
26447         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
26448         the widen-mult pattern by handling two operands with different sizes,
26449         and operands whose size is smaller than half of the result type.
26451 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
26453         * ipa-inline.h (INLINE_HINT_known_hot): New hint.
26454         * ipa-inline-analysis.c (dump_inline_hints): Dump it.
26455         (do_estimate_edge_time): Compute it.
26456         * ipa-inline.c (want_inline_small_function_p): Bypass
26457         INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
26459 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
26461         * ipa-inline.c (spec_rem): New static variable.
26462         (dump_overall_stats): New function.
26463         (dump_inline_stats): New function.
26465 2014-04-18  Richard Henderson  <rth@redhat.com>
26467         * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
26468         to GET_MODE_SIZE, not a reg_class_t.
26470 2014-04-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26472         * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
26473         (vsx_xxmrglw_<mode>): Likewise.
26475 2014-04-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
26477         PR target/60876
26478         * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
26479         GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
26480         (rs6000_init_hard_regno_mode_ok): Likewise.
26482 2014-04-17  Jan Hubicka  <hubicka@ucw.cz>
26484         * ipa-inline.c (inline_small_functions): Account only non-cold
26485         functions.
26486         * doc/invoke.texi (inline-unit-growth): Update documentation.
26488 2014-04-17  Pat Haugen  <pthaugen@us.ibm.com>
26490         * config/rs6000/rs6000.md (addti3, subti3): New.
26492 2014-04-17  H.J. Lu  <hongjiu.lu@intel.com>
26494         PR target/60863
26495         * config/i386/i386.c (ix86_expand_clear): Remove outdated
26496         comment.  Check optimize_insn_for_size_p instead of
26497         optimize_insn_for_speed_p.
26499 2014-04-17  Martin Jambor  <mjambor@suse.cz>
26501         * gimple-iterator.c (gsi_start_edge): New function.
26502         * gimple-iterator.h (gsi_start_edge): Declare.
26503         * tree-sra.c (single_non_eh_succ): New function.
26504         (disqualify_ops_if_throwing_stmt): Renamed to
26505         disqualify_if_bad_bb_terminating_stmt.  Allow throwing statements
26506         having one non-EH successor BB.
26507         (sra_modify_expr): If stmt ends bb, use single non-EH successor to
26508         generate loads into replacements.
26509         (sra_modify_assign): Likewise and and also use the simple path for
26510         such statements.
26511         (sra_modify_function_body): Commit statements on edges.
26513 2014-04-17  Richard Biener  <rguenther@suse.de>
26515         PR middle-end/60849
26516         * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
26517         comparison results and add clarifying comment.
26519 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
26521         * genmodes.c (struct mode_data): Add need_bytesize_adj field.
26522         (blank_mode): Initialize it.
26523         (emit_mode_size_inline, emit_mode_nunits_inline,
26524         emit_mode_inner_inline): New functions.
26525         (emit_insn_modes_h): Call them and surround their output with
26526         #if GCC_VERSION >= 4001 ... #endif.
26527         * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
26528         For GCC_VERSION >= 4001 use mode_*_inline routines instead of
26529         mode_* arrays if the argument is __builtin_constant_p.
26530         * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
26531         is enum machine_mode.
26533 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
26535         * passes.c (opt_pass::execute): Adjust.
26536         (pass_manager::execute_pass_mode_switching): Likewise.
26537         (early_local_passes::execute): Likewise.
26538         (execute_one_pass): Pass cfun to the pass's execute method.
26539         * tree-pass.h (opt_pass::execute): Add function * argument.
26540         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
26541         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
26542         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
26543         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
26544         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
26545         config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
26546         except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
26547         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
26548         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
26549         ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
26550         ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
26551         lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
26552         postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
26553         reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
26554         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
26555         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
26556         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
26557         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
26558         tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
26559         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
26560         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
26561         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
26562         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
26563         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
26564         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
26565         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
26566         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
26567         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
26568         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
26569         Adjust.
26571 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
26573         * passes.c (opt_pass::gate): Take function * argument.
26574         (gate_all_early_local_passes): Merge into
26575         (early_local_passes::gate): this.
26576         (gate_all_early_optimizations): Merge into
26577         (all_early_optimizations::gate): this.
26578         (gate_all_optimizations): Mege into
26579         (all_optimizations::gate): this.
26580         (gate_all_optimizations_g): Merge into
26581         (all_optimizations_g::gate): this.
26582         (gate_rest_of_compilation): Mege into
26583         (rest_of_compilation::gate): this.
26584         (gate_postreload): Merge into
26585         (postreload::gate): this.
26586         (dump_one_pass): Pass cfun to the pass's gate method.
26587         (execute_ipa_summary_passes): Likewise.
26588         (execute_one_pass): Likewise.
26589         (ipa_write_summaries_2): Likewise.
26590         (ipa_write_optimization_summaries_1): Likewise.
26591         (ipa_read_summaries_1): Likewise.
26592         (ipa_read_optimization_summaries_1): Likewise.
26593         (execute_ipa_stmt_fixups): Likewise.
26594         * tree-pass.h (opt_pass::gate): Add function * argument.
26595         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
26596         combine-stack-adj.c, combine.c, compare-elim.c,
26597         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
26598         config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
26599         config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
26600         dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c,  fwprop.c, gcse.c,
26601         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
26602         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
26603         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
26604         loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
26605         omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
26606         reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
26607         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
26608         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
26609         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
26610         tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
26611         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
26612         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
26613         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
26614         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
26615         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
26616         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
26617         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
26618         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
26619         tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
26620         tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
26621         var-tracking.c, vtable-verify.c, web.c: Adjust.
26623 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
26625         * configure.ac: Check for -Woverloaded-virtual and enable it if found.
26626         * configure: Regenerate.
26628 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
26630         * passes.c (dump_one_pass): don't check pass->has_gate.
26631         (execute_ipa_summary_passes): Likewise.
26632         (execute_one_pass): Likewise.
26633         (ipa_write_summaries_2): Likewise.
26634         (ipa_write_optimization_summaries_1): Likewise.
26635         (ipa_read_optimization_summaries_1): Likewise.
26636         (execute_ipa_stmt_fixups): Likewise.
26637         * tree-pass.h (pass_data::has_gate): Remove.
26638         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
26639         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
26640         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
26641         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
26642         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
26643         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
26644         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
26645         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
26646         gimple-low.c, gimple-ssa-isolate-paths.c,
26647         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
26648         ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
26649         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
26650         ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
26651         modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
26652         recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
26653         reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
26654         trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
26655         tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
26656         tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
26657         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
26658         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
26659         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
26660         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
26661         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
26662         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
26663         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
26664         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
26665         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
26666         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
26667         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
26668         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
26669         Adjust.
26671 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
26673         * pass_manager.h (pass_manager::register_dump_files_1): Remove
26674         declaration.
26675         * passes.c (pass_manager::register_dump_files_1): Merge into
26676         (pass_manager::register_dump_files): this, and remove its handling of
26677         properties since the pass always has the properties anyway.
26678         (pass_manager::pass_manager): Adjust.
26680 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
26682         * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
26683         * passes.c (pass_manager::register_dump_files_1): Remove dead code
26684         dealing with properties.
26685         (pass_manager::register_dump_files): Adjust.
26687 2014-03-20  Mark Wielaard  <mjw@redhat.com>
26689         * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
26690         then represent the bound as normal constant value.
26692 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
26694         PR target/60847
26695         Forward port from 4.8 branch
26696         2013-07-19  Kirill Yukhin  <kirill.yukhin@intel.com>
26698         * config/i386/bmiintrin.h (_blsi_u32): New.
26699         (_blsi_u64): Ditto.
26700         (_blsr_u32): Ditto.
26701         (_blsr_u64): Ditto.
26702         (_blsmsk_u32): Ditto.
26703         (_blsmsk_u64): Ditto.
26704         (_tzcnt_u32): Ditto.
26705         (_tzcnt_u64): Ditto.
26707 2014-04-17  Kito Cheng  <kito@0xlab.org>
26709         * gcc.c (used_arg): Prevent out of bound access for multilib_options.
26711 2014-04-17  Richard Biener  <rguenther@suse.de>
26713         PR middle-end/60849
26714         * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
26715         boolean results for comparisons.
26717 2014-04-17  Richard Biener  <rguenther@suse.de>
26719         PR tree-optimization/60836
26720         * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
26721         initial PHI args to be gimple values.
26723 2014-04-17  Richard Biener  <rguenther@suse.de>
26725         PR tree-optimization/60841
26726         * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
26727         * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
26728         of stmts to SLP build.
26729         * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
26730         (vect_analyze_slp): Likewise.
26731         (vect_analyze_slp_instance): Likewise.
26732         (vect_build_slp_tree): Limit overall SLP tree growth.
26733         * tree-vectorizer.h (vect_analyze_data_refs,
26734         vect_analyze_slp): Adjust prototypes.
26736 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
26738         * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
26739         Silvermont.
26741 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
26743         * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
26744         * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
26745         * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
26746         for TARGET_SLOW_PSHUFB
26748 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
26750         * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
26751         * config/i386/i386.c (intel_cost): Ditto.
26753 2014-04-17  Joey Ye  <joey.ye@arm.com>
26755         * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
26757 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
26759         * opts.c (common_handle_option): Disable -fipa-reference coorectly
26760         with -fuse-profile.
26762 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
26764         * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
26765         (type_all_derivations_known_p): New predicate.
26766         (type_all_ctors_visible_p): New predicate.
26767         (type_possibly_instantiated_p): New predicate.
26768         (get_odr_type): Compute all_derivations_known.
26769         (dump_odr_type): Dump the flag.
26770         (maybe_record_type): Cleanup.
26771         (record_target_from_binfo): Add bases_to_consider array;
26772         record bases for types w/o instances and skip CXX destructor.
26773         (possible_polymorphic_call_targets_1): Add bases_to_consider
26774         and consider_construction parameters; check if type may have instance.
26775         (get_polymorphic_call_info): Set maybe_in_construction to true
26776         when we know nothing.
26777         (record_targets_from_bases): Skip CXX destructors; they are
26778         never called for types in construction.
26779         (possible_polymorphic_call_targets): Do not record target when
26780         type may not have instance.
26782 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
26784         PR ipa/60854
26785         * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
26786         external aliases alive, too.
26788 2014-04-16  Andrew  Pinski  <apinski@cavium.com>
26790         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
26791         definition.
26793 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
26795         * final.c (compute_alignments): Do not apply loop alignment to a block
26796         falling through to the exit.
26798 2014-04-16  Catherine Moore  <clm@codesourcery.com>
26800         * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
26801         Adjust constraints for microMIPS store patterns.
26803 2014-04-16  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
26805         * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
26807 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
26809         * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
26810         (append_use): Run at -O0.
26811         (append_vdef): Likewise.
26812         * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
26813         * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
26815 2014-04-16  Jakub Jelinek  <jakub@redhat.com>
26817         PR tree-optimization/60844
26818         * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
26819         (propagate_op_to_single_use, remove_visited_stmt_chain,
26820         linearize_expr, repropagate_negates, reassociate_bb): Use it
26821         instead of gsi_remove.
26823 2014-04-16  Martin Jambor  <mjambor@suse.cz>
26825         * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
26826         ipa_transforms_to_apply.
26827         (cgraph_function_versioning): Assert that old_node has empty
26828         ipa_transforms_to_apply.
26829         * trans-mem.c (ipa_tm_create_version): Likewise.
26830         * tree-inline.c (tree_function_versioning): Do not duplicate
26831         ipa_transforms_to_apply.
26833 2014-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26835         PR target/60817
26836         * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
26837         x86_64-*-* cases.
26838         Pass necessary as flags on 64-bit Solaris/x86.
26839         Use lowercase relocs for x86_64-*-*.
26840         * configure: Regenerate.
26842 2014-04-15  Jan Hubicka  <jh@suse.cz>
26844         * ipa-devirt.c (referenced_from_vtable_p): New predicate.
26845         (maybe_record_node, likely_target_p): Use it.
26847 2014-04-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26849         PR target/60839
26850         Revert following patch
26852         2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
26854         PR target/60735
26855         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
26856         software floating point or no floating point registers, do not
26857         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
26858         in GPRs that occurs after we tested for GPRs that would never be
26859         true.
26861         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
26862         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
26863         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
26864         specifically allow DDmode, since that does not use the SPE SIMD
26865         instructions.
26867 2014-03-21  Mark Wielaard  <mjw@redhat.com>
26869         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
26870         as unsigned or int depending on type and value used.
26872 2014-04-15  Richard Biener  <rguenther@suse.de>
26874         PR rtl-optimization/56965
26875         * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
26876         * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
26877         ... here.
26878         * alias.c (true_dependence_1): Do not call
26879         nonoverlapping_component_refs_p.
26880         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
26881         nonoverlapping_component_refs_p.
26882         (indirect_refs_may_alias_p): Likewise.
26884 2014-04-15  Teresa Johnson  <tejohnson@google.com>
26886         * cfg.c (dump_bb_info): Fix flags check.
26887         * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
26889 2014-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26891         PR rtl-optimization/60663
26892         * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
26893         avoid 0 cost.
26895 2014-04-15  Richard Biener  <rguenther@suse.de>
26897         * lto-streamer.h (LTO_major_version): Bump to 4.
26899 2014-04-15  Richard Biener  <rguenther@suse.de>
26901         * common.opt (lto_partition_model): New enum.
26902         (flto-partition=): Merge separate options with a single with argument,
26903         add -flto-partition=one support.
26904         * flag-types.h (enum lto_partition_model): Declare.
26905         * opts.c (finish_options): Remove duplicate -flto-partition=
26906         option check.
26907         * lto-wrapper.c (run_gcc): Adjust.
26909 2014-04-15  Richard Biener  <rguenther@suse.de>
26911         * alias.c (ncr_compar): New function.
26912         (nonoverlapping_component_refs_p): Re-implement in O (n log n).
26914 2014-04-15  Richard Biener  <rguenther@suse.de>
26916         * alias.c (record_component_aliases): Do not walk BINFOs.
26918 2014-04-15  Richard Biener  <rguenther@suse.de>
26920         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
26921         Add struct function argument and adjust.
26922         (find_func_aliases_for_call): Likewise.
26923         (find_func_aliases): Likewise.
26924         (find_func_clobbers): Likewise.
26925         (intra_create_variable_infos): Likewise.
26926         (compute_points_to_sets): Likewise.
26927         (ipa_pta_execute): Adjust.  Do not push/pop cfun.
26929 2014-04-15  Richard Biener  <rguenther@suse.de>
26931         * tree.c (iterative_hash_expr): Use enum tree_code_class
26932         to store TREE_CODE_CLASS.
26933         (tree_block): Likewise.
26934         (tree_set_block): Likewise.
26935         * tree.h (fold_build_pointer_plus_loc): Use
26936         convert_to_ptrofftype_loc.
26938 2014-04-15  Jakub Jelinek  <jakub@redhat.com>
26940         PR plugins/59335
26941         * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
26942         added in 4.9.
26944 2014-04-15  Eric Botcazou  <ebotcazou@adacore.com>
26946         * cfgloop.h (struct loop): Move force_vectorize down.
26947         * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
26948         (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
26949         * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
26950         * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
26951         * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
26952         * tree-core.h (enum annot_expr_kind): Add new kind values.
26953         * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
26954         * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
26955         kinds.
26956         * tree.def (ANNOTATE_EXPR): Tweak comment.
26958 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
26960         * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
26961         cxa_pure_virtual).
26963 2014-04-14  Paolo Carlini  <paolo.carlini@oracle.com>
26965         * tree.h (TYPE_IDENTIFIER): Declare.
26966         * tree.c (subrange_type_for_debug_p): Use it.
26967         * godump.c (go_format_type): Likewise.
26968         * dwarf2out.c (is_cxx_auto, modified_type_die,
26969         gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
26970         * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
26972 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
26974         PR lto/60820
26975         * varpool.c (varpool_remove_node): Do not alter decls when streaming.
26977 2014-04-14  Uros Bizjak  <ubizjak@gmail.com>
26979         * config/i386/i386.c (examine_argument): Return bool.  Return true if
26980         parameter should be passed in memory.
26981         <case X86_64_COMPLEX_X87_CLASS>: Adjust.
26982         (construct_container): Update calls to examine_argument.
26983         (function_arg_advance_64): Ditto.
26984         (return_in_memory_32): Merge with ix86_return_in_memory.
26985         (return_in_memory_64): Ditto.
26986         (return_in_memory_ms_64): Ditto.
26988 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
26990         * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
26991         * coverage.c (coverage_compute_profile_id): Handle externally visible
26992         symbols.
26994 2014-04-14  Martin Jambor  <mjambor@suse.cz>
26996         * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
26997         DECL_DISREGARD_INLINE_LIMITS functions.
26999 2014-04-14  H.J. Lu  <hongjiu.lu@intel.com>
27001         PR target/60827
27002         * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
27004 2014-04-14  H.J. Lu  <hongjiu.lu@intel.com>
27006         PR target/60827
27007         * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
27008         optimize_insn_for_speed_p instead of
27009         optimize_function_for_speed_p.
27011 2014-04-14  Yufeng Zhang  <yufeng.zhang@arm.com>
27013         * doc/invoke.texi (free): Document AArch64.
27015 2014-04-14  Richard Biener  <rguenther@suse.de>
27017         PR tree-optimization/60042
27018         * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
27019         (insert_into_preds_of_block): Do not prevent PHI insertion
27020         for REFERENCE exprs here ...
27021         (eliminate_dom_walker::before_dom_children): ... but prevent
27022         their use here under similar conditions when applied to the
27023         IL after PRE optimizations.
27025 2014-04-14  Richard Biener  <rguenther@suse.de>
27027         * passes.def: Move early points-to after early SRA.
27029 2014-04-14  Richard Biener  <rguenther@suse.de>
27031         * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
27032         check for which sign-changes we allow when forwarding
27033         a converted value into a switch.
27035 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
27037         * stor-layout.c (place_field): Finalize non-constant offset for the
27038         field, if any.
27040 2014-04-14  Richard Biener  <rguenther@suse.de>
27042         * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
27043         as argument.
27044         (expand_switch_using_bit_tests_p): Likewise.
27045         (process_switch): Compute and pass on speed_p based on the
27046         switch stmt.
27047         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
27048         optimize_bb_for_speed_p.
27050 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
27052         * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
27053         * function.h (struct function): Rename has_force_vect_loops into
27054         has_force_vectorize_loops.
27055         * lto-streamer-in.c (input_cfg): Adjust for renaming.
27056         (input_struct_function_base): Likewise.
27057         * lto-streamer-out.c (output_cfg): Likewise.
27058         (output_struct_function_base): Likewise.
27059         * omp-low.c (expand_omp_simd): Likewise.
27060         * tree-cfg.c (move_sese_region_to_fn): Likewise.
27061         * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
27062         (version_loop_for_if_conversion): Likewise.
27063         (tree_if_conversion): Likewise.
27064         (main_tree_if_conversion): Likewise.
27065         (gate_tree_if_conversion): Likewise.
27066         * tree-inline.c (copy_loops): Likewise.
27067         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
27068         * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
27069         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
27070         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
27071         * tree-vectorizer.c (vectorize_loops): Likewise.
27072         * tree-vectorizer.h (unlimited_cost_model): Likewise.
27074 2014-04-14  Richard Biener  <rguenther@suse.de>
27076         PR lto/60720
27077         * lto-streamer-out.c (wrap_refs): New function.
27078         (lto_output): Wrap symbol references in global initializes in
27079         type-preserving MEM_REFs.
27081 2014-04-14  Christian Bruel  <christian.bruel@st.com>
27083         * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
27085 2014-04-14  Christian Bruel  <christian.bruel@st.com>
27087         * config/sh/sh.md (setmemqi): New expand pattern.
27088         * config/sh/sh.h (CLEAR_RATIO): Define.
27089         * config/sh/sh-mem.cc (sh_expand_setmem): Define.
27090         * config/sh/sh-protos.h (sh_expand_setmem): Declare.
27092 2014-04-14  Richard Biener  <rguenther@suse.de>
27094         PR middle-end/55022
27095         * fold-const.c (negate_expr_p): Don't negate directional rounding
27096         division.
27097         (fold_negate_expr): Likewise.
27099 2014-04-14  Richard Biener  <rguenther@suse.de>
27101         PR tree-optimization/59817
27102         PR tree-optimization/60453
27103         * graphite-scop-detection.c (graphite_can_represent_scev): Complete
27104         recursion to catch all CHRECs in the scalar evolution and restrict
27105         the predicate for the remains appropriately.
27107 2014-04-12  Catherine Moore  <clm@codesourcery.com>
27109         * config/mips/constraints.md: Add new register constraint "kb".
27110         * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
27111         (*movhi_internal): Likewise.
27112         (*movqi_internal): Likewise.
27113         * config/mips/mips.h (M16_STORE_REGS): New register class.
27114         (REG_CLASS_NAMES): Add M16_STORE_REGS.
27115         (REG_CLASS_CONTENTS): Likewise.
27116         * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
27118 2014-04-11  Tobias Burnus  <burnus@net-b.de>
27120         PR c/60194
27121         * doc/invoke.texi (-Wformat-signedness): Document it.
27122         (Wformat=2): Mention that this enables -Wformat-signedness.
27124 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
27126         * common/config/epiphany/epiphany-common.c
27127         (epiphany_option_optimization_table): Enable section anchors by
27128         default at -O1 or higher.
27129         * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
27130         (TARGET_MIN_ANCHOR_OFFSET): Likewise.
27131         (epiphany_rtx_costs) <SET>: For binary operators, the set as such
27132         carries no extra cost.
27133         (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
27134         * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
27135         * config/epiphany/predicates.md (memclob_operand): New predicate.
27136         * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
27137         Use memclob_operand predicate and X constraint for operand 3.
27139 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
27141         * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
27142         with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
27143         its operands.
27145 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
27147         PR rtl-optimization/60651
27148         * mode-switching.c (optimize_mode_switching): Make sure to emit
27149         sets of a lower numbered entity before sets of a higher numbered
27150         entity to a mode of the same or lower priority.
27151         When creating a seginfo for a basic block that starts with a code
27152         label, move the insertion point past the code label.
27153         (new_seginfo): Document and enforce requirement that
27154         NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
27155         * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
27156         * doc/tm.texi: Regenerate.
27158 2014-01-11  Joern Rennecke  <joern.rennecke@embecosm.com>
27160         PR target/60811
27161         * config/arc/arc.c (arc_save_restore): Fix assert typo.
27163 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
27165         * BASE-VER: Set to 4.10.0.
27167 2014-04-11  Tobias Burnus  <burnus@net-b.de>
27169         PR other/59055
27170         * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
27171         * doc/gcc.texi (Service): Update description in the @menu
27172         * doc/invoke.texi (Option Summary): Remove misplaced and
27173         duplicated @menu.
27175 2014-04-11  Steve Ellcey  <sellcey@mips.com>
27176             Jakub Jelinek  <jakub@redhat.com>
27178         PR middle-end/60556
27179         * expr.c (convert_move): Use emit_store_flag_force instead of
27180         emit_store_flag.  Pass lowpart_mode instead of VOIDmode as 5th
27181         argument to it.
27183 2014-04-11  Richard Biener  <rguenther@suse.de>
27185         PR middle-end/60797
27186         * varasm.c (assemble_alias): Avoid endless error reporting
27187         recursion by setting TREE_ASM_WRITTEN.
27189 2014-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27191         * config/s390/s390.md: Add a splitter for NOT rtx.
27193 2014-04-11  Jakub Jelinek  <jakub@redhat.com>
27195         PR rtl-optimization/60663
27196         * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
27198 2014-04-10  Jan Hubicka  <hubicka@ucw.cz>
27199             Jakub Jelinek  <jakub@redhat.com>
27201         PR lto/60567
27202         * ipa.c (function_and_variable_visibility): Copy forced_by_abi
27203         flag from decl_node to node.
27205 2014-04-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
27207         PR debug/60655
27208         * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
27209         (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
27210         ameliorating the cases where it can be.
27212 2014-04-09  David Edelsohn  <dje.gcc@gmail.com>
27214         Revert
27215         2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
27217         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
27218         (loadsync_<mode>): Change mode.
27219         (load_quadpti, store_quadpti): New.
27220         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
27221         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
27222         * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
27224 2014-04-09  Cong Hou  <congh@google.com>
27226         PR testsuite/60773
27227         * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
27228         documentation.
27230 2014-04-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27232         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
27233         instead of vnor to exploit possible fusion opportunity in the
27234         future.
27235         (altivec_expand_vec_perm_const_le): Likewise.
27237 2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
27239         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
27240         (loadsync_<mode>): Change mode.
27241         (load_quadpti, store_quadpti): New.
27242         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
27243         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
27245 2014-04-08  Richard Sandiford  <rdsandiford@googlemail.com>
27247         PR target/60763
27248         * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
27249         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
27250         Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
27252 2014-04-08  Richard Biener  <rguenther@suse.de>
27254         PR middle-end/60706
27255         * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
27256         a 64bit widest int print double-int similar to on HWI64 hosts.
27258 2014-04-08  Richard Biener  <rguenther@suse.de>
27260         PR tree-optimization/60785
27261         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
27262         default defs properly.
27264 2014-04-08  Nathan Sidwell  <nathan@codesourcery.com>
27266         * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
27267         (Weffc++): Likewise.
27269 2014-04-07  Jan Hubicka  <hubcika@ucw.cz>
27271         * ipa-devirt.c (maybe_record_node): When node is not recorded,
27272         set completep to false rather than true.
27274 2014-04-07  Douglas B Rupp  <rupp@adacore.com>
27276         PR target/60504
27277         * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
27278         ARM_TARGET2_DWARF_FORMAT.
27280 2014-04-07  Charles Baylis  <charles.baylis@linaro.org>
27282         PR target/60609
27283         * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
27284         (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
27285         ADDR_DIFF_VEC.
27287 2014-04-07  Richard Biener  <rguenther@suse.de>
27289         PR tree-optimization/60766
27290         * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
27291         (may_eliminate_iv): Convert cand_value_at result to desired type.
27293 2014-04-07  Jason Merrill  <jason@redhat.com>
27295         PR c++/60731
27296         * common.opt (-fno-gnu-unique): Add.
27297         * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
27299 2014-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27301         * haifa-sched.c: Fix outdated function reference and minor
27302         grammar errors in introductory comment.
27304 2014-04-07  Richard Biener  <rguenther@suse.de>
27306         PR middle-end/60750
27307         * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
27308         for noreturn calls.
27309         * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
27311 2014-04-06  John David Anglin  <danglin@gcc.gnu.org>
27313         PR debug/55794
27314         * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
27315         size accounting for thunks.
27316         (pa_asm_output_mi_thunk): Use final_start_function() and
27317         final_end_function() to output function start and end directives.
27319 2014-04-05  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
27321         * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
27322         device specific ISA/ feature information. Remove short_sp and
27323         errata_skip ds.  Add avr_device_specific_features enum to have device
27324         specific info.
27325         * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
27326         errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
27327         * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
27328         updated device specific info.
27329         * config/avr/avr-mcus.def: Merge device specific details to
27330         dev_attribute field.
27331         * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
27332         errata_skip.
27333         * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
27334         * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
27335         assembler if RMW isa supported by current device.
27336         * config/avr/genmultilib.awk: Update as device info structure changed.
27337         * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
27339 2014-04-04  Cong Hou  <congh@google.com>
27341         PR tree-optimization/60656
27342         * tree-vect-stmts.c (supportable_widening_operation):
27343         Fix a bug that elements in a vector with vect_used_by_reduction
27344         property are incorrectly reordered when the operation on it is not
27345         consistant with the one in reduction operation.
27347 2014-04-04  John David Anglin  <danglin@gcc.gnu.org>
27349         PR rtl-optimization/60155
27350         * gcse.c (record_set_data): New function.
27351         (single_set_gcse): New function.
27352         (gcse_emit_move_after): Use single_set_gcse instead of single_set.
27353         (hoist_code): Likewise.
27354         (get_pressure_class_and_nregs): Likewise.
27356 2014-04-04  Eric Botcazou  <ebotcazou@adacore.com>
27358         * explow.c (probe_stack_range): Emit a final optimization blockage.
27360 2014-04-04  Anthony Green  <green@moxielogic.com>
27362         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
27363         typos.
27365 2014-04-04  Jan Hubicka  <hubicka@ucw.cz>
27367         PR ipa/59626
27368         * lto-cgraph.c (input_overwrite_node): Check that partitioning
27369         flags are set only during streaming.
27370         * ipa.c (process_references, walk_polymorphic_call_targets,
27371         symtab_remove_unreachable_nodes): Drop bodies of always inline
27372         after early inlining.
27373         (symtab_remove_unreachable_nodes): Remove always_inline attribute.
27375 2014-04-04  Jakub Jelinek  <jakub@redhat.com>
27376         Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
27378         PR debug/60655
27379         * dwarf2out.c (const_ok_for_output_1): Reject expressions
27380         containing a NOT.
27382 2014-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27384         PR bootstrap/60743
27385         * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
27386         duration.
27387         (cortex_a53_fdivd): Likewise.
27389 2014-04-04  Martin Jambor  <mjambor@suse.cz>
27391         PR ipa/60640
27392         * cgraph.h (cgraph_clone_node): New parameter added to declaration.
27393         Adjust all callers.
27394         * cgraph.c (clone_of_p): Also return true if thunks match.
27395         (verify_edge_corresponds_to_fndecl): Removed extraneous call to
27396         cgraph_function_or_thunk_node and an obsolete comment.
27397         * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
27398         file.
27399         (build_function_decl_skip_args): Likewise.
27400         (set_new_clone_decl_and_node_flags): New function.
27401         (duplicate_thunk_for_node): Likewise.
27402         (redirect_edge_duplicating_thunks): Likewise.
27403         (cgraph_clone_node): New parameter args_to_skip, pass it to
27404         redirect_edge_duplicating_thunks which is called instead of
27405         cgraph_redirect_edge_callee.
27406         (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
27407         moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
27409 2014-04-04  Jeff Law  <law@redhat.com>
27411         PR target/60657
27412         * config/arm/predicates.md (const_int_I_operand): New predicate.
27413         (const_int_M_operand): Similarly.
27414         * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
27415         const_int_operand.
27416         (insv_t2, extv_reg, extzv_t2): Likewise.
27417         (load_multiple_with_writeback): Similarly for const_int_I_operand.
27418         (pop_multiple_with_writeback_and_return): Likewise.
27419         (vfp_pop_multiple_with_writeback): Likewise
27421 2014-04-04  Richard Biener  <rguenther@suse.de>
27423         PR ipa/60746
27424         * tree-ssanames.c (make_ssa_name_fn): Fix assert.
27425         * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
27426         non-GIMPLE_LABELs.
27427         * gimplify.h (gimple_add_tmp_var_fn): Declare.
27428         * gimplify.c (gimple_add_tmp_var_fn): New function.
27429         * gimple-expr.h (create_tmp_reg_fn): Declare.
27430         * gimple-expr.c (create_tmp_reg_fn): New function.
27431         * gimple-low.c (record_vars_into): Don't change cfun.
27432         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
27433         code generation without cfun.
27435 2014-04-04  Thomas Schwinge  <thomas@codesourcery.com>
27437         PR bootstrap/60719
27438         * Makefile.in (install-driver): Fix shell scripting.
27440 2014-04-03  Cong Hou  <congh@google.com>
27442         PR tree-optimization/60505
27443         * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
27444         threshold of number of iterations below which no vectorization
27445         will be done.
27446         * tree-vect-loop.c (new_loop_vec_info):
27447         Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
27448         * tree-vect-loop.c (vect_analyze_loop_operations):
27449         Set LOOP_VINFO_COST_MODEL_THRESHOLD.
27450         * tree-vect-loop.c (vect_transform_loop):
27451         Use LOOP_VINFO_COST_MODEL_THRESHOLD.
27452         * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
27453         of iterations of the loop and see if we should build the epilogue.
27455 2014-04-03  Richard Biener  <rguenther@suse.de>
27457         * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
27458         (streamer_tree_cache_create): Adjust.
27459         * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
27460         to allow optional nodes array.
27461         (streamer_tree_cache_insert_1): Use next_idx to assign idx.
27462         (streamer_tree_cache_append): Likewise.
27463         (streamer_tree_cache_create): Create nodes array optionally
27464         as specified by parameter.
27465         * lto-streamer-out.c (create_output_block): Avoid maintaining
27466         the node array in the writer cache.
27467         (DFS_write_tree): Remove assertion.
27468         (produce_asm_for_decls): Free the out decl state hash table early.
27469         * lto-streamer-in.c (lto_data_in_create): Adjust for
27470         streamer_tree_cache_create prototype change.
27472 2014-04-03  Richard Biener  <rguenther@suse.de>
27474         * tree-streamer-out.c (streamer_write_chain): Do not temporarily
27475         set TREE_CHAIN to NULL_TREE.
27477 2014-04-03  Richard Biener  <rguenther@suse.de>
27479         PR tree-optimization/60740
27480         * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
27481         over all GIMPLE_COND operands.
27483 2014-04-03  Nathan Sidwell  <nathan@codesourcery.com>
27485         * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
27486         (Weffc++): Remove Scott's numbering, merge lists and reference
27487         Wnon-virtual-dtor.
27489 2014-04-03  Nick Clifton  <nickc@redhat.com>
27491         * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
27492         properly.
27494 2014-04-03  Martin Jambor  <mjambor@suse.cz>
27496         * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
27497         mention gcc_unreachable before failing.
27498         * ipa.c (symtab_remove_unreachable_nodes): Also print order of
27499         removed symbols.
27501 2014-04-02  Jan Hubicka  <hubicka@ucw.cz>
27503         PR ipa/60659
27504         * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
27505         inconsistent code and instead mark the context inconsistent.
27506         (possible_polymorphic_call_targets): For inconsistent contexts
27507         return empty complete list.
27509 2014-04-02  Anthony Green  <green@moxielogic.com>
27511         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
27512         (extendqisi2, extendhisi2): Define.
27513         * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
27514         (WCHAR_TYPE): Change to unsigned int.
27516 2014-04-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27518         PR tree-optimization/60733
27519         * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
27520         insertion point for PHI candidates to be the end of the feeding
27521         block for the PHI argument.
27523 2014-04-02  Vladimir Makarov  <vmakarov@redhat.com>
27525         PR rtl-optimization/60650
27526         * lra-constraints.c (process_alt_operands): Decrease reject for
27527         earlyclobber matching.
27529 2014-04-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27531         * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
27533 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27535         * config/spu/spu.c (pad_bb): Do not crash when the last
27536         insn is CODE_FOR_blockage.
27538 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27540         * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
27541         lies outside the target mode.
27543 2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
27545         PR target/60735
27546         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
27547         software floating point or no floating point registers, do not
27548         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
27549         in GPRs that occurs after we tested for GPRs that would never be
27550         true.
27552         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
27553         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
27554         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
27555         specifically allow DDmode, since that does not use the SPE SIMD
27556         instructions.
27558 2014-04-02  Richard Biener  <rguenther@suse.de>
27560         PR middle-end/60729
27561         * optabs.c (expand_abs_nojump): Honor flag_trapv only for
27562         MODE_INTs.  Properly use negv_optab.
27563         (expand_abs): Likewise.
27565 2014-04-02  Richard Biener  <rguenther@suse.de>
27567         PR bootstrap/60719
27568         * Makefile.in (install-driver): Guard extra installs with special
27569         names properly.
27571 2014-04-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
27573         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
27574         Document vec_vgbbd.
27576 2014-04-01  Richard Henderson  <rth@redhat.com>
27578         PR target/60704
27579         * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
27580         alternative enabled before register allocation.
27582 2014-04-01  Chung-Lin Tang  <cltang@codesourcery.com>
27584         * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
27585         * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
27586         typo.
27587         (nios2_large_got_address): Remove unneeded 'sym' parameter.
27588         (nios2_got_address): Update nios2_large_got_address call site.
27589         (nios2_delegitimize_address): New function.
27590         (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
27591         * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
27592         (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
27594 2014-04-01  Martin Husemann  <martin@duskware.de>
27596         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
27597         for -mabi=32.
27599 2014-04-01  Richard Sandiford  <rdsandiford@googlemail.com>
27601         PR rtl-optimization/60604
27602         * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
27603         check from register_operand.
27604         (register_operand): Redefine in terms of general_operand.
27605         (nonmemory_operand): Use register_operand for the non-constant cases.
27607 2014-04-01  Richard Biener  <rguenther@suse.de>
27609         * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
27611 2014-04-01  Sebastian Huber  <sebastian.huber@embedded-brains.de>
27613         * doc/invoke.texi (mapp-regs): Clarify.
27615 2014-03-31  Ulrich Drepper  <drepper@gmail.com>
27617         * config/i386/avx512fintrin.h (__v32hi): Define type.
27618         (__v64qi): Likewise.
27619         (_mm512_set1_epi8): Define.
27620         (_mm512_set1_epi16): Define.
27621         (_mm512_set4_epi32): Define.
27622         (_mm512_set4_epi64): Define.
27623         (_mm512_set4_pd): Define.
27624         (_mm512_set4_ps): Define.
27625         (_mm512_setr4_epi64): Define.
27626         (_mm512_setr4_epi32): Define.
27627         (_mm512_setr4_pd): Define.
27628         (_mm512_setr4_ps): Define.
27629         (_mm512_setzero_epi32): Define.
27631 2014-03-31  Martin Jambor  <mjambor@suse.cz>
27633         PR middle-end/60647
27634         * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
27635         callsite_arguments_match_p.  Updated all callers.  Also check types of
27636         corresponding formal parameters and actual arguments.
27637         (not_all_callers_have_enough_arguments_p) Renamed to
27638         some_callers_have_mismatched_arguments_p.
27640 2014-03-31  Yuri Rumyantsev  <ysrumyan@gmail.com>
27642         * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
27644 2014-03-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
27646         PR target/60034
27647         * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
27648         section anchor.
27650 2014-03-30  Uros Bizjak  <ubizjak@gmail.com>
27652         * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
27653         (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
27654         Split out
27655         <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
27656         Use FMAMODE_NOVF512 mode iterator.
27657         (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
27658         (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
27659         (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
27660         (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
27661         Split out
27662         <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
27663         Use VF_128_256 mode iterator.
27664         (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
27665         Ditto.
27667 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
27669         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
27670         static chain if needed.
27672 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
27674         PR target/60697
27675         * lra-constraints.c (index_part_to_reg): New.
27676         (process_address): Use it.
27678 2014-03-27  Jeff Law  <law@redhat.com>
27679             Jakub Jelinek  <jakub@redhat.com>
27681         PR target/60648
27682         * expr.c (do_tablejump): Use simplify_gen_binary rather than
27683         gen_rtx_{PLUS,MULT} to build up the address expression.
27685         * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
27686         creating non-canonical RTL.
27688 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
27690         PR ipa/60243
27691         * ipa-inline.c (want_inline_small_function_p): Short circuit large
27692         functions; reorganize to make cheap checks first.
27693         (inline_small_functions): Do not estimate growth when dumping;
27694         it is expensive.
27695         * ipa-inline.h (inline_summary): Add min_size.
27696         (growth_likely_positive): New function.
27697         * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
27698         (set_cond_stmt_execution_predicate): Cleanup.
27699         (estimate_edge_size_and_time): Compute min_size.
27700         (estimate_calls_size_and_time): Likewise.
27701         (estimate_node_size_and_time): Likewise.
27702         (inline_update_overall_summary): Update min_size.
27703         (do_estimate_edge_time): Likewise.
27704         (do_estimate_edge_size): Update.
27705         (do_estimate_edge_hints): Update.
27706         (growth_likely_positive): New function.
27708 2014-03-28  Jakub Jelinek  <jakub@redhat.com>
27710         PR target/60693
27711         * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
27712         also if addr has VOIDmode.
27714 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27716         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
27717         * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
27718         Declare extern.
27719         * config/arm/cortex-a53.md: Add reservations and bypass for crypto
27720         instructions as well as AdvancedSIMD loads.
27722 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27724         * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
27725         Use crypto_aese type.
27726         (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
27727         * config/arm/arm.md (is_neon_type): Replace crypto_aes with
27728         crypto_aese, crypto_aesmc.  Move to types.md.
27729         * config/arm/types.md (crypto_aes): Split into crypto_aese,
27730         crypto_aesmc.
27731         * config/arm/iterators.md (crypto_type): Likewise.
27733 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
27735         * cgraph.c: Include expr.h and tree-dfa.h.
27736         (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
27737         remove LHS.
27739 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
27741         PR target/60675
27742         * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
27743         regs from checking multi-reg pseudos.
27745 2014-03-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
27747         * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
27749 2014-03-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27751         * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
27752         if it would clobber the stack pointer, even temporarily.
27754 2014-03-28  Eric Botcazou  <ebotcazou@adacore.com>
27756         * mode-switching.c: Make small adjustments to the top comment.
27758 2014-03-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
27760         * config/rs6000/constraints.md (wD constraint): New constraint to
27761         match the constant integer to get the top DImode/DFmode out of a
27762         vector in a VSX register.
27764         * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
27765         match the constant integer to get the top DImode/DFmode out of a
27766         vector in a VSX register.
27768         * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
27769         for ISA 2.07.
27771         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
27772         vbpermq builtins.
27774         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
27775         -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
27777         * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
27778         Optimize vec_extract of 64-bit values, where the value being
27779         extracted is in the top word, where we can use scalar
27780         instructions.  Add direct move and store support.  Combine the big
27781         endian/little endian vector select load support into a single insn.
27782         (vsx_extract_<mode>_internal1): Likewise.
27783         (vsx_extract_<mode>_internal2): Likewise.
27784         (vsx_extract_<mode>_load): Likewise.
27785         (vsx_extract_<mode>_store): Likewise.
27786         (vsx_extract_<mode>_zero): Delete, big and little endian insns are
27787         combined into vsx_extract_<mode>_load.
27788         (vsx_extract_<mode>_one_le): Likewise.
27790         * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
27791         define the top 64-bit vector element.
27793         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
27794         constraint.
27796         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
27797         Document vec_vbpermq builtin.
27799         PR target/60672
27800         * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
27801         enable use of xxsldwi and xxpermdi builtin functions.
27802         (vec_xxpermdi): Likewise.
27804         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
27805         Document use of vec_xxsldwi and vec_xxpermdi builtins.
27807 2014-03-27  Vladimir Makarov  <vmakarov@redhat.com>
27809         PR rtl-optimization/60650
27810         * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
27811         first_p.  Use it.
27812         (find_spills_for): New.
27813         (assign_by_spills): Pass the new parameter to find_hard_regno_for.
27814         Spill all pseudos on the second iteration.
27816 2014-03-27  Marek Polacek  <polacek@redhat.com>
27818         PR c/50347
27819         * doc/extend.texi (ffs Builtins): Change unsigned types to signed
27820         types.
27822 2014-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27824         * config/s390/s390.c (s390_can_use_return_insn): Check for
27825         call-saved FPRs on 31 bit.
27827 2014-03-27  Jakub Jelinek  <jakub@redhat.com>
27829         PR middle-end/60682
27830         * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
27831         if they need regimplification, just drop them instead of
27832         calling gimple_regimplify_operands on them.
27834 2014-03-27  Marcus Shawcroft  <marcus.shawcroft@arm.com>
27836         PR target/60580
27837         * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
27838         (aarch64_frame_pointer_required): Adjust logic.
27839         (aarch64_can_eliminate): Adjust logic.
27840         (aarch64_override_options_after_change): Adjust logic.
27842 2014-03-27  Dehao Chen  <dehao@google.com>
27844         * ipa-inline.c (early_inliner): Update node's inline info.
27846 2014-03-26  Dehao Chen  <dehao@google.com>
27848         * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
27849         compiler inserted conditional jumps for NAN float check.
27851 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
27853         * ubsan.h (ubsan_create_data): Change second argument's type
27854         to const location_t *.
27855         * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
27856         _("<unknown>").
27857         (ubsan_create_data): Change second argument to const location_t *PLOC.
27858         Create Loc field whenever PLOC is non-NULL.
27859         (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
27860         ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
27861         callers.
27863         PR other/59545
27864         * real.c (real_to_integer2): Change type of low to UHWI.
27866 2014-03-26  Tobias Burnus  <burnus@net-b.de>
27868         * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
27869         (CILK_SELF_SPECS): New define.
27870         (driver_self_specs): Use it.
27872 2014-03-26  Richard Biener  <rguenther@suse.de>
27874         * tree-pretty-print.c (percent_K_format): Implement special
27875         case for LTO and its stripped down BLOCK tree.
27877 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
27879         PR sanitizer/60636
27880         * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
27882         * tree-vrp.c (simplify_internal_call_using_ranges): If only
27883         one range is range_int_cst_p, but not both, at least optimize
27884         addition/subtraction of 0 and multiplication by 0 or 1.
27885         * gimple-fold.c (gimple_fold_call): Fold
27886         IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
27887         (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
27888         INTEGER_CSTs, try to fold at least x * 0 and y - y.
27890 2014-03-26  Eric Botcazou  <ebotcazou@adacore.com>
27892         PR rtl-optimization/60452
27893         * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
27894         <case REG>: Return 1 for invalid offsets from the frame pointer.
27896 2014-03-26  Marek Polacek  <polacek@redhat.com>
27898         PR c/37428
27899         * doc/extend.texi (C Extensions): Mention variable-length arrays in
27900         a structure/union.
27902 2014-03-26  Marek Polacek  <polacek@redhat.com>
27904         PR c/39525
27905         * doc/extend.texi (Designated Inits): Describe what happens to omitted
27906         field members.
27908 2014-03-26  Marek Polacek  <polacek@redhat.com>
27910         PR other/59545
27911         * ira-color.c (update_conflict_hard_regno_costs): Perform the
27912         multiplication in unsigned type.
27914 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
27916         * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
27918 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
27920         * doc/contrib.texi: Add myself as Andes nds32 port contributor.
27922 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
27924         PR ipa/60315
27925         * cif-code.def (UNREACHABLE) New code.
27926         * ipa-inline.c (inline_small_functions): Skip edges to
27927         __builtlin_unreachable.
27928         (estimate_edge_growth): Allow edges to __builtlin_unreachable.
27929         * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
27930         predicate to __bulitin_unreachable.
27931         (set_cond_stmt_execution_predicate): Fix issue when
27932         invert_tree_comparison returns ERROR_MARK.
27933         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
27934         propagate to inline clones.
27935         * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
27936         to unreachable.
27937         * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
27938         * cgraphclones.c (cgraph_clone_node): If call destination is already
27939         ureachable, do not redirect it back.
27940         * tree-inline.c (fold_marked_statements): Hanlde calls becoming
27941         unreachable.
27943 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
27945         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
27946         Do not modify inline clones.
27948 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
27950         * config/i386/i386.md (general_sext_operand): New mode attr.
27951         (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
27952         don't generate (sign_extend (const_int)).
27953         (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
27954         operands[2].  Use We constraint instead of <i> and
27955         <general_sext_operand> predicate instead of <general_operand>.
27956         (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
27957         * config/i386/constraints.md (We): New constraint.
27958         * config/i386/predicates.md (x86_64_sext_operand,
27959         sext_operand): New predicates.
27961 2014-03-25  Martin Jambor  <mjambor@suse.cz>
27963         PR ipa/60600
27964         * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
27965         inconsistent devirtualizations to __builtin_unreachable.
27967 2014-03-25  Marek Polacek  <polacek@redhat.com>
27969         PR c/35449
27970         * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
27972 2014-03-25  Alan Lawrence  <alan.lawrence@arm.com>
27974         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
27975         order of elements for big-endian.
27977 2014-03-25  Richard Biener  <rguenther@suse.de>
27979         PR middle-end/60635
27980         * gimplify-me.c (gimple_regimplify_operands): Update the
27981         re-gimplifed stmt.
27983 2014-03-25  Martin Jambor  <mjambor@suse.cz>
27985         PR ipa/59176
27986         * lto-cgraph.c (lto_output_node): Stream body_removed flag.
27987         (lto_output_varpool_node): Likewise.
27988         (input_overwrite_node): Likewise.
27989         (input_varpool_node): Likewise.
27991 2014-03-25  Richard Biener  <rguenther@suse.de>
27993         * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
27994         (run_gcc): Likewise.
27996 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
27998         * combine.c (simplify_compare_const): Add MODE argument.
27999         Handle mode_width 0 as very large mode_width.
28000         (try_combine, simplify_comparison): Adjust callers.
28002         * cselib.c (cselib_hash_rtx): Perform addition in unsigned
28003         type to avoid signed integer overflow.
28004         * explow.c (plus_constant): Likewise.
28006 2014-03-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
28008         * doc/generic.texi: Correct typos.
28010 2014-03-24  Tobias Burnus  <burnus@net-b.de>
28012         * doc/invoke.texi (-flto): Expand section about
28013         using static libraries with LTO.
28015 2014-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28017         PR rtl-optimization/60501
28018         * optabs.def (addptr3_optab): New optab.
28019         * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
28020         * doc/md.texi ("addptrm3"): Document new RTL standard expander.
28021         * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
28023         * lra.c (emit_add3_insn): Use the addptr pattern if available.
28025         * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
28027 2014-03-24  Ulrich Drepper  <drepper@gmail.com>
28029         * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
28030         _mm512_set1_pd.
28032         * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
28033         (_mm256_undefined_ps): Define.
28034         (_mm256_undefined_pd): Define.
28035         * config/i386/emmintrin.h (_mm_undefined_si128): Define.
28036         (_mm_undefined_pd): Define.
28037         * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
28038         * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
28039         (_mm512_undefined_ps): Define.
28040         (_mm512_undefined_pd): Define.
28041         Use _mm*_undefined_*.
28042         * config/i386/avx2intrin.h: Use _mm*_undefined_*.
28044 2014-03-24  Alex Velenko  <Alex.Velenko@arm.com>
28046         * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
28047         (lshr_simd): DI mode added.
28048         * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
28049         (aarch64_ushr_simddi): Likewise.
28050         * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
28051         * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
28052         (vshrd_n_u64): Likewise.
28054 2014-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28056         * Makefile.in (s-macro_list): Depend on cc1.
28058 2014-03-23  Teresa Johnson  <tejohnson@google.com>
28060         * ipa-utils.c (ipa_print_order): Use specified dump file.
28062 2014-03-23  Eric Botcazou  <ebotcazou@adacore.com>
28064         PR rtl-optimization/60601
28065         * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
28067         * gcc.c (eval_spec_function): Initialize save_growing_value.
28069 2014-03-22  Jakub Jelinek  <jakub@redhat.com>
28071         PR sanitizer/60613
28072         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
28073         code == MINUS_EXPR, never swap op0 with op1.
28075         * toplev.c (init_local_tick): Avoid signed integer multiplication
28076         overflow.
28077         * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
28078         shift by first operand's bitsize.
28080 2014-03-21  Jakub Jelinek  <jakub@redhat.com>
28082         PR target/60610
28083         * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
28084         redefine to 1 or 0.
28085         * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
28086         TARGET_ISA_64BIT_P(x).
28088 2014-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28090         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
28091         pattern for vector nor instead of subtract from splat(-1).
28092         (altivec_expand_vec_perm_const_le): Likewise.
28094 2014-03-21  Richard Henderson  <rth@twiddle.net>
28096         PR target/60598
28097         * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
28098         related insns after epilogue_completed.
28100 2014-03-21  Martin Jambor  <mjambor@suse.cz>
28102         PR ipa/59176
28103         * cgraph.h (symtab_node): New flag body_removed.
28104         * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
28105         when removing bodies.
28106         * symtab.c (dump_symtab_base): Dump body_removed flag.
28107         * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
28108         had their bodies removed.
28110 2014-03-21  Martin Jambor  <mjambor@suse.cz>
28112         PR ipa/60419
28113         * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
28114         in the border.
28116 2014-03-21  Richard Biener  <rguenther@suse.de>
28118         PR tree-optimization/60577
28119         * tree-core.h (struct tree_base): Document nothrow_flag use
28120         in DECL_NONALIASED.
28121         * tree.h (DECL_NONALIASED): New.
28122         (may_be_aliased): Adjust.
28123         * coverage.c (build_var): Set DECL_NONALIASED.
28125 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
28127         * expr.c (expand_expr_real_1): Remove outdated comment.
28129 2014-03-20  Jakub Jelinek  <jakub@redhat.com>
28131         PR middle-end/60597
28132         * ira.c (adjust_cleared_regs): Call copy_rtx on
28133         *reg_equiv[REGNO (loc)].src_p before passing it to
28134         simplify_replace_fn_rtx.
28136         PR target/60568
28137         * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
28138         into CONST, put pic register as first operand of PLUS.  Use
28139         gen_const_mem for both 32-bit and 64-bit PIC got loads.
28141 2014-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
28143         * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
28145 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
28147         * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
28148         around for store forwarding issue in the FPU on the UT699.
28149         * config/sparc/sparc.md (in_branch_delay): Return false for single FP
28150         loads and operations if -mfix-ut699 is specified.
28151         (divtf3_hq): Tweak attribute.
28152         (sqrttf2_hq): Likewise.
28154 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
28156         * calls.c (store_one_arg): Remove incorrect const qualification on the
28157         type of the temporary.
28158         * cfgexpand.c (expand_return): Likewise.
28159         * expr.c (expand_constructor): Likewise.
28160         (expand_expr_real_1): Likewise.
28162 2014-03-20  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
28164         * config/arm/arm.c (arm_dwarf_register_span): Update the element number
28165         of parts.
28167 2014-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
28169         PR target/60039
28170         * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
28172 2014-03-19  James Greenhalgh  <james.greenhalgh@arm.com>
28174         * config/arm/aarch-common-protos.h
28175         (alu_cost_table): Fix spelling of "extend".
28176         * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
28178 2014-03-19  Richard Biener  <rguenther@suse.de>
28180         PR middle-end/60553
28181         * tree-core.h (tree_type_common): Re-order pointer members
28182         to reduce recursion depth during GC walks.
28184 2014-03-19  Marek Polacek  <polacek@redhat.com>
28186         PR sanitizer/60569
28187         * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
28188         before accessing it.
28190 2014-03-19  Richard Biener  <rguenther@suse.de>
28192         PR lto/59543
28193         * lto-streamer-in.c (input_function): In WPA stage do not drop
28194         debug stmts.
28196 2014-03-19  Jakub Jelinek  <jakub@redhat.com>
28198         PR tree-optimization/60559
28199         * vectorizable_mask_load_store): Replace scalar MASK_LOAD
28200         with build_zero_cst assignment.
28202 2014-03-18  Kai Tietz  <ktietz@redhat.com>
28204         PR rtl-optimization/56356
28205         * sdbout.c (sdbout_parms): Verify that parms'
28206         incoming argument is valid.
28207         (sdbout_reg_parms): Likewise.
28209 2014-03-18  Richard Henderson  <rth@redhat.com>
28211         PR target/60562
28212         * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
28213         be shadowed by *float<SWI48><MODEF>2_sse.  Test X87_ENABLE_FLOAT.
28214         (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
28216 2014-03-18  Basile Starynkevitch  <basile@starynkevitch.net>
28218         * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
28219         * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
28220         Italicize plugin event names in description.  Explain that
28221         PLUGIN_PRAGMAS has no sense for lto1.  Explain PLUGIN_INCLUDE_FILE.
28222         Remind that no GCC functions should be called after PLUGIN_FINISH.
28223         Explain what pragmas with expansion are.
28225 2014-03-18  Martin Liska  <mliska@suse.cz>
28227         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
28228         gimple call statement is update.
28229         * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
28230         GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
28232 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
28234         PR sanitizer/60557
28235         * ubsan.c (ubsan_instrument_unreachable): Call
28236         initialize_sanitizer_builtins.
28237         (ubsan_pass): Likewise.
28239         PR sanitizer/60535
28240         * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
28241         varpool_finalize_decl instead of rest_of_decl_compilation.
28243 2014-03-18  Richard Biener  <rguenther@suse.de>
28245         * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
28246         by using bitmap_and_compl instead of bitmap_and_compl_into.
28247         (df_rd_transfer_function): Likewise.
28249 2014-03-18  Richard Biener  <rguenther@suse.de>
28251         * doc/lto.texi (fresolution): Fix typo.
28253 2014-03-18  Richard Biener  <rguenther@suse.de>
28255         * doc/invoke.texi (flto): Update for changes in 4.9.
28257 2014-03-18  Richard Biener  <rguenther@suse.de>
28259         * doc/loop.texi: Remove section on the removed lambda framework.
28260         Update loop docs with recent changes in preserving loop structure.
28262 2014-03-18  Richard Biener  <rguenther@suse.de>
28264         * doc/lto.texi (-fresolution): Document.
28266 2014-03-18  Richard Biener  <rguenther@suse.de>
28268         * doc/contrib.texi: Adjust my name.
28270 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
28272         PR ipa/58721
28273         * internal-fn.c: Include diagnostic-core.h.
28274         (expand_BUILTIN_EXPECT): New function.
28275         * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
28276         (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
28277         IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
28278         * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
28279         IFN_BUILTIN_EXPECT.
28280         * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
28281         Revert 3 argument __builtin_expect code.
28282         (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
28283         * gimple-fold.c (gimple_fold_call): Likewise.
28284         * tree.h (fold_builtin_expect): New prototype.
28285         * builtins.c (build_builtin_expect_predicate): Add predictor
28286         argument, if non-NULL, create 3 argument __builtin_expect.
28287         (fold_builtin_expect): No longer static.  Add ARG2 argument,
28288         pass it through to build_builtin_expect_predicate.
28289         (fold_builtin_2): Adjust caller.
28290         (fold_builtin_3): Handle BUILT_IN_EXPECT.
28291         * internal-fn.def (BUILTIN_EXPECT): New.
28293 2014-03-18  Tobias Burnus  <burnus@net-b.de>
28295         PR ipa/58721
28296         * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
28297         PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
28298         PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
28300 2014-03-18  Jan Hubicka  <hubicka@ucw.cz>
28302         PR ipa/58721
28303         * predict.c (combine_predictions_for_bb): Fix up formatting.
28304         (expr_expected_value_1, expr_expected_value): Add predictor argument,
28305         fill what it points to if non-NULL.
28306         (tree_predict_by_opcode): Adjust caller, use the predictor.
28307         * predict.def (PRED_COMPARE_AND_SWAP): Add.
28309 2014-03-18  Eric Botcazou  <ebotcazou@adacore.com>
28311         * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
28312         proper constant for the store mode.
28314 2014-03-18  Ilya Enkovich  <ilya.enkovich@intel.com>
28316         * symtab.c (change_decl_assembler_name): Fix transparent alias
28317         chain construction.
28319 2014-03-16  Renlin Li  <Renlin.Li@arm.com>
28321         * config/aarch64/aarch64.c: Correct the comments about the
28322         aarch64 stack layout.
28324 2014-03-18  Thomas Schwinge  <thomas@codesourcery.com>
28326         * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
28327         check for GF_OMP_FOR_KIND_FOR.
28329 2013-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
28331         * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
28332         ymm and zmm register names.
28334 2014-03-17  Jakub Jelinek  <jakub@redhat.com>
28336         PR target/60516
28337         * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
28338         note creation for the 2010-08-31 changes.
28340 2014-03-17  Marek Polacek  <polacek@redhat.com>
28342         PR middle-end/60534
28343         * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
28344         as -fno-tree-loop-vectorize.
28345         (expand_omp_simd): Likewise.
28347 2014-03-15  Eric Botcazou  <ebotcazou@adacore.com>
28349         * config/sparc/sparc-protos.h (tls_call_delay): Delete.
28350         (eligible_for_call_delay): New prototype.
28351         * config/sparc/sparc.c (tls_call_delay): Rename into...
28352         (eligible_for_call_delay): ...this.  Return false if the instruction
28353         cannot be put in the delay slot of a branch.
28354         (eligible_for_restore_insn): Simplify.
28355         (eligible_for_return_delay): Return false if the instruction cannot be
28356         put in the delay slot of a branch and simplify.
28357         (eligible_for_sibcall_delay): Return false if the instruction cannot be
28358         put in the delay slot of a branch.
28359         * config/sparc/sparc.md (fix_ut699): New attribute.
28360         (tls_call_delay): Delete.
28361         (in_call_delay): Reimplement.
28362         (eligible_for_sibcall_delay): Rename into...
28363         (in_sibcall_delay): ...this.
28364         (eligible_for_return_delay): Rename into...
28365         (in_return_delay): ...this.
28366         (in_branch_delay): Reimplement.
28367         (in_uncond_branch_delay): Delete.
28368         (in_annul_branch_delay): Delete.
28370 2014-03-14  Richard Henderson  <rth@redhat.com>
28372         PR target/60525
28373         * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
28374         define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
28375         (*floathi<X87MODEF>2_i387_with_temp): Remove.
28376         (floathi splitters): Remove.
28377         (float<SWI48x>xf2): New pattern.
28378         (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2.  Drop
28379         code that tried to handle DImode for 32-bit, but which was excluded
28380         by the pattern's condition.  Drop allocation of stack temporary.
28381         (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
28382         (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
28383         (*float<SWI48><MODEF>2_mixed_interunit): Remove.
28384         (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
28385         (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
28386         (*float<SWI48><MODEF>2_sse_with_temp): Remove.
28387         (*float<SWI48><MODEF>2_sse_interunit): Remove.
28388         (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
28389         (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
28390         (*float<SWI48x><X87MODEF>2_i387): Remove.
28391         (all float _with_temp splitters): Remove.
28392         (*float<SWI48x><MODEF>2_i387): New pattern.
28393         (*float<SWI48><MODEF>2_sse): New pattern.
28394         (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
28395         (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
28397 2014-03-14  Jakub Jelinek  <jakub@redhat.com>
28398             Marek Polacek  <polacek@redhat.com>
28400         PR middle-end/60484
28401         * common.opt (dump_base_name_prefixed): New Variable.
28402         * opts.c (finish_options): Don't prepend directory to x_dump_base_name
28403         if x_dump_base_name_prefixed is already set, set it at the end.
28405 2014-03-14  Vladimir Makarov  <vmakarov@redhat.com>
28407         PR rtl-optimization/60508
28408         * lra-constraints.c (get_reload_reg): Add new parameter
28409         in_subreg_p.
28410         (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
28411         Pass the new parameter values.
28413 2014-03-14  Richard Biener  <rguenther@suse.de>
28415         * common.opt: Revert unintented changes from r205065.
28416         * opts.c: Likewise.
28418 2014-03-14  Richard Biener  <rguenther@suse.de>
28420         PR middle-end/60518
28421         * cfghooks.c (split_block): Properly adjust all loops the
28422         block was a latch of.
28424 2014-03-14  Martin Jambor  <mjambor@suse.cz>
28426         PR lto/60461
28427         * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
28428         and simplify it.
28430 2014-03-14  Georg-Johann Lay  <avr@gjlay.de>
28432         PR target/59396
28433         * config/avr/avr.c (avr_set_current_function): Pass function name
28434         through default_strip_name_encoding before sanity checking instead
28435         of skipping the first char of the assembler name.
28437 2014-03-13  Richard Henderson  <rth@redhat.com>
28439         PR debug/60438
28440         * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
28441         (ix86_force_to_memory, ix86_free_from_memory): Remove.
28442         * config/i386/i386-protos.h: Likewise.
28443         * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
28444         in the expander instead of a splitter.
28445         (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
28446         any possibility of requiring a memory.
28447         (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
28448         (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
28449         (fp branch splitters): Update for ix86_split_fp_branch.
28450         (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
28451         (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
28452         (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
28453         (*fop_<MODEF>_2_i387): Remove f/r alternative.
28454         (*fop_<MODEF>_3_i387): Likewise.
28455         (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
28456         (splitters for the fop_* register patterns): Remove.
28457         (fscalexf4_i387): Rename from *fscalexf4_i387.
28458         (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
28460 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
28462         PR tree-optimization/59779
28463         * tree-dfa.c (get_ref_base_and_extent): Use double_int
28464         type for bitsize and maxsize instead of HOST_WIDE_INT.
28466 2014-03-13  Steven Bosscher  <steven@gcc.gnu.org>
28468         PR rtl-optimization/57320
28469         * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
28470         the CFG after thread_prologue_and_epilogue_insns.
28472 2014-03-13  Vladimir Makarov  <vmakarov@redhat.com>
28474         PR rtl-optimization/57189
28475         * lra-constraints.c (process_alt_operands): Disfavor spilling
28476         vector pseudos.
28478 2014-03-13  Cesar Philippidis  <cesar@codesourcery.com>
28480         * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
28482 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
28484         PR tree-optimization/59025
28485         PR middle-end/60418
28486         * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
28487         same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
28489 2014-03-13  Georg-Johann Lay  <avr@gjlay.de>
28491         PR target/60486
28492         * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
28493         calls of avr_out_plus_1.
28495 2014-03-13  Bin Cheng  <bin.cheng@arm.com>
28497         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
28498         BB's single pred and update the father loop's latch info later.
28500 2014-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
28502         * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
28503         (VEC_M): Likewise.
28504         (VEC_N): Likewise.
28505         (VEC_R): Likewise.
28506         (VEC_base): Likewise.
28507         (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
28508         registers, we need to swap double words in little endian mode.
28510         * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
28511         to be a container mode for 128-bit integer operations added in ISA
28512         2.07.  Unlike TImode and PTImode, the preferred register set is
28513         the Altivec/VMX registers for the 128-bit operations.
28515         * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
28516         declarations.
28517         (rs6000_split_128bit_ok_p): Likewise.
28519         * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
28520         macros for creating ISA 2.07 normal and overloaded builtin
28521         functions with 3 arguments.
28522         (BU_P8V_OVERLOAD_3): Likewise.
28523         (VPERM_1T): Add support for V1TImode in 128-bit vector operations
28524         for use as overloaded functions.
28525         (VPERM_1TI_UNS): Likewise.
28526         (VSEL_1TI): Likewise.
28527         (VSEL_1TI_UNS): Likewise.
28528         (ST_INTERNAL_1ti): Likewise.
28529         (LD_INTERNAL_1ti): Likewise.
28530         (XXSEL_1TI): Likewise.
28531         (XXSEL_1TI_UNS): Likewise.
28532         (VPERM_1TI): Likewise.
28533         (VPERM_1TI_UNS): Likewise.
28534         (XXPERMDI_1TI): Likewise.
28535         (SET_1TI): Likewise.
28536         (LXVD2X_V1TI): Likewise.
28537         (STXVD2X_V1TI): Likewise.
28538         (VEC_INIT_V1TI): Likewise.
28539         (VEC_SET_V1TI): Likewise.
28540         (VEC_EXT_V1TI): Likewise.
28541         (EQV_V1TI): Likewise.
28542         (NAND_V1TI): Likewise.
28543         (ORC_V1TI): Likewise.
28544         (VADDCUQ): Add support for 128-bit integer arithmetic instructions
28545         added in ISA 2.07.  Add both normal 'altivec' builtins, and the
28546         overloaded builtin.
28547         (VADDUQM): Likewise.
28548         (VSUBCUQ): Likewise.
28549         (VADDEUQM): Likewise.
28550         (VADDECUQ): Likewise.
28551         (VSUBEUQM): Likewise.
28552         (VSUBECUQ): Likewise.
28554         * config/rs6000/rs6000-c.c (__int128_type): New static to hold
28555         __int128_t and __uint128_t types.
28556         (__uint128_type): Likewise.
28557         (altivec_categorize_keyword): Add support for vector __int128_t,
28558         vector __uint128_t, vector __int128, and vector unsigned __int128
28559         as a container type for TImode operations that need to be done in
28560         VSX/Altivec registers.
28561         (rs6000_macro_to_expand): Likewise.
28562         (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
28563         to support 128-bit integer instructions vaddcuq, vadduqm,
28564         vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
28565         (altivec_resolve_overloaded_builtin): Add support for V1TImode.
28567         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
28568         for V1TImode, and set up preferences to use VSX/Altivec registers.
28569         Setup VSX reload handlers.
28570         (rs6000_debug_reg_global): Likewise.
28571         (rs6000_init_hard_regno_mode_ok): Likewise.
28572         (rs6000_preferred_simd_mode): Likewise.
28573         (vspltis_constant): Do not allow V1TImode as easy altivec constants.
28574         (easy_altivec_constant): Likewise.
28575         (output_vec_const_move): Likewise.
28576         (rs6000_expand_vector_set): Convert V1TImode set and extract to
28577         simple move.
28578         (rs6000_expand_vector_extract): Likewise.
28579         (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
28580         addressing.
28581         (rs6000_const_vec): Add support for V1TImode.
28582         (rs6000_emit_le_vsx_load): Swap double words when loading or
28583         storing TImode/V1TImode.
28584         (rs6000_emit_le_vsx_store): Likewise.
28585         (rs6000_emit_le_vsx_move): Likewise.
28586         (rs6000_emit_move): Add support for V1TImode.
28587         (altivec_expand_ld_builtin): Likewise.
28588         (altivec_expand_st_builtin): Likewise.
28589         (altivec_expand_vec_init_builtin): Likewise.
28590         (altivec_expand_builtin): Likewise.
28591         (rs6000_init_builtins): Add support for V1TImode type.  Add
28592         support for ISA 2.07 128-bit integer builtins.  Define type names
28593         for the VSX/Altivec vector types.
28594         (altivec_init_builtins): Add support for overloaded vector
28595         functions with V1TImode type.
28596         (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
28597         (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
28598         external function.
28599         (rs6000_split_128bit_ok_p): Likewise.
28600         (rs6000_handle_altivec_attribute): Create V1TImode from vector
28601         __int128_t and vector __uint128_t.
28603         * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
28604         and mode attributes.
28605         (VSX_M): Likewise.
28606         (VSX_M2): Likewise.
28607         (VSm): Likewise.
28608         (VSs): Likewise.
28609         (VSr): Likewise.
28610         (VSv): Likewise.
28611         (VS_scalar): Likewise.
28612         (VS_double): Likewise.
28613         (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
28615         * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
28616         we support the ISA 2.07 128-bit integer arithmetic instructions.
28617         (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
28618         (enum rs6000_builtin_type_index): Add fields to hold V1TImode
28619         and TImode types for use with the builtin functions.
28620         (V1TI_type_node): Likewise.
28621         (unsigned_V1TI_type_node): Likewise.
28622         (intTI_type_internal_node): Likewise.
28623         (uintTI_type_internal_node): Likewise.
28625         * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
28626         128-bit builtin functions.
28627         (UNSPEC_VADDEUQM): Likewise.
28628         (UNSPEC_VADDECUQ): Likewise.
28629         (UNSPEC_VSUBCUQ): Likewise.
28630         (UNSPEC_VSUBEUQM): Likewise.
28631         (UNSPEC_VSUBECUQ): Likewise.
28632         (VM): Add V1TImode to vector mode iterators.
28633         (VM2): Likewise.
28634         (VI_unit): Likewise.
28635         (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
28636         (altivec_vaddcuq): Likewise.
28637         (altivec_vsubuqm): Likewise.
28638         (altivec_vsubcuq): Likewise.
28639         (altivec_vaddeuqm): Likewise.
28640         (altivec_vaddecuq): Likewise.
28641         (altivec_vsubeuqm): Likewise.
28642         (altivec_vsubecuq): Likewise.
28644         * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
28645         mode iterators.
28646         (BOOL_128): Likewise.
28647         (BOOL_REGS_OUTPUT): Likewise.
28648         (BOOL_REGS_OP1): Likewise.
28649         (BOOL_REGS_OP2): Likewise.
28650         (BOOL_REGS_UNARY): Likewise.
28651         (BOOL_REGS_AND_CR0): Likewise.
28653         * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
28654         128-bit integer builtin support.
28655         (vec_vadduqm): Likewise.
28656         (vec_vaddecuq): Likewise.
28657         (vec_vaddeuqm): Likewise.
28658         (vec_vsubecuq): Likewise.
28659         (vec_vsubeuqm): Likewise.
28660         (vec_vsubcuq): Likewise.
28661         (vec_vsubuqm): Likewise.
28663         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
28664         Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
28665         vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
28666         128-bit integer add/subtract to ISA 2.07.
28668 2014-03-12  Joern Rennecke  <joern.rennecke@embecosm.com>
28670         * config/arc/arc.c (arc_predicate_delay_insns):
28671         Fix third argument passed to conditionalize_nonjump.
28673 2014-03-12  Yufeng Zhang  <yufeng.zhang@arm.com>
28675         * config/aarch64/aarch64-builtins.c
28676         (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
28677         BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
28678         * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
28679         instead of __builtin_lfloor.
28680         (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
28682 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
28684         * tree-ssa-ifcombine.c (forwarder_block_to): New function.
28685         (tree_ssa_ifcombine_bb_1): New function.
28686         (tree_ssa_ifcombine_bb): Use it.  Handle also cases where else_bb
28687         is an empty forwarder block to then_bb or vice versa and then_bb
28688         and else_bb are effectively swapped.
28690 2014-03-12  Christian Bruel  <christian.bruel@st.com>
28692         PR target/60264
28693         * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
28694         REG_CFA_DEF_CFA note.
28695         (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
28696         (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
28698 2014-03-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
28700         PR tree-optimization/60454
28701         * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
28703 2014-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28705         * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
28706         Do not define target_cpu_default2 to generic.
28707         * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
28708         * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
28709         * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
28711 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
28712             Marc Glisse  <marc.glisse@inria.fr>
28714         PR tree-optimization/60502
28715         * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
28716         instead of build_low_bits_mask.
28718 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
28720         PR middle-end/60482
28721         * tree-vrp.c (register_edge_assert_for_1): Don't add assert
28722         if there are multiple uses, but op doesn't live on E edge.
28723         * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
28724         clobber stmts before __builtin_unreachable.
28726 2014-03-11  Richard Sandiford  <rdsandiford@googlemail.com>
28728         * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
28729         hard_frame_pointer_rtx.
28730         * cse.c (cse_insn): Remove volatile check.
28731         * cselib.c (cselib_process_insn): Likewise.
28732         * dse.c (scan_insn): Likewise.
28734 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
28736         * config/arc/arc.c (conditionalize_nonjump): New function,
28737         broken out of ...
28738         (arc_ifcvt): ... this.
28739         (arc_predicate_delay_insns): Use it.
28741 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
28743         * config/arc/predicates.md (extend_operand): During/after reload,
28744         allow const_int_operand.
28745         * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
28746         (umulsidi3_700): Likewise.  Change operand 2 constraint back to "cL".
28747         (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
28748         to "i".
28749         (umulsi3_highpart_i): Likewise.
28751 2014-03-11  Richard Biener  <rguenther@suse.de>
28753         * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
28754         Add asserts to guard possible wrong-code bugs.
28756 2014-03-11  Richard Biener  <rguenther@suse.de>
28758         PR tree-optimization/60429
28759         PR tree-optimization/60485
28760         * tree-ssa-structalias.c (set_union_with_increment): Properly
28761         take into account all fields that overlap the shifted vars.
28762         (do_sd_constraint): Likewise.
28763         (do_ds_constraint): Likewise.
28764         (get_constraint_for_ptr_offset): Likewise.
28766 2014-03-11  Chung-Lin Tang  <cltang@codesourcery.com>
28768         * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
28769         (nios2_compute_frame_layout):
28770         Add calculation of cfun->machine->fp_save_offset.
28771         (nios2_expand_prologue): Correct setting of frame pointer register
28772         in prologue.
28773         (nios2_expand_epilogue): Update recovery of stack pointer from
28774         frame pointer accordingly.
28775         (nios2_initial_elimination_offset): Update calculation of offset
28776         for eliminating to HARD_FRAME_POINTER_REGNUM.
28778 2014-03-10  Jakub Jelinek  <jakub@redhat.com>
28780         PR ipa/60457
28781         * ipa.c (symtab_remove_unreachable_nodes): Don't call
28782         cgraph_get_create_node on VAR_DECLs.
28784 2014-03-10  Richard Biener  <rguenther@suse.de>
28786         PR middle-end/60474
28787         * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
28789 2014-03-08  Douglas B Rupp  <rupp@gnat.com>
28791         * config/vms/vms.opt (vms_float_format): New variable.
28793 2014-03-08  Tobias Burnus  <burnus@net-b.de>
28795         * doc/invoke.texi (-fcilkplus): Update implementation status.
28797 2014-03-08  Paulo Matos  <paulo@matos-sorge.com>
28798             Richard Biener  <rguenther@suse.de>
28800         * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
28801         consistently accross all TUs.
28802         (run_gcc): Enable -fshort-double automatically at link at link-time
28803         and disallow override.
28805 2014-03-08  Richard Sandiford  <rdsandiford@googlemail.com>
28807         PR target/58271
28808         * config/mips/mips.c (mips_option_override): Promote -mpaired-single
28809         warning to an error.  Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
28810         if they can't be used.
28812 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28814         * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
28815         for Solaris 11/x86 ld.
28816         * configure: Regenerate.
28818 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28820         * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
28821         (LIB_TLS_SPEC): Save as ld_tls_libs.
28822         (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
28823         (HAVE_AS_IX86_TLSLDM): New test.
28824         * configure, config.in: Regenerate.
28825         * config/i386/i386.c (legitimize_tls_address): Fall back to
28826         TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
28827         cannot support TLS_MODEL_LOCAL_DYNAMIC.
28828         * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
28829         instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
28831 2014-03-07  Paulo Matos  <paulo@matos-sorge.com>
28833         * common.opt (fira-loop-pressure): Mark as optimization.
28835 2014-03-07  Thomas Schwinge  <thomas@codesourcery.com>
28837         * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
28838         an OpenMP mappable type.
28840 2014-03-06  Matthias Klose  <doko@ubuntu.com>
28842         * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
28843         MULTILIB_OSDIRNAMES is not defined.
28845 2014-03-06  Jakub Jelinek  <jakub@redhat.com>
28846             Meador Inge  <meadori@codesourcery.com>
28848         PR target/58595
28849         * config/arm/arm.c (arm_tls_symbol_p): Remove.
28850         (arm_legitimize_address): Call legitimize_tls_address for any
28851         arm_tls_referenced_p expression, handle constant addend.  Call it
28852         before testing for !TARGET_ARM.
28853         (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
28855 2014-03-06  Richard Biener  <rguenther@suse.de>
28857         PR middle-end/60445
28858         PR lto/60424
28859         PR lto/60427
28860         Revert
28861         2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
28863         * tree-streamer.c (record_common_node): Assert we don't record
28864         nodes with type double.
28865         (preload_common_node): Skip type double, complex double and double
28866         pointer since it is now frontend dependent due to fshort-double option.
28868 2014-03-06  Richard Biener  <rguenther@suse.de>
28870         * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
28871         or -fno-lto is specified and the linker has full plugin support.
28872         * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
28873         (main): Remove -flto processing, adjust lto_mode using use_plugin late.
28874         * lto-wrapper.c (merge_and_complain): Merge compile-time
28875         optimization levels.
28876         (run_gcc): And pass it through to the link options.
28878 2014-03-06  Alexandre Oliva  <aoliva@redhat.com>
28880         PR debug/60381
28881         Revert:
28882         2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
28883         PR debug/59992
28884         * cselib.c (remove_useless_values): Skip to avoid quadratic
28885         behavior if the condition moved from...
28886         (cselib_process_insn): ... here holds.
28888 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
28890         PR plugins/59335
28891         * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
28892         ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
28894         PR plugins/59335
28895         * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
28896         (TM_H): Add x86-tune.def.
28898 2014-03-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28900         * config/aarch64/aarch64.c (generic_tunings):
28901         Use cortexa57_extra_costs.
28903 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
28905         PR lto/60404
28906         * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
28907         of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
28908         * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
28909         cost for in_lto_p.
28911 2014-03-04  Heiher  <r@hev.cc>
28913         * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
28914         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
28916 2014-03-04  Uros Bizjak  <ubizjak@gmail.com>
28918         * config/i386/predicates.md (const2356_operand): Change to ...
28919         (const2367_operand): ... this.
28920         * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
28921         const2367_operand.
28922         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
28923         (*avx512pf_scatterpf<mode>sf): Ditto.
28924         (avx512pf_scatterpf<mode>df): Ditto.
28925         (*avx512pf_scatterpf<mode>df_mask): Ditto.
28926         (*avx512pf_scatterpf<mode>df): Ditto.
28927         * config/i386/i386.c (ix86_expand_builtin): Update
28928         incorrect hint operand error message.
28930 2014-03-04  Richard Biener  <rguenther@suse.de>
28932         * lto-section-in.c (lto_get_section_data): Fix const cast.
28934 2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
28936         * tree-streamer.c (record_common_node): Assert we don't record
28937         nodes with type double.
28938         (preload_common_node): Skip type double, complex double and double
28939         pointer since it is now frontend dependent due to fshort-double option.
28941 2014-03-04  Richard Biener  <rguenther@suse.de>
28943         PR lto/60405
28944         * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
28945         (lto_input_toplevel_asms): Likewise.
28946         * lto-section-in.c (lto_get_section_data): Instead do it here
28947         for every section.
28949 2014-03-04  Richard Biener  <rguenther@suse.de>
28951         PR tree-optimization/60382
28952         * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
28953         dead PHIs a reduction.
28955 2014-03-03  Uros Bizjak  <ubizjak@gmail.com>
28957         * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
28958         hint value.
28959         (_mm_prefetch): Move out of GCC target("sse") pragma.
28960         * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
28961         GCC target("prfchw") pragma.
28962         * config/i386/i386.md (prefetch): Emit prefetchwt1 only
28963         for locality <= 2.
28964         * config/i386/i386.c (ix86_option_override_internal): Enable
28965         -mprfchw with -mprefetchwt1.
28967 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
28969         * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
28970         Mark as varying.
28972 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
28974         * opts.h (CL_PCH_IGNORE): Define.
28975         * targhooks.c (option_affects_pch_p):
28976         Return false for options that have CL_PCH_IGNORE set.
28977         * opt-functions.awk: Process PchIgnore.
28978         * doc/options.texi: Document PchIgnore.
28980         * config/arc/arc.opt (misize): Add PchIgnore property.
28982 2014-03-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28984         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
28985         reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
28986         constraint on constants to permit them being loaded into
28987         GENERAL_REGS or BASE_REGS.
28989 2014-03-03  Nick Clifton  <nickc@redhat.com>
28991         * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
28992         anti-cacnonical alternatives.
28993         (negandhi3_real): New pattern.
28994         * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
28996 2014-03-03  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
28998         * config/avr/avr-mcus.def: Remove atxmega16x1.
28999         * config/avr/avr-tables.opt: Regenerate.
29000         * config/avr/t-multilib: Regenerate.
29001         * doc/avr-mmcu.texi: Regenerate.
29003 2014-03-03  Tobias Grosser  <tobias@grosser.es>
29004             Mircea Namolaru  <mircea.namolaru@inria.fr>
29006         PR tree-optimization/58028
29007         * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
29008         scalar dimensions.
29010 2014-03-03  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
29012         * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
29013         not handled by recognizers.
29015 2014-03-03  Jakub Jelinek  <jakub@redhat.com>
29017         PR middle-end/60175
29018         * function.c (expand_function_end): Don't emit
29019         clobber_return_register sequence if clobber_after is a BARRIER.
29020         * cfgexpand.c (construct_exit_block): Append instructions before
29021         return_label to prev_bb.
29023 2014-03-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29025         * config/rs6000/constraints.md: Document reserved use of "wc".
29027 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
29029         PR ipa/60150
29030         * ipa.c (function_and_variable_visibility): When dissolving comdat
29031         group, also set all symbols to local.
29033 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
29035         PR ipa/60306
29037         Revert:
29038         2013-12-14  Jan Hubicka  <jh@suse.cz>
29039         PR middle-end/58477
29040         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
29042 2014-03-02  Jon Beniston  <jon@beniston.com>
29044         PR bootstrap/48230
29045         PR bootstrap/50927
29046         PR bootstrap/52466
29047         PR target/46898
29048         * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
29049           (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
29050         * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
29051         (simple_return, *simple_return): New patterns
29052         * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
29053         * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
29055 2014-03-01  Paolo Carlini  <paolo.carlini@oracle.com>
29057         * dwarf2out.c (gen_subprogram_die): Tidy.
29059 2014-03-01  Oleg Endo  <olegendo@gcc.gnu.org>
29061         PR target/60071
29062         * config/sh/sh.md (*mov_t_msb_neg): Split into ...
29063         (*mov_t_msb_neg_negc): ... this new insn.
29065 2014-02-28  Jason Merrill  <jason@redhat.com>
29067         PR c++/58678
29068         * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
29069         function.
29071 2014-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
29073         PR c++/60314
29074         * dwarf2out.c (decltype_auto_die): New static.
29075         (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
29076         (gen_type_die_with_usage): Handle 'decltype(auto)'.
29077         (is_cxx_auto): Likewise.
29079 2014-02-28  Ian Bolton  <ian.bolton@arm.com>
29081         * config/aarch64/aarch64.h: Define __ARM_NEON by default if
29082         we are not using general regs only.
29084 2014-02-28  Richard Biener  <rguenther@suse.de>
29086         PR target/60280
29087         * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
29088         previous fix and only allow to remove trivial pre-headers
29089         and latches.  Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
29090         (remove_forwarder_block): Properly update the latch of a loop.
29092 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
29094         PR debug/59992
29095         * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
29096         (cselib_preserved_hash_table): New.
29097         (preserve_constants_and_equivs): Move preserved vals to it.
29098         (cselib_find_slot): Look it up first.
29099         (cselib_init): Initialize it.
29100         (cselib_finish): Release it.
29101         (dump_cselib_table): Dump it.
29103 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
29105         PR debug/59992
29106         * cselib.c (remove_useless_values): Skip to avoid quadratic
29107         behavior if the condition moved from...
29108         (cselib_process_insn): ... here holds.
29110 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
29112         PR debug/57232
29113         * var-tracking.c (vt_initialize): Apply the same condition to
29114         preserve the CFA base value.
29116 2014-02-28  Joey Ye  <joey.ye@arm.com>
29118         PR target/PR60169
29119         * config/arm/arm.c (thumb_far_jump_used_p): Don't change
29120         if reload in progress or completed.
29122 2014-02-28  Tobias Burnus  <burnus@net-b.de>
29124         PR middle-end/60147
29125         * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
29126         NAMELIST_DECL.
29128 2014-02-27  H.J. Lu  <hongjiu.lu@intel.com>
29130         * doc/tm.texi.in (Condition Code Status): Update documention for
29131         relative locations of cc0-setter and cc0-user.
29133 2014-02-27  Jeff Law  <law@redhat.com>
29135         PR rtl-optimization/52714
29136         * combine.c (try_combine): When splitting an unrecognized PARALLEL
29137         into two independent simple sets, if I3 is a jump, ensure the
29138         pattern we place into I3 is a (set (pc) ...).
29140 2014-02-27  Mikael Pettersson  <mikpe@it.uu.se>
29141             Jeff Law  <law@redhat.com>
29143         PR rtl-optimization/49847
29144         * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
29145         are in different blocks.
29146         * doc/tm.texi (Condition Code Status): Update documention for
29147         relative locations of cc0-setter and cc0-user.
29149 2014-02-27  Vladimir Makarov  <vmakarov@redhat.com>
29151         PR target/59222
29152         * lra.c (lra_emit_add): Check SUBREG too.
29154 2014-02-27  Andreas Schwab  <schwab@suse.de>
29156         * config/m68k/m68k.c (m68k_option_override): Disable
29157         -flive-range-shrinkage for classic m68k.
29158         (m68k_override_options_after_change): Likewise.
29160 2014-02-27  Marek Polacek  <polacek@redhat.com>
29162         PR middle-end/59223
29163         * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
29164         -Wmaybe-uninitialized.
29166 2014-02-27  Alan Modra  <amodra@gmail.com>
29168         PR target/57936
29169         * reload1.c (emit_input_reload_insns): When reload_override_in,
29170         set old to rl->in_reg when rl->in_reg is a subreg.
29172 2014-02-26  Richard Biener  <rguenther@suse.de>
29174         PR bootstrap/60343
29175         * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
29177 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
29179         * common/config/i386/predicates.md (const1256_operand): Remove.
29180         (const2356_operand): New.
29181         (const_1_to_2_operand): Remove.
29182         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
29183         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
29184         (*avx512pf_gatherpf<mode>sf): Ditto.
29185         (avx512pf_gatherpf<mode>df): Ditto.
29186         (*avx512pf_gatherpf<mode>df_mask): Ditto.
29187         (*avx512pf_gatherpf<mode>df): Ditto.
29188         (avx512pf_scatterpf<mode>sf): Ditto.
29189         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
29190         (*avx512pf_scatterpf<mode>sf): Ditto.
29191         (avx512pf_scatterpf<mode>df): Ditto.
29192         (*avx512pf_scatterpf<mode>df_mask): Ditto.
29193         (*avx512pf_scatterpf<mode>df): Ditto.
29194         * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
29196 2014-02-26  Ilya Tocar  <ilya.tocar@intel.com>
29198         * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
29199         (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
29200         (_mm512_mask_testn_epi64_mask): Move to ...
29201         * config/i386/avx512cdintrin.h: Here.
29202         * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
29203         * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
29204         (avx512f_scalef<mode><mask_name><round_name>): Ditto.
29205         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
29206         TARGET_AVX512F from TARGET_AVX512CD.
29208 2014-02-26  Richard Biener  <rguenther@suse.de>
29210         PR ipa/60327
29211         * ipa.c (walk_polymorphic_call_targets): Properly guard
29212         call to inline_update_overall_summary.
29214 2014-02-26  Bin Cheng  <bin.cheng@arm.com>
29216         PR target/60280
29217         * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
29218         and latches only if requested.  Fix latch if it is removed.
29219         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
29220         LOOPS_HAVE_PREHEADERS.
29222 2014-02-25  Andrew Pinski  <apinski@cavium.com>
29224         * builtins.c (expand_builtin_thread_pointer): Create a new target
29225         when the target is NULL.
29227 2014-02-25  Vladimir Makarov  <vmakarov@redhat.com>
29229         PR rtl-optimization/60317
29230         * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
29231         * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
29232         * lra-assigns.c: Include params.h.
29233         (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
29234         other reload pseudos considerations.
29236 2014-02-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29238         * config/rs6000/vector.md (*vector_unordered<mode>): Change split
29239         to use canonical form for nor<mode>3.
29241 2014-02-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29243         PR target/55426
29244         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
29245         conversions.
29247 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
29249         * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
29250         (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
29251         (ix86_handle_option): Handle OPT_mprefetchwt1.
29252         * config/i386/cpuid.h (bit_PREFETCHWT1): New.
29253         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
29254         PREFETCHWT1 CPUID.
29255         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
29256         OPTION_MASK_ISA_PREFETCHWT1.
29257         * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
29258         (PTA_PREFETCHWT1): New.
29259         (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
29260         (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
29261         * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
29262         * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
29263         (*prefetch_avx512pf_<mode>_: Change into ...
29264         (*prefetch_prefetchwt1_<mode>: This.
29265         * config/i386/i386.opt (mprefetchwt1): New.
29266         * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
29267         (_mm_prefetch): Handle intent to write.
29268         * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
29270 2014-02-25  Richard Biener  <rguenther@suse.de>
29272         PR middle-end/60291
29273         * emit-rtl.c (mem_attrs_htab): Remove.
29274         (mem_attrs_htab_hash): Likewise.
29275         (mem_attrs_htab_eq): Likewise.
29276         (set_mem_attrs): Always allocate new mem-attrs when something changed.
29277         (init_emit_once): Do not allocate mem_attrs_htab.
29279 2014-02-25  Richard Biener  <rguenther@suse.de>
29281         PR lto/60319
29282         * lto-opts.c (lto_write_options): Output non-explicit conservative
29283         -fwrapv, -fno-trapv and -fno-strict-overflow.
29284         * lto-wrapper.c (merge_and_complain): Handle merging those options.
29285         (run_gcc): And pass them through.
29287 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
29289         * sel-sched.c (calculate_new_fences): New parameter ptime.
29290         Calculate it as a maximum over all fence cycles.
29291         (sel_sched_region_2): Adjust the call to calculate_new_fences.
29292         Print the final schedule timing when sched_verbose.
29294 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
29296         PR rtl-optimization/60292
29297         * sel-sched.c (fill_vec_av_set): Do not reset target availability
29298         bit fot the fence instruction.
29300 2014-02-24  Alangi Derick  <alangiderick@gmail.com>
29302         * calls.h: Fix typo in comment.
29304 2014-02-24  John David Anglin  <danglin@gcc.gnu.org>
29306         * config/pa/pa.c (pa_output_move_double): Don't valididate when
29307         adjusting offsetable addresses.
29309 2014-02-24  Guozhi Wei  <carrot@google.com>
29311         * sparseset.h (sparseset_pop): Fix the wrong index.
29313 2014-02-24  Walter Lee  <walt@tilera.com>
29315         * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
29316         (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
29317         triplet.
29318         * common/config/tilegx/tilegx-common.c
29319         (TARGET_DEFAULT_TARGET_FLAGS): Define.
29320         * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
29321         (LINK_SPEC): Ditto.
29322         * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
29323         * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
29324         (tilegx_gimplify_va_arg_expr): Handle big endian.
29325         (tilegx_expand_unaligned_load): Ditto.
29326         (tilegx_expand_unaligned_store): Ditto.
29327         (TARGET_RETURN_IN_MSB): New.
29328         * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
29329         (TARGET_ENDIAN_DEFAULT): New.
29330         (TARGET_BIG_ENDIAN): Handle big endian.
29331         (BYTES_BIG_ENDIAN): Ditto.
29332         (WORDS_BIG_ENDIAN): Ditto.
29333         (FLOAT_WORDS_BIG_ENDIAN): Ditto.
29334         (ENDIAN_SPEC): New.
29335         (EXTRA_SPECS): New.
29336         * config/tilegx/tilegx.md (extv): Handle big endian.
29337         (extzv): Ditto.
29338         (insn_st<n>): Ditto.
29339         (insn_st<n>_add<bitsuffix>): Ditto.
29340         (insn_stnt<n>): Ditto.
29341         (insn_stnt<n>_add<bitsuffix>):Ditto.
29342         (vec_interleave_highv8qi): Handle big endian.
29343         (vec_interleave_highv8qi_be): New.
29344         (vec_interleave_highv8qi_le): New.
29345         (insn_v1int_h): Handle big endian.
29346         (vec_interleave_lowv8qi): Handle big endian.
29347         (vec_interleave_lowv8qi_be): New.
29348         (vec_interleave_lowv8qi_le): New.
29349         (insn_v1int_l): Handle big endian.
29350         (vec_interleave_highv4hi): Handle big endian.
29351         (vec_interleave_highv4hi_be): New.
29352         (vec_interleave_highv4hi_le): New.
29353         (insn_v2int_h): Handle big endian.
29354         (vec_interleave_lowv4hi): Handle big endian.
29355         (vec_interleave_lowv4hi_be): New.
29356         (vec_interleave_lowv4hi_le): New.
29357         (insn_v2int_l): Handle big endian.
29358         (vec_interleave_highv2si): Handle big endian.
29359         (vec_interleave_highv2si_be): New.
29360         (vec_interleave_highv2si_le): New.
29361         (insn_v4int_h): Handle big endian.
29362         (vec_interleave_lowv2si): Handle big endian.
29363         (vec_interleave_lowv2si_be): New.
29364         (vec_interleave_lowv2si_le): New.
29365         (insn_v4int_l): Handle big endian.
29366         * config/tilegx/tilegx.opt (mbig-endian): New option.
29367         (mlittle-endian): New option.
29368         * doc/install.texi: Document tilegxbe-linux.
29369         * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
29371 2014-02-24  Martin Jambor  <mjambor@suse.cz>
29373         PR ipa/60266
29374         * ipa-cp.c (propagate_constants_accross_call): Bail out early if
29375         there are no parameter descriptors.
29377 2014-02-24  Andrey Belevantsev  <abel@ispras.ru>
29379         PR rtl-optimization/60268
29380         * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
29381         initialization to ...
29382         (sched_rgn_init): ... here.
29383         (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
29385 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
29387         * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
29388         names.
29390 2014-02-23  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
29392         * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
29393         definition.
29395 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
29397         * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
29398         define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
29400 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
29402         * config/microblaze/predicates.md: Add cmp_op predicate.
29403         * config/microblaze/microblaze.md: Add branch_compare instruction
29404         which uses cmp_op predicate and emits cmp insn before branch.
29405         * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
29406         to microblaze_expand_conditional_branch and consolidate logic.
29407         (microblaze_expand_conditional_branch): emit branch_compare
29408         insn instead of handling cmp op separate from branch insn.
29410 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29412         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
29413         to permit subregs.
29415 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29417         * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
29418         define_insn with define_expand and new define_insn
29419         *altivec_lve<VI_char>x_internal.
29420         (altivec_stve<VI_char>x): Replace define_insn with define_expand
29421         and new define_insn *altivec_stve<VI_char>x_internal.
29422         * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
29423         prototype.
29424         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
29425         lve*x built-ins.
29426         (altivec_expand_stvex_be): New function.
29428 2014-02-22  Joern Rennecke  <joern.rennecke@embecosm.com>
29430         * config/avr/avr.c (avr_can_eliminate): Allow elimination from
29431         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
29432         * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
29433         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
29435 2014-02-21  Vladimir Makarov  <vmakarov@redhat.com>
29437         PR target/60298
29438         * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
29439         instead of emit_move_insn.
29441 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29443         * config/rs6000/altivec.md (altivec_vsumsws): Replace second
29444         vspltw with vsldoi.
29445         (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
29446         gen_altivec_vsumsws.
29448 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29450         * config/rs6000/altivec.md (altivec_lvxl): Rename as
29451         *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
29452         (altivec_lvxl_<mode>): New define_expand incorporating
29453         -maltivec=be semantics where needed.
29454         (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
29455         (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
29456         semantics where needed.
29457         (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
29458         (altivec_stvx_<mode>): New define_expand incorporating
29459         -maltivec=be semantics where needed.
29460         (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
29461         VM2 iterator instead of V4SI.
29462         (altivec_stvxl_<mode>): New define_expand incorporating
29463         -maltivec=be semantics where needed.
29464         * config/rs6000/rs6000-builtin.def: Add new built-in definitions
29465         LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
29466         LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
29467         STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
29468         STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
29469         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
29470         ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
29471         similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
29472         ALTIVEC_BUILTIN_STVXL.
29473         * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
29474         (altivec_expand_stvx_be): Likewise.
29475         * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
29476         (altivec_expand_lvx_be): Likewise.
29477         (altivec_expand_stvx_be): Likewise.
29478         (altivec_expand_builtin): Add cases for
29479         ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
29480         ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
29481         (altivec_init_builtins): Add definitions for
29482         __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
29483         __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
29485 2014-02-21  Catherine Moore  <clm@codesourcery.com>
29487         * doc/invoke.texi (mvirt, mno-virt): Document.
29488         * config/mips/mips.opt (mvirt): New option.
29489         * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
29491 2014-02-21  Richard Biener  <rguenther@suse.de>
29493         PR tree-optimization/60276
29494         * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
29495         (STMT_VINFO_MIN_NEG_DIST): New macro.
29496         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
29497         STMT_VINFO_MIN_NEG_DIST.
29498         * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
29499         made for negative dependence distances still hold.
29501 2014-02-21  Richard Biener  <rguenther@suse.de>
29503         PR middle-end/60291
29504         * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
29505         DECL_INITIAL for globals not in the current function context.
29507 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
29509         PR tree-optimization/56490
29510         * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
29511         * tree-ssa-uninit.c: Include params.h.
29512         (compute_control_dep_chain): Add num_calls argument, return false
29513         if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
29514         num_calls to recursive call.
29515         (find_predicates): Change dep_chain into normal array,
29516         cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
29517         variable and adjust compute_control_dep_chain caller.
29518         (find_def_preds): Likewise.
29520 2014-02-21  Thomas Schwinge  <thomas@codesourcery.com>
29522         * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
29523         <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
29525 2014-02-21  Nick Clifton  <nickc@redhat.com>
29527         * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
29528         (pushhi1): Likewise.
29529         (popqi1): Add mode to pre_dec.
29530         (pophi1): Likewise.
29532 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
29534         * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
29535         mode for mask of V8SFmode permutation.
29537 2014-02-20  Richard Henderson  <rth@redhat.com>
29539         PR c++/60272
29540         * builtins.c (expand_builtin_atomic_compare_exchange): Always make
29541         a new pseudo for OLDVAL.
29543 2014-02-20  Jakub Jelinek  <jakub@redhat.com>
29545         PR target/57896
29546         * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
29547         gen_reg_rtx if d->testing_p.
29548         (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
29549         if d->testing_p and we will certainly return true.
29550         (expand_vec_perm_even_odd_1): Likewise.  Don't call gen_reg_rtx
29551         if d->testing_p.
29553 2014-02-20  Uros Bizjak  <ubizjak@gmail.com>
29555         * emit-rtl.c (gen_reg_rtx): Assert that
29556         crtl->emit.regno_pointer_align_length is non-zero.
29558 2014-02-20  Richard Henderson  <rth@redhat.com>
29560         PR c++/60272
29561         * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
29562         on failure the store back into EXPECT.
29564 2014-02-20  Chung-Lin Tang  <cltang@codesourcery.com>
29565             Sandra Loosemore  <sandra@codesourcery.com>
29567         * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
29568         * config/nios2/nios2.c (nios2_function_profiler): Add
29569         -fPIC (flag_pic == 2) support.
29570         (nios2_handle_custom_fpu_cfg): Fix warning parameter.
29571         (nios2_large_offset_p): New function.
29572         (nios2_unspec_reloc_p): Move up position, update to use
29573         nios2_large_offset_p.
29574         (nios2_unspec_address): Remove function.
29575         (nios2_unspec_offset): New function.
29576         (nios2_large_got_address): New function.
29577         (nios2_got_address): Add large offset support.
29578         (nios2_legitimize_tls_address): Update usage of removed and new
29579         functions.
29580         (nios2_symbol_binds_local_p): New function.
29581         (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
29582         (nios2_legitimize_address): Update to use nios2_large_offset_p.
29583         (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
29584         (nios2_print_operand): Merge H/L processing, add hiadj/lo
29585         processing for (const (unspec ...)).
29586         (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
29588 2014-02-20  Richard Biener  <rguenther@suse.de>
29590         * tree-cfg.c (replace_uses_by): Mark altered BBs before
29591         doing the substitution.
29592         (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
29594 2014-02-20  Martin Jambor  <mjambor@suse.cz>
29596         PR ipa/55260
29597         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
29598         info when checking whether lattices are bottom.
29600 2014-02-20  Richard Biener  <rguenther@suse.de>
29602         PR middle-end/60221
29603         * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
29604         regions at -O0.
29606 2014-02-20  Jan Hubicka  <hubicka@ucw.cz>
29608         PR ipa/58555
29609         * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
29610         parameter specifying the scaling.
29611         (inline_call): Update.
29612         (want_inline_recursively): Guard division by zero.
29613         (recursive_inlining): Update.
29614         * ipa-inline.h (clone_inlined_nodes): Update.
29616 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
29618         PR target/60204
29619         * config/i386/i386.c (classify_argument): Pass structures of size
29620         64 bytes or less in register.
29622 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
29623             Kirill Yukhin  <kirill.yukhin@intel.com>
29625         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
29626         (_mm_rcp28_round_ss): Ditto.
29627         (_mm_rsqrt28_round_sd): Ditto.
29628         (_mm_rsqrt28_round_ss): Ditto.
29629         * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
29630         (_mm_rcp14_round_ss): Ditto.
29631         (_mm_rsqrt14_round_sd): Ditto.
29632         (_mm_rsqrt14_round_ss): Ditto.
29633         * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
29634         the first input operand, get rid of match_dup.
29635         (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
29636         attribute to sse.
29637         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
29638         Ditto.
29639         (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
29640         operand as the first input operand, set type attribute.
29641         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
29642         Set type attribute.
29643         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
29644         operand as the first input operand, set type attribute.
29646 2014-02-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29648         * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
29649         bit of zero.
29651 2014-02-19  H.J. Lu  <hongjiu.lu@intel.com>
29653         PR target/60207
29654         * config/i386/i386.c (construct_container): Remove TFmode check
29655         for X86_64_INTEGER_CLASS.
29657 2014-02-19  Uros Bizjak  <ubizjak@gmail.com>
29659         PR target/59794
29660         * config/i386/i386.c (type_natural_mode): Warn for ABI changes
29661         only when -Wpsabi is enabled.
29663 2014-02-19  Michael Hudson-Doyle  <michael.hudson@linaro.org>
29665          PR target/59799
29666         * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
29667         passing arrays in registers are the same as for structs, so remove the
29668         special case for them.
29670 2014-02-19  Eric Botcazou  <ebotcazou@adacore.com>
29672         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
29673         destination type, extract only the valid bits if the source type is not
29674         integral and has a different mode.
29676 2014-02-19  Richard Biener  <rguenther@suse.de>
29678         PR ipa/60243
29679         * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
29680         for all calls.
29682 2014-02-19  Richard Biener  <rguenther@suse.de>
29684         PR ipa/60243
29685         * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
29686         (ipa_modify_call_arguments): Emit an argument load explicitely and
29687         preserve virtual SSA form there and for the replacement call.
29688         Do not update SSA form nor free dominance info.
29690 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
29692         * ipa.c (function_and_variable_visibility): Also clear WEAK
29693         flag when disolving COMDAT_GROUP.
29695 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
29697         * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
29698         * ipa-prop.c (ipa_set_jf_known_type): Return early when
29699         not devirtualizing.
29700         (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
29701         do more sanity checks.
29702         (detect_type_change): Return true when giving up early.
29703         (compute_complex_assign_jump_func): Fix type parameter of
29704         ipa_set_ancestor_jf.
29705         (compute_complex_ancestor_jump_func): Likewise.
29706         (update_jump_functions_after_inlining): Fix updating of
29707         ancestor function.
29708         * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
29710 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
29712         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
29713         inline clones when edge disappears.
29715 2014-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
29717         PR target/60203
29718         * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
29719         Split 64-bit moves into 2 patterns.  Do not allow the use of
29720         direct move for TDmode in little endian, since the decimal value
29721         has little endian bytes within a word, but the 64-bit pieces are
29722         ordered in a big endian fashion, and normal subreg's of TDmode are
29723         not allowed.
29724         (mov<mode>_64bit_dm): Likewise.
29725         (movtd_64bit_nodm): Likewise.
29727 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
29729         PR tree-optimization/60174
29730         * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
29731         statement of an SSA_NAME that occurs in an abnormal PHI node.
29733 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
29735         PR sanitizer/60142
29736         * final.c (SEEN_BB): Remove.
29737         (SEEN_NOTE, SEEN_EMITTED): Renumber.
29738         (final_scan_insn): Don't force_source_line on second
29739         NOTE_INSN_BASIC_BLOCK.
29741 2014-02-18  Uros Bizjak  <ubizjak@gmail.com>
29743         PR target/60205
29744         * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
29745         * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
29746         (type_natural_mode): Warn ABI change when %zmm register is not
29747         available for AVX512F vector value passing.
29749 2014-02-18  Kai Tietz  <ktietz@redhat.com>
29751         PR target/60193
29752         * config/i386/i386.c (ix86_expand_prologue): Use value in
29753         rax register as displacement when restoring %r10 or %rax.
29754         Fix wrong offset when restoring both registers.
29756 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
29758         * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
29759         assertion with conditional return.
29761 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
29762             Uros Bizjak  <ubizjak@gmail.com>
29764         PR driver/60233
29765         * config/i386/driver-i386.c (host_detect_local_cpu): If
29766         YMM state is not saved by the OS, also clear has_f16c.  Move
29767         CPUID 0x80000001 handling before YMM state saving checking.
29769 2014-02-18  Andrey Belevantsev  <abel@ispras.ru>
29771         PR rtl-optimization/58960
29772         * haifa-sched.c (alloc_global_sched_pressure_data): New,
29773         factored out from ...
29774         (sched_init): ... here.
29775         (free_global_sched_pressure_data): New, factored out from ...
29776         (sched_finish): ... here.
29777         * sched-int.h (free_global_sched_pressure_data): Declare.
29778         * sched-rgn.c (nr_regions_initial): New static global.
29779         (haifa_find_rgns): Initialize it.
29780         (schedule_region): Disable sched-pressure for the newly
29781         generated regions.
29783 2014-02-17  Richard Biener  <rguenther@suse.de>
29785         * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
29786         release SSA defs of pattern stmts.
29788 2014-02-17  Richard Biener  <rguenther@suse.de>
29790         * tree-inline.c (expand_call_inline): Release the virtual
29791         operand defined by the call we are about to inline.
29793 2014-02-17  Richard Biener  <rguenther@suse.de>
29795         * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
29797 2014-02-17  Kirill Yukhin  <kirill.yukhin@intel.com>
29798             Ilya Tocar  <ilya.tocar@intel.com>
29800         * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
29801         arguments order in builtin.
29802         (_mm512_permutexvar_epi64): Ditto.
29803         (_mm512_mask_permutexvar_epi64): Ditto
29804         (_mm512_maskz_permutexvar_epi32): Ditto
29805         (_mm512_permutexvar_epi32): Ditto
29806         (_mm512_mask_permutexvar_epi32): Ditto
29808 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29810         * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
29811         (p8_vmrgow): Likewise.
29813 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29815         * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
29816         endian targets.
29818 2014-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
29820         PR target/60203
29821         * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
29822         (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
29823         into 64-bit and 32-bit moves.  On 64-bit moves, add support for
29824         using direct move instructions on ISA 2.07.  Also adjust
29825         instruction length for 64-bit.
29826         (mov<mode>_64bit, TFmode/TDmode): Likewise.
29827         (mov<mode>_32bit, TFmode/TDmode): Likewise.
29829 2014-02-15  Alan Modra  <amodra@gmail.com>
29831         PR target/58675
29832         PR target/57935
29833         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
29834         find_replacement on parts of insn rtl that might be reloaded.
29836 2014-02-15  Richard Biener  <rguenther@suse.de>
29838         PR tree-optimization/60183
29839         * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
29840         (tree_ssa_phiprop): Calculate and free post-dominators.
29842 2014-02-14  Jeff Law  <law@redhat.com>
29844         PR rtl-optimization/60131
29845         * ree.c (get_extended_src_reg): New function.
29846         (combine_reaching_defs): Use it rather than assuming location of REG.
29847         (find_and_remove_re): Verify first operand of extension is
29848         a REG before adding the insns to the copy list.
29850 2014-02-14  Roland McGrath  <mcgrathr@google.com>
29852         * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
29853         * configure: Regenerated.
29854         * config.in: Regenerated.
29855         * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
29856         instead of ASM_SHORT.
29858 2014-02-14  Vladimir Makarov  <vmakarov@redhat.com>
29859             Richard Earnshaw  <rearnsha@arm.com>
29861         PR rtl-optimization/59535
29862         * lra-constraints.c (process_alt_operands): Encourage alternative
29863         when unassigned pseudo class is superset of the alternative class.
29864         (inherit_reload_reg): Don't inherit when optimizing for code size.
29865         * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
29866         returning CORE_REGS for anything but Thumb1 and BASE_REGS for
29867         modes not less than 4 for Thumb1.
29869 2014-02-14  Kyle McMartin  <kyle@redhat.com>
29871         PR pch/60010
29872         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
29874 2014-02-14  Richard Biener  <rguenther@suse.de>
29876         * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
29877         (get_frame_arg): Drop the assert with langhook types_compatible_p.
29878         Do not strip INDIRECT_REFs.
29880 2014-02-14  Richard Biener  <rguenther@suse.de>
29882         PR lto/60179
29883         * lto-streamer-out.c (DFS_write_tree_body): Do not follow
29884         DECL_FUNCTION_SPECIFIC_TARGET.
29885         (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
29886         * tree-streamer-out.c (pack_ts_target_option): Remove.
29887         (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
29888         (write_ts_function_decl_tree_pointers): Do not stream
29889         DECL_FUNCTION_SPECIFIC_TARGET.
29890         * tree-streamer-in.c (unpack_ts_target_option): Remove.
29891         (unpack_value_fields): Do not stream TS_TARGET_OPTION.
29892         (lto_input_ts_function_decl_tree_pointers): Do not stream
29893         DECL_FUNCTION_SPECIFIC_TARGET.
29895 2014-02-14  Jakub Jelinek  <jakub@redhat.com>
29897         * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
29898         (get_initial_def_for_induction, vectorizable_induction): Ignore
29899         debug stmts when looking for exit_phi.
29900         (vectorizable_live_operation): Fix up condition.
29902 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
29904         * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
29905         nreverse() because it changes the content of original tree list.
29907 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
29909         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
29910         * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
29912 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
29914         * config/nds32/nds32.c (nds32_naked_function_p): Follow the
29915         GNU coding standards.
29917 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
29919         PR debug/60152
29920         * dwarf2out.c (gen_subprogram_die): Don't call
29921         add_calling_convention_attribute if subr_die is old_die.
29923 2014-02-13  Sharad Singhai  <singhai@google.com>
29925         * doc/optinfo.texi: Fix order of nodes.
29927 2014-02-13  Uros Bizjak  <ubizjak@gmail.com>
29929         * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
29930         operands[2], not operands[3].
29932 2014-02-13  Richard Biener  <rguenther@suse.de>
29934         PR bootstrap/59878
29935         * doc/install.texi (ISL): Update recommended version to 0.12.2,
29936         mention the possibility of an in-tree build.
29937         (CLooG): Update recommended version to 0.18.1, mention the
29938         possibility of an in-tree build and clarify that the ISL
29939         bundled with CLooG does not work.
29941 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
29943         PR target/43546
29944         * expr.c (compress_float_constant): If x is a hard register,
29945         extend into a pseudo and then move to x.
29947 2014-02-13  Dominik Vogt  <vogt@linux.vnet.ibm.com>
29949         * config/s390/s390.c (s390_asm_output_function_label): Fix crash
29950         caused by bad second argument to warning_at() with -mhotpatch and
29951         nested functions (e.g. with gfortran).
29953 2014-02-13  Richard Sandiford  <rdsandiford@googlemail.com>
29955         * opts.c (option_name): Remove "enabled by default" rider.
29957 2014-02-12  John David Anglin  <danglin@gcc.gnu.org>
29959         * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
29961 2014-02-12  H.J. Lu  <hongjiu.lu@intel.com>
29962             Uros Bizjak  <ubizjak@gmail.com>
29964         PR target/60151
29965         * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
29966         * configure: Regenerated.
29968 2014-02-12  Richard Biener  <rguenther@suse.de>
29970         * vec.c (vec_prefix::calculate_allocation): Move as
29971         inline variant to vec.h.
29972         (vec_prefix::calculate_allocation_1): New out-of-line version.
29973         * vec.h (vec_prefix::calculate_allocation_1): Declare.
29974         (vec_prefix::m_has_auto_buf): Rename to ...
29975         (vec_prefix::m_using_auto_storage): ... this.
29976         (vec_prefix::calculate_allocation): Inline the easy cases
29977         and dispatch to calculate_allocation_1 which doesn't need the
29978         prefix address.
29979         (va_heap::reserve): Use gcc_checking_assert.
29980         (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
29981         m_using_auto_storage.
29982         (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
29983         member and adjust.
29984         (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
29985         (vec<T, va_heap, vl_ptr>::release): Avoid casting.
29986         (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
29988 2014-02-12  Richard Biener  <rguenther@suse.de>
29990         * gcse.c (compute_transp): break from loop over canon_modify_mem_list
29991         when we found a dependence.
29993 2014-02-12  Thomas Schwinge  <thomas@codesourcery.com>
29995         * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
29996         common code...
29997         (maybe_fold_stmt): ... into this new function.
29998         * omp-low.c (lower_omp): Update comment.
30000         * omp-low.c (lower_omp_target): Add clobber for sizes array, after
30001         last use.
30003         * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
30004         dereference.
30006 2014-02-12  James Greenhalgh  <james.greenhalgh@arm.com>
30008         * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
30009         identifiers in comments.
30010         (cortexa53_extra_costs): Likewise.
30011         * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
30012         (cortexa7_extra_costs): Likewise.
30013         (cortexa12_extra_costs): Likewise.
30014         (cortexa15_extra_costs): Likewise.
30015         (v7m_extra_costs): Likewise.
30017 2014-02-12  Richard Biener  <rguenther@suse.de>
30019         PR middle-end/60092
30020         * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
30021         of posix_memalign being successful.
30022         (lower_stmt): Restrict lowering of posix_memalign to when
30023         -ftree-bit-ccp is enabled.
30025 2014-02-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
30027         * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
30028         arg_loc.
30029         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
30031 2014-02-12  Eric Botcazou  <ebotcazou@adacore.com>
30033         PR rtl-optimization/60116
30034         * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
30035         other_insn once the combination has been validated.
30037 2014-02-11  Jan Hubicka  <hubicka@ucw.cz>
30039         PR lto/59468
30040         * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
30041         and wrapper.
30042         * ipa-devirt.c: Include demangle.h
30043         (odr_violation_reported): New static variable.
30044         (add_type_duplicate): Update odr_violations.
30045         (maybe_record_node): Add completep parameter; update it.
30046         (record_target_from_binfo): Add COMPLETEP parameter;
30047         update it as needed.
30048         (possible_polymorphic_call_targets_1): Likewise.
30049         (struct polymorphic_call_target_d): Add nonconstruction_targets;
30050         rename FINAL to COMPLETE.
30051         (record_targets_from_bases): Sanity check we found the binfo;
30052         fix COMPLETEP updating.
30053         (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
30054         parameter, fix computing of COMPLETEP.
30055         (dump_possible_polymorphic_call_targets): Imrove readability of dump;
30056         at LTO time do demangling.
30057         (ipa_devirt): Use nonconstruction_targets; Improve dumps.
30058         * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
30059         parameter.
30060         (gimple_get_virt_method_for_binfo): Likewise.
30061         * gimple-fold.h (gimple_get_virt_method_for_binfo,
30062         gimple_get_virt_method_for_vtable): Update prototypes.
30064 2014-02-11  Vladimir Makarov  <vmakarov@redhat.com>
30066         PR target/49008
30067         * genautomata.c (add_presence_absence): Fix typo with
30068         {final_}presence_list.
30070 2014-02-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
30072         PR target/60137
30073         * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
30074         for VSX/Altivec vectors that land in GPR registers.
30076 2014-02-11  Richard Henderson  <rth@redhat.com>
30077             Jakub Jelinek  <jakub@redhat.com>
30079         PR debug/59776
30080         * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
30081         around drhs if type conversion to lacc->type is not useless.
30083 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30085         * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
30086         tuning struct.
30087         (cortex-a57.cortex-a53): Likewise.
30088         * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
30090 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30092         * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
30093         arm_restrict_it.
30095 2014-02-11  Renlin Li  <Renlin.Li@arm.com>
30097         * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
30098         add_options_for_arm_vfp3.
30100 2014-02-11  Jeff Law  <law@redhat.com>
30102         PR middle-end/54041
30103         * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
30104         object with an undesirable mode.
30106 2014-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30108         PR libgomp/60107
30109         * config/i386/sol2-9.h: New file.
30110         * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
30111         *-*-solaris2.9*): Use it.
30113 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
30115         * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
30116         * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
30118 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
30120         * config/microblaze/microblaze.c: Extend mcpu version format
30122 2014-02-10  David Holsgrove  <david.holsgrove@xilinx.com>
30124         * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
30126 2014-02-10  Richard Henderson  <rth@redhat.com>
30128         PR target/59927
30129         * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
30130         * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
30131         ms-abi vs -mno-accumulate-outgoing-args.
30132         (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
30133         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
30134         respect to ms-abi.
30136 2014-02-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
30138         PR middle-end/60080
30139         * cfgexpand.c (expand_asm_operands): Attach source location to
30140         ASM_INPUT rtx objects.
30141         * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
30143 2014-02-10  Nick Clifton  <nickc@redhat.com>
30145         * config/mn10300/mn10300.c (popcount): New function.
30146         (mn10300_expand_prologue): Include saved registers in stack usage
30147         count.
30149 2014-02-10  Jeff Law  <law@redhat.com>
30151         PR middle-end/52306
30152         * reload1.c (emit_input_reload_insns): Do not create invalid RTL
30153         when changing the SET_DEST of a prior insn to avoid an input reload.
30155 2014-02-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30157         * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
30158         big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
30159         -mcall-openbsd, or -mcall-linux.
30160         (CC1_ENDIAN_BIG_SPEC): Remove.
30161         (CC1_ENDIAN_LITTLE_SPEC): Remove.
30162         (CC1_ENDIAN_DEFAULT_SPEC): Remove.
30163         (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
30164         (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
30165         and %cc1_endian_default.
30166         * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
30168 2014-02-10  Richard Biener  <rguenther@suse.de>
30170         PR tree-optimization/60115
30171         * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
30172         MEM_REF handling.  Properly verify that the accesses are not
30173         out of the objects bound.
30175 2014-02-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30177         * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
30178         coretex to cortex.
30180 2014-02-10  Eric Botcazou  <ebotcazou@adacore.com>
30182         * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
30183         proper constants and fix formatting.
30184         (possible_polymorphic_call_targets): Fix formatting.
30186 2014-02-10  Kirill Yukhin  <kirill.yukhin@intel.com>
30187             Ilya Tocar  <ilya.tocar@intel.com>
30189         * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
30190         (_mm512_loadu_epi32): Renamed into...
30191         (_mm512_loadu_si512): This.
30192         (_mm512_storeu_epi32): Renamed into...
30193         (_mm512_storeu_si512): This.
30194         (_mm512_maskz_ceil_ps): Removed.
30195         (_mm512_maskz_ceil_pd): Ditto.
30196         (_mm512_maskz_floor_ps): Ditto.
30197         (_mm512_maskz_floor_pd): Ditto.
30198         (_mm512_floor_round_ps): Ditto.
30199         (_mm512_floor_round_pd): Ditto.
30200         (_mm512_ceil_round_ps): Ditto.
30201         (_mm512_ceil_round_pd): Ditto.
30202         (_mm512_mask_floor_round_ps): Ditto.
30203         (_mm512_mask_floor_round_pd): Ditto.
30204         (_mm512_mask_ceil_round_ps): Ditto.
30205         (_mm512_mask_ceil_round_pd): Ditto.
30206         (_mm512_maskz_floor_round_ps): Ditto.
30207         (_mm512_maskz_floor_round_pd): Ditto.
30208         (_mm512_maskz_ceil_round_ps): Ditto.
30209         (_mm512_maskz_ceil_round_pd): Ditto.
30210         (_mm512_expand_pd): Ditto.
30211         (_mm512_expand_ps): Ditto.
30212         * config/i386/i386.c (ix86_builtins): Remove
30213         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
30214         (bdesc_args): Ditto.
30215         * config/i386/predicates.md (const1256_operand): New.
30216         (const_1_to_2_operand): Ditto.
30217         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
30218         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
30219         (*avx512pf_gatherpf<mode>sf): Ditto.
30220         (avx512pf_gatherpf<mode>df): Ditto.
30221         (*avx512pf_gatherpf<mode>df_mask): Ditto.
30222         (*avx512pf_gatherpf<mode>df): Ditto.
30223         (avx512pf_scatterpf<mode>sf): Ditto.
30224         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
30225         (*avx512pf_scatterpf<mode>sf): Ditto.
30226         (avx512pf_scatterpf<mode>df): Ditto.
30227         (*avx512pf_scatterpf<mode>df_mask): Ditto.
30228         (*avx512pf_scatterpf<mode>df): Ditto.
30229         (avx512f_expand<mode>): Removed.
30230         (<shift_insn><mode>3<mask_name>): Change predicate type.
30232 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
30234         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
30235         not at the end of datarefs vector use ordered_remove to avoid
30236         reordering datarefs vector.
30238         PR c/59984
30239         * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
30240         mark local addressable non-static vars as GOVD_PRIVATE
30241         instead of GOVD_LOCAL.
30242         * omp-low.c (lower_omp_for): Move gimple_bind_vars
30243         and BLOCK_VARS of gimple_bind_block to new_stmt rather
30244         than copying them.
30246         PR middle-end/60092
30247         * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
30248         if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
30249         assume_aligned or alloc_align attributes.
30250         (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
30251         arguments.  Handle also assume_aligned and alloc_align attributes.
30252         (evaluate_stmt): Adjust bit_value_assume_aligned caller.  Handle
30253         calls to functions with assume_aligned or alloc_align attributes.
30254         * doc/extend.texi: Document assume_aligned and alloc_align attributes.
30256 2014-02-08  Terry Guo  <terry.guo@arm.com>
30258         * doc/invoke.texi: Document ARM -march=armv7e-m.
30260 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
30262         * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
30263         flag on __cilkrts_rethrow builtin.
30265         PR ipa/60026
30266         * ipa-cp.c (determine_versionability): Fail at -O0
30267         or __attribute__((optimize (0))) or -fno-ipa-cp functions.
30268         * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
30270         Revert:
30271         2014-02-04  Jakub Jelinek  <jakub@redhat.com>
30273         PR ipa/60026
30274         * tree-inline.c (copy_forbidden): Fail for
30275         __attribute__((optimize (0))) functions.
30277 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
30279         * varpool.c: Include pointer-set.h.
30280         (varpool_remove_unreferenced_decls): Variables in other partitions
30281         will not be output; be however careful to not lose information
30282         about partitioning.
30284 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
30286         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
30287         lookup in the vtable constructor.
30289 2014-02-07  Jeff Law  <law@redhat.com>
30291         PR target/40977
30292         * config/m68k/m68k.md (ashldi_extsi): Turn into a
30293         define_insn_and_split.
30295         * ipa-inline.c (inline_small_functions): Fix typos.
30297 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
30299         * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
30300         (s390_can_use_return_insn): Declare.
30301         * config/s390/s390.h (EPILOGUE_USES): Define.
30302         * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
30303         instructions.
30304         (s390_chunkify_start): Handle return JUMP_LABELs.
30305         (s390_early_mach): Emit a main_pool instruction on the entry edge.
30306         (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
30307         (s390_can_use_return_insn): New functions.
30308         (s390_fix_long_loop_prediction): Handle conditional returns.
30309         (TARGET_SET_UP_BY_PROLOGUE): Define.
30310         * config/s390/s390.md (ANY_RETURN): New code iterator.
30311         (*creturn, *csimple_return, return, simple_return): New patterns.
30313 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
30315         * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
30316         notes to each restore.  Also add REG_CFA_DEF_CFA when restoring %r15.
30317         (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P.  Update the
30318         REG_CFA_RESTORE list when deciding not to restore a register.
30320 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
30322         * config/s390/s390.c: Include tree-pass.h and context.h.
30323         (s390_early_mach): New function, split out from...
30324         (s390_emit_prologue): ...here.
30325         (pass_data_s390_early_mach): New pass structure.
30326         (pass_s390_early_mach): New class.
30327         (s390_option_override): Create and register early_mach pass.
30328         Move to end of file.
30330 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
30332         * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
30333         to match for the exit block.
30335 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30337         * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
30338         ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
30339         Reject misaligned operands.
30341 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30343         * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
30345 2014-02-07  Richard Biener  <rguenther@suse.de>
30347         PR middle-end/60092
30348         * gimple-low.c (lower_builtin_posix_memalign): New function.
30349         (lower_stmt): Call it to lower posix_memalign in a way
30350         to make alignment info accessible.
30352 2014-02-07  Jakub Jelinek  <jakub@redhat.com>
30354         PR c++/60082
30355         * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
30356         __builtin_setjmp_receiver.
30358 2014-02-07  Richard Biener  <rguenther@suse.de>
30360         PR middle-end/60092
30361         * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
30362         * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
30363         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
30364         Handle BUILT_IN_POSIX_MEMALIGN.
30365         (find_func_clobbers): Likewise.
30366         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
30367         (call_may_clobber_ref_p_1): Likewise.
30369 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
30371         PR ipa/59918
30372         * ipa-devirt.c (record_target_from_binfo): Remove overactive
30373         sanity check.
30375 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
30377         PR ipa/59469
30378         * lto-cgraph.c (lto_output_node): Use
30379         symtab_get_symbol_partitioning_class.
30380         (lto_output_varpool_node): likewise.
30381         (symtab_get_symbol_partitioning_class): Move here from
30382         lto/lto-partition.c
30383         * cgraph.h (symbol_partitioning_class): Likewise.
30384         (symtab_get_symbol_partitioning_class): Declare.
30386 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
30388         * ggc.h (ggc_internal_cleared_alloc): New macro.
30389         * vec.h (vec_safe_copy): Handle memory stats.
30390         * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
30391         * target-globals.c (save_target_globals): Likewise.
30393 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
30395         PR target/60077
30396         * expr.c (emit_move_resolve_push): Export; be bit more selective
30397         on when to clear alias set.
30398         * expr.h (emit_move_resolve_push): Declare.
30399         * function.h (struct function): Add tail_call_marked.
30400         * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
30401         * config/i386/i386-protos.h (ix86_expand_push): Remove.
30402         * config/i386/i386.md (TImode move expander): De not call
30403         ix86_expand_push.
30404         (FP push expanders): Preserve memory attributes.
30405         * config/i386/sse.md (push<mode>1): Remove.
30406         * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
30407         (ix86_expand_push): Remove.
30408         * config/i386/mmx.md (push<mode>1): Remove.
30410 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
30412         PR rtl-optimization/60030
30413         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
30414         lopart with paradoxical subreg before shifting it up by hprec.
30416 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30418         * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
30419         Remove extra newline at end of file.
30420         * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
30421         (arm_issue_rate): Handle cortexa57.
30422         * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
30423         (cortex-a57.cortex-a53): Likewise.
30425 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
30427         PR target/59575
30428         * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
30429         don't record in REG_FRAME_RELATED_EXPR registers not set in that
30430         bitmask.
30431         (arm_expand_prologue): Adjust all callers.
30432         (arm_unwind_emit_sequence): Allow saved, but not important for unwind
30433         info, registers also at the lowest numbered registers side.  Use
30434         gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
30435         XEXP.
30437         PR debug/59992
30438         * var-tracking.c (adjust_mems): Before adding a SET to
30439         amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
30441 2014-02-06  Alan Modra  <amodra@gmail.com>
30443         PR target/60032
30444         * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
30445         change SDmode to DDmode when lra_in_progress.
30447 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
30449         PR middle-end/59150
30450         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
30451         free_data_ref on the dr first, and before goto again also set dr
30452         to the next dr.  For simd_lane_access, free old datarefs[i] before
30453         overwriting it.  For get_vectype_for_scalar_type failure, don't
30454         free_data_ref if simd_lane_access.
30456         * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
30458         PR target/60062
30459         * tree.h (opts_for_fn): New inline function.
30460         (opt_for_fn): Define.
30461         * config/i386/i386.c (ix86_function_regparm): Use
30462         opt_for_fn (decl, optimize) instead of optimize.
30464 2014-02-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
30466         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
30467         for SYMBOL_REF in large memory model.
30469 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30471         * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
30472         and crypto support.
30473         (cortex-a57): Likewise.
30474         (cortex-a57.cortex-a53): Likewise.
30476 2014-02-06  Yury Gribov  <y.gribov@samsung.com>
30477             Kugan Vivekanandarajah  <kuganv@linaro.org>
30479         * config/arm/arm.c (arm_vector_alignment_reachable): Check
30480         unaligned_access.
30481         * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
30483 2014-02-06  Richard Biener  <rguenther@suse.de>
30485         * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
30486         set_loop_copy and initialize_original_copy_tables.
30488 2014-02-06  Alex Velenko  <Alex.Velenko@arm.com>
30490         * config/aarch64/aarch64-simd.md
30491         (aarch64_ashr_simddi): Change QI to SI.
30493 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
30494             Jakub Jelinek  <jakub@redhat.com>
30496         PR middle-end/60013
30497         * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
30498         of the dataflow.
30500 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30502         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
30503         CODE_FOR_altivec_vpku[hw]um to
30504         CODE_FOR_altivec_vpku[hw]um_direct.
30505         * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
30506         UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
30507         (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
30508         UNSPEC_VUNPACK_LO_SIGN_DIRECT.
30510 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30512         * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
30513         generation for -maltivec=be.
30514         (altivec_vsumsws): Simplify redundant test.
30516 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30518         * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
30519         (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
30520         (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
30521         (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
30522         gen_altivec_vpkuwum.
30523         (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
30524         BYTES_BIG_ENDIAN.
30525         (altivec_vpks<VI_char>ss): Likewise.
30526         (altivec_vpks<VI_char>us): Likewise.
30527         (altivec_vpku<VI_char>us): Likewise.
30528         (altivec_vpku<VI_char>um): Likewise.
30529         (altivec_vpku<VI_char>um_direct): New (copy of
30530         altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
30531         internal use).
30532         (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
30533         target is little endian and -maltivec=be is not specified.
30534         (*altivec_vupkhs<VU_char>_direct): New (copy of
30535         altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
30536         (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
30537         target is little endian and -maltivec=be is not specified.
30538         (*altivec_vupkls<VU_char>_direct): New (copy of
30539         altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
30540         (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
30541         little endian and -maltivec=be is not specified.
30542         (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
30543         little endian and -maltivec=be is not specified.
30545 2014-02-05  Richard Henderson  <rth@redhat.com>
30547         PR debug/52727
30548         * combine-stack-adj.c: Revert r206943.
30549         * sched-int.h (struct deps_desc): Add last_args_size.
30550         * sched-deps.c (init_deps): Initialize it.
30551         (sched_analyze_insn): Add OUTPUT dependencies between insns that
30552         contain REG_ARGS_SIZE notes.
30554 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
30556         * lto-cgraph.c (asm_nodes_output): Make global.
30557         * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
30558         * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
30559         (driver_handle_option): Handle OPT_fwpa.
30561 2014-02-05  Jakub Jelinek  <jakub@redhat.com>
30563         PR ipa/59947
30564         * ipa-devirt.c (possible_polymorphic_call_targets): Fix
30565         a comment typo and formatting issue.  If odr_hash hasn't been
30566         created, return vNULL and set *completep to false.
30568         PR middle-end/57499
30569         * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
30570         bb with no successors.
30572 2014-02-05  James Greenhalgh  <james.greenhalgh@arm.com>
30574         PR target/59718
30575         * doc/invoke.texi (-march): Clarify documentation for ARM.
30576         (-mtune): Likewise.
30577         (-mcpu): Likewise.
30579 2014-02-05  Richard Biener  <rguenther@suse.de>
30581         * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
30582         when not vectorizing because of too many alias checks.
30583         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
30584         Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
30586 2014-02-05  Nick Clifton  <nickc@redhat.com>
30588         * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
30589         accept extended registers in any mode when compiling for the MN10300.
30591 2014-02-05  Yury Gribov  <y.gribov@samsung.com>
30593         * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
30594         * ipa-inline.c (report_inline_failed_reason): Handle mismatched
30595         sanitization attributes.
30596         (can_inline_edge_p): Likewise.
30597         (sanitize_attrs_match_for_inline_p): New function.
30599 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
30601         * ipa-prop.c (detect_type_change): Shor circuit testing of
30602         type changes on THIS pointer.
30604 2014-02-04  John David Anglin  <danglin@gcc.gnu.org>
30606         PR target/59777
30607         * config/pa/pa.c (legitimize_tls_address): Return original address
30608         if not passed a SYMBOL_REF rtx.
30609         (hppa_legitimize_address): Call legitimize_tls_address for all TLS
30610         addresses.
30611         (pa_emit_move_sequence): Simplify TLS source operands.
30612         (pa_legitimate_constant_p): Reject all TLS constants.
30613         * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
30614         (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
30616 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
30618         * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
30619         groups when we know they are controlled by LTO.
30620         * varasm.c (default_binds_local_p_1): If object is in other partition,
30621         it will be resolved locally.
30623 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
30625         * config/host-linux.c (linux_gt_pch_use_address): Don't
30626         use SSIZE_MAX because it is not always defined.
30628 2014-02-04  Vladimir Makarov  <vmakarov@redhat.com>
30630         PR bootstrap/59913
30631         * lra-constraints.c (need_for_split_p): Use more 3 reloads as
30632         threshold for pseudo splitting.
30633         (update_ebb_live_info): Process call argument hard registers and
30634         hard registers from insn definition too.
30635         (max_small_class_regs_num): New constant.
30636         (inherit_in_ebb): Update live hard regs through EBBs.  Update
30637         reloads_num only for small register classes.  Don't split for
30638         outputs of jumps.
30640 2014-02-04  Markus Trippelsdorf  <markus@trippelsdorf.de>
30642         PR ipa/60058
30643         * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
30644         is non-null.
30646 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
30648         * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
30649         visibility is safe.
30651 2014-02-04  Marek Polacek  <polacek@redhat.com>
30653         * gdbinit.in (pel): Define.
30655 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
30657         * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
30658         behavior.
30660 2014-02-04  Richard Biener  <rguenther@suse.de>
30662         PR lto/59723
30663         * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
30664         in function context local.
30665         (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
30666         * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
30667         similar to LTO_imported_decl_ref.
30669 2014-02-04  Jakub Jelinek  <jakub@redhat.com>
30671         PR tree-optimization/60002
30672         * cgraphclones.c (build_function_decl_skip_args): Clear
30673         DECL_LANG_SPECIFIC.
30675         PR tree-optimization/60023
30676         * tree-if-conv.c (predicate_mem_writes): Pass true instead of
30677         false to gsi_replace.
30678         * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
30679         has been in some EH region and vec_stmt could throw, add
30680         vec_stmt into the same EH region.
30681         * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
30682         has no lhs, ignore it.
30683         * internal-fn.c (expand_MASK_LOAD): Likewise.
30685         PR ipa/60026
30686         * tree-inline.c (copy_forbidden): Fail for
30687         __attribute__((optimize (0))) functions.
30689         PR other/58712
30690         * omp-low.c (simd_clone_struct_copy): If from->inbranch
30691         is set, copy one less argument.
30692         (expand_simd_clones): Don't subtract clone_info->inbranch
30693         from simd_clone_struct_alloc argument.
30695         PR rtl-optimization/57915
30696         * recog.c (simplify_while_replacing): If all unary/binary/relational
30697         operation arguments are constant, attempt to simplify those.
30699         PR middle-end/59261
30700         * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
30701         if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
30703 2014-02-04  Richard Biener  <rguenther@suse.de>
30705         PR tree-optimization/60012
30706         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
30707         TBAA disambiguation to all DDRs.
30709 2014-02-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30711         PR target/59788
30712         * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
30713         (LINK_SPEC): Use it for -shared, -shared-libgcc.
30715 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
30717         PR ipa/59882
30718         * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
30720 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
30722         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
30723         * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
30725 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
30727         PR ipa/59831
30728         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
30729         to figure out targets of polymorphic calls with known decl.
30730         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
30731         * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
30732         * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
30733         (get_polymorphic_call_info): ... here.
30734         (get_polymorphic_call_info_from_invariant): New function.
30736 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
30738         * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
30739         lookup via vtable pointer; check for type consistency
30740         and turn inconsitent facts into UNREACHABLE.
30741         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
30742         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
30743         type inconsistent querries; return UNREACHABLE instead.
30745 2014-02-03  Richard Henderson  <rth@twiddle.net>
30747         PR tree-opt/59924
30748         * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
30749         already processed this node.
30750         (normalize_one_pred_1): Pass along mark_set.
30751         (normalize_one_pred): Create and destroy a pointer_set_t.
30752         (normalize_one_pred_chain): Likewise.
30754 2014-02-03  Laurent Aflonsi  <laurent.alfonsi@st.com>
30756         PR gcov-profile/58602
30757         * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
30759 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
30761         PR ipa/59831
30762         * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
30763         -fno-devirtualize; try to devirtualize by the knowledge of
30764         virtual table pointer given by aggregate propagation.
30765         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
30766         (ipa_print_node_jump_functions): Dump also offset that
30767         is relevant for polymorphic calls.
30768         (determine_known_aggregate_parts): Add arg_type parameter; use it
30769         instead of determining the type from pointer type.
30770         (ipa_compute_jump_functions_for_edge): Update call of
30771         determine_known_aggregate_parts.
30772         * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
30773         (gimple_get_virt_method_for_binfo): ... here; simplify using
30774         vtable_pointer_value_to_vtable.
30775         * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
30776         * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
30777         to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
30778         (vtable_pointer_value_to_vtable): Break out from ...; handle also
30779         POINTER_PLUS_EXPR.
30780         (vtable_pointer_value_to_binfo): ... here.
30781         * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
30783 2014-02-03  Teresa Johnson  <tejohnson@google.com>
30785         * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
30786         redef of outer loop index variable.
30788 2014-02-03  Marc Glisse  <marc.glisse@inria.fr>
30790         PR c++/53017
30791         PR c++/59211
30792         * doc/extend.texi (Function Attributes): Typo.
30794 2014-02-03  Cong Hou  <congh@google.com>
30796         PR tree-optimization/60000
30797         * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
30798         if the vectorized statement is a store.  A store statement can only
30799         appear at the end of pattern statements.
30801 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
30803         * config/i386/i386.c (flag_opts): Add -mlong-double-128.
30804         (ix86_option_override_internal): Default long double to 64-bit for
30805         32-bit Bionic and to 128-bit for 64-bit Bionic.
30807         * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
30808         TARGET_LONG_DOUBLE_128 is true.
30809         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
30811         * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
30812         (mlong-double-64): Negate -mlong-double-128.
30813         (mlong-double-128): New option.
30815         * config/i386/i386-c.c (ix86_target_macros): Define
30816         __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
30818         * doc/invoke.texi: Document -mlong-double-128.
30820 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
30822         PR rtl-optimization/60024
30823         * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
30825 2014-02-03  Markus Trippelsdorf  <markus@trippelsdorf.de>
30827         * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
30829 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
30831         PR rtl-optimization/57662
30832         * sel-sched.c (code_motion_path_driver): Do not mark already not
30833         existing blocks in the visiting bitmap.
30835 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
30837         * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
30838         on the insn being emitted.
30840 2014-02-03  James Greenhalgh  <james.greenhalgh@arm.com>
30841             Will Deacon  <will.deacon@arm.com>
30843         * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
30845 2014-02-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30847         * config/arm/arm-tables.opt: Regenerate.
30849 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30851         * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
30852         for vector types other than V16QImode.
30853         * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
30854         define_expand, and call altivec_expand_vec_perm_le when producing
30855         code with little endian element order.
30856         (*altivec_vperm_<mode>_internal): New insn having previous
30857         behavior of altivec_vperm_<mode>.
30858         (altivec_vperm_<mode>_uns): Change to a define_expand, and call
30859         altivec_expand_vec_perm_le when producing code with little endian
30860         element order.
30861         (*altivec_vperm_<mode>_uns_internal): New insn having previous
30862         behavior of altivec_vperm_<mode>_uns.
30864 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30866         * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
30867         (altivec_vsumsws): Add handling for -maltivec=be with a little
30868         endian target.
30869         (altivec_vsumsws_direct): New.
30870         (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
30871         gen_altivec_vsumsws.
30873 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
30875         * ipa-devirt.c (subbinfo_with_vtable_at_offset,
30876         vtable_pointer_value_to_binfo): New functions.
30877         * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
30878         * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
30880 2014-02-02  Sandra Loosemore  <sandra@codesourcery.com>
30882         * config/nios2/nios2.md (load_got_register): Initialize GOT
30883         pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
30884         * config/nios2/nios2.c (nios2_function_profiler): Likewise.
30886 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
30888         * ipa-prop.c (update_jump_functions_after_inlining): When type is not
30889         preserverd by passthrough, do not propagate the type.
30891 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
30893         * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
30894         (mips_atomic_assign_expand_fenv): New function.
30895         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
30897 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
30899         * doc/extend.texi (__builtin_mips_get_fcsr): Document.
30900         (__builtin_mips_set_fcsr): Likewise.
30901         * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
30902         MIPS_USI_FTYPE_VOID.
30903         * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
30904         (mips16_expand_set_fcsr): Likewise.
30905         * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
30906         (mips16_set_fcsr_stub): Likewise.
30907         (mips16_get_fcsr_one_only_stub): New class.
30908         (mips16_set_fcsr_one_only_stub): Likewise.
30909         (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
30910         (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
30911         (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
30912         (hard_float): New availability predicate.
30913         (mips_builtins): Add get_fcsr and set_fcsr.
30914         (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
30915         * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
30916         (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
30917         (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
30918         (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
30919         patterns.
30921 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
30923         * config/mips/mips.c (mips_one_only_stub): New class.
30924         (mips_need_mips16_rdhwr_p): Replace with...
30925         (mips16_rdhwr_stub): ...this new variable.
30926         (mips16_stub_call_address): New function.
30927         (mips16_rdhwr_one_only_stub): New class.
30928         (mips_expand_thread_pointer): Use mips16_stub_call_address.
30929         (mips_output_mips16_rdhwr): Delete.
30930         (mips_finish_stub): New function.
30931         (mips_code_end): Use it to handle rdhwr stubs.
30933 2014-02-02  Uros Bizjak  <ubizjak@gmail.com>
30935         PR target/60017
30936         * config/i386/i386.c (classify_argument): Fix handling of bit_offset
30937         when calculating size of integer atomic types.
30939 2014-02-02  H.J. Lu  <hongjiu.lu@intel.com>
30941         * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
30943 2014-02-01  Jakub Jelinek  <jakub@redhat.com>
30945         PR tree-optimization/60003
30946         * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
30947         * profile.c (branch_prob): Use gimple_call_builtin_p
30948         to check for BUILT_IN_SETJMP_RECEIVER.
30949         * tree-inline.c (copy_bb): Call notice_special_calls.
30951 2014-01-31  Vladimir Makarov  <vmakarov@redhat.com>
30953         PR bootstrap/59985
30954         * lra-constraints.c (process_alt_operands): Update reload_sum only
30955         on the first pass.
30957 2014-01-31  Richard Henderson  <rth@redhat.com>
30959         PR middle-end/60004
30960         * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
30961         until after else_eh is processed.
30963 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
30965         * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
30966         (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
30967         (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
30968         in smmintrin.h, remove them.
30969         (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
30970         * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
30971         * config/i386/i386.md (ROUND_SAE): Fix value.
30972         * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
30973         (const48_operand): New.
30974         * config/i386/subst.md (round), (round_expand): Use
30975         const_4_or_8_to_11_operand.
30976         (round_saeonly), (round_saeonly_expand): Use const48_operand.
30978 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
30980         * config/i386/constraints.md (Yk): Swap meaning with k.
30981         * config/i386/i386.md (movhi_internal): Change Yk to k.
30982         (movqi_internal): Ditto.
30983         (*k<logic><mode>): Ditto.
30984         (*andhi_1): Ditto.
30985         (*andqi_1): Ditto.
30986         (kandn<mode>): Ditto.
30987         (*<code>hi_1): Ditto.
30988         (*<code>qi_1): Ditto.
30989         (kxnor<mode>): Ditto.
30990         (kortestzhi): Ditto.
30991         (kortestchi): Ditto.
30992         (kunpckhi): Ditto.
30993         (*one_cmplhi2_1): Ditto.
30994         (*one_cmplqi2_1): Ditto.
30995         * config/i386/sse.md (): Change k to Yk.
30996         (avx512f_load<mode>_mask): Ditto.
30997         (avx512f_blendm<mode>): Ditto.
30998         (avx512f_store<mode>_mask): Ditto.
30999         (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
31000         (avx512f_storedqu<mode>_mask): Ditto.
31001         (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
31002         Ditto.
31003         (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
31004         (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
31005         (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
31006         (avx512f_maskcmp<mode>3): Ditto.
31007         (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
31008         (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
31009         (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
31010         (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
31011         (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
31012         (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
31013         (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
31014         (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
31015         (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
31016         (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
31017         (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
31018         (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
31019         (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
31020         (vec_extract_lo_<mode>_maskm): Ditto.
31021         (vec_extract_hi_<mode>_maskm): Ditto.
31022         (avx512f_vternlog<mode>_mask): Ditto.
31023         (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
31024         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
31025         (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
31026         (avx512f_<code>v8div16qi2_mask): Ditto.
31027         (avx512f_<code>v8div16qi2_mask_store): Ditto.
31028         (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
31029         (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
31030         (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
31031         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
31032         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
31033         (*avx512pf_gatherpf<mode>df_mask): Ditto.
31034         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
31035         (*avx512pf_scatterpf<mode>df_mask): Ditto.
31036         (avx512cd_maskb_vec_dupv8di): Ditto.
31037         (avx512cd_maskw_vec_dupv16si): Ditto.
31038         (avx512f_vpermi2var<mode>3_maskz): Ditto.
31039         (avx512f_vpermi2var<mode>3_mask): Ditto.
31040         (avx512f_vpermi2var<mode>3_mask): Ditto.
31041         (avx512f_vpermt2var<mode>3_maskz): Ditto.
31042         (*avx512f_gathersi<mode>): Ditto.
31043         (*avx512f_gathersi<mode>_2): Ditto.
31044         (*avx512f_gatherdi<mode>): Ditto.
31045         (*avx512f_gatherdi<mode>_2): Ditto.
31046         (*avx512f_scattersi<mode>): Ditto.
31047         (*avx512f_scatterdi<mode>): Ditto.
31048         (avx512f_compress<mode>_mask): Ditto.
31049         (avx512f_compressstore<mode>_mask): Ditto.
31050         (avx512f_expand<mode>_mask): Ditto.
31051         * config/i386/subst.md (mask): Change k to Yk.
31052         (mask_scalar_merge): Ditto.
31053         (sd): Ditto.
31055 2014-01-31  Marc Glisse  <marc.glisse@inria.fr>
31057         * doc/extend.texi (Vector Extensions): Document ?: in C++.
31059 2014-01-31  Richard Biener  <rguenther@suse.de>
31061         PR middle-end/59990
31062         * builtins.c (fold_builtin_memory_op): Make sure to not
31063         use a floating-point mode or a boolean or enumeral type for
31064         the copy operation.
31066 2014-01-30  DJ Delorie  <dj@redhat.com>
31068         * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
31069         * config/msp430/msp430.md (msp430_refsym_need_exit): New.
31070         * config/msp430/msp430.c (msp430_expand_epilogue): Call it
31071         whenever main() has an epilogue.
31073 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31075         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
31076         unused variable "field".
31077         * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
31078         (vsx_mergeh_<mode>): Likewise.
31079         * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
31080         (altivec_vmrghh): Likewise.
31081         (altivec_vmrghw): Likewise.
31082         (altivec_vmrglb): Likewise.
31083         (altivec_vmrglh): Likewise.
31084         (altivec_vmrglw): Likewise.
31085         (altivec_vspltb): Add missing uses.
31086         (altivec_vsplth): Likewise.
31087         (altivec_vspltw): Likewise.
31088         (altivec_vspltsf): Likewise.
31090 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
31092         PR target/59923
31093         * ifcvt.c (cond_exec_process_insns): Don't conditionalize
31094         frame related instructions.
31096 2014-01-30  Vladimir Makarov  <vmakarov@redhat.com>
31098         PR rtl-optimization/59959
31099         * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
31100         any reload of register whose subreg is invalid.
31102 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
31104         * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
31105         * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
31106         Add missing return type - void.
31108 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31110         * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
31111         gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
31112         remove element index adjustment for endian (now handled in vsx.md
31113         and altivec.md).
31114         (altivec_expand_vec_perm_const): Use
31115         gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
31116         * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
31117         (vsx_xxspltw_<mode>): Adjust element index for little endian.
31118         * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
31119         define_expand and a new define_insn *altivec_vspltb_internal;
31120         adjust for -maltivec=be on a little endian target.
31121         (altivec_vspltb_direct): New.
31122         (altivec_vsplth): Divide into a define_expand and a new
31123         define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
31124         little endian target.
31125         (altivec_vsplth_direct): New.
31126         (altivec_vspltw): Divide into a define_expand and a new
31127         define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
31128         little endian target.
31129         (altivec_vspltw_direct): New.
31130         (altivec_vspltsf): Divide into a define_expand and a new
31131         define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
31132         a little endian target.
31134 2014-01-30  Richard Biener  <rguenther@suse.de>
31136         PR tree-optimization/59993
31137         * tree-ssa-forwprop.c (associate_pointerplus): Check we
31138         can propagate form the earlier stmt and avoid the transform
31139         when the intermediate result is needed.
31141 2014-01-30  Alangi Derick  <alangiderick@gmail.com>
31143         * README.Portability: Fix typo.
31145 2014-01-30  David Holsgrove  <david.holsgrove@xilinx.com>
31147         * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
31148         comparison_operator with ordered_comparison_operator.
31150 2014-01-30  Nick Clifton  <nickc@redhat.com>
31152         * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
31153         Rename to mn10300_store_multiple_regs.
31154         * config/mn10300/mn10300.c: Likewise.
31155         * config/mn10300/mn10300.md (store_movm): Fix typo: call
31156         store_multiple_regs.
31157         * config/mn10300/predicates.md (mn10300_store_multiple_operation):
31158         Call mn10300_store_multiple_regs.
31160 2014-01-30  Nick Clifton  <nickc@redhat.com>
31161             DJ Delorie  <dj@redhat.com>
31163         * config/rl78/rl78.c (register_sizes): Make the "upper half" of
31164         %fp 2 to keep registers after it properly word-aligned.
31165         (rl78_alloc_physical_registers_umul): Handle the case where both
31166         input operands are the same.
31168 2014-01-30  Richard Biener  <rguenther@suse.de>
31170         PR tree-optimization/59903
31171         * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
31172         check properly.
31174 2014-01-30  Jason Merrill  <jason@redhat.com>
31176         PR c++/59633
31177         * tree.c (walk_type_fields): Handle VECTOR_TYPE.
31179         PR c++/59645
31180         * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
31182 2014-01-30  Richard Biener  <rguenther@suse.de>
31184         PR tree-optimization/59951
31185         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
31187 2014-01-30  Savin Zlobec  <savin.zlobec@gmail.com>
31189         PR target/59784
31190         * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
31191         SFmode to DFmode case.
31193 2014-01-29  DJ Delorie  <dj@redhat.com>
31195         * config/msp430/msp430.opt (-minrt): New.
31196         * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
31197         if -minrt given.
31198         (ENDFILE_SPEC): Likewise.
31200 2014-01-29  Jan Hubicka  <hubicka@ucw.cz>
31202         * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
31203         (estimate_function_body_sizes): Use it.
31205 2014-01-29  Paolo Carlini  <paolo.carlini@oracle.com>
31207         PR c++/58561
31208         * dwarf2out.c (is_cxx_auto): New.
31209         (is_base_type): Use it.
31210         (gen_type_die_with_usage): Likewise.
31212 2014-01-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31214         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const):  Use
31215         CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
31216         * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
31217         -maltivec=be with LE targets.
31218         (vsx_mergeh_<mode>): Likewise.
31219         * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
31220         (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
31221         (altivec_vmrghb): Replace with define_expand and new
31222         *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
31223         (altivec_vmrghb_direct): New define_insn.
31224         (altivec_vmrghh): Replace with define_expand and new
31225         *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
31226         (altivec_vmrghh_direct): New define_insn.
31227         (altivec_vmrghw): Replace with define_expand and new
31228         *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
31229         (altivec_vmrghw_direct): New define_insn.
31230         (*altivec_vmrghsf): Adjust for endianness.
31231         (altivec_vmrglb): Replace with define_expand and new
31232         *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
31233         (altivec_vmrglb_direct): New define_insn.
31234         (altivec_vmrglh): Replace with define_expand and new
31235         *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
31236         (altivec_vmrglh_direct): New define_insn.
31237         (altivec_vmrglw): Replace with define_expand and new
31238         *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
31239         (altivec_vmrglw_direct): New define_insn.
31240         (*altivec_vmrglsf): Adjust for endianness.
31241         (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
31242         (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
31243         (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
31244         (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
31245         (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
31246         (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
31247         (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
31248         (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
31250 2014-01-29  Marcus Shawcroft  <marcus.shawcroft@arm.com>
31252         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
31253         (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
31254         whitespace.
31256 2014-01-29  Richard Biener  <rguenther@suse.de>
31258         PR tree-optimization/58742
31259         * tree-ssa-forwprop.c (associate_pointerplus): Rename to
31260         associate_pointerplus_align.
31261         (associate_pointerplus_diff): New function.
31262         (associate_pointerplus): Likewise.  Call associate_pointerplus_align
31263         and associate_pointerplus_diff.
31265 2014-01-29  Richard Biener  <rguenther@suse.de>
31267         * lto-streamer.h (LTO_major_version): Bump to 3.
31268         (LTO_minor_version): Reset to 0.
31270 2014-01-29  Renlin Li  <Renlin.Li@arm.com>
31272         * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
31273         * config/arm/arm.c (FL_FOR_ARCH7VE): New.
31274         (arm_file_start): Generate correct asm header for armv7ve.
31275         * config/arm/bpabi.h: Add multilib support for armv7ve.
31276         * config/arm/driver-arm.c: Change the architectures of cortex-a7
31277         and cortex-a15 to armv7ve.
31278         * config/arm/t-aprofile: Add multilib support for armv7ve.
31279         * doc/invoke.texi: Document -march=armv7ve.
31281 2014-01-29  Richard Biener  <rguenther@suse.de>
31283         PR tree-optimization/58742
31284         * tree-ssa-forwprop.c (associate_plusminus): Return true
31285         if we changed sth, defer EH cleanup to ...
31286         (ssa_forward_propagate_and_combine): ... here.  Call simplify_mult.
31287         (simplify_mult): New function.
31289 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
31291         PR middle-end/59917
31292         PR tree-optimization/59920
31293         * tree.c (build_common_builtin_nodes): Remove
31294         __builtin_setjmp_dispatcher initialization.
31295         * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
31296         * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
31297         instead of gsi_after_labels + manually skipping debug stmts.
31298         Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
31299         ignore bbs with IFN_ABNORMAL_DISPATCHER.
31300         * tree-inline.c (copy_edges_for_bb): Remove
31301         can_make_abnormal_goto argument, instead add abnormal_goto_dest
31302         argument.  Ignore computed_goto_p stmts.  Don't call
31303         make_abnormal_goto_edges.  If a call might need abnormal edges
31304         for non-local gotos, see if it already has an edge to
31305         IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
31306         with true argument, don't do anything then, otherwise add
31307         EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
31308         (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
31309         caller.
31310         * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
31311         (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
31312         (lower_stmt): Don't set data->calls_builtin_setjmp.
31313         (lower_builtin_setjmp): Adjust comment.
31314         * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
31315         * tree-cfg.c (found_computed_goto): Remove.
31316         (factor_computed_gotos): Remove.
31317         (make_goto_expr_edges): Return bool, true for computed gotos.
31318         Don't call make_abnormal_goto_edges.
31319         (build_gimple_cfg): Don't set found_computed_goto, don't call
31320         factor_computed_gotos.
31321         (computed_goto_p): No longer static.
31322         (make_blocks): Don't set found_computed_goto.
31323         (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
31324         (make_edges): If make_goto_expr_edges returns true, push bb
31325         into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
31326         instead of calling make_abnormal_goto_edges push bb into ab_edge_call
31327         vector.  Record mapping between bbs and OpenMP regions if there
31328         are any, adjust make_gimple_omp_edges caller.  Call
31329         handle_abnormal_edges.
31330         (make_abnormal_goto_edges): Remove.
31331         * tree-cfg.h (make_abnormal_goto_edges): Remove.
31332         (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
31333         * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
31334         * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
31335         * internal-fn.def (ABNORMAL_DISPATCHER): New.
31336         * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
31337         filling *region also set *region_idx to (*region)->entry->index.
31339         PR other/58712
31340         * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
31341         For REGs set ORIGINAL_REGNO.
31343 2014-01-29  Bingfeng Mei  <bmei@broadcom.com>
31345         * doc/md.texi: Mention that a target shouldn't implement
31346         vec_widen_(s|u)mul_even/odd pair if it is less efficient
31347         than hi/lo pair.
31349 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
31351         PR tree-optimization/59594
31352         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
31353         a copy of the datarefs vector rather than the vector itself.
31355 2014-01-28  Jason Merrill  <jason@redhat.com>
31357         PR c++/53756
31358         * dwarf2out.c (auto_die): New static.
31359         (gen_type_die_with_usage): Handle C++1y 'auto'.
31360         (gen_subprogram_die): If in-class DIE had 'auto', emit type again
31361         on definition.
31363 2014-01-28  H.J. Lu  <hongjiu.lu@intel.com>
31365         PR target/59672
31366         * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
31367         (SPEC_X32): Likewise.
31368         (SPEC_64): Likewise.
31369         * config/i386/i386.c (ix86_option_override_internal): Turn off
31370         OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
31371         for TARGET_16BIT.
31372         (x86_file_start): Output .code16gcc for TARGET_16BIT.
31373         * config/i386/i386.h (TARGET_16BIT): New macro.
31374         (TARGET_16BIT_P): Likewise.
31375         * config/i386/i386.opt: Add m16.
31376         * doc/invoke.texi: Document -m16.
31378 2014-01-28  Jakub Jelinek  <jakub@redhat.com>
31380         PR preprocessor/59935
31381         * input.c (location_get_source_line): Bail out on when line number
31382         is zero, and test the return value of lookup_or_add_file_to_cache_tab.
31384 2014-01-28  Richard Biener  <rguenther@suse.de>
31386         PR tree-optimization/58742
31387         * tree-ssa-forwprop.c (associate_plusminus): Handle
31388         pointer subtraction of the form (T)(P + A) - (T)P.
31390 2014-01-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31392         * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
31393         at const_int_cost.
31395 2014-01-28  Richard Biener  <rguenther@suse.de>
31397         Revert
31398         2014-01-28  Richard Biener  <rguenther@suse.de>
31400         PR rtl-optimization/45364
31401         PR rtl-optimization/59890
31402         * var-tracking.c (local_get_addr_clear_given_value): Handle
31403         already cleared slot.
31404         (val_reset): Handle not allocated local_get_addr_cache.
31405         (vt_find_locations): Use post-order on the inverted CFG.
31407 2014-01-28  Richard Biener  <rguenther@suse.de>
31409         * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
31411 2014-01-28  Richard Biener  <rguenther@suse.de>
31413         PR rtl-optimization/45364
31414         PR rtl-optimization/59890
31415         * var-tracking.c (local_get_addr_clear_given_value): Handle
31416         already cleared slot.
31417         (val_reset): Handle not allocated local_get_addr_cache.
31418         (vt_find_locations): Use post-order on the inverted CFG.
31420 2014-01-28  Alan Modra  <amodra@gmail.com>
31422         * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
31423         * configure.ac <recursive call for build != host>: Define
31424         GENERATOR_FILE.  Comment.  Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
31425         and LD_FOR_BUILD too.
31426         * configure: Regenerate.
31428 2014-01-27  Allan Sandfeld Jensen  <sandfeld@kde.org>
31430         * config/i386/i386.c (get_builtin_code_for_version): Separate
31431         Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
31432         Broadwell from Haswell.
31434 2014-01-27  Steve Ellcey  <sellcey@mips.com>
31436         * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
31437         Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
31438         * config/mips/mips.c (mips_option_override): Change setting
31439         of TARGET_DSP.
31440         * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
31441         * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
31442         Change from Mask to Var.
31444 2014-01-27  Jeff Law  <law@redhat.com>
31446         * ipa-inline.c (inline_small_functions): Fix typo.
31448 2014-01-27  Ilya Tocar  <ilya.tocar@intel.com>
31450         * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
31451         (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
31452         (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
31453         (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
31454         (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
31455         (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
31456         (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
31457         (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
31458         (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
31459         (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
31460         (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
31461         (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
31462         (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
31463         (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
31464         (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
31465         (_mm512_storeu_epi64): Ditto.
31466         (_mm512_cmpge_epi32_mask): Ditto.
31467         (_mm512_cmpge_epu32_mask): Ditto.
31468         (_mm512_cmpge_epi64_mask): Ditto.
31469         (_mm512_cmpge_epu64_mask): Ditto.
31470         (_mm512_cmple_epi32_mask): Ditto.
31471         (_mm512_cmple_epu32_mask): Ditto.
31472         (_mm512_cmple_epi64_mask): Ditto.
31473         (_mm512_cmple_epu64_mask): Ditto.
31474         (_mm512_cmplt_epi32_mask): Ditto.
31475         (_mm512_cmplt_epu32_mask): Ditto.
31476         (_mm512_cmplt_epi64_mask): Ditto.
31477         (_mm512_cmplt_epu64_mask): Ditto.
31478         (_mm512_cmpneq_epi32_mask): Ditto.
31479         (_mm512_cmpneq_epu32_mask): Ditto.
31480         (_mm512_cmpneq_epi64_mask): Ditto.
31481         (_mm512_cmpneq_epu64_mask): Ditto.
31482         (_mm512_expand_pd): Ditto.
31483         (_mm512_expand_ps): Ditto.
31484         * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
31485         VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
31486         VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
31487         * config/i386/i386.c (ix86_builtins): Add
31488         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
31489         IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
31490         IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
31491         IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
31492         IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
31493         IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
31494         IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
31495         IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
31496         IX86_BUILTIN_PMOVUSQW512_MEM.
31497         (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
31498         __builtin_ia32_pmovsqd512mem_mask,
31499         __builtin_ia32_pmovqd512mem_mask,
31500         __builtin_ia32_pmovusqw512mem_mask,
31501         __builtin_ia32_pmovsqw512mem_mask,
31502         __builtin_ia32_pmovqw512mem_mask,
31503         __builtin_ia32_pmovusdw512mem_mask,
31504         __builtin_ia32_pmovsdw512mem_mask,
31505         __builtin_ia32_pmovdw512mem_mask,
31506         __builtin_ia32_pmovqb512mem_mask,
31507         __builtin_ia32_pmovusqb512mem_mask,
31508         __builtin_ia32_pmovsqb512mem_mask,
31509         __builtin_ia32_pmovusdb512mem_mask,
31510         __builtin_ia32_pmovsdb512mem_mask,
31511         __builtin_ia32_pmovdb512mem_mask.
31512         (bdesc_args): Add __builtin_ia32_expanddf512,
31513         __builtin_ia32_expandsf512.
31514         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
31515         VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
31516         VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
31517         * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
31518         (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
31519         (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
31520         (avx512f_<code>v8div16qi2_mask_store): This.
31521         (avx512f_expand<mode>): New.
31523 2014-01-27  Kirill Yukhin  <kirill.yukhin@intel.com>
31525         * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
31526         New.
31527         (_mm512_mask_prefetch_i64gather_pd): Ditto.
31528         (_mm512_prefetch_i32scatter_pd): Ditto.
31529         (_mm512_mask_prefetch_i32scatter_pd): Ditto.
31530         (_mm512_prefetch_i64scatter_pd): Ditto.
31531         (_mm512_mask_prefetch_i64scatter_pd): Ditto.
31532         (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
31533         (_mm512_mask_prefetch_i64gather_ps): Ditto.
31534         (_mm512_prefetch_i32scatter_ps): Ditto.
31535         (_mm512_mask_prefetch_i32scatter_ps): Ditto.
31536         (_mm512_prefetch_i64scatter_ps): Ditto.
31537         (_mm512_mask_prefetch_i64scatter_ps): Ditto.
31538         * config/i386/i386-builtin-types.def: Define
31539         VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
31540         and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
31541         * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
31542         IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
31543         IX86_BUILTIN_SCATTERPFQPD.
31544         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
31545         __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
31546         __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
31547         __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
31548         __builtin_ia32_scatterpfqps.
31549         (ix86_expand_builtin): Expand new built-ins.
31550         * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
31551         fix memory access data type.
31552         (*avx512pf_gatherpf<mode>_mask): Ditto.
31553         (*avx512pf_gatherpf<mode>): Ditto.
31554         (avx512pf_scatterpf<mode>): Ditto.
31555         (*avx512pf_scatterpf<mode>_mask): Ditto.
31556         (*avx512pf_scatterpf<mode>): Ditto.
31557         (GATHER_SCATTER_SF_MEM_MODE): New.
31558         (avx512pf_gatherpf<mode>df): Ditto.
31559         (*avx512pf_gatherpf<mode>df_mask): Ditto.
31560         (*avx512pf_scatterpf<mode>df): Ditto.
31562 2014-01-27  Jakub Jelinek  <jakub@redhat.com>
31564         PR bootstrap/59934
31565         * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
31566         know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
31567         reached.
31569 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
31571         * common/config/arm/arm-common.c
31572         (arm_rewrite_mcpu): Handle multiple names.
31573         * config/arm/arm.h
31574         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
31576 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
31578         * gimple-builder.h (create_gimple_tmp): Delete.
31580 2014-01-27  Christian Bruel  <christian.bruel@st.com>
31582         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
31583         words comparisons.
31585 2014-01-26  John David Anglin  <danglin@gcc.gnu.org>
31587         * config/pa/pa.md (call): Generate indirect long calls to non-local
31588         functions when outputing 32-bit code.
31589         (call_value): Likewise except for special call to buggy powf function.
31591         * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
31592         portable runtime and PIC indirect calls.
31593         (pa_output_indirect_call): Remove unnecessary nop from portable runtime
31594         and PIC call sequences.  Use ldo instead of blr to set return register
31595         in PIC call sequence.
31597 2014-01-25  Walter Lee  <walt@tilera.com>
31599         * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
31600         avoid clobbering a live register.
31602 2014-01-25  Walter Lee  <walt@tilera.com>
31604         * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
31605         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
31606         * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
31607         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
31609 2014-01-25  Walter Lee  <walt@tilera.com>
31611         * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
31612         arguments on even registers.
31613         (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
31614         STACK_BOUNDARY.
31615         * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
31616         (BIGGEST_ALIGNMENT): Ditto.
31617         (BIGGEST_FIELD_ALIGNMENT): Ditto.
31619 2014-01-25  Walter Lee  <walt@tilera.com>
31621         * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
31622         insns before bundling.
31623         * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
31625 2014-01-25  Walter Lee  <walt@tilera.com>
31627         * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
31628         PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
31629         * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
31631 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
31633         * config/mips/constraints.md (kl): Delete.
31634         * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
31635         define expands, using...
31636         (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
31637         instructions for MIPS16.
31638         (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
31639         non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
31641 2014-01-25  Walter Lee  <walt@tilera.com>
31643         * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
31644         (clzdi2): Ditto.
31645         (ffsdi2): Ditto.
31647 2014-01-25  Walter Lee  <walt@tilera.com>
31649         * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
31650         (TARGET_EXPAND_TO_RTL_HOOK): Define.
31652 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
31654         * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
31655         Handle XOR.
31657 2014-01-25  Jakub Jelinek  <jakub@redhat.com>
31659         * print-rtl.c (in_call_function_usage): New var.
31660         (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
31661         EXPR_LIST mode as mode and not as reg note name.
31663         PR middle-end/59561
31664         * cfgloopmanip.c (copy_loop_info): If
31665         loop->warned_aggressive_loop_optimizations, make sure
31666         the flag is set in target loop too.
31668 2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
31670         * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
31671         flag_cilkplus.
31672         * builtins.def: Likewise.
31673         * cilk.h (fn_contains_cilk_spawn_p): Likewise.
31674         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
31675         * ira.c (ira_setup_eliminable_regset): Likewise.
31676         * omp-low.c (gate_expand_omp): Likewise.
31677         (execute_lower_omp): Likewise.
31678         (diagnose_sb_0): Likewise.
31679         (gate_diagnose_omp_blocks): Likewise.
31680         (simd_clone_clauses_extract): Likewise.
31681         (gate): Likewise.
31683 2014-01-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31685         * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
31686         correction for little endian...
31687         * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
31688         here.
31690 2014-01-24  Jeff Law  <law@redhat.com>
31692         PR tree-optimization/59919
31693         * tree-vrp.c (find_assert_locations_1): Do not register asserts
31694         for non-returning calls.
31696 2014-01-24  James Greenhalgh  <james.greenhalgh@arm.com>
31698         * common/config/aarch64/aarch64-common.c
31699         (aarch64_rewrite_mcpu): Handle multiple names.
31700         * config/aarch64/aarch64.h
31701         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
31703 2014-01-24  Dodji Seketeli  <dodji@redhat.com>
31705         * input.c (add_file_to_cache_tab): Handle the case where fopen
31706         returns NULL.
31708 2014-01-23  H.J. Lu  <hongjiu.lu@intel.com>
31710         PR target/59929
31711         * config/i386/i386.md (pushsf splitter): Get stack adjustment
31712         from push operand if code of push isn't PRE_DEC.
31714 2014-01-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
31716         PR target/59909
31717         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
31718         -mquad-memory-atomic.  Update -mquad-memory documentation to say
31719         it is only used for non-atomic loads/stores.
31721         * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
31722         -mquad-memory or -mquad-memory-atomic switches.
31724         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
31725         -mquad-memory-atomic to ISA 2.07 support.
31727         * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
31728         to separate support of normal quad word memory operations (ldq, stq)
31729         from the atomic quad word memory operations.
31731         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
31732         support to separate non-atomic quad word operations from atomic
31733         quad word operations.  Disable non-atomic quad word operations in
31734         little endian mode so that we don't have to swap words after the
31735         load and before the store.
31736         (quad_load_store_p): Add comment about atomic quad word support.
31737         (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
31738         options printed with -mdebug=reg.
31740         * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
31741         -mquad-memory-atomic as the test for whether we have quad word
31742         atomic instructions.
31743         (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
31744         or -mp8-vector are used, allow byte/half-word atomic operations.
31746         * config/rs6000/sync.md (load_lockedti): Insure that the address
31747         is a proper indexed or indirect address for the lqarx instruction.
31748         On little endian systems, swap the hi/lo registers after the lqarx
31749         instruction.
31750         (load_lockedpti): Use indexed_or_indirect_operand predicate to
31751         insure the address is valid for the lqarx instruction.
31752         (store_conditionalti): Insure that the address is a proper indexed
31753         or indirect address for the stqcrx. instruction.  On little endian
31754         systems, swap the hi/lo registers before doing the stqcrx.
31755         instruction.
31756         (store_conditionalpti): Use indexed_or_indirect_operand predicate to
31757         insure the address is valid for the stqcrx. instruction.
31759         * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
31760         Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
31761         type of quad memory support is available.
31763 2014-01-23  Vladimir Makarov  <vmakarov@redhat.com>
31765         PR regression/59915
31766         * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
31767         there is a danger of looping.
31769 2014-01-23  Pat Haugen  <pthaugen@us.ibm.com>
31771         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
31772         force flag_ira_loop_pressure if set via command line.
31774 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
31776         * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
31777         (ashr_simd): New builtin handling DI mode.
31778         * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
31779         (aarch64_sshr_simddi): New match pattern.
31780         * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
31781         (vshrd_n_s64): Likewise.
31782         * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
31784 2014-01-23  Nick Clifton  <nickc@redhat.com>
31786         * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
31787         (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
31788         favour of mcu specific scripts.
31789         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
31790         430x multilibs.
31792 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
31793             Alex Velenko  <Alex.Velenko@arm.com>
31795         * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
31796         (vaddv_s16): Likewise.
31797         (vaddv_s32): Likewise.
31798         (vaddv_u8): Likewise.
31799         (vaddv_u16): Likewise.
31800         (vaddv_u32): Likewise.
31801         (vaddvq_s8): Likewise.
31802         (vaddvq_s16): Likewise.
31803         (vaddvq_s32): Likewise.
31804         (vaddvq_s64): Likewise.
31805         (vaddvq_u8): Likewise.
31806         (vaddvq_u16): Likewise.
31807         (vaddvq_u32): Likewise.
31808         (vaddvq_u64): Likewise.
31809         (vaddv_f32): Likewise.
31810         (vaddvq_f32): Likewise.
31811         (vaddvq_f64): Likewise.
31812         (vmaxv_f32): Likewise.
31813         (vmaxv_s8): Likewise.
31814         (vmaxv_s16): Likewise.
31815         (vmaxv_s32): Likewise.
31816         (vmaxv_u8): Likewise.
31817         (vmaxv_u16): Likewise.
31818         (vmaxv_u32): Likewise.
31819         (vmaxvq_f32): Likewise.
31820         (vmaxvq_f64): Likewise.
31821         (vmaxvq_s8): Likewise.
31822         (vmaxvq_s16): Likewise.
31823         (vmaxvq_s32): Likewise.
31824         (vmaxvq_u8): Likewise.
31825         (vmaxvq_u16): Likewise.
31826         (vmaxvq_u32): Likewise.
31827         (vmaxnmv_f32): Likewise.
31828         (vmaxnmvq_f32): Likewise.
31829         (vmaxnmvq_f64): Likewise.
31830         (vminv_f32): Likewise.
31831         (vminv_s8): Likewise.
31832         (vminv_s16): Likewise.
31833         (vminv_s32): Likewise.
31834         (vminv_u8): Likewise.
31835         (vminv_u16): Likewise.
31836         (vminv_u32): Likewise.
31837         (vminvq_f32): Likewise.
31838         (vminvq_f64): Likewise.
31839         (vminvq_s8): Likewise.
31840         (vminvq_s16): Likewise.
31841         (vminvq_s32): Likewise.
31842         (vminvq_u8): Likewise.
31843         (vminvq_u16): Likewise.
31844         (vminvq_u32): Likewise.
31845         (vminnmv_f32): Likewise.
31846         (vminnmvq_f32): Likewise.
31847         (vminnmvq_f64): Likewise.
31849 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
31851         * config/aarch64/aarch64-simd.md
31852         (aarch64_dup_lane<mode>): Correct lane number on big-endian.
31853         (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
31854         (*aarch64_mul3_elt<mode>): Likewise.
31855         (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
31856         (*aarch64_mul3_elt_to_64v2df): Likewise.
31857         (*aarch64_mla_elt<mode>): Likewise.
31858         (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
31859         (*aarch64_mls_elt<mode>): Likewise.
31860         (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
31861         (*aarch64_fma4_elt<mode>): Likewise.
31862         (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
31863         (*aarch64_fma4_elt_to_64v2df): Likewise.
31864         (*aarch64_fnma4_elt<mode>): Likewise.
31865         (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
31866         (*aarch64_fnma4_elt_to_64v2df): Likewise.
31867         (aarch64_sq<r>dmulh_lane<mode>): Likewise.
31868         (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
31869         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
31870         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
31871         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
31872         (aarch64_sqdmull_lane<mode>_internal): Likewise.
31873         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
31875 2013-01-23  Alex Velenko  <Alex.Velenko@arm.com>
31877         * config/aarch64/aarch64-simd.md
31878         (aarch64_be_checked_get_lane<mode>): New define_expand.
31879         * config/aarch64/aarch64-simd-builtins.def
31880         (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
31881         New builtin definition.
31882         * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
31883         Use new safe be builtin.
31885 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
31887         * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
31888         New define_insn.
31889         (aarch64_be_st1<mode>): Likewise.
31890         (aarch_ld1<VALL:mode>): Define_expand modified.
31891         (aarch_st1<VALL:mode>): Likewise.
31892         * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
31893         (UNSPEC_ST1): Likewise.
31895 2014-01-23  David Holsgrove  <david.holsgrove@xilinx.com>
31897         * config/microblaze/microblaze.md: Add trap insn and attribute
31899 2014-01-23  Dodji Seketeli  <dodji@redhat.com>
31901         PR preprocessor/58580
31902         * input.h (location_get_source_line): Take an additional line_size
31903         parameter.
31904         (void diagnostics_file_cache_fini): Declare new function.
31905         * input.c (struct fcache): New type.
31906         (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
31907         New static constants.
31908         (diagnostic_file_cache_init, total_lines_num)
31909         (lookup_file_in_cache_tab, evicted_cache_tab_entry)
31910         (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
31911         (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
31912         (get_next_line, read_next_line, goto_next_line, read_line_num):
31913         New static function definitions.
31914         (diagnostic_file_cache_fini): New function.
31915         (location_get_source_line): Take an additional output line_len
31916         parameter.  Re-write using lookup_or_add_file_to_cache_tab and
31917         read_line_num.
31918         * diagnostic.c (diagnostic_finish): Call
31919         diagnostic_file_cache_fini.
31920         (adjust_line): Take an additional input parameter for the length
31921         of the line, rather than calculating it with strlen.
31922         (diagnostic_show_locus): Adjust the use of
31923         location_get_source_line and adjust_line with respect to their new
31924         signature.  While displaying a line now, do not stop at the first
31925         null byte.  Rather, display the zero byte as a space and keep
31926         going until we reach the size of the line.
31927         * Makefile.in: Add vec.o to OBJS-libcommon
31929 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
31930             Ilya Tocar  <ilya.tocar@intel.com>
31932         * config/i386/avx512fintrin.h (_mm512_kmov): New.
31933         * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
31934         (__builtin_ia32_kmov16): Ditto.
31935         * config/i386/i386.md (UNSPEC_KMOV): New.
31936         (kmovw): Ditto.
31938 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
31940         * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
31941         (_mm512_storeu_si512): Ditto.
31943 2014-01-23  Richard Sandiford  <rdsandiford@googlemail.com>
31945         PR target/52125
31946         * rtl.h (get_referenced_operands): Declare.
31947         * recog.c (get_referenced_operands): New function.
31948         * config/mips/mips.c (mips_reorg_process_insns): Check which asm
31949         operands have been referenced when recording LO_SUM references.
31951 2014-01-22  David Holsgrove  <david.holsgrove@xilinx.com>
31953         * config/microblaze/microblaze.md: Correct bswaphi2 insn.
31955 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
31957         * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
31958         Enable for generic and recent AMD targets.
31960 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
31962         * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
31963         ARG_SIZE note when adjustment was eliminated.
31965 2014-01-22  Jeff Law  <law@redhat.com>
31967         PR tree-optimization/59597
31968         * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
31969         in file.  Accept new argument REGISTERING and use it to modify
31970         dump output appropriately.
31971         (register_jump_thread): Corresponding changes.
31972         (mark_threaded_blocks): Reinstate code to cancel unprofitable
31973         thread paths involving joiner blocks.  Add code to dump cancelled
31974         jump threading paths.
31976 2014-01-22  Vladimir Makarov  <vmakarov@redhat.com>
31978         PR rtl-optimization/59477
31979         * lra-constraints.c (inherit_in_ebb): Process call for living hard
31980         regs.  Update reloads_num and potential_reload_hard_regs for all insns.
31982 2014-01-22  Tom Tromey  <tromey@redhat.com>
31984         * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
31985         PARAMS.
31986         * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
31988 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
31990         PR rtl-optimization/59896
31991         * lra-constraints.c (process_alt_operands): Check unused note for
31992         matched operands of insn with no output reloads.
31994 2014-01-21  Richard Sandiford  <rdsandiford@googlemail.com>
31996         * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
31997         (mips_move_from_gpr_cost): Likewise.
31999 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
32001         PR rtl-optimization/59858
32002         * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
32003         ira_class_hard_regs_num.
32004         (process_alt_operands): Increase reject for dying matched operand.
32006 2014-01-21  Jakub Jelinek  <jakub@redhat.com>
32008         PR target/59003
32009         * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
32010         smaller than size, perform several stores or loads and stores
32011         at dst + count - size to store or copy all of size bytes, rather
32012         than just last modesize bytes.
32014 2014-01-20  DJ Delorie  <dj@redhat.com>
32016         * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
32017         that CLOBBERs are REGs before propogating their values.
32019 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
32021         PR middle-end/59789
32022         * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
32023         (cgraph_inline_failed_type): New function.
32024         * cgraph.h (DEFCIFCODE): Add type.
32025         (cgraph_inline_failed_type_t): New enum.
32026         (cgraph_inline_failed_type): New prototype.
32027         * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
32028         FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
32029         FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
32030         LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
32031         MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
32032         RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
32033         OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
32034         INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
32035         Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
32036         FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
32037         EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
32038         OPTIMIZATION_MISMATCH.
32039         * tree-inline.c (expand_call_inline): Emit errors during
32040         early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
32042 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
32044         PR target/59685
32045         * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
32046         mode attribute in insn output.
32048 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
32050         * output.h (output_constant): Delete.
32051         * varasm.c (output_constant): Make private.
32053 2014-01-20  Alex Velenko  <Alex.Velenko@arm.com>
32055         * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
32057 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
32059         PR middle-end/59860
32060         * tree.h (fold_builtin_strcat): New prototype.
32061         * builtins.c (fold_builtin_strcat): No longer static.  Add len
32062         argument, if non-NULL, don't call c_strlen.  Optimize
32063         directly into __builtin_memcpy instead of __builtin_strcpy.
32064         (fold_builtin_2): Adjust fold_builtin_strcat caller.
32065         * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
32067 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
32069         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
32070         for SImode_address_operand operands, having only a REG argument.
32072 2014-01-20  Marcus Shawcroft  <marcus.shawcroft@arm.com>
32074         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
32075         loader name using mbig-endian.
32076         (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
32078 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
32080         * doc/invoke.texi (-march): Clarify documentation for AArch64.
32081         (-mtune): Likewise.
32082         (-mcpu): Likewise.
32084 2014-01-20  Tejas Belagod  <tejas.belagod@arm.com>
32086         * config/aarch64/aarch64-protos.h
32087         (aarch64_cannot_change_mode_class_ptr): Declare.
32088         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
32089         aarch64_cannot_change_mode_class_ptr): New.
32090         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
32091         backend hook aarch64_cannot_change_mode_class.
32093 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
32095         * common/config/aarch64/aarch64-common.c
32096         (aarch64_handle_option): Don't handle any option order logic here.
32097         * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
32098         selected_cpu, warn on architecture version mismatch.
32099         (aarch64_override_options): Fix parsing order for option strings.
32101 2014-01-20  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
32102             Iain Sandoe  <iain@codesourcery.com>
32104         PR bootstrap/59496
32105         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
32106         warning.  Amend comment to reflect current functionality.
32108 2014-01-20  Richard Biener  <rguenther@suse.de>
32110         PR middle-end/59860
32111         * builtins.c (fold_builtin_strcat): Remove case better handled
32112         by tree-ssa-strlen.c.
32114 2014-01-20  Alan Lawrence  <alan.lawrence@arm.com>
32116         * config/aarch64/aarch64.opt
32117         (mcpu, march, mtune): Make case-insensitive.
32119 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
32121         PR target/59880
32122         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
32123         if operands[1] is a REG or ZERO_EXTEND of a REG.
32125 2014-01-19  Jan Hubicka  <hubicka@ucw.cz>
32127         * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
32129 2014-01-19  John David Anglin  <danglin@gcc.gnu.org>
32131         * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
32132         long non-pic millicode calls.
32134 2014-01-19  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
32136         * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
32138 2014-01-19  Kito Cheng  <kito@0xlab.org>
32140         * builtins.c (expand_movstr): Check movstr expand done or fail.
32142 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
32143             H.J. Lu  <hongjiu.lu@intel.com>
32145         PR target/59379
32146         * config/i386/i386.md (*lea<mode>): Zero-extend return register
32147         to DImode for zero-extended addresses.
32149 2014-01-19  Jakub Jelinek  <jakub@redhat.com>
32151         PR rtl-optimization/57763
32152         * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
32153         on the new indirect jump_insn and increment LABEL_NUSES (label).
32155 2014-01-18  H.J. Lu  <hongjiu.lu@intel.com>
32157         PR bootstrap/59580
32158         PR bootstrap/59583
32159         * config.gcc (x86_archs): New variable.
32160         (x86_64_archs): Likewise.
32161         (x86_cpus): Likewise.
32162         Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
32163         --with-arch/--with-cpu= options.
32164         Support --with-arch=/--with-cpu={nehalem,westmere,
32165         sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
32167 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
32169         * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
32170         and PROCESSOR_ATHLON to simplify code.  Move "memory" calculation.
32172 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
32174         * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
32176 2014-01-18  Jakub Jelinek  <jakub@redhat.com>
32178         PR target/58944
32179         * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
32180         clear cpp_get_options (parse_in)->warn_unused_macros for
32181         ix86_target_macros_internal with cpp_define.
32183 2014-01-18  Richard Sandiford  <rdsandiford@googlemail.com>
32185         * jump.c (delete_related_insns): Keep (use (insn))s.
32186         * reorg.c (redundant_insn): Check for barriers too.
32188 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
32190         * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
32192 2014-01-17  John David Anglin  <danglin@gcc.gnu.org>
32194         * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
32195         call to $$dyncall when TARGET_LONG_CALLS is true.
32197 2014-01-17  Jeff Law  <law@redhat.com>
32199         * ree.c (combine_set_extension): Temporarily disable test for
32200         changing number of hard registers.
32202 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
32204         PR middle-end/58125
32205         * ipa-inline-analysis.c (inline_free_summary):
32206         Do not free summary of aliases.
32208 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
32210         PR middle-end/59706
32211         * gimplify.c (gimplify_expr): Use create_tmp_var
32212         instead of create_tmp_var_raw.  If cond doesn't have
32213         integral type, don't add the IFN_ANNOTATE builtin at all.
32215 2014-01-17  Martin Jambor  <mjambor@suse.cz>
32217         PR ipa/59736
32218         * ipa-cp.c (prev_edge_clone): New variable.
32219         (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
32220         Also resize prev_edge_clone vector.
32221         (ipcp_edge_duplication_hook): Also update prev_edge_clone.
32222         (ipcp_edge_removal_hook): New function.
32223         (ipcp_driver): Register ipcp_edge_removal_hook.
32225 2014-01-17  Andrew Pinski  <apinski@cavium.com>
32226             Steve Ellcey  <sellcey@mips.com>
32228         PR target/59462
32229         * config/mips/mips.c (mips_print_operand): Check operand mode instead
32230         of operator mode.
32232 2014-01-17  Jeff Law  <law@redhat.com>
32234         PR middle-end/57904
32235         * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
32236         so that pass_ccp runs first.
32238 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
32240         * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
32241         (ix86_adjust_cost): Use !TARGET_XXX.
32242         (do_reorder_for_imul): Likewise.
32243         (swap_top_of_ready_list): Likewise.
32244         (ix86_sched_reorder): Likewise.
32246 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
32248         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
32249         PROCESSOR_INTEL.  Treat like PROCESSOR_GENERIC.
32250         * config/i386/i386.c (intel_memcpy): New.  Duplicate slm_memcpy.
32251         (intel_memset): New.  Duplicate slm_memset.
32252         (intel_cost): New.  Duplicate slm_cost.
32253         (m_INTEL): New macro.
32254         (processor_target_table): Add "intel".
32255         (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
32256         with PROCESSOR_INTEL for "intel".
32257         (ix86_lea_outperforms): Support PROCESSOR_INTEL.  Duplicate
32258         PROCESSOR_SILVERMONT.
32259         (ix86_issue_rate): Likewise.
32260         (ix86_adjust_cost): Likewise.
32261         (ia32_multipass_dfa_lookahead): Likewise.
32262         (swap_top_of_ready_list): Likewise.
32263         (ix86_sched_reorder): Likewise.
32264         (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
32265         instead of TARGET_OPT_AGU.
32266         * config/i386/i386.h (TARGET_INTEL): New.
32267         (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
32268         (processor_type): Add PROCESSOR_INTEL.
32269         * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
32270         Add X86_TUNE_AVOID_LEA_FOR_ADDR.
32272 2014-01-17  Marek Polacek  <polacek@redhat.com>
32274         PR c/58346
32275         * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
32276         size is zero.
32278 2014-01-17  Richard Biener  <rguenther@suse.de>
32280         PR tree-optimization/46590
32281         * opts.c (default_options_table): Add entries for
32282         OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
32283         all enabled at -O1 but not for -Og.
32284         * common.opt (fbranch-count-reg): Remove Init(1).
32285         (fmove-loop-invariants): Likewise.
32286         (ftree-pta): Likewise.
32288 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
32290         * config/i386/i386.c (ix86_data_alignment): For compatibility with
32291         (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
32292         decls to at least the GCC 4.8 used alignments.
32294         PR fortran/59440
32295         * tree-nested.c (convert_nonlocal_reference_stmt,
32296         convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
32297         of GIMPLE_BIND stmts, adjust associated decls.
32299 2014-01-17  Richard Biener  <rguenther@suse.de>
32301         PR tree-optimization/46590
32302         * vec.h (vec<>::bseach): New member function implementing
32303         binary search according to C89 bsearch.
32304         (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
32305         * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
32306         bitmap pointer again.  Make accesses_in_loop a flat array.
32307         (mem_ref_obstack): New global.
32308         (outermost_indep_loop): Adjust for mem_ref->stored changes.
32309         (mark_ref_stored): Likewise.
32310         (ref_indep_loop_p_2): Likewise.
32311         (set_ref_stored_in_loop): New helper function.
32312         (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
32313         (memref_free): Adjust.
32314         (record_mem_ref_loc): Simplify.
32315         (gather_mem_refs_stmt): Adjust.
32316         (sort_locs_in_loop_postorder_cmp): New function.
32317         (analyze_memory_references): Sort accesses_in_loop after
32318         loop postorder number.
32319         (find_ref_loc_in_loop_cmp): New function.
32320         (for_all_locs_in_loop): Find relevant cluster of locs in
32321         accesses_in_loop and iterate without recursion.
32322         (execute_sm): Avoid uninit warning.
32323         (struct ref_always_accessed): Simplify.
32324         (ref_always_accessed::operator ()): Likewise.
32325         (ref_always_accessed_p): Likewise.
32326         (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
32327         loop postorder numbers here.
32328         (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
32329         numbers.
32331 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
32333         PR c++/57945
32334         * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
32335         on decls for which assemble_alias has been called.
32337 2014-01-17  Nick Clifton  <nickc@redhat.com>
32339         * config/msp430/msp430.opt: (mcpu): New option.
32340         * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
32341         (msp430_option_override): Parse target_cpu.  If the MCU name
32342         matches a generic string, clear target_mcu.
32343         (msp430_attr): Allow numeric interrupt values up to 63.
32344         (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
32345         * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
32346         option.
32347         * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
32348         Add mcpu matches.
32349         * config/msp430/msp430.md (popm): Use %J rather than %I.
32350         (addsi3): Use msp430_nonimmediate_operand for operand 2.
32351         (addhi_cy_i): Use immediate_operand for operand 2.
32352         * doc/invoke.texi: Document -mcpu option.
32354 2014-01-17  Richard Biener  <rguenther@suse.de>
32356         PR rtl-optimization/38518
32357         * df.h (df_analyze_loop): Declare.
32358         * df-core.c: Include cfgloop.h.
32359         (df_analyze_1): Split out main part of df_analyze.
32360         (df_analyze): Adjust.
32361         (loop_inverted_post_order_compute): New function.
32362         (loop_post_order_compute): Likewise.
32363         (df_analyze_loop): New function avoiding whole-function
32364         postorder computes.
32365         * loop-invariant.c (find_defs): Use df_analyze_loop.
32366         (find_invariants): Adjust.
32367         * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
32369 2014-01-17  Zhenqiang Chen  <zhenqiang.chen@arm.com>
32371         * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
32372         (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
32374 2014-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
32376         * ipa-ref.c (ipa_remove_stmt_references): Fix references
32377         traversal when removing references.
32379 2014-01-16  Jan Hubicka  <hubicka@ucw.cz>
32381         PR ipa/59775
32382         * tree.c (get_binfo_at_offset): Look harder for virtual bases.
32384 2014-01-16  Bernd Schmidt  <bernds@codesourcery.com>
32386         PR middle-end/56791
32387         * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
32388         pushing a reload for an autoinc when we had previously reloaded an
32389         inner part of the address.
32391 2014-01-16  Jakub Jelinek  <jakub@redhat.com>
32393         * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
32394         field.
32395         (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
32396         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
32397         when not giving up or versioning for alias only because of
32398         loop->safelen.
32399         (vect_analyze_data_ref_dependences): Set to true.
32400         * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
32401         is a GIMPLE_PHI.
32402         (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
32403         LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
32404         to the condition.
32406         PR middle-end/58344
32407         * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
32409         PR target/59839
32410         * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
32411         operand 0 predicate for gathers, use a new pseudo as subtarget.
32413 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
32415         PR middle-end/59609
32416         * lra-constraints.c (process_alt_operands): Add printing debug info.
32417         Check absence of input/output reloads for matched operands too.
32419 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
32421         PR rtl-optimization/59835
32422         * ira.c (ira_init_register_move_cost): Increase cost for
32423         impossible modes.
32425 2014-01-16  Alan Lawrence  <alan.lawrence@arm.com>
32427         * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
32429 2014-01-16  Richard Earnshaw  <rearnsha@arm.com>
32431         PR target/59780
32432         * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
32433         non-register objects.  Use gen_(high/low)part more consistently.
32434         Fix assertions.
32436 2014-01-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
32438         PR target/59844
32439         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
32440         endian support, remove tests for WORDS_BIG_ENDIAN.
32441         (p8_mfvsrd_3_<mode>): Likewise.
32442         (reload_gpr_from_vsx<mode>): Likewise.
32443         (reload_gpr_from_vsxsf): Likewise.
32444         (p8_mfvsrd_4_disf): Likewise.
32446 2014-01-16  Richard Biener  <rguenther@suse.de>
32448         PR rtl-optimization/46590
32449         * lcm.c (compute_antinout_edge): Use postorder iteration.
32450         (compute_laterin): Use inverted postorder iteration.
32452 2014-01-16  Nick Clifton  <nickc@redhat.com>
32454         PR middle-end/28865
32455         * varasm.c (output_constant): Return the number of bytes actually
32456         emitted.
32457         (output_constructor_array_range): Update the field size with the
32458         number of bytes emitted by output_constant.
32459         (output_constructor_regular_field): Likewise.  Also do not
32460         complain if the total number of bytes emitted is now greater
32461         than the expected fieldpos.
32462         * output.h (output_constant): Update prototype and descriptive comment.
32464 2014-01-16  Marek Polacek  <polacek@redhat.com>
32466         PR middle-end/59827
32467         * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
32468         it is error_mark_node.
32470 2014-01-15  Uros Bizjak  <ubizjak@gmail.com>
32472         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
32473         VALID_AVX256_REG_OR_OI_MODE.
32475 2014-01-15  Pat Haugen  <pthaugen@us.ibm.com>
32477         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
32478         current procedure should be profiled.
32480 2014-01-15  Andrew Pinski  <apinski@cavium.com>
32482         * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
32483         of moving from/to the STACK_REG register class.
32485 2014-01-15  Richard Henderson  <rth@redhat.com>
32487         PR debug/54694
32488         * reginfo.c (global_regs_decl): Globalize.
32489         * rtl.h (global_regs_decl): Declare.
32490         * ira.c (do_reload): Diagnose frame_pointer_needed and it
32491         reserved via global_regs.
32493 2014-01-15  Teresa Johnson  <tejohnson@google.com>
32495         * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
32497 2014-01-15  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
32499         * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
32500         and vmulosh rather than call gen_vec_widen_smult_*.
32501         (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
32502         than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
32503         (vec_widen_smult_even_v16qi): Likewise.
32504         (vec_widen_umult_even_v8hi): Likewise.
32505         (vec_widen_smult_even_v8hi): Likewise.
32506         (vec_widen_umult_odd_v16qi): Likewise.
32507         (vec_widen_smult_odd_v16qi): Likewise.
32508         (vec_widen_umult_odd_v8hi): Likewise.
32509         (vec_widen_smult_odd_v8hi): Likewise.
32510         (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
32511         vmuloub rather than call gen_vec_widen_umult_*.
32512         (vec_widen_umult_lo_v16qi): Likewise.
32513         (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
32514         vmulosb rather than call gen_vec_widen_smult_*.
32515         (vec_widen_smult_lo_v16qi): Likewise.
32516         (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
32517         rather than call gen_vec_widen_umult_*.
32518         (vec_widen_umult_lo_v8hi): Likewise.
32519         (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
32520         rather than call gen_vec_widen_smult_*.
32521         (vec_widen_smult_lo_v8hi): Likewise.
32523 2014-01-15  Jeff Law  <law@redhat.com>
32525         PR tree-optimization/59747
32526         * ree.c (find_and_remove_re): Properly handle case where a second
32527         eliminated extension requires widening a copy created for elimination
32528         of a prior extension.
32529         (combine_set_extension): Ensure that the number of hard regs needed
32530         for a destination register does not change when we widen it.
32532 2014-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
32534         * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
32535         (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
32536         (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
32537         (arm*-*-rtems*): Use t-rtems from existing tmake_file.
32538         (avr-*-rtems*): Likewise.
32539         (bfin*-rtems*): Likewise.
32540         (moxie-*-rtems*): Likewise.
32541         (h8300-*-rtems*): Likewise.
32542         (i[34567]86-*-rtems*): Likewise.
32543         (lm32-*-rtems*): Likewise.
32544         (m32r-*-rtems*): Likewise.
32545         (m68k-*-rtems*): Likewise.
32546         (microblaze*-*-rtems*): Likewise.
32547         (mips*-*-rtems*): Likewise.
32548         (powerpc-*-rtems*): Likewise.
32549         (sh-*-rtems*): Likewise.
32550         (sparc-*-rtems*): Likewise.
32551         (sparc64-*-rtems*): Likewise.
32552         (v850-*-rtems*): Likewise.
32553         (m32c-*-rtems*): Likewise.
32555 2014-01-15  Vladimir Makarov  <vmakarov@redhat.com>
32557         PR rtl-optimization/59511
32558         * ira.c (ira_init_register_move_cost): Use memory costs for some
32559         cases of register move cost calculations.
32560         * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
32561         instead of BB frequency.
32562         * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
32563         * lra-assigns.c (find_hard_regno_for): Ditto.
32565 2014-01-15  Richard Biener  <rguenther@suse.de>
32567         PR tree-optimization/59822
32568         * tree-vect-stmts.c (hoist_defs_of_uses): New function.
32569         (vectorizable_load): Use it to hoist defs of uses of invariant
32570         loads out of the loop.
32572 2014-01-15  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
32573             Kugan Vivekanandarajah  <kuganv@linaro.org>
32575         PR target/59695
32576         * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
32577         truncation.
32579 2014-01-15  Richard Biener  <rguenther@suse.de>
32581         PR rtl-optimization/59802
32582         * lcm.c (compute_available): Use inverted postorder to seed
32583         the initial worklist.
32585 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32587         PR target/59803
32588         * config/s390/s390.c (s390_preferred_reload_class): Don't return
32589         ADDR_REGS for invalid symrefs in non-PIC code.
32591 2014-01-15  Jakub Jelinek  <jakub@redhat.com>
32593         PR other/58712
32594         * builtins.c (determine_block_size): Initialize *probable_max_size
32595         even if len_rtx is CONST_INT.
32597 2014-01-14  Andrew Pinski  <apinski@cavium.com>
32599         * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
32600         * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
32601         (cortexa53_tunings): Likewise.
32602         (aarch64_sched_issue_rate): New function.
32603         (TARGET_SCHED_ISSUE_RATE): Define.
32605 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
32607         * ira-costs.c (find_costs_and_classes): Add missed
32608         ira_init_register_move_cost_if_necessary.
32610 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
32612         PR target/59787
32613         * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
32615 2014-01-14  H.J. Lu  <hongjiu.lu@intel.com>
32617         PR target/59794
32618         * config/i386/i386.c (type_natural_mode): Add a bool parameter
32619         to indicate if type is used for function return value.  Warn ABI
32620         change if the vector mode isn't available for function return value.
32621         (ix86_function_arg_advance): Pass false to type_natural_mode.
32622         (ix86_function_arg): Likewise.
32623         (ix86_gimplify_va_arg): Likewise.
32624         (function_arg_32): Don't warn ABI change.
32625         (ix86_function_value): Pass true to type_natural_mode.
32626         (ix86_return_in_memory): Likewise.
32627         (ix86_struct_value_rtx): Removed.
32628         (TARGET_STRUCT_VALUE_RTX): Likewise.
32630 2014-01-14  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
32632         * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
32633         converting a conditional jump into a conditional return.
32635 2014-01-14  Richard Biener  <rguenther@suse.de>
32637         PR tree-optimization/58921
32638         PR tree-optimization/59006
32639         * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
32640         hoisting invariant stmts.
32641         * tree-vect-stmts.c (vectorizable_load): Insert the splat of
32642         invariant loads on the preheader edge if possible.
32644 2014-01-14  Joey Ye  <joey.ye@arm.com>
32646         * doc/plugin.texi (Building GCC plugins): Update to C++.
32648 2014-01-14  Kirill Yukhin  <kirill.yukhin@intel.com>
32650         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
32651         (_mm_rcp28_round_ss): Ditto.
32652         (_mm_rsqrt28_round_sd): Ditto.
32653         (_mm_rsqrt28_round_ss): Ditto.
32654         (_mm_rcp28_sd): Ditto.
32655         (_mm_rcp28_ss): Ditto.
32656         (_mm_rsqrt28_sd): Ditto.
32657         (_mm_rsqrt28_ss): Ditto.
32658         * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
32659         * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
32660         * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
32661         (IX86_BUILTIN_RCP28SD): Ditto.
32662         (IX86_BUILTIN_RCP28SS): Ditto.
32663         (IX86_BUILTIN_RSQRT28SD): Ditto.
32664         (IX86_BUILTIN_RSQRT28SS): Ditto.
32665         (bdesc_special_args): Define __builtin_ia32_movntdqa512,
32666         __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
32667         __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
32668         (ix86_expand_special_args_builtin): Expand new FTYPE.
32669         * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
32670         (srcp14<mode>): Make insn unary.
32671         (avx512f_vmscalef<mode><round_name>): Use substed predicate.
32672         (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
32673         (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
32674         (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
32675         (avx512er_exp2<mode><mask_name><round_saeonly_name>):
32676         Fix rounding: make it SAE only.
32677         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
32678         Ditto.
32679         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
32680         Ditto.
32681         (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
32682         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
32683         (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
32684         * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
32685         (round_saeonly_mask_scalar_operand4): Ditto.
32686         (round_saeonly_mask_scalar_op3): Ditto.
32687         (round_saeonly_mask_scalar_op4): Ditto.
32689 2014-01-13  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32691         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
32692         Implement -maltivec=be for vec_insert and vec_extract.
32694 2014-01-10  DJ Delorie  <dj@redhat.com>
32696         * config/msp430/msp430.md (call_internal): Don't allow memory
32697         references with SP as the base register.
32698         (call_value_internal): Likewise.
32699         * config/msp430/constraints.md (Yc): New.  For memory references
32700         that don't use SP as a base register.
32702         * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
32703         "an integer without a # prefix"
32704         * config/msp430/msp430.md (epilogue_helper): Use it.
32706 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
32708         PR target/59617
32709         * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
32710         AVX512F gather builtins.
32711         * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
32712         on gather decls with INTEGER_TYPE masktype.
32713         (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
32714         directly into the builtin rather than hoisting it before loop.
32716         PR tree-optimization/59387
32717         * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
32718         (scev_const_prop): If folded_casts and type has undefined overflow,
32719         use force_gimple_operand instead of force_gimple_operand_gsi and
32720         for each added stmt if it is assign with
32721         arith_code_with_undefined_signed_overflow, call
32722         rewrite_to_defined_overflow.
32723         * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
32724         gimple-fold.h instead.
32725         (arith_code_with_undefined_signed_overflow,
32726         rewrite_to_defined_overflow): Moved to ...
32727         * gimple-fold.c (arith_code_with_undefined_signed_overflow,
32728         rewrite_to_defined_overflow): ... here.  No longer static.
32729         Include gimplify-me.h.
32730         * gimple-fold.h (arith_code_with_undefined_signed_overflow,
32731         rewrite_to_defined_overflow): New prototypes.
32733 2014-01-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32735         * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
32737 2014-01-13  Eric Botcazou  <ebotcazou@adacore.com>
32739         * builtins.c (get_object_alignment_2): Minor tweak.
32740         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
32742 2014-01-13  Christian Bruel  <christian.bruel@st.com>
32744         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
32745         optimized non constant lengths.
32747 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
32749         PR libgomp/59194
32750         * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
32751         load as __atomic_load_N if possible.
32753 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
32755         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
32756         target parameter.
32757         (rs6000_expand_builtin): Adjust call.
32759 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
32761         PR target/58115
32762         * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
32763         * config/rs6000/rs6000.c: Include target-globals.h.
32764         (rs6000_set_current_function): Instead of doing target_reinit
32765         unconditionally, use save_target_globals_default_opts and
32766         restore_target_globals.
32768         * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
32769         FPSCR.
32770         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
32771         (rs6000_expand_builtin): Handle mffs and mtfsf.
32772         (rs6000_init_builtins): Define mffs and mtfsf.
32773         * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
32774         (rs6000_mffs): New pattern.
32775         (rs6000_mtfsf): New pattern.
32777 2014-01-11  Bin Cheng  <bin.cheng@arm.com>
32779         * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
32780         Start narrowing with START.  Apply candidate-use pair
32781         and check overall cost in narrowing.
32782         (iv_ca_prune): Pass new argument.
32784 2014-01-10  Jeff Law  <law@redhat.com>
32786         PR middle-end/59743
32787         * ree.c (combine_reaching_defs): Ensure the defining statement
32788         occurs before the extension when optimizing extensions with
32789         different source and destination hard registers.
32791 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
32793         PR ipa/58585
32794         * ipa-devirt.c (build_type_inheritance_graph): Also add types of
32795         vtables into the type inheritance graph.
32797 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
32799         PR rtl-optimization/59754
32800         * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
32801         modes in the REGNO != REGNO case.
32803 2014-01-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32805         * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
32807 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
32809         PR tree-optimization/59745
32810         * tree-predcom.c (tree_predictive_commoning_loop): Call
32811         free_affine_expand_cache if giving up because components is NULL.
32813         * target-globals.c (save_target_globals): Allocate < 4KB structs using
32814         GC in payload of target_globals struct instead of allocating them on
32815         the heap and the larger structs separately using GC.
32816         * target-globals.h (struct target_globals): Make regs, hard_regs,
32817         reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
32818         of GTY((skip)) and change type to void *.
32819         (reset_target_globals): Cast loads from those fields to corresponding
32820         types.
32822 2014-01-10  Steve Ellcey  <sellcey@mips.com>
32824         PR plugins/59335
32825         * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
32826         gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
32827         tree-ssanames.h, print-tree.h, varasm.h, and context.h.
32829 2014-01-10  Richard Earnshaw  <rearnsha@arm.com>
32831         PR target/59744
32832         * aarch64-modes.def (CC_Zmode): New flags mode.
32833         * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
32834         represents an equality.
32835         (aarch64_get_condition_code): Handle CC_Zmode.
32836         * aarch64.md (compare_neg<mode>): Restrict to equality operations.
32838 2014-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32840         * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
32841         extraction in good case.
32843 2014-01-10  Richard Biener  <rguenther@suse.de>
32845         PR tree-optimization/59374
32846         * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
32847         checking after SLP discovery.  Mark stmts not participating
32848         in any SLP instance properly.
32850 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32852         * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
32853         when handling a SET rtx.
32855 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32857         * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
32858         (cortex-a57): Likewise.
32859         (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
32861 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32863         * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
32864         non-iwmmxt builtins.
32866 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
32868         PR ipa/58252
32869         PR ipa/59226
32870         * ipa-devirt.c record_target_from_binfo): Take as argument
32871         stack of binfos and lookup matching one for virtual inheritance.
32872         (possible_polymorphic_call_targets_1): Update.
32874 2014-01-10  Huacai Chen  <chenhc@lemote.com>
32876         * config/mips/driver-native.c (host_detect_local_cpu): Handle new
32877         kernel strings for Loongson-2E/2F/3A.
32879 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
32881         PR middle-end/59670
32882         * tree-vect-data-refs.c (vect_analyze_data_refs): Check
32883         is_gimple_call before calling gimple_call_internal_p.
32885 2014-01-09  Steve Ellcey  <sellcey@mips.com>
32887         * Makefile.in (TREE_FLOW_H): Remove.
32888         (TREE_SSA_H): Add file names from tree-flow.h.
32889         * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
32890         * tree.h: Remove tree-flow.h reference.
32891         * hash-table.h: Remove tree-flow.h reference.
32892         * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
32893         reference with tree-ssa-loop.h.
32895 2014-01-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32897         * doc/invoke.texi: Add -maltivec={be,le} options, and document
32898         default element-order behavior for -maltivec.
32899         * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
32900         * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
32901         that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
32902         when targeting big endian, at least for now.
32903         * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
32905 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
32907         PR middle-end/47735
32908         * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
32909         var satisfies use_register_for_decl, just take into account type
32910         alignment, rather than decl alignment.
32912         PR tree-optimization/59622
32913         * gimple-fold.c (gimple_fold_call): Fix a typo in message.  For
32914         __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
32915         __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
32916         Don't devirtualize for inplace at all.  For targets.length () == 1,
32917         if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
32919 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
32921         * config/i386/i386.md (cpu): Remove the unused btver1.
32923 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
32925         * gdbasan.in: Put a breakpoint on __sanitizer::Report.
32927 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
32929         PR target/58115
32930         * tree-core.h (struct target_globals): New forward declaration.
32931         (struct tree_target_option): Add globals field.
32932         * tree.h (TREE_TARGET_GLOBALS): Define.
32933         (prepare_target_option_nodes_for_pch): New prototype.
32934         * target-globals.h (struct target_globals): Define even if
32935         !SWITCHABLE_TARGET.
32936         * tree.c (prepare_target_option_node_for_pch,
32937         prepare_target_option_nodes_for_pch): New functions.
32938         * config/i386/i386.h (SWITCHABLE_TARGET): Define.
32939         * config/i386/i386.c: Include target-globals.h.
32940         (ix86_set_current_function): Instead of doing target_reinit
32941         unconditionally, use save_target_globals_default_opts and
32942         restore_target_globals.
32944 2014-01-09  Richard Biener  <rguenther@suse.de>
32946         PR tree-optimization/59715
32947         * tree-cfg.h (split_critical_edges): Declare.
32948         * tree-cfg.c (split_critical_edges): Export.
32949         * tree-ssa-sink.c (execute_sink_code): Split critical edges.
32951 2014-01-09  Max Ostapenko  <m.ostapenko@partner.samsung.com>
32953         * cfgexpand.c (expand_stack_vars): Optionally disable
32954         asan stack protection.
32955         (expand_used_vars): Likewise.
32956         (partition_stack_vars): Likewise.
32957         * asan.c (asan_emit_stack_protection): Optionally disable
32958         after return stack usage.
32959         (instrument_derefs): Optionally disable memory access instrumentation.
32960         (instrument_builtin_call): Likewise.
32961         (instrument_strlen_call): Likewise.
32962         (asan_protect_global): Optionally disable global variables protection.
32963         * doc/invoke.texi: Added doc for new options.
32964         * params.def: Added new options.
32965         * params.h: Likewise.
32967 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
32969         PR rtl-optimization/59724
32970         * ifcvt.c (cond_exec_process_if_block): Don't call
32971         flow_find_head_matching_sequence with 0 longest_match.
32972         * cfgcleanup.c (flow_find_head_matching_sequence): Count even
32973         non-active insns if !stop_after.
32974         (try_head_merge_bb): Revert 2014-01-07 changes.
32976 2014-01-08  Jeff Law  <law@redhat.com>
32978         * ree.c (get_sub_rtx): New function, extracted from...
32979         (merge_def_and_ext): Here.
32980         (combine_reaching_defs): Use get_sub_rtx.
32982 2014-01-08  Eric Botcazou  <ebotcazou@adacore.com>
32984         * cgraph.h (varpool_variable_node): Do not choke on null node.
32986 2014-01-08  Catherine Moore  <clm@codesourcery.com>
32988         * config/mips/mips.md (simple_return): Attempt to use JRC
32989         for microMIPS.
32990         * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
32992 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
32994         PR rtl-optimization/59137
32995         * reorg.c (steal_delay_list_from_target): Call update_block for
32996         elided insns.
32997         (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
32999 2014-01-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33001         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
33002         two duplicate entries.
33004 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
33006         Revert:
33007         2012-10-07  Richard Sandiford  <rdsandiford@googlemail.com>
33009         * config/mips/mips.c (mips_truncated_op_cost): New function.
33010         (mips_rtx_costs): Adjust test for BADDU.
33011         * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
33013         2012-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
33015         * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
33016         (*baddu_si): ...this new pattern.
33018 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
33020         PR ipa/59722
33021         * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
33023 2014-01-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>
33025         PR middle-end/57748
33026         * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
33027         inner_reference_p.
33028         (expand_expr, expand_normal): Adjust.
33029         * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
33030         inner_reference_p. Use inner_reference_p to expand inner references.
33031         (store_expr): Adjust.
33032         * cfgexpand.c (expand_call_stmt): Adjust.
33034 2014-01-08  Rong Xu  <xur@google.com>
33036         * gcov-io.c (gcov_var): Move from gcov-io.h.
33037         (gcov_position): Ditto.
33038         (gcov_is_error): Ditto.
33039         (gcov_rewrite): Ditto.
33040         * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
33041         only part to libgcc/libgcov.h.
33043 2014-01-08  Marek Polacek  <polacek@redhat.com>
33045         PR middle-end/59669
33046         * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
33048 2014-01-08  Marek Polacek  <polacek@redhat.com>
33050         PR sanitizer/59667
33051         * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
33053 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
33055         PR rtl-optimization/59649
33056         * stor-layout.c (get_mode_bounds): For BImode return
33057         0 and STORE_FLAG_VALUE.
33059 2014-01-08  Richard Biener  <rguenther@suse.de>
33061         PR middle-end/59630
33062         * gimple.h (is_gimple_builtin_call): Remove.
33063         (gimple_builtin_call_types_compatible_p): New.
33064         (gimple_call_builtin_p): New overload.
33065         * gimple.c (is_gimple_builtin_call): Remove.
33066         (validate_call): Rename to ...
33067         (gimple_builtin_call_types_compatible_p): ... this and export.  Also
33068         check return types.
33069         (validate_type): New static function.
33070         (gimple_call_builtin_p): New overload and adjust.
33071         * gimple-fold.c (gimple_fold_builtin): Fold the return value.
33072         (gimple_fold_call): Likewise.  Use gimple_call_builtin_p.
33073         (gimple_fold_stmt_to_constant_1): Likewise.
33074         * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
33076 2014-01-08  Richard Biener  <rguenther@suse.de>
33078         PR middle-end/59471
33079         * gimplify.c (gimplify_expr): Gimplify register-register type
33080         VIEW_CONVERT_EXPRs to separate stmts.
33082 2014-01-07  Jeff Law  <law@redhat.com>
33084         PR middle-end/53623
33085         * ree.c (combine_set_extension): Handle case where source
33086         and destination registers in an extension insn are different.
33087         (combine_reaching_defs): Allow source and destination registers
33088         in extension to be different under limited circumstances.
33089         (add_removable_extension): Remove restriction that the
33090         source and destination registers in the extension are the same.
33091         (find_and_remove_re): Emit a copy from the extension's
33092         destination to its source after the defining insn if
33093         the source and destination registers are different.
33095         PR middle-end/59285
33096         * ifcvt.c (merge_if_block): If we are merging a block with more than
33097         one successor with a block with no successors, remove any BARRIER
33098         after the second block.
33100 2014-01-07  Dan Xio Qiang  <ziyan01@163.com>
33102         * hw-doloop.c (reorg_loops): Release the bitmap obstack.
33104 2014-01-07  John David Anglin  <danglin@gcc.gnu.org>
33106         PR target/59652
33107         * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
33108         for 14-bit register offsets when INT14_OK_STRICT is false.
33110 2014-01-07  Roland Stigge  <stigge@antcom.de>
33111             Michael Meissner  <meissner@linux.vnet.ibm.com>
33113         PR 57386/target
33114         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
33115         Only check TFmode for SPE constants.  Don't check TImode or TDmode.
33117 2014-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
33119         * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
33120         -mcpu.
33122 2014-01-07  Yufeng Zhang  <yufeng.zhang@arm.com>
33124         * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
33125         with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
33126         rtx is const0_rtx or not.
33128 2014-01-07  Richard Sandiford  <rdsandiford@googlemail.com>
33130         PR target/58115
33131         * target-globals.c (save_target_globals): Remove this_fn_optab
33132         handling.
33133         * toplev.c: Include optabs.h.
33134         (target_reinit): Temporarily restore the global options if another
33135         set of options are in force.
33137 2014-01-07  Jakub Jelinek  <jakub@redhat.com>
33139         PR rtl-optimization/58668
33140         * cfgcleanup.c (flow_find_cross_jump): Don't count
33141         any jumps if dir_p is NULL.  Remove p1 variable, use active_insn_p
33142         to determine what is counted.
33143         (flow_find_head_matching_sequence): Use active_insn_p to determine
33144         what is counted.
33145         (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
33146         counting change.
33147         * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
33148         determine what is counted.
33150         PR tree-optimization/59643
33151         * tree-predcom.c (split_data_refs_to_components): If one dr is
33152         read and one write, determine_offset fails and the write isn't
33153         in the bad component, just put the read into the bad component.
33155 2014-01-07  Mike Stump  <mikestump@comcast.net>
33156             Jakub Jelinek  <jakub@redhat.com>
33158         PR pch/59436
33159         * tree-core.h (struct tree_optimization_option): Change optabs
33160         type from unsigned char * to void *.
33161         * optabs.c (init_tree_optimization_optabs): Adjust
33162         TREE_OPTIMIZATION_OPTABS initialization.
33164 2014-01-06  Jakub Jelinek  <jakub@redhat.com>
33166         PR target/59644
33167         * config/i386/i386.h (struct machine_function): Add
33168         no_drap_save_restore field.
33169         * config/i386/i386.c (ix86_save_reg): Use
33170         !cfun->machine->no_drap_save_restore instead of
33171         crtl->stack_realign_needed.
33172         (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
33173         this function clears frame_pointer_needed.  Set
33174         cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
33175         and DRAP reg is needed.
33177 2014-01-06  Marek Polacek  <polacek@redhat.com>
33179         PR c/57773
33180         * doc/implement-c.texi: Mention that other integer types are
33181         permitted as bit-field types in strictly conforming mode.
33183 2014-01-06  Felix Yang  <fei.yang0953@gmail.com>
33185         * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
33186         is newly allocated.
33188 2014-01-06  Richard Earnshaw  <rearnsha@arm.com>
33190         * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
33192 2014-01-06  Martin Jambor  <mjambor@suse.cz>
33194         PR ipa/59008
33195         * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
33196         to int.
33197         * ipa-prop.c (ipa_print_node_params): Fix indentation.
33199 2014-01-06  Eric Botcazou  <ebotcazou@adacore.com>
33201         PR debug/59350
33202         PR debug/59510
33203         * var-tracking.c (add_stores): Preserve the value of the source even if
33204         we don't record the store.
33206 2014-01-06  Terry Guo  <terry.guo@arm.com>
33208         * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
33210 2014-01-05  Iain Sandoe  <iain@codesourcery.com>
33212         PR bootstrap/59541
33213         * config/darwin.c (darwin_function_section): Adjust return values to
33214         correspond to optimisation changes made in r206070.
33216 2014-01-05  Uros Bizjak  <ubizjak@gmail.com>
33218         * config/i386/i386.c (ix86_data_alignment): Calculate max_align
33219         from prefetch_block tune setting.
33220         (nocona_cost): Correct size of prefetch block to 64.
33222 2014-01-04  Eric Botcazou  <ebotcazou@adacore.com>
33224         * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
33225         (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
33226         used to save the static chain register in the computation of the offset
33227         from which the FP registers need to be restored.
33229 2014-01-04  Jakub Jelinek  <jakub@redhat.com>
33231         PR tree-optimization/59519
33232         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
33233         ICE if get_current_def (current_new_name) is already non-NULL, as long
33234         as it is a phi result of some other phi in *new_exit_bb that has
33235         the same argument.
33237         * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
33238         or vmovdqu* for misaligned_operand.
33239         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
33240         <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
33241         * config/i386/i386.c (ix86_expand_special_args_builtin): Set
33242         aligned_mem for AVX512F masked aligned load and store builtins and for
33243         non-temporal moves.
33245 2014-01-03  Bingfeng Mei  <bmei@broadcom.com>
33247         PR tree-optimization/59651
33248         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
33249         Address range for negative step should be added by TYPE_SIZE_UNIT.
33251 2014-01-03  Andreas Schwab  <schwab@linux-m68k.org>
33253         * config/m68k/m68k.c (handle_move_double): Handle pushes with
33254         overlapping registers also for registers other than the stack pointer.
33256 2014-01-03  Marek Polacek  <polacek@redhat.com>
33258         PR other/59661
33259         * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
33260         __builtin_FILE.
33262 2014-01-03  Jakub Jelinek  <jakub@redhat.com>
33264         PR target/59625
33265         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
33266         asm goto as jump.
33268         * config/i386/i386.md (MODE_SIZE): New mode attribute.
33269         (push splitter): Use <P:MODE_SIZE> instead of
33270         GET_MODE_SIZE (<P:MODE>mode).
33271         (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
33272         (mov -1, reg peephole2): Likewise.
33273         * config/i386/sse.md (*mov<mode>_internal,
33274         <sse>_storeu<ssemodesuffix><avxsizesuffix>,
33275         <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
33276         *<code><mode>3, *andnot<mode>3<mask_name>,
33277         <mask_codefor><code><mode>3<mask_name>): Likewise.
33278         * config/i386/subst.md (mask_mode512bit_condition,
33279         sd_mask_mode512bit_condition): Likewise.
33281 2014-01-02  Xinliang David Li  <davidxl@google.com>
33283         PR tree-optimization/59303
33284         * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
33285         (dump_predicates): Better output format.
33286         (pred_equal_p): New function.
33287         (is_neq_relop_p): Ditto.
33288         (is_neq_zero_form_p): Ditto.
33289         (pred_expr_equal_p): Ditto.
33290         (pred_neg_p): Ditto.
33291         (simplify_pred): Ditto.
33292         (simplify_preds_2): Ditto.
33293         (simplify_preds_3): Ditto.
33294         (simplify_preds_4): Ditto.
33295         (simplify_preds): Ditto.
33296         (push_pred): Ditto.
33297         (push_to_worklist): Ditto.
33298         (get_pred_info_from_cmp): Ditto.
33299         (is_degenerated_phi): Ditto.
33300         (normalize_one_pred_1): Ditto.
33301         (normalize_one_pred): Ditto.
33302         (normalize_one_pred_chain): Ditto.
33303         (normalize_preds): Ditto.
33304         (normalize_cond_1): Remove function.
33305         (normalize_cond): Ditto.
33306         (is_gcond_subset_of): Ditto.
33307         (is_subset_of_any): Ditto.
33308         (is_or_set_subset_of): Ditto.
33309         (is_and_set_subset_of): Ditto.
33310         (is_norm_cond_subset_of): Ditto.
33311         (pred_chain_length_cmp): Ditto.
33312         (convert_control_dep_chain_into_preds): Type change.
33313         (find_predicates): Ditto.
33314         (find_def_preds): Ditto.
33315         (destroy_predicates_vecs): Ditto.
33316         (find_matching_predicates_in_rest_chains): Ditto.
33317         (use_pred_not_overlap_with_undef_path_pred): Ditto.
33318         (is_pred_expr_subset): Ditto.
33319         (is_pred_chain_subset_of): Ditto.
33320         (is_included_in): Ditto.
33321         (is_superset_of): Ditto.
33323 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
33325         Update copyright years.
33327 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
33329         * common/config/arc/arc-common.c, config/arc/arc-modes.def,
33330         config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
33331         config/arc/arc.md, config/arc/arc.opt,
33332         config/arm/arm_neon_builtins.def, config/arm/crypto.def,
33333         config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
33334         config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
33335         config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
33336         config/linux-protos.h, config/linux.c, config/winnt-c.c,
33337         diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
33338         vtable-verify.c, vtable-verify.h: Use the standard form for the
33339         copyright notice.
33341 2014-01-02  Tobias Burnus  <burnus@net-b.de>
33343         * gcc.c (process_command): Update copyright notice dates.
33344         * gcov-dump.c: Ditto.
33345         * gcov.c: Ditto.
33346         * doc/cpp.texi: Bump @copying's copyright year.
33347         * doc/cppinternals.texi: Ditto.
33348         * doc/gcc.texi: Ditto.
33349         * doc/gccint.texi: Ditto.
33350         * doc/gcov.texi: Ditto.
33351         * doc/install.texi: Ditto.
33352         * doc/invoke.texi: Ditto.
33354 2014-01-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
33356         * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
33358 2014-01-01  Jakub Jelinek  <jakub@redhat.com>
33360         * config/i386/sse.md (*mov<mode>_internal): Guard
33361         EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
33363         PR rtl-optimization/59647
33364         * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
33365         new_rtx into UNSIGNED_FLOAT rtxes.
33367 Copyright (C) 2014 Free Software Foundation, Inc.
33369 Copying and distribution of this file, with or without modification,
33370 are permitted in any medium without royalty provided the copyright
33371 notice and this notice are preserved.