gcc/ChangeLog:
[official-gcc.git] / gcc / ChangeLog
blob9319763a2c4ea4a03a5123a2fe5b1121ca768307
1 2014-10-22  Dehao Chen  <dehao@google.com>
3         * auto-profile.c: Change order of header files.
5 2014-10-22  Guozhi Wei  <carrot@google.com>
7         PR tree-optimization/63530
8         tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Set
9         pointer alignment according to DR_MISALIGNMENT.
11 2014-10-22  David Malcolm  <dmalcolm@redhat.com>
13         * ipa-icf.c (ipa_icf_driver): Set optimizer to NULL when done.
15 2014-10-22  Andrew MacLeod  <amacleod@redhat.com>
17         * cfgbuild.h: New.  Add prototypes for cfgbuild.c.
18         * cfgcleanup.h: New.  Add prototypes for cfgcleanup.c.
19         * cfgloopmanip.h: New.  Add prototypes for cfgloopmanip.c.
20         * dominance.h: New.  Add prototypes for dominance.c.
21         * cfgloop.h: Move some prototypes/enum to cfgloopmanip.h and include it.
22         * cfghooks.h: (struct profile_record) Relocate here.
23         Relocate 2 prototypes from basic-block.h.
24         * basic-block.h: Move prototypes and struct to new header files.
25         Include cfgbuild.h, cfgcleanup.h, and dominance.h.
26         * rtl.h: Move a few prototypes to new header files.
27         * cfgcleanup.c (merge_memattrs): Make static.
28         * genopinit.c (main): Add predict.h to list of includes.
29         * predict.h: Update prototype list to match predict.c.
30         * predict.c (maybe_hot_count_p): Export.
31         (cgraph_edge::maybe_hot_p): Move to cgraph.c.
32         (cgraph_node::optimize_for_size_p): Move to cgraph.h.
33         * cgraph.h (cgraph_node::optimize_for_size_p): Relocate here.
34         * cgraph.c (cgraph_edge::maybe_hot_p): Relocate here.
35         * profile.h: Adjust prototypes.
36         * ifcvt.h: New.  Relocate struct ce_if_block here.
37         * ifcvt.c: Include ifcvt.h.
38         * config/frv/frv.c: Include ifcvt.h.
39         * config/frv/frv-protos.h: Add 'struct' to ce_if_block * parameters.
41 2014-10-22  Richard Sandiford  <richard.sandiford@arm.com>
43         * lra.c (lra): Remove call to recog_init.
44         * config/i386/i386.md (preferred_for_speed): New attribute
45         (*float<SWI48:mode><MODEF:mode>2_sse): Override it instead of
46         "enabled".  Remove check for sched1.
48 2014-10-22  Richard Sandiford  <richard.sandiford@arm.com>
50         * recog.h (recog_data_d): Remove enabled_alternatives.
51         * recog.c (extract_insn): Don't set it.
52         * reload.c (find_reloads): Call get_enabled_alternatives.
54 2014-10-22  Richard Sandiford  <richard.sandiford@arm.com>
56         * recog.h (constrain_operands): Add an alternative_mask parameter.
57         (constrain_operands_cached): Likewise.
58         (get_preferred_alternatives): Declare new form.
59         * recog.c (get_preferred_alternatives): New bb-taking instance.
60         (constrain_operands): Take the set of available alternatives as
61         a parameter.
62         (check_asm_operands, insn_invalid_p, extract_constrain_insn)
63         (extract_constrain_insn_cached): Update calls to constrain_operands.
64         * caller-save.c (reg_save_code): Likewise.
65         * ira.c (setup_prohibited_mode_move_regs): Likewise.
66         * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
67         * ree.c (combine_reaching_defs): Likewise.
68         * reload.c (can_reload_into): Likewise.
69         * reload1.c (reload, reload_as_needed, inc_for_reload): Likewise.
70         (gen_reload_chain_without_interm_reg_p, emit_input_reload_insns)
71         (emit_insn_if_valid_for_reload): Likewise.
72         * reorg.c (fill_slots_from_thread): Likewise.
73         * config/i386/i386.c (ix86_attr_length_address_default): Likewise.
74         * config/pa/pa.c (pa_can_combine_p): Likewise.
75         * config/rl78/rl78.c (insn_ok_now): Likewise.
76         * config/sh/sh.md (define_peephole2): Likewise.
77         * final.c (final_scan_insn): Update call to constrain_operands_cached.
79 2014-10-22  Richard Sandiford  <richard.sandiford@arm.com>
81         * doc/md.texi: Document "preferred_for_size" and "preferred_for_speed"
82         attributes.
83         * genattr.c (main): Handle "preferred_for_size" and
84         "preferred_for_speed" in the same way as "enabled".
85         * recog.h (bool_attr): New enum.
86         (target_recog): Replace x_enabled_alternatives with x_bool_attr_masks.
87         (get_preferred_alternatives, check_bool_attrs): Declare.
88         * recog.c (have_bool_attr, get_bool_attr, get_bool_attr_mask_uncached)
89         (get_bool_attr_mask, get_preferred_alternatives, check_bool_attrs):
90         New functions.
91         (get_enabled_alternatives): Use get_bool_attr_mask.
92         * ira-costs.c (record_reg_classes): Use get_preferred_alternatives
93         instead of recog_data.enabled_alternatives.
94         * ira.c (ira_setup_alts): Likewise.
95         * postreload.c (reload_cse_simplify_operands): Likewise.
96         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
97         * ira-lives.c (preferred_alternatives): New variable.
98         (process_bb_node_lives): Set it.
99         (check_and_make_def_conflict, make_early_clobber_and_input_conflicts)
100         (single_reg_class, ira_implicitly_set_insn_hard_regs): Use it instead
101         of recog_data.enabled_alternatives.
102         * lra-int.h (lra_insn_recog_data): Replace enabled_alternatives
103         to preferred_alternatives.
104         * lra-constraints.c (process_alt_operands): Update accordingly.
105         * lra.c (lra_set_insn_recog_data): Likewise.
106         (lra_update_insn_recog_data): Assert check_bool_attrs.
108 2014-10-22  Richard Sandiford  <richard.sandiford@arm.com>
110         * recog.h (extract_constrain_insn): Declare.
111         * recog.c (extract_constrain_insn): New function.
112         * lra.c (check_rtl): Use it.
113         * postreload.c (reload_cse_simplify_operands): Likewise.
114         * reg-stack.c (check_asm_stack_operands): Likewise.
115         (subst_asm_stack_regs): Likewise.
116         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
117         * regrename.c (build_def_use): Likewise.
118         * sel-sched.c (get_reg_class): Likewise.
119         * config/arm/arm.c (note_invalid_constants): Likewise.
120         * config/s390/predicates.md (execute_operation): Likewise.
122 2014-10-22  Jakub Jelinek  <jakub@redhat.com>
123             Yury Gribov  <y.gribov@samsung.com>
125         * common.opt (flag_sanitize_recover): New variable.
126         (fsanitize-recover): Remove Var/Init, deprecate.
127         (fsanitize-recover=): New option.
128         * doc/invoke.texi (fsanitize-recover): Update docs.
129         * opts.c (finish_options): Use opts->x_flag_sanitize
130         instead of flag_sanitize.  Prohibit -fsanitize-recover
131         for anything besides UBSan.  Formatting.
132         (common_handle_option): Handle OPT_fsanitize_recover_
133         and OPT_fsanitize_recover.  Use opts->x_flag_sanitize
134         instead of flag_sanitize.
135         * asan.c (pass_sanopt::execute): Fix up formatting.
136         * ubsan.c (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn,
137         ubsan_expand_objsize_ifn, ubsan_build_overflow_builtin,
138         instrument_bool_enum_load, ubsan_instrument_float_cast,
139         instrument_nonnull_arg, instrument_nonnull_return): Check
140         bits in flag_sanitize_recover bitmask instead of
141         flag_sanitize_recover as bool flag.
143 2014-10-22  Jiong Wang <jiong.wang@arm.com>
145         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add missing '\'.
147 2014-10-22  Renlin Li <renlin.li@arm.com>
149         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define
150         __ARM_FEATURE_IDIV__.
152 2014-10-22  Richard Biener  <rguenther@suse.de>
154         * Makefile.in (s-match): Adjust dependencies to only catch
155         match.pd.
157 2014-10-22  Richard Biener  <rguenther@suse.de>
158         Prathamesh Kulkarni  <bilbotheelffriend@gmail.com>
160         * Makefile.in (OBJS): Add gimple-match.o and generic-match.o.
161         (MOSTLYCLEANFILES): Add gimple-match.c and generic-match.c.
162         (gimple-match.c): Generate by triggering s-match.
163         (generic-match.c): Likewise.
164         (s-match): Rule to build gimple-match.c and generic-match.c
165         by running the genmatch generator program.
166         (build/hash-table.o): Dependencies to build hash-table.c for the host.
167         (build/genmatch.o): Dependencies to build genmatch.
168         (genprog): Add match.
169         (build/genmatch): Likewise.
170         (TEXI_GCCINT_FILES): Add match-and-simplify.texi.
171         * generic-match-head.c: New file.
172         * gimple-match-head.c: Likewise.
173         * gimple-match.h: Likewise.
174         * genmatch.c: Likewise.
175         * match.pd: Likewise.
176         * builtins.h (fold_builtin_n): Export.
177         * builtins.c (fold_builtin_n): Likewise.
178         * gimple-fold.h (gimple_build): Declare various overloads.
179         (gimple_simplify): Likewise.
180         (gimple_convert): Re-implement in terms of gimple_build.
181         * gimple-fold.c (gimple_convert): Remove.
182         (gimple_build): New functions.
183         * doc/match-and-simplify.texi: New file.
184         * doc/gccint.texi: Add menu item Match and Simplify and include
185         match-and-simplify.texi.
187 2014-10-22  Jakub Jelinek  <jakub@redhat.com>
189         PR target/63594
190         * config/i386/i386.c (ix86_expand_vector_init_duplicate): For
191         V{8HI,16QI,16HI,32QI}mode call ix86_vector_duplicate_value
192         even for just TARGET_AVX2, not only for
193         TARGET_AVX512VL && TARGET_AVX512BW.  For V{32HI,64QI}mode,
194         call ix86_vector_duplicate_value only if TARGET_AVX512BW,
195         otherwise build it using concatenation of 256-bit
196         broadcast.
197         * config/i386/sse.md (AVX_VEC_DUP_MODE): Moved after
198         avx512 broadcast patterns.
199         (vec_dup<mode>): Likewise.  For avx2 use
200         v<sseintprefix>broadcast<bcstscalarsuff> instead of
201         vbroadcast<ssescalarmodesuffix>.
202         (AVX2_VEC_DUP_MODE): New mode iterator.
203         (*vec_dup<mode>): New TARGET_AVX2 define_insn with
204         AVX2_VEC_DUP_MODE iterator, add a splitter for that.
206         PR target/63542
207         * config/i386/i386.c (ix86_pic_register_p): Also return
208         true if x is a hard register with ORIGINAL_REGNO equal to
209         pic_offset_table_rtx pseudo REGNO.
210         (ix86_delegitimize_address): For ix86_use_pseudo_pic_reg ()
211         after reload, subtract GOT_SYMBOL_NAME symbol if possible.
213 2014-10-22  Alan Modra  <amodra@gmail.com>
215         * gengtype.h (obstack_chunk_alloc, obstack_chunk_free): Remove cast.
216         * coretypes.h (obstack_chunk_alloc, obstack_chunk_free): Likewise.
217         (gcc_obstack_init): Use obstack_specify_allocation in place of
218         _obstack_begin.
219         * genautomata.c (next_sep_el): Cast result of obstack_base to (char *).
220         (regexp_representation): Likewise.
221         * godump.c (go_output_type): Likewise.
223 2014-10-21  John David Anglin  <danglin@gcc.gnu.org>
225         * config.gcc: Remove MASK_JUMP_IN_DELAY from target_cpu_default2.
226         * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_JUMP_IN_DELAY.
227         * config/pa/pa.opt (mjump-in-delay): Ignore option.  Update comment.
229 2014-10-21 Manuel López-Ibáñez  <manu@gcc.gnu.org>
231         * doc/invoke.texi (pedantic-errors): Explain better.
233 2014-10-21  Joern Rennecke  <joern.rennecke@embecosm.com>
234             Vidya Praveen <vidya.praveen@atmel.com>
235             Praveen Kumar Kaushik <Praveen_Kumar.Kaushik@atmel.com>
236             Senthil Kumar Selvaraj <Senthil_Kumar.Selvaraj@atmel.com>
237             Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
239         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Don't define
240         __MEMX for avrtiny.
241         * config/avr/avr.c (avr_insert_attributes): Reject __memx for avrtiny.
242         (avr_nonconst_pointer_addrspace): Likewise.
243         * config/avr/avr.h (AVR_HAVE_LPM): Define.
245         Added AVRTINY architecture to avr target.
246         * config/avr/avr-arch.h (avr_arch): Added AVRTINY architecture.
247         (base_arch_s): member added for AVRTINY architecture.
248         * config/avr/avr.c: Added TINY_ADIW, TINY_SBIW macros as AVRTINY
249         alternate for adiw/sbiw instructions. Added AVR_TMP_REGNO and
250         AVR_ZERO_REGNO macros for tmp and zero registers. Replaced TMP_REGNO
251         and ZERO_REGNO occurrences by AVR_TMP_REGNO and AVR_ZERO_REGNO
252         respectively. LAST_CALLEE_SAVED_REG macro added for the last register
253         in callee saved register list.
254         (avr_option_override): CCP address updated for AVRTINY.
255         (avr_init_expanders): tmp and zero rtx initialized as per arch.
256         Reset avr_have_dimode if AVRTINY.
257         (sequent_regs_live): Use LAST_CALLEE_SAVED_REG instead magic number.
258         (emit_push_sfr): Use AVR_TMP_REGNO for tmp register number.
259         (avr_prologue_setup_frame): Don't minimize prologue if AVRTINY.
260         Use LAST_CALLEE_SAVED_REG to refer last callee saved register.
261         (expand_epilogue): Likewise.
262         (avr_print_operand): Print CCP address in case of AVRTINY also.
263         <TBD>bad address
264         (function_arg_regno_p): Check different register list for arguments
265         if AVRTINY.
266         (init_cumulative_args): Check for AVRTINY to update number of argument
267         registers.
268         (tiny_valid_direct_memory_access_range): New function. Return false if
269         direct memory access range is not in accepted range for AVRTINY.
270         (avr_out_movqi_r_mr_reg_disp_tiny): New function to handle register
271         indirect load (with displacement) for AVRTINY.
272         (out_movqi_r_mr): Updated instruction length for AVRTINY. Call
273         avr_out_movqi_r_mr_reg_disp_tiny for load from reg+displacement.
274         (avr_out_movhi_r_mr_reg_no_disp_tiny): New function to handle register
275         indirect load (no displacement) for AVRTINY.
276         (avr_out_movhi_r_mr_reg_disp_tiny): New function to handle register
277         indirect load (with displacement) for AVRTINY.
278         (avr_out_movhi_r_mr_pre_dec_tiny): New function to handle register
279         indirect load for pre-decrement address.
280         (out_movhi_r_mr): In case of AVRTINY, call tiny register indirect load
281         functions. Update instruction length for AVRTINY.
282         (avr_out_movsi_r_mr_reg_no_disp_tiny): New function. Likewise, for
283         SImode.
284         (avr_out_movsi_r_mr_reg_disp_tiny): New function. Likewise, for SImode.
285         (out_movsi_r_mr): Likewise, for SImode.
286         (avr_out_movsi_mr_r_reg_no_disp_tiny): New function to handle register
287         indirect store (no displacement) for AVRTINY.
288         (avr_out_movsi_mr_r_reg_disp_tiny): New function to handle register
289         indirect store (with displacement) for AVRTINY.
290         (out_movsi_mr_r): Emit out insn for IO address store. Update store
291         instruction's size for AVRTINY. For AVRTINY, call tiny SImode indirect
292         store functions.
293         (avr_out_load_psi_reg_no_disp_tiny): New function to handle register
294         indirect load (no displacement) for PSImode in AVRTINY.
295         (avr_out_load_psi_reg_disp_tiny): New function to handle register
296         indirect load (with displacement) for PSImode in AVRTINY.
297         (avr_out_load_psi): Call PSImode register indirect load functions for
298         AVRTINY. Update instruction length for AVRTINY.
299         (avr_out_store_psi_reg_no_disp_tiny): New function to handle register
300         indirect store (no displacement) for PSImode in AVRTINY.
301         (avr_out_store_psi_reg_disp_tiny): New function to handle register
302         indirect store (with displacement) for PSImode in AVRTINY.
303         (avr_out_store_psi): Update instruction length for AVRTINY. Call tiny
304         register indirect store functions for AVRTINY.
305         (avr_out_movqi_mr_r_reg_disp_tiny): New function to handle QImode
306         register indirect store (with displacement) for AVRTINY.
307         (out_movqi_mr_r): Update instruction length for AVRTINY. Call tiny
308         register indirect store function for QImode in AVRTINY.
309         (avr_out_movhi_mr_r_xmega): Update instruction length for AVRTINY.
310         (avr_out_movhi_mr_r_reg_no_disp_tiny): New function to handle register
311         indirect store (no displacement) for HImode in AVRTINY.
312         (avr_out_movhi_mr_r_reg_disp_tiny): New function to handle register
313         indirect store (with displacement) for HImode in AVRTINY.
314         (avr_out_movhi_mr_r_post_inc_tiny): New function to handle register
315         indirect store for post-increment address in HImode.
316         (out_movhi_mr_r): Update instruction length for AVRTINY. Call tiny
317         register indirect store function for HImode in AVRTINY.
318         (avr_out_compare): Use TINY_SBIW/ TINY_ADIW in place of sbiw/adiw
319         in case of AVRTINY.
320         (order_regs_for_local_alloc): Updated register allocation order for
321         AVRTINY.
322         (avr_conditional_register_usage): New function. It is a target hook
323         (TARGET_CONDITIONAL_REGISTER_USAGE) function which updates fixed, call
324         used registers list and register allocation order for AVRTINY.
325         (avr_return_in_memory): Update return value size for AVRTINY.
326         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Added builtin macros
327         for AVRTINY arch and tiny program memory base address.
328         * config/avr/avr-devices.c (avr_arch_types): Added AVRTINY arch.
329         (avr_texinfo): Added description for AVRTINY arch.
330         * config/avr/avr.h: Added macro to identify AVRTINY arch. Updated
331         STATIC_CHAIN_REGNUM for AVRTINY.
332         * config/avr/avr-mcus.def: Added AVRTINY arch devices.
333         * config/avr/avr.md: Added constants for tmp/ zero registers in
334         AVRTINY. Attributes for AVRTINY added.
335         (mov<mode>): Move src/ dest address to register if it is not in AVRTINY
336         memory access range.
337         (mov<mode>_insn): Avoid QImode direct load for AVRTINY if address not
338         in AVRTINY memory access range.
339         (*mov<mode>): Likewise for HImode and SImode.
340         (*movsf): Likewise for SFmode.
341         (delay_cycles_2): Updated instructions to be emitted as AVRTINY does
342         not have sbiw.
343         * config/avr/avr-protos.h: Added function prototype for
344         tiny_valid_direct_memory_access_range.
345         * config/avr/avr-tables.opt: Regenerate.
346         * gcc/config/avr/t-multilib: Regenerate.
347         * doc/avr-mmcu.texi: Regenerate.
349 2014-10-21  Andrew Pinski  <apinski@cavium.com>
351         * doc/invoke.texi (AARCH64/mtune): Document thunderx as an
352         available option also.
353         * config/aarch64/aarch64-cost-tables.h: New file.
354         * config/aarch64/aarch64-cores.def (thunderx): New core.
355         * config/aarch64/aarch64-tune.md: Regenerate.
356         * config/aarch64/aarch64.c: Include aarch64-cost-tables.h instead
357         of config/arm/aarch-cost-tables.h.
358         (thunderx_regmove_cost): New variable.
359         (thunderx_tunings): New variable.
361 2014-10-21  Dehao Chen  <dehao@google.com>
363         * auto-profile.c: New file.
364         * auto-profile.h: New file.
365         * basic-block.h (maybe_hot_count_p): New export func.
366         (add_working_set): New export func.
367         * gcov-io.h (GCOV_TAG_AFDO_FILE_NAMES): New tag.
368         (GCOV_TAG_AFDO_FUNCTION): Likewise.
369         (GCOV_TAG_AFDO_WORKING_SET): Likewise.
370         * opts.c (enable_fdo_optimizations): New func.
371         (common_handle_option): Handle -fauto-profile flag.
372         * ipa-inline.c (want_early_inline_function_p): Iterative-einline.
373         (class pass_early_inline): Export early_inliner.
374         (early_inliner): Likewise.
375         (pass_early_inline::execute): Likewise.
376         * ipa-inline.h (early_inliner): Likewise.
377         * predict.c (maybe_hot_count_p): New export func.
378         (counts_to_freqs): AutoFDO logic.
379         (rebuild_frequencies): Likewise.
380         * tree-profile.c (pass_ipa_tree_profile::gate): Likewise.
381         * profile.c (add_working_set): New func.
382         * Makefile.in (auto-profile.o): New object file.
383         * passes.def (pass_ipa_auto_profile): New pass.
384         * tree-ssa-live.c (remove_unused_scope_block_p): AutoFDO logic.
385         * tree-pass.h (make_pass_ipa_auto_profile): New pass.
386         * toplev.c (compile_file): AutoFDO logic.
387         * doc/invoke.texi (-fauto-profile): New doc.
388         * coverage.c (coverage_init): AutoFDO logic.
389         * common.opt (-fauto-profile): New flag.
390         * timevar.def (TV_IPA_AUTOFDO): New tag.
391         * value-prof.c (gimple_alloc_histogram_value): New export func.
392         (check_ic_target): Likewise.
393         * value-prof.h (gimple_alloc_histogram_value): Likewise.
394         (check_ic_target): Likewise.
396 2014-10-21  David Malcolm  <dmalcolm@redhat.com>
398         * cgraph.c (cgraph_c_finalize): New function.
399         * cgraph.h (cgraph_c_finalize): New prototype.
400         (cgraphunit_c_finalize): New prototype.
401         * cgraphunit.c (first_analyzed): Move from analyze_functions
402         to file-scope.
403         (first_analyzed_var): Likewise.
404         (analyze_functions): Move static variables into file-scope.
405         (cgraphunit_c_finalize): New function.
406         * diagnostic.c (diagnostic_finish): Free the memory for
407         context->classify_diagnostic and context->printer, running the
408         destructor for the latter.
409         (bt_stop): Use toplev::main.
410         * dwarf2out.c (dwarf2out_finalize): New function.
411         * dwarf2out.h (dwarf2out_c_finalize): New prototype.
412         * gcse.c (gcse_c_finalize): New function.
413         * gcse.h (gcse_c_finalize): New prototype.
414         * ggc-page.c (init_ggc): Make idempotent.
415         * input.c (input_location): Initialize to UNKNOWN_LOCATION.
416         * ipa-cp.c (ipa_cp_c_finalize): New function.
417         * ipa-prop.h (ipa_cp_c_finalize): New prototype.
418         * ipa-pure-const.c (function_insertion_hook_holder): Move to be
419         a field of class pass_ipa_pure_const.
420         (node_duplication_hook_holder): Likewise.
421         (node_removal_hook_holder): Likewise.
422         (register_hooks): Convert to method...
423         (pass_ipa_pure_const::register_hooks): ...here, converting
424         static variable init_p into...
425         (pass_ipa_pure_const::init_p): ...new field.
426         (pure_const_generate_summary): Update invocation of
427         register_hooks to invoke as a method of current_pass.
428         (pure_const_read_summary): Likewise.
429         (propagate): Convert to...
430         (pass_ipa_pure_const::execute): ...method.
431         * ipa-reference.c (ipa_init): Move static bool init_p from here
432         to...
433         (ipa_init_p): New file-scope variable, so that it can be reset
434         when repeatedly invoking the compiler within one process by...
435         (ipa_reference_c_finalize): New function.
436         * ipa-reference.h (ipa_reference_c_finalize): New.
437         * main.c (main): Replace invocation of toplev_main with
438         construction of a toplev instance, and call its "main" method.
439         * params.c (global_init_params): Add an assert that
440         params_finished is false.
441         (params_c_finalize): New.
442         * params.h (params_c_finalize): New.
443         * passes.c (execute_ipa_summary_passes): Set "current_pass" before
444         invoking generate_summary, for the benefit of pass_ipa_pure_const.
445         (ipa_write_summaries_2): Assign "pass" to "current_pass" global
446         before calling write_summary hook.
447         (ipa_write_optimization_summaries_1): Likewise when calling
448         write_optimization_summary hook.
449         (ipa_read_summaries_1): Likewise for read_summary hook.
450         (ipa_read_optimization_summaries_1): Likewise for
451         read_optimization_summary hook.
452         (execute_ipa_stmt_fixups): Likewise.
453         * stringpool.c (init_stringpool): Clean up if we're called more
454         than once.
455         * timevar.c (timevar_init): Ignore repeated calls.
456         * toplev.c: Include "dwarf2out.h", "ipa-reference.h", "gcse.h",
457         "ipa-prop.h".
458         (general_init): Reset "input_location" to UNKNOWN_LOCATION.
459         (initialize_rtl): Move static local "initialized_once"
460         into file scope, and rename to...
461         (rtl_initialized): New variable.
462         (do_compile): Move timevar initialization from here to
463         toplev::start_timevars.
464         (toplev::toplev, toplev::~toplev, toplev::start_timevars,
465         toplev::finalize): New functions.
466         (toplev_main): Rename to...
467         (toplev::main): ...this.
468         * toplev.h (class toplev): New class.
470 2014-10-21  Andrew MacLeod  <amacleod@redhat.com>
472         * loop-doloop.c: Include loop-unroll.h.
474 2014-10-21  Andrew MacLeod  <amacleod@redhat.com>
476         * cfg.h: New.  Header file for cfg.c.
477         * cfganal.h: New.  Header file for cfganal.c.
478         * lcm.h: New.  Header file for lcm.c.
479         * loop-unroll.h: New.  Header file for loop-unroll.h.
480         * cfgloop.h: (unroll_loops): Remove prototype.
481         * basic-block.h: Move prototypes and structs to new header files.
482         Include cfg.h, cfganal.h, and lcm.h.
483         * loop-init.c: Include loop-unroll.h.
484         * loop-unroll.c: (referenced_in_one_insn_in_loop_p): Make static.
485         * modulo-sched.c: Include loop-unroll.h.
487 2014-10-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
489         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Fix creation of
490         MARKER_BYTE_UNKNOWN markers when handling casts.
492 2014-10-21  Richard Biener  <rguenther@suse.de>
494         * tree-ssa-phiopt.c (value_replacement): Properly verify we
495         are the non-singleton PHI.
497 2014-10-21  Jakub Jelinek  <jakub@redhat.com>
499         PR tree-optimization/63563
500         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Bail out
501         if either dra or drb stmts are not normal loads/stores.
503 2014-10-21  Ilya Tocar  <ilya.tocar@intel.com>
505         * config/i386/i386.c (expand_vec_perm_1): Fix
506         expand_vec_perm_palignr case.
507         * config/i386/sse.md (<ssse3_avx2>_palignr<mode>_mask): Use
508         VI1_AVX512.
510 2014-10-21  Zhenqiang Chen  <zhenqiang.chen@arm.com>
512         * cfgloopanal.c (seq_cost): Delete.
513         * rtl.h (seq_cost): New prototype.
514         * rtlanal.c (seq_cost): New function.
515         * tree-ssa-loop-ivopts.c (seq_cost): Delete.
517 2014-10-20  Andrew MacLeod  <amacleod@redhat.com>
519         * cfgrtl.h: New.  Add prototypes for cfgrtl.c.
520         * basic-block.h: Remove prototypes for cfgrtl.c.
521         * cfghooks.h (cfg_layout_initialize, cfg_layout_finalize): Move
522         prototypes to cfgrtl.h.
523         * profile.h (profile_info): Add extern export declaration.
524         * rtl.h: Remove prototypes for cfgrtl.h.
525         * tree-cfg.h (gt_ggc_mx, gt_pch_nx): Move prototypes to here.
526         * ipa-inline.c: Include profile.h.
527         * loop-unroll.c: Ditto.
528         * modulo-sched.c: Ditto.
529         * postreload-gcse.c: Ditto.
530         * predict.c: Ditto.
531         * sched-ebb.c: Ditto.
532         * sched-rgn.c: Ditto.
533         * tracer.c: Ditto.
534         * tree-ssa-loop-ivcanon.c: Ditto.
536 2014-10-20  Richard Biener  <rguenther@suse.de>
538         * tree-vect-slp.c (vect_get_and_check_slp_defs): Try swapping
539         operands to get a def operand kind match.  Signal mismatches
540         to the parent so we can try swapping its operands.
541         (vect_build_slp_tree): Try swapping operands if they have
542         a mismatched operand kind.
544 2014-10-20  Alan Modra  <amodra@gmail.com>
546         PR debug/60655
547         * simplify-rtx.c (simplify_plus_minus): Delete unused "input_ops".
548         Increase "ops" array size.  Correct array size tests.  Init
549         n_constants in loop.  Break out of innermost loop when finding
550         a trivial CONST expression.
552 2014-10-20  Martin Liska  <mliska@suse.cz>
554         PR ipa/63583
555         * ipa-icf-gimple.c (func_checker::compare_gimple_asm):
556         Gimple tempate string is compared.
558 2014-10-20  Uros Bizjak  <ubizjak@gmail.com>
560         * varasm.c (const_alias_set): Remove.
561         (init_varasm_once): Remove initialization of const_alias_set.
562         (build_constant_desc): Do not set alias set to const_alias_set.
564 2014-10-19  Ilya Verbin  <ilya.verbin@intel.com>
566         * configure: Regenerate.
567         * configure.ac: Move the test for section attribute specifier "e" in GAS
568         out to all i[34567]86-*-* | x86_64-*-* targets and add --fatal-warnings.
569         * langhooks.c (lhd_begin_section): Set SECTION_EXCLUDE flag.
570         * varasm.c (default_elf_asm_named_section): Guard SECTION_EXCLUDE with
571         ifdef HAVE_GAS_SECTION_EXCLUDE.
573 2014-10-19  Andreas Schwab  <schwab@linux-m68k.org>
575         * doc/md.texi (RTL Template) [match_scratch]: Correct equivalent
576         match_operand expression.
578 2014-10-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
579             David Edelsohn  <dje.gcc@gmail.com>
581         * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv): New
582         function.
583         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
585 2014-10-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
587         * doc/invoke.texi (Options to Request or Suppress Warnings):
588         Explain options precedence.
589         (Wtrampolines): Do not indent paragraph.
591 2014-10-18  John David Anglin  <danglin@gcc.gnu.org>
593         * doc/invoke.texi: Update documentation of hppa -mjump-in-delay option.
594         * config/pa/pa-protos.h (pa_following_call): Delete declaration.
595         (pa_jump_in_call_delay): Likewise.
596         * config/pa/pa.c (pa_option_override): Remove jump in call delay
597         override.
598         (pa_output_millicode_call): Remove support for jump in call delay.
599         (pa_output_call): Likewise.
600         (pa_jump_in_call_delay): Delete.
601         (pa_following_call): Likewise.
602         * config/pa/pa.md (in_call_delay): Remove jump in delay check.
603         (uncond_branch): Remove following call check from attribute length.
605 2014-10-18  Oleg Endo  <olegendo@gcc.gnu.org>
607         PR target/53513
608         * config/sh/sh-modes.def (PSI): Remove.
609         * config/sh/sh-protos.h (get_fpscr_rtx): Remove.
610         * config/sh/sh.c (fpscr_rtx, get_fpscr_rtx): Remove.
611         (sh_reorg): Remove commented out FPSCR code.
612         (fpscr_set_from_mem): Use SImode instead of PSImode.  Emit lds_fpscr
613         insn instead of move insn.
614         (sh_hard_regno_mode_ok): Return SImode for FPSCR.
615         (sh_legitimate_address_p, sh_legitimize_reload_address): Remove PSImode
616         handling.
617         (sh_emit_mode_set): Emit lds_fpscr and sts_fpscr insns.
618         (sh1_builtin_p): Uncomment.
619         (SH_BLTIN_UV 25, SH_BLTIN_VU 26): New macros.
620         (bdesc): Add __builtin_sh_get_fpscr and __builtin_sh_set_fpscr.
621         * config/sh/sh/predicates.md (fpscr_operand): Simplify.
622         (fpscr_movsrc_operand, fpscr_movdst_operand): New predicates.
623         (general_movsrc_operand, general_movdst_operand): Disallow
624         fpscr_operand.
625         * config/sh/sh.md (FPSCR_FR): New constant.
626         (push_fpscr): Emit sts_fpscr insn.
627         (pop_fpscr): Emit lds_fpscr_insn.
628         (movsi_ie): Disallow FPSCR operands.
629         (fpu_switch, unnamed related split, extend_psi_si,
630         truncate_si_psi): Remove insns.
631         (lds_fpscr, sts_fpscr): New insns.
632         (toggle_sz, toggle_pr): Use SImode for FPSCR_REG instead of PSImode.
634 2014-10-17  Eric Botcazou  <ebotcazou@adacore.com>
636         * ipa-inline-transform.c (master_clone_with_noninline_clones_p): New.
637         (clone_inlined_nodes): Do not overwrite the clone if above predicate
638         returns true.
640 2014-10-17  Ilya Tocar  <ilya.tocar@intel.com>
642         * config/i386/i386.c (MAX_VECT_LEN): Move earlier.
643         (expand_vec_perm_d): Ditto.
644         (ix86_expand_vec_perm_vpermi2): Handle V8HImode, V16HImode, V32HImode,
645         V32HImode, V4SImode, V8SImode, V4SFmode, V8SFmode, V2DImode, V4DImode,
646         V4DFmode.
647         (ix86_expand_vec_perm): Update call to ix86_expand_vec_perm_vpermi2.
648         (ix86_expand_sse_unpack): Handle V64QImode.
649         (expand_vec_perm_blend): Update conditions for TARGET, handle
650         V8DFmode, V16SFmode, V32HImode, V64QImode, V16SImode, V8DImode.
651         (expand_vec_perm_pshufb): Handle V64QImode.
652         (expand_vec_perm_1): Handle V64QImode, V32HImode, V16SImode, V16SFmode,
653         V8DFmode, V8DImode, V4DFmode, V2DFmode, V8SFmode, V4SFmode.
654         (ix86_expand_vec_perm_const_1): Call  ix86_expand_vec_perm_vpermi2.
655         (ix86_vectorize_vec_perm_const_ok): Handle V32HImode, V64QImode.
656         (ix86_expand_vecop_qihi): Handle V64QImode.
657         * config/i386/sse.md (define_mode_iterator VI1_AVX512): New.
658         (define_mode_iterator VEC_PERM_AVX2): Add V32HI.
659         (define_mode_iterator VEC_PERM_CONST): Add V32HI.
660         (define_insn "<ssse3_avx2>_pshufb<mode>3<mask_name>"): Add masking.
661         (mul<mode>3): Use VI1_AVX512.
662         (<sse2_avx2>_packsswb): Ditto.
663         (<sse2_avx2>_packuswb): Ditto.
664         (<ssse3_avx2>_pshufb<mode>3): Ditto.
665         (<shift_insn><mode>3): Ditto.
667 2014-10-17  Kirill Yukhin  <kirill.yukhin@intel.com>
669         * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Refactor
670         conditions to fix bootstrap.
672 2014-10-17  Andrew MacLeod  <amacleod@redhat.com>
674         gcc-plugin.h:  Add tm.h and flattened includes from function.h.
676 2014-10-17  Alexander Ivchenko  <alexander.ivchenko@intel.com>
677             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
678             Anna Tikhonova  <anna.tikhonova@intel.com>
679             Ilya Tocar  <ilya.tocar@intel.com>
680             Andrey Turetskiy  <andrey.turetskiy@intel.com>
681             Ilya Verbin  <ilya.verbin@intel.com>
682             Kirill Yukhin  <kirill.yukhin@intel.com>
683             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
685         * config/i386/i386.c (ix86_expand_vector_init_duplicate): Handle V64QI
686         and V32HI modes, update V8HI, V16QI, V32QI modes handling.
687         (ix86_expand_vector_init_general): Handle V64QI and V32HI modes.
688         * config/i386/sse.md (define_mode_iterator VI48F_512): Rename to ...
689         (define_mode_iterator VF48_I1248): ... this. Extend to AVX-512 modes.
690         (define_expand "vec_init<mode>"): Use VF48_I1248.
692 2014-10-17  Alexander Ivchenko  <alexander.ivchenko@intel.com>
693             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
694             Anna Tikhonova  <anna.tikhonova@intel.com>
695             Ilya Tocar  <ilya.tocar@intel.com>
696             Andrey Turetskiy  <andrey.turetskiy@intel.com>
697             Ilya Verbin  <ilya.verbin@intel.com>
698             Kirill Yukhin  <kirill.yukhin@intel.com>
699             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
701         * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Extend
702         expand_sse2_mulvxdi3.
704 2014-10-17  Richard Biener  <rguenther@suse.de>
706         * fold-const.c (fold_comparison): Remove redundant constant
707         folding and operand swapping.
708         (fold_binary_loc): Do comparison operand swapping here.
709         (fold_ternary_loc): Canonicalize operand order for
710         commutative ternary operations.
711         * tree.c (commutative_ternary_tree_code): Add DOT_PROD_EXPR
712         and FMA_EXPR.
714 2014-10-17  Jakub Jelinek  <jakub@redhat.com>
716         PR tree-optimization/63464
717         * gimple.h (gimple_seq_discard): New prototype.
718         * gimple.c: Include stringpool.h and tree-ssanames.h.
719         (gimple_seq_discard): New function.
720         * optabs.h (lshift_cheap_p): New prototype.
721         * optabs.c (lshift_cheap_p): New function, moved from...
722         * tree-switch-conversion.c (lshift_cheap_p): ... here.
723         * tree-ssa-reassoc.c: Include gimplify.h and optabs.h.
724         (reassoc_branch_fixups): New variable.
725         (update_range_test): Add otherrangep and seq arguments.
726         Unshare exp.  If otherrange is NULL, use for other ranges
727         array of pointers pointed by otherrangep instead.
728         Emit seq before gimplified statements for tem.
729         (optimize_range_tests_diff): Adjust update_range_test
730         caller.
731         (optimize_range_tests_xor): Likewise.  Fix up comment.
732         (extract_bit_test_mask, optimize_range_tests_to_bit_test): New
733         functions.
734         (optimize_range_tests): Adjust update_range_test caller.
735         Call optimize_range_tests_to_bit_test.
736         (branch_fixup): New function.
737         (execute_reassoc): Call branch_fixup.
739         PR tree-optimization/63302
740         * tree-ssa-reassoc.c (optimize_range_tests_xor,
741         optimize_range_tests_diff): Use !integer_pow2p () instead of
742         tree_log2 () < 0.
744 2014-10-17  Martin Liska  <mliska@suse.cz>
746         * ipa-icf.c (sem_function::merge): Local flags are set to false
747         to enforce equal calling convention to be used.
748         * opts.c (common_handle_option): Indentation fix.
750 2014-10-17  Marc Glisse  <marc.glisse@inria.fr>
752         * tree-into-ssa.c (is_old_name): Replace "new" with "old".
754 2014-10-17  Tom de Vries  <tom@codesourcery.com>
756         PR rtl-optimization/61605
757         * regcprop.c (copyprop_hardreg_forward_1): Use
758         regs_invalidated_by_this_call instead of regs_invalidated_by_call.
760 2014-10-17  Tom de Vries  <tom@codesourcery.com>
762         PR rtl-optimization/61605
763         * regcprop.c (copyprop_hardreg_forward_1): Add copy_p and noop_p.  Don't
764         notice stores for noops.  Don't regard noops as copies.
766 2014-10-17  Uros Bizjak  <ubizjak@gmail.com>
768         * config/i386/cpuid.h (__cpuid): Remove definitions that handle %ebx
769         register in a special way.
770         (__cpuid_count): Ditto.
771         * config/i386/driver-i386.h: Protect with
772         "#if defined(__GNUC__) && (__GNUC__ >= 5 || !defined(__PIC__))".
773         (host_detect_local_cpu): Mention that GCC with non-fixed %ebx
774         is required to compile the function.
776 2014-10-16  DJ Delorie  <dj@redhat.com>
778         * flag-types.h (sanitize_code): Don't assume targets have 32-bit
779         integers.
781         * config/rs6000/rs6000-c.c (rid_int128): New.
782         (rs6000_macro_to_expand): Use instead of RID_INT128.
784 2014-10-16  Andrew MacLeod  <amacleod@redhat.com>
786         * function.h: Flatten file.  Remove includes, adjust prototypes to
787         reflect only what is in function.h.
788         (enum direction, struct args_size, struct locate_and_pad_arg_data,
789         ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE, ARGS_SIZE_RTX): Relocate
790         from expr.h.
791         (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Relocate from rtl.h.
792         (optimize_function_for_size_p, optimize_function_for_speed_p): Move
793         prototypes to predict.h.
794         (init_varasm_status): Move prototype to varasm.h.
795         * expr.h: Adjust include files.
796         (enum direction, struct args_size, struct locate_and_pad_arg_data,
797         ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE, ARGS_SIZE_RTX): Move
798         to function.h.
799         (locate_and_pad_parm): Move prototype to function.h.
800         * rtl.h: (assign_stack_local, ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD,
801         assign_stack_local_1, assign_stack_temp, assign_stack_temp_for_type,
802         assign_temp, reposition_prologue_and_epilogue_notes,
803         prologue_epilogue_contains, sibcall_epilogue_contains,
804         update_temp_slot_address, maybe_copy_prologue_epilogue_insn,
805         set_return_jump_label): Move prototypes to function.h.
806         * predict.h (optimize_function_for_size_p,
807         optimize_function_for_speed_p): Relocate prototypes from function.h.
808         * shrink-wrap.h (emit_return_into_block, active_insn_between,
809         convert_jumps_to_returns, emit_return_for_exit): Move prototypes to
810         function.h.
811         * varasm.h (init_varasm_status): Relocate prototype from function.h.
812         * genattrtab.c (write_header): Add predict.h to include list.
813         * genconditions.c (write_header): Add predict.h to include list.
814         * genemit.c (main): Adjust header file includes.
815         * gengtype.c (ifiles): Add flattened function.h header files.
816         * genoutput.c (output_prologue): Add predict.h to include list.
817         * genpreds.c (write_insn_preds_c): Adjust header file includes.
818         * genrecog.c (write_header): Add flattened function.h header files.
819         * alias.c: Adjust include files.
820         * auto-inc-dec.c: Likewise.
821         * basic-block.h: Likewise.
822         * bb-reorder.c: Likewise.
823         * bt-load.c: Likewise.
824         * builtins.c: Likewise.
825         * caller-save.c: Likewise.
826         * calls.c: Likewise.
827         * cfgbuild.c: Likewise.
828         * cfgcleanup.c: Likewise.
829         * cfgexpand.c: Likewise.
830         * cfgloop.c: Likewise.
831         * cfgloop.h: Likewise.
832         * cfgrtl.c: Likewise.
833         * cgraph.h: Likewise.
834         * cgraphclones.c: Likewise.
835         * cgraphunit.c: Likewise.
836         * combine-stack-adj.c: Likewise.
837         * combine.c: Likewise.
838         * coverage.c: Likewise.
839         * cprop.c: Likewise.
840         * cse.c: Likewise.
841         * cselib.c: Likewise.
842         * dbxout.c: Likewise.
843         * ddg.c: Likewise.
844         * df-core.c: Likewise.
845         * df-problems.c: Likewise.
846         * df-scan.c: Likewise.
847         * dojump.c: Likewise.
848         * dwarf2cfi.c: Likewise.
849         * dwarf2out.c: Likewise.
850         * emit-rtl.c: Likewise.
851         * except.c: Likewise.
852         * explow.c: Likewise.
853         * expr.c: Likewise.
854         * final.c: Likewise.
855         * function.c: Likewise.
856         * gcse.c: Likewise.
857         * gimple-fold.c: Likewise.
858         * gimple-low.c: Likewise.
859         * gimple-streamer.h: Likewise.
860         * haifa-sched.c: Likewise.
861         * ifcvt.c: Likewise.
862         * ira.c: Likewise.
863         * jump.c: Likewise.
864         * lcm.c: Likewise.
865         * loop-invariant.c: Likewise.
866         * lra-assigns.c: Likewise.
867         * lra-coalesce.c: Likewise.
868         * lra-constraints.c: Likewise.
869         * lra-eliminations.c: Likewise.
870         * lra-lives.c: Likewise.
871         * lra-spills.c: Likewise.
872         * lra.c: Likewise.
873         * lto-cgraph.c: Likewise.
874         * lto-section-in.c: Likewise.
875         * lto-section-out.c: Likewise.
876         * lto-streamer-in.c: Likewise.
877         * lto-streamer-out.c: Likewise.
878         * mode-switching.c: Likewise.
879         * modulo-sched.c: Likewise.
880         * omp-low.c: Likewise.
881         * optabs.c: Likewise.
882         * passes.c: Likewise.
883         * postreload-gcse.c: Likewise.
884         * postreload.c: Likewise.
885         * predict.c: Likewise.
886         * profile.c: Likewise.
887         * recog.c: Likewise.
888         * ree.c: Likewise.
889         * reg-stack.c: Likewise.
890         * regcprop.c: Likewise.
891         * reginfo.c: Likewise.
892         * regrename.c: Likewise.
893         * reload.c: Likewise.
894         * reload1.c: Likewise.
895         * reorg.c: Likewise.
896         * resource.c: Likewise.
897         * rtlanal.c: Likewise.
898         * sched-deps.c: Likewise.
899         * sched-ebb.c: Likewise.
900         * sched-rgn.c: Likewise.
901         * sel-sched-dump.c: Likewise.
902         * sel-sched-ir.c: Likewise.
903         * sel-sched.c: Likewise.
904         * shrink-wrap.c: Likewise.
905         * simplify-rtx.c: Likewise.
906         * statistics.c: Likewise.
907         * stmt.c: Likewise.
908         * stor-layout.c: Likewise.
909         * store-motion.c: Likewise.
910         * symtab.c: Likewise.
911         * targhooks.c: Likewise.
912         * toplev.c: Likewise.
913         * trans-mem.c: Likewise.
914         * tree-cfg.c: Likewise.
915         * tree-cfgcleanup.c: Likewise.
916         * tree-dfa.c: Likewise.
917         * tree-eh.c: Likewise.
918         * tree-inline.c: Likewise.
919         * tree-into-ssa.c: Likewise.
920         * tree-nested.c: Likewise.
921         * tree-nrv.c: Likewise.
922         * tree-profile.c: Likewise.
923         * tree-ssa-alias.c: Likewise.
924         * tree-ssa-ccp.c: Likewise.
925         * tree-ssa-copy.c: Likewise.
926         * tree-ssa-copyrename.c: Likewise.
927         * tree-ssa-dom.c: Likewise.
928         * tree-ssa-operands.c: Likewise.
929         * tree-ssa-propagate.c: Likewise.
930         * tree-ssa-structalias.c: Likewise.
931         * tree-ssa-tail-merge.c: Likewise.
932         * tree-ssa-threadedge.c: Likewise.
933         * tree-ssa-threadupdate.c: Likewise.
934         * tree-ssa-uncprop.c: Likewise.
935         * tree-ssa-uninit.c: Likewise.
936         * tree-ssa.c: Likewise.
937         * tree-stdarg.c: Likewise.
938         * tree-tailcall.c: Likewise.
939         * tree.c: Likewise.
940         * tsan.c: Likewise.
941         * valtrack.c: Likewise.
942         * varasm.c: Likewise.
943         * vmsdbgout.c: Likewise.
944         * web.c: Likewise.
945         * config/aarch64/aarch64.c: Add flattened includes from function.h.
946         * config/alpha/alpha.c: Likewise.
947         * config/arc/arc.c: Likewise.
948         * config/arm/arm.c: Likewise.
949         * config/avr/avr-log.c: Likewise.
950         * config/avr/avr.c: Likewise.
951         * config/bfin/bfin.c: Likewise.
952         * config/c6x/c6x.c: Likewise.
953         * config/cr16/cr16.c: Likewise.
954         * config/cris/cris.c: Likewise.
955         * config/darwin.c: Likewise.
956         * config/epiphany/epiphany.c: Likewise.
957         * config/epiphany/mode-switch-use.c: Likewise.
958         * config/epiphany/resolve-sw-modes.c: Likewise.
959         * config/fr30/fr30.c: Likewise.
960         * config/frv/frv.c: Likewise.
961         * config/h8300/h8300.c: Likewise.
962         * config/i386/i386.c: Likewise.
963         * config/ia64/ia64.c: Likewise.
964         * config/iq2000/iq2000.c: Likewise.
965         * config/lm32/lm32.c: Likewise.
966         * config/m32c/m32c.c: Likewise.
967         * config/m32r/m32r.c: Likewise.
968         * config/m68k/m68k.c: Likewise.
969         * config/mcore/mcore.c: Likewise.
970         * config/mep/mep-pragma.c: Likewise.
971         * config/mep/mep.c: Likewise.
972         * config/microblaze/microblaze.c: Likewise.
973         * config/mips/mips.c: Likewise.
974         * config/mmix/mmix.c: Likewise.
975         * config/mn10300/mn10300.c: Likewise.
976         * config/moxie/moxie.c: Likewise.
977         * config/msp430/msp430.c: Likewise.
978         * config/nds32/nds32-cost.c: Likewise.
979         * config/nds32/nds32-fp-as-gp.c: Likewise.
980         * config/nds32/nds32-intrinsic.c: Likewise.
981         * config/nds32/nds32-isr.c: Likewise.
982         * config/nds32/nds32-md-auxiliary.c: Likewise.
983         * config/nds32/nds32-memory-manipulation.c: Likewise.
984         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
985         * config/nds32/nds32-predicates.c: Likewise.
986         * config/nds32/nds32.c: Likewise.
987         * config/nios2/nios2.c: Likewise.
988         * config/pa/pa.c: Likewise.
989         * config/pdp11/pdp11.c: Likewise.
990         * config/rl78/rl78.c: Likewise.
991         * config/rs6000/rs6000.c: Likewise.
992         * config/rx/rx.c: Likewise.
993         * config/s390/s390.c: Likewise.
994         * config/score/score.c: Likewise.
995         * config/sh/sh.c: Likewise.
996         * config/sparc/sparc.c: Likewise.
997         * config/spu/spu.c: Likewise.
998         * config/stormy16/stormy16.c: Likewise.
999         * config/tilegx/tilegx.c: Likewise.
1000         * config/tilepro/tilepro.c: Likewise.
1001         * config/v850/v850.c: Likewise.
1002         * config/vax/vax.c: Likewise.
1003         * config/xtensa/xtensa.c: Likewise.
1005 2014-10-16  Richard Earnshaw  <rearnsha@arm.com>
1007         * config/aarch64/aarch64.c (aarch64_legitimize_address): New function.
1008         (TARGET_LEGITIMIZE_ADDRESS): Redefine.
1010 2014-10-16  Oleg Endo  <olegendo@gcc.gnu.org>
1012         * config/sh/sh-protos.h (fldi_ok): Remove.
1013         * config/sh/sh.c (fldi_ok): Likewise.
1014         (sh_secondary_reload): Don't use fldi_ok.
1015         * config/sh/constraints.md (G constraint, H constraint): Don't use
1016         fldi_ok.
1018 2014-10-16  Martin Liska  <mliska@suse.cz>
1020         * ipa-icf.c (sem_item_optimizer::process_cong_reduction):
1021         Cast to unsigned long.
1022         (sem_item_optimizer::dump_cong_classes): Likewise.
1024 2014-10-16  Tom de Vries  <tom@codesourcery.com>
1026         * tree-into-ssa.c (update_ssa): Assert that there's no ssa use operand
1027         with SSA_NAME_IN_FREELIST.
1029 2014-10-16  Richard Biener  <rguenther@suse.de>
1031         PR middle-end/63554
1032         * builtins.c (fold_builtin_4): Do not call fold_builtin_strncat_chk.
1033         (fold_builtin_strncat_chk): Move ...
1034         * gimple-fold.c (gimple_fold_builtin_strncat_chk): ... here.
1035         (gimple_fold_builtin): Call gimple_fold_builtin_strncat_chk.
1037 2014-10-16  Oleg Endo  <olegendo@gcc.gnu.org>
1039         PR target/59401
1040         * config/sh/sh.h (CALL_REALLY_USED_REGISTERS): Expand macro and set
1041         GBR to 0.
1043 2014-10-16  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1044             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1045             Anna Tikhonova  <anna.tikhonova@intel.com>
1046             Ilya Tocar  <ilya.tocar@intel.com>
1047             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1048             Ilya Verbin  <ilya.verbin@intel.com>
1049             Kirill Yukhin  <kirill.yukhin@intel.com>
1050             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1052         * config/i386/i386.c (ix86_expand_mul_widen_hilo): Handle V32HI, V16SI,
1053         V64QI modes.
1055 2014-10-16  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1056             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1057             Anna Tikhonova  <anna.tikhonova@intel.com>
1058             Ilya Tocar  <ilya.tocar@intel.com>
1059             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1060             Ilya Verbin  <ilya.verbin@intel.com>
1061             Kirill Yukhin  <kirill.yukhin@intel.com>
1062             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1064         * config/i386/i386.c (ix86_expand_vector_set): Handle V8DF, V8DI, V16SF,
1065         V16SI, V32HI, V64QI modes.
1067 2014-10-16  Oleg Endo  <olegendo@gcc.gnu.org>
1069         PR target/53513
1070         * config/sh/sh-protos.h (emit_sf_insn, emit_df_insn, expand_sf_unop,
1071         expand_sf_binop, expand_df_unop, expand_df_binop): Remove.
1073         * config/sh/sh.c (sh_emit_set_t_insn): Adjust generated insn pattern
1074         to match fp insn patterns.
1075         (calc_live_regs): Add FPSCR_MODES_REG and FPSCR_STAT_REG to the ignore
1076         list.
1077         (emit_sf_insn, emit_df_insn, expand_sf_unop, expand_sf_binop,
1078         expand_df_unop, expand_df_binop): Remove.
1079         (sh_conditional_register_usage): Mark FPSCR_MODES_REG and
1080         FPSCR_STAT_REG as not call clobbered.
1081         (sh_emit_mode_set): Emit fpscr store-modify-load sequence instead of
1082         invoking fpscr_set_from_mem.
1084         * config/sh/sh.h (MAX_REGISTER_NAME_LENGTH): Increase to 6.
1085         (SH_REGISTER_NAMES_INITIALIZER): Add names for FPSCR_MODES_REG and
1086         FPSCR_STAT_REG.
1087         (REGISTER_NAMES): Adjust.
1088         (SPECIAL_REGISTER_P): Add FPSCR_MODES_REG and FPSCR_STAT_REG.
1089         (FIRST_PSEUDO_REGISTER): Increase to 156.
1090         (DWARF_FRAME_REGISTERS): Define as 153 to keep the original value.
1091         (FIXED_REGISTERS, CALL_USED_REGISTERS): Add FPSCR_MODES_REG and
1092         FPSCR_STAT_REG.
1093         (REG_CLASS_CONTENTS): Adjust ALL_REGS bit mask to include
1094         FPSCR_MODES_REG and FPSCR_STAT_REG.
1095         (REG_ALLOC_ORDER): Add FPSCR_MODES_REG and FPSCR_STAT_REG.
1097         * config/sh/sh.md (FPSCR_MODES_REG, FPSCR_STAT_REG, FPSCR_PR,
1098         FPSCR_SZ): Add new constants.
1099         (UNSPECV_FPSCR_MODES, UNSPECV_FPSCR_STAT): Add new unspecv constants.
1101         (movpsi): Use TARGET_FPU_ANY condition, invoke gen_fpu_switch.
1102         (fpu_switch): Add use and set of FPSCR_STAT_REG and FPSCR_MODES_REG.
1103         Use TARGET_FPU_ANY condition.
1104         (fpu_switch peephole2): Remove.
1105         (fpu_switch split): Use simple_mem_operand to capture the mem and
1106         adjust split implementation.
1107         (extend_psi_si, truncate_si_psi): New insns.
1108         (toggle_sz, toggle_pr): Use FPSCR_SZ, FPSCR_PR constants.  Add
1109         set of FPSCR_MODES_REG.
1111         (push_e, push_4, pop_e, pop_4, movdf_i4, reload_indf__frn, movsf_ie,
1112         reload_insf__frn, force_mode_for_call, calli, calli_tbr_rel,
1113         calli_pcrel, call_pcrel, call_compact, call_compact_rettramp,
1114         call_valuei, call_valuei_tbr_rel, call_valuei_pcrel, call_value_pcrel,
1115         call_value_compact, call_value_compact_rettramp, call,
1116         call_pop_compact, call_pop_compact_rettramp, call_value, sibcalli,
1117         sibcalli_pcrel, sibcalli_thunk, sibcall_pcrel, sibcall_compact,
1118         sibcall, sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
1119         sibcall_value_compact, sibcall_value, call_value_pop_compact,
1120         call_value_pop_compact_rettramp, various unnamed splits):
1121         Replace use of FPSCR_REG with use of FPSCR_MODES_REG.  Adjust gen_*
1122         function uses.
1124         (floatsisf2_i4, *floatsisf2_ie): Merge into floatsisf2_i4.
1125         (fix_truncsfsi2_i4, *fixsfsi): Merge into fix_truncsfsi2_i4.
1126         (cmpgtsf_t, cmpgtsf_t_i4): Merge into cmpgtsf_t.
1127         (cmpeqsf_t, cmpeqsf_t_i4): Merge into cmpeqsf_t.
1128         (ieee_ccmpeqsf_t, *ieee_ccmpeqsf_t_4): Merge into ieee_ccmpeqsf_t.
1130         (udivsi3_i4, divsi3_i4, addsf3_i, subsf3_i, mulsf3_i, fmasf4_i,
1131         *fmasf4, divsf3_i, floatsisf2_i4, fix_truncsfsi2_i4, cmpgtsf_t,
1132         cmpeqsf_t, ieee_ccmpeqsf_t, sqrtsf2_i, rsqrtsf2, fsca, adddf3_i,
1133         subdf3_i, muldf3_i, divdf3_i, floatsidf2_i, fix_truncdfsi2_i,
1134         cmpgtdf_t, cmpeqdf_t, *ieee_ccmpeqdf_t, sqrtdf2_i, extendsfdf2_i4,
1135         truncdfsf2_i4): Replace use of FPSCR_REG with clobber of FPSCR_STAT_REG
1136         and use of FPSCR_MODES_REG.  Adjust gen_* function uses.
1138 2014-10-16  Martin Liska  <mliska@suse.cz>
1139             Jan Hubicka  <hubicka@ucw.cz>
1141         * Makefile.in: New object files included.
1142         * cgraph.c (cgraph_node::dump): New cgraph_node flag icf_merged
1143         is printed.
1144         (verify_edge_corresponds_to_fndecl): More sensitive verification
1145         of nodes that are merged by IPA ICF.
1146         * cgraph.h (cgraph_node::num_references): New function.
1147         * cgraphunit.c (cgraph_node::expand_thunk): White space fixed.
1148         * common.opt: New options ipa-icf, ipa-icf-functions and
1149         ipa-icf-variables introduced.
1150         * doc/invoke.texi: Documentation of new options introduced.
1151         * ipa-icf-gimple.c: New file.
1152         * ipa-icf-gimple.h: New file.
1153         * ipa-icf.c: New file.
1154         * ipa-icf.h: New file.
1155         * lto-cgraph.c (lto_output_node): Streaming of icf_merged flag added.
1156         (input_overwrite_node): Likewise.
1157         * lto-section-in.c: New icf section added.
1158         * lto-streamer.h (enum lto_section_type): Likewise.
1159         * opts.c (common_handle_option): New option added.
1160         * passes.def: New pass included.
1161         * timevar.def: Time variable for IPA ICF added.
1162         * tree-pass.h: New IPA ICF pass entry point added.
1164 2014-10-16  Richard Biener  <rguenther@suse.de>
1166         PR tree-optimization/63168
1167         * tree-cfg.c (gimple_can_merge_blocks_p): Only protect
1168         latches if after merging they are no longer simple.
1169         * cfghooks.c (merge_blocks): Handle merging a latch block
1170         into another block.
1172 2014-10-16  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1173             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1174             Anna Tikhonova  <anna.tikhonova@intel.com>
1175             Ilya Tocar  <ilya.tocar@intel.com>
1176             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1177             Ilya Verbin  <ilya.verbin@intel.com>
1178             Kirill Yukhin  <kirill.yukhin@intel.com>
1179             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1181         * config/i386/sse.md
1182         (define_expand "floatuns<sseintvecmodelower><mode>2"): Extend to
1183         support AVX-512VL instructions.
1185 2014-10-16  DJ Delorie  <dj@redhat.com>
1187         * tree-core.h: Fix comment to not assume pointers are multiples of
1188         bytes.
1190 2014-10-15  Tom Tromey  <tromey@redhat.com>
1192         * timevar.h (class auto_timevar): New class.
1194 2014-10-15  Uros Bizjak  <ubizjak@gmail.com>
1196         PR go/59432
1197         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
1198         Remove the second alternative.
1199         (regprefix): Remove mode attribute.
1200         (atomic_compare_and_swap<mode>): Do not fixup operand 2.
1201         * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): Remove.
1203         Revert:
1204         2013-11-05  Ian Lance Taylor  <iant@google.com>
1206         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
1207         If possible, add .cfi directives to record change to bx.
1208         * config/i386/i386.c (ix86_emit_cfi): New function.
1209         * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
1211 2014-10-15  Jan Hubicka  <hubicka@ucw.cz>
1213         PR lto/62026
1214         * cgraphclones.c (duplicate_thunk_for_node): Get body to have args
1215         to duplicate.
1216         * lto-streamer-out.c (lto_output): Handle correctly thunks that was born
1217         at WPA time.
1219 2014-10-15  Vladimir Makarov  <vmakarov@redhat.com>
1221         PR rtl-optimization/63448
1222         * lra-int.h (LRA_MAX_CONSTRAINT_ITERATION_NUMBER): Remove.
1223         (LRA_MAX_ASSIGNMENT_ITERATION_NUMBER): New.
1224         (LRA_MAX_INHERITANCE_PASSES): Use it.
1225         (lra_constraint_iter_after_spill): Remove.
1226         (lra_assignment_iter): New.
1227         (lra_assignment_iter_after_spill): New.
1228         * lra-assigns.c (lra_assignment_iter): New.
1229         (lra_assignment_iter_after_spill): New.
1230         (former_reload_pseudo_spill_p): New.
1231         (spill_for): Set up former_reload_pseudo_spill_p.
1232         (setup_live_pseudos_and_spill_after_risky): Ditto.
1233         (assign_by_spills): Ditto.
1234         (lra_assign): Increment lra_assignment_iter.  Print the iteration
1235         number.  Reset former_reload_pseudo_spill_p.  Check
1236         lra_assignment_iter_after_spill.
1237         * lra.c (lra): Remove lra_constraint_iter_after_spill.  Initialize
1238         lra_assignment_iter and lra_assignment_iter_after_spill.
1239         * lra-constraints.c (lra_constraint_iter_after_spill): Remove.
1240         (lra_constraints): Remove code with
1241         lra_assignment_iter_after_spill.
1243 2014-10-15  Teresa Johnson  <tejohnson@google.com>
1245         PR bootstrap/63432
1246         * tree-ssa-threadupdate.c (recompute_probabilities): Better
1247         overflow checking.
1249 2014-10-15  Renlin Li <renlin.li@arm.com>
1251         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
1252         __ARM_BIG_ENDIAN, __ARM_SIZEOF_MINIMAL_ENUM. Add __ARM_64BIT_STATE,
1253         __ARM_ARCH_ISA_A64, __ARM_FEATURE_CLZ, __ARM_FEATURE_IDIV,
1254         __ARM_FEATURE_UNALIGNED, __ARM_PCS_AAPCS64, __ARM_SIZEOF_WCHAR_T.
1256 2014-10-15  Richard Biener  <rguenther@suse.de>
1258         * gimple-fold.c (gimple_fold_call): Properly keep virtual
1259         SSA form up-to-date when devirtualizing a call to
1260         __builtin_unreachable and avoid fixing up EH info here.
1262 2014-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1263             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1264             Anna Tikhonova  <anna.tikhonova@intel.com>
1265             Ilya Tocar  <ilya.tocar@intel.com>
1266             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1267             Ilya Verbin  <ilya.verbin@intel.com>
1268             Kirill Yukhin  <kirill.yukhin@intel.com>
1269             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1271         * config/i386/sse.md (define_mode_iterator VI_AVX2): Extend
1272         to support AVX-512BW.
1273         (define_mode_iterator VI124_AVX2_48_AVX512F): Remove.
1274         (define_expand "<plusminus_insn><mode>3"): Remove masking support.
1275         (define_insn "*<plusminus_insn><mode>3"): Ditto.
1276         (define_expand "<plusminus_insn><VI48_AVX512VL:mode>3_mask"): New.
1277         (define_expand "<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
1278         (define_insn "*<plusminus_insn><VI48_AVX512VL:mode>3_mask"): Ditto.
1279         (define_insn "*<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
1280         (define_expand "<sse2_avx2>_andnot<mode>3"): Remove masking support.
1281         (define_insn "*andnot<mode>3"): Ditto.
1282         (define_expand "<sse2_avx2>_andnot<VI48_AVX512VL:mode>3_mask"): New.
1283         (define_expand "<sse2_avx2>_andnot<VI12_AVX512VL:mode>3_mask"): Ditto.
1284         (define_insn "*andnot<VI48_AVX512VL:mode>3<mask_name>"): Ditto.
1285         (define_insn "*andnot<VI12_AVX512VL:mode>3<mask_name>"): Ditto.
1286         (define_insn "*abs<mode>2"): Remove masking support.
1287         (define_insn "abs<VI48_AVX512VL:mode>2_mask"): New.
1288         (define_insn "abs<VI12_AVX512VL:mode>2_mask"): Ditto.
1289         (define_expand "abs<mode>2"): Use VI_AVX2 mode iterator.
1291 2014-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1292             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1293             Anna Tikhonova  <anna.tikhonova@intel.com>
1294             Ilya Tocar  <ilya.tocar@intel.com>
1295             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1296             Ilya Verbin  <ilya.verbin@intel.com>
1297             Kirill Yukhin  <kirill.yukhin@intel.com>
1298             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1300         * config/i386/predicates.md (define_predicate "constm1_operand"): New.
1301         * config/i386/sse.md
1302         (define_c_enum "unspec"): Add UNSPEC_CVTINT2MASK.
1303         (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI12_AVX512VL:mode>"): New.
1304         (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI48_AVX512VL:mode>"): Ditto.
1305         (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
1306         (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
1307         (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
1308         (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
1310 2014-10-15  Renlin Li <renlin.li@arm.com>
1312         * config/aarch64/aarch64.h (ARM_DEFAULT_PCS, arm_pcs_variant): Delete.
1314 2014-10-15  Jakub Jelinek  <jakub@redhat.com>
1316         * tree-ssa-reassoc.c (optimize_range_tests_diff): Perform
1317         MINUS_EXPR in unsigned type to avoid undefined behavior.
1319 2014-10-15  Eric Botcazou  <ebotcazou@adacore.com>
1321         * stor-layout.c (self_referential_size): Do not promote arguments.
1323 2014-10-15  Marek Polacek  <polacek@redhat.com>
1325         * doc/invoke.texi: Update to reflect that GNU11 is the default
1326         mode for C.
1327         * c-common.h (c_language_kind): Update comment.
1329 2014-10-15  Richard Biener  <rguenther@suse.de>
1331         * hash-table.c: Include bconfig.h if building for the host.
1332         * hash-table.h: Do not include ggc.h on the host but just declare
1333         a few ggc allocation templates.
1335 2014-10-15  Joern Rennecke  <joern.rennecke@embecosm.com>
1336             Jeff Law  <law@redhat.com>
1338         * caller-save.c (replace_reg_with_saved_mem): If saved_mode covers
1339         multiple hard registers, use smaller mode derived from MODE.
1341 2014-10-15  Andreas Schwab  <schwab@suse.de>
1343         * explow.c (convert_memory_address_addr_space_1): Mark in_const
1344         as ATTRIBUTE_UNUSED.
1346 2014-10-14  Jan Hubicka  <hubicka@ucw.cz>
1348         * loop-unroll.c: (decide_unrolling_and_peeling): Rename to
1349         (decide_unrolling): ... this one.
1350         (peel_loops_completely): Remove.
1351         (decide_peel_simple): Remove.
1352         (decide_peel_once_rolling): Remove.
1353         (decide_peel_completely): Remove.
1354         (peel_loop_simple): Remove.
1355         (peel_loop_completely): Remove.
1356         (unroll_and_peel_loops): Rename to ...
1357         (unroll_loops): ... this one; handle only unrolling.
1358         * cfgloop.h (lpt_dec): Remove LPT_PEEL_COMPLETELY and
1359         LPT_PEEL_SIMPLE.
1360         (UAP_PEEL): Remove.
1361         (unroll_and_peel_loops): Remove.
1362         (unroll_loops): New.
1363         * passes.def: Replace
1364         pass_rtl_unroll_and_peel_loops by pass_rtl_unroll_loops.
1365         * loop-init.c (gate_rtl_unroll_and_peel_loops,
1366         rtl_unroll_and_peel_loops): Rename to ...
1367         (gate_rtl_unroll_loops, rtl_unroll_loops): ... these; update.
1368         (pass_rtl_unroll_and_peel_loops): Rename to ...
1369         (pass_rtl_unroll_loops): ... this one.
1370         * tree-pass.h (make_pass_rtl_unroll_and_peel_loops): Remove.
1371         (make_pass_rtl_unroll_loops): New.
1372         * tree-ssa-loop-ivcanon.c: (estimated_peeled_sequence_size, try_peel_loop): New.
1373         (canonicalize_loop_induction_variables): Update.
1375 2014-10-14  Max Filippov  <jcmvbkbc@gmail.com>
1377         * config/xtensa/xtensa.h (TARGET_HARD_FLOAT_POSTINC): new macro.
1378         * config/xtensa/xtensa.md (*lsiu, *ssiu): add dependency on
1379         !TARGET_HARD_FLOAT_POSTINC.
1380         (*lsip, *ssip): new instructions.
1382 2014-10-14  Max Filippov  <jcmvbkbc@gmail.com>
1384         * config/xtensa/xtensa.md (divsf3, *recipsf2, sqrtsf2, *rsqrtsf2):
1385         remove.
1387 2014-10-14  Andrew Pinski  <apinski@cavium.com>
1389         * explow.c (convert_memory_address_addr_space): Rename to ...
1390         (convert_memory_address_addr_space_1): This.  Add in_const argument.
1391         Inside a CONST RTL, permute the conversion and addition of constant
1392         for zero and sign extended pointers.
1393         (convert_memory_address_addr_space): New function.
1395 2014-10-14  Andrew Pinski  <apinski@cavium.com>
1397         Revert:
1398         2011-08-19  H.J. Lu  <hongjiu.lu@intel.com>
1400         PR middle-end/49721
1401         * explow.c (convert_memory_address_addr_space): Also permute the
1402         conversion and addition of constant for zero-extend.
1404 2014-10-14  DJ Delorie  <dj@redhat.com>
1406         * config/msp430/msp430-modes.def (PSI): Add.
1408         * config/msp430/msp430-protos.h (msp430_hard_regno_nregs_has_padding): New.
1409         (msp430_hard_regno_nregs_with_padding): New.
1410         * config/msp430/msp430.c (msp430_scalar_mode_supported_p): New.
1411         (msp430_hard_regno_nregs_has_padding): New.
1412         (msp430_hard_regno_nregs_with_padding): New.
1413         (msp430_unwind_word_mode): Use PSImode instead of SImode.
1414         (msp430_addr_space_legitimate_address_p): New.
1415         (msp430_asm_integer): New.
1416         (msp430_init_dwarf_reg_sizes_extra): New.
1417         (msp430_print_operand): Use X suffix for PSImode even in small model.
1418         * config/msp430/msp430.h (POINTER_SIZE): Use 20 bits, not 32.
1419         (PTR_SIZE): ...but 4 bytes for EH.
1420         (SIZE_TYPE): Use __int20.
1421         (PTRDIFF_TYPE): Likewise.
1422         (INCOMING_FRAME_SP_OFFSET): Adjust.
1423         * config/msp430/msp430.md (movqi_topbyte): New.
1424         (movpsi): Use fixed suffixes.
1425         (movsipsi2): Enable for 430X, not large model.
1426         (extendhipsi2): Likewise.
1427         (zero_extendhisi2): Likewise.
1428         (zero_extendhisipsi2): Likewise.
1429         (extend_and_shift1_hipsi2): Likewise.
1430         (extendpsisi2): Likewise.
1431         (*bitbranch<mode>4_z): Fix suffix logic.
1433 2014-10-14  Eric Botcazou  <ebotcazou@adacore.com>
1435         PR ada/62019
1436         * tree-eh.c (tree_could_trap) <FUNCTION_DECL>: Revamp and really
1437         do not choke on null node.
1438         <VAR_DECL>: Likewise.
1440 2014-10-14  DJ Delorie  <dj@redhat.com>
1442         * machmode.h (int_n_data_t): New.
1443         (int_n_enabled_p): New.
1444         (int_n_data): New.
1445         * tree.c (int_n_enabled_p): New.
1446         (int_n_trees): New.
1447         (make_or_reuse_type): Check for all __intN types, not just
1448         __int128.
1449         (build_common_tree_nodes): Likewise.  Also fill in integer_typs[]
1450         entries.
1451         * tree.h (int128_integer_type_node): Remove.
1452         (int128_unsigned_type_node): Remove.
1453         (int_n_trees_t): New.
1454         (int_n_enabled_p): New.
1455         (int_n_trees): New.
1456         * toplev.c (standard_type_bitsize): New.
1457         (do_compile): Check which __intN types are enabled for the current
1458         run.
1459         * builtin-types.def (BT_INT128): Remove.
1460         (BT_UINT128): Remove.
1461         * machmode.def: Add macro to create __int128 for all targets.
1462         * stor-layout.c (mode_for_size): Support __intN types.
1463         (smallest_mode_for_size): Likewise.
1464         (initialize_sizetypes): Support __intN types.
1465         * genmodes.c (struct mode_data): Add int_n field.
1466         (blank_mode): Likewise.
1467         (INT_N): New.
1468         (make_int_n): New.
1469         (emit_insn_modes_h): Count __intN entries and define
1470         NUM_INT_N_ENTS.
1471         (emit_mode_int_n): New.
1472         (emit_insn_modes_c): Call it.
1473         * gimple.c (gimple_signed_or_unsigned_type): Check for all __intN
1474         types, not just __int128.
1475         * tree-core.h (integer_type_kind): Remove __int128-specific
1476         entries, reserve spots for __intN entries.
1478         * config/msp430/msp430-modes.def (PSI): Add.
1480 2014-10-14  Kito Cheng  <kito@0xlab.org>
1482         * ira.c: Fix typo in comment.
1483         * ira.h: Ditto.
1484         * ira-build.c: Ditto.
1485         * ira-color.c: Ditto.
1486         * ira-emit.c: Ditto.
1487         * ira-int.h: Ditto.
1488         * ira-lives.c: Ditto.
1490 2014-10-14  Uros Bizjak  <ubizjak@gmail.com>
1492         PR rtl-optimization/63475
1493         * alias.c (true_dependence_1): Always use get_addr to extract
1494         true address operands from x_addr and mem_addr.  Use extracted
1495         address operands to check for references with alignment ANDs.
1496         Use extracted address operands with find_base_term and
1497         base_alias_check. For noncanonicalized operands call canon_rtx with
1498         extracted address operand.
1499         (write_dependence_1): Ditto.
1500         (may_alias_p): Ditto.  Remove unused calls to canon_rtx.
1502 2014-10-14  Evgeny Stupachenko  <evstupac@gmail.com>
1504         PR target/63534
1505         * config/i386/i386.c (ix86_expand_split_stack_prologue): Make
1506         __morestack local.
1508 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1509             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1510             Anna Tikhonova  <anna.tikhonova@intel.com>
1511             Ilya Tocar  <ilya.tocar@intel.com>
1512             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1513             Ilya Verbin  <ilya.verbin@intel.com>
1514             Kirill Yukhin  <kirill.yukhin@intel.com>
1515             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1517         * config/i386/i386.c
1518         (ix86_expand_sse_movcc): Handle V64QI and V32HI mode.
1519         (ix86_expand_int_vcond): Ditto.
1521 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1522             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1523             Anna Tikhonova  <anna.tikhonova@intel.com>
1524             Ilya Tocar  <ilya.tocar@intel.com>
1525             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1526             Ilya Verbin  <ilya.verbin@intel.com>
1527             Kirill Yukhin  <kirill.yukhin@intel.com>
1528             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1530         * config/i386/i386.c
1531         (emit_reduc_half): Handle V64QI and V32HI mode.
1532         * config/i386/sse.md
1533         (define_mode_iterator VI_AVX512BW): New.
1534         (define_expand "reduc_<code>_<mode>"): Use VI512_48F_12BW.
1536 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1537             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1538             Anna Tikhonova  <anna.tikhonova@intel.com>
1539             Ilya Tocar  <ilya.tocar@intel.com>
1540             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1541             Ilya Verbin  <ilya.verbin@intel.com>
1542             Kirill Yukhin  <kirill.yukhin@intel.com>
1543             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1545         * config/i386/sse.md
1546         (define_mode_iterator REDUC_SMINMAX_MODE): Add V64QI and V32HI modes.
1548 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1549             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1550             Anna Tikhonova  <anna.tikhonova@intel.com>
1551             Ilya Tocar  <ilya.tocar@intel.com>
1552             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1553             Ilya Verbin  <ilya.verbin@intel.com>
1554             Kirill Yukhin  <kirill.yukhin@intel.com>
1555             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1557         * config/i386/i386.c
1558         (ix86_expand_vector_logical_operator): Handle V16SF and V8DF modes.
1559         * config/i386/sse.md
1560         (define_mode_iterator VI): Add V64QI and V32HI modes.
1562 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1563             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1564             Anna Tikhonova  <anna.tikhonova@intel.com>
1565             Ilya Tocar  <ilya.tocar@intel.com>
1566             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1567             Ilya Verbin  <ilya.verbin@intel.com>
1568             Kirill Yukhin  <kirill.yukhin@intel.com>
1569             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1571         * config/i386/sse.md (define_mode_attr avx2_avx512f): Remove.
1573 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1574             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1575             Anna Tikhonova  <anna.tikhonova@intel.com>
1576             Ilya Tocar  <ilya.tocar@intel.com>
1577             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1578             Ilya Verbin  <ilya.verbin@intel.com>
1579             Kirill Yukhin  <kirill.yukhin@intel.com>
1580             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1582         * config/i386/sse.md
1583         (define_insn "*sse4_1_<code><mode>3<mask_name>"): Add masking.
1584         (define_insn "*sse4_1_<code><mode>3<mask_name>"): Ditto.
1586 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1587             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1588             Anna Tikhonova  <anna.tikhonova@intel.com>
1589             Ilya Tocar  <ilya.tocar@intel.com>
1590             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1591             Ilya Verbin  <ilya.verbin@intel.com>
1592             Kirill Yukhin  <kirill.yukhin@intel.com>
1593             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1595         * config/i386/sse.md
1596         (define_insn "avx512bw_umulhrswv32hi3<mask_name>"): New.
1597         (define_expand "<ssse3_avx2>_pmulhrsw<mode>3_mask"): Ditto.
1599 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1600             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1601             Anna Tikhonova  <anna.tikhonova@intel.com>
1602             Ilya Tocar  <ilya.tocar@intel.com>
1603             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1604             Ilya Verbin  <ilya.verbin@intel.com>
1605             Kirill Yukhin  <kirill.yukhin@intel.com>
1606             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1608         * config/i386/sse.md
1609         (define_c_enum "unspec"): Add UNSPEC_PMADDWD512.
1610         (define_mode_iterator VI2_AVX2): Add V32HI mode.
1611         (define_expand "mul<mode>3<mask_name>"): Add masking.
1612         (define_insn "*mul<mode>3<mask_name>"): Ditto.
1613         (define_expand "<s>mul<mode>3_highpart<mask_name>"): Ditto.
1614         (define_insn "*<s>mul<mode>3_highpart<mask_name>"): Ditto.
1615         (define_insn "avx512bw_pmaddwd512<mode><mask_name>"): New.
1616         (define_mode_attr SDOT_PMADD_SUF): Ditto.
1617         (define_expand "sdot_prod<mode>"): Add <SDOT_PMADD_SUF>.
1618         (define_insn "<sse2_avx2>_packssdw<mask_name>"): Add masking.
1619         (define_insn "*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>"): Ditto.
1620         (define_insn "avx2_packusdw"): Delete.
1621         (define_insn "sse4_1_packusdw"): Ditto.
1622         (define_insn "<sse4_1_avx2>_packusdw<mask_name>"): New.
1624 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1625             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1626             Anna Tikhonova  <anna.tikhonova@intel.com>
1627             Ilya Tocar  <ilya.tocar@intel.com>
1628             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1629             Ilya Verbin  <ilya.verbin@intel.com>
1630             Kirill Yukhin  <kirill.yukhin@intel.com>
1631             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1633         * config/i386/sse.md
1634         (define_insn "vec_dup<mode>"): Update constraints.
1636 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1637             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1638             Anna Tikhonova  <anna.tikhonova@intel.com>
1639             Ilya Tocar  <ilya.tocar@intel.com>
1640             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1641             Ilya Verbin  <ilya.verbin@intel.com>
1642             Kirill Yukhin  <kirill.yukhin@intel.com>
1643             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1645         * config/i386/sse.md
1646         (define_mode_iterator SSESCALARMODE): Add V4TI mode.
1647         (define_insn "<ssse3_avx2>_palignr<mode>_mask"): New.
1648         (define_insn "<ssse3_avx2>_palignr<mode>"): Add EVEX version.
1650 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1651             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1652             Anna Tikhonova  <anna.tikhonova@intel.com>
1653             Ilya Tocar  <ilya.tocar@intel.com>
1654             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1655             Ilya Verbin  <ilya.verbin@intel.com>
1656             Kirill Yukhin  <kirill.yukhin@intel.com>
1657             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1659         * config/i386/sse.md
1660         (define_expand "mul<mode>3<mask_name>"): Add masking.
1662 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1663             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1664             Anna Tikhonova  <anna.tikhonova@intel.com>
1665             Ilya Tocar  <ilya.tocar@intel.com>
1666             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1667             Ilya Verbin  <ilya.verbin@intel.com>
1668             Kirill Yukhin  <kirill.yukhin@intel.com>
1669             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1671         * config/i386/sse.md
1672         (define_insn "<sse2_avx2>_packsswb<mask_name>"): Add masking.
1673         (define_insn "<sse2_avx2>_packuswb<mask_name>"): Ditto.
1675 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1676             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1677             Anna Tikhonova  <anna.tikhonova@intel.com>
1678             Ilya Tocar  <ilya.tocar@intel.com>
1679             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1680             Ilya Verbin  <ilya.verbin@intel.com>
1681             Kirill Yukhin  <kirill.yukhin@intel.com>
1682             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1684         * config/i386/sse.md
1685         (define_c_enum "unspec"): Add UNSPEC_DBPSADBW, UNSPEC_PMADDUBSW512.
1686         (define_insn "avx512bw_pmaddubsw512<mode><mask_name>"): New.
1687         (define_insn "<mask_codefor>avx512bw_dbpsadbw<mode><mask_name>"):
1688         Ditto.
1690 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1691             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1692             Anna Tikhonova  <anna.tikhonova@intel.com>
1693             Ilya Tocar  <ilya.tocar@intel.com>
1694             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1695             Ilya Verbin  <ilya.verbin@intel.com>
1696             Kirill Yukhin  <kirill.yukhin@intel.com>
1697             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1699         * config/i386/sse.md
1700         (define_insn "<sse>_andnot<VF_128_256:mode>3<mask_name>"): Add masking,
1701         use VF_128_256 mode iterator and update assembler emit code.
1702         (define_insn "<sse>_andnot<VF_512:mode>3<mask_name>"): New.
1703         (define_expand "<any_logic:code><VF_128_256:mode>3<mask_name>"):
1704         Add masking, use VF_128_256 mode iterator.
1705         (define_expand "<any_logic:code><VF_512:mode>3<mask_name>"): New.
1706         (define_insn "*<any_logic:code><VF_128_256:mode>3<mask_name>"):
1707         Add masking, use VF_128_256 mode iterator and update assembler emit
1708         code.
1709         (define_insn "*<any_logic:code><VF_512:mode>3<mask_name>"): New.
1710         (define_mode_attr avx512flogicsuff): Delete.
1711         (define_insn "avx512f_<logic><mode>"): Ditto.
1712         (define_insn "*andnot<mode>3<mask_name>"): Update MODE_XI, MODE_OI,
1713         MODE_TI.
1714         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
1716 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1717             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1718             Anna Tikhonova  <anna.tikhonova@intel.com>
1719             Ilya Tocar  <ilya.tocar@intel.com>
1720             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1721             Ilya Verbin  <ilya.verbin@intel.com>
1722             Kirill Yukhin  <kirill.yukhin@intel.com>
1723             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1725         * config/i386/sse.md
1726         (define_mode_iterator VI128_128 [V16QI V8HI V2DI]): Delete.
1727         (define_expand "vashr<mode>3<mask_name>"): Add masking,
1728         use VI12_128 mode iterator.
1729         (define_expand "ashrv2di3<mask_name>"): New.
1731 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1732             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1733             Anna Tikhonova  <anna.tikhonova@intel.com>
1734             Ilya Tocar  <ilya.tocar@intel.com>
1735             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1736             Ilya Verbin  <ilya.verbin@intel.com>
1737             Kirill Yukhin  <kirill.yukhin@intel.com>
1738             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1740         * config/i386/i386.c
1741         (ix86_expand_args_builtin): Handle CODE_FOR_avx512vl_cmpv4di3_mask,
1742         CODE_FOR_avx512vl_cmpv8si3_mask, CODE_FOR_avx512vl_ucmpv4di3_mask,
1743         CODE_FOR_avx512vl_ucmpv8si3_mask, CODE_FOR_avx512vl_cmpv2di3_mask,
1744         CODE_FOR_avx512vl_cmpv4si3_mask, CODE_FOR_avx512vl_ucmpv2di3_mask,
1745         CODE_FOR_avx512vl_ucmpv4si3_mask.
1746         * config/i386/sse.md
1747         (define_insn "avx512f_ucmp<mode>3<mask_scalar_merge_name>"): Delete.
1748         "<avx512>_ucmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name>"):New.
1749         (define_insn
1750         "<avx512>_ucmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name>"):Ditto.
1751         (define_expand "<avx512>_eq<mode>3<mask_scalar_merge_name>"): Ditto.
1752         (define_insn "<avx512>_eq<mode>3<mask_scalar_merge_name>_1"): Ditto.
1753         (define_insn "<avx512>_gt<mode>3<mask_scalar_merge_name>"): Ditto.
1754         (define_insn "<avx512>_testm<mode>3<mask_scalar_merge_name>"): Ditto.
1755         (define_insn "<avx512>_testnm<mode>3<mask_scalar_merge_name>"): Ditto.
1757 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1758             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1759             Anna Tikhonova  <anna.tikhonova@intel.com>
1760             Ilya Tocar  <ilya.tocar@intel.com>
1761             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1762             Ilya Verbin  <ilya.verbin@intel.com>
1763             Kirill Yukhin  <kirill.yukhin@intel.com>
1764             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1766         * config/i386/sse.md
1767         (define_expand "vec_widen_umult_even_v8si<mask_name>"): Add masking.
1768         (define_insn "*vec_widen_umult_even_v8si<mask_name>"): Ditto.
1769         (define_expand "vec_widen_umult_even_v4si<mask_name>"): Ditto.
1770         (define_insn "*vec_widen_umult_even_v4si<mask_name>"): Ditto.
1771         (define_expand "vec_widen_smult_even_v8si<mask_name>"): Ditto.
1772         (define_insn "*vec_widen_smult_even_v8si<mask_name>"): Ditto.
1773         (define_expand "sse4_1_mulv2siv2di3<mask_name>"): Ditto.
1774         (define_insn "*sse4_1_mulv2siv2di3<mask_name>"): Ditto.
1775         (define_insn "avx512dq_mul<mode>3<mask_name>"): New.
1777 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1778             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1779             Anna Tikhonova  <anna.tikhonova@intel.com>
1780             Ilya Tocar  <ilya.tocar@intel.com>
1781             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1782             Ilya Verbin  <ilya.verbin@intel.com>
1783             Kirill Yukhin  <kirill.yukhin@intel.com>
1784             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1786         * config/i386/sse.md
1787         (define_insn "avx512f_blendm<mode>"): Delete.
1788         (define_insn "<avx512>_blendm<VI48_AVX512VL:mode>"): New.
1789         (define_insn "<avx512>_blendm<VI12_AVX512VL:mode>"): Ditto..
1790         (define_mode_attr cmp_imm_predicate): Add V8SF, V4DF, V8SI, V4DI, V4SF,
1791         V2DF, V4SI, V2DI, V32HI, V64QI, V16HI, V32QI, V8HI, V16QI modes.
1792         (define_insn
1793         "avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>"):
1794         Remove.
1795         (define_insn
1796         "<avx512>_cmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
1797         New.
1798         (define_insn
1799         "<avx512>_cmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
1800         Ditto.
1801         (define_insn "<mask_codefor>avx512f_vec_dup<mode><mask_name>"): Delete.
1802         (define_insn "<avx512>_vec_dup<V48_AVX512VL:mode><mask_name>"): New.
1803         (define_insn "<avx512>_vec_dup<V12_AVX512VL:mode><mask_name>"): Ditto.
1804         (define_insn "<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>"):
1805         Delete.
1806         (define_insn
1807         "<mask_codefor><avx512>_vec_dup_gpr<VI48_AVX512VL:mode><mask_name>"):
1808         New.
1809         (define_insn
1810         "<mask_codefor><avx512>_vec_dup_gpr<VI12_AVX512VL:mode><mask_name>"):
1811         Ditto.
1812         (define_insn·"<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>"):
1813         Delete.
1814         (define_insn
1815         "<mask_codefor><avx512>_vec_dup_mem<VI48_AVX512VL:mode><mask_name>"):
1816         New.
1817         (define_insn
1818         "<mask_codefor><avx512>_vec_dup_mem<VI12_AVX512VL:mode><mask_name>"):
1819         Ditto.
1821 2014-10-14  Richard Biener  <rguenther@suse.de>
1823         PR tree-optimization/63512
1824         * tree-ssa-pre.c (create_expression_by_pieces): Mark stmts
1825         modified.
1827 2014-10-14  Oleg Endo  <olegendo@gcc.gnu.org>
1829         PR target/63260
1830         * config/sh/sh.md (negsf2, negsf2_i, negdf2, negdf2_i, abssf2,
1831         abssf2_i, absdf2, absdf2_i): Remove fp_mode attribute.  Remove use
1832         of FPSCR.
1833         (negsf2_i): Rename to *negsf2_i.
1834         (abssf2_i): Rename to *abssf2_i.
1835         (negdf2_i): Rename to *negdf2_i.
1836         (absdf2_i): Rename to *absdf2_i.
1838 2014-10-14  Felix Yang  <felix.yang@huawei.com>
1839             Jeff Law  <law@redhat.com>
1841         * ira.c (struct equivalence): Change member "is_arg_equivalence" and
1842         "replace" into boolean bitfields; turn member "loop_depth" into a short
1843         integer; add new member "no_equiv" and "reserved".
1844         (no_equiv): Set no_equiv of struct equivalence if register is marked
1845         as having no known equivalence.
1846         (update_equiv_regs): Check all definitions for a multiple-set
1847         register to make sure that the RHS have the same value.
1849 2014-10-13  Richard Henderson  <rth@redhat.com>
1851         * combine-stack-adj.c (no_unhandled_cfa): New.
1852         (maybe_merge_cfa_adjust): New.
1853         (combine_stack_adjustments_for_block): Use them.
1855 2014-10-13  Aldy Hernandez  <aldyh@redhat.com>
1857         * Makefile.in (TAGS): Tag ../include files.
1859 2014-10-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1861         * config/rs6000/rs6000.h (DBX_REGISTER_NUMBER): Pass format argument
1862         to rs6000_dbx_register_number.
1863         (DWARF_FRAME_REGNUM): Redefine as identity map.
1864         (DWARF2_FRAME_REG_OUT): Call rs6000_dbx_register_number.
1865         * config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Update.
1866         * config/rs6000/rs6000.c (rs6000_dbx_register_number): Add format
1867         argument to handle .debug_frame and .eh_frame directly.  Always
1868         translate SPE high register numbers.  Add special treatment for CR,
1869         but only in .debug_frame.  Respect RS6000_USE_DWARF_NUMBERING.
1871         * config/rs6000/sysv.h (DBX_REGISTER_NUMBER): Do not undefine.
1872         * config/rs6000/freebsd.h (DBX_REGISTER_NUMBER): Remove.
1873         (RS6000_USE_DWARF_NUMBERING): Define.
1874         * config/rs6000/freebsd64.h (DBX_REGISTER_NUMBER): Remove.
1875         (RS6000_USE_DWARF_NUMBERING): Define.
1876         * config/rs6000/netbsd.h (DBX_REGISTER_NUMBER): Remove.
1877         (RS6000_USE_DWARF_NUMBERING): Define.
1878         * config/rs6000/lynx.h (DBX_REGISTER_NUMBER): Remove.
1879         (RS6000_USE_DWARF_NUMBERING): Define.
1880         * config/rs6000/aix.h (RS6000_USE_DWARF_NUMBERING): Define.
1881         * config/rs6000/darwin.h (RS6000_USE_DWARF_NUMBERING): Define.
1883 2014-10-13  Evgeny Stupachenko  <evstupac@gmail.com>
1885         * config/i386/i386.c (ix86_address_cost): Lower cost for
1886         when address contains GOT register.
1888 2014-10-13  Ilya Enkovich  <ilya.enkovich@intel.com>
1889             Vladimir Makarov  <vmakarov@redhat.com>
1891         PR target/8340
1892         PR middle-end/47602
1893         PR rtl-optimization/55458
1894         * config/i386/i386.c (ix86_use_pseudo_pic_reg): New.
1895         (ix86_init_pic_reg): New.
1896         (ix86_select_alt_pic_regnum): Add check on pseudo register.
1897         (ix86_save_reg): Likewise.
1898         (ix86_expand_prologue): Remove PIC register initialization
1899         now performed in ix86_init_pic_reg.
1900         (ix86_output_function_epilogue): Add check on pseudo register.
1901         (set_pic_reg_ever_alive): New.
1902         (legitimize_pic_address): Replace df_set_regs_ever_live with new
1903         set_pic_reg_ever_alive.
1904         (legitimize_tls_address): Likewise.
1905         (ix86_pic_register_p): New check.
1906         (ix86_delegitimize_address): Add check on pseudo register.
1907         (ix86_expand_call): Insert move from pseudo PIC register to ABI
1908         defined REAL_PIC_OFFSET_TABLE_REGNUM.
1909         (TARGET_INIT_PIC_REG): New.
1910         (TARGET_USE_PSEUDO_PIC_REG): New.
1911         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Return INVALID_REGNUM
1912         if pic_offset_table_rtx exists.
1913         * doc/tm.texi.in (TARGET_USE_PSEUDO_PIC_REG, TARGET_INIT_PIC_REG):
1914         Document.
1915         * doc/tm.texi: Regenerate.
1916         * function.c (assign_parms): Generate pseudo register for PIC.
1917         * init-regs.c (initialize_uninitialized_regs): Ignor pseudo PIC
1918         register.
1919         * ira-color.c (color_pass): Add check on pseudo register.
1920         * ira-emit.c (change_loop): Don't create copies for PIC pseudo
1921         register.
1922         * ira.c (split_live_ranges_for_shrink_wrap): Add check on pseudo
1923         register.
1924         (ira): Add target specific PIC register initialization.
1925         (do_reload): Keep PIC pseudo register.
1926         * lra-assigns.c (spill_for): Add checks on pseudo register.
1927         * lra-constraints.c (contains_symbol_ref_p): New.
1928         (lra_constraints): Enable lra risky transformations when PIC is pseudo
1929         register.
1930         * shrink-wrap.c (try_shrink_wrapping): Add check on pseudo register.
1931         * target.def (use_pseudo_pic_reg): New.
1932         (init_pic_reg): New.
1934 2014-10-13  Evgeny Stupachenko  <evstupac@gmail.com>
1936         * config/i386/x86-tune.def (X86_TUNE_SSE_PARTIAL_REG_DEPENDENCY):
1937         Remove m_SILVERMONT and m_INTEL from the tune.
1939 2014-10-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1941         PR libfortran/63471
1942         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
1943         when _HPUX_SOURCE is defined.
1945 2014-10-13  Jan Hubicka  <hubicka@ucw.cz>
1947         PR tree-optimization/62127
1948         * tree.c (remap_type_1): When remapping array, remap
1949         also its type.
1951 2014-10-13  Christophe Lyon  <christophe.lyon@linaro.org>
1953         * Makefile.in: (check-%): Update comment, as RUNTESTFLAGS no
1954         longer impact parallelization.
1956 2014-10-13  Jan Hubicka  <hubicka@ucw.cz>
1958         PR bootstrap/63496
1959         * ipa-polymorphic-call.c (extr_type_from_vtbl_ptr_store): Fix pasto.
1961 2014-10-13  Marat Zakirov  <m.zakirov@samsung.com>
1963         * asan.c (instrument_derefs): BIT_FIELD_REF added.
1965 2014-10-13  Richard Biener  <rguenther@suse.de>
1967         PR tree-optimization/63419
1968         * gimple-fold.h (gimple_convert): New function.
1969         * gimple-fold.c (gimple_convert): Likewise.
1970         * tree-ssa-pre.c (create_expression_by_pieces): Use gimple_convert
1971         to split out required conversions early.
1973 2014-10-13  Richard Sandiford  <richard.sandiford@arm.com>
1975         * rtlanal.c (generic_subrtx_iterator <T>::add_subrtxes_to_queue):
1976         Add the parts of an insn in reverse order, with the pattern at
1977         the top of the queue.  Detect when we're iterating over a SEQUENCE
1978         pattern and in that case just consider patterns of subinstructions.
1980 2014-10-12  Oleg Endo  <olegendo@gcc.gnu.org>
1982         PR target/59401
1983         * config/sh/sh-protos (sh_find_equiv_gbr_addr): Use rtx_insn* instead
1984         of rtx.
1985         * config/sh/sh.c (sh_find_equiv_gbr_addr): Use def chains instead of
1986         insn walking.
1987         (sh_find_equiv_gbr_addr): Do nothing if input mem is already a GBR
1988         address.  Use def chains to handle GBR clobbering call insns.
1990 2014-10-12  Trevor Saunders  <tsaunders@mozilla.com>
1992         * asan.c, cfgloop.c, cfgloop.h, cgraph.c, cgraph.h,
1993         config/darwin.c, config/m32c/m32c.c, config/mep/mep.c,
1994         config/mips/mips.c, config/rs6000/rs6000.c, dwarf2out.c,
1995         function.c, function.h, gimple-ssa.h, libfuncs.h, optabs.c,
1996         output.h, rtl.h, sese.c, symtab.c, tree-cfg.c, tree-dfa.c,
1997         tree-ssa.c, varasm.c: Use hash-table instead of hashtab.
1998         * doc/gty.texi (for_user): Document new option.
1999         * gengtype.c (create_user_defined_type): Don't try to get a struct for
2000         char.
2001         (walk_type): Don't error out on for_user option.
2002         (write_func_for_structure): Emit user marking routines if requested by
2003         for_user option.
2004         (write_local_func_for_structure): Likewise.
2005         (main): Mark types with for_user option as used.
2006         * ggc.h (gt_pch_nx): Add overload for unsigned int.
2007         * hash-map.h (hash_map::hash_entry::pch_nx_helper): AddOverloads.
2008         * hash-table.h (ggc_hasher): New struct.
2009         (hash_table::create_ggc): New function.
2010         (gt_pch_nx): New overload for hash_table.
2012 2014-10-11  Oleg Endo  <olegendo@gcc.gnu.org>
2014         * config/sh/sh.h (TARGET_SH4A_ARCH): Remove macro.
2015         * config/sh/sh.h: Replace uses of TARGET_SH4A_ARCH with TARGET_SH4A.
2016         * config/sh/sh.c: Likewise.
2017         * config/sh/sh-mem.cc: Likewise.
2018         * config/sh/sh.md: Likewise.
2019         * config/sh/predicates.md: Likewise.
2020         * config/sh/sync.md: Likewise.
2022 2014-10-11  Martin Liska  <mliska@suse.cz>
2024         PR middle-end/63376
2025         * cgraphunit.c (symbol_table::process_new_functions): Missing call
2026         for call_cgraph_insertion_hooks added.
2028 2014-10-10  Jakub Jelinek  <jakub@redhat.com>
2030         PR c/63495
2031         * stor-layout.c (min_align_of_type): Don't decrease alignment
2032         through BIGGEST_FIELD_ALIGNMENT or ADJUST_FIELD_ALIGN if
2033         TYPE_USER_ALIGN is set.
2035 2014-10-10  Uros Bizjak  <ubizjak@gmail.com>
2037         PR rtl-optimization/63483
2038         * alias.c (true_dependence_1): Do not exit early for MEM_READONLY_P
2039         references when alignment ANDs are involved.
2040         (write_dependence_p): Ditto.
2041         (may_alias_p): Ditto.
2043 2014-10-10  Marek Polacek  <polacek@redhat.com>
2045         * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_OBJECT_SIZE.
2046         * doc/invoke.texi: Document -fsanitize=object-size.
2047         * flag-types.h (enum sanitize_code): Add SANITIZE_OBJECT_SIZE and
2048         or it into SANITIZE_UNDEFINED.
2049         * gimple-fold.c (gimple_fold_call): Optimize IFN_UBSAN_OBJECT_SIZE.
2050         * internal-fn.c (expand_UBSAN_OBJECT_SIZE): New function.
2051         * internal-fn.def (UBSAN_OBJECT_SIZE): Define.
2052         * opts.c (common_handle_option): Handle -fsanitize=object-size.
2053         * ubsan.c: Include tree-object-size.h.
2054         (ubsan_type_descriptor): Call tree_to_uhwi instead of tree_to_shwi.
2055         (ubsan_expand_bounds_ifn): Use false instead of 0.
2056         (ubsan_expand_objsize_ifn): New function.
2057         (instrument_object_size): New function.
2058         (pass_ubsan::execute): Add object size instrumentation.
2059         * ubsan.h (ubsan_expand_objsize_ifn): Declare.
2061 2014-10-10  Richard Henderson  <rth@redhat.com>
2063         PR target/63404
2064         * shrink-wrap.c (move_insn_for_shrink_wrap): Don't use single_set.
2065         Restrict the set of expressions we're willing to move.
2067 2014-10-10  Jeff Law  <law@redhat.com>
2069         * ira.c (struct equivalence): Promote INIT_INSNs field to
2070         an rtx_insn_list.  Add comments.
2071         (no_equiv): Promote LIST to an rtx_insn_list.  Update
2072         testing for and creating the special marker.  Use methods
2073         to extract the insn and next pointers.  Promote INSN to an
2074         rtx_insn.
2075         (update_equiv_regs): Update test for special marker in the
2076         INIT_INSNs list.
2078 2014-10-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2080         * configure.ac: Add --enable-fix-cortex-a53-835769 option.
2081         * configure: Regenerate.
2082         * config/aarch64/aarch64.c (aarch64_override_options): Handle
2083         TARGET_FIX_ERR_A53_835769_DEFAULT.
2084         * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): Set Init
2085         value to 2.
2086         * doc/install.texi (aarch64*-*-*): Document
2087         new --enable-fix-cortex-a53-835769 option.
2089 2014-10-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2090             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2092         * config/aarch64/aarch64.h (FINAL_PRESCAN_INSN): Define.
2093         (ADJUST_INSN_LENGTH): Define.
2094         * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): New option.
2095         * config/aarch64/aarch64.c (is_mem_p): New function.
2096         (is_memory_op): Likewise.
2097         (aarch64_prev_real_insn): Likewise.
2098         (is_madd_op): Likewise.
2099         (dep_between_memop_and_curr): Likewise.
2100         (aarch64_madd_needs_nop): Likewise.
2101         (aarch64_final_prescan_insn): Likewise.
2102         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-835769
2103         and -mno-fix-cortex-a53-835769 options.
2105 2014-10-10  Jakub Jelinek  <jakub@redhat.com>
2107         PR tree-optimization/63464
2108         * tree-switch-conversion.c (struct case_bit_test): Remove
2109         hi and lo fields, add wide_int mask field.
2110         (emit_case_bit_tests): Add MAXVAL argument, rewrite uses of
2111         hi/lo fields into wide_int mask operations, optimize by pretending
2112         minval to be 0 if maxval is small enough.
2113         (process_switch): Adjust caller.
2115 2014-10-10  Richard Biener  <rguenther@suse.de>
2117         PR tree-optimization/63379
2118         * tree-vect-slp.c (vect_get_constant_vectors): Do not compute
2119         a neutral operand for min/max when it is not a reduction chain.
2121 2014-10-10  Richard Biener  <rguenther@suse.de>
2123         PR tree-optimization/63476
2124         * tree-ssa-pre.c (struct bb_bitmap_sets): Add vop_on_exit member.
2125         (BB_LIVE_VOP_ON_EXIT): New define.
2126         (create_expression_by_pieces): Assign VUSEs to stmts.
2127         (compute_avail): Track BB_LIVE_VOP_ON_EXIT.
2128         (pass_pre::execute): Assert virtual SSA form is up-to-date
2129         after insertion.
2131 2014-10-10  Eric Botcazou  <ebotcazou@adacore.com>
2133         * lra-assigns.c (assign_by_spills): Error out on spill failure.
2135 2014-10-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
2137         * pa-polymorphic-call.c (check_stmt_for_type_change): Move
2138         assertion.
2140 2014-10-09  Richard Biener  <rguenther@suse.de>
2142         PR tree-optimization/63380
2143         * tree-ssa-tail-merge.c (stmt_local_def): Exclude stmts that
2144         may trap.
2146 2014-10-09  Joern Rennecke  <joern.rennecke@embecosm.com>
2148         * config/avr/avr.opt (mmcu=): Change to have a string value.
2149         (mn-flash=, mskip-bug, march=, mrmw): New options.
2150         (HeaderInclude): New.
2151         (mmcu=): Remove Var / Init clauses.
2152         * config/avr/avr.h (DRIVER_SELF_SPECS): Translate -mmcu into a
2153         -specs option.
2154         (SYMBOL_FLAG_IO, SYMBOL_FLAG_ADDRESS): Define.
2155         (ASM_OUTPUT_ALIGNED_BSS): Use avr_asm_asm_output_aligned_bss.
2156         (SYMBOL_FLAG_IO_LOW): Define.
2157         (avr_device_to_as, avr_device_to_ld): Don't declare.
2158         (avr_device_to_data_start, avr_device_to_startfiles): Likewise.
2159         (avr_device_to_devicelib, avr_device_to_sp8): Likewise.
2160         (EXTRA_SPEC_FUNCTIONS): Don't define.
2161         (ASM_SPEC): Translate -arch= option to -mmcu= option.
2162         (LINK_SPEC): Translate -arch= option to -m= option.
2163         Don't use device_to_ld / device_to_data_start.
2164         (STARTFILE_SPEC): Now empty.
2165         (ASM_SPEC): Add -%{mrelax: --mlink-relax}.
2166         * config/avr/gen-avr-mmcu-specs.c: New file.
2167         * config/avr/t-avr (gen-avr-mmcu-specs$(build_exeext)): New rule.
2168         (s-device-specs): Likewise.
2169         (GCC_PASSES): Add s-device-specs.
2170         (install-driver): Depend on install-device-specs.
2171         (install-device-specs): New rule.
2172         * config/avr/avr.c (avr_option_override): Look up mcu arch by
2173         avr_arch_index and provide fallback initialization for avr_n_flash.
2174         (varasm.h): #include.
2175         (avr_print_operand) <i>: Allow SYMBOL_REF with SYMBOL_FLAG_IO;
2176         (avr_handle_addr_attribute, avr_eval_addr_attrib): New functions.
2177         (avr_attribute_table): Add "io", "address" and "io_low".
2178         (avr_asm_output_aligned_decl_common): Change type of decl to tree.
2179         Add special handling for symbols with "io" and/or "address" attributes.
2180         (avr_asm_asm_output_aligned_bss): New function.
2181         (avr_encode_section_info): Set SYMBOL_FLAG_IO and SYMBOL_FLAG_ADDRESS
2182         as appropriate.  Handle io_low attribute.
2183         (avr_out_sbxx_branch): Handle symbolic io addresses.
2184         (avr_xload_libgcc_p, avr_nonconst_pointer_addrspace): Use
2185         avr_n_flash instead of avr_current_device->n_flash.
2186         (avr_pgm_check_var_decl, avr_insert_attributes): Likewise.
2187         (avr_emit_movmemhi): Likewise.
2188         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Likewise.
2189         Use TARGET_RMW instead of avr_current_device->dev_attributes.
2190         Don't define avr_current_device->macro (that's the specfile's job).
2191         Use TARGET_SKIP_BUG instead of avr_current_device->errata_skip.
2192         * config/avr/avr.c (avr_2word_insn_p): Likewise.
2193         * config/avr/avr.md (*cpse.ne): Likewise.
2194         (mov<mode>): Use avr_eval_addr_attrib.
2195         (cbi): Change constraint for low_io_address_operand operand to "i".
2196         (sbi, sbix_branch, sbix_branch_bit7, insv.io, insv.not.io): Likewise.
2197         * config/avr/predicates.md (io_address_operand):
2198         Allow SYMBOL_REF with SYMBOL_FLAG_IO.
2199         (low_io_address_operand): Allow SYMBOL_REF with SYMBOL_FLAG_IO_LOW.
2200         * config/avr/avr-protos.h (avr_asm_output_aligned_decl_common):
2201         Update prototype.
2202         (avr_eval_addr_attrib, avr_asm_asm_output_aligned_bss): Prototype.
2203         * config/avr/genmultilib.awk: Use -march=.
2204         Remove Multilib matches processing.
2205         * config/avr/t-multilib, config/avr/avr-tables.opt: Regenerate.
2206         * config/avr/avr-arch.h: Add double include guard.
2207         (avr_mcu_t) <library_name>: Update comment.
2208         * config/avr/driver-avr.c (avr_device_to_as): Delete.
2209         (avr_device_to_ld, avr_device_to_data_start): Likewise.
2210         (avr_device_to_startfiles, avr_device_to_devicelib): Likewise.
2211         (avr_device_to_sp8): Likewise.
2212         * config/avr/genopt.sh:  Instead avr_mcu, emit an Enum for avr_arch.
2214         * doc/extend.texi (io, address): Document new AVR variable attributes.
2215         (io_low): Likewise.
2217 2014-10-09  Marek Polacek  <polacek@redhat.com>
2219         * doc/invoke.texi: Document -fsanitize=bool and -fsanitize=enum.
2221 2014-10-08  Richard Biener  <rguenther@suse.de>
2223         PR tree-optimization/61969
2224         * tree-nrv.c (pass_nrv::execute): Properly test for automatic
2225         variables.
2227 2014-10-09  Richard Biener  <rguenther@suse.de>
2229         PR tree-optimization/63445
2230         * tree-vrp.c (simplify_cond_using_ranges): Only warn about
2231         overflow for non-equality compares.
2233 2014-10-09  Uros Bizjak  <ubizjak@gmail.com>
2235         PR rtl-optimization/57003
2236         * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
2237         also check CALL_INSN_FUNCTION_USAGE for clobbers again after
2238         killing regs_invalidated_by_call.
2240 2014-10-08  Teresa Johnson  <tejohnson@google.com>
2242         PR bootstrap/63432.
2243         * tree-ssa-threadupdate.c (estimated_freqs_path): New function.
2244         (ssa_fix_duplicate_block_edges): Invoke it.
2245         (mark_threaded_blocks): Make two passes to avoid ordering dependences.
2247 2014-10-08  Oleg Endo  <olegendo@gcc.gnu.org>
2249         PR target/52941
2250         * config/sh/sync.md (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
2251         atomic_fetch_<fetchop_name>si_hard,
2252         atomic_fetch_<fetchop_name><mode>_hard, atomic_fetch_nandsi_hard,
2253         atomic_fetch_nand<mode>_hard, atomic_<fetchop_name>_fetchsi_hard,
2254         atomic_<fetchop_name>_fetch<mode>_hard, atomic_nand_fetchsi_hard,
2255         atomic_nand_fetch<mode>_hard): Add missing set of T_REG.
2257 2014-10-08  Rong Xu  <xur@google.com>
2259         * gcov-tool.c (profile_overlap): New driver function
2260         to compute profile overlap.
2261         (print_overlap_usage_message): New.
2262         (overlap_usage): New.
2263         (do_overlap): New.
2264         (print_usage): Add calls to overlap function.
2265         (main): Ditto.
2266         * doc/gcov-tool.texi: Add documentation.
2268 2014-10-08  Steve Ellcey  <sellcey@mips.com>
2270         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Change
2271         LINUX64_DRIVER_SELF_SPECS to LINUX_DRIVER_SELF_SPECS
2273 2014-10-08  Jan Hubicka  <hubicka@ucw.cz>
2275         * ipa-polymorphic-call.c (extr_type_from_vtbl_store): Do better
2276         pattern matching of MEM_REF.
2277         (check_stmt_for_type_change): Update.
2279 2014-10-08  Steve Ellcey  <sellcey@mips.com>
2281         * config/mips/linux64.h: Remove.
2282         * config/mips/gnu-user64.h: Remove.
2283         * gcc.config (mips*-*-*): Remove references to linux64.h and
2284         gnu-user64.h
2285         * config/mips/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): Replace
2286         with modified version from gnu-user64.h.
2287         (LINUX_DRIVER_SELF_SPECS): Update parts from gnu-user64.h.
2288         (LOCAL_LABEL_PREFIX): Copy from gnu-user64.h.
2289         * config/mips/linux.h (GNU_USER_LINK_EMULATION32): Copy from
2290         linux64.h.
2291         (GNU_USER_LINK_EMULATION64): Ditto.
2292         (GNU_USER_LINK_EMULATIONN32): Ditto.
2293         (GLIBC_DYNAMIC_LINKER32): Ditto.
2294         (GLIBC_DYNAMIC_LINKER64): Ditto.
2295         (GLIBC_DYNAMIC_LINKERN32): Ditto.
2296         (UCLIBC_DYNAMIC_LINKER32): Ditto.
2297         (UCLIBC_DYNAMIC_LINKER64): Ditto.
2298         (UCLIBC_DYNAMIC_LINKERN32): Ditto.
2299         (BIONIC_DYNAMIC_LINKERN32): Ditto.
2300         (GNU_USER_DYNAMIC_LINKERN32): Ditto.
2301         (GLIBC_DYNAMIC_LINKER): Delete.
2302         (UCLIBC_DYNAMIC_LINKER): Delete.
2304 2014-10-08  Joern Rennecke  <joern.rennecke@embecosm.com>
2305             Richard Biener  <rguenther@suse.de>
2307         * cfgexpand.c (expand_debug_expr) <TARGET_MEM_REF>:
2308         Get address space from operand 0 (BASE).
2310 2014-10-07  Iain Sandoe  <iain@codesourcery.com>
2312         PR target/61387
2313         * config/i386/i386.c (x86_output_mi_thunk): Fix darwin fallout.
2315 2014-10-07  Aldy Hernandez  <aldyh@redhat.com>
2317         * dwarf2out.c: Remove current_function_has_inlines.
2318         (gen_subprogram_die): Same.
2319         (gen_inlined_subroutine_die): Same.
2321 2014-10-07  Ilya Tocar  <ilya.tocar@intel.com>
2323         * config/i386/adxintrin.h (_subborrow_u64): Use long long for param
2324         type.
2325         (_addcarry_u64): Ditto.
2326         (_addcarryx_u64): Ditto.
2328 2014-10-07  Eric Botcazou  <ebotcazou@adacore.com>
2330         * cgraph.h (cgraph_node::get_fun): Declare.
2331         * cgraph.c (cgraph_node::get_fun): New method.
2332         * ipa-inline.c (can_inline_edge_p): Use it.
2334 2014-10-07  Eric Botcazou  <ebotcazou@adacore.com>
2336         * lto-opts.c (lto_write_options): Handle -fmath-errno, -fsigned-zeros
2337         and -ftrapping-math.
2338         * lto-wrapper.c (merge_and_complain): Likewise.
2339         (run_gcc): Likewise.
2341 2014-10-06  Rong Xu  <xur@google.com>
2343         * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): New param.
2344         * tree-profile.c: (params.h): New include.
2345         (init_ic_make_global_vars): Make __gcov_indirect_call_topn_callee
2346         and __gcov_indirect_call_topn_counters for
2347         indirect_call_topn_profile.
2348         (gimple_init_edge_profiler): New decls for
2349         __gcov_indirect_call_topn_profiler.
2350         (gimple_gen_ic_profiler): Generate the correct profiler call.
2351         (gimple_gen_ic_func_profiler): Fix format.
2352         * value-prof.c (params.h): New include.
2353         (dump_histogram_value): Hanlde indirect_call_topn counters.
2354         (stream_in_histogram_value): Ditto.
2355         (gimple_indirect_call_to_profile): Use indirect_call_topn
2356         profile when PARAM_INDIR_CALL_TOPN_PROFILE is set.
2357         (gimple_find_values_to_profile): Hanlde indirect_call_topn
2358         counters.
2359         * value-prof.h (enum hist_type): Histrogram type for
2360         indirect_call_topn counters.
2361         * profile.c (instrument_values): Instrument
2362         indirect_call_topn counters.
2364 2014-10-06  Rong Xu  <xur@google.com>
2366         * Makefile.in: Fix dependence.
2367         * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV): Add
2368         indirect call topn profiler.
2369         * gcov-io.h: Ditto.
2371 2014-10-06  Eric Botcazou  <ebotcazou@adacore.com>
2373         * calls.c (expand_call): Do not use the target as the return slot if
2374         it is not sufficiently aligned.
2376 2014-10-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2378         * config/rs6000/rs6000.c (analyze_swaps commentary): Add
2379         discussion of permutes and why we don't handle them.
2381 2014-10-06  Eric Botcazou  <ebotcazou@adacore.com>
2383         * config/sparc/predicates.md (int_register_operand): Delete.
2385 2014-10-06  Eric Botcazou  <ebotcazou@adacore.com>
2387         * dwarf2cfi.c (create_pseudo_cfg): Fix trace numbering.
2389 2014-10-06  Jakub Jelinek  <jakub@redhat.com>
2391         * ubsan.h (ubsan_get_source_location): New prototype.
2392         * ubsan.c (ubsan_source_location_type): New variable.
2393         Function renamed to ...
2394         (ubsan_get_source_location_type): ... this.  Cache
2395         return value in ubsan_source_location_type variable.
2396         (ubsan_source_location, ubsan_create_data): Use
2397         ubsan_get_source_location_type instead of
2398         ubsan_source_location_type.
2399         * asan.c (asan_protect_global): Don't protect globals
2400         with ubsan_get_source_location_type () type.
2401         (asan_add_global): Provide global decl location info
2402         if possible.
2404 2014-10-04  Jan Hubicka  <hubicka@ucw.cz>
2406         * ipa-prop.c (try_make_edge_direct_virtual_call): Remove overactive
2407         sanity check.
2409 2014-10-04  Jan Hubicka  <hubicka@ucw.cz>
2411         * ipa-polymorphic-call.c (possible_placement_new): Fix condition
2412         on size.
2413         (ipa_polymorphic_call_context::restrict_to_inner_type): Do not walk
2414         into vptr pointer.
2415         (ipa_polymorphic_call_context::dump): Fix formating.
2416         (walk_ssa_copies): Add logic avoiding loops; update uses.
2417         * ipa-prop.c (ipa_analyze_call_uses): Compute vptr_changed.
2419 2014-10-02  Mark Wielaard  <mjw@redhat.com>
2421         PR debug/63239
2422         * dwarf2out.c (gen_subprogram_die): When a member function is
2423         explicitly deleted then add a DW_AT_GNU_deleted attribute.
2424         * langhooks.h (struct lang_hooks_for_decls): Add
2425         function_decl_deleted_p langhook.
2426         * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Define.
2427         (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_DELETED_P.
2429 2014-10-04  Jan Hubicka  <hubicka@ucw.cz>
2431         * ipa-polymorphic-call.c (walk_ssa_copies): Recognize
2432         NULL pointer checks.
2433         (ipa_polymorphic_call_context::get_dynamic_type): Return true
2434         if type doesn't change.
2435         * cgraph.h (cgraph_indirect_call_info): New flag.
2436         * cgraph.c (cgraph_node::create_indirect_edge): Initialize it.
2437         (cgraph_node::dump): Dump it.
2438         * ipa-prop.c (ipa_analyze_call_uses):  Ignore return valud
2439         of context.get_dynamic_type.
2440         (ipa_make_edge_direct_to_target): Do not speculate
2441         edge that is already speuclative.
2442         (try_make_edge_direct_virtual_call): Use VPTR_CHANGED; Do not
2443         speculate to __builtin_unreachable
2444         (ipa_write_indirect_edge_info, ipa_read_indirect_edge_info): Stream
2445         vptr_changed.
2446         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use vptr_changed.
2448 2014-10-04  Jan Hubicka  <hubicka@ucw.cz>
2450         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Call
2451         get_dynamic_type; drop TODO.
2452         * ipa-polymorphic-call.c
2453         (ipa_polymorphic_call_context::get_dynamic_type): Be ready
2454         for otr_type to be unknown.
2456 2014-10-04  Trevor Saunders  <tsaunders@mozilla.com>
2458         * common/config/score/score-common.c: Remove.
2459         * config.gcc: Remove support for score-*.
2460         * config/score/constraints.md: Remove.
2461         * config/score/elf.h: Remove.
2462         * config/score/predicates.md: Remove.
2463         * config/score/score-conv.h: Remove.
2464         * config/score/score-generic.md: Remove.
2465         * config/score/score-modes.def: Remove.
2466         * config/score/score-protos.h: Remove.
2467         * config/score/score.c: Remove.
2468         * config/score/score.h: Remove.
2469         * config/score/score.md: Remove.
2470         * config/score/score.opt: Remove.
2471         * doc/md.texi: Don't document score-*.
2473 2014-10-04  Trevor Saunders  <tsaunders@mozilla.com>
2475         PR pch/63429
2476         * genconditions.c: Directly include ggc.h before rtl.h.
2478 2014-10-03  Jan Hubicka  <hubicka@ucw.cz>
2480         * ipa-polymorphic-call.c
2481         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Fix
2482         code determining speculative type.
2483         (ipa_polymorphic_call_context::combine_with): Fix speculation merge.
2485 2014-10-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2487         * altivec.md (altivec_lvsl): New define_expand.
2488         (altivec_lvsl_direct): Rename define_insn from altivec_lvsl.
2489         (altivec_lvsr): New define_expand.
2490         (altivec_lvsr_direct): Rename define_insn from altivec_lvsr.
2491         * rs6000.c (rs6000_expand_builtin): Change to use
2492         altivec_lvs[lr]_direct; remove commented-out code.
2494 2014-10-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2496         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
2497         Issue a warning message when vec_lvsl or vec_lvsr is used with a
2498         little endian target.
2500 2014-10-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2502         * tree-pretty-print.c (dump_location): Make it extern. Dump also
2503         the column.
2504         * tree-pretty-print.h (dump_location): Declare.
2505         * gimple-pretty-print.c (dump_gimple_phi): Use dump_location.
2506         (pp_gimple_stmt_1): Likewise.
2507         (dump_implicit_edges): Likewise.
2508         * gimplify.c (gimplify_call_expr): Use LOCATION_FILE and
2509         LOCATION_LINE.
2512 2014-10-03  David Malcolm  <dmalcolm@redhat.com>
2514         * gcc.c (driver::global_initializations): Remove "const" so
2515         that GCC_DRIVER_HOST_INITIALIZATION can modify decoded_options
2516         and decoded_options_count.
2518 2014-10-03  Maciej W. Rozycki  <macro@codesourcery.com>
2520         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Remove
2521         macro.
2522         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Handle
2523         TARGET_E500_DOUBLE case here.
2525 2014-10-03  Marc Glisse  <marc.glisse@inria.fr>
2527         PR c++/54427
2528         PR c++/57198
2529         PR c++/58845
2530         * doc/extend.texi (Vector Extensions): Document &&, ||, ! in C++.
2532 2014-10-03  Jan Hubicka  <hubicka@ucw.cz>
2534         * cgraph.h (struct indirect_call_info): Add IN_POLYMORPHIC_CDTOR
2535         * lto-cgraph.c (lto_output_edge, input_edge): Stream
2536         in_polymorphic_cdtor
2537         * cgraph.c (symbol_table::create_edge): Compute in_polymorphic_cdtor.
2538         (cgraph_edge::make_speculative): Copy in_polymorphic_cdtor.
2539         * cgraphclones.c (cgraph_edge::clone): Likewise.
2540         * ipa-prop.c (update_jump_functions_after_inlining,
2541         try_make_edge_direct_virtual_call): Pass in_polymorphic_cdtor
2542         to possible_dynamic_type_change.
2543         (decl_maybe_in_construction_p): Allow empty OUTER_TYPE and BASE.
2544         (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
2545         IN_POLY_CDOTR argument.
2547         * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Be ready
2548         for BASE and OUTER_TYPE being NULL.
2549         (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
2550         in_poly_cdtor parameter.
2552 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
2554         * config/i386/i386.c (ix86_expand_vec_perm_vpermi2): Fix up formatting.
2555         (ix86_expand_vec_perm): Only call ix86_expand_vec_perm_vpermi2 if
2556         TARGET_AVX512F.
2557         (expand_vec_perm_1): Likewise.
2559 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
2560             Uros Bizjak  <ubizjak@gmail.com>
2562         PR tree-optimization/61403
2563         * config/i386/i386.c (expand_vec_perm_palignr): Fix a spelling
2564         error in comment.  Also optimize 256-bit vectors for AVX2
2565         or AVX (floating vectors only), provided the first permutation
2566         can be performed in one insn.
2568 2014-10-03  David Malcolm  <dmalcolm@redhat.com>
2570         * gcc.c (class driver): New class.
2571         (main): Reimplement in terms of driver::main, moving most of the
2572         locals to be locals within individual methods of class driver.
2573         The remaining locals "explicit_link_files", "decoded_options" and
2574         "decoded_options_count" are used by multiple driver:: methods, and
2575         so become member data.  Doing so isolates the argc/argv reads and
2576         writes.  Replace "goto out" with a special exit code from
2577         new method driver::prepare_infiles.  Split out the old
2578         implementation of main into the following...
2579         (driver::main): New function, corresponding to the old "main"
2580         implementation.
2581         (driver::set_progname): New function, taken from the old
2582         "main" implementation.
2583         (driver::expand_at_files): Likewise.
2584         (driver::decode_argv): Likewise.
2585         (driver::global_initializations): Likewise.
2586         (driver::build_multilib_strings): Likewise.
2587         (driver::set_up_specs): Likewise.
2588         (driver::putenv_COLLECT_GCC): Likewise.
2589         (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Likewise.
2590         (driver::handle_unrecognized_options): Likewise.
2591         (driver::maybe_print_and_exit): Likewise.
2592         (driver::prepare_infiles): Likewise.
2593         (driver::do_spec_on_infiles): Likewise.
2594         (driver::maybe_run_linker): Likewise.
2595         (driver::final_actions): Likewise.
2596         (driver::get_exit_code): Likewise.
2598 2014-10-03  Yury Gribov  <y.gribov@samsung.com>
2600         * asan.c (asan_finish_file): Disable __asan_init calls for KASan;
2601         don't emit empty ctors.
2603 2014-10-03  Eric Botcazou  <ebotcazou@adacore.com>
2605         * convert.c (convert_to_integer): Do not introduce useless conversions
2606         between integral types.
2608 2014-10-03  David Sherwood  <david.sherwood@arm.com>
2610         * ira-int.h (ira_allocno): Mark hard_regno as signed.
2612 2014-10-03  Ilya Enkovich  <ilya.enkovich@intel.com>
2614         * lra-constraints.c (inherit_in_ebb): Handle calls with
2615         multiple return values.
2616         * caller-save.c (save_call_clobbered_regs): Likewise.
2618 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
2620         * tree-vect-data-refs.c (vect_permute_load_chain,
2621         vect_shift_permute_load_chain): Fix a typo in temporary var names,
2622         suffle3 to shuffle3.
2624         PR libgomp/61200
2625         * omp-low.c (taskreg_contexts): New variable.
2626         (scan_omp_parallel): Push newly created context into taskreg_contexts
2627         vector and move record layout code to finish_taskreg_scan.
2628         (scan_omp_task): Likewise.
2629         (finish_taskreg_scan): New function.
2630         (execute_lower_omp): Call finish_taskreg_scan on all taskreg_contexts
2631         vector elements and release it.
2633         PR target/62128
2634         * config/i386/i386.c (expand_vec_perm_palignr): If op1, op0 order
2635         of palignr arguments can't be used due to min 0 or max - min
2636         too high, try also op0, op1 order of palignr arguments.
2638 2014-10-02  Jan Hubicka  <hubicka@ucw.cz>
2640         * cgraph.h (ipa_polymorphic_call_context):
2641         Turn bools into bitfields; add DYNAMIC; make MAKE_SPECULATIVE
2642         private, add POSSIBLE_DYNAMIC_TYPE_CHANGE.
2643         * ipa-polymorphic-call.c
2644         (ipa_polymorphic_call_context::restrict_to_inner_class): Allow accesses
2645         past end of dynamic types.
2646         (ipa_polymorphic_call_context::stream_out,
2647         speculative_outer_type): Stream dynamic flag.
2648         (ipa_polymorphic_call_context::set_by_decl): Clear DYNAMIC.
2649         (ipa_polymorphic_call_context::ipa_polymorphic_call_context):
2650         Clear DYNAMIC.
2651         (ipa_polymorphic_call_context::get_dynamic_type): Use DYNAMIC;
2652         set it.
2653         (ipa_polymorphic_call_context::combine_with): Propagate dynamic.
2654         * ipa-prop.c (update_jump_functions_after_inlining,
2655         try_make_edge_direct_virtual_call): Use possible_dynamic_type_change.
2657 2014-10-02  Teresa Johnson  <tejohnson@google.com>
2659         * tree-ssa-threadupdate.c (freqs_to_counts_path): Scale frequencies
2660         up when synthesizing counts to avoid rounding errors.
2662 2014-10-02  Teresa Johnson  <tejohnson@google.com>
2664         PR middle-end/63422
2665         * tree-ssa-threadupdate.c (freqs_to_counts_path): Remove
2666         asserts to handle incoming insanities.
2668 2014-10-02  Martin Jambor  <mjambor@suse.cz>
2670         PR tree-optimization/63375
2671         * tree-sra.c (build_access_from_expr_1): Disqualify volatile
2672         references.
2674 2014-10-02  Olivier Hainque  <hainque@adacore.com>
2676         * Makefile.in (CROSS): Define, to @CROSS.
2678 2014-10-02  Jakub Jelinek  <jakub@redhat.com>
2680         PR target/62128
2681         * config/i386/i386.c (expand_vec_perm_1): Try expand_vec_perm_palignr
2682         if it expands to a single insn only.
2683         (expand_vec_perm_palignr): Add SINGLE_INSN_ONLY_P argument.  If true,
2684         fail unless in_order is true.  Add forward declaration.
2685         (expand_vec_perm_vperm2f128): Fix up comment about which permutation
2686         is useful for one_operand_p.
2687         (ix86_expand_vec_perm_const_1): Adjust expand_vec_perm_palignr caller.
2689 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
2691         * cgraphclones.c (build_function_type_skip_args): Do not make new
2692         type variant of old.
2694 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
2696         * ipa-prop.h (ipa_get_controlled_uses): Add hack to avoid ICE
2697         when speculation is added.
2698         (ipa_edge_args): Add polymorphic_call_contexts.
2699         (ipa_get_ith_polymorhic_call_context): New accesor.
2700         (ipa_make_edge_direct_to_target): Add SPECULATIVE parameter.
2701         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Print contexts.
2702         (ipa_compute_jump_functions_for_edge): Compute contexts.
2703         (update_jump_functions_after_inlining): Update contexts.
2704         (ipa_make_edge_direct_to_target): Add SPECULATIVE argument;
2705         update dumping; add speculative edge creation.
2706         (try_make_edge_direct_virtual_call): Add CTX_PTR parameter; handle
2707         context updating.
2708         (update_indirect_edges_after_inlining): Pass down context.
2709         (ipa_edge_duplication_hook): Duplicate contexts.
2710         (ipa_write_node_info): Stream out contexts.
2711         (ipa_read_node_info): Stream in contexts.
2712         * ipa-devirt.c (type_all_derivations_known_p): Avoid ICE on non-ODR
2713         types.
2714         (try_speculative_devirtualization): New function.
2715         * ipa-utils.h (try_speculative_devirtualization): Declare.
2717 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
2719         * ipa.c (walk_polymorphic_call_targets): Avoid ICE when
2720         dumping during WPA.
2722 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
2724         * ipa-prop.c (ipa_modify_formal_parameters): Do not merge
2725         type variants.
2727 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
2729         * ipa-polymorphic-call.c
2730         (ipa_polymorphic_call_context::restrict_to_inner_class):
2731         Rename EXPECTED_TYPE to OTR_TYPE; Validate speculation late;
2732         use speculation_consistent_p to do so; Add CONSDER_BASES
2733         and CONSIDER_PLACEMENT_NEW parameters.
2734         (contains_type_p): Add CONSDER_PLACEMENT_NEW and CONSIDER_BASES;
2735         short circuit obvious cases.
2736         (ipa_polymorphic_call_context::dump): Improve formatting.
2737         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Use
2738         combine_speculation_with to record speculations; Do not ICE when
2739         object is located in pointer type decl; do not ICE for methods
2740         of UNION_TYPE; do not record nonpolymorphic types.
2741         (ipa_polymorphic_call_context::speculation_consistent_p): New method.
2742         (ipa_polymorphic_call_context::combine_speculation_with): New method.
2743         (ipa_polymorphic_call_context::combine_with): New method.
2744         (ipa_polymorphic_call_context::make_speculative): Move here; use
2745         combine speculation.
2746         * cgraph.h (ipa_polymorphic_call_context): Update
2747         restrict_to_inner_class prototype; add offset_by, make_speculative,
2748         combine_with, useless_p, combine_speculation_with and
2749         speculation_consistent_p methods.
2750         (ipa_polymorphic_call_context::offset_by): New method.
2751         (ipa_polymorphic_call_context::useless_p): New method.
2753 2014-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
2755         PR rtl-optimization/62151
2756         * combine.c (can_combine_p): Allow the destination register of INSN
2757         to be clobbered in I3.
2758         (subst): Do not substitute into clobbers of registers.
2760 2014-10-01  Jakub Jelinek  <jakub@redhat.com>
2762         PR debug/63342
2763         * dwarf2out.c (loc_list_from_tree): Handle MEM_REF with non-zero
2764         offset, TARGET_MEM_REF and SSA_NAME.
2766         * config/i386/i386.c (expand_vec_perm_palignr): Handle
2767         256-bit vectors for TARGET_AVX2.
2769         * config/i386/i386.c (expand_vec_perm_vperm2f128): Canonicalize
2770         dfirst permutation.
2772         PR target/63428
2773         * config/i386/i386.c (expand_vec_perm_pshufb): Fix up rperm[0]
2774         argument to avx2_permv2ti.
2776 2014-10-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2778         * config/arm/arm.md (*store_minmaxsi): Disable for arm_restrict_it.
2780 2014-09-30  Uros Bizjak  <ubizjak@gmail.com>
2782         * config/i386/i386.md (fmodxf3): Enable for flag_finite_math_only only.
2783         (fmod<mode>3): Ditto.
2784         (fpremxf4_i387): Ditto.
2785         (reminderxf3): Ditto.
2786         (reminder<mode>3): Ditto.
2787         (fprem1xf4_i387): Ditto.
2789 2014-09-30  Teresa Johnson  <tejohnson@google.com>
2791         * tree-ssa-threadupdate.c (struct ssa_local_info_t): New
2792         duplicate_blocks bitmap.
2793         (remove_ctrl_stmt_and_useless_edges): Ditto.
2794         (create_block_for_threading): Ditto.
2795         (compute_path_counts): New function.
2796         (update_profile): Ditto.
2797         (recompute_probabilities): Ditto.
2798         (update_joiner_offpath_counts): Ditto.
2799         (freqs_to_counts_path): Ditto.
2800         (clear_counts_path): Ditto.
2801         (ssa_fix_duplicate_block_edges): Update profile info.
2802         (ssa_create_duplicates): Pass new parameter.
2803         (ssa_redirect_edges): Remove old profile update.
2804         (thread_block_1): New duplicate_blocks bitmap,
2805         remove old profile update.
2806         (thread_single_edge): Pass new parameter.
2808 2014-09-30  Ilya Tocar  <ilya.tocar@intel.com>
2810         PR middle-end/62120
2811         * varasm.c (decode_reg_name_and_count): Check availability for
2812         registers from ADDITIONAL_REGISTER_NAMES.
2814 2014-09-30  David Malcolm  <dmalcolm@redhat.com>
2816         PR plugins/63410
2817         * Makefile.in (PRETTY_PRINT_H): Add wide-int-print.h.
2818         (PLUGIN_HEADERS): Add pass-instances.def.
2820 2014-09-30  James Greenhalgh  <james.greenhalgh@arm.com>
2822         * config/aarch64/aarch64-simd-builtins.def (sqdmull_laneq): Expand
2823         iterator.
2824         * config/aarch64/aarch64-simd.md
2825         (aarch64_sqdmull_laneq<mode>): Expand iterator.
2826         * config/aarch64/arm_neon.h (vqdmullh_laneq_s16): New.
2827         (vqdmulls_lane_s32): Fix return type.
2828         (vqdmulls_laneq_s32): New.
2830 2014-09-30  Jakub Jelinek  <jakub@redhat.com>
2832         PR inline-asm/63282
2833         * ifcvt.c (dead_or_predicable): Don't call redirect_jump_1
2834         or invert_jump_1 if jump isn't any_condjump_p.
2836 2014-09-30  Terry Guo  <terry.guo@arm.com>
2838         * config/arm/arm-cores.def (cortex-m7): New core name.
2839         * config/arm/arm-fpus.def (fpv5-sp-d16): New fpu name.
2840         (fpv5-d16): Ditto.
2841         * config/arm/arm-tables.opt: Regenerated.
2842         * config/arm/arm-tune.md: Regenerated.
2843         * config/arm/arm.h (TARGET_VFP5): New macro.
2844         * config/arm/bpabi.h (BE8_LINK_SPEC): Include cortex-m7.
2845         * config/arm/vfp.md (<vrint_pattern><SDF:mode>2,
2846         smax<mode>3, smin<mode>3): Enabled for FPU FPv5.
2847         * doc/invoke.texi: Document new cpu and fpu names.
2849 2014-09-30  Jiong Wang  <jiong.wang@arm.com>
2851         * shrink-wrap.c (move_insn_for_shrink_wrap): Check "can_throw_internal"
2852         before sinking insn.
2854 2014-09-30  David Sherwood  <david.sherwood@arm.com>
2856         * ira-int.h (ira_allocno): Add "wmode" field.
2857         * ira-build.c (create_insn_allocnos): Add new "parent" function
2858         parameter.
2859         * ira-conflicts.c (ira_build_conflicts): Add conflicts for registers
2860         that cannot be accessed in wmode.
2862 2014-09-30  Markus Trippelsdorf  <markus@trippelsdorf.de>
2864         * data-streamer.c (bp_unpack_var_len_int): Avoid signed
2865         integer overflow.
2867 2014-09-29  Andi Kleen  <ak@linux.intel.com>
2869         * opts.c (print_filtered_help): Print --param min/max/default
2870         with -Q.
2872 2014-09-29  Kaz Kojima  <kkojima@gcc.gnu.org>
2874         * config/sh/sh.md: Use define_c_enum for "unspec" and "unspecv".
2876 2014-09-29  Eric Botcazou  <ebotcazou@adacore.com>
2878         * tree-vrp.c (get_single_symbol): New function.
2879         (build_symbolic_expr): Likewise.
2880         (symbolic_range_based_on_p): New predicate.
2881         (extract_range_from_binary_expr_1): Deal with single-symbolic ranges
2882         for PLUS and MINUS.  Do not drop symbolic ranges at the end.
2883         (extract_range_from_binary_expr): Try harder for PLUS and MINUS if
2884         operand is symbolic and based on the other operand.
2886 2014-09-29  Chen Gang  <gang.chen.5i5j@gmail.com>
2888         * config/microblaze/microblaze.md (call_internal1): Use VOID
2889         instead of SI to fix "((void (*)(void)) 0)()" issue
2891 2014-09-29  Nick Clifton  <nickc@redhat.com>
2893         * config/msp430/msp430.c (msp430_expand_prologue): Return a
2894         CLOBBER rtx for naked functions.
2895         (msp430_expand_epilogue): Likewise.
2896         (msp430_use_f5_series_hwmult): Cache result.
2897         (use_32bit_hwmult): Cache result.
2898         (msp430_no_hwmult): New function.
2899         (msp430_output_labelref): Use it.
2901 2014-09-29  Jakub Jelinek  <jakub@redhat.com>
2903         PR middle-end/63247
2904         * omp-low.c (lower_omp_target): For OMP_CLAUSE_MAP_POINTER
2905         of ARRAY_TYPE, if not OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION
2906         use the alignment of avar rather than ovar.
2908 2014-09-28  John David Anglin  <danglin@gcc.gnu.org>
2910         * config/pa/pa.c (pa_output_function_epilogue): Only update
2911         last_address when a nonnote insn is found.
2913 2014-09-26  Jan Hubicka  <hubicka@ucw.cz>
2915         PR ipa/60665
2916         * ipa-devirt.c (possible_polymorphic_call_targets): Silence clang warning.
2918 2014-09-26  Jan Hubicka  <hubicka@ucw.cz>
2920         PR ipa/62121
2921         * ipa-polymorphic-call.c (ipa_polymorphic_call_context::restrict_to_inner_class):
2922         fix pasto in checking array size.
2924 2014-09-26  Jan Hubicka  <hubicka@ucw.cz>
2926         PR middle-end/35545
2927         * passes.def (pass_tracer): Move before last dominator pass.
2929 2014-09-26  Thomas Schwinge  <thomas@codesourcery.com>
2931         * gcc.c (try_generate_repro): Remove argument "prog".  Change all
2932         users.
2933         (run_attempt): Handle errors of "pex_run" invocation.
2935 2014-09-26  Christophe Lyon  <christophe.lyon@linaro.org>
2937         * config/aarch64/aarch64-linux.h (ASAN_CC1_SPEC): Define.
2938         (CC1_SPEC): Define.
2939         * config/aarch64/aarch64.c (aarch64_asan_shadow_offset): New function.
2940         (TARGET_ASAN_SHADOW_OFFSET): Define.
2942 2014-09-26  Martin Liska  <mliska@suse.cz>
2944         * cgraph.c (cgraph_node::release_body): New argument keep_arguments
2945         introduced.
2946         * cgraph.h: Likewise.
2947         * cgraphunit.c (cgraph_node::create_wrapper): Usage of new argument introduced.
2948         * ipa-utils.h (polymorphic_type_binfo_p): Safe check for binfos created by Java.
2949         * tree-ssa-alias.c (ao_ref_base_alias_set): Static function transformed to global.
2950         * tree-ssa-alias.h: Likewise.
2952 2014-09-26  Jakub Jelinek  <jakub@redhat.com>
2953             Max Ostapenko  <m.ostapenko@partner.samsung.com>
2955         * common.opt: New option.
2956         * doc/invoke.texi: Describe new option.
2957         * gcc.c (execute): Don't free first string early, but at the end
2958         of the function.  Call retry_ice if compiler exited with
2959         ICE_EXIT_CODE.
2960         (main): Factor out common code.
2961         (print_configuration): New function.
2962         (files_equal_p): Likewise.
2963         (check_repro): Likewise.
2964         (run_attempt): Likewise.
2965         (do_report_bug): Likewise.
2966         (append_text): Likewise.
2967         (try_generate_repro): Likewise
2969 2014-09-25  Andi Kleen  <ak@linux.intel.com>
2971         * config/i386/i386.c (x86_print_call_or_nop): New function.
2972         (x86_function_profiler): Support -mnop-mcount and
2973         -mrecord-mcount.
2974         * config/i386/i386.opt (-mnop-mcount, -mrecord-mcount): Add
2975         * doc/invoke.texi: Document -mnop-mcount, -mrecord-mcount.
2977 2014-09-25  Jan Hubicka  <hubicka@ucw.cz>
2979         * ipa-prop.c (ipa_intraprocedural_devirtualization): Remove.
2980         * ipa-prop.h (ipa_intraprocedural_devirtualization): Remove.
2981         * tree-ssa-prop.c (eliminate_dom_walker::before_dom_children):
2982         Remove.
2984 2014-09-25  Jan Hubicka  <hubicka@ucw.cz>
2986         * ipa-utils.h (subbinfo_with_vtable_at_offset, type_all_derivations_known_p,
2987         type_known_to_have_no_deriavations_p, types_must_be_same_for_odr,
2988         types_odr_comparable): Declare.
2989         (polymorphic_type_binfo_p): Move here from ipa-devirt.c
2990         * ipa-polymorphic-call.c: New file.
2991         (contains_polymorphic_type_p, possible_placement_new,
2992         ipa_polymorphic_call_context::restrict_to_inner_class,
2993         contains_type_p, decl_maybe_in_construction_p,
2994         ipa_polymorphic_call_context::stream_out,
2995         ipa_polymorphic_call_context::debug,
2996         ipa_polymorphic_call_context::stream_in,
2997         ipa_polymorphic_call_context::set_by_decl,
2998         ipa_polymorphic_call_context::set_by_invariant,
2999         walk_ssa_copies,
3000         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
3001         type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
3002         extr_type_from_vtbl_ptr_store, record_known_type
3003         check_stmt_for_type_change,
3004         ipa_polymorphic_call_context::get_dynamic_type): Move here from
3005         ipa-devirt.c
3006         * ipa-devirt.c: No longer include data-streamer.h, lto-streamer.h
3007         and streamer-hooks.h
3008         (contains_polymorphic_type_p, possible_placement_new,
3009         ipa_polymorphic_call_context::restrict_to_inner_class,
3010         contains_type_p, decl_maybe_in_construction_p,
3011         ipa_polymorphic_call_context::stream_out,
3012         ipa_polymorphic_call_context::debug,
3013         ipa_polymorphic_call_context::stream_in,
3014         ipa_polymorphic_call_context::set_by_decl,
3015         ipa_polymorphic_call_context::set_by_invariant,
3016         walk_ssa_copies,
3017         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
3018         type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
3019         extr_type_from_vtbl_ptr_store, record_known_type
3020         check_stmt_for_type_change,
3021         ipa_polymorphic_call_context::get_dynamic_type): Move to
3022         ipa-polymorphic-call.c
3023         (type_all_derivations_known_p, types_odr_comparable,
3024         types_must_be_same_for_odr): Export.
3025         (type_known_to_have_no_deriavations_p): New function.
3026         * Makefile.in: Add ipa-polymorphic-call.c
3028 2014-09-25  Jan Hubicka  <hubicka@ucw.cz>
3030         * ipa-devirt.c (polymorphic_call_target_d): Add SPECULATIVE; reorder
3031         for better storage.
3032         (polymorphic_call_target_hasher::hash): Hash SPECULATIVE.
3033         (possible_polymorphic_call_targets): Instead of computing both
3034         speculative and non-speculative answers, do just one at a time.
3035         Replace NONSPECULATIVE_TARGETSP parameter with SPECULATIVE flag.
3036         (dump_targets): Break out from ...
3037         (dump_possible_polymorphic_call_targets): ... here; dump both speculative
3038         and non-speculative lists.
3039         (ipa_devirt): Update for new possible_polymorphic_call_targets API.
3040         * ipa-utils.h (possible_polymorphic_call_targets): Update.
3042 2014-09-25  Uros Bizjak  <ubizjak@gmail.com>
3044         PR rtl-optimization/63348
3045         * emit-rtl.c (try_split): Do not emit extra barrier.
3047 2014-09-25  James Greenhalgh  <james.greenhalgh@arm.com>
3049         * config/aarch64/aarch64-protos.h (aarch64_simd_const_bounds): Delete.
3050         * config/aarch64/aarch64-simd.md (aarch64_<sur>q<r>shl<mode>): Use
3051         new predicates.
3052         (aarch64_<sur>shll2_n<mode>): Likewise.
3053         (aarch64_<sur>shr_n<mode>): Likewise.
3054         (aarch64_<sur>sra_n<mode>: Likewise.
3055         (aarch64_<sur>s<lr>i_n<mode>): Likewise.
3056         (aarch64_<sur>qshl<u>_n<mode>): Likewise.
3057         * config/aarch64/aarch64.c (aarch64_simd_const_bounds): Delete.
3058         * config/aarch64/iterators.md (ve_mode): New.
3059         (offsetlr): Remap to infix text for use in new predicates.
3060         * config/aarch64/predicates.md (aarch64_simd_shift_imm_qi): New.
3061         (aarch64_simd_shift_imm_hi): Likewise.
3062         (aarch64_simd_shift_imm_si): Likewise.
3063         (aarch64_simd_shift_imm_di): Likewise.
3064         (aarch64_simd_shift_imm_offset_qi): Likewise.
3065         (aarch64_simd_shift_imm_offset_hi): Likewise.
3066         (aarch64_simd_shift_imm_offset_si): Likewise.
3067         (aarch64_simd_shift_imm_offset_di): Likewise.
3068         (aarch64_simd_shift_imm_bitsize_qi): Likewise.
3069         (aarch64_simd_shift_imm_bitsize_hi): Likewise.
3070         (aarch64_simd_shift_imm_bitsize_si): Likewise.
3071         (aarch64_simd_shift_imm_bitsize_di): Likewise.
3073 2014-09-25  Jiong Wang  <jiong.wang@arm.com>
3075         * shrink-wrap.c (move_insn_for_shrink_wrap): Initialize the live-in of
3076         new created BB as the intersection of live-in from "old_dest" and
3077         live-out from "bb".
3079 2014-09-25  Felix Yang  <felix.yang@huawei.com>
3081         * lra.c (lra_set_insn_recog_data): Fix typo in comment.
3082         * genautomata.c (merge_states): Ditto.
3084 2014-09-25  Oleg Endo  <olegendo@gcc.gnu.org>
3086         PR target/62218
3087         * config/sh/sync.md (atomic_test_and_set_soft_imask): Fix typo
3088         in instruction sequence.
3090 2014-09-25  Nick Clifton  <nickc@redhat.com>
3092         PR target/62218
3093         * config/sh/sync.md (atomic_fetch_nand<mode>_soft_imask): Fix typo
3094         in instruction sequence.
3096 2014-09-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3098         PR target/63335
3099         * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin):
3100         Exclude VSX_BUILTIN_XVCMPGEDP_P from special handling.
3102 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3103             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3104             Anna Tikhonova  <anna.tikhonova@intel.com>
3105             Ilya Tocar  <ilya.tocar@intel.com>
3106             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3107             Ilya Verbin  <ilya.verbin@intel.com>
3108             Kirill Yukhin  <kirill.yukhin@intel.com>
3109             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3111         * config/i386/sse.md
3112         (define_expand "<avx2_avx512f>_perm<mode>"): Rename to ...
3113         (define_expand "<avx2_avx512>_perm<mode>"): ... this.
3114         (define_expand "avx512f_perm<mode>_mask"): Rename to ...
3115         (define_expand "<avx512>_perm<mode>_mask"): ... this.
3116         Use VI8F_256_512 mode iterator.
3117         (define_insn "<avx2_avx512f>_perm<mode>_1<mask_name>"): Rename to ...
3118         (define_insn "<avx2_avx512bw>_perm<mode>_1<mask_name>"): ... this.
3120 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3121             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3122             Anna Tikhonova  <anna.tikhonova@intel.com>
3123             Ilya Tocar  <ilya.tocar@intel.com>
3124             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3125             Ilya Verbin  <ilya.verbin@intel.com>
3126             Kirill Yukhin  <kirill.yukhin@intel.com>
3127             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3129         * config/i386/sse.md
3130         (define_insn "avx_movshdup256<mask_name>"): Add masking.
3131         (define_insn "sse3_movshdup<mask_name>"): Ditto.
3132         (define_insn "avx_movsldup256<mask_name>"): Ditto.
3133         (define_insn "sse3_movsldup<mask_name>"): Ditto.
3134         (define_insn "vec_dupv2df<mask_name>"): Ditto.
3135         (define_insn "*vec_concatv2df"): Add EVEX version.
3137 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3138             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3139             Anna Tikhonova  <anna.tikhonova@intel.com>
3140             Ilya Tocar  <ilya.tocar@intel.com>
3141             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3142             Ilya Verbin  <ilya.verbin@intel.com>
3143             Kirill Yukhin  <kirill.yukhin@intel.com>
3144             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3146         * config/i386/sse.md
3147         (define_insn "vec_set<mode>_0"): Add EVEX version.
3149 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3150             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3151             Anna Tikhonova  <anna.tikhonova@intel.com>
3152             Ilya Tocar  <ilya.tocar@intel.com>
3153             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3154             Ilya Verbin  <ilya.verbin@intel.com>
3155             Kirill Yukhin  <kirill.yukhin@intel.com>
3156             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3158         * config/i386/sse.md
3159         (define_insn
3160         "<fixsuffix>fix_trunc<mode><sselongvecmodelower>2<mask_name><round_saeonly_name>"):
3161         New.
3162         (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
3163         (define_insn "ufix_trunc<mode><sseintvecmodelower>2<mask_name>"): Ditto.
3164         (define_insn "sse2_cvtss2sd<round_saeonly_name>"): Change
3165         "nonimmediate_operand" to "<round_saeonly_nimm_predicate>".
3166         (define_insn "avx_cvtpd2ps256<mask_name>"): Add masking.
3167         (define_expand "sse2_cvtpd2ps_mask): New.
3168         (define_insn "*sse2_cvtpd2ps<mask_name>"): Add masking.
3169         (define_insn "sse2_cvtps2pd<mask_name>"): Add masking.
3171 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3172             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3173             Anna Tikhonova  <anna.tikhonova@intel.com>
3174             Ilya Tocar  <ilya.tocar@intel.com>
3175             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3176             Ilya Verbin  <ilya.verbin@intel.com>
3177             Kirill Yukhin  <kirill.yukhin@intel.com>
3178             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3180         * config/i386/i386.c
3181         (avx512f_ufix_notruncv8dfv8si_mask_round): Rename to ...
3182         (ufix_notruncv8dfv8si2_mask_round): ... this.
3183         * config/i386/sse.md
3184         (define_insn "avx512f_cvtdq2pd512_2): Update TARGET check.
3185         (define_insn "avx_cvtdq2pd256_2"): Add EVEX version.
3186         (define_insn "sse2_cvtdq2pd<mask_name>"): Add masking.
3187         (define_insn "avx_cvtpd2dq256<mask_name>"): Ditto.
3188         (define_expand "sse2_cvtpd2dq"): Delete.
3189         (define_insn "sse2_cvtpd2dq<mask_name>"): Add masking and
3190         make 2nd operand const0 vector.
3191         (define_insn "avx512f_ufix_notruncv8dfv8si<mask_name><round_name>"):
3192         Delete.
3193         (define_mode_attr pd2udqsuff): New.
3194         (define_insn
3195         "ufix_notrunc<mode><si2dfmodelower>2<mask_name><round_name>"): Ditto.
3196         (define_insn "ufix_notruncv2dfv2si2<mask_name>"): Ditto.
3197         (define_insn "*avx_cvttpd2dq256_2"): Delete.
3198         (define_expand "sse2_cvttpd2dq"): Ditto.
3199         (define_insn "sse2_cvttpd2dq<mask_name>"): Add masking and
3200         make 2nd operand const0 vector.
3202 2014-09-25  Jakub Jelinek  <jakub@redhat.com>
3204         PR tree-optimization/63341
3205         * tree-vectorizer.h (vect_create_data_ref_ptr,
3206         vect_create_addr_base_for_vector_ref): Add another tree argument
3207         defaulting to NULL_TREE.
3208         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add byte_offset
3209         argument, pass it down to vect_create_addr_base_for_vector_ref.
3210         (vect_create_addr_base_for_vector_ref): Add byte_offset argument,
3211         add that to base_offset too if non-NULL.
3212         * tree-vect-stmts.c (vectorizable_load): Add byte_offset variable,
3213         for dr_explicit_realign_optimized set it to vector byte size
3214         - 1 instead of setting offset, pass byte_offset down to
3215         vect_create_data_ref_ptr.
3217 2014-09-24  Jan Hubicka  <hubicka@ucw.cz>
3219         * ipa-devirt.c (possible_polymorphic_call_targets): Remove
3220         forgotten debug output; canonicalize querries more wtih LTO.
3222 2014-09-24  Jan Hubicka  <hubicka@ucw.cz>
3224         * cgraph.h (class ipa_polymorphic_call_context): Move here from
3225         ipa-utils.h; add stream_int and stream_out methods.
3226         (cgraph_indirect_call_info): Remove SPECILATIVE_OFFSET,
3227         OUTER_TYPE, SPECULATIVE_OUTER_TYPE, MAYBE_IN_CONSTRUCTION
3228         MAYBE_DERIVED_TYPE and SPECULATIEVE_MAYBE_DERIVED_TYPE;
3229         add CONTEXT.
3230         (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
3231         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
3232         ipa_polymorphic_call_context::clear_speculation,
3233         ipa_polymorphic_call_context::clear_outer_type): Move here from
3234         ipa-utils.h
3235         * ipa-utils.h (class ipa_polymorphic_call_context): Move to cgraph.h
3236         (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
3237         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
3238         ipa_polymorphic_call_context::clear_speculation,
3239         ipa_polymorphic_call_context::clear_outer_type): Likewise.
3240         * ipa-devirt.c: Include data-streamer.h, lto-streamer.h and
3241         streamer-hooks.h
3242         (ipa_polymorphic_call_context::stream_out): New method.
3243         (ipa_polymorphic_call_context::stream_in): New method.
3244         (noncall_stmt_may_be_vtbl_ptr_store): Add forgotten static.
3245         * ipa-prop.c (ipa_analyze_indirect_call_uses): Do not care about
3246         OUTER_TYPE.
3247         (ipa_analyze_call_uses): Simplify.
3248         (update_indirect_edges_after_inlining): Do not care about outer_type.
3249         (ipa_write_indirect_edge_info): Update.
3250         (ipa_write_indirect_edge_info): Likewise.
3251         * cgraph.c (cgraph_node::create_indirect_edge): Simplify.
3252         (dump_edge_flags): Break out from ...
3253         (cgraph_node::dump): ... here; dump indirect edges.
3255 2014-09-24  Jan Hubicka  <hubicka@ucw.cz>
3257         * ipa-utils.h (polymorphic_call_context): Add
3258         metdhos dump, debug and clear_outer_type.
3259         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
3260         (ipa_polymorphic_call_context::clear_outer_type): New method.
3261         * ipa-prop.c (ipa_analyze_call_uses): Do not overwrite offset.
3262         * ipa-devirt.c (types_odr_comparable): New function.
3263         (types_must_be_same_for_odr): New function.
3264         (odr_subtypes_equivalent_p): Simplify.
3265         (possible_placement_new): Break out from ...
3266         (ipa_polymorphic_call_context::restrict_to_inner_type): ... here;
3267         be more cuatious about returning false in cases the context may be
3268         valid in derived type or via placement new.
3269         (contains_type_p): Clear maybe_derived_type
3270         (ipa_polymorphic_call_context::dump): New method.
3271         (ipa_polymorphic_call_context::debug): New method.
3272         (ipa_polymorphic_call_context::set_by_decl): Cleanup comment.
3273         (ipa_polymorphic_call_context::set_by_invariant): Simplify.
3274         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
3275         (possible_polymorphic_call_targets): Trust context.restrict_to_inner_class
3276         to suceed on all valid cases; remove confused sanity check.
3277         (dump_possible_polymorphic_call_targets): Simplify.
3279 2014-09-24  Aldy Hernandez  <aldyh@redhat.com>
3281         * cgraph.h, dbxout.c, dwarfout2.c, gimple-fold.c,
3282         lto-streamer-out.c, print-tree.c, symtab.c, tree-inline.c,
3283         tree-streamer-in.c, tree-streamer-out.c, tree.c, tree.h,
3284         varpool.c: Rename all instances of DECL_ABSTRACT to
3285         DECL_ABSTRACT_P.
3287 2014-09-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3289         * config/rs6000/rs6000.c (insn_is_swappable_p): Don't provide
3290         special handling for stores whose SET_SRC is an UNSPEC (such as
3291         UNSPEC_STVE).
3293 2014-09-24  Jiong Wang  <jiong.wang@arm.com>
3295         * shrink-wrap.c (move_insn_for_shrink_wrap): Add further check when
3296         !REG_P (src) to release more instruction sink opportunities.
3298 2014-09-24  Wilco Dijkstra  <wilco.dijkstra@arm.com>
3300         * config/aarch64/aarch64.c (aarch64_register_move_cost): Add register
3301         move costs for 128-bit types.
3303 2014-09-24  Martin Jambor  <mjambor@suse.cz>
3305         * ipa-prop.c (ipa_edge_duplication_hook): Update controlled_use_count
3306         when duplicating a PASS_THROUGH jump function when creating a
3307         speculative edge.
3309 2014-09-24  Marek Polacek  <polacek@redhat.com>
3311         PR c/61405
3312         PR c/53874
3313         * asan.c (maybe_instrument_call): Add default case.
3314         * ipa-pure-const.c (special_builtin_state): Likewise.
3315         * predict.c (expr_expected_value_1): Likewise.
3316         * lto-streamer-out.c (write_symbol): Initialize variable.
3318 2014-09-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3320         * config/aarch64/arm_neon.h (vmuld_lane_f64): Use macro for getting
3321         the lane.
3322         (vmuld_laneq_f64): Likewise.
3323         (vmuls_lane_f32): Likewise.
3324         (vmuls_laneq_f32): Likewise.
3326 2014-09-24  Kirill Yukhin  <kirill.yukhin@intel.com>
3328         PR bootstrap/63235
3329         * varpool.c (varpool_node::add): Pass decl attributes
3330         to lookup_attribute.
3332 2014-09-24  Jakub Jelinek  <jakub@redhat.com>
3334         PR sanitizer/63316
3335         * asan.c (asan_expand_check_ifn): Fix up align >= 8 optimization.
3337 2014-09-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3339         PR tree-optimization/63266
3340         * tree-ssa-math-opts.c (struct symbolic_number): Add comment about
3341         marker for unknown byte value.
3342         (MARKER_MASK): New macro.
3343         (MARKER_BYTE_UNKNOWN): New macro.
3344         (HEAD_MARKER): New macro.
3345         (do_shift_rotate): Mark bytes with unknown values due to sign
3346         extension when doing an arithmetic right shift. Replace hardcoded
3347         mask for marker by new MARKER_MASK macro.
3348         (find_bswap_or_nop_1): Likewise and adjust ORing of two symbolic
3349         numbers accordingly.
3351 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3352             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3353             Anna Tikhonova  <anna.tikhonova@intel.com>
3354             Ilya Tocar  <ilya.tocar@intel.com>
3355             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3356             Ilya Verbin  <ilya.verbin@intel.com>
3357             Kirill Yukhin  <kirill.yukhin@intel.com>
3358             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3360         * config/i386/sse.md
3361         (define_insn
3362         "<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode><mask_name>"):
3363         Add masking.
3364         (define_insn "fix_truncv8sfv8si2<mask_name>"): Ditto.
3365         (define_insn "fix_truncv4sfv4si2<mask_name>"): Ditto.
3367 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3368             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3369             Anna Tikhonova  <anna.tikhonova@intel.com>
3370             Ilya Tocar  <ilya.tocar@intel.com>
3371             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3372             Ilya Verbin  <ilya.verbin@intel.com>
3373             Kirill Yukhin  <kirill.yukhin@intel.com>
3374             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3376         * config/i386/sse.md
3377         (define_c_enum "unspec"): Add UNSPEC_PSHUFHW, UNSPEC_PSHUFLW.
3378         (define_insn "<mask_codefor>avx512bw_pshuflwv32hi<mask_name>"): New.
3379         (define_expand "avx512vl_pshuflwv3_mask"): Ditto.
3380         (define_insn "avx2_pshuflw_1<mask_name>"): Add masking.
3381         (define_expand "avx512vl_pshuflw_mask"): New.
3382         (define_insn "sse2_pshuflw_1<mask_name>"): Add masking.
3383         (define_insn "<mask_codefor>avx512bw_pshufhwv32hi<mask_name>"): New.
3384         (define_expand "avx512vl_pshufhwv3_mask"): Ditto.
3385         (define_insn "avx2_pshufhw_1<mask_name>"): Add masking.
3386         (define_expand "avx512vl_pshufhw_mask"): New.
3387         (define_insn "sse2_pshufhw_1<mask_name>"): Add masking.
3389 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3390             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3391             Anna Tikhonova  <anna.tikhonova@intel.com>
3392             Ilya Tocar  <ilya.tocar@intel.com>
3393             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3394             Ilya Verbin  <ilya.verbin@intel.com>
3395             Kirill Yukhin  <kirill.yukhin@intel.com>
3396             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3398         * config/i386/i386.c
3399         (ix86_expand_args_builtin): Handle CODE_FOR_sse2_shufpd,
3400         CODE_FOR_sse2_sse2_shufpd_mask, CODE_FOR_sse2_avx512dq_shuf_f64x2_mask,
3401         CODE_FOR_sse2_avx512dq_shuf_i64x2_mask,
3402         CODE_FOR_sse2_avx512vl_shuf_i32x4_mask and
3403         CODE_FOR_sse2_avx512vl_shuf_f32x4_mask.
3404         * config/i386/sse.md
3405         (define_expand "avx512dq_shuf_<shuffletype>64x2_mask"): New.
3406         (define_insn
3407         "<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>"): Ditto.
3408         (define_expand "avx512vl_shuf_<shuffletype>32x4_mask"): Ditto.
3409         (define_insn
3410         "<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>"): Ditto.
3411         (define_expand "avx512vl_pshufdv3_mask"): Ditto.
3412         (define_insn "avx2_pshufd_1<mask_name>"): Add masking.
3413         (define_expand "avx512vl_pshufd_mask"): New.
3414         (define_insn "sse2_pshufd_1<mask_name>"): Add masking.
3416 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3417             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3418             Anna Tikhonova  <anna.tikhonova@intel.com>
3419             Ilya Tocar  <ilya.tocar@intel.com>
3420             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3421             Ilya Verbin  <ilya.verbin@intel.com>
3422             Kirill Yukhin  <kirill.yukhin@intel.com>
3423             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3425         * config/i386/i386.c
3426         (CODE_FOR_avx2_extracti128): Rename to ...
3427         (CODE_FOR_avx_vextractf128v4di): this.
3428         (CODE_FOR_avx2_inserti128): Rename to ...
3429         (CODE_FOR_avx_vinsertf128v4di): this.
3430         (ix86_expand_args_builtin): Handle CODE_FOR_avx_vinsertf128v4di,
3431         CODE_FOR_avx_vextractf128v4di.
3432         (ix86_expand_args_builtin): Handle CODE_FOR_avx512dq_vinsertf32x8_mask,
3433         CODE_FOR_avx512dq_vinserti32x8_mask, CODE_FOR_avx512vl_vinsertv4df,
3434         CODE_FOR_avx512vl_vinsertv4di, CODE_FOR_avx512vl_vinsertv8sf,
3435         CODE_FOR_avx512vl_vinsertv8si.
3436         * config/i386/sse.md
3437         (define_expand
3438         "<extract_type>_vinsert<shuffletype><extract_suf>_mask"): Use
3439         AVX512_VEC mode iterator.
3440         (define_insn
3441         "<mask_codefor><extract_type>_vinsert<shuffletype><extract_suf>_1<mask_name>"):
3442         Ditto.
3443         (define_expand
3444         "<extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask"): Use
3445         AVX512_VEC_2 mode iterator.
3446         (define_insn "vec_set_lo_<mode><mask_name>"): New.
3447         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
3448         (define_expand "avx512vl_vinsert<mode>"): Ditto.
3449         (define_insn "avx2_vec_set_lo_v4di"): Delete.
3450         (define_insn "avx2_vec_set_hi_v4di"): Ditto.
3451         (define_insn "vec_set_lo_<mode><mask_name>"): Add masking.
3452         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
3453         (define_insn "vec_set_lo_<mode><mask_name>"): Ditto.
3454         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
3455         (define_expand "avx2_extracti128"): Delete.
3456         (define_expand "avx2_inserti128"): Ditto.
3458 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3459             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3460             Anna Tikhonova  <anna.tikhonova@intel.com>
3461             Ilya Tocar  <ilya.tocar@intel.com>
3462             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3463             Ilya Verbin  <ilya.verbin@intel.com>
3464             Kirill Yukhin  <kirill.yukhin@intel.com>
3465             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3467         * config/i386/sse.md
3468         (define_insn "avx2_<code>v16qiv16hi2<mask_name>"): Add masking.
3469         (define_insn "avx512bw_<code>v32qiv32hi2<mask_name>"): New.
3470         (define_insn "sse4_1_<code>v8qiv8hi2<mask_name>"): Add masking.
3471         (define_insn "avx2_<code>v8qiv8si2<mask_name>"): Ditto.
3472         (define_insn "sse4_1_<code>v4qiv4si2<mask_name>"): Ditto.
3473         (define_insn "avx2_<code>v8hiv8si2<mask_name>"): Ditto.
3474         (define_insn "sse4_1_<code>v4hiv4si2<mask_name>"): Ditto.
3475         (define_insn "avx2_<code>v4qiv4di2<mask_name>"): Ditto.
3476         (define_insn "sse4_1_<code>v2qiv2di2<mask_name>"): Ditto.
3477         (define_insn "avx2_<code>v4hiv4di2<mask_name>"): Ditto.
3478         (define_insn "sse4_1_<code>v2hiv2di2<mask_name>"): Ditto.
3479         (define_insn "avx2_<code>v4siv4di2<mask_name>"): Ditto.
3480         (define_insn "sse4_1_<code>v2siv2di2<mask_name>"): Ditto.
3482 2014-09-24  Zhenqiang Chen  <zhenqiang.chen@arm.com>
3484         PR rtl-optimization/63210
3485         * ira-color.c (assign_hard_reg): Ignore conflict cost if the
3486         HARD_REGNO is not available for CONFLICT_A.
3488 2014-09-23  Andi Kleen  <ak@linux.intel.com>
3490         * cgraph.h (symtab_node): Add no_reorder attribute.
3491         (symbol_table::output_asm_statements): Remove.
3492         * cgraphclones.c (cgraph_node::create_clone): Copy no_reorder.
3493         (cgraph_node::create_version_clone): Dito.
3494         (symbol_table::output_asm_statements): Remove.
3495         * trans-mem.c (ipa_tm_create_version_alias): Dito.
3496         * cgraphunit.c (varpool_node::finalize_decl): Check no_reorder.
3497         (output_in_order): Add no_reorder flag. Only handle no_reorder
3498         nodes when set.
3499         (symbol_table::compile): Add separate pass for no_reorder nodes.
3500         (process_common_attributes): Set no_reorder flag in symtab node.
3501         Add node argument.
3502         (process_function_and_variable_attributes): Pass symtab nodes to
3503         process_common_attributes.
3504         * doc/extend.texi (no_reorder): Document no_reorder attribute.
3505         * lto-cgraph.c (lto_output_node): Serialize no_reorder.
3506         (lto_output_varpool_node): Dito.
3507         (input_overwrite_node): Dito.
3508         (input_varpool_node): Dito.
3509         * varpool.c (varpool_node::add): Set no_reorder attribute.
3510         (symbol_table::remove_unreferenced_decls): Handle no_reorder.
3511         (symbol_table::output_variables): Dito.
3512         * symtab.c (symtab_node::dump_base): Print no_reorder.
3514 2014-09-23  Jiong Wang  <jiong.wang@arm.com>
3516         * shrink-wrap.c (try_shrink_wrapping): Check PIC_OFFSET_TABLE_REGNUM not
3517         be INVALID_REGNUM.
3519 2014-09-23  Thomas Schwinge  <thomas@codesourcery.com>
3521         * configure: Regenerate.
3523 2014-09-23  Alan Lawrence  <alan.lawrence@arm.com>
3525         * combine.c (simplify_shift_const_1): Allow commuting (ashiftrt (xor))
3526         when result_mode == shift_mode.
3528 2014-09-23  Kostya Serebryany  <kcc@google.com>
3530         Update to match the changed asan API.
3531         * asan.c (asan_global_struct): Update the __asan_global definition
3532         to match the new API.
3533         (asan_add_global): Ditto.
3534         * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v3
3535         to __asan_init_v4.
3537 2014-09-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
3539         * config/rs6000/rs6000.md (f32_vsx): New mode attributes to
3540         refine the constraints used on 32/64-bit floating point moves.
3541         (f32_av): Likewise.
3542         (f64_vsx): Likewise.
3543         (f64_dm): Likewise.
3544         (f64_av): Likewise.
3545         (BOOL_REGS_OUTPUT): Use wt constraint for TImode instead of wa.
3546         (BOOL_REGS_OP1): Likewise.
3547         (BOOL_REGS_OP2): Likewise.
3548         (BOOL_REGS_UNARY): Likewise.
3549         (mov<mode>_hardfloat, SFmode/SDmode): Tighten down constraints for
3550         32/64-bit floating point moves.  Do not use wa, instead use ww/ws
3551         for moves involving VSX registers.  Do not use constraints that
3552         target VSX registers for decimal types.
3553         (mov<mode>_hardfloat32, DFmode/DDmode): Likewise.
3554         (mov<mode>_hardfloat64, DFmode/DDmode): Likewise.
3556 2014-09-23  Jan Hubicka  <hubicka@ucw.cz>
3558         * tree.h (int_bit_position): Turn into inline function;
3559         implement using wide int.
3560         * tree.c (int_bit_position): Remove.
3562 2014-09-23  Richard Sandiford  <richard.sandiford@arm.com>
3564         PR bootstrap/63280
3565         * target-globals.c (target_globals::~target_globals): Fix location
3566         of ira_int destruction.
3568 2014-09-23  Renlin Li  <renlin.li@arm.com>
3570         * config/aarch64/aarch64.md (return): New.
3571         (simple_return): Likewise.
3572         * config/aarch64/aarch64.c (aarch64_use_return_insn_p): New.
3573         * config/aarch64/aarch64-protos.h (aarch64_use_return_insn_p): New.
3575 2014-09-23  Wilco Dijkstra  <wdijkstr@arm.com>
3577         * common/config/aarch64/aarch64-common.c:
3578         (default_options aarch_option_optimization_table):
3579         Default to -fsched-pressure.
3581 2014-09-23  Ilya Enkovich  <ilya.enkovich@intel.com>
3583         * cfgcleanup.c (try_optimize_cfg): Do not remove label
3584         with LABEL_PRESERVE_P flag set.
3586 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3587             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3588             Anna Tikhonova  <anna.tikhonova@intel.com>
3589             Ilya Tocar  <ilya.tocar@intel.com>
3590             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3591             Ilya Verbin  <ilya.verbin@intel.com>
3592             Kirill Yukhin  <kirill.yukhin@intel.com>
3593             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3595         * config/i386/sse.md
3596         (define_expand "avx_shufpd256<mask_expand4_name>"): Add masking.
3597         (define_insn "avx_shufpd256_1<mask_name>"): Ditto.
3598         (define_expand "sse2_shufpd<mask_expand4_name>"): Ditto.
3599         (define_insn "sse2_shufpd_v2df_mask"): New.
3601 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3602             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3603             Anna Tikhonova  <anna.tikhonova@intel.com>
3604             Ilya Tocar  <ilya.tocar@intel.com>
3605             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3606             Ilya Verbin  <ilya.verbin@intel.com>
3607             Kirill Yukhin  <kirill.yukhin@intel.com>
3608             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3610         * config/i386/sse.md
3611         (define_expand "avx_shufps256<mask_expand4_name>"): Add masking.
3612         (define_insn "avx_shufps256_1<mask_name>"): Ditto.
3613         (define_expand "sse_shufps<mask_expand4_name>"): Ditto.
3614         (define_insn "sse_shufps_v4sf_mask"): New.
3616 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3617             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3618             Anna Tikhonova  <anna.tikhonova@intel.com>
3619             Ilya Tocar  <ilya.tocar@intel.com>
3620             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3621             Ilya Verbin  <ilya.verbin@intel.com>
3622             Kirill Yukhin  <kirill.yukhin@intel.com>
3623             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3625         * config/i386/sse.md
3626         (define_insn "avx_unpckhps256<mask_name>"): Add masking.
3627         (define_insn "vec_interleave_highv4sf<mask_name>"): Ditto.
3628         (define_insn "avx_unpcklps256<mask_name>"): Ditto.
3629         (define_insn "unpcklps128_mask"): New.
3631 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3632             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3633             Anna Tikhonova  <anna.tikhonova@intel.com>
3634             Ilya Tocar  <ilya.tocar@intel.com>
3635             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3636             Ilya Verbin  <ilya.verbin@intel.com>
3637             Kirill Yukhin  <kirill.yukhin@intel.com>
3638             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3640         * config/i386/sse.md
3641         (define_insn "avx_unpckhpd256<mask_name>"): Add masking.
3642         (define_insn "avx512vl_unpckhpd128_mask"): New.
3643         (define_expand "avx_movddup256<mask_name>"): Add masking.
3644         (define_expand "avx_unpcklpd256<mask_name>"): Ditto.
3645         (define_insn "*avx_unpcklpd256<mask_name>"): Ditto.
3646         (define_insn "avx512vl_unpcklpd128_mask"): New.
3648 2014-09-22  Joseph Myers  <joseph@codesourcery.com>
3650         * doc/tm.texi.in (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3651         * doc/tm.texi: Regenerate.
3652         * system.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Poison.
3653         * config/alpha/alpha.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3654         * config/i386/i386-interix.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
3655         Remove.
3656         * config/i386/i386.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3657         * config/i386/rtemself.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3658         * config/ia64/ia64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3659         * config/m68k/m68k.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3660         * config/m68k/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
3661         Remove.
3662         * config/mips/mips.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3663         * config/mips/n32-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3664         * config/msp430/msp430.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3665         * config/rl78/rl78.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3666         * config/rs6000/rs6000.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3667         * config/rx/rx.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3668         * config/s390/s390.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3669         * config/sparc/freebsd.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3670         * config/sparc/linux.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3671         * config/sparc/linux64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3672         * config/sparc/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
3673         Remove.
3675 2014-09-22  Jan Hubicka  <hubicka@ucw.cz>
3677         * tree-ssa-ccp.c (prop_value_d): Rename to ...
3678         (ccp_prop_value_t): ... this one to avoid ODR violation; update uses.
3679         * ipa-prop.c (struct type_change_info): Rename to ...
3680         (prop_type_change_info): ... this; update uses.
3681         * ggc-page.c (globals): Rename to ...
3682         (static struct ggc_globals): ... this; update uses.
3683         * tree-ssa-loop-im.c (mem_ref): Rename to ...
3684         (im_mem_ref): ... this; update uses.
3685         * ggc-common.c (loc_descriptor): Rename to ...
3686         (ggc_loc_descriptor): ... this; update uses.
3687         * lra-eliminations.c (elim_table): Rename to ...
3688         (lra_elim_table): ... this; update uses.
3689         * bitmap.c (output_info): Rename to ...
3690         (bitmap_output_info): ... this; update uses.
3691         * gcse.c (expr): Rename to ...
3692         (gcse_expr) ... this; update uses.
3693         (occr): Rename to ...
3694         (gcse_occr): .. this; update uses.
3695         * tree-ssa-copy.c (prop_value_d): Rename to ...
3696         (prop_value_t): ... this.
3697         * predict.c (block_info_def): Rename to ...
3698         (block_info): ... this; update uses.
3699         (edge_info_def): Rename to ...
3700         (edge_info): ... this; update uses.
3701         * profile.c (bb_info): Rename to ...
3702         (bb_profile_info): ... this; update uses.
3703         * alloc-pool.c (output_info): Rename to ...
3704         (pool_output_info): ... this; update uses.
3705         * ipa-cp.c (topo_info): Rename to ..
3706         (ipa_topo_info): ... this; update uses.
3707         * tree-nrv.c (nrv_data): Rename to ...
3708         (nrv_data_t): ... this; update uses.
3709         * ipa-split.c (bb_info): Rename to ...
3710         (split_bb_info): ... this one.
3711         * profile.h (edge_info): Rename to ...
3712         (edge_profile_info): ... this one; update uses.
3713         * dse.c (bb_info): Rename to ...
3714         (dse_bb_info): ... this one; update uses.
3715         * cprop.c (occr): Rename to ...
3716         (cprop_occr): ... this one; update uses.
3717         (expr): Rename to ...
3718         (cprop_expr): ... this one; update uses.
3720 2014-09-22  Jason Merrill  <jason@redhat.com>
3722         * Makefile.in (check-parallel-%): Add @.
3724 2014-09-22  James Greenhalgh  <james.greenhalgh@arm.com>
3726         * config/aarch64/geniterators.sh: New.
3727         * config/aarch64/iterators.md (VDQF_DF): New.
3728         * config/aarch64/t-aarch64: Generate aarch64-builtin-iterators.h.
3729         * config/aarch64/aarch64-builtins.c (BUILTIN_*) Remove.
3731 2014-09-22  Peter A. Bigot  <pab@pabigot.com>
3733         * config/msp430/msp430.h (LIB_SPEC): Remove automatic addition of
3734         -lnosys when -msim absent.
3736 2014-09-22  Alan Lawrence  <alan.lawrence@arm.com>
3738         * fold-const.c (tree_swap_operands_p): Strip only sign-preserving NOPs.
3740 2014-09-22  Richard Biener  <rguenther@suse.de>
3742         * gimplify.c (gimplify_init_constructor): Do not leave
3743         non-GIMPLE vector constructors around.
3744         * tree-cfg.c (verify_gimple_assign_single): Verify that
3745         CONSTRUCTORs have gimple elements.
3747 2014-09-22  Jakub Jelinek  <jakub@redhat.com>
3749         PR debug/63328
3750         * omp-low.c (ipa_simd_modify_stmt_ops): For debug stmts
3751         insert a debug source bind stmt setting DEBUG_EXPR_DECL
3752         instead of a normal gimple assignment stmt.
3754 2014-09-22  James Greenhalgh  <james.greenhalgh@arm.com>
3756         * config/bfin/bfin.md: Fix use of constraints in define_split.
3758 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
3760         * config/i386/i386.c (ix86_cannot_change_mode_class): Remove
3761         GET_MODE_SIZE (to) < GET_MODE_SIZE (from) test.
3763 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
3765         * hard-reg-set.h: Include hash-table.h.
3766         (target_hard_regs): Add a finalize method and a x_simplifiable_subregs
3767         field.
3768         * target-globals.c (target_globals::~target_globals): Call
3769         hard_regs->finalize.
3770         * rtl.h (subreg_shape): New structure.
3771         (shape_of_subreg): New function.
3772         (simplifiable_subregs): Declare.
3773         * reginfo.c (simplifiable_subreg): New structure.
3774         (simplifiable_subregs_hasher): Likewise.
3775         (simplifiable_subregs): New function.
3776         (invalid_mode_changes): Delete.
3777         (alid_mode_changes, valid_mode_changes_obstack): New variables.
3778         (record_subregs_of_mode): Remove subregs_of_mode parameter.
3779         Record valid mode changes in valid_mode_changes.
3780         (find_subregs_of_mode): Remove subregs_of_mode parameter.
3781         Update calls to record_subregs_of_mode.
3782         (init_subregs_of_mode): Remove invalid_mode_changes and bitmap
3783         handling.  Initialize new variables.  Update call to
3784         find_subregs_of_mode.
3785         (invalid_mode_change_p): Check new variables instead of
3786         invalid_mode_changes.
3787         (finish_subregs_of_mode): Finalize new variables instead of
3788         invalid_mode_changes.
3789         (target_hard_regs::finalize): New function.
3790         * ira-costs.c (print_allocno_costs): Call invalid_mode_change_p
3791         even when CLASS_CANNOT_CHANGE_MODE is undefined.
3793 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
3795         * combine.c (subst): Use simplify_subreg_regno rather than
3796         REG_CANNOT_CHANGE_MODE_P to detect invalid mode changes.
3798 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
3800         * rtl.h (subreg_info): Expand commentary
3801         * rtlanal.c (subreg_get_info): Likewise.
3803 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
3805         * hard-reg-set.h (COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
3806         (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
3807         (IOR_COMPL_HARD_REG_SET): Allow the "from" set to be constant.
3809 2014-09-22  Zhenqiang Chen  <zhenqiang.chen@arm.com>
3811         * config/arm/arm.c: #include "tm-constrs.h"
3812         (thumb1_size_rtx_costs): Adjust rtx costs.
3814 2014-09-22  Hans-Peter Nilsson  <hp@axis.com>
3816         * configure.ac (target_header_dir): Move block defining
3817         this to before the block setting inhibit_libc.
3818         (inhibit_libc): When considering $with_headers, just
3819         check it it's explicitly "no".  If not, also check if
3820         $target_header_dir/stdio.h is present.  If not, set
3821         inhibit_libc=true.
3822         * configure: Regenerate.
3824 2014-09-21  Patrick Oppenlander  <pattyo.lists@gmail.com>
3826         * config/rs6000/t-spe (MULTILIB_EXCEPTIONS): Allow isel without SPE.
3828 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
3830         * config/rs6000/rs6000.md (div<mode>3): Fix comment.  Use a different
3831         insn for divides by integer powers of two.
3832         (div<mode>3_sra, *div<mode>3_sra_dot, *div<mode>3_sra_dot2): New.
3833         (mod<mode>3): Fix formatting.
3834         (three anonymous define_insn and two define_split): Delete.
3836 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
3838         * config/rs6000/rs6000.md (ashr<mode>3, *ashr<mode>3, *ashrsi3_64,
3839         *ashr<mode>3_dot, *ashr<mode>3_dot2): Clobber CA_REGNO.
3840         (floatdisf2_internal2): Ditto.
3841         (ashrdi3_no_power): Ditto.  Fix formatting.
3843 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
3845         * config/rs6000/rs6000.md (ctz<mode>2, ffs<mode>2, popcount<mode>2,
3846         popcntb<mode>2, popcntd<mode>2, parity<mode>2, parity<mode>2_cmpb):
3847         Tidy.
3849 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
3851         * config/rs6000/rs6000.md (strlensi): Don't use subsi3 with a
3852         constant, use addsi3 directly.
3853         (three anonymous define_insn, two define_split): Delete.
3854         (sub<mode>3): Move.  Do not allow constant second operand.
3855         Generate different insn for constant first operand.
3856         (*subf<mode>3, *subf<mode>3_dot, *subf<mode>3_dot2): New.
3857         (subf<mode>3_imm): New.
3858         (ctz<mode>2, ffs<mode>2): Clobber CA_REGNO where required.
3859         (*plus_ltu<mode>): Only handle registers.
3860         (*plus_ltu<mode>_1): New.  Handle integer third operand.
3861         (*plus_gtu<mode>): Only handle registers.
3862         (*plus_gtu<mode>_1): New.  Handle integer third operand.
3864 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
3866         * config/rs6000/rs6000.md (iorxor): New code_iterator.
3867         (iorxor): New code_attr.
3868         (IORXOR): New code_attr.
3869         (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): Delete.
3870         (ior<mode>3, xor<mode>3): Delete.
3871         (<iorxor><mode>3): New.
3872         (splitter for "big" integer ior, xor): New.
3873         (*bool<mode>3): Move.  Also handle AND.
3874         (*bool<mode>3_dot, *bool<mode>3_dot2): Also handle AND.
3875         (splitter for "big" integer ior, xor): Delete.
3877 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
3879         * config/rs6000/rs6000.md (*neg<mode>2_internal): Delete.
3880         (two anonymous define_insn and two define_split): Delete.
3881         (*neg<mode>2, *neg<mode>2_dot, *neg<mode>2_dot2): New.
3883 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
3885         * config/rs6000/rs6000.md (*one_cmpl<mode>2): Generate "not" insn.
3886         (two anonymous define_insn and two define_split): Delete.
3887         (*one_cmpl<mode>2_dot, *one_cmpl<mode>2_dot2): New.
3889 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
3891         * config/rs6000/rs6000.c (rs6000_rtx_costs) <NE>: New.
3893 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
3895         * config/rs6000/predicates.md (ca_operand): Allow subregs.
3896         (input_operand): Do not allow ca_operand.
3897         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): For the
3898         carry bit, allow SImode and Pmode.
3899         (rs6000_init_hard_regno_mode_ok): Make the carry bit class NO_REGS.
3901 2014-09-21  Uros Bizjak  <ubizjak@gmail.com>
3903         * config/i386/i386.c (ix86_expand_call): Generate MS->SYSV extra
3904         clobbered registers using clobber_reg.  Remove UNSPEC decoration.
3905         * config/i386/i386.md (unspec) <UNSPEC_MS_TO_SYSV_CALL>: Remove.
3906         (*call_rex64_ms_sysv): Remove.
3907         (*call_value_rex64_ms_sysv): Ditto.
3908         * config/i386/predicates.md (call_rex64_ms_sysv_operation): Remove.
3910 2014-09-20  Joern Rennecke  <joern.rennecke@embecosm.com>
3912         * config/epiphany/epiphany.md (sub_f_add_imm): Change constraint of
3913         operand 3 to "CnL".
3915 2014-09-20  Andreas Schwab  <schwab@suse.de>
3917         * config/ia64/ia64.md: Remove constraints from define_split
3918         patterns.
3920 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
3922         * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
3923         (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
3924         possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
3925         (get_dynamic_type): Remove.
3926         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
3927         (clear_speculation): Bring to ipa-deivrt.h
3928         (get_class_context): Rename to ...
3929         (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
3930         (contains_type_p): Update.
3931         (get_dynamic_type): Rename to ...
3932         ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
3933         (possible_polymorphic_call_targets): UPdate.
3934         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
3935         * ipa-prop.c (ipa_analyze_call_uses): Update.
3937 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
3939         * ipa-visibility.c (varpool_node::externally_visible_p): Do not
3940         privatize dynamic TLS variables.
3942 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
3944         * diagnostic.c (warning_n): New function.
3945         * diagnostic-core.h (warning_n): Declare.
3946         * ipa-devirt.c (ipa_devirt): Handle singulars correctly;
3947         output dynamic counts when available.
3949 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
3951         PR tree-optimization/63255
3952         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering
3953         issue in setting body_removed flag.
3955 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
3957         PR c++/61825
3958         * c-family/c-common.c (handle_alias_ifunc_attribute): Check
3959         that visibility change is possible
3960         (handle_weakref_attribute): Likewise.
3961         * cgraph.h (symtab_node): Add method get_create and
3962         field refuse_visibility_changes.
3963         (symtab_node::get_create): New method.
3964         * fold-const.c (tree_single_nonzero_warnv_p): Use get_create.
3965         * varasm.c (mark_weak): Verify that visibility change is
3966         possible.
3968 2014-09-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
3970         * config/rs6000/predicates.md (fusion_gpr_mem_load): Move testing
3971         for base_reg_operand to be common between LO_SUM and PLUS.
3972         (fusion_gpr_mem_combo): New predicate to match a fused address
3973         that combines the addis and memory offset address.
3975         * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Change
3976         calling signature.
3977         (emit_fusion_gpr_load): Likewise.
3979         * config/rs6000/rs6000.c (fusion_gpr_load_p): Change calling
3980         signature to pass each argument separately, rather than
3981         using an operands array.  Rewrite the insns found by peephole2 to
3982         be a single insn, rather than hoping the insns will still be
3983         together when the peephole pass is done.  Drop being called via a
3984         normal peephole.
3985         (emit_fusion_gpr_load): Change calling signature to be called from
3986         the fusion_gpr_load_<mode> insns with a combined memory address
3987         instead of the peephole pass passing the addis and offset
3988         separately.
3990         * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): New unspec for GPR
3991         fusion.
3992         (power8 fusion peephole): Drop support for doing power8 via a
3993         normal peephole that was created by the peephole2 pass.
3994         (power8 fusion peephole2): Create a new insn with the fused
3995         address, so that the fused operation is kept together after
3996         register allocation is done.
3997         (fusion_gpr_load_<mode>): Likewise.
3999 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
4001         PR lto/63286
4002         * tree.c (need_assembler_name_p): Do not mangle variadic types.
4004 2014-09-19  Segher Boessenkool  <segher@kernel.crashing.org>
4006         * recog.c (scratch_operand): Do not simply allow all hard registers:
4007         only allow those that are allocatable.
4009 2014-09-19  Felix Yang  <felix.yang@huawei.com>
4011         * cfgrtl.c ira.c ira-color.c ira-conflicts ira-lives.c: Update
4012         comments and fix spacing to conform to coding style.
4014 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
4016         * genrecog.c (validate_pattern): Allow empty constraints in
4017         a match_scratch.
4019 2014-09-19  Aldy Hernandez  <aldyh@redhat.com>
4021         * dwarf2out.c (decl_ultimate_origin): Update comment.
4022         * tree.c (block_ultimate_origin): Same.
4024 2014-09-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4026         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
4027         Update GCC version name to GCC 5.
4028         (rs6000_function_arg_boundary): Likewise.
4029         (rs6000_function_arg): Likewise.
4031 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
4033         * config/sh/sh.md: Fix use of constraints in define_split.
4035 2014-09-19  Markus Trippelsdorf  <markus@trippelsdorf.de>
4037         PR ipa/61998
4038         * ipa-devirt.c (ipa_devirt): Bail out if odr_types_ptr is NULL.
4040 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
4042         * doc/md.texi (Modifiers): Consistently use "read/write"
4043         nomenclature rather than "input/output".
4044         * genrecog.c (constraints_supported_in_insn_p): New.
4045         (validate_pattern): If needed, also check constraints on
4046         MATCH_SCRATCH operands.
4047         * genoutput.c (validate_insn_alternatives): Catch earlyclobber
4048         operands with no '=' or '+' modifier.
4050 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
4052         * config/aarch64/aarch64.md (stack_protect_test_<mode>): Mark
4053         scratch register as written.
4055 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4057         * config/s390/s390.c (s390_emit_epilogue): Remove bogus
4058         assignment.
4060 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4062         * config/s390/s390.md ("trunctdsd2", "extendsdtd2"): New
4063         expanders.
4065 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4067         PR target/62662
4068         * config/s390/s390.c (s390_emit_epilogue): When doing the return
4069         address load optimization force s390_optimize_prologue to leave it
4070         that way.  Only do the optimization if we already decided to push
4071         r14 into a stack slot.
4073 2014-09-19  Marat Zakirov  <m.zakirov@samsung.com>
4075         * asan.c (build_check_stmt): Alignment arg was added.
4076         (asan_expand_check_ifn): Optimization for alignment >= 8.
4078 2014-09-19  Olivier Hainque  <hainque@adacore.com>
4080         * config/i386/vxworksae.h: Remove obsolete definitions.
4081         (STACK_CHECK_PROTECT): Define.
4082         * config/i386/vx-common.h: Remove.  Merge contents within
4083         config/i386/vxworks.h.
4084         * config.gcc (i?86-vxworks*): Use i386/vxworks.h instead of
4085         i386/vx-common.h.
4087 2014-09-19  Olivier Hainque  <hainque@adacore.com>
4089         * config.gcc (powerpc-wrs-vxworksmils): New configuration.
4090         * config/rs6000/t-vxworksmils: New file.
4091         * config/rs6000/vxworksmils.h: New file.
4093 2014-09-19  Olivier Hainque  <hainque@adacore.com>
4095         * varasm.c (default_section_type_flags): Flag .persistent.bss
4096         sections as SECTION_BSS.
4098 2014-09-19  Nick Clifton  <nickc@redhat.com>
4100         * config/rl78/rl78.c (rl78_expand_epilogue): Generate a USE of the
4101         pop'ed registers so that DCE does not eliminate them.
4103 2014-09-18  Jan Hubicka  <hubicka@ucw.cz>
4105         PR lto/63298
4106         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix thinko in a condition.
4108 2014-09-18  Joseph Myers  <joseph@codesourcery.com>
4110         * system.h (LIBGCC2_TF_CEXT): Poison.
4111         * config/i386/cygming.h (LIBGCC2_TF_CEXT): Remove.
4112         * config/i386/darwin.h (LIBGCC2_TF_CEXT): Likewise.
4113         * config/i386/dragonfly.h (LIBGCC2_TF_CEXT): Likewise.
4114         * config/i386/freebsd.h (LIBGCC2_TF_CEXT): Likewise.
4115         * config/i386/gnu-user-common.h (LIBGCC2_TF_CEXT): Likewise.
4116         * config/i386/openbsdelf.h (LIBGCC2_TF_CEXT): Likewise.
4117         * config/i386/sol2.h (LIBGCC2_TF_CEXT): Likewise.
4118         * config/ia64/ia64.h (LIBGCC2_TF_CEXT): Likewise.
4119         * config/ia64/linux.h (LIBGCC2_TF_CEXT): Likewise.
4121 2014-09-19  Kito Cheng  <kito@0xlab.org>
4123         * except.h: Fix header guard.
4124         * addresses.h: Add missing header guard.
4125         * cfghooks.h: Likewise.
4126         * collect-utils.h: Likewise.
4127         * collect2-aix.h: Likewise.
4128         * conditions.h: Likewise.
4129         * cselib.h: Likewise.
4130         * dwarf2asm.h: Likewise.
4131         * graphds.h: Likewise.
4132         * graphite-scop-detection.h: Likewise.
4133         * gsyms.h: Likewise.
4134         * hw-doloop.h: Likewise.
4135         * incpath.h: Likewise.
4136         * ipa-inline.h: Likewise.
4137         * ipa-ref.h: Likewise.
4138         * ira-int.h: Likewise.
4139         * ira.h: Likewise.
4140         * lra-int.h: Likewise.
4141         * lra.h: Likewise.
4142         * lto-section-names.h: Likewise.
4143         * read-md.h: Likewise.
4144         * reload.h: Likewise.
4145         * rtl-error.h: Likewise.
4146         * sdbout.h: Likewise.
4147         * targhooks.h: Likewise.
4148         * tree-affine.h: Likewise.
4149         * xcoff.h: Likewise.
4150         * xcoffout.h: Likewise.
4152 2014-09-18  Vladimir Makarov  <vmakarov@redhat.com>
4154         PR debug/63285
4155         * haifa-sched.c (schedule_block): Advance cycle at the end of BB
4156         if advance != 0.
4158 2014-09-18  Vladimir Makarov  <vmakarov@redhat.com>
4160         PR target/61360
4161         * lra.c (lra): Call recog_init.
4163 2014-09-18  Jakub Jelinek  <jakub@redhat.com>
4165         PR c++/62017
4166         * asan.c (transform_statements): Don't instrument clobber statements.
4168 2014-09-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4170         * config/arm/neon.md (*movmisalign<mode>_neon_load): Change type
4171         to neon_load1_1reg<q>.
4173 2014-09-17  Jakub Jelinek  <jakub@redhat.com>
4175         PR debug/63284
4176         * tree-cfgcleanup.c (fixup_noreturn_call): Don't split block
4177         if there are only debug stmts after the noreturn call, instead
4178         remove the debug stmts.
4180 2014-09-17  Jan Hubicka  <hubicka@ucw.cz>
4182         * ipa-devirt.c (type_pair, default_hashset_traits): New types.
4183         (odr_types_equivalent_p): Use pair hash.
4184         (odr_subtypes_equivalent_p): Likewise, do structural compare
4185         on ODR types that may be mismatched.
4186         (warn_odr): Support warning when only one field is given.
4187         (odr_types_equivalent_p): Strenghten comparsions made;
4188         support VOIDtype.
4189         (add_type_duplicate): Update VISITED hash set.
4191 2014-09-17  Sebastian Huber  <sebastian.huber@embedded-brains.de>
4193         * config.gcc (*-*-rtems*): Default to 'rtems' thread model.
4194         Enable selection of 'posix' or no thread model.
4196 2014-09-17  Andrew Stubbs  <ams@codesourcery.com>
4198         * config/arm/arm.c (arm_option_override): Reject -mfpu=neon
4199         when architecture is older than ARMv7.
4201 2014-09-16  John David Anglin  <danglin@gcc.gnu.org>
4203         PR target/61853
4204         * config/pa/pa.c (pa_function_value): Directly handle aggregates
4205         that fit exactly in a word or double word.
4207 2014-09-16  Ilya Tocar  <ilya.tocar@intel.com>
4209         * config/i386/driver-i386.c (host_detect_local_cpu): Detect lack of
4210         zmm/k regs support.
4212 2014-09-16  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4213             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4214             Anna Tikhonova  <anna.tikhonova@intel.com>
4215             Ilya Tocar  <ilya.tocar@intel.com>
4216             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4217             Ilya Verbin  <ilya.verbin@intel.com>
4218             Kirill Yukhin  <kirill.yukhin@intel.com>
4219             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4221         * config/i386/i386.c
4222         (ix86_expand_vector_extract): Handle V32HI and V64QI modes.
4223         * config/i386/sse.md
4224         (define_mode_iterator VI48F_256): New.
4225         (define_mode_attr extract_type): Ditto.
4226         (define_mode_attr extract_suf): Ditto.
4227         (define_mode_iterator AVX512_VEC): Ditto.
4228         (define_expand
4229         "<extract_type>_vextract<shuffletype><extract_suf>_mask"): Use
4230         AVX512_VEC.
4231         (define_insn "avx512dq_vextract<shuffletype>64x2_1_maskm"): New.
4232         (define_insn
4233         "<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>"):
4234         Ditto.
4235         (define_mode_attr extract_type_2): Ditto.
4236         (define_mode_attr extract_suf_2): Ditto.
4237         (define_mode_iterator AVX512_VEC_2): Ditto.
4238         (define_expand
4239         "<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask"): Use
4240         AVX512_VEC_2 mode iterator.
4241         (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
4242         (define_expand "avx512vl_vextractf128<mode>"): Ditto.
4243         (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
4244         (define_insn "vec_extract_lo_<mode><mask_name>"): New.
4245         (define_split for V16FI mode): Ditto.
4246         (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
4247         (define_insn "vec_extract_lo_<mode><mask_name>"): New.
4248         (define_split for VI8F_256 mode): Ditto.
4249         (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
4250         (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
4251         (define_insn "vec_extract_lo_<mode><mask_name>"): New.
4252         (define_split for VI4F_256 mode): Ditto.
4253         (define_insn "vec_extract_lo_<mode>_maskm"): Ditto.
4254         (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
4255         (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
4256         (define_mode_iterator VEC_EXTRACT_MODE): Add V64QI and V32HI modes.
4257         (define_insn "vcvtph2ps<mask_name>"): Fix pattern condition.
4258         (define_insn "avx512f_vextract<shuffletype>32x4_1_maskm"): Ditto.
4259         (define_insn "<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>"):
4260         Update `type' attribute, remove explicit `memory' attribute calculation.
4262 2014-09-16  Kito Cheng  <kito@0xlab.org>
4264         * ira.c (ira): Don't initialize ira_spilled_reg_stack_slots and
4265         ira_spilled_reg_stack_slots_num if using lra.
4266         (do_reload): Remove release ira_spilled_reg_stack_slots part.
4267         * ira-color.c (ira_sort_regnos_for_alter_reg): Add assertion to
4268         make sure not using lra.
4269         (ira_reuse_stack_slot): Likewise.
4270         (ira_mark_new_stack_slot): Likewise.
4272 2014-09-15  Andi Kleen  <ak@linux.intel.com>
4274         * function.c (allocate_struct_function): Force
4275         DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT to one when
4276         profiling is disabled.
4278 2014-09-15  Trevor Saunders  <tsaunders@mozilla.com>
4280         * cfgrtl.c, combine.c, config/arc/arc.c, config/mcore/mcore.c,
4281         config/rs6000/rs6000.c, config/sh/sh.c, cprop.c, dwarf2out.c,
4282         emit-rtl.c, final.c, function.c, gcse.c, jump.c, reg-stack.c,
4283         reload1.c, reorg.c, resource.c, sel-sched-ir.c: Replace INSN_DELETED_P
4284         macro with statically checked member functions.
4285         * rtl.h (rtx_insn::deleted): New method.
4286         (rtx_insn::set_deleted): Likewise.
4287         (rtx_insn::set_undeleted): Likewise.
4288         (INSN_DELETED_P): Remove.
4290 2014-09-15  Trevor Saunders  <tsaunders@mozilla.com>
4292         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Assign the
4293         result of emit_jump_insn_before to a new variable.
4294         * jump.c (mark_jump_label): Change the type of insn to rtx_insn *.
4295         (mark_jump_label_1): Likewise.
4296         (mark_jump_label_asm): Likewise.
4297         * reload1.c (gen_reload): Change type of tem to rtx_insn *.
4298         * rtl.h (mark_jump_label): Adjust.
4300 2014-09-15  Jakub Jelinek  <jakub@redhat.com>
4302         * Makefile.in (dg_target_exps): Remove.
4303         (check_gcc_parallelize): Change to just an upper bound number.
4304         (check-%-subtargets): Always print the non-parallelized goals.
4305         (check_p_vars, check_p_comma, check_p_subwork): Remove.
4306         (check_p_count, check_p_numbers0, check_p_numbers1, check_p_numbers2,
4307         check_p_numbers3, check_p_numbers4, check_p_numbers5,
4308         check_p_numbers6): New variables.
4309         (check_p_numbers): Set to sequence from 1 to 9999.
4310         (check_p_subdirs): Set to sequence from 1 to minimum of
4311         $(check_p_count) and either GCC_TEST_PARALLEL_SLOTS env var if set,
4312         or 128.
4313         (check-%, check-parallel-%): Rewritten so that for parallelized
4314         testing each job runs all the *.exp files, with
4315         GCC_RUNTEST_PARALLELIZE_DIR set in environment.
4317 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
4319         * config/arc/arc-protos.h (arc_attr_type): Strengthen param from
4320         rtx to rtx_insn *.
4321         (arc_sets_cc_p): Likewise.
4322         * config/arc/arc.c (arc_print_operand): Use methods of
4323         "final_sequence" for clarity, and to enable strengthening of
4324         locals "jump" and "delay" from rtx to rtx_insn *.
4325         (arc_adjust_insn_length): Strengthen local "prev" from rtx to
4326         rtx_insn *; use method of rtx_sequence for typesafety.
4327         (arc_get_insn_variants): Use insn method of rtx_sequence for
4328         typesafety.
4329         (arc_pad_return): Likewise.
4330         (arc_attr_type): Strengthen param from rtx to rtx_insn *.
4331         (arc_sets_cc_p): Likewise.  Also, convert a GET_CODE check to a
4332         dyn_cast to rtx_sequence *, using insn method for typesafety.
4333         * config/arc/arc.h (ADJUST_INSN_LENGTH): Add checked casts to
4334         rtx_sequence * and use insn method when invoking get_attr_length.
4335         * config/bfin/bfin.c (type_for_anomaly): Strengthen param from rtx
4336         to rtx_insn *.  Replace a GET_CODE check with a dyn_cast to
4337         rtx_sequence *, introducing a local "seq", using its insn method
4338         from typesafety and clarity.
4339         (add_sched_insns_for_speculation): Strengthen local "next" from
4340         rtx to rtx_insn *.
4341         * config/c6x/c6x.c (get_insn_side): Likewise for param "insn".
4342         (predicate_insn): Likewise.
4343         * config/cris/cris-protos.h (cris_notice_update_cc): Likewise for
4344         second param.
4345         * config/cris/cris.c (cris_notice_update_cc): Likewise.
4346         * config/epiphany/epiphany-protos.h
4347         (extern void epiphany_insert_mode_switch_use): Likewise for param
4348         "insn".
4349         (get_attr_sched_use_fpu): Likewise for param.
4350         * config/epiphany/epiphany.c (epiphany_insert_mode_switch_use):
4351         Likewise for param "insn".
4352         * config/epiphany/mode-switch-use.c (insert_uses): Likewise for
4353         param "insn" of "target_insert_mode_switch_use" callback.
4354         * config/frv/frv.c (frv_insn_unit): Likewise for param "insn".
4355         (frv_issues_to_branch_unit_p): Likewise.
4356         (frv_pack_insn_p): Likewise.
4357         (frv_compare_insns): Strengthen locals "insn1" and "insn2" from
4358         const rtx * (i.e. mutable rtx_def * const *) to
4359         rtx_insn * const *.
4360         * config/i386/i386-protos.h (standard_sse_constant_opcode):
4361         Strengthen first param from rtx to rtx_insn *.
4362         (output_fix_trunc): Likewise.
4363         * config/i386/i386.c (standard_sse_constant_opcode): Likewise.
4364         (output_fix_trunc): Likewise.
4365         (core2i7_first_cycle_multipass_filter_ready_try): Likewise for
4366         local "insn".
4367         (min_insn_size): Likewise for param "insn".
4368         (get_mem_group): Likewise.
4369         (is_cmp): Likewise.
4370         (get_insn_path): Likewise.
4371         (get_insn_group): Likewise.
4372         (count_num_restricted): Likewise.
4373         (fits_dispatch_window): Likewise.
4374         (add_insn_window): Likewise.
4375         (add_to_dispatch_window): Likewise.
4376         (debug_insn_dispatch_info_file): Likewise.
4377         * config/m32c/m32c-protos.h (m32c_output_compare): Likewise for
4378         first param.
4379         * config/m32c/m32c.c (m32c_compare_redundant): Likewise for param
4380         "cmp" and local "prev".
4381         (m32c_output_compare): Likewise for param "insn".
4382         * config/m32r/predicates.md (define_predicate "small_insn_p"): Add
4383         a checked cast to rtx_insn * on "op" after we know it's an INSN_P.
4384         (define_predicate "large_insn_p"): Likewise.
4385         * config/m68k/m68k-protos.h (m68k_sched_attr_size): Strengthen
4386         param from rtx to rtx_insn *.
4387         (attr_op_mem m68k_sched_attr_op_mem): Likewise.
4388         * config/m68k/m68k.c (sched_get_attr_size_int): Likewise.
4389         (m68k_sched_attr_size): Likewise.
4390         (sched_get_opxy_mem_type): Likewise for param "insn".
4391         (m68k_sched_attr_op_mem): Likewise.
4392         (sched_mem_operand_p): Likewise.
4393         * config/mep/mep-protos.h (mep_multi_slot): Likewise for param.
4394         * config/mep/mep.c (mep_multi_slot): Likewise.
4395         * config/mips/mips-protos.h (mips_output_sync_loop): Likewise for
4396         first param.
4397         (mips_sync_loop_insns): Likewise.
4398         * config/mips/mips.c (mips_print_operand_punctuation): Use insn
4399         method of "final_sequence" for typesafety.
4400         (mips_process_sync_loop): Strengthen param "insn" from rtx to
4401         rtx_insn *.
4402         (mips_output_sync_loop): Likewise.
4403         (mips_sync_loop_insns): Likewise.
4404         (mips_74k_agen_init): Likewise.
4405         (mips_sched_init): Use NULL rather than NULL_RTX when working with
4406         insns.
4407         * config/nds32/nds32-fp-as-gp.c (nds32_symbol_load_store_p):
4408         Strengthen param "insn" from rtx to rtx_insn *.
4409         * config/nds32/nds32.c (nds32_target_alignment): Likewise for
4410         local "insn".
4411         * config/pa/pa-protos.h (pa_insn_refs_are_delayed): Likewise for
4412         param.
4413         * config/pa/pa.c (pa_output_function_epilogue): Likewise for local
4414         "insn".  Use method of rtx_sequence for typesafety.
4415         (branch_to_delay_slot_p): Strengthen param "insn" from rtx to
4416         rtx_insn *.
4417         (branch_needs_nop_p): Likewise.
4418         (use_skip_p): Likewise.
4419         (pa_insn_refs_are_delayed): Likewise.
4420         * config/rl78/rl78.c (rl78_propogate_register_origins): Likewise
4421         for locals "insn", "ninsn".
4422         * config/rs6000/rs6000.c (is_microcoded_insn): Likewise for param
4423         "insn".
4424         (is_cracked_insn): Likewise.
4425         (is_branch_slot_insn): Likewise.
4426         (is_nonpipeline_insn): Likewise.
4427         (insn_terminates_group_p): Likewise.
4428         (insn_must_be_first_in_group): Likewise.
4429         (insn_must_be_last_in_group): Likewise.
4430         (force_new_group): Likewise for param "next_insn".
4431         * config/s390/s390.c (s390_get_sched_attrmask): Likewise for param
4432         "insn".
4433         (s390_sched_score): Likewise.
4434         * config/sh/sh-protos.h (output_branch): Likewise for param 2.
4435         (rtx sfunc_uses_reg): Likewise for sole param.
4436         * config/sh/sh.c (sh_print_operand): Use insn method of
4437         final_sequence for typesafety.
4438         (output_branch): Strengthen param "insn" from rtx to rtx_insn *.
4439         Use insn method of final_sequence for typesafety.
4440         (sfunc_uses_reg): Strengthen param "insn" from rtx to rtx_insn *.
4441         * config/sparc/sparc-protos.h (eligible_for_call_delay): Likewise
4442         for param.
4443         (eligible_for_return_delay): Likewise.
4444         (eligible_for_sibcall_delay): Likewise.
4445         * config/sparc/sparc.c (eligible_for_call_delay): Likewise.
4446         (eligible_for_return_delay): Likewise.
4447         (eligible_for_sibcall_delay): Likewise.
4448         * config/stormy16/stormy16-protos.h
4449         (xstormy16_output_cbranch_hi): Likewise for final param.
4450         (xstormy16_output_cbranch_si): Likewise.
4451         * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi): LIkewise.
4452         (xstormy16_output_cbranch_si): Likewise.
4453         * config/v850/v850-protos.h (notice_update_cc): Likewise.
4454         * config/v850/v850.c (notice_update_cc): Likewise.
4456         * final.c (get_attr_length_1): Strengthen param "insn" and param
4457         of "fallback_fn" from rtx to rtx_insn *, eliminating a checked cast.
4458         (get_attr_length): Strengthen param "insn" from rtx to rtx_insn *.
4459         (get_attr_min_length): Likewise.
4460         (shorten_branches): Likewise for signature of locals "length_fun"
4461         and "inner_length_fun".  Introduce local rtx_sequence * "seqn"
4462         from a checked cast and use its methods for clarity and to enable
4463         strengthening local "inner_insn" from rtx to rtx_insn *.
4464         * genattr.c (gen_attr): When writing out the prototypes of the
4465         various generated "get_attr_" functions, strengthen the params of
4466         the non-const functions from rtx to rtx_insn *.
4467         Similarly, strengthen the params of insn_default_length,
4468         insn_min_length, insn_variable_length_p, insn_current_length.
4469         (main): Similarly, strengthen the param of num_delay_slots,
4470         internal_dfa_insn_code, insn_default_latency, bypass_p,
4471         insn_latency, min_issue_delay, print_reservation,
4472         insn_has_dfa_reservation_p and of the "internal_dfa_insn_code" and
4473         "insn_default_latency" callbacks.  Rename hook_int_rtx_unreachable
4474         to hook_int_rtx_insn_unreachable.
4475         * genattrtab.c (write_attr_get): When writing out the generated
4476         "get_attr_" functions, strengthen the param "insn" from rtx to
4477         rtx_insn *, eliminating a checked cast.
4478         (make_automaton_attrs): When writing out prototypes of
4479         "internal_dfa_insn_code_", "insn_default_latency_" functions
4480         and the "internal_dfa_insn_code" and "insn_default_latency"
4481         callbacks, strengthen their params from rtx to rtx_insn *
4482         * genautomata.c (output_internal_insn_code_evaluation): When
4483         writing out code, add a checked cast from rtx to rtx_insn * when
4484         invoking DFA_INSN_CODE_FUNC_NAME aka dfa_insn_code.
4485         (output_dfa_insn_code_func): Strengthen param of generated
4486         function "dfa_insn_code_enlarge" from rtx to rtx_insn *.
4487         (output_trans_func): Likewise for generated function
4488         "state_transition".
4489         (output_internal_insn_latency_func): When writing out generated
4490         function "internal_insn_latency", rename params from "insn" and
4491         "insn2" to "insn_or_const0" and "insn2_or_const0".  Reintroduce
4492         locals "insn" and "insn2" as rtx_insn * with checked casts once
4493         we've proven that we're not dealing with const0_rtx.
4494         (output_insn_latency_func):  Strengthen param of generated
4495         function "insn_latency" from rtx to rtx_insn *.
4496         (output_print_reservation_func): Likewise for generated function
4497         "print_reservation".
4498         (output_insn_has_dfa_reservation_p): Likewise for generated
4499         function "insn_has_dfa_reservation_p".
4500         * hooks.c (hook_int_rtx_unreachable): Rename to...
4501         (hook_int_rtx_insn_unreachable): ...this, and strengthen param
4502         from rtx to rtx_insn *.
4503         * hooks.h (hook_int_rtx_unreachable): Likewise.
4504         (extern int hook_int_rtx_insn_unreachable): Likewise.
4505         * output.h (get_attr_length): Strengthen param from rtx to rtx_insn *.
4506         (get_attr_min_length): Likewise.
4507         * recog.c (get_enabled_alternatives): Likewise.
4508         * recog.h (alternative_mask get_enabled_alternatives): Likewise.
4509         * reorg.c (find_end_label): Introduce local rtx "pat" and
4510         strengthen local "insn" from rtx to rtx_insn *.
4511         (redundant_insn): Use insn method of "seq" rather than element for
4512         typesafety; strengthen local "control" from rtx to rtx_insn *.
4513         * resource.c (mark_referenced_resources): Add checked cast to
4514         rtx_insn * within INSN/JUMP_INSN case.
4515         (mark_set_resources): Likewise.
4516         * sel-sched.c (estimate_insn_cost): Strengthen param "insn" from
4517         rtx to rtx_insn *.
4519 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
4521         * config/rs6000/rs6000.c (rs6000_loop_align_max_skip): Strengthen
4522         param "label" from rtx to rtx_insn *.
4523         * config/rx/rx.c (rx_max_skip_for_label): Likewise for param "lab"
4524         and local "op".
4525         * doc/tm.texi (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Autogenerated changes.
4526         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Likewise.
4527         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
4528         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
4529         * final.c (default_label_align_after_barrier_max_skip): Strengthen
4530         param from rtx to rtx_insn *.
4531         (default_loop_align_max_skip): Likewise.
4532         (default_label_align_max_skip): Likewise.
4533         (default_jump_align_max_skip): Likewise.
4534         * target.def (label_align_after_barrier_max_skip): Likewise.
4535         (loop_align_max_skip): Likewise.
4536         (label_align_max_skip): Likewise.
4537         (jump_align_max_skip): Likewise.
4538         * targhooks.h (default_label_align_after_barrier_max_skip):
4539         Likewise.
4540         (default_loop_align_max_skip): Likewise.
4541         (default_label_align_max_skip): Likewise.
4542         (default_jump_align_max_skip): Likewise.
4544 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
4546         * config/arc/arc.c (arc_can_follow_jump): Strengthen both params
4547         from const_rtx to const rtx_insn *.  Update union members from rtx
4548         to rtx_insn *.
4549         * doc/tm.texi (TARGET_CAN_FOLLOW_JUMP): Autogenerated change.
4550         * hooks.c (hook_bool_const_rtx_const_rtx_true): Rename to...
4551         (hook_bool_const_rtx_insn_const_rtx_insn_true): ...this, and
4552         strengthen both params from const_rtx to const rtx_insn *.
4553         * hooks.h (hook_bool_const_rtx_const_rtx_true): Likewise.
4554         (hook_bool_const_rtx_insn_const_rtx_insn_true): Likewise.
4555         * reorg.c (follow_jumps): Strengthen param "jump" from rtx to
4556         rtx_insn *.
4557         * target.def (can_follow_jump): Strengthen both params from
4558         const_rtx to const rtx_insn *, and update default implementation
4559         from hook_bool_const_rtx_const_rtx_true to
4560         hook_bool_const_rtx_insn_const_rtx_insn_true.
4562 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
4564         * sched-deps.c (deps_start_bb): Strengthen param "head" and local
4565         "insn" from rtx to rtx_insn *.
4566         * sched-int.h (deps_start_bb): Likewise for 2nd param.
4568 2014-09-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4569             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4570             Anna Tikhonova  <anna.tikhonova@intel.com>
4571             Ilya Tocar  <ilya.tocar@intel.com>
4572             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4573             Ilya Verbin  <ilya.verbin@intel.com>
4574             Kirill Yukhin  <kirill.yukhin@intel.com>
4575             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4577         * config/i386/sse.md
4578         (define_insn "vcvtph2ps<mask_name>"): Add masking.
4579         (define_insn "*vcvtph2ps_load<mask_name>"): Ditto.
4580         (define_insn "vcvtph2ps256<mask_name>"): Ditto.
4581         (define_expand "vcvtps2ph_mask"): New.
4582         (define_insn "*vcvtps2ph<mask_name>"): Add masking.
4583         (define_insn "*vcvtps2ph_store<mask_name>"): Ditto.
4584         (define_insn "vcvtps2ph256<mask_name>"): Ditto.
4586 2014-09-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4587             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4588             Anna Tikhonova  <anna.tikhonova@intel.com>
4589             Ilya Tocar  <ilya.tocar@intel.com>
4590             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4591             Ilya Verbin  <ilya.verbin@intel.com>
4592             Kirill Yukhin  <kirill.yukhin@intel.com>
4593             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4595         * config/i386/sse.md (define_mode_iterator VI248_AVX512BW_AVX512VL):
4596         New.
4597         (define_mode_iterator VI24_AVX512BW_1): Ditto.
4598         (define_insn "<mask_codefor>ashr<mode>3<mask_name>"): Ditto.
4599         (define_insn "<mask_codefor>ashrv2di3<mask_name>"): Ditto.
4600         (define_insn "ashr<VI248_AVX512BW_AVX512VL:mode>3<mask_name>"): Enable
4601         also for TARGET_AVX512VL.
4602         (define_expand "ashrv2di3"): Update to enable TARGET_AVX512VL.
4604 2014-09-15  Markus Trippelsdorf  <markus@trippelsdorf.de>
4606         * doc/install.texi (Options specification): add
4607         --disable-libsanitizer item.
4609 2014-09-14  James Clarke  <jrtc27@jrtc27.com>
4610             Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
4612         PR target/61407
4613         * config/darwin-c.c (version_as_macro): Added extra 0 for OS X 10.10
4614         and above.
4615         * config/darwin-driver.c (darwin_find_version_from_kernel): Removed
4616         kernel version check to avoid incrementing it after every major OS X
4617         release.
4618         (darwin_default_min_version): Avoid static memory buffer.
4620 2014-09-13  Jan Hubicka  <hubicka@ucw.cz>
4622         * tree.c (need_assembler_name_p): Store C++ type mangling only
4623         for aggregates.
4625 2014-09-13  Marek Polacek  <polacek@redhat.com>
4627         * tree.c (protected_set_expr_location): Don't check whether T is
4628         non-null here.
4630 2014-09-12  DJ Delorie  <dj@redhat.com>
4632         * config/msp430/msp430.md (extendhipsi2): Use 20-bit form of RLAM/RRAM.
4633         (extend_and_shift1_hipsi2): Likewise.
4634         (extend_and_shift2_hipsi2): Likewise.
4636 2014-09-12  David Malcolm  <dmalcolm@redhat.com>
4638         * config/alpha/alpha.c (alpha_ra_ever_killed): Replace NULL_RTX
4639         with NULL when dealing with an insn.
4640         * config/sh/sh.c (sh_reorg): Strengthen local "last_float_move"
4641         from rtx to rtx_insn *.
4642         * rtl.h (reg_set_between_p): Strengthen params 2 and 3 from
4643         const_rtx to const rtx_insn *.
4644         * rtlanal.c (reg_set_between_p): Likewise, removing a checked cast.
4646 2014-09-12  Trevor Saunders  <tsaunders@mozilla.com>
4648         * hash-table.h (gt_pch_nx): Don't call gt_pch_note_object within an
4649         assert.
4651 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
4653         * target.def (libgcc_floating_mode_supported_p): New hook.
4654         * targhooks.c (default_libgcc_floating_mode_supported_p): New
4655         function.
4656         * targhooks.h (default_libgcc_floating_mode_supported_p): Declare.
4657         * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE, LIBGCC2_HAS_XF_MODE)
4658         (LIBGCC2_HAS_TF_MODE): Remove.
4659         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): New @hook.
4660         * doc/tm.texi: Regenerate.
4661         * genmodes.c (emit_insn_modes_h): Define HAVE_%smode for each
4662         machine mode.
4663         * system.h (LIBGCC2_HAS_SF_MODE, LIBGCC2_HAS_DF_MODE)
4664         (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE): Poison.
4665         * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE): Remove.
4666         * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE): Remove.
4667         * config/i386/djgpp.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4668         * config/i386/dragonfly.h (LIBGCC2_HAS_TF_MODE): Remove.
4669         * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE): Remove.
4670         * config/i386/gnu-user-common.h (LIBGCC2_HAS_TF_MODE): Remove.
4671         * config/i386/i386-interix.h (IX86_NO_LIBGCC_TFMODE): Define.
4672         * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p): New
4673         function.
4674         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
4675         * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4676         * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4677         * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4678         * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4679         * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4680         * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4681         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE): Remove.
4682         * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Define.
4683         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Remove.
4684         * config/i386/vx-common.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4685         * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Define.
4686         * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Define.
4687         * config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE):
4688         Remove.
4689         * config/ia64/ia64.c (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P):
4690         New macro.
4691         (ia64_libgcc_floating_mode_supported_p): New function.
4692         * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): Remove.
4693         * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
4694         (IA64_NO_LIBGCC_TFMODE): Define.
4695         * config/msp430/msp430.h (LIBGCC2_HAS_DF_MODE): Remove.
4696         * config/pdp11/pdp11.c (TARGET_SCALAR_MODE_SUPPORTED_P): New
4697         macro.
4698         (pdp11_scalar_mode_supported_p): New function.
4699         * config/rl78/rl78.h (LIBGCC2_HAS_DF_MODE): Remove.
4700         * config/rx/rx.h (LIBGCC2_HAS_DF_MODE): Remove.
4702 2014-09-12  Richard Biener  <rguenther@suse.de>
4704         PR middle-end/63237
4705         * gimple-fold.c (get_maxval_strlen): Gimplify string length.
4707 2014-09-12  Marc Glisse  <marc.glisse@inria.fr>
4709         * tree.c (integer_each_onep): New function.
4710         * tree.h (integer_each_onep): Declare it.
4711         * fold-const.c (fold_binary_loc): Use it for ~A + 1 to -A and
4712         -A - 1 to ~A.  Disable (X & 1) ^ 1, (X ^ 1) & 1 and ~X & 1 to
4713         (X & 1) == 0 for vector and complex.
4715 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
4717         * gcc/config/aarch64/aarch64.c (cortexa57_regmove_cost): New cost table
4718         for A57.
4719         (cortexa53_regmove_cost): New cost table for A53.  Increase GP2FP/FP2GP
4720         cost to spilling from integer to FP registers.
4722 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
4724         * config/aarch64/aarch64.c (aarch64_register_move_cost): Fix Q register
4725         move handling.
4726         (generic_regmove_cost): Undo raised FP2FP move cost as Q register moves
4727         are now handled correctly.
4729 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
4731         * config/aarch64/aarch64.c (aarch64_register_move_cost): Add cost
4732         handling of CALLER_SAVE_REGS and POINTER_REGS.
4734 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
4736         * gcc/ree.c (combine_reaching_defs): Ensure inserted copy don't change
4737         the number of hard registers.
4739 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4740             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4741             Anna Tikhonova  <anna.tikhonova@intel.com>
4742             Ilya Tocar  <ilya.tocar@intel.com>
4743             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4744             Ilya Verbin  <ilya.verbin@intel.com>
4745             Kirill Yukhin  <kirill.yukhin@intel.com>
4746             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4748         * config/i386/sse.md
4749         (define_mode_iterator VI48_AVX512VL): New.
4750         (define_expand "<avx512>_vternlog<mode>_maskz"): Rename from
4751         "avx512f_vternlog<mode>_maskz" and update mode iterator.
4752         (define_insn "<avx512>_vternlog<mode><sd_maskz_name>"): Rename
4753         from "avx512f_vternlog<mode><sd_maskz_name>" and update mode iterator.
4754         (define_insn "<avx512>_vternlog<mode>_mask"): Rename from
4755         "avx512f_vternlog<mode>_mask" and update mode iterator.
4756         (define_insn "<mask_codefor><avx512>_align<mode><mask_name>"): Rename
4757         from "<mask_codefor>avx512f_align<mode><mask_name>" and update mode
4758         iterator.
4759         (define_insn "<avx512>_<rotate>v<mode><mask_name>"): Rename from
4760         "avx512f_<rotate>v<mode><mask_name>" and update mode iterator.
4761         (define_insn "<avx512>_<rotate><mode><mask_name>"): Rename from
4762         "avx512f_<rotate><mode><mask_name>" and update mode iterator.
4763         (define_insn "clz<mode>2<mask_name>"): Use VI48_AVX512VL mode iterator.
4764         (define_insn "<mask_codefor>conflict<mode><mask_name>"): Ditto.
4766 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4767             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4768             Anna Tikhonova  <anna.tikhonova@intel.com>
4769             Ilya Tocar  <ilya.tocar@intel.com>
4770             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4771             Ilya Verbin  <ilya.verbin@intel.com>
4772             Kirill Yukhin  <kirill.yukhin@intel.com>
4773             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4775         * config/i386/sse.md (VI128_256): Delete.
4776         (define_mode_iterator VI124_256): New.
4777         (define_mode_iterator VI124_256_AVX512F_AVX512BW): Ditto.
4778         (define_expand "<code><mode>3<mask_name><round_name>"): Delete.
4779         (define_expand "<code><VI124_256_AVX512F_AVX512BW:mode>3"): New.
4780         (define_insn "*avx2_<code><VI124_256:mode>3"): Rename from
4781         "*avx2_<code><mode>3<mask_name><round_name>" and update mode iterator.
4782         (define_expand "<code><VI48_AVX512VL:mode>3_mask"): New.
4783         (define_insn "*avx512bw_<code><VI48_AVX512VL:mode>3<mask_name>"): Ditto.
4784         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Update mode
4785         iterator.
4786         (define_expand "<code><VI8_AVX2:mode>3"): Update pettern generation
4787         in presence of AVX-512.
4789 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4790             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4791             Anna Tikhonova  <anna.tikhonova@intel.com>
4792             Ilya Tocar  <ilya.tocar@intel.com>
4793             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4794             Ilya Verbin  <ilya.verbin@intel.com>
4795             Kirill Yukhin  <kirill.yukhin@intel.com>
4796             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4798         * config/i386/sse.md
4799         (define_expand "<avx512>_gathersi<mode>"): Rename from
4800         "avx512f_gathersi<mode>".
4801         (define_insn "*avx512f_gathersi<mode>"): Use VI48F.
4802         (define_insn "*avx512f_gathersi<mode>_2"): Ditto.
4803         (define_expand "<avx512>_gatherdi<mode>"): Rename from
4804         "avx512f_gatherdi<mode>".
4805         (define_insn "*avx512f_gatherdi<mode>"): Use VI48F.
4806         (define_insn "*avx512f_gatherdi<mode>_2"): Use VI48F, add 128/256-bit
4807         wide versions.
4808         (define_expand "<avx512>_scattersi<mode>"): Rename from
4809         "avx512f_scattersi<mode>".
4810         (define_insn "*avx512f_scattersi<mode>"): Use VI48F.
4811         (define_expand "<avx512>_scatterdi<mode>"): Rename from
4812         "avx512f_scatterdi<mode>".
4813         (define_insn "*avx512f_scatterdi<mode>"): Use VI48F.
4815 2014-09-12  Richard Sandiford  <richard.sandiford@arm.com>
4817         * ira.h (ira_finish_once): Delete.
4818         * ira-int.h (target_ira_int::~target_ira_int): Declare.
4819         (target_ira_int::free_ira_costs): Likewise.
4820         (target_ira_int::free_register_move_costs): Likewise.
4821         (ira_finish_costs_once): Delete.
4822         * ira.c (free_register_move_costs): Replace with...
4823         (target_ira_int::free_register_move_costs): ...this new function.
4824         (target_ira_int::~target_ira_int): Define.
4825         (ira_init): Call free_register_move_costs as a member function rather
4826         than a global function.
4827         (ira_finish_once): Delete.
4828         * ira-costs.c (free_ira_costs): Replace with...
4829         (target_ira_int::free_ira_costs): ...this new function.
4830         (ira_init_costs): Call free_ira_costs as a member function rather
4831         than a global function.
4832         (ira_finish_costs_once): Delete.
4833         * target-globals.c (target_globals::~target_globals): Call the
4834         target_ira_int destructor.
4835         * toplev.c: Include lra.h.
4836         (finalize): Call lra_finish_once rather than ira_finish_once.
4838 2014-09-11  Jan Hubicka  <hubicka@ucw.cz>
4840         * common.opt (flto-odr-type-merging): New flag.
4841         * ipa-deivrt.c (hash_type_name): Use ODR names for hasing if availale.
4842         (types_same_for_odr): Likewise.
4843         (odr_subtypes_equivalent_p): Likewise.
4844         (add_type_duplicate): Do not walk type variants.
4845         (register_odr_type): New function.
4846         * ipa-utils.h (register_odr_type): Declare.
4847         (odr_type_p): New function.
4848         * langhooks.c (lhd_set_decl_assembler_name): Do not compute
4849         TYPE_DECLs
4850         * doc/invoke.texi (-flto-odr-type-merging): Document.
4851         * tree.c (need_assembler_name_p): Compute ODR names when asked
4852         for it.
4853         * tree.h (DECL_ASSEMBLER_NAME): Update comment.
4855 2014-09-11  H.J. Lu  <hongjiu.lu@intel.com>
4857         PR target/63228
4858         * config/i386/i386.c (ix86_option_override_internal): Also turn
4859         off OPTION_MASK_ABI_X32 for -m16.
4861 2014-09-11  Segher Boessenkool  <segher@kernel.crashing.org>
4863         * config/rs6000/rs6000.md (rs6000_mftb_<mode>): Use mode iterator
4864         GPR instead of P.
4866 2014-09-11  Marc Glisse  <marc.glisse@inria.fr>
4868         PR target/58757
4869         * ginclude/float.h (FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
4870         Directly forward to __*_DENORM_MIN__.
4872 2014-09-11  David Malcolm  <dmalcolm@redhat.com>
4874         * rtl.h (LABEL_REF_LABEL): New macro.
4876         * alias.c (rtx_equal_for_memref_p): Use LABEL_REF_LABEL in place
4877         of XEXP (, 0), where we know that we have a LABEL_REF.
4878         * cfgbuild.c (make_edges): Likewise.
4879         (purge_dead_tablejump_edges): Likewise.
4880         * cfgexpand.c (convert_debug_memory_address): Likewise.
4881         * cfgrtl.c (patch_jump_insn): Likewise.
4882         * combine.c (distribute_notes): Likewise.
4883         * cse.c (hash_rtx_cb): Likewise.
4884         (exp_equiv_p): Likewise.
4885         (fold_rtx): Likewise.
4886         (check_for_label_ref): Likewise.
4887         * cselib.c (rtx_equal_for_cselib_1): Likewise.
4888         (cselib_hash_rtx): Likewise.
4889         * emit-rtl.c (mark_label_nuses): Likewise.
4890         * explow.c (convert_memory_address_addr_space): Likewise.
4891         * final.c (output_asm_label): Likewise.
4892         (output_addr_const): Likewise.
4893         * gcse.c (add_label_notes): Likewise.
4894         * genconfig.c (walk_insn_part): Likewise.
4895         * genrecog.c (validate_pattern): Likewise.
4896         * ifcvt.c (cond_exec_get_condition): Likewise.
4897         (noce_emit_store_flag): Likewise.
4898         (noce_get_alt_condition): Likewise.
4899         (noce_get_condition): Likewise.
4900         * jump.c (maybe_propagate_label_ref): Likewise.
4901         (mark_jump_label_1): Likewise.
4902         (redirect_exp_1): Likewise.
4903         (rtx_renumbered_equal_p): Likewise.
4904         * lra-constraints.c (operands_match_p): Likewise.
4905         * reload.c (operands_match_p): Likewise.
4906         (find_reloads): Likewise.
4907         * reload1.c (set_label_offsets): Likewise.
4908         * reorg.c (get_branch_condition): Likewise.
4909         * rtl.c (rtx_equal_p_cb): Likewise.
4910         (rtx_equal_p): Likewise.
4911         * rtlanal.c (reg_mentioned_p): Likewise.
4912         (rtx_referenced_p): Likewise.
4913         (get_condition): Likewise.
4914         * sched-vis.c (print_value): Likewise.
4915         * varasm.c (const_hash_1): Likewise.
4916         (compare_constant): Likewise.
4917         (const_rtx_hash_1): Likewise.
4918         (output_constant_pool_1): Likewise.
4920 2014-09-11  Segher Boessenkool  <segher@kernel.crashing.org>
4922         * config/rs6000/htm.md (tabort, tabortdc, tabortdci, tabortwc,
4923         tabortwci, tbegin, tcheck, tend, trechkpt, treclaim, tsr): Use xor
4924         instead of minus.
4925         * config/rs6000/vector.md (cr6_test_for_zero_reverse,
4926         cr6_test_for_lt_reverse): Ditto.
4928 2014-09-11  Paolo Carlini  <paolo.carlini@oracle.com>
4930         PR c++/61489
4931         * doc/invoke.texi ([-Wmissing-field-initializers]): Update.
4933 2014-09-11  Alan Lawrence  <alan.lawrence@arm.com>
4935         * config/aarch64/aarch64-builtins.c (aarch64_types_unop_su_qualifiers,
4936         TYPES_REINTERP_SU, aarch64_types_unop_sp_qualifiers, TYPE_REINTERP_SP,
4937         aarch64_types_unop_us_qualifiers, TYPES_REINTERP_US,
4938         aarch64_types_unop_ps_qualifiers, TYPES_REINTERP_PS, BUILTIN_VD):
4939         Delete.
4941         (aarch64_fold_builtin): Remove all reinterpret cases.
4943         * config/aarch64/aarch64-protos.h (aarch64_simd_reinterpret): Delete.
4945         * config/aarch64/aarch64-simd-builtins.def (reinterpret*) : Delete.
4947         * config/aarch64/aarch64-simd.md (aarch64_reinterpretv8qi<mode>,
4948         aarch64_reinterpretv4hi<mode>, aarch64_reinterpretv2si<mode>,
4949         aarch64_reinterpretv2sf<mode>, aarch64_reinterpretdi<mode>,
4950         aarch64_reinterpretv1df<mode>, aarch64_reinterpretv16qi<mode>,
4951         aarch64_reinterpretv8hi<mode>, aarch64_reinterpretv4si<mode>,
4952         aarch64_reinterpretv4sf<mode>, aarch64_reinterpretv2di<mode>,
4953         aarch64_reinterpretv2df<mode>): Delete.
4955         * config/aarch64/aarch64.c (aarch64_simd_reinterpret): Delete.
4957         * config/aarch64/arm_neon.h (vreinterpret_p8_f64,
4958         vreinterpret_p16_f64, vreinterpret_f32_f64, vreinterpret_f64_f32,
4959         vreinterpret_f64_p8, vreinterpret_f64_p16, vreinterpret_f64_s8,
4960         vreinterpret_f64_s16, vreinterpret_f64_s32, vreinterpret_f64_u8,
4961         vreinterpret_f64_u16, vreinterpret_f64_u32, vreinterpret_s64_f64,
4962         vreinterpret_u64_f64, vreinterpret_s8_f64, vreinterpret_s16_f64,
4963         vreinterpret_s32_f64, vreinterpret_u8_f64, vreinterpret_u16_f64,
4964         vreinterpret_u32_f64): Use cast.
4966         * config/aarch64/iterators.md (VD_RE): Delete.
4968 2014-09-11  Alan Lawrence  <alan.lawrence@arm.com>
4970         * config/aarch64/arm_neon.h (aarch64_vset_lane_any): New (*2).
4971         (vset_lane_f32, vset_lane_f64, vset_lane_p8, vset_lane_p16,
4972         vset_lane_s8, vset_lane_s16, vset_lane_s32, vset_lane_s64,
4973         vset_lane_u8, vset_lane_u16, vset_lane_u32, vset_lane_u64,
4974         vsetq_lane_f32, vsetq_lane_f64, vsetq_lane_p8, vsetq_lane_p16,
4975         vsetq_lane_s8, vsetq_lane_s16, vsetq_lane_s32, vsetq_lane_s64,
4976         vsetq_lane_u8, vsetq_lane_u16, vsetq_lane_u32, vsetq_lane_u64):
4977         Replace inline assembler with __aarch64_vset_lane_any.
4979 2014-09-11  James Greenhalgh  <james.greenhalgh@arm.com>
4981         * config/aarch64/arm_neon.h (vmull_high_lane_s16): Fix argument
4982         types.
4983         (vmull_high_lane_s32): Likewise.
4984         (vmull_high_lane_u16): Likewise.
4985         (vmull_high_lane_u32): Likewise.
4987 2014-09-11  Jason Merrill  <jason@redhat.com>
4989         PR c++/58678
4990         * ipa-devirt.c (ipa_devirt): Don't check DECL_COMDAT.
4992 2014-09-11  Georg-Johann Lay  <avr@gjlay.de>
4994         PR target/63223
4995         * config/avr/avr.md (*tablejump.3byte-pc): New insn.
4996         (*tablejump): Restrict to !AVR_HAVE_EIJMP_EICALL.  Add void clobber.
4997         (casesi): Expand to *tablejump.3byte-pc if AVR_HAVE_EIJMP_EICALL.
4999 2014-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5000             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5001             Anna Tikhonova  <anna.tikhonova@intel.com>
5002             Ilya Tocar  <ilya.tocar@intel.com>
5003             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5004             Ilya Verbin  <ilya.verbin@intel.com>
5005             Kirill Yukhin  <kirill.yukhin@intel.com>
5006             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5008         * config/i386/sse.md
5009         (define_expand "<avx512>_vpermi2var<VI48F:mode>3_maskz"): Rename from
5010         "avx512f_vpermi2var<mode>3_maskz" and update mode iterator.
5011         (define_expand "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_maskz"):
5012         New.
5013         (define_insn "<avx512>_vpermi2var<VI48F:mode>3<sd_maskz_name>"): Rename
5014         from "avx512f_vpermi2var<mode>3<sd_maskz_name>" and update mode
5015         iterator.
5016         (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
5017         New.
5018         (define_insn "<avx512>_vpermi2var<VI48F:mode>3_mask"): Rename from
5019         "avx512f_vpermi2var<mode>3_mask" and update mode iterator.
5020         (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_mask"): New.
5021         (define_expand "<avx512>_vpermt2var<VI48F:mode>3_maskz"): Rename from
5022         "avx512f_vpermt2var<mode>3_maskz" and update mode iterator.
5023         (define_expand "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_maskz"): New.
5024         (define_insn "<avx512>_vpermt2var<VI48F:mode>3<sd_maskz_name>"): Rename
5025         from "avx512f_vpermt2var<mode>3<sd_maskz_name>" and update mode
5026         iterator.
5027         (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
5028         New.
5029         (define_insn "<avx512>_vpermt2var<VI48F:mode>3_mask"): Rename from
5030         "avx512f_vpermt2var<mode>3_mask" and update mode iterator.
5031         (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_mask"): New.
5033 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
5035         * varpool.c (varpool_node::ctor_useable_for_folding_p): Do not try
5036         to access removed nodes.
5038 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
5040         PR tree-optimization/63186
5041         * ipa-split.c (test_nonssa_use): Skip nonforced labels.
5042         (mark_nonssa_use): Likewise.
5043         (verify_non_ssa_vars): Verify all header blocks for label
5044         definitions.
5046 2014-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5047             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5048             Anna Tikhonova  <anna.tikhonova@intel.com>
5049             Ilya Tocar  <ilya.tocar@intel.com>
5050             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5051             Ilya Verbin  <ilya.verbin@intel.com>
5052             Kirill Yukhin  <kirill.yukhin@intel.com>
5053             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5055         * config/i386/sse.md
5056         (define_mode_attr avx2_avx512): Rename from avx2_avx512bw.
5057         (define_mode_iterator VI48F_256_512): Extend to AVX-512VL.
5058         (define_insn "<avx2_avx512>_permvar<mode><mask_name>"): Rename from
5059         "<avx2_avx512f>_permvar<mode><mask_name>".
5060         (define_insn "<avx512>_permvar<mode><mask_name>"): New.
5061         (define_insn "<avx2_avx512>_ashrv<VI48_AVX512F_AVX512VL:mode><mask_name>"):
5062         Rename from "<avx2_avx512f>_ashrv<mode><mask_name>".
5063         (define_insn "<avx2_avx512>_ashrv<VI2_AVX512VL:mode><mask_name>"):
5064         Ditto.
5065         (define_insn "<avx2_avx512>_<shift_insn>v<VI48_AVX512F:mode><mask_name>"):
5066         Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
5067         (define_insn "<avx2_avx512>_<shift_insn>v<VI2_AVX512VL:mode><mask_name>"):
5068         Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
5070 2014-09-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
5072         * config/rs6000/vsx.md (vsx_fmav4sf4): Use correct constraints for
5073         V2DF, V4SF, DF, and DI modes.
5074         (vsx_fmav2df2): Likewise.
5075         (vsx_float_fix_<mode>2): Likewise.
5076         (vsx_reduc_<VEC_reduc_name>_v2df_scalar): Likewise.
5078 2014-09-10  Xinliang David Li  <davidxl@google.com>
5080         PR target/63209
5081         * config/arm/arm.md (movcond_addsi): Handle case where source
5082         and target operands are the same.
5084 2014-09-10  David Malcolm  <dmalcolm@redhat.com>
5086         * final.c (this_is_asm_operands): Strengthen this variable from
5087         rtx to const rtx_insn *.
5088         * output.h (this_is_asm_operands): Likewise.
5089         * rtl-error.c (location_for_asm): Strengthen param "insn" from
5090         const_rtx to const rtx_insn *.
5091         (diagnostic_for_asm): Likewise.
5092         * rtl-error.h (error_for_asm): Likewise.
5093         (warning_for_asm): Likewise.
5095 2014-09-10  David Malcolm  <dmalcolm@redhat.com>
5097         * genextract.c (print_header): When writing out insn_extract to
5098         insn-extract.c, strengthen the param "insn" from rtx to rtx_insn *.
5099         * recog.h (insn_extract): Strengthen the param from rtx to
5100         rtx_insn *.
5102 2014-09-10  Mike Stump  <mikestump@comcast.net>
5104         * doc/install.texi (Prerequisites): Note Tcl 8.6 bug fixed in
5105         8.6.1.
5107 2014-09-10  Martin Jambor  <mjambor@suse.cz>
5109         * cgraphunit.c (expand_thunk): If not expanding, set analyzed flag.
5110         (analyze): Do not set analyze flag if expand_thunk returns false;.
5111         (create_wrapper): Likewise.
5112         * cgraphclones.c (duplicate_thunk_for_node): Likewise.
5114 2014-09-10  Martin Jambor  <mjambor@suse.cz>
5116         PR ipa/61654
5117         * cgraphclones.c (duplicate_thunk_for_node): Copy arguments of the
5118         new decl properly.  Analyze the new thunk if it is expanded.
5120 2014-09-10  Andreas Schwab  <schwab@suse.de>
5122         * coretypes.h (struct _dont_use_rtx_insn_here_, rtx_insn)
5123         [USED_FOR_TARGET]: Define.
5125 2014-09-10  Matthew Fortune  <matthew.fortune@imgtec.com>
5127         * config/mips/mips.c (mips_secondary_reload_class): Handle
5128         regno < 0 case.
5130 2014-09-10  Robert Suchanek   <robert.suchanek@imgtec.com>
5132         * lra-lives.c (process_bb_lives): Replace assignment with bitwise OR
5133         assignment.
5135 2014-09-10  Jakub Jelinek  <jakub@redhat.com>
5137         * flag-types.h (enum sanitize_code): Add SANITIZE_NONNULL_ATTRIBUTE
5138         and SANITIZE_RETURNS_NONNULL_ATTRIBUTE, or them into SANITIZE_UNDEFINED.
5139         * opts.c (common_handle_option): Handle SANITIZE_NONNULL_ATTRIBUTE and
5140         SANITIZE_RETURNS_NONNULL_ATTRIBUTE and disable
5141         flag_delete_null_pointer_checks for them.
5142         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
5143         BUILT_IN_UBSAN_HANDLE_NONNULL_ARG_ABORT,
5144         BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN,
5145         BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_ABORT): New.
5146         * ubsan.c (instrument_bool_enum_load): Set *gsi back to
5147         stmt's iterator.
5148         (instrument_nonnull_arg, instrument_nonnull_return): New functions.
5149         (pass_ubsan::gate): Return true even for SANITIZE_NONNULL_ATTRIBUTE
5150         or SANITIZE_RETURNS_NONNULL_ATTRIBUTE.
5151         (pass_ubsan::execute): Call instrument_nonnull_{arg,return}.
5152         * doc/invoke.texi (-fsanitize=nonnull-attribute,
5153         -fsanitize=returns-nonnull-attribute): Document.
5155         * ubsan.h (struct ubsan_mismatch_data): Removed.
5156         (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
5157         * ubsan.c (ubsan_source_location): For unknown locations,
5158         pass { NULL, 0, 0 } instead of { "<unknown>", x, y }.
5159         (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
5160         Allow more than one location and arbitrary extra arguments passed
5161         in ... instead of through MISMATCH pointer.
5162         (ubsan_instrument_unreachable, ubsan_expand_bounds_ifn,
5163         ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
5164         instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
5165         callers.
5167 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5168             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5169             Anna Tikhonova  <anna.tikhonova@intel.com>
5170             Ilya Tocar  <ilya.tocar@intel.com>
5171             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5172             Ilya Verbin  <ilya.verbin@intel.com>
5173             Kirill Yukhin  <kirill.yukhin@intel.com>
5174             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5176         * config/i386/sse.md
5177         (define_mode_iterator VI48F): New.
5178         (define_insn "<avx512>_compress<mode>_mask"): Rename from
5179         "avx512f_compress<mode>_mask" and update mode iterator.
5180         (define_insn "<avx512>_compressstore<mode>_mask"): Rename from
5181         "avx512f_compressstore<mode>_mask" and update mode iterator.
5182         (define_expand "<avx512>_expand<mode>_maskz"): Rename from
5183         "avx512f_expand<mode>_maskz" and update mode iterator.
5184         (define_insn "<avx512>_expand<mode>_mask"): Rename from
5185         "avx512f_expand<mode>_mask" and update mode iterator.
5187 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5188             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5189             Anna Tikhonova  <anna.tikhonova@intel.com>
5190             Ilya Tocar  <ilya.tocar@intel.com>
5191             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5192             Ilya Verbin  <ilya.verbin@intel.com>
5193             Kirill Yukhin  <kirill.yukhin@intel.com>
5194             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5196         * config/i386/i386.c
5197         (ix86_expand_args_builtin): Handle avx512dq_rangepv8df_mask_round,
5198         avx512dq_rangepv16sf_mask_round, avx512dq_rangepv4df_mask,
5199         avx512dq_rangepv8sf_mask, avx512dq_rangepv2df_mask,
5200         avx512dq_rangepv4sf_mask.
5201         * config/i386/sse.md
5202         (define_c_enum "unspec"): Add UNSPEC_REDUCE, UNSPEC_FPCLASS,
5203         UNSPEC_RANGE.
5204         (define_insn "<mask_codefor>reducep<mode><mask_name>"): New.
5205         (define_insn "reduces<mode>"): Ditto.
5206         (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
5207         Ditto.
5208         (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Ditto.
5209         (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Ditto.
5210         (define_insn "avx512dq_vmfpclass<mode>"): Ditto..
5212 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5213             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5214             Anna Tikhonova  <anna.tikhonova@intel.com>
5215             Ilya Tocar  <ilya.tocar@intel.com>
5216             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5217             Ilya Verbin  <ilya.verbin@intel.com>
5218             Kirill Yukhin  <kirill.yukhin@intel.com>
5219             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5221         * config/i386/i386.c
5222         (avx512f_vgetmantv2df_round): Rename from "avx512f_getmantv2df_round".
5223         (avx512f_vgetmantv4sf_round): Rename from "avx512f_vgetmantv4sf_round".
5224         (ix86_expand_args_builtin): Handle avx512vl_getmantv8sf_mask,
5225         avx512vl_getmantv4df_mask, avx512vl_getmantv4sf_mask,
5226         avx512vl_getmantv2df_mask.
5227         (ix86_expand_round_builtin): Handle avx512f_vgetmantv2df_round,
5228         avx512f_vgetmantv4sf_round.
5229         * config/i386/sse.md
5230         (define_insn "<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask"):
5231         Rename from "avx512f_storeu<ssemodesuffix>512_mask" and update
5232         mode iterator.
5233         (define_insn "<mask_codefor>rcp14<mode><mask_name>"): Use VF_AVX512VL.
5234         (define_insn "<mask_codefor>rsqrt14<mode><mask_name>"): Ditto.
5235         (define_insn "<avx512>_scalef<mode><mask_name><round_name>"): Rename
5236         from "avx512f_scalef<mode><mask_name><round_name>" and update mode
5237         iterator..
5238         (define_insn "<avx512>_getexp<mode><mask_name><round_saeonly_name>"):
5239         Rename from "avx512f_getexp<mode><mask_name><round_saeonly_name>" and
5240         update mode iterator.
5241         (define_expand
5242         "<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>"): Rename from
5243         "avx512f_fixupimm<mode>_maskz<round_saeonly_expand_name>" and update
5244         mode iterator.
5245         (define_insn
5246         "<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>"): Rename
5247         from "avx512f_fixupimm<mode><sd_maskz_name><round_saeonly_name>" and
5248         update mode iterator.
5249         (define_insn "<avx512>_fixupimm<mode>_mask<round_saeonly_name>"): Rename
5250         from "avx512f_fixupimm<mode>_mask<round_saeonly_name>" and update mode
5251         iterator..
5252         (define_insn
5253         "<avx512>_rndscale<mode><mask_name><round_saeonly_name>"): rename from
5254         "avx512f_rndscale<mode><mask_name><round_saeonly_name>" and update
5255         mode iterator..
5256         (define_insn "<avx512>_getmant<mode><mask_name><round_saeonly_name>"):
5257         Rename from "avx512f_getmant<mode><mask_name><round_saeonly_name>" and
5258         update mode iterator.
5259         (define_insn "avx512f_vgetmant<mode><round_saeonly_name>"): Rename from
5260         "avx512f_getmant<mode><round_saeonly_name>".
5262 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
5264         PR ipa/63166
5265         * ipa-prop.c (compute_known_type_jump_func): Fix conditional.
5267 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5268             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5269             Anna Tikhonova  <anna.tikhonova@intel.com>
5270             Ilya Tocar  <ilya.tocar@intel.com>
5271             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5272             Ilya Verbin  <ilya.verbin@intel.com>
5273             Kirill Yukhin  <kirill.yukhin@intel.com>
5274             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5276         * config/i386/sse.md (define_mode_iterator VF_AVX512VL): New.
5277         (define_mode_iterator FMAMODEM): Allow 128/256bit EVEX version.
5278         (define_mode_iterator FMAMODE_AVX512): New.
5279         (define_mode_iterator FMAMODE): Remove conditions.
5280         (define_expand "fma4i_fmadd_<mode>"): Use FMAMODE_AVX512 mode iterator.
5281         (define_expand "<avx512>_fmadd_<mode>_maskz<round_expand_name>"): Rename
5282         from "<avx512>_fmadd_<mode>_maskz<round_expand_name>" and use VF_AVX512VL
5283         mode iterator.
5284         (define_mode_iterator FMAMODE_NOVF512): Remove.
5285         (define_insn "*fma_fmadd_<mode>"): Rename from
5286         "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>" and use
5287         FMAMODE mode iterator.
5288         (define_mode_iterator VF_SF_AVX512VL): New.
5289         (define_insn "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>"):
5290         Use VF_SF_AVX512VL mode iterator.
5291         (define_insn "<avx512>_fmadd_<mode>_mask<round_name>"): Rename from
5292         "avx512f_fmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
5293         iterator.
5294         (define_insn "<avx512>_fmadd_<mode>_mask3<round_name>"): Rename from
5295         "avx512f_fmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
5296         iterator.
5297         (define_insn "*fma_fmsub_<mode>"): Rename from
5298         "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>" and use
5299         FMAMODE mode iterator.
5300         (define_insn "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>"):
5301         Use VF_SF_AVX512VL mode iterator.
5302         (define_insn "<avx512>_fmsub_<mode>_mask<round_name>"): Rename from
5303         "avx512f_fmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
5304         iterator.
5305         (define_insn "<avx512>_fmsub_<mode>_mask3<round_name>"): Rename from
5306         "avx512f_fmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
5307         iterator.
5308         (define_insn "*fma_fnmadd_<mode>"): Rename from
5309         "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>" and
5310         use FMAMODE mode iterator.
5311         (define_insn "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>"):
5312         Use VF_SF_AVX512VL mode iterator.
5313         (define_insn "<avx512>_fnmadd_<mode>_mask<round_name>"): Rename from
5314         "avx512f_fnmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
5315         iterator.
5316         (define_insn "<avx512>_fnmadd_<mode>_mask3<round_name>"): Rename from
5317         "avx512f_fnmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
5318         iterator.
5319         (define_insn "*fma_fnmsub_<mode>"): Rename from
5320         "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>" and use
5321         FMAMODE mode iterator.
5322         (define_insn "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>"):
5323         Use VF_SF_AVX512VL mode iterator.
5324         (define_insn "<avx512>_fnmsub_<mode>_mask<round_name>"): Rename from
5325         "avx512f_fnmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
5326         iterator.
5327         (define_insn "<avx512>_fnmsub_<mode>_mask3<round_name>"): Rename from
5328         "avx512f_fnmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
5329         iterator.
5330         (define_expand "<avx512>_fmaddsub_<mode>_maskz<round_expand_name>"):
5331         Rename from "avx512f_fmaddsub_<mode>_maskz<round_expand_name>" and
5332         use VF_AVX512VL mode iterator.
5333         (define_insn "*fma_fmaddsub_<mode>"): Rename from
5334         "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>" and
5335         remove subst usage.
5336         (define_insn "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>"):
5337         Use VF_SF_AVX512VL mode iterator.
5338         (define_insn "<avx512>_fmaddsub_<mode>_mask<round_name>"): Rename from
5339         "avx512f_fmaddsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
5340         iterator.
5341         (define_insn "<avx512>_fmaddsub_<mode>_mask3<round_name>"): Rename from
5342         "avx512f_fmaddsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
5343         iterator.
5344         (define_insn "*fma_fmsubadd_<mode>"): Rename from
5345         "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>" and
5346         remove usage of subst.
5347         (define_insn "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>"):
5348         Use VF_SF_AVX512VL mode iterator.
5349         (define_insn "<avx512>_fmsubadd_<mode>_mask<round_name>"): Rename from
5350         "avx512f_fmsubadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
5351         iterator.
5352         (define_insn "<avx512>_fmsubadd_<mode>_mask3<round_name>"): Rename from
5353         "avx512f_fmsubadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
5354         iterator.
5356 2014-09-10  Kugan Vivekanandarajah  <kuganv@linaro.org>
5358         Revert r213751:
5359         * calls.c (precompute_arguments): Check
5360          promoted_for_signed_and_unsigned_p and set the promoted mode.
5361         (promoted_for_signed_and_unsigned_p): New function.
5362         (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
5363         and set the promoted mode.
5364         * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
5365         * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
5366         SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
5368 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5370         * opth-gen.awk: Generate mapping from cpp message reasons to the
5371         options that enable them.
5372         * doc/options.texi (CppReason): Document.
5374 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5376         * doc/invoke.texi (Wnormalized=): Update.
5378 2014-09-09  Segher Boessenkool  <segher@kernel.crashing.org>
5380         PR target/63195
5381         * config/rs6000/rs6000.md (*bool<mode>3): Allow only register
5382         operands.  Split off the constant operand alternative to ...
5383         (*bool<mode>3_imm): New.
5385 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
5387         * rtl.h (single_set_2): Strengthen first param from const_rtx to
5388         const rtx_insn *, and move prototype to above...
5389         (single_set): ...this.  Convert this from a macro to an inline
5390         function, enforcing the requirement that the param is a const
5391         rtx_insn *.
5392         (find_args_size_adjust): Strengthen param from rtx to rtx_insn *.
5394         * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
5395         Strengthen both params from rtx to rtx_insn *.
5396         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
5397         Likewise; introduce locals "producer_set", "consumer_set", using
5398         them in place of "producer" and "consumer" when dealing with SET
5399         rather than insn.
5400         * config/avr/avr.c (avr_out_plus): Add checked cast to rtx_insn *
5401         when invoking single_set in region guarded by INSN_P.
5402         (avr_out_bitop): Likewise.
5403         (_reg_unused_after): Introduce local rtx_sequence * "seq" in
5404         region guarded by GET_CODE check, using methods to strengthen
5405         local "this_insn" from rtx to rtx_insn *, and for clarity.
5406         * config/avr/avr.md (define_insn_and_split "xload8<mode>_A"):
5407         Strengthen local "insn" from rtx to rtx_insn *.
5408         (define_insn_and_split "xload<mode>_A"): Likewise.
5409         * config/bfin/bfin.c (trapping_loads_p): Likewise for param
5410         "insn".
5411         (find_load): Likewise for return type.
5412         (workaround_speculation): Likewise for both locals named
5413         "load_insn".
5414         * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise for
5415         local "cc0_user".
5416         * config/cris/cris.md (define_peephole2 ; moversideqi): Likewise
5417         for local "prev".
5418         * config/h8300/h8300-protos.h (notice_update_cc): Likewise for
5419         param 2.
5420         * config/h8300/h8300.c (notice_update_cc): Likewise.
5421         * config/i386/i386.c (ix86_flags_dependent): Likewise for params
5422         "insn" and "dep_insn".
5423         (exact_store_load_dependency): Likewise for both params.
5424         (ix86_macro_fusion_pair_p): Eliminate local named "single_set"
5425         since this now clashes with inline function.  Instead, delay
5426         calling single_set until the point where its needed, and then
5427         assign the result to "compare_set" and rework the conditional that
5428         follows.
5429         * config/ia64/ia64.md (define_expand "tablejump"): Strengthen
5430         local "last" from rtx to rtx_insn *.
5431         * config/mips/mips-protos.h (mips_load_store_insns): Likewise for
5432         second param.
5433         (mips_store_data_bypass_p): Likewise for both params.
5434         * config/mips/mips.c (mips_load_store_insns): Likewise for second
5435         param.
5436         (mips_store_data_bypass_p): Likewise for both params.
5437         (mips_orphaned_high_part_p): Likewise for param "insn".
5438         * config/mn10300/mn10300.c (extract_bundle): Likewise.
5439         (mn10300_bundle_liw): Likewise for locals "r", "insn1", "insn2".
5440         Introduce local rtx "insn2_pat".
5441         * config/rl78/rl78.c (move_elim_pass): Likewise for locals "insn",
5442         "ninsn".
5443         (rl78_remove_unused_sets): Likewise for locals "insn", "ninsn".
5444         Introduce local rtx "set", using it in place of "insn" for the
5445         result of single_set.  This appears to fix a bug, since the call
5446         to find_regno_note on a SET does nothing.
5447         * config/rs6000/rs6000.c (set_to_load_agen): Strengthen both
5448         params from rtx to rtx_insn *.
5449         (set_to_load_agen): Likewise.
5450         * config/s390/s390.c (s390_label_align): Likewise for local
5451         "prev_insn".  Introduce new rtx locals "set" and "src", using
5452         them in place of "prev_insn" for the results of single_set
5453         and SET_SRC respectively.
5454         (s390_swap_cmp): Strengthen local "jump" from rtx to rtx_insn *.
5455         Introduce new rtx local "set" using in place of "jump" for the
5456         result of single_set.  Use SET_SRC (set) rather than plain
5457         XEXP (set, 1).
5458         * config/sh/sh.c (noncall_uses_reg): Strengthen param 2from
5459         rtx to rtx_insn *.
5460         (noncall_uses_reg): Likewise.
5461         (reg_unused_after): Introduce local rtx_sequence * "seq" in region
5462         guarded by GET_CODE check, using its methods for clarity, and to
5463         enable strengthening local "this_insn" from rtx to rtx_insn *.
5464         * config/sh/sh.md (define_expand "mulhisi3"): Strengthen local
5465         "insn" from rtx to rtx_insn *.
5466         (define_expand "umulhisi3"): Likewise.
5467         (define_expand "smulsi3_highpart"): Likewise.
5468         (define_expand "umulsi3_highpart"): Likewise.
5469         * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
5470         local "after".  Replace GET_CODE check with a dyn_cast,
5471         introducing new local rtx_sequence * "seq", using insn method for
5472         typesafety.
5474         * dwarf2cfi.c (dwarf2out_frame_debug): Strengthen param "insn"
5475         from rtx to rtx_insn *.  Introduce local rtx "pat", using it in
5476         place of "insn" once we're dealing with patterns rather than the
5477         input insn.
5478         (scan_insn_after): Strengthen param "insn" from rtx to rtx_insn *.
5479         (scan_trace): Likewise for local "elt", updating lookups within
5480         sequence to use insn method rather than element method.
5481         * expr.c (find_args_size_adjust): Strengthen param "insn" from rtx
5482         to rtx_insn *.
5483         * gcse.c (gcse_emit_move_after): Likewise for local "new_rtx".
5484         * ifcvt.c (noce_try_abs): Likewise for local "insn".
5485         * ira.c (fix_reg_equiv_init): Add checked cast to rtx_insn * when
5486         invoking single_set.
5487         * lra-constraints.c (insn_rhs_dead_pseudo_p): Strengthen param
5488         "insn" from rtx to rtx_insn *.
5489         (skip_usage_debug_insns): Likewise for return type, adding a
5490         checked cast.
5491         (check_secondary_memory_needed_p): Likewise for local "insn".
5492         (inherit_reload_reg): Likewise.
5493         * modulo-sched.c (sms_schedule): Likewise for local "count_init".
5494         * recog.c (peep2_attempt): Likewise for local "old_insn", adding
5495         checked casts.
5496         (store_data_bypass_p): Likewise for both params.
5497         (if_test_bypass_p): Likewise.
5498         * recog.h (store_data_bypass_p): Likewise for both params.
5499         (if_test_bypass_p): Likewise.
5500         * reload.c (find_equiv_reg): Likewise for local "where".
5501         * reorg.c (delete_jump): Likewise for param "insn".
5502         * rtlanal.c (single_set_2): Strenghen param "insn" from const_rtx
5503         to const rtx_insn *.
5504         * store-motion.c (replace_store_insn): Likewise for param "del".
5505         (delete_store): Strengthen local "i" from rtx to rtx_insn_list *,
5506         and use its methods for clarity, and to strengthen local "del"
5507         from rtx to rtx_insn *.
5508         (build_store_vectors): Use insn method of "st" when calling
5509         replace_store_insn for typesafety and clarity.
5511 2014-09-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5513         * config/rs6000/rs6000.c (rtx_is_swappable_p): Add
5514         UNSPEC_VSX_CVDPSPN as an unswappable operand, and add commentary
5515         on how to make it legal in future.
5517 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
5519         * caller-save.c (rtx saveinsn): Strengthen this variable from rtx
5520         to rtx_insn *.
5521         (restinsn): Likewise.
5522         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
5523         Likewise for param.
5524         * config/aarch64/aarch64.c (aarch64_simd_attr_length_move):
5525         Likewise.
5526         * config/arc/arc-protos.h (arc_adjust_insn_length): Likewise for
5527         first param.
5528         (arc_hazard): Likewise for both params.
5529         * config/arc/arc.c (arc600_corereg_hazard): Likewise, adding
5530         checked casts to rtx_sequence * and uses of the insn method for
5531         type-safety.
5532         (arc_hazard): Strengthen both params from rtx to rtx_insn *.
5533         (arc_adjust_insn_length): Likewise for param "insn".
5534         (struct insn_length_parameters_s): Likewise for first param of
5535         "get_variants" callback field.
5536         (arc_get_insn_variants): Likewise for first param and local
5537         "inner".  Replace a check of GET_CODE with a dyn_cast to
5538         rtx_sequence *, using methods for type-safety and clarity.
5539         * config/arc/arc.h (ADJUST_INSN_LENGTH): Use casts to
5540         rtx_sequence * and uses of the insn method for type-safety when
5541         invoking arc_adjust_insn_length.
5542         * config/arm/arm-protos.h (arm_attr_length_move_neon): Likewise
5543         for param.
5544         (arm_address_offset_is_imm): Likewise.
5545         (struct tune_params): Likewise for params 1 and 3 of the
5546         "sched_adjust_cost" callback field.
5547         * config/arm/arm.c (cortex_a9_sched_adjust_cost): Likewise for
5548         params 1 and 3 ("insn" and "dep").
5549         (xscale_sched_adjust_cost): Likewise.
5550         (fa726te_sched_adjust_cost): Likewise.
5551         (cortexa7_older_only): Likewise for param "insn".
5552         (cortexa7_younger): Likewise.
5553         (arm_attr_length_move_neon): Likewise.
5554         (arm_address_offset_is_imm): Likewise.
5555         * config/avr/avr-protos.h (avr_notice_update_cc): Likewise.
5556         * config/avr/avr.c (avr_notice_update_cc): Likewise.
5557         * config/bfin/bfin.c (hwloop_pattern_reg): Likewise.
5558         (workaround_speculation): Likewise for local "last_condjump".
5559         * config/c6x/c6x.c (shadow_p): Likewise for param "insn".
5560         (shadow_or_blockage_p): Likewise.
5561         (get_unit_reqs): Likewise.
5562         (get_unit_operand_masks): Likewise.
5563         (c6x_registers_update): Likewise.
5564         (returning_call_p): Likewise.
5565         (can_use_callp): Likewise.
5566         (convert_to_callp): Likewise.
5567         (find_last_same_clock): Likwise for local "t".
5568         (reorg_split_calls): Likewise for local "shadow".
5569         (hwloop_pattern_reg): Likewise for param "insn".
5570         * config/frv/frv-protos.h (frv_final_prescan_insn): Likewise.
5571         * config/frv/frv.c (frv_final_prescan_insn): Likewise.
5572         (frv_extract_membar): Likewise.
5573         (frv_optimize_membar_local): Strengthen param "last_membar" from
5574         rtx * to rtx_insn **.
5575         (frv_optimize_membar_global): Strengthen param "membar" from rtx
5576         to rtx_insn *.
5577         (frv_optimize_membar): Strengthen local "last_membar" from rtx *
5578         to rtx_insn **.
5579         * config/ia64/ia64-protos.h (ia64_st_address_bypass_p): Strengthen
5580         both params from rtx to rtx_insn *.
5581         (ia64_ld_address_bypass_p): Likewise.
5582         * config/ia64/ia64.c (ia64_safe_itanium_class): Likewise for param
5583         "insn".
5584         (ia64_safe_type): Likewise.
5585         (group_barrier_needed): Likewise.
5586         (safe_group_barrier_needed): Likewise.
5587         (ia64_single_set): Likewise.
5588         (is_load_p): Likewise.
5589         (record_memory_reference): Likewise.
5590         (get_mode_no_for_insn): Likewise.
5591         (important_for_bundling_p): Likewise.
5592         (unknown_for_bundling_p): Likewise.
5593         (ia64_st_address_bypass_p): Likewise for both params.
5594         (ia64_ld_address_bypass_p): Likewise.
5595         (expand_vselect): Introduce new local rtx_insn * "insn", using it
5596         in place of rtx "x" after the emit_insn call.
5597         * config/i386/i386-protos.h (x86_extended_QIreg_mentioned_p):
5598         Strengthen param from rtx to rtx_insn *.
5599         (ix86_agi_dependent): Likewise for both params.
5600         (ix86_attr_length_immediate_default): Likewise for param 1.
5601         (ix86_attr_length_address_default): Likewise for param.
5602         (ix86_attr_length_vex_default): Likewise for param 1.
5603         * config/i386/i386.c (ix86_attr_length_immediate_default):
5604         Likewise for param "insn".
5605         (ix86_attr_length_address_default): Likewise.
5606         (ix86_attr_length_vex_default): Likewise.
5607         (ix86_agi_dependent): Likewise for both params.
5608         (x86_extended_QIreg_mentioned_p): Likewise for param "insn".
5609         (vselect_insn): Likewise for this variable.
5610         * config/m68k/m68k-protos.h (m68k_sched_attr_opx_type): Likewise
5611         for param 1.
5612         (m68k_sched_attr_opy_type): Likewise.
5613         * config/m68k/m68k.c (sched_get_operand): Likewise.
5614         (sched_attr_op_type): Likewise.
5615         (m68k_sched_attr_opx_type): Likewise.
5616         (m68k_sched_attr_opy_type): Likewise.
5617         (sched_get_reg_operand): Likewise.
5618         (sched_get_mem_operand): Likewise.
5619         (m68k_sched_address_bypass_p): Likewise for both params.
5620         (sched_get_indexed_address_scale): Likewise.
5621         (m68k_sched_indexed_address_bypass_p): Likewise.
5622         * config/m68k/m68k.h (m68k_sched_address_bypass_p): Likewise.
5623         (m68k_sched_indexed_address_bypass_p): Likewise.
5624         * config/mep/mep.c (mep_jmp_return_reorg): Strengthen locals
5625         "label", "ret" from rtx to rtx_insn *, adding a checked cast and
5626         removing another.
5627         * config/mips/mips-protos.h (mips_linked_madd_p): Strengthen both
5628         params from rtx to rtx_insn *.
5629         (mips_fmadd_bypass): Likewise.
5630         * config/mips/mips.c (mips_fmadd_bypass): Likewise.
5631         (mips_linked_madd_p): Likewise.
5632         (mips_macc_chains_last_hilo): Likewise for this variable.
5633         (mips_macc_chains_record): Likewise for param.
5634         (vr4130_last_insn): Likewise for this variable.
5635         (vr4130_swap_insns_p): Likewise for both params.
5636         (mips_ls2_variable_issue): Likewise for param.
5637         (mips_need_noat_wrapper_p): Likewise for param "insn".
5638         (mips_expand_vselect): Add a new local rtx_insn * "insn", using it
5639         in place of "x" after the emit_insn.
5640         * config/pa/pa-protos.h (pa_fpstore_bypass_p): Strengthen both
5641         params from rtx to rtx_insn *.
5642         * config/pa/pa.c (pa_fpstore_bypass_p): Likewise.
5643         (pa_combine_instructions): Introduce local "par" for result of
5644         gen_rtx_PARALLEL, moving decl and usage of new_rtx for after call
5645         to make_insn_raw.
5646         (pa_can_combine_p): Strengthen param "new_rtx" from rtx to rtx_insn *.
5647         * config/rl78/rl78.c (insn_ok_now): Likewise for param "insn".
5648         (rl78_alloc_physical_registers_op1): Likewise.
5649         (rl78_alloc_physical_registers_op2): Likewise.
5650         (rl78_alloc_physical_registers_ro1): Likewise.
5651         (rl78_alloc_physical_registers_cmp): Likewise.
5652         (rl78_alloc_physical_registers_umul): Likewise.
5653         (rl78_alloc_address_registers_macax): Likewise.
5654         (rl78_alloc_physical_registers): Likewise for locals "insn", "curr".
5655         * config/s390/predicates.md (execute_operation): Likewise for
5656         local "insn".
5657         * config/s390/s390-protos.h (s390_agen_dep_p): Likewise for both
5658         params.
5659         * config/s390/s390.c (s390_safe_attr_type): Likewise for param.
5660         (addr_generation_dependency_p): Likewise for param "insn".
5661         (s390_agen_dep_p): Likewise for both params.
5662         (s390_fpload_toreg): Likewise for param "insn".
5663         * config/sh/sh-protos.h (sh_loop_align): Likewise for param.
5664         * config/sh/sh.c (sh_loop_align): Likewise for param and local
5665         "next".
5666         * config/sh/sh.md (define_peephole2): Likewise for local "insn2".
5667         * config/sh/sh_treg_combine.cc
5668         (sh_treg_combine::make_inv_ccreg_insn): Likewise for return type
5669         and local "i".
5670         (sh_treg_combine::try_eliminate_cstores): Likewise for local "i".
5671         * config/stormy16/stormy16.c (combine_bnp): Likewise for locals
5672         "and_insn", "load", "shift".
5673         * config/tilegx/tilegx.c (match_pcrel_step2): Likewise for param
5674         "insn".
5675         * final.c (final_scan_insn): Introduce local rtx_insn * "other"
5676         for XEXP (note, 0) of the REG_CC_SETTER note.
5677         (cleanup_subreg_operands): Strengthen param "insn" from rtx to
5678         rtx_insn *, eliminating a checked cast made redundant by this.
5679         * gcse.c (process_insert_insn): Strengthen local "insn" from rtx
5680         to rtx_insn *.
5681         * genattr.c (main): When writing out the prototype to
5682         const_num_delay_slots, strengthen the param from rtx to
5683         rtx_insn *.
5684         * genattrtab.c (write_const_num_delay_slots): Likewise when
5685         writing out the implementation of const_num_delay_slots.
5686         * hw-doloop.h (struct hw_doloop_hooks): Strengthen the param
5687         "insn" of callback field "end_pattern_reg" from rtx to rtx_insn *.
5688         * ifcvt.c (noce_emit_store_flag): Eliminate local rtx "tmp" in
5689         favor of new rtx locals "src" and "set" and new local rtx_insn *
5690         "insn" and "seq".
5691         (noce_emit_move_insn): Strengthen locals "seq" and "insn" from rtx
5692         to rtx_insn *.
5693         (noce_emit_cmove): Eliminate local rtx "tmp" in favor of new rtx
5694         locals "cond", "if_then_else", "set" and new rtx_insn * locals
5695         "insn" and "seq".
5696         (noce_try_cmove_arith): Strengthen locals "insn_a" and "insn_b",
5697         "last" from rtx to rtx_insn *.  Likewise for a local "tmp",
5698         renaming to "tmp_insn".  Eliminate the other local rtx "tmp" from
5699         the top-level scope, replacing with new more tightly-scoped rtx
5700         locals "reg", "pat", "mem" and rtx_insn * "insn", "copy_of_a",
5701         "new_insn", "copy_of_insn_b", and make local rtx "set" more
5702         tightly-scoped.
5703         * ira-int.h (ira_setup_alts): Strengthen param "insn" from rtx to
5704         rtx_insn *.
5705         * ira.c (setup_prohibited_mode_move_regs): Likewise for local
5706         "move_insn".
5707         (ira_setup_alts): Likewise for param "insn".
5708         * lra-constraints.c (emit_inc): Likewise for local "add_insn".
5709         * lra.c (emit_add3_insn): Split local rtx "insn" in two, an rtx
5710         and an rtx_insn *.
5711         (lra_emit_add): Eliminate top-level local rtx "insn" in favor of
5712         new more-tightly scoped rtx locals "add3_insn", "insn",
5713         "add2_insn" and rtx_insn * "move_insn".
5714         * postreload-gcse.c (eliminate_partially_redundant_load): Add
5715         checked cast on result of gen_move_insn when invoking
5716         extract_insn.
5717         * recog.c (insn_invalid_p): Strengthen param "insn" from rtx to
5718         rtx_insn *.
5719         (verify_changes): Add a checked cast on "object" when invoking
5720         insn_invalid_p.
5721         (extract_insn_cached): Strengthen param "insn" from rtx to
5722         rtx_insn *.
5723         (extract_constrain_insn_cached): Likewise.
5724         (extract_insn): Likewise.
5725         * recog.h (insn_invalid_p): Likewise for param 1.
5726         (recog_memoized): Likewise for param.
5727         (extract_insn): Likewise.
5728         (extract_constrain_insn_cached): Likewise.
5729         (extract_insn_cached): Likewise.
5730         * reload.c (can_reload_into): Likewise for local "test_insn".
5731         * reload.h (cleanup_subreg_operands): Likewise for param.
5732         * reload1.c (emit_insn_if_valid_for_reload): Rename param from
5733         "insn" to "pat", reintroducing "insn" as an rtx_insn * on the
5734         result of emit_insn.  Remove a checked cast made redundant by this
5735         change.
5736         * sel-sched-ir.c (sel_insn_rtx_cost): Strengthen param "insn" from
5737         rtx to rtx_insn *.
5738         * sel-sched.c (get_reg_class): Likewise.
5740 2014-09-09  Marcus Shawcroft  <marcus.shawcroft@arm.com>
5741             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5743         * config/aarch64/aarch64-elf-raw.h (ENDFILE_SPEC): Add crtfastmath.o.
5744         * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_MATH_ENDFILE_SPEC):
5745         Define.
5746         (ENDFILE_SPEC): Define and use GNU_USER_TARGET_MATH_ENDFILE_SPEC.
5748 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
5750         * rtl.h (INSN_LOCATION): Strengthen param from const_rtx to
5751         const rtx_insn *, and from rtx to rtx_insn * for the other
5752         overloaded variant.
5753         (RTL_LOCATION): Add a checked cast to rtx_insn * when invoking
5754         INSN_LOCATION, since we know INSN_P holds.
5755         (insn_line): Strengthen param from const_rtx to const rtx_insn *.
5756         (insn_file): Likewise.
5757         (insn_scope): Likewise.
5758         (insn_location): Likewise.
5760         * config/mips/mips.c (mips16_gp_pseudo_reg): Strengthen local
5761         "insn" from rtx to rtx_insn *, introducing a new local rtx "set"
5762         for the result of gen_load_const_gp.
5763         * config/rs6000/rs6000-protos.h (output_call): Strengthen first
5764         param from rtx to rtx_insn *.
5765         * config/rs6000/rs6000.c (output_call): Likewise.
5766         * dwarf2out.c (dwarf2out_var_location): Likewise for local "prev",
5767         introducing a checked cast to rtx_sequence * and use of the insn
5768         method.
5769         * emit-rtl.c (emit_copy_of_insn_after): Strengthen both params
5770         from rtx to rtx_insn *.
5771         (insn_scope): Strengthen param from const_rtx to const rtx_insn *.
5772         (insn_line): Likewise.
5773         (insn_file): Likewise.
5774         (insn_location): Likewise.
5775         * emit-rtl.h (emit_copy_of_insn_after): Strengthen both params
5776         from rtx to rtx_insn *.
5777         * print-rtl.c (print_rtx): Introduce local "in_insn" via a checked
5778         cast, using it for calls to INSN_HAS_LOCATION and insn_location.
5779         * recog.c (peep2_attempt): Introduce local rtx_insn * "peepinsn"
5780         via a checked cast.
5781         * reorg.c (relax_delay_slots): Strengthen locals named "after"
5782         from rtx to rtx_insn *; use methods of "pat" for type-safety.
5784 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
5786         * combine.c (try_combine): Eliminate checked cast on result of
5787         gen_rtx_INSN.
5788         * emit-rtl.c (gen_rtx_INSN): New function, improving over the prior
5789         autogenerated one by strengthening the return type and params 2 and 3
5790         from rtx to rtx_insn *, and by naming the params.
5791         * gengenrtl.c (special_rtx): Add INSN to those that are
5792         special-cased.
5793         * rtl.h (gen_rtx_INSN): New prototype.
5795 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
5797         * ira.c (ira_update_equiv_info_by_shuffle_insn): Use NULL rather
5798         than NULL_RTX.
5799         (no_equiv): Likewise.
5800         (update_equiv_regs): Likewise.
5801         (setup_reg_equiv): Likewise.  Strengthen locals "elem",
5802         "prev_elem", "next_elem" from rtx to rtx_insn_list *, and "insn"
5803         from rtx to rtx_insn *.  Use methods of "elem" for typesafety and
5804         clarity.
5805         * ira.h (struct ira_reg_equiv_s): Strengthen field "init_insns"
5806         from rtx to rtx_insn_list *.
5807         * lra-assigns.c (spill_for): Strengthen local "x" from rtx to
5808         rtx_insn_list * and use methods for clarity and typesafety.
5809         * lra-constraints.c (contains_deleted_insn_p): Likewise for param
5810         "list".
5811         (init_insn_rhs_dead_pseudo_p): Likewise for local "insns".  Remove
5812         redundant check on INSN_P (insns): this cannot hold, as "insns" is
5813         an INSN_LIST, not an insn.
5814         (reverse_equiv_p): Strengthen local "insns" from rtx to
5815         rtx_insn_list * and use methods for clarity and typesafety.
5816         (contains_reloaded_insn_p): Likewise for local "list".
5818 2014-09-09  Jiong Wang  <jiong.wang@arm.com>
5820         * config/arm/arm.c (NEON_COPYSIGNF): New enum.
5821         (arm_init_neon_builtins): Support NEON_COPYSIGNF.
5822         (arm_builtin_vectorized_function): Likewise.
5823         * config/arm/arm_neon_builtins.def: New macro for copysignf.
5824         * config/arm/neon.md (neon_copysignf<mode>): New pattern for vector copysignf.
5826 2014-09-09  Richard Sandiford  <richard.sandiford@arm.com>
5828         * bb-reorder.h (default_target_bb_reorder): Remove redundant GTY.
5829         * builtins.h (default_target_builtins): Likewise.
5830         * gcse.h (default_target_gcse): Likewise.
5831         * target-globals.h (target_globals): Add a destructor.  Convert
5832         void-pointer fields back to their real type and change from
5833         GTY((atomic)) to GTY((skip)).
5834         (restore_target_globals): Remove casts accordingly.
5835         * target-globals.c (save_target_globals): Use XCNEW rather than
5836         ggc_internal_cleared_alloc to allocate non-GC structures.
5837         Use ggc_cleared_alloc to allocate the target_globals structure
5838         itself.
5839         (target_globals::~target_globals): Define.
5841 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5843         * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use vldm
5844         mnemonic instead of fldmfdd.
5845         * config/arm/arm.c (vfp_output_fstmd): Rename to...
5846         (vfp_output_vstmd): ... This.  Convert output to UAL syntax.
5847         Output vpush when address register is SP.
5848         * config/arm/arm-protos.h (vfp_output_fstmd): Rename to...
5849         (vfp_output_vstmd): ... This.
5850         * config/arm/vfp.md (push_multi_vfp): Update call to
5851         vfp_output_vstmd.
5853 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5855         * config/arm/vfp.md (*movcc_vfp): Use UAL syntax.
5857 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5859         * config/arm/vfp.md (*sqrtsf2_vfp): Use UAL assembly syntax.
5860         (*sqrtdf2_vfp): Likewise.
5861         (*cmpsf_vfp): Likewise.
5862         (*cmpsf_trap_vfp): Likewise.
5863         (*cmpdf_vfp): Likewise.
5864         (*cmpdf_trap_vfp): Likewise.
5866 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5868         * config/arm/vfp.md (*extendsfdf2_vfp): Use UAL assembly syntax.
5869         (*truncdfsf2_vfp): Likewise.
5870         (*truncsisf2_vfp): Likewise.
5871         (*truncsidf2_vfp): Likewise.
5872         (fixuns_truncsfsi2): Likewise.
5873         (fixuns_truncdfsi2): Likewise.
5874         (*floatsisf2_vfp): Likewise.
5875         (*floatsidf2_vfp): Likewise.
5876         (floatunssisf2): Likewise.
5877         (floatunssidf2): Likewise.
5879 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5881         * config/arm/vfp.md (*mulsf3_vfp): Use UAL assembly syntax.
5882         (*muldf3_vfp): Likewise.
5883         (*mulsf3negsf_vfp): Likewise.
5884         (*muldf3negdf_vfp): Likewise.
5885         (*mulsf3addsf_vfp): Likewise.
5886         (*muldf3adddf_vfp): Likewise.
5887         (*mulsf3subsf_vfp): Likewise.
5888         (*muldf3subdf_vfp): Likewise.
5889         (*mulsf3negsfaddsf_vfp): Likewise.
5890         (*fmuldf3negdfadddf_vfp): Likewise.
5891         (*mulsf3negsfsubsf_vfp): Likewise.
5892         (*muldf3negdfsubdf_vfp): Likewise.
5894 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5896         * config/arm/vfp.md (*abssf2_vfp): Use UAL assembly syntax.
5897         (*absdf2_vfp): Likewise.
5898         (*negsf2_vfp): Likewise.
5899         (*negdf2_vfp): Likewise.
5900         (*addsf3_vfp): Likewise.
5901         (*adddf3_vfp): Likewise.
5902         (*subsf3_vfp): Likewise.
5903         (*subdf3_vfp): Likewise.
5904         (*divsf3_vfp): Likewise.
5905         (*divdf3_vfp): Likewise.
5907 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5909         * config/arm/arm.c (output_move_vfp): Use UAL syntax for load/store
5910         multiple.
5911         (arm_print_operand): Don't convert real values to decimal
5912         representation in default case.
5913         (fp_immediate_constant): Delete.
5914         * config/arm/arm-protos.h (fp_immediate_constant): Likewise.
5915         * config/arm/vfp.md (*arm_movsi_vfp): Convert to VFP moves to UAL
5916         syntax.
5917         (*thumb2_movsi_vfp): Likewise.
5918         (*movdi_vfp): Likewise.
5919         (*movdi_vfp_cortexa8): Likewise.
5920         (*movhf_vfp_neon): Likewise.
5921         (*movhf_vfp): Likewise.
5922         (*movsf_vfp): Likewise.
5923         (*thumb2_movsf_vfp): Likewise.
5924         (*movdf_vfp): Likewise.
5925         (*thumb2_movdf_vfp): Likewise.
5926         (*movsfcc_vfp): Likewise.
5927         (*thumb2_movsfcc_vfp): Likewise.
5928         (*movdfcc_vfp): Likewise.
5929         (*thumb2_movdfcc_vfp): Likewise.
5931 2014-09-09  James Greenhalgh  <james.greenhalgh@arm.com>
5933         * doc/invoke.texi (-march): Use GNU/Linux rather than Linux.
5934         (-mtune): Likewise.
5935         (-mcpu): Likewise.
5937 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5939         PR target/61749
5940         * config/aarch64/aarch64-builtins.c (aarch64_types_quadop_qualifiers):
5941         Use qualifier_immediate for last operand.  Rename to...
5942         (aarch64_types_ternop_lane_qualifiers): ... This.
5943         (TYPES_QUADOP): Rename to...
5944         (TYPES_TERNOP_LANE): ... This.
5945         (aarch64_simd_expand_args): Return const0_rtx when encountering user
5946         error.  Change return of 0 to return of NULL_RTX.
5947         (aarch64_crc32_expand_builtin): Likewise.
5948         (aarch64_expand_builtin): Return NULL_RTX instead of 0.
5949         ICE when expanding unknown builtin.
5950         * config/aarch64/aarch64-simd-builtins.def (sqdmlal_lane): Use
5951         TERNOP_LANE qualifiers.
5952         (sqdmlsl_lane): Likewise.
5953         (sqdmlal_laneq): Likewise.
5954         (sqdmlsl_laneq): Likewise.
5955         (sqdmlal2_lane): Likewise.
5956         (sqdmlsl2_lane): Likewise.
5957         (sqdmlal2_laneq): Likewise.
5958         (sqdmlsl2_laneq): Likewise.
5960 2014-09-09  Nick Clifton  <nickc@redhat.com>
5962         * doc/invoke.texi (Optimization Options): Add missing @gol to the
5963         end of a line.
5964         (S/390 and zSeries Options): Remove superfluous word from the
5965         description of the -mhotpatch option.
5967 2014-09-09  Zhenqiang Chen  <zhenqiang.chen@arm.com>
5969         * shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED.
5970         * ira.c: #include "shrink-wrap.h"
5971         (split_live_ranges_for_shrink_wrap): Use SHRINK_WRAPPING_ENABLED.
5972         * ifcvt.c: #include "shrink-wrap.h"
5973         (dead_or_predicable): Use SHRINK_WRAPPING_ENABLED.
5975 2014-09-08  Trevor Saunders  <tsaunders@mozilla.com>
5977         * common/config/picochip/picochip-common.c: Remove.
5978         * config.gcc: Remove support for picochip.
5979         * config/picochip/constraints.md: Remove.
5980         * config/picochip/dfa_space.md: Remove.
5981         * config/picochip/dfa_speed.md: Remove.
5982         * config/picochip/picochip-protos.h: Remove.
5983         * config/picochip/picochip.c: Remove.
5984         * config/picochip/picochip.h: Remove.
5985         * config/picochip/picochip.md: Remove.
5986         * config/picochip/picochip.opt: Remove.
5987         * config/picochip/predicates.md: Remove.
5988         * config/picochip/t-picochip: Remove.
5989         * doc/md.texi: Don't document picochi.
5991 2014-09-08  David Malcolm  <dmalcolm@redhat.com>
5993         * basic-block.h (control_flow_insn_p): Strengthen param from
5994         const_rtx to const rtx_insn *.
5995         * cfgbuild.c (control_flow_insn_p): Likewise.
5997 2014-09-08  David Malcolm  <dmalcolm@redhat.com>
5999         * gcse.c (modify_mem_list): Strengthen this variable from
6000         vec<rtx> * to vec<rtx_insn *> *.
6001         (vec_rtx_heap): Strengthen this typedef from vec<rtx> to
6002         vec<rtx_insn *>.
6003         (load_killed_in_block_p): Strengthen local "list" from vec<rtx> to
6004         vec<rtx_insn *>, and local "setter" from rtx to rtx_insn *.
6005         (record_last_mem_set_info): Strengthen param "insn" from rtx to
6006         rtx_insn *.
6007         (record_last_set_info): Likewise for local "last_set_insn".
6009 2014-09-08  DJ Delorie  <dj@redhat.com>
6011         * doc/invoke.texi (MSP430 Options): Add -minrt.
6013 2014-09-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6015         * config/rs6000/rs6000.c (special_handling_values):  Add SH_SPLAT.
6016         (rtx_is_swappable_p): Convert UNSPEC cascading ||s to a switch
6017         statement; allow optimization of UNSPEC_VSPLT_DIRECT with special
6018         handling SH_SPLAT.
6019         (adjust_extract): Fix test for VEC_DUPLICATE case; fix adjustment
6020         of extracted lane.
6021         (adjust_splat): New function.
6022         (handle_special_swappables): Call adjust_splat for SH_SPLAT.
6023         (dump_swap_insn_table): Add case for SH_SPLAT.
6025 2014-09-08  Richard Biener  <rguenther@suse.de>
6027         PR ipa/63196
6028         * tree-inline.c (copy_loops): The source loop header should
6029         always be non-NULL.
6030         (tree_function_versioning): If loops need fixup after removing
6031         unreachable blocks fix them.
6032         * omp-low.c (simd_clone_adjust): Do not add incr block to
6033         loop under construction.
6035 2014-09-08  Alan Lawrence  <alan.lawrence@arm.com>
6037         * config/aarch64/aarch64-builtins.c
6038         (aarch64_types_cmtst_qualifiers, TYPES_TST): Remove as unused.
6040 2014-09-08  Joseph Myers  <joseph@codesourcery.com>
6042         * config/i386/cygming.h (TF_SIZE): Remove.
6043         * config/i386/darwin.h (TF_SIZE): Remove.
6044         * config/i386/dragonfly.h (TF_SIZE): Remove.
6045         * config/i386/freebsd.h (TF_SIZE): Remove.
6046         * config/i386/gnu-user-common.h (TF_SIZE): Remove.
6047         * config/i386/openbsdelf.h (TF_SIZE): Remove.
6048         * config/i386/sol2.h (TF_SIZE): Remove.
6049         * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Remove.
6050         * config/ia64/linux.h (TF_SIZE): Remove.
6051         * doc/tm.texi.in (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Remove.
6052         * doc/tm.texi: Regenerate.
6053         * system.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Poison.
6055 2014-09-08  Joseph Myers  <joseph@codesourcery.com>
6057         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
6058         Remove.
6059         * doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
6060         Remove.
6061         * doc/tm.texi: Regenerate.
6062         * system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
6063         Poison.
6064         * config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
6065         * config/cris/cris.h (__make_dp): Remove.
6067 2014-09-08  Richard Biener  <rguenther@suse.de>
6069         PR bootstrap/63204
6070         * cfgloop.c (mark_loop_for_removal): Track former header
6071         unconditionally.
6072         * cfgloop.h (struct loop): Add former_header member unconditionally.
6073         * loop-init.c (fix_loop_structure): Enable bogus loop removal
6074         diagnostic unconditionally.
6076 2014-09-07 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
6078         PR target/63190
6079         * config/aarch64/aarch64.md (stack_protect_test_<mode>) Add register
6080         constraint for operand0 and remove write only modifier from operand3.
6082 2014-09-07  Richard Sandiford  <richard.sandiford@arm.com>
6084         PR rtl-optimization/62208
6085         * simplify-rtx.c (simplify_relational_operation_1): Use CONST0_RTX
6086         rather than const0_rtx in eq/ne-xor simplifications.
6088 2014-09-06  Joern Rennecke  <joern.rennecke@embecosm.com>
6090         * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
6091         (arc_output_mi_thunk): Likewise.
6093         * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
6094         arguments to silence bogus warning.
6096 2014-09-06  Richard Sandiford  <richard.sandiford@arm.com>
6098         PR middle-end/63171
6099         * rtlanal.c (tls_referenced_p): Don't skip constant subrtxes.
6101 2014-09-06  Tom de Vries  <tom@codesourcery.com>
6103         * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
6104         IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
6105         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
6107 2014-09-05  Dominique Dhumieres  <dominiq@lps.ens.fr>
6109         PR target/63188
6110         * config/darwin.h (INIT_SECTION_ASM_OP): Define to "".
6111         * config/pa/pa64-hpux.h (INIT_SECTION_ASM_OP): Likewise.
6113 2014-09-05  Easwaran Raman  <eraman@google.com>
6115         PR rtl-optimization/62146
6116         * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
6117         hoisted instruction unconditional.
6119 2014-09-05  Segher Boessenkool  <segher@kernel.crashing.org>
6121         PR target/63187
6122         * config/rs6000/rs6000.md (*and<mode>3_imm_dot, *and<mode>3_imm_dot2):
6123         Do not allow any_mask_operand for operands[2].
6124         (*and<mode>3_imm_mask_dot, *and<mode>3_imm_mask_dot2): New.
6126 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
6128         * config/arc/arc.c (arc_print_operand): Use insn method of
6129         final_sequence for type-safety.
6130         * config/bfin/bfin.c (bfin_hardware_loop): Strengthen param
6131         "insn" from rtx to rtx_insn *.
6132         * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
6133         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
6134         Likewise for locals "branch", "label".
6135         * config/h8300/h8300.c (same_cmp_preceding_p): Likewise for
6136         locals "i1", "i2".  Use NULL rather than NULL_RTX in comparisons.
6137         (same_cmp_following_p): Likewise for locals "i2", "i3".
6138         * config/sh/sh_optimize_sett_clrt.cc
6139         (sh_optimize_sett_clrt::sh_cbranch_ccreg_value): Likewise for
6140         param "cbranch_insn".
6141         * function.c (convert_jumps_to_returns): Likewis for local "jump".
6142         * ifcvt.c (cond_exec_get_condition): Likewise for param "jump".
6143         * jump.c (simplejump_p): Strengthen param "insn" from const_rtx to
6144         const rtx_insn *.
6145         (condjump_p): Likewise.
6146         (condjump_in_parallel_p): Likewise.
6147         (pc_set): Likewise.
6148         (any_uncondjump_p): Likewise.
6149         (any_condjump_p): Likewise.
6150         (condjump_label): Likewise.
6151         (returnjump_p): Strengthen param "insn" from rtx to
6152         const rtx_insn *.
6153         (onlyjump_p): Strengthen param "insn" from const_rtx to
6154         const rtx_insn *.
6155         (jump_to_label_p): Likewise.
6156         (invert_jump_1): Strengthen param "jump" from rtx to rtx_insn *.
6157         (invert_jump): Likewise.
6158         * reorg.c (simplejump_or_return_p): Add checked cast when calling
6159         simplejump_p.
6160         (get_jump_flags): Strengthen param "insn" from rtx to
6161         const rtx_insn *.
6162         (get_branch_condition): Likewise.
6163         (condition_dominates_p): Likewise.
6164         (make_return_insns): Move declaration of local "pat" earlier, to
6165         after we've handled NONJUMP_INSN_P and non-sequences, using its
6166         methods to simplify the code and for type-safety.
6167         * rtl.h (find_constant_src): Strengthen param from const_rtx to
6168         const rtx_insn *.
6169         (jump_to_label_p): Strengthen param from rtx to const rtx_insn *.
6170         (condjump_p): Strengthen param from const_rtx to
6171         const rtx_insn *.
6172         (any_condjump_p): Likewise.
6173         (any_uncondjump_p): Likewise.
6174         (pc_set): Likewise.
6175         (condjump_label): Likewise.
6176         (simplejump_p): Likewise.
6177         (returnjump_p): Likewise.
6178         (onlyjump_p): Likewise.
6179         (invert_jump_1): Strengthen param 1 from rtx to rtx_insn *.
6180         (invert_jump): Likewise.
6181         (condjump_in_parallel_p): Strengthen param from const_rtx to
6182         const rtx_insn *.
6183         * rtlanal.c (find_constant_src): Strengthen param from const_rtx
6184         to const rtx_insn *.
6185         * sel-sched-ir.c (fallthru_bb_of_jump): Strengthen param from rtx
6186         to const rtx_insn *.
6187         * sel-sched-ir.h (fallthru_bb_of_jump): Likewise.
6189 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
6191         * reorg.c (relax_delay_slots): Move declaration of "trial_seq"
6192         above the conditional, and convert the check on GET_CODE to a
6193         dyn_cast, so that "trial_seq" is available as an rtx_sequence * in
6194         the conditional.  Simplify the conditional by using methods of
6195         "trial_seq".
6197 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
6199         * haifa-sched.c (check_clobbered_conditions): Strengthen local
6200         "link" from rtx to rtx_insn_list *, and use its methods for
6201         clarity and type-safety.
6202         (toggle_cancelled_flags): Likewise.
6203         (restore_last_backtrack_point): Likewise.
6204         (queue_to_ready): Use insn method of "link" in one place.
6205         (schedule_block): Strengthen local "link" from rtx to
6206         rtx_insn_list *, and use its methods for clarity and type-safety.
6208 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
6210         * sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
6211         param "insn" from const_rtx to const rtx_insn *.
6212         (sched_get_reverse_condition_uncached): Likewise.
6213         (sched_get_condition_with_rev): Likewise.
6214         (sched_has_condition_p): Likewise.
6215         (sched_insns_conditions_mutex_p): Likewise for both params.
6216         (sched_insn_is_legitimate_for_speculation_p): Likewise for param
6217         "insn"; conver use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
6218         (setup_insn_reg_uses): Move local "list" to be more tightly
6219         scoped, strengthening it from an rtx to an rtx_insn_list *.  Use
6220         its methods for clarity and type-safety.
6221         (sched_analyze_1): Strengthen local "pending" from rtx to
6222         rtx_insn_list *, and local "pending_mem" from rtx to
6223         rtx_expr_list *.  Use methods of each for clarity and type-safety.
6224         (sched_analyze_2): Likewise.
6225         (sched_analyze_insn): Likewise.
6227         * sched-int.h (sched_get_reverse_condition_uncached): Strengthen
6228         param from const_rtx to const rtx_insn *.
6229         (sched_insns_conditions_mutex_p): Likewise for both params.
6230         (sched_insn_is_legitimate_for_speculation_p): Likewise for first
6231         param.
6233         * system.h (CONST_CAST_RTX_INSN): New macro.
6235 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
6237         * recog.c (peep2_attempt): Strengthen return type from rtx to
6238         rtx_insn *.
6239         (peep2_update_life): Likewise for params "last", "prev", removing
6240         a checked cast made redundant by this.
6241         (peephole2_optimize): Likewise for local "last".
6243 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
6245         * basic-block.h (set_block_for_insn): Eliminate this macro in
6246         favor of...
6247         * rtl.h (set_block_for_insn): New inline function, imposing the
6248         requirement that the "insn" param is an rtx_insn *.
6250 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
6252         * caller-save.c (setup_save_areas): Strengthen local "insn" from
6253         rtx to rtx_insn *.
6254         * final.c (get_call_reg_set_usage): Likewise for first param,
6255         eliminating a checked cast.
6256         * regs.h (get_call_reg_set_usage): Likewise for first param.
6257         * resource.c (mark_set_resources): Introduce local rtx_call_insn *
6258         "call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
6259         cast, replacing references to "x" with "call_insn" where
6260         appropriate.
6261         (mark_target_live_regs): Strengthen local "real_insn" from rtx to
6262         rtx_insn *, adding a checked cast.
6264 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
6266         * output.h (final_scan_insn): Strengthen first param from rtx to
6267         rtx_insn *.
6269         * final.c (final_scan_insn): Likewise, renaming it back from
6270         "uncast_insn" to "insn", eliminating the checked cast.
6272         * config/h8300/h8300.md (define_insn "jump"): Replace local rtx
6273         "vec" with an rtx_sequence * "seq", taking a copy of
6274         "final_sequence", and using methods of "seq" for clarity, and for
6275         type-safety in the calls to final_scan_insn.
6276         * config/mips/mips.c (mips_output_conditional_branch): Use methods
6277         of "final_sequence" for clarity, and for type-safety in the call to
6278         final_scan_insn.
6279         * config/sh/sh.c (print_slot): Strengthen param from rtx to
6280         rtx_sequence * and rename from "insn" to "seq".
6282 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
6284         * jump.c (delete_related_insns): Introduce a new local "table" by
6285         replacing JUMP_TABLE_DATA_P with a dyn_cast, then use the
6286         get_labels method of "table" to simplify access to the labels in
6287         the jump table.
6289 2014-09-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6291         * config/arm/cortex-a53.md (cortex_a53_fpalu): Add f_rints, f_rintd,
6292         f_minmaxs, f_minmaxd types.
6294 2014-09-05  Richard Biener  <rguenther@suse.de>
6296         * cfgloop.c (mark_loop_for_removal): Record former header
6297         when ENABLE_CHECKING.
6298         * cfgloop.h (strut loop): Add former_header member when
6299         ENABLE_CHECKING.
6300         * loop-init.c (fix_loop_structure): Sanity check loops
6301         marked for removal if they re-appeared.
6303 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
6305         * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
6306         uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
6308         (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
6309         vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
6310         vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
6311         vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
6312         vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
6313         vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
6314         vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
6315         vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
6316         vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
6317         vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
6318         vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
6319         vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
6320         vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
6321         vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
6322         vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
6323         vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
6324         vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
6325         vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
6326         vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
6327         vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
6328         with int{32,16,8}_t.
6330 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
6332         * config/aarch64/arm_neon.h (__GET_HIGH): New macro.
6333         (vget_high_f32, vget_high_f64, vget_high_p8, vget_high_p16,
6334         vget_high_s8, vget_high_s16, vget_high_s32, vget_high_s64,
6335         vget_high_u8, vget_high_u16, vget_high_u32, vget_high_u64):
6336         Remove temporary __asm__ and reimplement.
6338 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
6340         * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Remove code
6341         handling cmge, cmgt, cmeq, cmtst.
6343         * config/aarch64/aarch64-simd-builtins.def (cmeq, cmge, cmgt, cmle,
6344         cmlt, cmgeu, cmgtu, cmtst): Remove.
6346         * config/aarch64/arm_neon.h (vceq_*, vceqq_*, vceqz_*, vceqzq_*,
6347         vcge_*, vcgeq_*, vcgez_*, vcgezq_*, vcgt_*, vcgtq_*, vcgtz_*,
6348         vcgtzq_*, vcle_*, vcleq_*, vclez_*, vclezq_*, vclt_*, vcltq_*,
6349         vcltz_*, vcltzq_*, vtst_*, vtstq_*): Use gcc vector extensions.
6351 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
6353         * config/aarch64/aarch64-builtins.c (aarch64_types_cmtst_qualifiers,
6354         TYPES_TST): Define.
6355         (aarch64_fold_builtin): Update pattern for cmtst.
6357         * config/aarch64/aarch64-protos.h (aarch64_const_vec_all_same_int_p):
6358         Declare.
6360         * config/aarch64/aarch64-simd-builtins.def (cmtst): Update qualifiers.
6362         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>):
6363         Switch operands, separate out more cases, refactor.
6365         (aarch64_cmtst<mode>): Rewrite pattern to match (plus ... -1).
6367         * config/aarch64.c (aarch64_const_vec_all_same_int_p): Take single
6368         argument; rename old version to...
6369         (aarch64_const_vec_all_same_in_range_p): ...this.
6370         (aarch64_print_operand, aarch64_simd_shift_imm_p): Follow renaming.
6372         * config/aarch64/predicates.md (aarch64_simd_imm_minus_one): Define.
6374 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
6376         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
6377         Remove qualifier_const_pointer, update comment.
6379 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
6381         * config/aarch64/aarch64.md (adddi3_aarch64): set type to neon_add.
6383 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
6385         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Replace
6386         varargs with pointer parameter.
6387         (aarch64_simd_expand_builtin): pass pointer into previous.
6389 2014-09-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6391         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add alu_ext,
6392         alus_ext.
6394 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
6396         * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
6397         * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
6398         * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
6399         Replace temporary asm with call to builtin.
6400         (vrbit_p8, vrbitq_p8): New functions.
6402 2014-09-05  Richard Biener  <rguenther@suse.de>
6404         * cfgloop.c (mark_loop_for_removal): New function.
6405         * cfgloop.h (mark_loop_for_removal): Declare.
6406         * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
6407         (merge_blocks): Likewise.
6408         (duplicate_block): Likewise.
6409         * except.c (sjlj_emit_dispatch_table): Likewise.
6410         * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
6411         * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
6412         (thread_through_loop_header): Likewise.
6414 2014-09-05  Richard Biener  <rguenther@suse.de>
6416         PR middle-end/63148
6417         * fold-const.c (try_move_mult_to_index): Remove.
6418         (fold_binary_loc): Do not call it.
6419         * tree-data-ref.c (dr_analyze_indices): Strip conversions
6420         from the base object again.
6422 2014-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
6424         * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
6425         DImode.
6427 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
6429         PR target/55701
6430         * config/arm/arm.md (setmem): New pattern.
6431         * config/arm/arm-protos.h (struct tune_params): New fields.
6432         (arm_gen_setmem): New prototype.
6433         * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
6434         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
6435         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
6436         (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
6437         (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
6438         (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
6439         (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
6440         (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
6441         (arm_const_inline_cost): New function.
6442         (arm_block_set_max_insns): New function.
6443         (arm_block_set_non_vect_profit_p): New function.
6444         (arm_block_set_vect_profit_p): New function.
6445         (arm_block_set_unaligned_vect): New function.
6446         (arm_block_set_aligned_vect): New function.
6447         (arm_block_set_unaligned_non_vect): New function.
6448         (arm_block_set_aligned_non_vect): New function.
6449         (arm_block_set_vect, arm_gen_setmem): New functions.
6451 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
6453         * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
6455 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
6457         * config/arm/arm.c (output_move_neon): Handle REG explicitly.
6459 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
6461         * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
6462         an rtx.
6463         * valtrack.h: Adjust.
6465 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
6467         * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
6468         an rtx.
6469         (emit_jump_insn_before_noloc): Likewise.
6470         (emit_call_insn_before_noloc): Likewise.
6471         (emit_label_before): Likewise.
6472         (emit_label_after): Likewise.
6473         (emit_insn_before_setloc): Likewise.
6474         (emit_jump_insn_before_setloc): Likewise.
6475         (emit_call_insn_before_setloc): Likewise.
6476         (emit_call_insn_before): Likewise.
6477         * rtl.h: Adjust.
6479 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
6481         * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
6482         rtx_insn *, eliminating a checked cast.
6484 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
6486         * rtl.h (modified_between_p): Strengthen params 2 and 3 from
6487         const_rtx to const rtx_insn *.
6488         * rtlanal.c (modified_between_p): Likewise, eliminating a checked
6489         cast.
6491 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
6493         * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
6494         fixup_args_size_notes.
6495         * expr.c (fixup_args_size_notes): Strengthen first two params from
6496         rtx to rtx_insn *, eliminating a checked cast.
6497         * rtl.h (fixup_args_size_notes): Strengthen first two params from
6498         rtx to rtx_insn *.
6500 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
6502         * haifa-sched.c (get_ready_element): Strengthen return type from
6503         rtx to rtx_insn *.
6504         * sched-int.h (get_ready_element): Likewise.
6506 2014-09-04  Segher Boessenkool  <segher@kernel.crashing.org>
6508         PR target/63165
6509         * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
6510         indexed_or_indirect_operand instead of memory_operand.
6511         (floatsi<mode>2_lfiwzx_mem): Ditto.
6513 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
6515         * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
6516         config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
6517         ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
6519 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
6521         * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
6522         rtx.
6523         (get_last_nonnote_insn): Likewise.
6524         (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
6525         * resource.c (find_basic_block): Likewise.
6526         * rtl.h: Adjust.
6527         * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
6528         const_rtx.
6530 2014-09-04  David Malcolm  <dmalcolm@redhat.com>
6532         * genattr.c (main): Within the prototype of insn_latency written
6533         out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
6534         * genautomata.c (output_internal_maximal_insn_latency_func):
6535         Within the implementation of insn_latency written out to
6536         insn-automata.c, strengthen both params from rtx to rtx_insn *,
6537         eliminating a pair of checked casts.
6539 2014-09-04  David Malcolm  <dmalcolm@redhat.com>
6541         * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
6542         rtx_insn *.
6544         * rtl.h (eh_returnjump_p): Likewise.
6546 2014-09-04  Aldy Hernandez  <aldyh@redhat.com>
6548         * Makefile.in (TAGS): Handle constructs in timevar.def.
6550 2014-09-04  Guozhi Wei  <carrot@google.com>
6552         PR target/62040
6553         * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
6554         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
6555         it into two patterns.
6556         (move_lo_quad_internal_be_<mode>): Likewise.
6558 2014-09-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6560         * doc/options.texi: Document that Var and Init are required if CPP
6561         is given.
6562         * optc-gen.awk: Require Var and Init if CPP is given.
6563         * common.opt (Wpedantic): Use Init.
6565 2014-09-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6567         * config/rs6000/rs6000.c (special_handling_values): Add
6568         SH_EXTRACT.
6569         (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
6570         wrapped in a VEC_DUPLICATE, representing an extract.  Mark these
6571         as swappable with special handling SH_EXTRACT.  Remove
6572         UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
6573         optimization.
6574         (adjust_extract): New function.
6575         (handle_special_swappables): Add default to case statement; add
6576         case for SH_EXTRACT that calls adjust_extract.
6577         (dump_swap_insn_table): Handle SH_EXTRACT.
6579 2014-09-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6581         * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
6582         selection of 0th memory doubleword, regardless of endianness.
6584 2014-09-04  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
6586         * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
6588 2014-09-04  Alan Modra  <amodra@gmail.com>
6590         PR debug/60655
6591         * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
6592         can't be output.
6594 2014-09-03  Matthew Fortune  <matthew.fortune@imgtec.com>
6596         * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
6597         * targhooks.c (default_dwarf_frame_reg_mode): New function.
6598         * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
6599         * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
6600         * doc/tm.texi: Regenerate.
6601         * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
6602         selection logic to default_dwarf_frame_reg_mode.
6604 2014-09-03  Marek Polacek  <polacek@redhat.com>
6606         * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
6607         by -Wall.
6609 2014-09-03  Richard Sandiford  <richard.sandiford@arm.com>
6611         * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
6612         the automodified register.
6614 2014-09-03  Richard Sandiford  <richard.sandiford@arm.com>
6616         * output.h (get_some_local_dynamic_name): Declare.
6617         * final.c (some_local_dynamic_name): New variable.
6618         (get_some_local_dynamic_name): New function.
6619         (final_end_function): Clear some_local_dynamic_name.
6620         * config/alpha/alpha.c (machine_function): Remove some_ld_name.
6621         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
6622         (print_operand): Report an error if '%&' is used inappropriately.
6623         * config/i386/i386.c (get_some_local_dynamic_name): Delete.
6624         (get_some_local_dynamic_name_1): Delete.
6625         * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
6626         (rs6000_get_some_local_dynamic_name): Delete.
6627         (rs6000_get_some_local_dynamic_name_1): Delete.
6628         (print_operand): Report an error if '%&' is used inappropriately.
6629         * config/s390/s390.c (machine_function): Remove some_ld_name.
6630         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
6631         (print_operand): Assert that get_some_local_dynamic_name is nonnull.
6632         * config/sparc/sparc.c: Include rtl-iter.h.
6633         (machine_function): Remove some_ld_name.
6634         (sparc_print_operand): Report an error if '%&' is used inappropriately.
6635         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
6637 2014-09-03  Richard Henderson  <rth@redhat.com>
6639         * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
6640         (aarch64_popwb_pair_reg): Remove.
6641         (aarch64_set_frame_expr): Remove.
6642         (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
6643         the restore ops performed by the insns generated.
6644         (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
6645         insn.  Perform the calls_eh_return addition later; do not attempt to
6646         preserve the CFA in that case.  Don't use aarch64_set_frame_expr.
6647         (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
6648         special markup at all.  Load cfun->machine->frame.hard_fp_offset
6649         into a local variable.
6650         (aarch64_frame_pointer_required): Don't check calls_alloca.
6652 2014-09-03  Richard Biener  <rguenther@suse.de>
6654         * opts.c (default_options_optimization): Adjust
6655         max-combine-insns to 2 for -Og.
6657 2014-09-03  Martin Jambor  <mjambor@suse.cz>
6659         PR ipa/62015
6660         * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
6661         pass-trough jump functions correctly.
6663 2014-09-03  Martin Jambor  <mjambor@suse.cz>
6665         PR ipa/61986
6666         * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
6667         created replacements in ascending order of offsets.
6668         (known_aggs_to_agg_replacement_list): Likewise.
6670 2014-09-03  Martin Liska  <mliska@suse.cz>
6672         * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
6673         is set to set uninitialized value for vnresult.
6675 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
6677         * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
6678         for TARGET_MUST_PASS_IN_STACK.
6680 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
6682         * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
6683         for TARGET_ARG_PARTIAL_BYTES.
6685 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
6687         * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
6688         instructions for varargs implementation.
6689         (nds32_expand_epilogue): Emit stack adjustment instructions for
6690         varargs implementation.
6692 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
6694         * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
6695         optimization detection.
6697 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
6699         * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
6700         arguments.
6701         (nds32_function_arg_advance): Deal with nameless arguments.
6702         * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
6703         (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
6704         (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
6706 2014-09-03  Richard Biener  <rguenther@suse.de>
6708         * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
6709         (struct bb_bitmap_sets): Remove deferred member.
6710         (BB_DEFERRED): Remove.
6711         (defer_or_phi_translate_block): Remove.
6712         (compute_antic_aux): Remove deferring of blocks, assert
6713         proper iteration order.
6714         (compute_antic): Do not set BB_DEFERRED.
6715         (eliminate): Allocate el_avail of proper size initially.
6717 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
6719         * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
6720         according to the value of crtl->args.pretend_args_size.
6722 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
6724         * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
6725         varargs information.
6727 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
6729         * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
6730         implementation for TARGET_SETUP_INCOMING_VARARGS.
6731         (nds32_strict_argument_naming): Refine comment.
6732         * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
6733         Define for future implementation.
6735 2014-09-03  Ilya Tocar  <ilya.tocar@intel.com>
6737         * config/i386/adxintrin.h (_subborrow_u32): New.
6738         (_addcarry_u32): Ditto.
6739         (_subborrow_u64): Ditto.
6740         (_addcarry_u64): Ditto.
6741         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
6742         IX86_BUILTIN_SBB64.
6743         (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
6744         __builtin_ia32_sbb_u64
6746 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
6748         * config/nds32/nds32.c (nds32_function_arg): Define and rename some
6749         GPR-specific stuff.
6750         (nds32_function_arg_advance): Likewise.
6751         (nds32_init_cumulative_args): Likewise.
6752         * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
6753         (NDS32_FIRST_GPR_REGNUM): Define.
6754         (NDS32_LAST_GPR_REGNUM): Define.
6755         (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
6756         (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
6757         (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
6758         (machine_function): Use GRP-specific stuff.
6760 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
6762         * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
6763         (nds32_expand_epilogue): Likewise.
6764         (nds32_expand_prologue_v3push): Likewise.
6765         (nds32_expand_epilogue_v3pop): Likewise.
6767 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
6769         * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
6770         v3push/v3pop for variadic function.
6771         * config/nds32/nds32.md (prologue, epilogue): Likewise.
6773 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
6775         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
6776         Check rtx for varargs implementation.
6777         (nds32_output_stack_pop): Likewise.
6778         * config/nds32/nds32-protos.h: Have a rtx argument for
6779         nds32_output_stack_push and nds32_output_stack_pop.
6780         * config/nds32/nds32.md: Likewise.
6782 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
6784         * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
6785         to check if FUNC is an interrupt service routine.
6786         * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
6788 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
6790         * config/nds32/nds32.h (machine_function): Add some fields for variadic
6791         arguments implementation.
6793 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
6795         * config/nds32/nds32-predicates.c
6796         (nds32_valid_stack_push_pop): Rename to ...
6797         (nds32_valid_stack_push_pop_p): ... this.
6798         * config/nds32/nds32-protos.h: Likewise.
6799         * config/nds32/predicates.md: Likewise.
6801 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
6803         * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
6804         (nds32_emit_stack_v3push): ... this.
6805         (nds32_gen_stack_v3pop): Rename to ...
6806         (nds32_emit_stack_v3pop): ... this and consider CFA restore
6807         information.
6809 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
6811         * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
6812         (nds32_emit_stack_push_multiple): ... this.
6813         (nds32_gen_stack_pop_multiple): Rename to ...
6814         (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
6815         information.
6817 2014-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6819         PR target/61078
6820         * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
6821         and add a second splitter to handle the remaining cases.
6823 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
6825         * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
6827 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
6829         * cfgexpand.c (label_rtx_for_bb): Change type to
6830         hash_map<basic_block, rtx_code_label *> *.
6831         (expand_gimple_basic_block): Adjust.
6832         (pass_expand::execute): Likewise.
6834 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
6836         * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
6837         config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
6838         config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
6839         config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
6840         config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
6841         config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
6842         stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
6843         of rtx.
6845 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
6847         * alloc-pool.c: Include coretypes.h.
6848         * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
6849         function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
6850         hash_set instead of htab.
6851         * ggc-page.c (in_gc): New variable.
6852         (ggc_free): Do nothing if a collection is taking place.
6853         (ggc_collect): Set in_gc appropriately.
6854         * ggc.h (gt_ggc_mx(const char *)): New function.
6855         (gt_pch_nx(const char *)): Likewise.
6856         (gt_ggc_mx(int)): Likewise.
6857         (gt_pch_nx(int)): Likewise.
6858         * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
6859         (hash_map::hash_entry::pch_nx): Likewise.
6860         (hash_map::hash_entry::pch_nx_helper): Likewise.
6861 (hash_map::hash_map): Adjust.
6862 (hash_map::create_ggc): New function.
6863 (gt_ggc_mx): Likewise.
6864 (gt_pch_nx): Likewise.
6865         * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
6866 (default_hashset_traits::pch_nx): Likewise.
6867 (hash_set::hash_entry::ggc_mx): Likewise.
6868 (hash_set::hash_entry::pch_nx): Likewise.
6869 (hash_set::hash_entry::pch_nx_helper): Likewise.
6870 (hash_set::hash_set): Adjust.
6871 (hash_set::create_ggc): New function.
6872 (hash_set::elements): Likewise.
6873 (gt_ggc_mx): Likewise.
6874 (gt_pch_nx): Likewise.
6875         * hash-table.h (hash_table::hash_table): Adjust.
6876 (hash_table::m_ggc): New member.
6877         (hash_table::~hash_table): Adjust.
6878         (hash_table::expand): Likewise.
6879         (hash_table::empty): Likewise.
6880 (gt_ggc_mx): New function.
6881         (hashtab_entry_note_pointers): Likewise.
6882 (gt_pch_nx): Likewise.
6884 2014-09-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6886         * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE):  New
6887         built-in definition.
6888         (XVCVUXDDP_SCALE): Likewise.
6889         (XVCVDPSXDS_SCALE): Likewise.
6890         (XVCVDPUXDS_SCALE): Likewise.
6891         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins):  Add
6892         entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
6893         VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
6894         VSX_BUILTIN_XVCVDPUXDS_SCALE.
6895         * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
6896         prototype.
6897         * config/rs6000/rs6000.c (real.h): New include.
6898         (rs6000_scale_v2df): New function.
6899         * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
6900         (UNSPEC_VSX_XVCVUXDDP): Likewise.
6901         (UNSPEC_VSX_XVCVDPSXDS): Likewise.
6902         (UNSPEC_VSX_XVCVDPUXDS): Likewise.
6903         (vsx_xvcvsxddp_scale): New define_expand.
6904         (vsx_xvcvsxddp): New define_insn.
6905         (vsx_xvcvuxddp_scale): New define_expand.
6906         (vsx_xvcvuxddp): New define_insn.
6907         (vsx_xvcvdpsxds_scale): New define_expand.
6908         (vsx_xvcvdpsxds): New define_insn.
6909         (vsx_xvcvdpuxds_scale): New define_expand.
6910         (vsx_xvcvdpuxds): New define_insn.
6911         * doc/extend.texi (vec_ctf): Add new prototypes.
6912         (vec_cts): Likewise.
6913         (vec_ctu): Likewise.
6914         (vec_splat): Likewise.
6915         (vec_div): Likewise.
6916         (vec_mul): Likewise.
6918 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6920         PR target/62275
6921         * config/arm/neon.md
6922         (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
6923         <v_cmp_result>): New pattern.
6924         * config/arm/iterators.md (NEON_VCVT): New int iterator.
6925         * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
6926         vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
6927         vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
6928         * config/arm/arm.c (arm_builtin_vectorized_function): Handle
6929         BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
6931 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6933         PR target/62275
6934         * config/arm/iterators.md (FIXUORS): New code iterator.
6935         (VCVT): New int iterator.
6936         (su_optab): New code attribute.
6937         (su): Likewise.
6938         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
6940 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6942         * config/aarch64/predicates.md (aarch64_comparison_operation):
6943         New special predicate.
6944         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
6945         aarch64_comparison_operation instead of matching an operator.
6946         Update operand numbers.
6947         (csinc3<mode>_insn): Likewise.
6948         (*csinv3<mode>_insn): Likewise.
6949         (*csneg3<mode>_insn): Likewise.
6950         (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
6951         * config/aarch64/aarch64.c (aarch64_get_condition_code):
6952         Return -1 instead of aborting on invalid condition codes.
6953         (aarch64_print_operand): Update aarch64_get_condition_code callsites
6954         to assert that the returned condition code is valid.
6955         * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
6957 2014-09-02  Aldy Hernandez  <aldyh@redhat.com>
6959         * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
6960         tree.def, and gimple.def
6962 2014-09-02  Jakub Jelinek  <jakub@redhat.com>
6963             Balaji V. Iyer  <balaji.v.iyer@intel.com>
6964             Igor Zamyatin  <igor.zamyatin@intel.com>
6966         * cilk-builtins.def (__cilkrts_cilk_for_32): New.
6967         (__cilkrts_cilk_for_64): Likewise.
6968         * cilk-common.c (declare_cilk_for_builtin): New function.
6969         (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
6970         __cilkrts_cilk_for_64 bultins.
6971         * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
6972         CILK_TI_F_LOOP_64.
6973         (cilk_for_32_fndecl): New define.
6974         (cilk_for_64_fndecl): Likewise.
6975         * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
6976         GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
6977         * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
6978         GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
6979         GF_OMP_FOR_COMBINED_INTO.
6980         * gimplify.c (gimplify_scan_omp_clauses): Added
6981         OMP_CLAUSE__CILK_FOR_COUNT_ case.
6982         (gimplify_adjust_omp_clauses): Ditto.
6983         (gimplify_omp_for): Added CILK_FOR case.
6984         (gimplify_expr): Ditto.
6985         * omp-low.c: Include cilk.h.
6986         (extract_omp_for_data): Set appropriate kind for
6987         GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
6988         (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
6989         (create_omp_child_function_name): Added second argument to handle
6990         cilk_for case.
6991         (cilk_for_check_loop_diff_type): New function.
6992         (expand_cilk_for_call): Likewise.
6993         (expand_cilk_for): Likewise.
6994         (create_omp_child_function): Set cilk_for_count; handle the cases when
6995         it is true; call create_omp_child_function_name with second argument.
6996         (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
6997         (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
6998         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
6999         * tree-nested.c (convert_nonlocal_omp_clauses): Added
7000         OMP_CLAUSE__CILK_FOR_COUNT_ case.
7001         (convert_local_omp_clauses): Ditto.
7002         * tree-pretty-print.c (dump_omp_clause): Added
7003         OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
7004         (dump_generic_node): Added CILK_FOR case.
7005         * tree.c (omp_clause_num_ops): New element
7006         OMP_CLAUSE__CILK_FOR_COUNT_ (1).
7007         (omp_clause_code_name): New element _Cilk_for_count_.
7008         (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
7009         * tree.def: Add tree code for CILK_FOR.
7011 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
7013         * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
7014         (ppc403-compare): Add "exts with dot" case.
7015         * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
7016         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
7017         * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
7018         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
7019         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
7020         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
7021         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
7022         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
7023         cell-cmp-microcoded): Similarly.
7024         * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
7025         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
7026         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
7027         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
7028         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
7029         * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
7030         * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
7031         * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
7032         (power6-compare): Add "exts with dot" case.
7033         * config/rs6000/power7.md (power7-integer, power7-compare): As before.
7034         * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
7035         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
7037         * config/rs6000/predicates.md (lwa_operand): Don't allow memory
7038         if avoiding Cell microcode.
7039         * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
7040         (is_cracked_insn): Ditto.
7041         (insn_must_be_first_in_group): Ditto.
7042         * config/rs6000/rs6000.md (dot): Adjust comment.
7043         (cell_micro): Handle exts+dot.
7044         (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
7045         *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
7046         extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
7047         (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
7048         extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
7049         *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
7050         *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
7052 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
7054         * config/rs6000/rs6000.md (QHSI): Delete.
7055         (EXTQI, EXTHI, EXTSI): New mode iterators.
7056         (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
7057         *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
7058         *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
7059         9 anonymous instructions, and 8 splitters): Delete.
7060         (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
7061         *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
7062         *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
7063         zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
7064         *zero_extendsi<mode>2_dot2): New.
7066 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
7068         * config/rs6000/rs6000.md (any_extend): New code iterator.
7069         (u, su): New code attributes.
7070         (dmode, DMODE): New mode attributes.
7071         (<su>mul<mode>3_highpart): New.
7072         (*<su>mul<mode>3_highpart): New.
7073         (<su>mulsi3_highpart_le): New.
7074         (<su>muldi3_highpart_le): New.
7075         (<su>mulsi3_highpart_64): New.
7076         (<u>mul<mode><dmode>3): New.
7077         (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
7078         splitters): Delete.
7079         (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
7080         splitters): Delete.
7082 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
7084         * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
7085         *mulsi3_internal2, and two splitters): Delete.
7086         (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
7087         Delete.
7088         (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
7090 2014-09-02  Richard Biener  <rguenther@suse.de>
7092         PR tree-optimization/62695
7093         * tree-ssa-structalias.c (find_func_clobbers): Add missing
7094         vector truncate.
7096 2014-09-01  Oleg Endo  <olegendo@gcc.gnu.org>
7098         PR target/62312
7099         * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
7101 2014-09-01  Andi Kleen  <ak@linux.intel.com>
7103         * file-find.c (add_prefix_begin): Add.
7104         (do_add_prefix): Rename from add_prefix with first argument.
7105         (add_prefix): Add new wrapper.
7106         * file-find.h (add_prefix_begin): Add.
7107         * gcc-ar.c (main): Support -B option.
7109 2014-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
7111         * genemit.c: Include dumpfile.h.
7112         (gen_split): Print name of splitter function to dump file.
7114 2014-09-01  Richard Biener  <rguenther@suse.de>
7116         * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
7117         Use stack auto_vecs for constraint expressions.
7118         (find_func_aliases_for_call): Likewise.
7119         (find_func_aliases): Likewise.
7120         (find_func_clobbers): Likewise.
7122 2014-09-01  Richard Biener  <rguenther@suse.de>
7124         * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
7125         operands vector in most cases.  Remove redundant code.
7127 2014-09-01  Olivier Hainque  <hainque@adacore.com>
7129         * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
7130         $WIND_BASE instead of designating a harcoded arbitrary home dir.
7131         (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
7133 2014-09-01  Richard Biener  <rguenther@suse.de>
7135         * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
7136         copy_reference_ops_from_call, vn_nary_op_compute_hash,
7137         vn_reference_compute_hash, vn_reference_insert): Remove.
7138         (vn_reference_lookup_call): New function.
7139         * tree-ssa-sccvn.c (vn_reference_compute_hash,
7140         copy_reference_ops_from_ref, copy_reference_ops_from_call,
7141         vn_reference_insert, vn_nary_op_compute_hash): Make static.
7142         (create_reference_ops_from_call): Remove.
7143         (vn_reference_lookup_3): Properly update shared_lookup_references.
7144         (vn_reference_lookup_pieces): Assert that we updated
7145         shared_lookup_references properly.
7146         (vn_reference_lookup): Likewise.
7147         (vn_reference_lookup_call): New function.
7148         (visit_reference_op_call): Use it.  Avoid re-building the
7149         reference ops.
7150         (visit_reference_op_load): Remove redundant lookup.
7151         (visit_reference_op_store): Perform special tail-merging work
7152         only when possibly doing tail-merging.
7153         (visit_use): Likewise.
7154         * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
7156 2014-09-01  Jakub Jelinek  <jakub@redhat.com>
7158         PR target/62025
7159         * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
7160         returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
7161         (find_inc): Revert 2014-08-13 change.
7163 2014-09-01  Marek Polacek  <polacek@redhat.com>
7165         PR middle-end/61903
7166         * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
7167         Change the type of V to unsigned HOST_WIDE_INT.
7169 2014-09-01  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7171         * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
7172         the size of byte markers.
7173         (do_shift_rotate): Fix confusion between host, target and marker byte
7174         size.
7175         (verify_symbolic_number_p): Likewise.
7176         (find_bswap_or_nop_1): Likewise.
7177         (find_bswap_or_nop): Likewise.
7179 2014-09-01  Olivier Hainque  <hainque@adacore.com>
7181         * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
7182         INSTALL_SCRIPT and INSTALL_PROGRAM as well.
7184 2014-09-01  Jakub Jelinek  <jakub@redhat.com>
7186         * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
7187         * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
7188         (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
7190 2014-09-01  Yury Gribov  <y.gribov@samsung.com>
7192         PR sanitizer/61897
7193         PR sanitizer/62140
7194         * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
7195         (build_check_stmt): Likewise.
7196         (instrument_strlen_call): Likewise.
7197         (asan_expand_check_ifn): Likewise and fix types.
7198         (maybe_cast_to_ptrmode): New function.
7200 2014-09-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
7202         * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
7204 2014-08-31  Gerald Pfeifer  <gerald@pfeifer.com>
7206         * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
7208 2014-08-30  John David Anglin  <danglin@gcc.gnu.org>
7210         * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
7211         prefix to function labels when generating fast indirect calls.
7213 2014-08-30  David Malcolm  <dmalcolm@redhat.com>
7215         PR bootstrap/62304
7217         * gcc/reorg.c (skip_consecutive_labels): Convert return type and
7218         param back from rtx_insn * to rtx.  Rename param from "label" to
7219         "label_or_return", reintroducing "label" as an rtx_insn * after
7220         we've ensured it's not a RETURN.
7221         (first_active_target_insn): Likewise for return type and param;
7222         add a checked cast to rtx_insn * once we've ensured "insn" is not
7223         a RETURN.
7224         (steal_delay_list_from_target): Convert param "pnew_thread" back
7225         from rtx_insn ** to rtx *.  Replace use of JUMP_LABEL_AS_INSN
7226         with JUMP_LABEL.
7227         (own_thread_p): Convert param "thread" back from an rtx_insn * to
7228         an rtx.  Introduce local rtx_insn * "thread_insn" with a checked
7229         cast once we've established we're not dealing with a RETURN,
7230         renaming subsequent uses of "thread" to "thread_insn".
7231         (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
7232         to JUMP_LABEL.
7233         (follow_jumps): Convert return type and param "label" from
7234         rtx_insn * back to rtx.  Move initialization of "value" to after
7235         the handling for ANY_RETURN_P, adding a checked cast there to
7236         rtx_insn *.  Convert local rtx_insn * "this_label" to an rtx and
7237         rename to "this_label_or_return", reintroducing "this_label" as
7238         an rtx_insn * once we've handled the case where it could be an
7239         ANY_RETURN_P.
7240         (fill_slots_from_thread): Rename param "thread" to
7241         "thread_or_return", converting from an rtx_insn * back to an rtx.
7242         Reintroduce name "thread" as an rtx_insn * local with a checked
7243         cast once we've handled the case of it being an ANY_RETURN_P.
7244         Convert local "new_thread" from an rtx_insn * back to an rtx.
7245         Add a checked cast when assigning to "trial" from "new_thread".
7246         Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL.  Add a
7247         checked cast to rtx_insn * from "new_thread" when invoking
7248         get_label_before.
7249         (fill_eager_delay_slots): Convert locals "target_label",
7250         "insn_at_target" from rtx_insn * back to rtx.
7251         Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
7252         (relax_delay_slots): Convert locals "trial", "target_label" from
7253         rtx_insn * back to rtx.  Convert uses of JUMP_LABEL_AS_INSN back
7254         to JUMP_LABEL.  Add a checked cast to rtx_insn * on "trial" when
7255         invoking update_block.
7256         (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
7257         JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
7259         * resource.h (mark_target_live_regs): Undo erroneous conversion
7260         of second param of r214693, converting it back from rtx_insn * to
7261         rtx, since it could be a RETURN.
7263         * resource.c (find_dead_or_set_registers): Similarly, convert
7264         param "jump_target" back from an rtx_insn ** to an rtx *, as we
7265         could be writing back a RETURN.  Rename local rtx_insn * "next" to
7266         "next_insn", and introduce "lab_or_return" as a local rtx,
7267         handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
7268         (mark_target_live_regs): Undo erroneous conversion
7269         of second param of r214693, converting it back from rtx_insn * to
7270         rtx, since it could be a RETURN.  Rename it from "target" to
7271         "target_maybe_return", reintroducing the name "target" as a local
7272         rtx_insn * with a checked cast, after we've handled the case of
7273         ANY_RETURN_P.
7275 2014-08-29  DJ Delorie  <dj@redhat.com>
7277         * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
7278         pointer size up to a power of two.
7279         * defaults.h (DWARF2_ADDR_SIZE): Round up.
7280         (POINTER_SIZE_UNITS): New, rounded up value.
7281         * dwarf2asm.c (size_of_encoded_value): Use it.
7282         (dw2_output_indirect_constant_1): Likewise.
7283         * expmed.c (init_expmed_one_conv): We now know the sizes of
7284         partial int modes.
7285         * loop-iv.c (iv_number_of_iterations): Use precision, not size.
7286         * optabs.c (expand_float): Use precision, not size.
7287         (expand_fix): Likewise.
7288         * simplify-rtx (simplify_unary_operation_1): Likewise.
7289         * tree-dfa.c (get_ref_base_and_extent): Likewise.
7290         * varasm.c (assemble_addr_to_section): Round up pointer sizes.
7291         (default_assemble_integer) Likewise.
7292         (dump_tm_clone_pairs): Likewise.
7293         * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
7294         * var-tracking.c (adjust_mems): Allow partial-int modes also.
7295         (prepare_call_arguments): Likewise.
7296         * stor-layout.c (finalize_type_size): Preserve precision.
7297         (layout_type): Use precision, not size.
7299         * expr.c (convert_move): If the target has an explicit converter,
7300         use it.
7302 2014-08-29  David Malcolm  <dmalcolm@redhat.com>
7304         * gdbinit.in: Skip various inline functions in rtl.h when
7305         stepping.
7307 2014-08-29  Richard Sandiford  <richard.sandiford@arm.com>
7309         PR bootstrap/62301
7310         * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
7312 2014-08-29  Richard Biener  <rguenther@suse.de>
7314         PR tree-optimization/62291
7315         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
7316         exactly the vector size needed and use quick_push.
7317         (phi_translate_1): Adjust comment.
7318         (valid_in_sets): Remove block argument and remove pointless
7319         checking of NAMEs.
7320         (dependent_clean): Adjust for removal of block argument.
7321         (clean): Likewise.
7322         (compute_antic_aux): Likewise.
7323         (compute_partial_antic_aux): Likewise.
7325 2014-08-29  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7326             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
7327             Anna Tikhonova  <anna.tikhonova@intel.com>
7328             Ilya Tocar  <ilya.tocar@intel.com>
7329             Andrey Turetskiy  <andrey.turetskiy@intel.com>
7330             Ilya Verbin  <ilya.verbin@intel.com>
7331             Kirill Yukhin  <kirill.yukhin@intel.com>
7332             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
7334         * config/i386/sse.md
7335         (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
7336         (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
7337         (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
7338         (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
7340 2014-08-29  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7341             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
7342             Anna Tikhonova  <anna.tikhonova@intel.com>
7343             Ilya Tocar  <ilya.tocar@intel.com>
7344             Andrey Turetskiy  <andrey.turetskiy@intel.com>
7345             Ilya Verbin  <ilya.verbin@intel.com>
7346             Kirill Yukhin  <kirill.yukhin@intel.com>
7347             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
7349         * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
7350         * config/i386/sse.md
7351         (define_mode_iterator VI4_128_8_256): New.
7352         (define_mode_iterator VI2_128_4_256): Ditto.
7353         (define_mode_iterator PMOV_DST_MODE): Rename into
7354         (define_mode_iterator PMOV_DST_MODE_1): this.
7355         (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
7356         Use PMOV_DST_MODE_1 mode iterator.
7357         (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
7358         Ditto.
7359         (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
7360         Ditto.
7361         (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
7362         (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
7363         (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
7364         (define_mode_iterator PMOV_DST_MODE_2): New.
7365         (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
7366         (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
7367         (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
7368         Ditto.
7369         (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
7370         (define_mode_attr pmov_dst_3): Ditto.
7371         (define_mode_attr pmov_dst_zeroed_3): Ditto.
7372         (define_mode_attr pmov_suff_3): Ditto.
7373         (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
7374         (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
7375         (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
7376         (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
7377         (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
7378         (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
7379         (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
7380         (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
7381         (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
7382         (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
7383         (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
7384         (define_mode_attr pmov_dst_4): Ditto.
7385         (define_mode_attr pmov_dst_zeroed_4): Ditto.
7386         (define_mode_attr pmov_suff_4): Ditto.
7387         (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
7388         (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
7389         (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
7390         (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
7391         (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
7392         (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
7393         (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
7394         (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
7395         (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
7396         (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
7397         (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
7399 2014-08-29  Richard Biener  <rguenther@suse.de>
7401         * tree-cfg.c (verify_gimple_assign_unary): Do not allow
7402         NON_LVALUE_EXPR in gimple.
7404 2014-08-29  Richard Biener  <rguenther@suse.de>
7406         PR middle-end/62292
7407         * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
7408         from previous refactoring.
7409         (gimple_fold_builtin_strncpy): Likewise.
7411 2014-08-29  David Malcolm  <dmalcolm@redhat.com>
7413         PR bootstrap/62300
7414         * function.c (assign_parm_setup_reg): Remove erroneous checked
7415         cast to rtx_insn * on result of gen_extend_insn in favor of
7416         introducing a new local rtx "pat".
7418 2014-08-29  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
7420         * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
7421         to silence warning.
7422         * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
7424 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
7426         * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
7427         (next_insn): Likewise.
7428         * emit-rtl.c (next_insn): Likewise.
7429         (previous_insn): Likewise.
7430         * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
7431         "insn" and "next" from rtx to rtx_insn *.
7432         * config/picochip/picochip.c (picochip_reorg): Likewise for locals
7433         "insn", "insn1", "vliw_start",  "prologue_end_note",
7434         "last_insn_in_packet".
7436 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
7438         * shrink-wrap.h (active_insn_between): Strengthen both params from
7439         rtx to rtx_insn *.
7440         * function.c (active_insn_between): Likewise.
7442 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
7444         * genattr.c (main): When writing out insn-attr.h, strengthen param
7445         of dfa_clear_single_insn_cache from rtx to rtx_insn *.
7446         * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
7447         writing out the definition of dfa_clear_single_insn_cache to the
7448         generated insn-automata.c
7450 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
7452         * resource.h (clear_hashed_info_for_insn): Strengthen param from
7453         rtx to rtx_insn *.
7454         (incr_ticks_for_insn): Likewise.
7455         (init_resource_info): Likewise.
7457         * resource.c (init_resource_info): Likewise.
7458         (clear_hashed_info_for_insn): Likewise.
7459         (incr_ticks_for_insn): Likewise.
7461         * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
7462         rtx to rtx_insn *.
7463         (steal_delay_list_from_target): Use methods of "seq".
7464         (try_merge_delay_insns): Use methods of "merged_insns".
7465         (update_block): Strengthen param "insn" from rtx to rtx_insn *.
7466         (reorg_redirect_jump): Likewise for param "jump".
7468 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
7470         * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
7471         rtx to rtx_insn *.
7472         * config/s390/s390.c (s390_split_branches): Eliminate top-level
7473         local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
7474         "set_insn".
7475         (s390_mainpool_finish): In three places, split out a local rtx
7476         "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
7477         "insn".  Strengthen local "pool_end" from rtx to rtx_code_label *
7478         and split another local rtx "insn" out into rtx "pat" and
7479         rtx_insn * "insn".
7480         * config/sh/sh.c (output_branchy_insn): Rather than working
7481         directly on operands[9], introduce local rtx_code_label *
7482         variables named "lab" in two places, working on them, and then
7483         assigning them to operands[9], so that the intervening operations
7484         are known by the type system to be on insns.
7486 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
7488         * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
7489         const rtx_insn *.
7491         * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
7492         in invocation of INSN_HAS_LOCATION.
7494 2014-08-28  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7496         * config/rs6000/altivec.h (vec_xl): New #define.
7497         (vec_xst): Likewise.
7498         * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
7499         (XXSPLTD_V2DI): Likewise.
7500         (DIV_V2DI): Likewise.
7501         (UDIV_V2DI): Likewise.
7502         (MUL_V2DI): Likewise.
7503         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
7504         entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
7505         VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
7506         VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
7507         * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
7508         (UNSPEC_VSX_DIVSD): Likewise.
7509         (UNSPEC_VSX_DIVUD): Likewise.
7510         (UNSPEC_VSX_MULSD): Likewise.
7511         (vsx_mul_v2di): New insn-and-split.
7512         (vsx_div_v2di): Likewise.
7513         (vsx_udiv_v2di): Likewise.
7514         (vsx_xxspltd_<mode>): New insn.
7516 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
7518         * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
7519         NEXT_INSN.
7520         (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
7521         (NEXT_INSN): Likewise.
7522         (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
7523         (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
7524         const rtx_insn *.
7525         (no_labels_between_p): Likewise for both params.
7527         * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
7528         cast when using NEXT_INSN on operands[2].
7529         * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
7530         "insn" from rtx to rtx_insn *, adding a checked cast.
7531         (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
7532         rtx_insn *.
7533         * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
7534         for third param.
7535         (arc_text_label): Likewise for param "insn".
7536         * config/arc/arc.c (arc_expand_epilogue): Likewise for local
7537         "insn".
7538         (arc_ccfsm_record_condition): Likewise for param "jump".
7539         (arc_text_label): Likewise for local "label".
7540         * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
7541         Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
7542         a method for typesafety.  Add a checked cast.
7543         * config/arc/constraints.md (Clb): Add a checked cast when getting
7544         the CODE_LABEL from a LABEL_REF.
7545         * config/arm/arm.c (require_pic_register): Strengthen locals
7546         "seq", "insn" from rtx to rtx_insn *.
7547         (create_fix_barrier): Likewise for locals "selected", "next".
7548         (thumb1_reorg): Likewise for locals "prev", "insn".
7549         (arm_expand_prologue): Likewise for local "last".
7550         (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
7551         operands[0].
7552         (thumb2_output_casesi): Likewise for operands[2].
7553         * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
7554         strengthen local "insn" from rtx to rtx_insn *.
7555         * config/bfin/bfin.c (find_next_insn_start): Likewise for return
7556         type and param "insn".
7557         (find_prev_insn_start): Likewise.
7558         (hwloop_optimize): Likewise for locals "insn", "last_insn",
7559         "prev".
7560         (gen_one_bundle): Likewise for loal "t".
7561         (find_load): Likewise for param "insn".
7562         (workaround_speculation): Likewise for locals "insn", "next",
7563         "target", "next_tgt".
7564         * config/c6x/c6x.c (assign_reservations): Likewise for both params
7565         and for locals "insn", "within", "last".
7566         (count_unit_reqs): Likewise for params "head", "tail" and local
7567         "insn".
7568         (try_rename_operands): Likewise for params "head", "tail".
7569         (reshuffle_units): Likewise for locals "head", "tail", "insn".
7570         (struct c6x_sched_context): Likewise for fields
7571         "last_scheduled_insn", "last_scheduled_iter0".
7572         (init_sched_state): Replace NULL_RTX with NULL.
7573         (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
7574         to rtx_insn *.
7575         (undo_split_delayed_nonbranch): Likewise for param and for local
7576         "prev".
7577         (conditionalize_after_sched): Likewise for local "insn".
7578         (bb_earliest_end_cycle): Likewise.
7579         (filter_insns_above): Likewise for locals "insn", "next".
7580         (hwloop_optimize): Remove redundant checked cast.
7581         (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
7582         * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
7583         NULL_RTX with NULL.
7584         (cris_simple_epilogue): Likewise.
7585         (cris_expand_prologue): Likewise.
7586         (cris_expand_epilogue): Likewise.
7587         * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
7588         local "insn" from rtx to rtx_insn *.
7589         (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
7590         (struct frv_packet_group): Likewise for the elements within array
7591         fields "insns", "sorted", and for field "nop".
7592         (frv_packet): Likewise for the elements within array field
7593         "insns".
7594         (frv_add_insn_to_packet): Likewise for param "insn".
7595         (frv_insert_nop_in_packet): Likewise for param "insn" and local
7596         "last".
7597         (frv_for_each_packet): Likewise for locals "insn", "next_insn".
7598         (frv_sort_insn_group_1): Likewise for local "insn".
7599         (frv_optimize_membar_local): Likewise.
7600         (frv_align_label): Likewise for locals "x", "last", "barrier",
7601         "label".
7602         * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
7603         local.
7604         (ia64_sched_init): Likewise for local "insn".
7605         (scheduled_good_insn): Likewise for param "last".
7606         (struct _ia64_sched_context): Likewise for field
7607         "last_scheduled_insn".
7608         (ia64_init_sched_context): Replace NULL_RTX with NULL.
7609         (struct bundle_state): Likewise for field "insn".
7610         (issue_nops_and_insn): Likewise for param "insn".
7611         (get_next_important_insn): Likewise for return type and both
7612         params.
7613         (ia64_add_bundle_selector_before): Likewise for param "insn".
7614         (bundling): Likewise for params "prev_head_insn", "tail" and
7615         locals "insn", "next_insn", "b".  Eliminate top-level local rtx
7616         "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
7617         * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
7618         Strengthen final param from rtx to rtx_insn *.
7619         (iq2000_move_1word): Likewise for second param.
7620         * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
7621         param "cur_insn" and local "next_insn".
7622         (iq2000_move_1word): Likewise for param "insn".
7623         * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
7624         casts when using NEXT_INSN on operands[1].
7625         * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
7626         "insn" from rtx to rtx_insn *.
7627         * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
7628         "x", introducing local rtx_insn * "insn" for when working with the
7629         CODE_LABEL of the LABEL_REF.
7630         (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
7631         rtx_insn *.
7632         * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
7633         param.
7634         * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
7635         type.
7636         (conditionalize_block): Likewise for return type and param.
7637         (mcore_is_dead): Likewise for param "first" and local "insn".
7638         (emit_new_cond_insn): Likewise for return type.
7639         (conditionalize_block): Likewise for return type, param, and
7640         locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
7641         "newinsn".
7642         (conditionalize_optimization): Likewise for local "insn".
7643         * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
7644         using NEXT_INSN.
7645         * config/microblaze/microblaze.md: Add checked casts when using
7646         NEXT_INSN.
7647         * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
7648         rtx "insn" in favor of various more tightly-scoped rtx "insn" and
7649         and rtx_insn * "insn".
7650         * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
7651         checked cast when using NEXT_INSN on operands[2].
7652         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
7653         local "insn" from rtx to rtx_insn *.
7654         * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
7655         Likewise.
7656         * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
7657         Add a checked cast when using NEXT_INSN on operands[1].
7658         * config/pa/pa-protos.h (pa_following_call): Strengthen param from
7659         rtx to rtx_insn *.
7660         (pa_output_cbranch): Likewise for final param.
7661         (pa_output_lbranch): Likewise for second param.
7662         (pa_output_bb): Likewise for third param.
7663         (pa_output_bvb): Likewise.
7664         (pa_output_dbra): Likewise for second param.
7665         (pa_output_movb): Likewise.
7666         (pa_output_parallel_movb): Likewise.
7667         (pa_output_parallel_addb): Likewise.
7668         (pa_output_millicode_call): Likewise for first param.
7669         (pa_output_mul_insn): Likewise for second param.
7670         (pa_output_div_insn): Likewise for third param.
7671         (pa_output_mod_insn): Likewise for second param.
7672         (pa_jump_in_call_delay): Likewise for param.
7673         * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
7674         (pa_output_div_insn): Likewise.
7675         (pa_output_mod_insn): Likewise.
7676         (pa_output_cbranch): Likewise.
7677         (pa_output_lbranch): Likewise.
7678         (pa_output_bb): Likewise.
7679         (pa_output_bvb): Likewise.
7680         (pa_output_dbra): Likewise.
7681         (pa_output_movb): Likewise.
7682         (pa_output_millicode_call): Likewise; use method of rtx_sequence *
7683         to simplify and for typesafety.
7684         (pa_output_call): Use method of rtx_sequence *.
7685         (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
7686         (pa_jump_in_call_delay): Likewise.
7687         (pa_output_parallel_movb): Likewise.
7688         (pa_output_parallel_addb): Likewise.
7689         (pa_following_call): Likewise.
7690         (pa_combine_instructions): Likewise for locals "anchor",
7691         "floater".
7692         (pa_can_combine_p): Likewise for params "anchor", "floater" and
7693         locals "start", "end".
7694         * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
7695         param "insn" and local "local_insn".
7696         (picochip_final_prescan_insn): Likewise for local "local_insn".
7697         * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
7698         local "insn".
7699         (uses_TOC): Likewise.
7700         * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
7701         (s390_mainpool_finish): Eliminate top-level local rtx "insn",
7702         splitting out to more tightly-scoped locals, 3 as rtx and one as
7703         rtx_insn *.
7704         (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
7705         to rtx_insn *.
7706         (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
7707         where needed.
7708         * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
7709         to rtx_insn *.
7710         (fixup_addr_diff_vecs): Likewise.
7711         (reg_unused_after): Likewise for param 2.
7712         (sh_can_redirect_branch): Likewise for both params.
7713         (check_use_sfunc_addr): Likewise for param 1.
7714         * config/sh/sh.c (fixup_mova): Likewise for local "worker".
7715         (find_barrier): Likewise for local "last_got".
7716         (gen_block_redirect): Likewise for return type, param "jump" and
7717         locals "prev", "scan", "next", "insn".
7718         (struct far_branch): Likewise for fields "near_label",
7719         "insert_place", "far_label".
7720         (gen_far_branch): Likewise for local "jump".
7721         (fixup_addr_diff_vecs): Likewise for param "first" and locals
7722         "insn", "prev".
7723         (barrier_align): Likewise for param and for locals "prev", "x".
7724         Introduce local rtx_sequence * "prev_seq" and use insn method for
7725         typesafety and clarity.
7726         (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
7727         (get_dest_uid): Likewise for local "dest".
7728         (split_branches): Likewise for locals "next", "beyond", "label",
7729         "block", "far_label".  Add checked casts when assigning to
7730         bp->far_label and "far_label".
7731         (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
7732         (sequence_insn_p): Likewise.
7733         (mark_constant_pool_use): Likewise for locals "insn", "lab".  Add a
7734         more loop-scoped rtx "insn" when walking LABEL_REFS.
7735         (sh_can_redirect_branch): Strengthen both params from rtx to
7736         rtx_insn *.
7737         (check_use_sfunc_addr): Likewise for param "insn".  Introduce a
7738         new local rtx_sequence * "seq" via a dyn_cast, and use a method
7739         for clarity and typesafety.
7740         * config/sh/sh.md (define_expand "epilogue"): Strengthen local
7741         "insn" from rtx to rtx_insn *.
7742         (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
7743         when using NEXT_INSN on the CODE_LABEL in operands[2].
7744         (define_insn "casesi_worker_2"): Likewise.
7745         (define_insn "casesi_shift_media"): Likewise.
7746         (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
7747         operands[3].
7748         * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
7749         Strengthen field "insn" from rtx to rtx_insn *.
7750         (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
7751         (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
7752         param "start_insn" and local "start_insn".
7753         * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
7754         field "insn".
7755         (find_set_of_reg_bb): Likewise for param "insn".
7756         (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
7757         (trace_reg_uses): Likewise for param "start_insn".
7758         (sh_treg_combine::cbranch_trace): Likewise for field
7759         "cbranch_insn".
7760         (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
7761         param "insn".
7762         (sh_treg_combine::record_set_of_reg): Likewise for param
7763         "start_insn" and local "i".
7764         (sh_treg_combine::can_remove_cstore): Likewise for local
7765         "prev_insn".
7766         (sh_treg_combine::try_optimize_cbranch): Likewise for param
7767         "insn".
7768         (sh_treg_combine::execute): Likewise for local "i".
7769         * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
7770         param.
7771         (sparc_check_64): Likewise for second param.
7772         * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
7773         locals "insn", "next".  Introduce local rtx_sequence * "seq" via a
7774         dyn_cast, using its insn method for typesafety and clarity.
7775         (empty_delay_slot): Strengthen param "insn" from rtx to
7776         rtx_insn *.
7777         (set_extends): Likewise.
7778         (sparc_check_64): Likewise.
7779         * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
7780         for locals "seq", "last_insn".
7781         (combine_bnp): Likewise for param "insn".
7782         (xstormy16_reorg): Likewise for local "insn".
7783         * config/v850/v850.c (substitute_ep_register): Likewise for params
7784         "first_insn", "last_insn" and local "insn".
7785         (v850_reorg): Likewise for fields "first_insn", "last_insn" within
7786         elements of "regs" array, and local "insn".
7787         * except.c (emit_note_eh_region_end): Likewise for param "insn".
7788         * final.c (final_sequence): Strengthen this global from rtx to
7789         rtx_sequence *.
7790         (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
7791         rtx_insn *.
7792         (final_scan_insn): Update assignment to "final_sequence" to be
7793         from "seq", the cast version of "body", for type-safety.
7794         * function.c (assign_parm_setup_reg): Strengthen locals "insn",
7795         "insns" from rtx to rtx_insn *.
7796         (thread_prologue_and_epilogue_insns): Likewise for local "seq".
7797         * genattr.c (main): When writing out generated insn-attr.h,
7798         strengthen params 1 and 3 of eligible_for_delay,
7799         eligible_for_annul_true, eligible_for_annul_false from rtx to
7800         rtx_insn *.
7801         * genattrtab.c (write_eligible_delay): Likewise when writing out
7802         generated insn-attrtab.c; also local "insn" the generated
7803         functions.
7804         * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
7805         to rtx_insn *.
7806         * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
7807         "start_label" from rtx to rtx_insn *.
7808         * ira.c (decrease_live_ranges_number): Likewise for local "p".
7809         (ira_update_equiv_info_by_shuffle_insn): Likewise for param
7810         "insns" and local "insn".
7811         (validate_equiv_mem): Likewise for param "start" and local "insn".
7812         (memref_used_between_p): Likewise for params "start", "end" and
7813         local "insn".
7814         * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
7815         final param.
7816         * loop-doloop.c (doloop_optimize): Within region guarded by
7817         INSN_P (doloop_pat), introduce a new local rtx_insn *
7818         "doloop_insn" via a checked cast, and use it for typesafety,
7819         eventually writing the value back into doloop_pat.
7820         * output.h (final_sequence): Strengthen this global from rtx to
7821         rtx_sequence *.
7822         * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
7823         reintroducing "insn" as an rtx_insn * via a checked cast.
7824         Strengthen param "attempt" and local "new_insn"from rtx to
7825         rtx_insn *.
7826         (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
7827         to rtx_insn *.
7828         * ree.c (emit_note_eh_region_end): Likewise for local "insn".
7829         * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
7830         "p" in favor of more tightly-scoped replacements, sometimes rtx
7831         and sometimes rtx_insn *, as appropriate.
7832         (delete_output_reload): Eliminate top-level rtx "i1", splitting
7833         into two loop-scoped locals, one an rtx, the other an rtx_insn *.
7834         * reorg.c (delete_scheduled_jump): Add checked cast.  Strengthen
7835         local "trial" from rtx to rtx_insn *.
7836         (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
7837         rtx to rtx_insn *.  Strenghten local "pat" from rtx to
7838         rtx_sequence * and use methods for clarity and typesafety.
7839         (redirect_with_delay_list_safe_p): Strengthen param "jump" from
7840         rtx to rtx_insn *.  Strenghten local "li" from rtx to
7841         rtx_insn_list * and use its methods for clarity and typesafety.
7842         (steal_delay_list_from_target): Strengthen param "insn" from rtx
7843         to rtx_insn *.
7844         (steal_delay_list_from_fallthrough): Likewise.
7845         (try_merge_delay_insns): Likewise for param "thread" and locals
7846         "trial", "next_trial", "delay_insn".
7847         (redundant_insn): Likewise for param "target" and local "trial".
7848         (own_thread_p): Likewise for param "thread" and locals
7849         "active_insn", "insn".
7850         (get_label_before): Likewise for param "insn".
7851         (fill_simple_delay_slots): Likewise for local "new_label"; use
7852         JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
7853         (label_before_next_insn): Strengthen return type and local "insn"
7854         from rtx to rtx_insn *.
7855         (relax_delay_slots): Likewise for locals "other", "tmp".
7856         (make_return_insns): Likewise for param "first" and locals "insn",
7857         "jump_insn", "prev".  Move declaration of "pat" to its assignment
7858         and strengthen from rtx to rtx_sequence *.  Use its methods for
7859         clarity and typesafety.
7860         * rtlanal.c (no_labels_between_p): Strengthen params from
7861         const_rtx to const rtx_insn *.  Strengthen local "p" from rtx to
7862         rtx_insn *.
7863         (reg_used_between_p): Strengthen params "from_insn", "to_insn"
7864         from const_rtx to const rtx_insn *.
7865         (reg_set_between_p): Rename param "from_insn" to
7866         "uncast_from_insn", and reintroduce "from_insn" as a
7867         const rtx_insn * via a checked cast.
7868         (modified_between_p): Likewise for param "start" as "uncast_start".
7869         (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
7870         * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
7871         "tmp", head" from rtx to rtx_insn *.
7872         (recompute_rev_top_order): Likewise for local "insn".
7873         * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
7874         * store-motion.c (build_store_vectors): Likewise for local "insn".
7875         Strengthen local "st" from rtx to rtx_insn_list * and use methods
7876         for clarity and typesafety.
7877         * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
7878         rtx to rtx_insn *.
7879         (computation_cost): Likewise for local "seq".
7880         (get_address_cost): Likewise.
7882 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
7884         * rtl.h (tablejump_p): Strengthen first param from const_rtx to
7885         const rtx_insn *.
7886         (label_is_jump_target_p): Likewise for second param.
7888         * rtlanal.c (tablejump_p): Likewise for param "insn".
7889         (label_is_jump_target_p): Likewise for param "jump_insn".
7891 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
7893         * rtl.h (find_first_parameter_load): Strengthen return type and
7894         both params from rtx to rtx_insn *.
7895         * rtlanal.c (find_first_parameter_load): Strengthen return type,
7896         both params and locals "before", "first_set" from rtx to
7897         rtx_insn *.  Remove now-redundant cast.
7898         * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
7900 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
7902         * rtl.h (find_last_value): Delete.
7903         * rtlanal.c (find_last_value): Delete.
7905 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
7907         * cfgexpand.c (pass_expand::execute): Strengthen local "after"
7908         from rtx to rtx_insn *.
7909         * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
7910         rtx "note" with new local rtx_insn * "new_head" when calculating
7911         head insn of new basic block.
7912         * combine.c (combine_split_insns): Strengthen return type and local
7913         "ret" from rtx to rtx_insn *.
7914         (likely_spilled_retval_p): Likewise for locals "use" and "p".
7915         (try_combine): Eliminate local "m_split", splitting into new
7916         locals "m_split_insn" and "m_split_pat".
7917         (find_split_point): Strengthen local "seq" from rtx into
7918         rtx_insn *.
7919         * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
7920         locals "label", "branch".
7921         * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
7922         for local "insn".
7923         (define_expand "umulsi3_highpart"): Likewise for local "insn".
7924         * dse.c (note_add_store_info): Likewise for fields "first",
7925         "current".
7926         (note_add_store): Likewise for local "insn".
7927         (emit_inc_dec_insn_before): Likewise for locals "insn",
7928         "new_insn", "cur".
7929         (find_shift_sequence): Likewise for locals "shift_seq", "insn".
7930         (replace_read): Likewise for locals "insns", "this_insn".
7931         * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
7932         (notice_eh_throw): Likewise for param "insn".
7933         (before_next_cfi_note): Likewise for return type, param, and local
7934         "prev".
7935         (connect_traces): Likewise for local "note".
7936         * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
7937         (verify_rtl_sharing): Likewise.
7938         (unshare_all_rtl_in_chain): Likewise for param "insn".
7939         (get_first_nonnote_insn): Likewise for local "insn".
7940         (get_last_nonnote_insn): Likewise.  Introduce local rtx_sequence *
7941         "seq" and use its methods to clarify things.
7942         (next_insn): Strengthen return type from rtx to rtx_insn *.
7943         Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
7944         local rtx_insn * using a checked cast, dropping a checked cast
7945         made redundant by this change.  Use a cast to and method of
7946         rtx_sequence to clarify the code.
7947         (previous_insn): Rename param "insn" to "uncast_insn" and
7948         reintroduce "insn" as a local rtx_insn * using a checked cast,
7949         dropping a checked cast made redundant by this change.  Use a cast
7950         to and method of rtx_sequence to clarify the code.
7951         (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
7952         reintroduce "insn" as a local rtx_insn * using a checked cast,
7953         dropping a checked cast made redundant by this change.
7954         (next_nonnote_insn_bb): Likewise.
7955         (prev_nonnote_insn): Likewise.
7956         (prev_nonnote_insn_bb): Likewise.
7957         (next_nondebug_insn): Likewise.
7958         (prev_nondebug_insn): Likewise.
7959         (next_nonnote_nondebug_insn): Likewise.
7960         (prev_nonnote_nondebug_insn): Likewise.
7961         (next_real_insn): Likewise.
7962         (prev_real_insn): Likewise.
7963         (next_active_insn): Likewise.
7964         (prev_active_insn): Likewise.
7965         (next_cc0_user): Likewise.  Use rtx_sequence and a method for
7966         clarity.
7967         (prev_cc0_setter): Likewise.
7968         (try_split): Rename param "trial" to "uncast_trial" and
7969         reintroduce "insn" as a local rtx_insn * using a checked cast,
7970         dropping checked casts made redundant by this change.
7971         Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
7972         rtx to rtx_insn *.
7973         (remove_insn): Rename param "insn" to "uncast_insn" and
7974         reintroduce "insn" as a local rtx_insn * using a checked cast.
7975         (emit_pattern_after_setloc): Likewise for param "after", as
7976         "uncast_after".
7977         (emit_pattern_after): Likewise.  Strengthen local "prev" from
7978         rtx to rtx_insn *.
7979         (emit_pattern_before_setloc): Rename param "before" to
7980         "uncast_before" and reintroduce "before" as a local rtx_insn *
7981         using a checked cast.  Strengthen locals "first", "last" from
7982         rtx to rtx_insn *.
7983         (emit_pattern_before): Likewise rename/cast param "before" to
7984         "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
7985         * except.c (copy_reg_eh_region_note_forward): Strengthen param
7986         "first" and local "insn" from rtx to rtx_insn *.
7987         (copy_reg_eh_region_note_backward): Likewise for param "last"
7988         and local "insn".
7989         * expr.c (fixup_args_size_notes): Rename param "last" to
7990         "uncast_last" and reintroduce "last" as a local rtx_insn *
7991         using a checked cast.  Strengthen local "insn" from rtx to
7992         rtx_insn *.
7993         * function.c (set_insn_locations): Strengthen param "insn" from
7994         rtx to rtx_insn *.
7995         (record_insns): Likewise for param "insns" and local "tmp".
7996         (active_insn_between): Rename param "tail" to
7997         "uncast_tail" and reintroduce "tail" as a local rtx_insn *
7998         using a checked cast.
7999         (thread_prologue_and_epilogue_insns): Split out top-level local
8000         rtx "seq" into three different rtx_insn * locals.  Strengthen
8001         local "prologue_seq" from rtx to rtx_insn *.
8002         * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
8003         from rtx to rtx_insn *.
8004         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
8005         (priority): Likewise for locals "prev_first", "twin".
8006         (setup_insn_max_reg_pressure): Likewise for param "after".
8007         (sched_setup_bb_reg_pressure_info): Likewise.
8008         (no_real_insns_p): Strengthen params from const_rtx to
8009         const rtx_insn *.
8010         (schedule_block): Strengthen local "next_tail" from rtx to
8011         rtx_insn *.
8012         * ifcvt.c (find_active_insn_before): Strengthen return type and
8013         param "insn" from rtx to rtx_insn *.
8014         (find_active_insn_after): Likewise.
8015         (cond_exec_process_insns): Likewise for param "start" and local "insn".
8016         (cond_exec_process_if_block): Likewise for locals "then_start",
8017         "then_end", "else_start", "else_end", "insn", "start", "end", "from".
8018         (noce_process_if_block): Likewise for local "jump".
8019         (merge_if_block): Likewise for two locals named "end".
8020         (cond_exec_find_if_block): Likewise for local "last_insn".
8021         * jump.c (delete_related_insns): Rename param "insn" to
8022         "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
8023         checked cast.  Strengthen local "p" from rtx to rtx_insn *.
8024         * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
8025         NULL.
8026         (split_reg): Likewise.
8027         * lra.c (lra_process_new_insns): Likewise.
8028         * modulo-sched.c (permute_partial_schedule): Strengthen param
8029         "last" from rtx to rtx_insn *.
8030         * optabs.c (add_equal_note): Likewise for param "insns" and local
8031         "last_insn".
8032         (expand_binop_directly): Add checked casts to rtx_insn * within
8033         NEXT_INSN (pat) uses.
8034         (expand_unop_direct): Likewise.
8035         (maybe_emit_unop_insn): Likewise.
8036         * recog.c (peep2_attempt): Strengthen locals "last",
8037         "before_try", "x" from rtx to rtx_insn *.
8038         * reorg.c (optimize_skip): Strengthen return type and local
8039         "delay_list" from rtx to rtx_insn_list *.  Strengthen param "insn"
8040         and locals "trial", "next_trial" from rtx to rtx_insn *.
8041         * resource.c (next_insn_no_annul): Strengthen return type and
8042         param "insn" from rtx to rtx_insn *.  Use a cast to and method of
8043         rtx_sequence to clarify the code.
8044         (mark_referenced_resources): Add a checked cast to rtx_insn *
8045         within PREV_INSN (x).
8046         (find_dead_or_set_registers): Strengthen return type, param
8047         "target", locals "insn", "next", "jump_insn", "this_jump_insn"
8048         from rtx to rtx_insn *.  Strengthen param "jump_target" from rtx *
8049         to rtx_insn **.
8050         (mark_target_live_regs): Strengthen params "insns" and "target",
8051         locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
8052         to rtx_insn *.  Use cast to and method of rtx_sequence to clarify
8053         the code.
8054         * resource.h (mark_target_live_regs): Strengthen params 1 and 2
8055         from rtx to rtx_insn *.
8056         * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
8057         from rtx to rtx_insn *.
8058         (copy_reg_eh_region_note_backward): Likewise.
8059         (unshare_all_rtl_in_chain): Likewise for sole param.
8060         (dump_rtl_slim): Strengthen second and third params from const_rtx
8061         to const rtx_insn *.
8062         * sched-deps.c (sched_free_deps): Strengthen params "head" and
8063         "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
8064         * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
8065         "next_tail" from rtx to rtx_insn *.
8066         (begin_move_insn): Likewise for local "next".
8067         * sched-int.h (sched_free_deps): Likewise for first and second
8068         params.
8069         (no_real_insns_p): Strengthen both params from const_rtx to
8070         const rtx_insn *.
8071         (sched_setup_bb_reg_pressure_info): Strengthen second params from
8072         rtx to rtx_insn *.
8073         * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
8074         "next_tail".
8075         * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
8076         and locals "insn", "tail" from const_rtx to const rtx_insn *.
8077         (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
8078         rtx_insn *.
8079         (debug_rtl_slim): Strengthen params "first" and "last" from
8080         const_rtx to const rtx_insn *.
8081         * shrink-wrap.c (try_shrink_wrapping): Strengthen param
8082         "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
8083         (convert_to_simple_return): Likewise for param "returnjump".
8084         * shrink-wrap.h (try_shrink_wrapping): Likewise for param
8085         "prologue_seq".
8086         (convert_to_simple_return): Likewise for param "returnjump".
8087         * valtrack.c (propagate_for_debug): Likewise for params
8088         "insn", "last".
8089         * valtrack.h (propagate_for_debug): Likewise for second param.
8091 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8093         * output.h (insn_current_reference_address): Strengthen param
8094         from rtx to rtx_insn *.
8095         * final.c (insn_current_reference_address): Likewise.
8097 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8099         * basic-block.h (inside_basic_block_p): Strengthen param from
8100         const_rtx to const rtx_insn *.
8101         * cfgbuild.c (inside_basic_block_p): Likewise.
8103 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8105         * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
8106         rtx_insn *.
8107         (get_trace_info): Likewise for param "insn".
8108         (save_point_p): Likewise.
8109         (maybe_record_trace_start): Likewise for both params.
8110         (maybe_record_trace_start_abnormal): Likewise.
8111         (create_trace_edges): Likewise for sole param and for three of the
8112         locals named "lab".
8113         (scan_trace): Strengthen local "prev", "insn", "control" from rtx
8114         to rtx_insn *, and update a call to pat->element to pat->insn.
8116 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8118         * function.h (struct expr_status): Convert field "x_forced_labels"
8119         from rtx_expr_list * to rtx_insn_list *.
8121         * cfgbuild.c (make_edges): Convert local "x" from an
8122         rtx_expr_list * to an rtx_insn_list *, replacing use of
8123         "element" method with "insn" method.
8124         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
8125         * except.c (sjlj_emit_dispatch_table): Replace use of
8126         gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
8127         forced_labels.
8128         * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
8129         rtx_expr_list * to an rtx_insn_list *, replacing use of
8130         "element" method with "insn" method.
8131         * reload1.c (set_initial_label_offsets): Likewise for local "x".
8132         * stmt.c (label_rtx): Strengthen local "ref" from rtx to
8133         rtx_insn *, adding a checked cast.  Replace use of
8134         gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
8135         forced_labels.
8136         (expand_label): Likewise for local "label_r".
8138 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8140         * function.h (struct rtl_data): Convert field
8141         "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
8142         rtx_insn_list *.
8143         * rtl.h (remove_node_from_insn_list): New prototype.
8145         * builtins.c (expand_builtin): When prepending to
8146         nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
8147         gen_rtx_EXPR_LIST.
8148         * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
8149         to rtx_insn_list *, and use its "insn" method rather than
8150         "element" method.
8151         * cfgrtl.c (delete_insn): Use new function
8152         remove_node_from_insn_list rather than
8153         remove_node_from_expr_list.
8154         (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
8155         to rtx_insn_list *, and use its "insn" method rather than
8156         "element" method.
8157         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
8158         * reload1.c (set_initial_label_offsets): Likewise for local "x".
8159         * rtlanal.c (remove_node_from_insn_list): New function, adapted
8160         from remove_node_from_expr_list.
8161         * stmt.c (expand_label): When prepending to
8162         nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
8163         gen_rtx_EXPR_LIST.
8165 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8167         * function.h (struct rtl_data): Strengthen fields "x_return_label"
8168         and "x_naked_return_label" from rtx to rtx_code_label *.
8170 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8172         * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
8173         (SET_NEXT_INSN): Likewise.
8174         (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
8176         * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
8177         rtx * to rtx_insn **.  Introduce a new local rtx "seq", using it
8178         to split out the SEQUENCE from local "bundle", strengthening the
8179         latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
8180         Strengthen locals "t" and "insn" from rtx to rtx_insn *.
8181         (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
8182         and the type of the elements of the "slot" array from rtx to
8183         rtx_insn *.
8184         (reorg_split_calls): Likewise for locals "insn" and "next", and
8185         the type of the elements of the "slot" array.
8187         * config/frv/frv.c (frv_nops): Likewise for the elements of this
8188         array.
8189         (frv_function_prologue): Likewise for locals "insn", "next",
8190         "last_call".
8191         (frv_register_nop): Introduce a local "nop_insn" to be the
8192         rtx_insn * containing rtx "nop".
8194         * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
8195         used as an insn and sometimes as a pattern, so rename it to
8196         "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
8197         using it where dealing with the core insn.
8199         * config/picochip/picochip.c (reorder_var_tracking_notes):
8200         Strengthen locals "insn", "next", "last_insn", "queue",
8201         "next_queue", "prev" from rtx to rtx_insn *.
8203         * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
8204         the second param is an rtx_insn ** rather than an rtx **.
8205         (link_insn_into_chain): Strengthen locals "seq" and "sequence"
8206         from rtx to rtx_sequence *, and introduce local named "sequence",
8207         using methods of rtx_sequence to clarify the code.
8208         (remove_insn): Introduce local rtx_sequence * named "sequence" and
8209         use its methods.
8210         (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
8211         Rename param "after" to "uncast_after", reintroducing "after" as a
8212         local rtx_insn * with a checked cast.
8213         (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
8214         reintroducing "after" as a local rtx_insn * with a checked cast.
8215         Strengthen local "last" from rtx to rtx_insn * and remove the
8216         now-redundant checked casts.
8217         (copy_delay_slot_insn): Strengthen return type and param from rtx
8218         to rtx_insn *.
8220         * haifa-sched.c (reemit_notes): Strengthen params "insn" and
8221         "last" from rtx to rtx_insn *.
8223 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8225         * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
8226         param from rtx to rtx_insn *.
8228         * emit-rtl.c (copy_delay_slot_insn): Likewise.
8230         * reorg.c (skip_consecutive_labels): Strengthen return type, param
8231         and local "insn" from rtx to rtx_insn *.
8232         (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
8233         (unfilled_slots_next): Likewise.
8234         (function_return_label): Strengthen from rtx to rtx_code_label *.
8235         (function_simple_return_label): Likewise.
8236         (first_active_target_insn): Strengthen return type and param from
8237         rtx to rtx_insn *.
8238         (find_end_label): Strengthen return type from rtx to
8239         rtx_code_label *; strengthen locals as appropriate.
8240         (emit_delay_sequence): Strengthen return type, param "insn" and
8241         local "seq_insn" from rtx to rtx_insn *.  Strengthen param "list"
8242         and local "li" from rtx to rtx_insn_list *, using methods of
8243         rtx_insn_list for clarity and typesafety.
8244         (add_to_delay_list): Strengthen return type and param "insn" from
8245         rtx to rtx_insn *.  Strengthen param "delay_list" from rtx to
8246         rtx_insn_list * and use methods of rtx_insn_list.
8247         (delete_from_delay_slot): Strengthen return type, param "insn",
8248         locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
8249         Strengthen local "seq" from rtx to rtx_sequence *, and local
8250         "delay_list" from rtx to rtx_insn_list *, using methods of
8251         rtx_sequence for clarity and type-safety.
8252         (delete_scheduled_jump): Add checked cast when invoking
8253         delete_from_delay_slot.  Strengthen local "trial" from rtx to
8254         rtx_insn *.
8255         (optimize_skip): Strengthen return type and local "delay_list"
8256         from rtx to rtx_insn_list *.  Strengthen local "trial" from rtx to
8257         rtx_insn *.
8258         (steal_delay_list_from_target): Strengthen return type, param
8259         "delay_list" and local "new_delay_list" from rtx to
8260         rtx_insn_list *.  Strengthen param "seq" from rtx to
8261         rtx_sequence *.  Strengthen param "pnew_thread" from rtx * to
8262         rtx_insn **.
8263         Split out local "temp" into multiple more-tightly scoped locals:
8264         sometimes an rtx_insn_list *, and once a rtx_insn *.  Use methods
8265         of rtx_insn_list and rtx_sequence for clarity and typesafety.
8266         Strengthen locals named "trial" from rtx to rtx_insn *.
8267         (steal_delay_list_from_fallthrough): Strengthen return type and
8268         param "delay_list" from rtx to rtx_insn_list *.  Strengthen param
8269         "seq" from rtx to rtx_sequence *.  Use methods of rtx_sequence.
8270         Strengthen local "trial" from rtx to rtx_insn *.
8271         (try_merge_delay_insns): Strength local "merged_insns" from rtx
8272         to rtx_insn_list * and use its methods.  Strengthen local "pat"
8273         from rtx to rtx_sequence * and use its methods.  Strengthen locals
8274         "dtrial" and "new_rtx" from rtx to rtx_insn *.
8275         (get_label_before): Strengthen return type and local "label" from
8276         rtx to rtx_insn *.
8277         (fill_simple_delay_slots): Likewise for locals "insn", "trial",
8278         "next_trial", "next", prev".  Strengthen local "delay_list" from
8279         rtx to rtx_insn_list *  Strengthen local "tmp" from rtx * to
8280         rtx_insn **.
8281         (follow_jumps): Strengthen return type, param "label" and locals
8282         "insn", "next", "value", "this_label" from rtx to rtx_insn *.
8283         (fill_slots_from_thread): Strengthen return type, param
8284         "delay_list" from rtx to rtx_insn_list *.  Strengthen params
8285         "insn", "thread", "opposite_thread" and locals "new_thread",
8286         "trial", "temp", "ninsn" from rtx to rtx_insn *.  Introduce local
8287         "sequence" from a checked cast to rtx_sequence so that we can call
8288         steal_delay_list_from_target and steal_delay_list_from_fallthrough
8289         with an rtx_sequence *.
8290         (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
8291         "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
8292         Strengthen local "delay_list" from rtx to rtx_insn_list *.
8293         (relax_delay_slots): Strengthen param "first" and locals "insn",
8294         "next", "trial", "delay_insn", "target_label" from rtx to
8295         rtx_insn *.  Strengthen local "pat" from rtx to rtx_sequence *.
8296         Introduce a local "trial_seq" for PATTERN (trial) of type
8297         rtx_sequence *, in both cases using methods of rtx_sequence.
8298         (dbr_schedule): Strengthen param "first" and locals "insn",
8299         "next", "epilogue_insn" from rtx to rtx_insn *.
8301 2014-08-28  Richard Biener  <rguenther@suse.de>
8303         PR tree-optimization/62283
8304         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
8305         Do not peel loops for alignment where the vector loop likely
8306         doesn't run at least VF times.
8308 2014-08-28  Bin Cheng  <bin.cheng@arm.com>
8310         * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
8311         important_candidates.  Consider all important candidates if
8312         IVS doesn't give any result.  Remove check on ivs->upto.
8313         (try_add_cand_for): Call iv_ca_add_use only once.
8315 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8316             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8317             Anna Tikhonova  <anna.tikhonova@intel.com>
8318             Ilya Tocar  <ilya.tocar@intel.com>
8319             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8320             Ilya Verbin  <ilya.verbin@intel.com>
8321             Kirill Yukhin  <kirill.yukhin@intel.com>
8322             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8324         (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
8325         (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
8326         masking.
8327         (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
8328         (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
8329         (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
8330         (define_insn "*mul<mode>3"): Add EVEX version.
8332 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8333             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8334             Anna Tikhonova  <anna.tikhonova@intel.com>
8335             Ilya Tocar  <ilya.tocar@intel.com>
8336             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8337             Ilya Verbin  <ilya.verbin@intel.com>
8338             Kirill Yukhin  <kirill.yukhin@intel.com>
8339             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8341         * config/i386/sse.md
8342         (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
8343         (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
8344         (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
8345         (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
8346         (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
8347         (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
8348         (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
8349         (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
8350         (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
8351         (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
8352         (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
8353         (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
8354         (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
8355         (define_insn "vec_interleave_highv16qi<mask_name>"): New.
8356         (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
8357         (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
8359 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8360             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8361             Anna Tikhonova  <anna.tikhonova@intel.com>
8362             Ilya Tocar  <ilya.tocar@intel.com>
8363             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8364             Ilya Verbin  <ilya.verbin@intel.com>
8365             Kirill Yukhin  <kirill.yukhin@intel.com>
8366             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8368         * config/i386/sse.md
8369         (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
8370         (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
8371         (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
8373 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8374             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8375             Anna Tikhonova  <anna.tikhonova@intel.com>
8376             Ilya Tocar  <ilya.tocar@intel.com>
8377             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8378             Ilya Verbin  <ilya.verbin@intel.com>
8379             Kirill Yukhin  <kirill.yukhin@intel.com>
8380             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8382         * config/i386/sse.md
8383         (define_mode_iterator VI128_256): New.
8384         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
8386 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8387             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8388             Anna Tikhonova  <anna.tikhonova@intel.com>
8389             Ilya Tocar  <ilya.tocar@intel.com>
8390             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8391             Ilya Verbin  <ilya.verbin@intel.com>
8392             Kirill Yukhin  <kirill.yukhin@intel.com>
8393             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8395         * config/i386/sse.md
8396         (define_mode_iterator VI8_256_512): New.
8397         (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
8398         Ditto.
8399         (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
8400         (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
8401         Ditto.
8402         (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
8404 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8406         * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx.  Remove the
8407         pointer to the cumulative reloc value and return the value for
8408         this reloc instead.
8409         (compute_reloc_for_rtx): Take a const_rtx.  Call
8410         compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
8411         avoiding any recursion.  Use FOR_EACH_SUBRTX rather than
8412         for_each_rtx for the CONST case.
8414 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8416         * varasm.c (mark_constant): Replace this for_each_rtx callback with...
8417         (mark_constants_in_pattern): ...this new function to iterate over
8418         all the subrtxes.
8419         (mark_constants): Update accordingly.
8421 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8423         * varasm.c: Include rtl-iter.h.
8424         (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
8425         Remove the pointer to the cumulative hashval_t and just return
8426         the hash for this rtx instead.  Remove recursive CONST_VECTOR case.
8427         (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
8428         Accumulate the hashval_ts here instead of const_rtx_hash_1.
8430 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8432         * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
8433         Give real type of data parameter.  Remove return value.
8434         (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
8435         to iterate over subrtxes.
8437 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8439         * var-tracking.c (use_narrower_mode_test): Turn from being a
8440         for_each_rtx callback to being a function that examines each
8441         subrtx itself.
8442         (adjust_mems): Update accordingly.
8444 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8446         * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
8447         callback to being a function that examines each subrtx itself.
8448         Remove handling of null rtxes.
8449         (add_uses): Update accordingly.
8451 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8453         * var-tracking.c: Include rtl-iter.h.
8454         (rtx_debug_expr_p): Turn from being a for_each_rtx callback
8455         to being a function that examines each subrtx itself.
8456         (use_type): Update accordingly.
8458 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8460         * store-motion.c: Include rtl-iter.h.
8461         (extract_mentioned_regs_1): Delete.
8462         (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
8463         for_each_rtx to iterate over subrtxes.
8465 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8467         * sel-sched.c: Include rtl-iter.h
8468         (count_occurrences_1): Delete.
8469         (count_occurrences_equiv): Turn rtxes into const_rtxes.
8470         Use FOR_EACH_SUBRTX rather than for_each_rtx.
8472 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8474         * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
8475         * rtlanal.c (tls_referenced_p_1): Delete.
8476         (tls_referenced_p): Take a const_rtx rather than an rtx.
8477         Use FOR_EACH_SUBRTX rather than for_each_rtx.
8479 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8481         * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
8482         (for_each_inc_dec): Take an rtx rather than an rtx *.
8483         * cselib.c (cselib_record_autoinc_cb): Update accordingly.
8484         (cselib_record_sets): Likewise.
8485         * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
8486         (check_for_inc_dec): Likewise.
8487         * rtlanal.c (for_each_inc_dec_ops): Delete.
8488         (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
8489         rather than a pointer to the memory address.  Replace
8490         for_each_inc_dec_ops argument with separate function and data
8491         arguments.  Abort on non-autoinc addresses.
8492         (for_each_inc_dec_find_mem): Delete.
8493         (for_each_inc_dec): Take an rtx rather than an rtx *.  Use
8494         FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
8496 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8498         * rtl.h (find_all_hard_regs): Declare.
8499         * rtlanal.c (find_all_hard_regs): New function.
8500         (record_hard_reg_uses_1): Delete.
8501         (record_hard_reg_uses): Use find_all_hard_regs.
8503 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8505         * rtl.h (replace_label_data): Delete.
8506         (replace_label): Take the old label, new label and update-nuses flag
8507         as direct arguments.  Return void.
8508         * cfgcleanup.c (outgoing_edges_match): Update accordingly.
8509         * rtlanal.c (replace_label): Update interface as above.  Handle
8510         JUMP_TABLE_DATA as a special case.  Handle JUMPs outside the
8511         iterator.  Use FOR_EACH_SUBRTX_PTR.
8513 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8515         * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
8516         with const_rtx parameters.
8517         * varasm.c (get_pool_constant): Likewise.
8518         * rtlanal.c (rtx_referenced_p_1): Delete.
8519         (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
8520         Assert that the rtx we're looking for is nonnull.  Allow searches
8521         for constant pool SYMBOL_REFs.
8523 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8525         * reload1.c: Include rtl-iter.h.
8526         (note_reg_elim_costly): Turn from being a for_each_rtx callback
8527         to being a function that examines each subrtx itself.
8528         (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
8530 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8532         * regcprop.c (cprop_find_used_regs_1): Delete.
8533         (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
8535 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8537         * regcprop.c: Include rtl-iter.h.
8538         (kill_value): Take a const_rtx.
8539         (kill_autoinc_value): Turn from being a for_each_rtx callback
8540         to being a function that examines each subrtx itself.
8541         (copyprop_hardreg_forward_1): Update accordingly.
8543 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8545         * reg-stack.c: Include rtl-iter.h.
8546         (subst_stack_regs_in_debug_insn): Delete.
8547         (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
8548         instead of for_each_rtx.
8550 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8552         * lower-subreg.c (find_decomposable_subregs): Turn from being
8553         a for_each_rtx callback to being a function that examines each
8554         subrtx itself.  Remove handling of null rtxes.
8555         (decompose_multiword_subregs): Update accordingly.
8557 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8559         * lower-subreg.c (adjust_decomposed_uses): Delete.
8560         (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
8561         Remove handling of null rtxes.
8563 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8565         * lower-subreg.c: Include rtl-iter.h.
8566         (resolve_subreg_use): Turn from being a for_each_rtx callback
8567         to being a function that examines each subrtx itself.  Remove
8568         handling of null rtxes.
8569         (resolve_reg_notes, resolve_simple_move): Update accordingly.
8570         (decompose_multiword_subregs): Likewise.
8572 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8574         * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
8575         to being a function that examines each subrtx itself.
8576         (simplify_using_condition, simplify_using_initial_values): Update
8577         accordingly.
8579 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8581         * loop-iv.c: Include rtl-iter.h.
8582         (find_single_def_src): New function.
8583         (replace_single_def_regs): Turn from being a for_each_rtx callback
8584         to being a function that examines each subrtx itself.
8585         (replace_in_expr, simplify_using_initial_values): Update accordingly.
8587 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8589         * jump.c (eh_returnjump_p_1): Delete.
8590         (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
8591         Remove handling of null rtxes.
8593 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8595         * jump.c: Include rtl-iter.h.
8596         (returnjump_p_1): Delete.
8597         (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
8598         Remove handling of null rtxes.
8600 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8602         * ira.c: Include rtl-iter.h.
8603         (set_paradoxical_subreg): Turn from being a for_each_rtx callback
8604         to being a function that examines each subrtx itself.  Remove
8605         handling of null rtxes.
8606         (update_equiv_regs): Update call accordingly.
8608 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8610         * fwprop.c: Include rtl-iter.h.
8611         (varying_mem_p): Turn from being a for_each_rtx callback to being
8612         a function that examines each subrtx itself.
8613         (propagate_rtx): Update accordingly.
8615 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8617         * function.c: Include rtl-iter.h
8618         (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
8619         callback to being a function that examines each subrtx itself.
8620         Return the changed flag.
8621         (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
8622         (instantiate_virtual_regs): Update calls accordingly.
8624 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8626         * final.c: Include rtl-iter.h.
8627         (mark_symbol_ref_as_used): Delete.
8628         (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
8629         for_each_rtx.
8631 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8633         * emit-rtl.c: Include rtl-iter.h.
8634         (find_auto_inc): Turn from being a for_each_rtx callback to being
8635         a function that examines each subrtx itself.  Assume the first operand
8636         to an RTX_AUTOINC is the automodified register.
8637         (try_split): Update call accordingly.
8639 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8641         * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
8642         Return a bool, inverting the result so that 0/false means "not ok".
8643         Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
8644         subrtxes of a CONST.
8645         (mem_loc_descriptor, add_const_value_attribute)
8646         (resolve_addr_in_expr): Update calls accordingly.
8648 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8650         * dwarf2out.c: Include rtl-iter.h.
8651         (const_ok_for_output_1): Take the rtx instead of a pointer to it.
8652         Remove unused data parameter.  Return a bool, inverting the result
8653         so that 0/false means "not ok".
8654         (const_ok_for_output): Update accordingly.  Use FOR_EACH_SUBRTX_VAR
8655         instead of for_each_rtx.
8657 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8659         * dse.c: Include rtl-iter.h.
8660         (check_mem_read_rtx): Change void * parameter to real type.
8661         Remove return value.
8662         (check_mem_read_use): Fix comment.  Use FOR_EACH_SUBRTX_PTR instead of
8663         for_each_rtx.  Don't handle null rtxes.
8665 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8667         * df-problems.c: Include rtl-iter.h.
8668         (find_memory): Turn from being a for_each_rtx callback to being
8669         a function that examines each subrtx itself.  Continue to look for
8670         volatile references even after a nonvolatile one has been found.
8671         (can_move_insns_across): Update calls accordingly.
8673 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8675         * ddg.c (walk_mems_2, walk_mems_1): Delete.
8676         (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
8677         to iterate over subrtxes.  Return a bool rather than an int.
8679 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8681         * ddg.c: Include rtl-iter.h.
8682         (mark_mem_use_1): Rename to...
8683         (mark_mem_use): ...deleting old mark_mem_use.  Use FOR_EACH_SUBRTX
8684         instead of for_each_rtx.
8685         (mem_read_insn_p): Update accordingly.
8687 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8689         * cse.c (change_cc_mode_args): Delete.
8690         (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
8691         a function that examines each subrtx itself.  Take the fields of
8692         change_cc_mode_args as argument and return void.
8693         (cse_change_cc_mode_insn): Update calls accordingly.
8695 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8697         * cse.c (is_dead_reg): Change argument to const_rtx.
8698         (dead_debug_insn_data): Delete.
8699         (is_dead_debug_insn): Expand commentary.  Turn from being a
8700         for_each_rtx callback to being a function that examines
8701         each subrtx itself.  Take the fields of dead_debug_insn_data
8702         as argument.
8703         (delete_trivially_dead_insns): Update call accordingly.
8705 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8707         * cse.c (check_for_label_ref): Move earlier in file.  Turn from
8708         being a for_each_rtx callback to being a function that examines
8709         each subrtx itself.
8710         (cse_extended_basic_block): Update call accordingly.
8712 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8714         * cse.c (check_dependence_data): Delete.
8715         (check_dependence): Change from being a for_each_rtx callback to being
8716         a function that examines all subrtxes itself.  Don't handle null rtxes.
8717         (invalidate): Update call accordingly.
8719 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8721         * cse.c: Include rtl-iter.h.
8722         (approx_reg_cost_1): Delete.
8723         (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
8724         Don't handle null rtxes.
8726 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8728         * cfgcleanup.c: Include rtl-iter.h.
8729         (mentions_nonequal_regs): Turn from being a for_each_rtx callback
8730         to being a function that examines each subrtx itself.
8731         (thread_jump): Update accordingly.
8733 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8735         * combine-stack-adj.c: Include rtl-iter.h.
8736         (record_stack_refs_data): Delete.
8737         (record_stack_refs): Turn from being a for_each_rtx callback
8738         to being a function that examines each subrtx itself.
8739         Take a pointer to the reflist.  Invert sense of return value
8740         so that true means success and false means failure.  Don't
8741         handle null rtxes.
8742         (combine_stack_adjustments_for_block): Update accordingly.
8744 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8746         * combine.c (record_truncated_value): Turn from being a for_each_rtx
8747         callback to a function that takes an rtx and returns a bool
8748         (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
8749         for_each_rtx.
8751 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8753         * combine.c: Include rtl-iter.h.
8754         (unmentioned_reg_p_1): Delete.
8755         (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
8756         Don't handle null rtxes.
8758 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8760         * calls.c: Include rtl-iter.h.
8761         (internal_arg_pointer_based_exp_1): Delete.
8762         (internal_arg_pointer_based_exp): Take a const_rtx.
8763         Use FOR_EACH_SUBRTX to iterate over subrtxes.
8765 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8767         * caller-save.c: Include rtl-iter.h.
8768         (add_used_regs_1): Delete.
8769         (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
8770         to iterate over subrtxes.  Assert that any remaining pseudos
8771         have been spilled.
8773 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8775         * bt-load.c: Include rtl-iter.h.
8776         (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
8777         (find_btr_use): Move further up file.  Use FOR_EACH_SUBRTX_PTR
8778         to iterate over subrtxes.
8779         (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
8780         find_btr_use rather than btr_referenced_p.
8782 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8784         * alias.c: Include rtl-iter.h.
8785         (refs_newer_value_cb): Delete.
8786         (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
8788 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8790         * rtl-iter.h: New file.
8791         * rtlanal.c: Include it.
8792         (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
8793         (generic_subrtx_iterator <T>::add_single_to_queue)
8794         (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
8795         (generic_subrtx_iterator <T>::free_array): New functions.
8796         (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
8797         (generic_subrtx_iterator <const_rtx_accessor>)
8798         (generic_subrtx_iterator <rtx_var_accessor>
8799         (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
8800         (setup_reg_subrtx_bounds): New function.
8801         (init_rtlanal): Call it.
8803 2014-08-27  Kaz Kojima  <kkojima@gcc.gnu.org>
8805         PR target/62261
8806         * config/sh/sh.md (ashlsi3): Handle negative shift count for
8807         TARGET_SHMEDIA.
8808         (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
8810 2014-08-27  Richard Sandiford  <rdsandiford@googlemail.com>
8812         * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
8814 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
8816         * rtl.h (JUMP_LABEL_AS_INSN): New.
8818 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
8820         * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
8821         rtx_expr_list **.
8822         (alloc_EXPR_LIST): Strengthen return type from rtx to
8823         rtx_expr_list *.
8824         (remove_free_EXPR_LIST_node): Likewise for param.
8825         * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
8826         from rtx to rtx_expr_list *.
8827         * sched-int.h (struct deps_desc): Strengthen fields
8828         "pending_read_mems" and "pending_write_mems" from rtx to
8829         rtx_expr_list *.
8831         * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
8832         rtx to rtx_expr_list *.
8833         * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
8834         (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
8835         rtx_expr_list **.
8836         (remove_free_EXPR_LIST_node): Likewise.  Strengthen local "node"
8837         from rtx to rtx_expr_list *.
8838         * loop-iv.c (simplify_using_initial_values): Strengthen local
8839         "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
8840         "pnote_next" from rtx * to rtx_expr_list **.
8841         * sched-deps.c (remove_from_both_dependence_lists):  Strengthen
8842         param "exprp" from rtx * to rtx_expr_list **.
8843         (add_insn_mem_dependence): Strengthen local "mem_list" from
8844         rtx * to rtx_expr_list **.  Strengthen local "mem_node" from rtx
8845         to rtx_expr_list *.
8846         * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
8847         and local "new_mems" from rtx to rtx_expr_list *.  Strengthen
8848         param "old_mems_p" from rtx * to rtx_expr_list **.
8849         * var-tracking.c (struct adjust_mem_data): Strengthen field
8850         "side_effects" from rtx to rtx_expr_list *.
8851         (adjust_insn): Replace NULL_RTX with NULL when assigning to
8852         rtx_expr_list *.
8853         (prepare_call_arguments): Likewise.
8855 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
8857         * function.h (struct rtl_data): Strengthen field
8858         "x_stack_slot_list" from rtx to rtx_expr_list *.
8860         * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
8861         when assigning to stack_slot_list.
8863 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
8865         * function.h (struct rtl_data): Strengthen field
8866         x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
8867         * rtl.h (remove_node_from_expr_list): Strengthen second param from
8868         rtx * to rtx_expr_list **.
8870         * cfgbuild.c (make_edges): In loop over
8871         nonlocal_goto_handler_labels, strengthen local "x" from rtx to
8872         rtx_expr_list *, and use methods of the latter class to clarify
8873         the code.
8874         * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
8875         rtx_expr_list *, and use methods of the latter class to clarify
8876         the code.
8877         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
8878         * reload1.c (set_initial_label_offsets): Likewise for local "x".
8879         * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
8880         from rtx * to rtx_expr_list **.  Strengthen local "temp" from rtx
8881         to rtx_expr_list *.  Use methods of the latter class to clarify
8882         the code.
8884 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
8886         * function.h (struct expr_status): Strengthen field
8887         "x_forced_labels" from rtx to rtx_expr_list *.
8889         * cfgbuild.c (make_edges): Split local "x" into two locals,
8890         strengthening one from rtx to rtx_expr_list *, and using methods
8891         of said class.
8892         * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
8893         loop over forced_labels, introduce strengthen it from rtx to
8894         rtx_expr_list *, using methods to clarify the code.
8895         * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
8896         to rtx_expr_list *, using methods of said class to clarify the
8897         code.
8898         * reload1.c (set_initial_label_offsets): Split local "x" into two
8899         per-loop variables, strengthening the first from rtx to
8900         rtx_expr_list * and using methods.
8902 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
8904         * coretypes.h (class rtx_expr_list): Add forward declaration.
8905         * emit-rtl.c (gen_rtx_EXPR_LIST): New.
8906         * gengenrtl.c (special_rtx): Add EXPR_LIST.
8907         * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
8908         invariant: GET_CODE (X) == EXPR_LIST.
8909         (is_a_helper <rtx_expr_list *>::test): New.
8910         (rtx_expr_list::next): New.
8911         (rtx_expr_list::element): New.
8912         (gen_rtx_EXPR_LIST): New.
8914 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
8916         * varasm.c (mark_constants): Convert a GET_CODE check into a
8917         dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
8918         Use methods of rtx_sequence to clarify the code.
8920 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
8922         * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
8923         local "seq" via a checked cast, and use methods of rtx_sequence
8924         to simplify the code.
8926 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
8928         * resource.c (mark_referenced_resources): Strengthen local
8929         "sequence" from rtx to rtx_sequence *, adding a checked cast, and
8930         using methods of rtx_sequence to clarify the code.
8931         (find_dead_or_set_registers): Within the switch statement, convert
8932         a GET_CODE check to a dyn_cast, introducing local "seq".  Within
8933         the JUMP_P handling, introduce another local "seq", adding a
8934         checked cast to rtx_sequence *.  In both cases, use methods of
8935         rtx_sequence to clarify the code.
8936         (mark_set_resources): Within SEQUENCE case, introduce local "seq"
8937         via a checked cast, and use methods of rtx_sequence to simplify
8938         the code.
8940 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
8942         * reorg.c (redundant_insn): In two places in the function, replace
8943         a check of GET_CODE with a dyn_cast, introducing local "seq", and
8944         usings methods of rtx_sequence to clarify the code.
8946 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
8948         * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
8949         local "seq" with a checked cast, and use methods of rtx_sequence
8950         to clarify the code.
8952 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
8954         * function.c (contains): Introduce local "seq" for PATTERN (insn),
8955         with a checked cast, in the region for where we know it's a
8956         SEQUENCE.  Use methods of rtx_sequence.
8958 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
8960         * final.c (get_attr_length_1): Replace GET_CODE check with a
8961         dyn_cast, introducing local "seq" and the use of methods of
8962         rtx_sequence.
8963         (shorten_branches): Likewise, introducing local "body_seq".
8964         Strengthen local "inner_insn" from rtx to rtx_insn *.
8965         (reemit_insn_block_notes): Replace GET_CODE check with a
8966         dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
8967         Use methods of rtx_sequence.
8968         (final_scan_insn): Likewise, introducing local "seq" for when
8969         "body" is known to be a SEQUENCE, using its methods.
8971 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
8973         * except.c (can_throw_external): Strengthen local "seq" from rtx
8974         to rtx_sequence *.  Use methods of rtx_sequence.
8975         (insn_nothrow_p): Likewise.
8977 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
8979         * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
8980         dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
8981         Use methods of rtx_sequence.
8982         (scan_trace): Likewise for local "pat".
8984 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
8986         * coretypes.h (class rtx_sequence): Add forward declaration.
8987         * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
8988         invariant: GET_CODE (X) == SEQUENCE.
8989         (is_a_helper <rtx_sequence *>::test): New.
8990         (is_a_helper <const rtx_sequence *>::test): New.
8991         (rtx_sequence::len): New.
8992         (rtx_sequence::element): New.
8993         (rtx_sequence::insn): New.
8995 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
8997         * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
8998         rtx_insn_list **.
8999         (alloc_INSN_LIST): Strengthen return type from rtx to
9000         rtx_insn_list *.
9001         (copy_INSN_LIST): Likewise for return type and param.
9002         (concat_INSN_LIST): Likewise for both params and return type.
9003         (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
9004         rtx_insn *.  Strengthen second param from rtx * to rtx_insn_list **.
9005         (remove_free_INSN_LIST_node): Strenghten return type from rtx to
9006         rtx_insn *.  Strengthen param from rtx * to rtx_insn_list **.
9008         * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
9009         "implicit_sets", "control_uses", "clobbers" from rtx to
9010         rtx_insn_list *.
9011         (struct deps_desc): Likewise for fields "pending_read_insns",
9012         "pending_write_insns", "pending_jump_insns",
9013         "last_pending_memory_flush", "last_function_call",
9014         "last_function_call_may_noreturn", "sched_before_next_call",
9015         "sched_before_next_jump".
9016         (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
9017         (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
9019         * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
9020         from rtx to rtx_insn_list *.
9021         (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
9022         rtx_insn_list *.
9024         * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
9025         to rtx_insn_list **.
9026         (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
9027         rtx_insn_list *.
9028         (queue_insn): Likewise for local "link".
9029         (struct haifa_saved_data): Strengthen field "insn_queue" from
9030         rtx * to rtx_insn_list **.
9031         (save_backtrack_point): Update allocation of save->insn_queue to
9032         reflect the strengthening of elements from rtx to rtx_insn_list *.
9033         (queue_to_ready): Strengthen local "link" from rtx to
9034         rtx_insn_list *; use methods "next" and "insn" when traversing the
9035         list.
9036         (early_queue_to_ready): Likewise for locals "link", "next_link",
9037         "prev_link".
9038         (schedule_block): Update allocation of insn_queue to reflect the
9039         strengthening of elements from rtx to rtx_insn_list *.  Strengthen
9040         local "link" from rtx to rtx_insn_list *, and use methods when
9041         working it.
9042         (add_to_speculative_block): Strengthen locals "twins" and
9043         "next_node" from rtx to rtx_insn_list *, and use methods when
9044         working with them.  Strengthen local "twin" from rtx to
9045         rtx_insn *, eliminating a checked cast.
9046         (fix_recovery_deps): Strengthen locals "ready_list" and "link"
9047         from rtx to rtx_insn_list *, and use methods when working with
9048         them.
9050         * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
9051         from rtx to rtx_insn_list *, adding a checked cast.
9052         (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
9053         rtx_insn_list **.
9054         (copy_INSN_LIST): Strengthen return type and locals "new_queue",
9055         "newlink" from rtx to rtx_insn_list *.  Strengthen local
9056         "pqueue" from rtx * to rtx_insn_list **.  Strengthen local "x"
9057         from rtx to rtx_insn *.
9058         (concat_INSN_LIST): Strengthen return type and local "new_rtx",
9059         from rtx to rtx_insn_list *.  Use methods of the latter class.
9060         (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
9061         rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
9062         (remove_free_INSN_LIST_node): Strengthen return type and local
9063         "elem" from rtx to rtx_insn *.  Strenghten param "listp" from
9064         rtx * to rtx_insn_list **.  Strengthen local "node" from rtx to
9065         rtx_insn_list *, using "insn" method.
9067         * sched-deps.c (add_dependence_list):  Strengthen param "list"
9068         from rtx to rtx_insn_list *, and use methods when working with it.
9069         (add_dependence_list_and_free):  Strengthen param "listp" from
9070         rtx * to rtx_insn_list **.
9071         (remove_from_dependence_list): Strenghten param "listp" from rtx *
9072         to rtx_insn_list **, and use methods when working with *listp.
9073         (remove_from_both_dependence_lists): Strengthen param "listp" from
9074         rtx * to rtx_insn_list **
9075         (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
9076         to rtx_insn_list **.  Eliminate local "link", in favor of two new
9077         locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
9078         respectively.
9079         (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
9080         by introducing local "cond_deps".
9081         (remove_from_deps): Strengthen param "insn" from rtx to
9082         rtx_insn *.
9084         * sched-rgn.c (concat_insn_mem_list): Strengthen param
9085         "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
9086         Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
9087         Use methods of rtx_insn_list.
9089         * store-motion.c (struct st_expr): Strengthen fields
9090         "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
9091         (st_expr_entry): Replace NULL_RTX with NULL when dealing with
9092         rtx_insn_list *.
9093         (find_moveable_store): Split out "tmp" into multiple more-tightly
9094         scoped locals.  Use methods of rtx_insn_list *.
9095         (compute_store_table): Strengthen local "tmp" from rtx to
9096         rtx_insn *.  Use methods of rtx_insn_list *.
9098 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9100         * coretypes.h (class rtx_insn_list): Add forward declaration.
9101         * rtl.h (class rtx_insn_list): New subclass of rtx_def
9102         (is_a_helper <rtx_insn_list *>::test): New.
9103         (rtx_insn_list::next): New.
9104         (rtx_insn_list::insn): New.
9105         (gen_rtx_INSN_LIST): Add prototype.
9106         * emit-rtl.c (gen_rtx_INSN_LIST): New.
9107         * gengenrtl.c (special_rtx): Add INSN_LIST.
9109 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9111         * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
9112         "prev" from rtx to rtx_insn *.
9114 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9116         * rtl.h (INSN_UID): Convert from a macro to a pair of inline
9117         functions.  Require merely an rtx for now, not an rtx_insn *.
9118         (BLOCK_FOR_INSN): Likewise.
9119         (INSN_LOCATION): Likewise.
9120         (INSN_HAS_LOCATION): Convert from a macro to an inline function.
9122 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9124         * rtl.h (PATTERN): Convert this macro into a pair of inline
9125         functions, for now, requiring const_rtx and rtx.
9127 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9129         * target.def (unwind_emit): Strengthen param "insn" from rtx to
9130         rtx_insn *.
9131         (final_postscan_insn): Likewise.
9132         (adjust_cost): Likewise.
9133         (adjust_priority): Likewise.
9134         (variable_issue): Likewise.
9135         (macro_fusion_pair_p): Likewise.
9136         (dfa_post_cycle_insn): Likewise.
9137         (first_cycle_multipass_dfa_lookahead_guard): Likewise.
9138         (first_cycle_multipass_issue): Likewise.
9139         (dfa_new_cycle): Likewise.
9140         (adjust_cost_2): Likewise for params "insn" and "dep_insn".
9141         (speculate_insn): Likewise for param "insn".
9142         (gen_spec_check): Likewise for params "insn" and "label".
9143         (get_insn_spec_ds): Likewise for param "insn".
9144         (get_insn_checked_ds): Likewise.
9145         (dispatch_do): Likewise.
9146         (dispatch): Likewise.
9147         (cannot_copy_insn_p): Likewise.
9148         (invalid_within_doloop): Likewise.
9149         (legitimate_combined_insn): Likewise.
9150         (needed): Likewise.
9151         (after): Likewise.
9153         * doc/tm.texi: Automatically updated to reflect changes to
9154         target.def.
9156         * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
9157         working with insn.
9158         (schedule_block): Likewise.
9159         (sched_init): Likewise.
9160         (sched_speculate_insn): Strengthen param "insn" from rtx to
9161         rtx_insn *.
9162         (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
9163         working with insn.
9164         * hooks.c (hook_bool_rtx_true): Rename to...
9165         hook_bool_rtx_insn_true): ...this, and strengthen first param from
9166         rtx to rtx_insn *.
9167         (hook_constcharptr_const_rtx_null): Rename to...
9168         (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
9169         first param from const_rtx to const rtx_insn *.
9170         (hook_bool_rtx_int_false): Rename to...
9171         (hook_bool_rtx_insn_int_false): ...this, and strengthen first
9172         param from rtx to rtx_insn *.
9173         (hook_void_rtx_int): Rename to...
9174         (hook_void_rtx_insn_int): ...this, and strengthen first param from
9175         rtx to rtx_insn *.
9177         * hooks.h (hook_bool_rtx_true): Rename to...
9178         (hook_bool_rtx_insn_true): ...this, and strengthen first param from
9179         rtx to rtx_insn *.
9180         (hook_bool_rtx_int_false): Rename to...
9181         (hook_bool_rtx_insn_int_false): ...this, and strengthen first
9182         param from rtx to rtx_insn *.
9183         (hook_void_rtx_int): Rename to...
9184         (hook_void_rtx_insn_int): ...this, and strengthen first param from
9185         rtx to rtx_insn *.
9186         (hook_constcharptr_const_rtx_null): Rename to...
9187         (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
9188         first param from const_rtx to const rtx_insn *.
9190         * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
9191         and local "prev" from rtx to rtx_insn *.
9193         * sched-int.h (sched_speculate_insn): Strengthen first param from
9194         rtx to rtx_insn *.
9196         * sel-sched.c (create_speculation_check): Likewise for local "label".
9197         * targhooks.c (default_invalid_within_doloop): Strengthen param
9198         "insn" from const_rtx to const rtx_insn *.
9199         * targhooks.h (default_invalid_within_doloop): Strengthen param
9200         from const_rtx to const rtx_insn *.
9202         * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
9203         (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
9205         * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
9206         "insn".
9207         (arc_invalid_within_doloop): Likewise, with const.
9209         * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
9210         (arm_cannot_copy_insn_p): Likewise for param "insn".
9211         (arm_unwind_emit): Likewise.
9213         * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
9214         "dep_insn".
9216         * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
9217         (c6x_variable_issue): Likewise.  Removed now-redundant checked
9218         cast.
9219         (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
9221         * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
9222         Likewise for param "insn".
9223         (epiphany_mode_after): Likewise.
9224         * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
9225         params "insn", "dep_insn".
9226         (epiphany_mode_needed): Likewise for param "insn".
9227         (epiphany_mode_after): Likewise.
9229         * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
9230         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
9231         (ix86_avx_u128_mode_needed): Likewise.
9232         (ix86_i387_mode_needed): Likewise.
9233         (ix86_mode_needed): Likewise.
9234         (ix86_avx_u128_mode_after): Likewise.
9235         (ix86_mode_after): Likewise.
9236         (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
9237         (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
9238         (ix86_adjust_priority): Likewise for param "insn".
9239         (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
9240         (do_dispatch): Likewise.
9241         (has_dispatch): Likewise.
9242         * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
9244         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
9245         reflect renaming of default hook implementation from
9246         hook_constcharptr_const_rtx_null to
9247         hook_constcharptr_const_rtx_insn_null.
9248         (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
9249         rtx to rtx_insn *.
9250         (ia64_variable_issue): Likewise for param "insn".
9251         (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
9252         (ia64_dfa_new_cycle): Likewise.
9253         (ia64_get_insn_spec_ds): Likewise.
9254         (ia64_get_insn_checked_ds): Likewise.
9255         (ia64_speculate_insn): Likewise.
9256         (ia64_gen_spec_check): Likewise for params "insn", "label".
9257         (ia64_asm_unwind_emit): Likewise for param "insn".
9259         * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
9261         * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
9262         "insn", "def_insn".
9263         (m68k_sched_variable_issue): Likewise for param "insn".
9265         * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
9266         "def_insn".
9268         * config/microblaze/microblaze.c (microblaze_adjust_cost):
9269         Likewise for params "insn", "dep".
9271         * config/mips/mips.c (mips_adjust_cost): Likewise.
9272         (mips_variable_issue): Likewise for param "insn".
9273         (mips_final_postscan_insn): Likewise.
9275         * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
9276         for params "insn", "dep".
9278         * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
9279         "dep_insn".
9280         (pa_adjust_priority): Likewise for param "insn".
9282         * config/picochip/picochip.c (picochip_sched_adjust_cost):
9283         Likewise for params "insn", "dep_insn".
9285         * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
9286         param "insn".
9287         (rs6000_variable_issue): Likewise.
9288         (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
9289         (rs6000_debug_adjust_cost): Likewise.
9290         (rs6000_adjust_priority): Likewise for param "insn".
9291         (rs6000_use_sched_lookahead_guard): Likewise.
9292         (get_next_active_insn): Likewise for return type and both params.
9293         (redefine_groups): Likewise for params "prev_head_insn", "tail"
9294         and locals "insn", "next_insn".
9295         (pad_groups): Likewise.
9297         * config/s390/s390.c (s390_adjust_priority): Likewise for param
9298         "insn".
9299         (s390_cannot_copy_insn_p): Likewise.
9300         (s390_sched_variable_issue): Likewise for third param, eliminating
9301         checked cast.
9302         (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
9303         default hook implementation from hook_constcharptr_const_rtx_null
9304         to hook_constcharptr_const_rtx_insn_null.
9306         * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
9307         from rtx to rtx_insn *.
9308         (sh_adjust_cost): Likewise for params "insn", "dep_insn".
9309         (sh_variable_issue): Likewise for param "insn".
9310         (sh_dfa_new_cycle): Likewise.
9311         (sh_mode_needed): Likewise.
9312         (sh_mode_after): Likewise.
9314         * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
9315         params "insn", "dep_insn".
9316         (hypersparc_adjust_cost): Likewise.
9317         (sparc_adjust_cost): Likewise.
9319         * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
9320         param, eliminated checked cast.
9321         (spu_sched_adjust_cost): Likewise for first and third params.
9323         * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
9324         params "insn" and "dep_insn" from rtx to rtx_insn *.
9326         * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
9328 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9330         * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
9331         (set_is_load_p): ...this, updating to work on a SET pattern rather
9332         than an insn.
9333         (is_store_insn): Rename to...
9334         (set_is_store_p): ...this, updating to work on a SET pattern
9335         rather than an insn.
9336         (mn10300_adjust_sched_cost): Move call to get_attr_timings from
9337         top of function to where it is needed.  Rewrite the bogus
9338         condition that checks for "insn" and "dep" being PARALLEL to
9339         instead use single_set, introducing locals "insn_set" and
9340         "dep_set".  Given that we only ever returned "cost" for a non-pair
9341         of SETs, bail out early if we don't have a pair of SET.
9342         Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
9343         use the new locals "insn_set" and "dep_set", and update calls to
9344         is_load_insn and is_store_insn to be calls to set_is_load_p and
9345         set_is_store_p.
9347 2014-08-27  Guozhi Wei  <carrot@google.com>
9349         PR target/62262
9350         * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
9351         amount before using it.
9353 2014-08-27  Richard Biener  <rguenther@suse.de>
9355         * gimple-fold.c (get_maxval_strlen): Add overload wrapping
9356         get_maxval_strlen inside a more useful API.
9357         (gimple_fold_builtin_with_strlen): Remove and fold into ...
9358         (gimple_fold_builtin): ... caller.
9359         (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
9360         gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
9361         gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
9362         gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
9363         gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
9364         gimple_fold_builtin_sprintf): Adjust to compute maxval
9365         themselves.
9367 2014-08-27  Yvan Roux  <yvan.roux@linaro.org>
9369         PR other/62248
9370         * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
9372 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9373             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9374             Anna Tikhonova  <anna.tikhonova@intel.com>
9375             Ilya Tocar  <ilya.tocar@intel.com>
9376             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9377             Ilya Verbin  <ilya.verbin@intel.com>
9378             Kirill Yukhin  <kirill.yukhin@intel.com>
9379             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9381         * config/i386/sse.md
9382         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
9383         Use `concat_tg_mode' attribute to determine asm register size.
9385 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9386             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9387             Anna Tikhonova  <anna.tikhonova@intel.com>
9388             Ilya Tocar  <ilya.tocar@intel.com>
9389             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9390             Ilya Verbin  <ilya.verbin@intel.com>
9391             Kirill Yukhin  <kirill.yukhin@intel.com>
9392             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9394         * config/i386/sse.md
9395         (define_mode_iterator VI48_AVX512VL): New.
9396         (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
9397         (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
9398         (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
9399         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
9400         with VI1): Change mode iterator.
9401         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
9402         with VI_ULOADSTORE_BW_AVX512VL): New.
9403         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
9404         with VI_ULOADSTORE_F_AVX512VL): Ditto.
9405         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
9406         with VI1): Change mode iterator.
9407         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
9408         with VI_ULOADSTORE_BW_AVX512VL): New.
9409         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
9410         with VI_ULOADSTORE_F_AVX512VL): Ditto.
9411         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
9412         with VI1): Change mode iterator.
9413         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
9414         with VI_ULOADSTORE_BW_AVX512VL): New.
9415         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
9416         with VI_ULOADSTORE_BW_AVX512VL): Ditto.
9417         (define_insn "avx512f_storedqu<mode>_mask"): Delete.
9418         (define_insn "<avx512>_storedqu<mode>_mask" with
9419         VI48_AVX512VL): New.
9420         (define_insn "<avx512>_storedqu<mode>_mask" with
9421         VI12_AVX512VL): Ditto.
9423 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9424             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9425             Anna Tikhonova  <anna.tikhonova@intel.com>
9426             Ilya Tocar  <ilya.tocar@intel.com>
9427             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9428             Ilya Verbin  <ilya.verbin@intel.com>
9429             Kirill Yukhin  <kirill.yukhin@intel.com>
9430             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9432         * config/i386/sse.md
9433         (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
9434         (define_mode_iterator VI48_AVX512BW): New.
9435         (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
9436         (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
9437         with VI48_AVX2_48_AVX512F): New.
9438         (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
9439         with VI2_AVX512VL): Ditto.
9441 2014-08-27  Richard Biener  <rguenther@suse.de>
9443         PR middle-end/62239
9444         * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
9445         (fold_builtin_3): Do not fold strcat_chk here.
9446         * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
9447         from builtins.c.
9448         (gimple_fold_builtin): Fold strcat_chk here.
9450 2014-08-26  Aldy Hernandez  <aldyh@redhat.com>
9452         * dwarf2out.h (dwarf2out_decl): Remove prototype.
9453         * dwarf2out.c (dwarf2out_decl): Make static.
9455 2014-08-26  Joel Sherrill <joel.sherrill@oarcorp.com>
9457         * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
9459 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
9461         * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
9462         from rtx to rtx_insn *.
9463         (cselib_lookup_from_insn): Likewise for final param.
9464         (cselib_subst_to_values_from_insn): Likewise.
9465         (cselib_add_permanent_equiv): Likewise.
9467         * cselib.c (cselib_current_insn): Likewise for this variable.
9468         (cselib_subst_to_values_from_insn): Likewise for param "insn".
9469         (cselib_lookup_from_insn): Likewise.
9470         (cselib_add_permanent_equiv): Likewise for param "insn" and local
9471         "save_cselib_current_insn".
9472         (cselib_process_insn): Replace use of NULL_RTX with NULL.
9474         * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
9475         from rtx to rtx_insn *.
9477 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
9479         * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
9480         rtx_insn *.
9482 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
9484         * df.h (df_dump_insn_problem_function): Strengthen first param of
9485         this callback from const_rtx to const rtx_insn *.
9486         (struct df_insn_info): Strengthen field "insn" from rtx to
9487         rtx_insn *.
9488         (DF_REF_INSN): Eliminate this function, reinstating the older
9489         macro definition.
9490         (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
9491         (df_reg_defined): Likewise.
9492         (df_find_use): Likewise.
9493         (df_reg_used): Likewise.
9494         (df_dump_insn_top): Strengthen param 1 from const_rtx to
9495         const rtx_insn *.
9496         (df_dump_insn_bottom): Likewise.
9497         (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
9498         (df_insn_debug_regno): Likewise.
9499         (debug_df_insn): Likewise.
9500         (df_rd_simulate_one_insn): Likewise for param 2.
9501         (df_word_lr_simulate_defs): Likewise for param 1.
9502         (df_word_lr_simulate_uses): Likewise.
9503         (df_md_simulate_one_insn): Likewise for param 2.
9504         (df_simulate_find_noclobber_defs): Likewise for param 1.
9505         (df_simulate_find_defs): Likewise.
9506         (df_simulate_defs): Likewise.
9507         (df_simulate_uses): Likewise.
9508         (df_simulate_one_insn_backwards): Likewise for param 2.
9509         (df_simulate_one_insn_forwards): Likewise.
9510         (df_uses_create): Likewise for param 2.
9511         (df_insn_create_insn_record): Likewise for param 1.
9512         (df_insn_delete): Likewise.
9513         (df_insn_rescan): Likewise.
9514         (df_insn_rescan_debug_internal): Likewise.
9515         (df_insn_change_bb): Likewise.
9516         (df_notes_rescan): Likewise.
9517         * rtl.h (remove_death): Likewise for param 2.
9518         (print_rtl_with_bb): Strengthen param 2 from const_rtx to
9519         const rtx_insn *.
9520         * sched-int.h (reemit_notes): Strengthen param from rtx to
9521         rtx_insn *.
9522         * valtrack.h (propagate_for_debug): Likewise for param 1.
9524         * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
9525         local "tmp_rtx" from const_rtx to const rtx_insn *.
9526         * combine.c (remove_death): Strengthen param "insn" from rtx to
9527         rtx_insn *.
9528         (move_deaths): Likewise for local "where_dead".
9529         * cse.c (delete_trivially_dead_insns): Introduce local
9530         "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
9531         * df-core.c (df_find_def): Strengthen param "insn" from rtx to
9532         rtx_insn *.
9533         (df_reg_defined): Likewise.
9534         (df_find_use): Likewise.
9535         (df_reg_used): Likewise.
9536         (df_dump_insn_problem_data): Strengthen param "insn" from
9537         const_rtx to const rtx_insn *.
9538         (df_dump_insn_top): Likewise.
9539         (df_dump_insn_bottom): Likewise.
9540         (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
9541         (df_insn_debug_regno): Likewise.
9542         (debug_df_insn): Likewise.
9543         (DF_REF_INSN): Delete.
9544         * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
9545         from rtx to rtx_insn *.
9546         (df_chain_insn_top_dump): Strengthen param "insn" from
9547         const_rtx to const rtx_insn *.
9548         (df_chain_insn_bottom_dump): Likewise.
9549         (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
9550         rtx_insn *.
9551         (df_word_lr_simulate_uses): Likewise.
9552         (df_print_note): Likewise.
9553         (df_remove_dead_and_unused_notes): Likewise.
9554         (df_set_unused_notes_for_mw): Likewise.
9555         (df_set_dead_notes_for_mw): Likewise.
9556         (df_create_unused_note): Likewise.
9557         (df_simulate_find_defs): Likewise.
9558         (df_simulate_find_uses): Likewise.
9559         (df_simulate_find_noclobber_defs): Likewise.
9560         (df_simulate_defs): Likewise.
9561         (df_simulate_uses): Likewise.
9562         (df_simulate_one_insn_backwards): Likewise.
9563         (df_simulate_one_insn_forwards): Likewise.
9564         (df_md_simulate_one_insn): Likewise.
9565         * df-scan.c (df_uses_create): Likewise.
9566         (df_insn_create_insn_record): Likewise.
9567         (df_insn_delete): Likewise.
9568         (df_insn_rescan): Likewise.
9569         (df_insn_rescan_debug_internal): Likewise.
9570         (df_insn_change_bb): Likewise.
9571         (df_notes_rescan): Likewise.
9572         (df_refs_add_to_chains): Likewise.
9573         (df_insn_refs_verify): Likewise.
9574         * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
9575         when invoking df_insn_delete.
9576         (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
9577         (set_unique_reg_note): Add checked cast.
9578         * final.c (cleanup_subreg_operands): Likewise.
9579         * gcse.c (update_ld_motion_stores): Likewise, strengthening local
9580         "insn" from rtx to rtx_insn *.
9581         * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
9582         "last" from rtx to rtx_insn *.
9583         * ira-emit.c (change_regs_in_insn): New function.
9584         (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
9585         Invoke change_regs_in_insn rather than change_regs.
9586         * ira.c (update_equiv_regs): Strengthen locals "insn",
9587         "init_insn", "new_insn" from rtx to rtx_insn *.  Invoke
9588         for_each_rtx_in_insn rather than for_each_rtx.
9589         * recog.c (confirm_change_group): Add checked casts.
9590         (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
9591         Add checked cast.
9592         (peep2_fill_buffer): Add checked cast.
9593         * rtlanal.c (remove_note): Likewise.
9594         * valtrack.c (propagate_for_debug): Strengthen param "insn" and
9595         locals "next" "end" from rtx to rtx_insn *.
9597 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
9599         * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
9600         to rtx_insn *.
9601         (struct reg_use_data): Likewise for field "insn".
9602         (insn_cost): Likewise for param.
9603         (real_insn_for_shadow): Likewise for return type and param.
9604         (increase_insn_priority): Likewise for param 1.
9605         (debug_dependencies): Likewise for both params.
9607         * haifa-sched.c (insn_delay): Likewise for param "insn".
9608         (real_insn_for_shadow): Likewise for return type and param "insn".
9609         (update_insn_after_change): Likewise for param "insn".
9610         (recompute_todo_spec): Likewise for param "next" and locals "pro",
9611         "other".
9612         (insn_cost): Likewise for param "insn".
9613         (increase_insn_priority): Likewise.
9614         (calculate_reg_deaths): Likewise.
9615         (setup_insn_reg_pressure_info): Likewise.
9616         (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
9617         (model_index): Strengthen param "insn" from rtx to rtx_insn *.
9618         (model_recompute): Likewise.
9619         (must_restore_pattern_p): Likewise for param "next".
9620         (model_excess_cost): Likewise for param "insn".
9621         (queue_remove): Likewise.
9622         (adjust_priority): Likewise for param "prev".
9623         (update_register_pressure): Likewise for param "insn".
9624         (setup_insn_max_reg_pressure): Likewise for local "insn".
9625         (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
9626         (model_add_to_schedule): Likewise.
9627         (model_reset_queue_indices): Likewise for local "insn".
9628         (unschedule_insns_until): Strengthen local "recompute_vec" from
9629         auto_vec<rtx> to auto_vec<rtx_insn *>.  Strengthen locals "last",
9630         "con" from rtx to rtx_insn *.
9631         (restore_last_backtrack_point): Likewise for both locals "x". Add
9632         checked casts.
9633         (estimate_insn_tick): Likewise for param "insn".
9634         (commit_schedule): Likewise for params "prev_head", "tail" and
9635         local "x".
9636         (verify_shadows): Likewise for locals "i1", "i2".
9637         (dump_insn_stream): Likewise for params "head", "tail" and locals
9638         "next_tail", "insn".
9639         (schedule_block): Likewise for locals "insn", "x".  Add a checked
9640         cast.
9641         (fix_inter_tick): Likewise for params "head", "tail".
9642         (create_check_block_twin): Likewise for local "jump".
9643         (haifa_change_pattern): Likewise for param "insn".
9644         (haifa_speculate_insn): Likewise.
9645         (dump_new_block_header): Likewise for params "head", "tail".
9646         (fix_jump_move): Likewise for param "jump".
9647         (move_block_after_check): Likewise.
9648         (sched_init_insn_luid): Likewise for param "insn".
9649         (sched_init_luids): Likewise for local "insn".
9650         (insn_luid): Likewise for param "insn".
9651         (init_h_i_d): Likewise.
9652         (haifa_init_h_i_d): Likewise for local "insn".
9653         (haifa_init_insn): Likewise for param "insn".
9654         * sched-deps.c (add_dependence): Likewise for local "real_pro",
9655         "other".
9656         (create_insn_reg_use): Likewise for param "insn".
9657         (setup_insn_reg_uses): Likewise.  Add a checked cast.
9658         * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
9659         "tail" from rtx to rtx_insn *.
9660         * sched-rgn.c (void debug_dependencies): Likewise, also for locals
9661         "insn", "next_tail".
9663 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
9665         * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
9666         from rtx to rtx_insn *.
9667         (model_add_to_schedule): Likewise for locals "start", "end",
9668         "iter".
9670 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
9672         * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
9673         rtx_insn *.
9674         * cfgrtl.c (duplicate_insn_chain): Likewise for  params "from",
9675         "to" and locals "insn", "next", "copy".  Remove now-redundant
9676         checked cast.
9678 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
9680         * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
9681         rtx_insn * and param 4 from rtx * to rtx_insn **.
9682         (get_condition): Strengthen param 1 from rtx to rtx_insn * and
9683         param 2 from rtx * to rtx_insn **.
9685         * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
9686         rtx_insn * and final param from rtx * to rtx_insn **.
9688         * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
9689         from rtx to rtx_insn *.
9690         (try_head_merge_bb): Likewise for both locals named "move_upto".
9691         * df-problems.c (can_move_insns_across): Likewise for params
9692         "from", "to", "across_from", "across_to" and locals "insn",
9693         "next", "max_to".  Strengthen param "pmove_upto" from rtx * to
9694         rtx_insn **.
9695         * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
9696         from rtx to rtx_insn *.
9697         (noce_get_alt_condition): Strengthen param "earliest" from rtx *
9698         to rtx_insn **.  Strengthen local "insn" from rtx to rtx_insn *.
9699         (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
9700         rtx_insn *.
9701         (noce_try_abs): Likewise.
9702         (noce_get_condition): Likewise for param "jump".  Strengthen param
9703         "earliest" from rtx * to rtx_insn **.
9704         (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
9705         rtx_insn *.
9706         (find_cond_trap): Likewise.
9707         (dead_or_predicable): Likewise for local "earliest".
9708         * loop-iv.c (check_simple_exit): Likewise for local "at".  Add
9709         checked cast.
9710         * rtlanal.c (canonicalize_condition): Likewise for param "insn"
9711         and local "prev".  Strengthen param "earliest" from rtx * to
9712         rtx_insn **.
9713         (get_condition): Strengthen param "jump" from rtx to rtx_insn *
9714         Strengthen param "earliest" from rtx * to rtx_insn **.
9716 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
9718         * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
9719         "to" and local "insn" from rtx to rtx_insn *.
9721 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
9723         * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
9724         from rtx to rtx_insn *.
9725         (need_nop_to_preserve_insn_bb): Likewise for param "insn".
9726         (code_motion_path_driver): Likewise for local "last_insn".
9727         (simplify_changed_insns): Likewise for local "insn".
9729 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
9731         * rtl.h (push_to_sequence): Strengthen param from rtx to
9732         rtx_insn *.
9733         (push_to_sequence2): Likewise for both params.
9734         (delete_insns_since): Likewise for param.
9735         (reorder_insns_nobb): Likewise for all three params.
9736         (set_new_first_and_last_insn): Likewise for both params.
9738         * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
9739         rtx_insn *.  Remove now-redundant cast.
9740         (set_last_insn): Likewise.
9742         * builtins.c (expand_builtin_return): Strengthen local
9743         "call_fusage" from rtx to rtx_insn *.
9744         * cfgrtl.c (create_basic_block_structure): Likewise for local
9745         "after".
9746         * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
9747         "first", "last" and local "insn".
9748         (delete_insns_since): Likewise for param "from".
9749         (reorder_insns_nobb): Likewise for params "from", "to", "after"
9750         and local "x".
9751         (push_to_sequence): Likewise for param "first" and local "last".
9752         (push_to_sequence2): Likewise for params "first" and "last".
9753         * lra.c (emit_add3_insn): Likewise for local "last".
9754         (lra_emit_add): Likewise.
9755         * lra-constraints.c (base_to_reg): Likewise for locals "insn",
9756         "last_insn".
9757         (process_address_1): Likewise for locals "insn", last".
9758         * modulo-sched.c (ps_first_note): Likewise for return type.
9759         * optabs.c (expand_binop_directly): Likewise for param "last".
9761 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
9763         * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
9764         to rtx_insn*.
9765         * emit-rtl.c (get_last_insn_anywhere): Likewise.
9767 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
9769         * function.h (struct sequence_stack): Strengthen fields "first"
9770         and "last" from rtx to rtx_insn *.
9771         (struct emit_status): Likewise for fields "x_first_insn" and
9772         "x_last_insn".
9774         * emit-rtl.h (get_insns): Remove now-redundant checked cast.
9775         (set_first_insn): Add checked cast.
9776         (get_last_insn): Remove now-redundant checked cast.
9777         (set_last_insn): Add checked cast.
9779         * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
9780         "saved_first" and "saved_last" from rtx to rtx_insn *.
9782 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
9784         * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
9785         (unlink_insn_chain): Strengthen both params from rtx to
9786         rtx_insn *.
9788         * cfgrtl.c (cfg_layout_function_header): Likewise for this
9789         variable.
9790         (unlink_insn_chain): Likewise for params "first" and "last".
9791         Remove now-redundant checked cast.
9792         (record_effective_endpoints): Replace use of NULL_RTX with NULL.
9793         (fixup_reorder_chain): Strengthen local "insn" from rtx to
9794         rtx_insn *.
9795         * emit-rtl.c (link_insn_into_chain): Likewise for all three
9796         params.
9797         (add_insn): Likewise for param "insn" and local "prev".
9798         (add_insn_after_nobb): Likewise for both params and local "next".
9799         (add_insn_before_nobb): Likewise for both params and local "prev".
9800         (add_insn_after): Rename param "after" to "uncast_after",
9801         introducing local "after" with another checked cast.
9802         (add_insn_before): Rename params "insn" and "before", giving them
9803         "uncast_" prefixes, adding the old names back using checked casts.
9804         (emit_note_after): Likewise for param "after".
9805         (emit_note_before): Likewise for param "before".
9806         (emit_label): Add a checked cast.
9808 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
9810         * cselib.h (cselib_record_sets_hook):  Strengthen initial param
9811         "insn" from rtx to rtx_insn *.
9813         * cselib.c (cselib_record_sets_hook): Likewise.
9815         * var-tracking.c (add_with_sets): Likewise, renaming back from
9816         "uncast_insn" to "insn" and eliminating the checked cast from rtx
9817         to rtx_insn *.
9819 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
9821         * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
9822         and "header_" from rtx to rtx_insn *.
9823         (struct basic_block_d): Likewise for field "head_" within "x"
9824         field of union basic_block_il_dependent.
9825         (BB_HEAD): Drop function...
9826         (SET_BB_HEAD): ...and this function in favor of...
9827         (BB_HEAD): ...reinstate macro.
9828         (BB_END): Drop function...
9829         (SET_BB_END): ...and this function in favor of...
9830         (BB_END): ...reinstate macro.
9831         (BB_HEADER): Drop function...
9832         (SET_BB_HEADER): ...and this function in favor of...
9833         (BB_HEADER): ...reinstate macro.
9835         * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
9836         (fix_crossing_unconditional_branches): Likewise.
9837         * caller-save.c (save_call_clobbered_regs): Likewise.
9838         (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
9839         * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
9840         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
9841         (merge_blocks_move_successor_nojumps): Likewise.
9842         (outgoing_edges_match): Update use of for_each_rtx to
9843         for_each_rtx_in_insn.
9844         * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
9845         (expand_gimple_cond): Likewise.
9846         (expand_gimple_tailcall): Likewise.
9847         (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
9848         SET_BB_END.
9849         (construct_exit_block): Drop use of SET_BB_END.
9850         * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
9851         rtx_insn *.
9852         (delete_insn): Rename param "insn" to "uncast_insn", introducing
9853         a new local "insn" with a checked cast to rtx_insn *.  Drop use of
9854         SET_BB_HEAD and SET_BB_END.
9855         (create_basic_block_structure): Drop use of SET_BB_HEAD and
9856         SET_BB_END.
9857         (rtl_delete_block): Drop use of SET_BB_HEAD.
9858         (rtl_split_block): Drop use of SET_BB_END.
9859         (emit_nop_for_unique_locus_between): Likewise.
9860         (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
9861         (block_label): Drop use of SET_BB_HEAD.
9862         (fixup_abnormal_edges): Drop use of SET_BB_END.
9863         (record_effective_endpoints): Drop use of SET_BB_HEADER.
9864         (relink_block_chain): Likewise.
9865         (fixup_reorder_chain): Drop use of SET_BB_END.
9866         (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
9867         (cfg_layout_delete_block): Strengthen local "to" from rtx * to
9868         rtx_insn **.  Drop use of SET_BB_HEADER.
9869         (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
9870         SET_BB_HEAD.
9871         (BB_HEAD): Delete this function.
9872         (SET_BB_HEAD): Likewise.
9873         (BB_END): Likewise.
9874         (SET_BB_END): Likewise.
9875         (BB_HEADER): Likewise.
9876         (SET_BB_HEADER): Likewise.
9877         * emit-rtl.c (add_insn_after):  Rename param "insn" to
9878         "uncast_insn", adding a new local "insn" and a checked cast to
9879         rtx_insn *.  Drop use of SET_BB_END.
9880         (remove_insn): Strengthen locals "next" and "prev" from rtx to
9881         rtx_insn *.  Drop use of SET_BB_HEAD and SET_BB_END.
9882         (reorder_insns): Drop use of SET_BB_END.
9883         (emit_insn_after_1): Strengthen param "first" and locals "last",
9884         "after_after" from rtx to rtx_insn *.  Drop use of SET_BB_END.
9885         (emit_pattern_after_noloc): Add checked cast.
9886         * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
9887         (restore_other_notes): Likewise.
9888         (move_insn): Likewise.
9889         (sched_extend_bb): Likewise.
9890         (fix_jump_move): Likewise.
9891         * ifcvt.c (noce_process_if_block): Likewise.
9892         (dead_or_predicable): Likewise.
9893         * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
9894         * reg-stack.c (change_stack): Drop use of SET_BB_END.
9895         * sel-sched-ir.c (sel_move_insn): Likewise.
9896         * sel-sched.c (move_nop_to_previous_block): Likewise.
9898         * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
9899         SET_BB_END.
9900         * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
9902 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
9904         * basic-block.h (create_basic_block_structure): Strengthen params
9905         1 "head" and 2 "end" from rtx to rtx_insn *.
9906         * cfgrtl.c (create_basic_block_structure): Likewise.
9907         (rtl_create_basic_block): Update casts from void * to rtx to
9908         rtx_insn *, so that we can pass them as rtx_insn * to
9909         create_basic_block_structure.
9910         * sel-sched-ir.c (sel_create_basic_block): Likewise.
9912 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
9914         * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
9915         rtx_insn **.
9916         (check_for_inc_dec): Strengthen param "insn" from rtx to
9917         rtx_insn *.
9919         * cselib.h (cselib_process_insn): Likewise.
9921         * cselib.c (cselib_record_sets): Likewise.
9922         (cselib_process_insn): Likewise.
9924         * dse.c (struct insn_info): Likewise for field "insn".
9925         (check_for_inc_dec_1): Likewise for local "insn".
9926         (check_for_inc_dec): Likewise for param "insn".
9927         (scan_insn): Likewise.
9928         (dse_step1): Likewise for local "insn".
9930         * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
9931         rtx_insn **.  Use for_each_rtx_in_insn rather than for_each_rtx.
9933 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
9935         * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
9936         from rtx to rtx_insn *.
9937         (DEP_PRO): Delete this function and...
9938         (SET_DEP_PRO): ...this function in favor of...
9939         (DEP_PRO): ...reinstate this macro.
9940         (DEP_CON): Delete this function and...
9941         (SET_DEP_CON): ...this function in favor of...
9942         (DEP_CON): ...reinstate this old macro.
9943         (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
9944         (init_dep): Likewise.
9945         (set_priorities): Likewise for both params.
9946         (sd_copy_back_deps): Likewise for params 1 and 2.
9948         * haifa-sched.c (priority): Likewise for param "insn" and local
9949         "next".
9950         (set_priorities): Likewise for params "head" and "tail" and local
9951         "insn".
9952         (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
9953         local "consumer".
9954         (add_to_speculative_block): Add a checked cast.
9955         (create_check_block_twin): Drop use of SET_DEP_CON.
9956         (add_jump_dependencies): Strengthen params "insn" and "jump" from
9957         rtx to rtx_insn *.
9959         * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
9960         Drop use of SET_DEP_PRO
9961         (init_dep): Strengthen params "pro" and "con" from rtx to
9962         rtx_insn *.
9963         (sd_copy_back_deps): Likewise for params "to" and "from".  Drop
9964         use of SET_DEP_CON.
9965         (DEP_PRO): Delete.
9966         (DEP_CON): Delete.
9967         (SET_DEP_PRO): Delete.
9968         (SET_DEP_CON): Delete.
9970 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
9972         * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
9973         from rtx to rtx_insn *.
9974         (VINSN_INSN_RTX): Eliminate rvalue function and...
9975         (SET_VINSN_INSN): ...lvalue function in favor of...
9976         (VINSN_INSN_RTX): reinstate this old macro.
9978         * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
9979         in favor of VINSN_INSN_RTX.
9980         (VINSN_INSN_RTX): Delete this function.
9981         (SET_VINSN_INSN_RTX): Likewise.
9983 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
9985         * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
9986         (BND_TO): Delete this function and...
9987         (SET_BND_TO): ...this functions in favor of...
9988         (BND_TO): ...reinstating this macro.
9989         (struct _fence): Strengthen field "executing_insns" from
9990         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.  Strengthen fields
9991         "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
9992         (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
9993         and param "insn" from rtx to insn_t.
9994         (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
9995         rtx_insn *.
9997         * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
9998         vec<rtx_insn *> .
9999         (rtx_vec_t): Likewise.
10000         (struct sched_deps_info_def): Strengthen param of "start_insn"
10001         callback from rtx to rtx_insn *.  Likewise for param "insn2" of
10002         "note_mem_dep" callback and first param of "note_dep" callback.
10004         * haifa-sched.c (add_to_speculative_block): Strengthen param
10005         "insn" from rtx to rtx_insn *.
10006         (clear_priorities): Likewise.
10007         (calc_priorities): Likewise for local "insn".
10009         * sched-deps.c (haifa_start_insn): Likewise for param "insn".
10010         Remove redundant checked cast.
10011         (haifa_note_mem_dep): Likewise for param "pending_insn".
10012         (haifa_note_dep): Likewise for param "elem".
10013         (note_mem_dep): Likewise for param "e".
10014         (sched_analyze_1): Add checked casts.
10015         (sched_analyze_2): Likewise.
10017         * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
10018         from rtx to rtx_insn *.
10019         (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
10020         from vec<rtx> * to vec<rtx_insn *> *.
10022         * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
10023         scaffolding.
10024         (flist_add): Strengthen param "executing_insns" from
10025         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
10026         (advance_deps_context): Remove now-redundant checked cast.
10027         (init_fences): Replace uses of NULL_RTX with NULL.
10028         (merge_fences): Strengthen params "last_scheduled_insn" and
10029         "sched_next" from rtx to rtx_insn * and "executing_insns" from
10030         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
10031         (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
10032         (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
10033         an instruction, rather than doing double-duty as a pattern.
10034         (return_nop_to_pool): Update for change of insn_t.
10035         (deps_init_id): Remove now-redundant checked cast.
10036         (struct sched_scan_info_def): Strengthen param of "init_insn"
10037         callback from rtx to insn_t.
10038         (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
10039         (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
10040         NULL.
10041         (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
10042         "end" from rtx to rtx_insn *.
10043         (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
10044         (rtx insn_rtx, bool force_unique_p)
10045         (BND_TO): Delete function.
10046         (SET_BND_TO): Delete function.
10048         * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
10049         rtx to rtx_insn *.
10050         (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
10051         (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
10052         rtx to rtx_insn *.
10053         (undo_transformations): Likewise for param "insn".
10054         (update_liveness_on_insn): Likewise.
10055         (compute_live_below_insn): Likewise for param "insn" and local
10056         "succ".
10057         (update_data_sets): Likewise for param "insn".
10058         (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
10059         (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
10060         (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
10061         rtx_insn *.
10062         (move_cond_jump): Likewise for param "insn".
10063         (move_cond_jump): Drop use of SET_BND_TO.
10064         (compute_av_set_on_boundaries): Likewise.
10065         (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
10066         (update_and_record_unavailable_insns): Strengthen local "bb_end"
10067         from rtx to rtx_insn *.
10068         (maybe_emit_renaming_copy): Likewise for param "insn".
10069         (maybe_emit_speculative_check): Likewise.
10070         (handle_emitting_transformations): Likewise.
10071         (remove_insn_from_stream): Likewise.
10072         (code_motion_process_successors): Strengthen local "succ" from rtx
10073         to insn_t.
10075 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10077         * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
10078         ilist_t, not _xlist_t;
10079         (ILIST_INSN): Define in terms of new union field "insn".
10080         (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
10081         _XLIST_NEXT.
10082         (struct _list_node): Add new field "insn" to the union, of type
10083         insn_t.
10084         (ilist_add): Replace macro with an inline function, requiring an
10085         insn_t.
10086         (ilist_remove): Define this macro directly in terms of
10087         _list_remove, rather than indirectly via _xlist_remove.
10088         (ilist_clear): Likewise, in terms of _list_clear rather than
10089         _xlist_clear.
10090         (ilist_is_in_p): Replace macro with an inline function, requiring
10091         an insn_t.
10092         (_list_iter_cond_insn): New function.
10093         (ilist_iter_remove): Define this macro directly in terms of
10094         _list_iter_remove, rather than indirectly via _xlist_iter_remove.
10095         (ilist_iterator): Define directly in terms of _list_iterator
10096         rather than indirectly through _xlist_iterator.
10097         (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
10098         than in terms of _FOR_EACH_X.
10099         (FOR_EACH_INSN_1): Likewise.
10101 2014-08-26  Joseph Myers  <joseph@codesourcery.com>
10103         PR target/60606
10104         PR target/61330
10105         * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
10106         DECL_HARD_REGISTER and return for invalid register specifications.
10107         * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
10108         DECL_HARD_REGISTER, call expand_one_error_var.
10109         * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
10110         CC_REGNUM with non-MODE_CC modes.
10111         (arm_regno_class): Return NO_REGS for PC_REGNUM.
10113 2014-08-26  Marek Polacek  <polacek@redhat.com>
10115         PR c/61271
10116         * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
10118 2014-08-26  Evandro Menezes <e.menezes@samsung.com>
10120         * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
10121         qi cost; add di cost.
10122         (cortexa57_addrcost_table): Likewise.
10124 2014-08-26  Marek Polacek  <polacek@redhat.com>
10126         PR c/61271
10127         * expr.c (is_aligning_offset): Remove logical not.
10129 2014-08-26  Marek Polacek  <polacek@redhat.com>
10131         PR c/61271
10132         * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
10133         LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
10135 2014-08-26  Richard Biener  <rguenther@suse.de>
10137         PR tree-optimization/62175
10138         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
10139         expand possibly trapping operations.
10141 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10143         * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
10144         "insn" from rtx to rtx_insn *.
10145         (permute_load): Likewise for param "insn".
10146         (permute_store): Likewise.
10147         (handle_special_swappables): Likewise for local "insn".
10148         (replace_swap_with_copy): Likewise for locals "insn" and
10149         "new_insn".
10150         (rs6000_analyze_swaps): Likewise for local "insn".
10152 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10154         * regrename.h (struct du_chain): Strengthen field "insn" from rtx
10155         to rtx_insn *.
10157 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10159         * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
10160         "note_list" from rtx to rtx_insn *.
10161         (BB_NOTE_LIST): Replace this function and...
10162         (SET_BB_NOTE_LIST): ...this function with...
10163         (BB_NOTE_LIST): ...the former macro implementation.
10165         * sched-int.h (concat_note_lists): Strengthen param "from_end" and
10166         local "from_start" from rtx to rtx_insn *.  Strengthen param
10167         "to_endp" from rtx * to rtx_insn **.
10169         * haifa-sched.c (concat_note_lists): Likewise.
10170         * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
10171         BB_NOTE_LIST.
10172         (sel_restore_notes): Likewise.
10173         (move_bb_info): Likewise.
10174         (BB_NOTE_LIST): Delete this function.
10175         (SET_BB_NOTE_LIST): Delete this function.
10176         * sel-sched.c (create_block_for_bookkeeping): Eliminate
10177         SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
10179 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10181         * target.def (reorder): Strengthen param "ready" of this DEFHOOK
10182         from rtx * to rtx_insn **.
10183         (reorder2): Likewise.
10184         (dependencies_evaluation_hook): Strengthen params "head", "tail"
10185         from rtx to rtx_insn *.
10187         * doc/tm.texi: Update mechanically for above change to target.def.
10189         * sched-int.h (note_list): Strengthen this variable from rtx to
10190         rtx_insn *.
10191         (remove_notes): Likewise for both params.
10192         (restore_other_notes): Likewise for return type and first param.
10193         (struct ready_list): Strengthen field "vec" from rtx * to
10194         rtx_insn **.
10195         (struct dep_replacement): Strenghten field "insn" from rtx to
10196         rtx_insn *.
10197         (struct deps_desc): Likewise for fields "last_debug_insn",
10198         "last_args_size".
10199         (struct haifa_sched_info): Likewise for callback field
10200         "can_schedule_ready_p"'s param, for first param of "new_ready"
10201         callback field, for both params of "rank" callback field, for
10202         first field of "print_insn" callback field (with a const), for
10203         both params of "contributes_to_priority" callback, for param
10204         of "insn_finishes_block_p" callback, for fields "prev_head",
10205         "next_tail", "head", "tail", for first param of "add_remove_insn"
10206         callback, for first param of "begin_schedule_ready" callback, for
10207         both params of "begin_move_insn" callback, and for second param
10208         of "advance_target_bb" callback.
10209         (add_dependence): Likewise for params 1 and 2.
10210         (sched_analyze): Likewise for params 2 and 3.
10211         (deps_analyze_insn): Likewise for param 2.
10212         (ready_element): Likewise for return type.
10213         (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
10214         (try_ready): Strenghten param from rtx to rtx_insn *.
10215         (sched_emit_insn): Likewise for return type.
10216         (record_delay_slot_pair): Likewise for params 1 and 2.
10217         (add_delay_dependencies): Likewise for param.
10218         (contributes_to_priority): Likewise for both params.
10219         (find_modifiable_mems): Likewise.
10221         * config/arm/arm.c (cortexa7_sched_reorder):  Strengthen param
10222         "ready" from rtx * to rtx_insn **.  Strengthen locals "insn",
10223         "first_older_only_insn" from rtx to rtx_insn *.
10224         (arm_sched_reorder):  Strengthen param "ready"  from rtx * to
10225         rtx_insn **.
10227         * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
10228         "last_scheduled_iter0" from rtx to rtx_insn *.
10229         (init_sched_state): Replace use of NULL_RTX with NULL for insn.
10230         (c6x_sched_reorder_1): Strengthen param "ready" and locals
10231         "e_ready", "insnp" from rtx * to rtx_insn **.  Strengthen local
10232         "insn" from rtx to rtx_insn *.
10233         (c6x_sched_reorder): Strengthen param "ready" from rtx * to
10234         rtx_insn **.
10235         (c6x_sched_reorder2): Strengthen param "ready" and locals
10236         "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
10237         "insn" from rtx to rtx_insn *.
10238         (c6x_variable_issue):  Add a checked cast when assigning from insn
10239         to ss.last_scheduled_iter0.
10240         (split_delayed_branch): Strengthen param "insn" and local "i1"
10241         from rtx to rtx_insn *.
10242         (split_delayed_nonbranch): Likewise.
10243         (undo_split_delayed_nonbranch): Likewise for local "insn".
10244         (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
10245         "entry_after", "end_packet", "head_insn", "tail_insn",
10246         "new_insns", "last_insn", "this_iter", "prev_stage_insn".
10247         Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
10248         to rtx_insn **.  Remove now-redundant checked cast on last_insn,
10249         but add a checked cast on loop->start_label.  Consolidate calls to
10250         avoid assigning result of gen_spkernel to "insn", now an
10251         rtx_insn *.
10253         * config/i386/i386.c (do_reorder_for_imul): Strengthen param
10254         "ready" from rtx * to rtx_insn **.  Strengthen local "insn" from
10255         rtx to rtx_insn *.
10256         (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
10257         rtx_insn **.  Strengthen locals "top", "next" from rtx to
10258         rtx_insn *.
10259         (ix86_sched_reorder): Strengthen param "ready" from rtx * to
10260         rtx_insn **.  Strengthen local "insn" from rtx to rtx_insn *.
10261         (add_parameter_dependencies): Strengthen params "call", "head" and
10262         locals "insn", "last", "first_arg" from rtx to rtx_insn *.
10263         (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
10264         (add_dependee_for_func_arg): Likewise for param "arg" and local
10265         "insn".
10266         (ix86_dependencies_evaluation_hook): Likewise for params "head",
10267         "tail" and locals "insn", "first_arg".
10269         * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
10270         for params "head", "tail" and locals "insn", "next", "next_tail".
10271         (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
10272         "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
10273         "insn", "lowest", "highest" from rtx to rtx_insn *.
10274         (ia64_sched_reorder): Strengthen param "ready" from rtx * to
10275         rtx_insn **.
10276         (ia64_sched_reorder2): Likewise.
10278         * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
10279         and local "insn" from rtx to rtx_insn *.  Strengthen param "ready"
10280         from rtx * to rtx_insn **.
10281         (mep_move_ready_insn): Strengthen param "ready" from rtx * to
10282         rtx_insn **.
10283         (mep_print_sched_insn): Strengthen param "insn" from rtx to
10284         rtx_insn *.
10285         (mep_sched_reorder): Strengthen param "ready" from rtx * to
10286         rtx_insn **.  Strengthen locals "core_insn", "cop_insn" from rtx
10287         to rtx_insn *.
10289         * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
10290         from rtx * to rtx_insn **.  Strengthen local "new_head" from rtx
10291         to rtx_insn *.
10292         (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
10293         rtx_insn **.  Strengthen local "temp" from rtx to rtx_insn *.
10294         (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
10295         rtx_insn **.
10296         (vr4130_reorder): Likewise.
10297         (mips_74k_agen_reorder): Likewise.  Strengthen local "insn" from
10298         rtx to rtx_insn *.
10299         (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
10300         rtx_insn **.
10301         (mips_sched_reorder): Likewise.
10302         (mips_sched_reorder2): Likewise.
10304         * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
10306         * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
10307         Strengthen local "tmp" from rtx to rtx_insn *.
10308         (rs6000_sched_reorder2): Likewise.
10310         * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
10311         Likewise.  Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
10312         (s390_sched_reorder): Strengthen param "ready" from rtx * to
10313         rtx_insn **.  Strengthen local "tmp" from rtx to rtx_insn *.
10315         * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
10316         "tmp2" from rtx to rtx_insn *.
10317         (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
10318         Strengthen local "insn" from rtx to rtx_insn *.
10319         (ready_reorder): Strengthen param "ready" from rtx * to
10320         rtx_insn **.  Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
10321         (sh_reorder):  Strengthen param "ready" from rtx * to rtx_insn **.
10322         (sh_reorder2): Likewise.
10324         * config/spu/spu.c (spu_sched_reorder): Likewise.  Strengthen
10325         local "insn" from rtx to rtx_insn *.
10327         * haifa-sched.c (note_list): Strengthen this variable from rtx to
10328         rtx_insn *.
10329         (scheduled_insns): Strengthen this variable from vec<rtx> to
10330         vec<rtx_insn *>.
10331         (set_modulo_params): Likewise for locals "i1", "i2".
10332         (record_delay_slot_pair): Likewise for params "i1", "i2".
10333         (add_delay_dependencies): Likewise for param "insn".
10334         (cond_clobbered_p): Likewise.
10335         (recompute_todo_spec): Likewise for local "prev".
10336         (last_scheduled_insn): Likewise for this variable.
10337         (nonscheduled_insns_begin): Likewise.
10338         (model_set_excess_costs): Strengthen param "insns" from rtx * to
10339         rtx_insn **.
10340         (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
10341         rtx_insn *.
10342         (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
10343         Strengthen local "insn" from rtx to rtx_insn *.
10344         (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
10345         (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
10346         (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
10347         (ready_remove_first): Likewise for return type and local "t".
10348         (ready_element): Likewise for return type.
10349         (ready_remove): Likewise for return type and local "t".
10350         (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
10351         (check_clobbered_conditions): Strengthen local "x" from rtx to
10352         rtx_insn *, adding a checked cast.
10353         (schedule_insn): Likewise for param "insn".
10354         (remove_notes): Likewise for params "head", "tail" and locals
10355         "next_tail", "insn", "next".
10356         (struct haifa_saved_data): Likewise for fields
10357         "last_scheduled_insn", "nonscheduled_insns_begin".
10358         (save_backtrack_point): Update for change to field "vec" of
10359         struct ready_list.
10360         (toggle_cancelled_flags): Strengthen local "first" from rtx * to
10361         rtx_insn **.
10362         (restore_last_backtrack_point): Likewise.  Strengthen local "insn"
10363         from rtx to rtx_insn *
10364         (resolve_dependencies): Strengthen param "insn" from rtx to
10365         rtx_insn *
10366         (restore_other_notes): Likewise for return type, for param "head"
10367         and local "note_head".
10368         (undo_all_replacements): Likewise for local "insn".
10369         (first_nonscheduled_insn): Likewise for return type and local "insn".
10370         (queue_to_ready): Likewise for local "insn", adding checked casts.
10371         (early_queue_to_ready): Likewise for local "insn".
10372         (debug_ready_list_1): Strengthen local "p" from rtx * to
10373         rtx_insn **.
10374         (move_insn): Strengthen param "insn" and local "note" from rtx to
10375         rtx_insn *
10376         (insn_finishes_cycle_p): Likewise for param "insn".
10377         (max_issue): Likewise for local "insn".
10378         (choose_ready): Likewise.  Strengthen param "insn_ptr" from rtx *
10379         to rtx_insn **.
10380         (commit_schedule): Strengthen param "prev_head" and local "insn"
10381         from rtx to rtx_insn *
10382         (prune_ready_list): Likewise for local "insn".
10383         (schedule_block): Likewise for locals "prev_head", "head", "tail",
10384         "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
10385         (set_priorities): Likewise for local "prev_head".
10386         (try_ready): Likewise for param "next".
10387         (fix_tick_ready): Likewise.
10388         (change_queue_index): Likewise.
10389         (sched_extend_ready_list): Update for change to field "vec" of
10390         struct ready_list.
10391         (generate_recovery_code): Strengthen param "insn" from rtx to
10392         rtx_insn *.
10393         (begin_speculative_block): Likewise.
10394         (create_check_block_twin): Likewise for param "insn" and locals
10395         "label", "check", "twin".  Introduce local "check_pat" to avoid
10396         "check" being used as a plain rtx before being used as an insn.
10397         (fix_recovery_deps): Add a checked cast to rtx_insn * when
10398         extracting elements from ready_list.
10399         (sched_remove_insn): Strengthen param "insn" from rtx to
10400         rtx_insn *.
10401         (sched_emit_insn): Likewise for return type.
10402         (ready_remove_first_dispatch): Likewise for return type and local
10403         "insn".
10405         * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
10407         * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
10408         const rtx_insn *.
10410         * sched-deps.c (add_dependence): Strengthen params "con", "pro"
10411         from rtx to rtx_insn *.
10412         (add_dependence_list): Likewise for param "insn".  Add a checked
10413         cast.
10414         (add_dependence_list_and_free): Strengthen param "insn" from rtx
10415         to rtx_insn *.  Strengthen param "list_p" from rtx * to
10416         rtx_insn **.
10417         (chain_to_prev_insn): Strengthen param "insn" and locals
10418         "prec_nonnote", "i" from rtx to rtx_insn *.
10419         (flush_pending_lists): Likewise for param "insn".
10420         (cur_insn): Likewise for this variable.
10421         (haifa_start_insn): Add a checked cast.
10422         (note_dep): Strengthen param "e" from rtx to rtx_insn *.
10423         (sched_analyze_reg): Likewise for param "insn".
10424         (sched_analyze_1): Likewise.
10425         (sched_analyze_2): Likewise.  Add checked casts.
10426         (sched_analyze_insn): Likewise.  Also for local "prev".
10427         (deps_analyze_insn): Likewise for param "insn".
10428         (sched_analyze): Likewise for params "head", "tail" and local "insn".
10429         (add_dependence_1): Likewise for params "insn", "elem".
10430         (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
10431         (parse_add_or_inc): Likewise for param "insn".
10432         (find_inc): Likewise for local "inc_cand".
10433         (find_modifiable_mems): Likewise for params "head", "tail" and
10434         locals "insn", "next_tail".
10436         * sched-ebb.c (init_ready_list): Likewise for local "insn".
10437         (begin_schedule_ready): Likewise for param "insn".
10438         (begin_move_insn): Likewise for params "insn" and "last".
10439         (ebb_print_insn): Strengthen param "insn" from const_rtx to
10440         const rtx_insn *.
10441         (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
10442         (ebb_contributes_to_priority): Likewise for params "next", "insn".
10443         (ebb_add_remove_insn): Likewise for param "insn".
10444         (advance_target_bb): Likewise.
10446         * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
10447         "insn".
10448         (check_live): Likewise for param "insn".
10449         (init_ready_list): Likewise for local "insn".
10450         (can_schedule_ready_p): Likewise for param "insn".
10451         (begin_schedule_ready): Likewise.
10452         (new_ready): Likewise for param "next".
10453         (rgn_print_insn): Likewise for param "insn".
10454         (rgn_rank): Likewise for params "insn1", "insn2".
10455         (contributes_to_priority): Likewise for params "next", "insn".
10456         (rgn_insn_finishes_block_p): Likewise for param "insn".
10457         (add_branch_dependences): Likewise for params "head", "tail" and
10458         locals "insn", "last".
10459         (rgn_add_remove_insn): Likewise for param "insn".
10460         (advance_target_bb): Likewise.
10462         * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
10463         const_rtx to const rtx_insn *.
10465         * sel-sched-dump.h (sel_print_insn): Likewise.
10467         * sel-sched-ir.c (advance_deps_context): Add a checked cast.
10468         (deps_init_id): Likewise.
10470         * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
10471         (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
10472         rtx_insn **.
10474 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10476         * output.h (final_start_function): Strengthen param 1 from rtx to
10477         rtx_insn *.
10479         * final.c (final_start_function): Likewise, renaming back from
10480         "uncast_first" to "first", and dropping the checked cast from rtx
10481         to rtx_insn *.
10483 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10485         * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
10486         * final.c (final): Likewise.  Rename param back from
10487         "uncast_first" to "first" and eliminate the checked cast from rtx
10488         to rtx_insn *.
10490 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10492         * output.h (shorten_branches): Strengthen param from rtx to
10493         rtx_insn *.
10495         * final.c (shorten_branches): Likewise, renaming param back from
10496         "uncast_first" to "first", and dropping the checked cast from rtx
10497         to rtx_insn *.
10499         * genattr.c (gen_attr): Likewise when writing out the prototype of
10500         shorten_branches.
10502 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10504         * sched-int.h (struct haifa_sched_info): Strengthen fields
10505         "prev_head" and "next_tail" from rtx to rtx_insn *.
10507 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10509         * rtl.h (rtx_jump_table_data::get_labels): New method.
10510         * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
10511         with use of the new rtx_jump_table_data::get_labels method.
10512         (purge_dead_tablejump_edges): Strengthen param "table" from rtx
10513         to rtx_jump_table_data *.  Simplify by using get_labels method.
10514         * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
10515         a dyn_cast, introducing local "table", using it to replace
10516         label-lookup logic with a get_labels method call.
10517         (patch_jump_insn): Simplify using get_labels method.
10518         * dwarf2cfi.c (create_trace_edges): Likewise.
10519         * rtlanal.c (label_is_jump_target_p): Likewise.
10521 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10523         * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
10524         to rtx_insn *.
10526         * emit-rtl.c (unshare_all_rtl_1): Likewise.
10527         (unshare_all_rtl_again): Likewise, also for local "p".
10529 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10531         * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
10532         to rtx_insn *.
10533         * cfgrtl.c (delete_insn_and_edges): Likewise.
10535 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10537         * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
10538         from rtx to rtx_insn *.
10540         * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
10542 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10544         * function.c (thread_prologue_and_epilogue_insns): Likewise for
10545         locals "returnjump", "epilogue_end", "insn", "next".
10547         * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
10548         "returnjump" from rtx * to rtx_insn **.
10549         * shrink-wrap.c (get_unconverted_simple_return): Likewise.
10551 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10553         * basic-block.h (struct edge_def). Strengthen "r" within
10554         union edge_def_insns from rtx to rtx_insn *.
10556         * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
10557         from rtx to rtx_insn *.  Strengthen local "insns" from rtx to
10558         rtx_insn *.
10559         * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
10560         from rtx to rtx_insn *.
10561         * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
10562         rtx_insn *.
10563         * postreload-gcse.c (reg_killed_on_edge): Likewise.
10564         (reg_used_on_edge): Likewise.
10565         * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
10566         (gt_pch_nx): New overload for rtx_insn *&.
10567         * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
10568         from rtx to rtx_insn *.
10570 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10572         * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
10573         from rtx to rtx_insn *.
10574         (BB_FOOTER): Replace function with access macro.
10575         (SET_BB_FOOTER): Delete.
10577         * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
10578         with BB_FOOTER.
10579         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
10580         (emit_barrier_after_bb): Likewise.
10581         (record_effective_endpoints): Likewise.
10582         (relink_block_chain): Likewise.
10583         (fixup_fallthru_exit_predecessor): Likewise.
10584         (cfg_layout_duplicate_bb): Likewise.
10585         (cfg_layout_split_block): Likewise.
10586         (cfg_layout_delete_block): Likewise.
10587         (cfg_layout_merge_blocks): Likewise.
10588         (BB_FOOTER): Delete function.
10589         (SET_BB_FOOTER): Delete function.
10590         * combine.c (update_cfg_for_uncondjump): Replace uses of
10591         SET_BB_FOOTER with BB_FOOTER.
10593 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10595         * except.h (struct eh_landing_pad_d): Strengthen field
10596         "landing_pad" from rtx to rtx_code_label *.
10598         * except.c (sjlj_emit_dispatch_table): Likewise for param
10599         "dispatch_label"
10600         (sjlj_build_landing_pads): Likewise for local "dispatch_label".
10602 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10604         * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
10605         first param from rtx to rtx_insn *.
10606         * config/xtensa/xtensa.c (struct machine_function): Likewise for
10607         field "set_frame_ptr_insn".
10608         (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
10609         "csend" from rtx to rtx_code_label *.
10610         (xtensa_expand_atomic): Likewise for local "csloop".
10611         (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
10612         rtx_insn *.
10613         (xtensa_call_tls_desc): Likewise for return type and locals
10614         "call_insn", "insns".
10615         (xtensa_legitimize_tls_address): Likewise for local "insns".
10616         (xtensa_expand_prologue): Likewise for locals "insn", "first".
10618 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10620         * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
10621         first param from rtx to rtx_insn *.
10622         * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
10623         "insn".
10625 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10627         * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
10628         Strengthen param 1 from rtx to rtx_insn *.
10629         (tilepro_output_cbranch): Likewise.
10630         (tilepro_adjust_insn_length): Likewise.
10631         (tilepro_final_prescan_insn): Likewise for sole param.
10633         * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
10634         Likewise for local "last".
10635         (cbranch_predicted_p): Likewise for param "insn".
10636         (tilepro_output_simple_cbranch_with_opcode): Likewise.
10637         (tilepro_output_cbranch_with_opcode): Likewise.
10638         (tilepro_output_cbranch): Likewise.
10639         (frame_emit_load): Likewise for return type and locals "seq",
10640         "insn".
10641         (emit_sp_adjust): Likewise for return type and local "insn".
10642         (tilepro_expand_epilogue): Likewise for locals "last_insn",
10643         "insn".
10644         (tilepro_adjust_insn_length): Likewise for param "insn".
10645         (next_insn_to_bundle): Likewise for return type and params
10646         "r", "end".
10647         (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
10648         (replace_pc_relative_symbol_ref): Likewise for param "insn" and
10649         local "new_insns".
10650         (match_addli_pcrel): Likewise for param "insn".
10651         (replace_addli_pcrel): Likewise.
10652         (match_auli_pcrel): Likewise.
10653         (replace_auli_pcrel): Likewise.
10654         (tilepro_fixup_pcrel_references): Likewise for locals "insn",
10655         "next_insn".
10656         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
10657         "queue", "next_queue", "prev".
10658         (tilepro_asm_output_mi_thunk): Likewise for local "insn".
10659         (tilepro_final_prescan_insn): Likewise for param "insn".
10661 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10663         * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
10664         Strengthen param 1 from rtx to rtx_insn *.
10665         (tilegx_output_cbranch): Likewise.
10666         (tilegx_adjust_insn_length): Likewise.
10667         (tilegx_final_prescan_insn): Likewise for sole param.
10669         * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
10670         or local "last".
10671         (cbranch_predicted_p): Likewise for param "insn".
10672         (tilegx_output_simple_cbranch_with_opcode): Likewise.
10673         (tilegx_output_cbranch_with_opcode): Likewise.
10674         (tilegx_output_cbranch): Likewise.
10675         (frame_emit_load): Likewise for return type.
10676         (set_frame_related_p): Likewise for locals "seq", "insn".
10677         (emit_sp_adjust): Likewise for return type, and for local "insn".
10678         Introduce local "pat" for use in place of "insn" where the latter
10679         isn't an instruction.
10680         (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
10681         from rtx to rtx_insn *.
10682         (tilegx_adjust_insn_length): Likewise for param "insn".
10683         (next_insn_to_bundle): Likewise for return type and params "r" and
10684         "end".
10685         (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
10686         "end".
10687         (replace_insns): Likewise for params "old_insn", "new_insns".
10688         (replace_mov_pcrel_step1): Likewise for param "insn" and local
10689         "new_insns".
10690         (replace_mov_pcrel_step2): Likewise.
10691         (replace_mov_pcrel_step3): Likewise.
10692         (tilegx_fixup_pcrel_references): Likewise for locals "insn",
10693         "next_insn".
10694         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
10695         "queue", "next_queue", "prev".
10696         (tilegx_output_mi_thunk): Likewise for local "insn".
10697         (tilegx_final_prescan_insn): Likewise for param "insn".
10699 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10701         * config/spu/spu.c (frame_emit_store): Strengthen return type from
10702         rtx to rtx_insn *.
10703         (frame_emit_load): Likewise.
10704         (frame_emit_add_imm): Likewise, also for local "insn".
10705         (spu_expand_prologue): Likewise for local "insn".
10706         (struct spu_bb_info): Likewise for field "prop_jump".
10707         (emit_nop_for_insn): Likewise for param "insn" and local
10708         "new_insn".
10709         (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
10710         "hbr_insn".
10711         (spu_emit_branch_hint): Likewise for params "before", "branch" and
10712         locals "hint", "insn".
10713         (get_branch_target): Likewise for param "branch".
10714         (insn_clobbers_hbr): Likewise for param "insn".
10715         (insert_hbrp_for_ilb_runout): Likewise for param "first" and
10716         locals "insn", "before_4", "before_16".
10717         (insert_hbrp): Likewise for local "insn".
10718         (spu_machine_dependent_reorg): Likewise for locals "branch",
10719         "insn", "next", "bbend".
10720         (uses_ls_unit): Likewise for param "insn".
10721         (get_pipe): Likewise.
10722         (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
10723         introducing a checked cast.
10724         (spu_sched_adjust_cost): Likewise for params "insn" and
10725         "dep_insn".
10726         (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
10727         (spu_sms_res_mii): Likewise.
10729 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10731         * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
10732         from rtx to rtx_insn *.
10733         (output_cbranch): Likewise for param 6.
10734         (output_return): Likewise for param 1.
10735         (output_sibcall): Likewise.
10736         (output_v8plus_shift): Likewise.
10737         (output_v8plus_mult): Likewise.
10738         (output_v9branch): Likewise for param 7.
10739         (output_cbcond):  Likewise for param 3.
10741         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
10742         for local "insn".
10743         (sparc_legitimize_pic_address): Likewise.
10744         (sparc_emit_call_insn): Likewise.
10745         (emit_save_or_restore_regs): Likewise.
10746         (emit_window_save): Likewise for return type and local "insn".
10747         (sparc_expand_prologue): Likewise for local "insn".
10748         (sparc_flat_expand_prologue): Likewise.
10749         (output_return): Likewise for param "insn".
10750         (output_sibcall): Likewise for param "insn" and local "delay".
10751         (output_ubranch): Likewise for param "insn".
10752         (output_cbranch): Likewise.
10753         (output_cbcond): Likewise.
10754         (output_v9branch): Likewise.
10755         (output_v8plus_shift): Likewise.
10756         (sparc_output_mi_thunk): Likewise for local "insn".
10757         (get_some_local_dynamic_name): Likewise.
10758         (output_v8plus_mult): Likewise for param "insn".
10760 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10762         * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
10763         from rtx to rtx_insn *.
10764         (output_branchy_insn): Likewise for param 3.
10765         (output_far_jump): Likewise for param 1.
10766         (final_prescan_insn): Likewise.
10767         (sh_insn_length_adjustment): Likewise for sole param.
10769         * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
10770         (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
10771         rtx_code_label *.
10772         (sh_emit_compare_and_set): Likewise for local "lab".
10773         (output_far_jump): Strengthen param "insn" and local "prev" from
10774         rtx to rtx_insn *.
10775         (output_branchy_insn): Likewise for param "insn" and local
10776         "next_insn".
10777         (output_ieee_ccmpeq): Likewise for param "insn".
10778         (struct label_ref_list_d): Strengthen field "label" from rtx to
10779         rtx_code_label *.
10780         (pool_node): Likewise.
10781         (pool_window_label): Likewise for this global.
10782         (add_constant): Likewise for return type and locals "lab", "new_rtx".
10783         (dump_table): Strengthen params "start", "barrier" and local
10784         "scan" from rtx to rtx_insn *.
10785         (broken_move): Likewise for param "insn".
10786         (untangle_mova): Likewise for params "first_mova" and "new_mova".
10787         Strengthen param "first_mova" from rtx * to rtx_insn **.
10788         (mova_p): Likewise for param "insn".
10789         (fixup_mova): Likewise for param "mova".
10790         (find_barrier): Likewise for return type, params "mova" and
10791         "from", and locals "barrier_before_mova", "found_barrier",
10792         "good_barrier", "orig", "last_symoff", "next".  Strengthen local
10793         "label" from rtx to rtx_code_label *.
10794         (sh_loop_align): Strengthen locals "first", "insn", "mova" from
10795         rtx to rtx_insn *.
10796         (sh_reorg): Likewise for locals "link", "scan", "barrier".
10797         (split_branches): Likewise for param "first" and local "insn".
10798         (final_prescan_insn): Likewise for param "insn".
10799         (sequence_insn_p): Likewise for locals "prev", "next".
10800         (sh_insn_length_adjustment): Likewise for param "insn".
10801         (sh_can_redirect_branch): Likewise for local "insn".
10802         (find_r0_life_regions): Likewise for locals "end", "insn".
10803         (sh_output_mi_thunk): Likewise for local "insns".
10805 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10807         * config/score/score.c (score_output_mi_thunk): Strengthen local
10808         "insn" from rtx to rtx_insn *.
10809         (score_prologue): Likewise.
10811 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10813         * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
10814         1 from rtx to rtx_insn *.
10815         (s390_emit_jump): Likewise for return type.
10816         (s390_emit_call): Likewise.
10817         (s390_load_got): Likewise.
10819         * config/s390/s390.c (last_scheduled_insn): Likewise for this
10820         variable.
10821         (s390_match_ccmode): Likewise for param "insn".
10822         (s390_emit_jump): Likewise for return type.
10823         (s390_split_branches): Likewise for local "label".
10824         (struct constant): Strengthen field "label" from rtx to
10825         rtx_code_label *.
10826         (struct constant_pool): Likewise for field "label".  Strengthen
10827         fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
10828         rtx_insn *.
10829         (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
10830         insns.
10831         (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
10832         (s390_end_pool): Likewise.
10833         (s390_dump_pool): Likewise for local "insn".
10834         (s390_mainpool_start): Likewise.
10835         (s390_chunkify_start): Likewise.
10836         (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
10837         with insns.  Strengthen locals "label", "jump", "barrier", "next",
10838         "prev", "vec_insn", "insn" from rtx to rtx_insn *.
10839         (s390_chunkify_finish): Strengthen local "insn" from rtx to
10840         rtx_insn *.
10841         (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
10842         "jump", "label", "next_insn".
10843         (s390_regs_ever_clobbered): Likewise for local "cur_insn".
10844         (s390_optimize_nonescaping_tx): Likewise for locals "insn",
10845         "tbegin_insn".
10846         (s390_load_got): Likewise for return type and local "insns".
10847         (s390_save_gprs_to_fprs): Likewise for local "insn".
10848         (s390_restore_gprs_from_fprs): Likewise.
10849         (pass_s390_early_mach::execute): Likewise.
10850         (s390_emit_prologue): Likewise for local "insns".
10851         (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
10852         rtx_code_label *.
10853         (s390_emit_call): Strengthen return type and local "insn" from
10854         rtx to rtx_insn *.
10855         (s390_emit_tpf_eh_return): Likewise for local "insn".
10856         (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
10857         "next_insn", introducing locals "s_pat", "rpat" to allow this.
10858         (s390_fix_long_loop_prediction): Likewise for param "insn" and
10859         local "cur_insn".
10860         (s390_non_addr_reg_read_p): Likewise for param "insn".
10861         (find_cond_jump): Likewise for return type and param "insn".
10862         (s390_swap_cmp): Likewise for param "insn".
10863         (s390_z10_optimize_cmp): Likewise for param "insn" and locals
10864         "prev_insn", "next_insn".
10865         (s390_reorg): Likewise for locals "insn", "target".
10866         (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
10867         (s390_sched_variable_issue): For now, rename param "insn" to
10868         "uncast_insn", introducing a checked cast.
10869         (s390_sched_init): Replace NULL_RTX with NULL when dealing with
10870         insn.
10871         (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
10872         rtx_insn *.  Use for_each_rtx_in_insn rather than for_each_rtx.
10874 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10876         * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
10877         param from rtx to rtx_insn *.
10878         * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
10880 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10882         * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
10883         4 from rtx to rtx_insn *.
10884         (rs6000_final_prescan_insn): Likewise for first param.
10885         * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
10886         local "insn".
10887         (rs6000_get_some_local_dynamic_name): Likewise.
10888         (output_cbranch): Likewise for param "insn".
10889         (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
10890         (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
10891         (rs6000_emit_allocate_stack): Likewise for local "insn".
10892         (load_cr_save): Likewise.
10893         (restore_saved_cr): Likewise.
10894         (restore_saved_lr): Likewise.
10895         (emit_cfa_restores): Likewise.
10896         (rs6000_output_function_epilogue): Likewise for locals "insn" and
10897         "deleted_debug_label".
10898         (rs6000_output_mi_thunk): Likewise for local "insn".
10899         (rs6000_final_prescan_insn): Likewise for param "insn".
10901 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10903         * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
10904         Strengthen param "insn" from rtx to rtx_insn *.
10905         * config/picochip/picochip.c (picochip_current_prescan_insn):
10906         Likewise for this variable.
10907         (picochip_final_prescan_insn): Likewise for param "insn".
10909 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10911         * config/pa/pa-protos.h (pa_output_call): Strengthen first param
10912         from rtx to rtx_insn *.
10913         (pa_output_indirect_call): Likewise.
10914         (pa_adjust_insn_length): Likewise.
10915         (pa_attr_length_millicode_call): Likewise.
10916         (pa_attr_length_call): Likewise.
10917         (pa_attr_length_indirect_call): Likewise.
10919         * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
10920         "insn".
10921         (pa_attr_length_millicode_call): Likewise.
10922         (pa_attr_length_call): Likewise.
10923         (pa_output_call): Likewise.
10924         (pa_attr_length_indirect_call): Likewise.
10925         (pa_output_indirect_call): Likewise.
10927 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10929         * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
10930         Strengthen first param from rtx to rtx_insn *.
10931         * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
10932         param "insn".
10934 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10936         * config/mips/mips-protos.h (mips_emit_move): Strengthen return
10937         type from rtx to rtx_insn *.
10938         (mips_expand_call): Likewise.
10939         (mips_adjust_insn_length): Likewise for first param.
10940         (mips_output_conditional_branch): Likewise.
10941         (mips_output_order_conditional_branch): Likewise.
10942         (mips_final_prescan_insn): Likewise.
10944         * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
10945         rtx_insn * for the SEQUENCE case.
10946         (SEQ_END): Likewise.
10947         (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
10948         (mips_emit_call_insn): Likewise, also for local "insn".
10949         (mips16_gp_pseudo_reg): Likewise for local "scan".
10950         (mips16_build_call_stub): Likewise for return type and for local
10951         "insn".  Introduce a new local "pattern" so that "insn" can indeed
10952         be an insn.
10953         (mips_expand_call): Strengthen return type and local "insn" from
10954         rtx to rtx_insn *.
10955         (mips_block_move_loop): Strengthen local "label" from rtx to
10956         rtx_code_label *.
10957         (mips_expand_synci_loop): Likewise for locals "label",
10958         "end_label".
10959         (mips_set_frame_expr): Strengthen local "insn" from rtx to
10960         rtx_insn *.
10961         (mips16e_collect_argument_saves): Likewise for locals "insn",
10962         "next".
10963         (mips_find_gp_ref): Likewise for param of callback for "pred"
10964         param, and for local "insn".
10965         (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
10966         (mips_insn_has_flexible_gp_ref_p): Likewise.
10967         (mips_epilogue_emit_cfa_restores): Likewise for return type and
10968         local "insn".
10969         (mips_epilogue_set_cfa): Likewise for local "insn".
10970         (mips_expand_epilogue): Likewise.
10971         (mips_adjust_insn_length): Likewise for param "insn".
10972         (mips_output_conditional_branch): Likewise.
10973         (mips_output_order_conditional_branch): Likewise.
10974         (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
10975         "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
10976         "falu2_turn_enabled_insn".
10977         (mips_builtin_branch_and_move): Strengthen locals "true_label",
10978         "done_label" from rtx to rtx_code_label *.
10979         (struct mips16_constant): Likewise for field "label".
10980         (mips16_add_constant): Likewise for return type.
10981         (mips16_emit_constants_1): Strengthen return type and param "insn"
10982         from rtx to rtx_insn *.
10983         (mips16_emit_constants): Likewise for param "insn".
10984         (mips16_insn_length): Likewise.
10985         (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
10986         to rtx_code_label *.
10987         (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
10988         from rtx to rtx_insn *.
10989         (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
10990         "jump".  Strengthen local "label" from rtx to rtx_code_label *.
10991         (r10k_simplify_address): Strengthen param "insn" and local
10992         "def_insn" from rtx to rtx_insn *.
10993         (r10k_safe_address_p): Strengthen param "insn" from rtx to
10994         rtx_insn *.
10995         (r10k_needs_protection_p_1): Update target type of cast of data
10996         from to rtx to rtx_insn *.
10997         (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
10998         rtx * to rtx_insn **.
10999         (r10k_needs_protection_p): Strengthen param "insn" from rtx to
11000         rtx_insn *.
11001         (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
11002         (mips_call_expr_from_insn): Likewise for param "insn".
11003         (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
11004         (mips_find_pic_call_symbol): Likewise for param "insn".
11005         (mips_annotate_pic_calls): Likewise for local "insn".
11006         (mips_sim_insn): Likewise for this variable.
11007         (struct mips_sim): Likewise for field "insn" within elements of
11008         last_set array.
11009         (mips_sim_wait_reg): Likewise for param "insn".
11010         (mips_sim_wait_regs): Likewise.
11011         (mips_sim_wait_units): Likewise.
11012         (mips_sim_wait_insn): Likewise.
11013         (mips_sim_issue_insn): Likewise.
11014         (mips_sim_finish_insn): Likewise.
11015         (mips_seq_time): Likewise for param "seq" and local "insn".
11016         (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
11017         locals "first", "second".
11018         (vr4130_align_insns): Likewise for locals "insn", "subinsn",
11019         "last", "last2", "next".
11020         (mips_avoid_hazard): Likewise for params "after", "insn".
11021         (mips_reorg_process_insns): Likewise for locals "insn",
11022         "last_insn", "subinsn", "next_insn".
11023         (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
11024         (mips16_split_long_branches): Likewise for locals "insn" "jump",
11025         "jump_sequence".
11026         (mips_output_mi_thunk): Likewise for local "insn".
11027         (mips_final_prescan_insn): Likewise for param "insn".
11029 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11031         * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
11032         Strengthen return type and local "insns" from rtx to rtx_insn *.
11033         (microblaze_legitimize_tls_address): Likewise for local "insns".
11034         (microblaze_block_move_loop): Strengthen local "label" from rtx
11035         to rtx_code_label *.
11036         (microblaze_expand_prologue): Strengthen two locals named "insn"
11037         from rtx to rtx_insn *.
11038         (microblaze_asm_output_mi_thunk): Likewise for local "insn".
11039         (microblaze_expand_divide): Likewise for locals "jump", "cjump",
11040         "insn".  Strengthen locals "div_label", "div_end_label" from rtx
11041         to rtx_code_label *.
11043 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11045         * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
11046         param from rtx to rtx_insn *.
11047         (mep_reuse_lo): Likewise for third param.
11048         (mep_use_post_modify_p): Likewise for first param.
11049         (mep_core_address_length): Likewise.
11050         (mep_cop_address_length): Likewise.
11051         (mep_final_prescan_insn): Likewise.
11052         (mep_store_data_bypass_p): Likewise for both params.
11053         (mep_mul_hilo_bypass_p): Likewise.
11054         (mep_ipipe_ldc_p): Likewise for param.
11056         * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
11057         (mep_rewrite_mult): Likewise.
11058         (mep_rewrite_mulsi3): Likewise.
11059         (mep_rewrite_maddsi3): Likewise.
11060         (mep_reuse_lo_p_1): Likewise.
11061         (mep_reuse_lo_p): Likewise.
11062         (mep_frame_expr): Likewise.
11063         (mep_make_parallel): Likewise for both params.
11064         (mep_use_post_modify_p_1): Likewise for param "set_insn" and
11065         local "insn".
11066         (mep_use_post_modify_p): Likewise for param "insn".
11067         (mep_core_address_length): Likewise.
11068         (mep_cop_address_length): Likewise.
11069         (mep_reg_set_in_function): Likewise for local "insn".
11070         (mep_asm_without_operands_p): Likewise.
11071         (F): Likewise for return type and param "x".
11072         (add_constant): Likewise for local "insn".
11073         (maybe_dead_move): Likewise for return type and local "insn".
11074         (mep_expand_prologue): Likewise for local "insn".
11075         (mep_final_prescan_insn): Likewise for param "insn".
11076         (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
11077         "next", "follow", "x".
11078         (mep_insert_repeat_label_last): Likewise for return type, param
11079         "last_insn", and locals "next", "prev".  Strengthen param "label"
11080         from rtx to rtx_code_label *.
11081         (struct mep_doloop_begin): Strengthen field "insn" from rtx to
11082         rtx_insn *.
11083         (struct mep_doloop_end): Likewise for fields "insn" and
11084         "fallthrough".
11085         (mep_reorg_repeat): Likewise for param "insns" and local "insn".
11086         Strengthen local "repeat_label" from rtx to rtx_code_label *.
11087         (mep_invertable_branch_p): Strengthen param "insn" from rtx to
11088         rtx_insn *.
11089         (mep_invert_branch): Likewise for params "insn" and "after".
11090         (mep_reorg_erepeat): Likewise for param "insns" and locals
11091         "insn", "prev", "new_last", "barrier", "user".  Strengthen local
11092         "l" from rtx to rtx_code_label *.
11093         (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
11094         from rtx to rtx_insn *.
11095         (mep_reorg_addcombine): Likewise for param "insns" and locals
11096         "i", "n".
11097         (add_sp_insn_p): Likewise for param "insn".
11098         (mep_reorg_noframe): Likewise for param "insns" and locals
11099         "start_frame_insn", "end_frame_insn", "next".
11100         (mep_reorg): Likewise for local "insns".
11101         (mep_store_data_bypass_1): Likewise for param "prev".  Add checked
11102         cast.
11103         (mep_store_data_bypass_p): Likewise for params "prev", "insn".
11104         (mep_mul_hilo_bypass_p): Likewise.
11105         (mep_ipipe_ldc_p): Likewise for param "insn".
11106         (mep_make_bundle): Likewise for return type, param "cop" and local
11107         "insn", splitting out the latter into a new local "seq" for when it
11108         is a SEQUENCE rather than an insn.
11109         (core_insn_p): Likewise for param "insn".
11110         (mep_bundle_insns): Likewise for param "insns" and locals "insn",
11111         "last", "first", "note", "prev", "core_insn".
11113 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11115         * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
11116         rtx to rtx_insn *.
11117         (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
11118         (m68k_final_prescan_insn): Likewise for first param.
11120         * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
11121         (m68k_set_frame_related): Likewise for param "insn".
11122         (output_btst): Likewise for param "insn".
11123         (m68k_final_prescan_insn): Likewise.
11124         (m68k_move_to_reg): Likewise for local "insn".
11125         (m68k_call_tls_get_addr): Likewise for local "insns".
11126         (m68k_call_m68k_read_tp): Likewise.
11127         (strict_low_part_peephole_ok): Likewise for param "first_insn".
11128         (m68k_output_mi_thunk): Likewise for local "insn".
11130 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11132         * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
11133         first param from rtx to rtx_insn *.
11134         (iq2000_adjust_insn_length): Likewise.
11135         (iq2000_output_conditional_branch): Likewise.
11136         * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
11137         "insn" and local "nop_insn".
11138         (iq2000_annotate_frame_insn): Likewise for param "insn".
11139         (iq2000_expand_prologue): Likewise for both locals "insn".
11140         (iq2000_adjust_insn_length): Likewise for param "insn".
11141         (iq2000_output_conditional_branch): Likewise.
11143 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11145         * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
11146         "insns" from rtx to rtx_insn *.
11147         (ia64_emit_cond_move): Likewise for locals "insn", "first".
11148         (struct spill_fill_data): Likewise for field "init_after" and for
11149         elements of array field "prev_insn".
11150         (spill_restore_mem): Likewise for locals "insn", "first".
11151         (do_spill): Likewise for local "insn".
11152         (do_restore): Likewise.
11153         (ia64_expand_prologue): Likewise.
11154         (ia64_expand_epilogue): Likewise.
11155         (emit_insn_group_barriers): Likewise for locals "insn",
11156         "last_label".
11157         (emit_all_insn_group_barriers): Likewise for locals "insn",
11158         "last".
11159         (dfa_stop_insn): Likewise for this global.
11160         (dfa_pre_cycle_insn): Likewise.
11161         (ia64_nop): Likewise.
11162         (final_emit_insn_group_barriers): Likewise for locals "insn",
11163         "last".
11164         (emit_predicate_relation_info): Likewise for locals "head", "n",
11165         "insn", "b", "a".
11166         (ia64_reorg): Likewise for local "insn".
11167         (ia64_output_mi_thunk): Likewise.
11168         (expand_vec_perm_interleave_2): Likewise for local "seq".
11170 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11172         * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
11173         param 1 "insn" from rtx to rtx_insn *.
11174         (ix86_use_lea_for_mov): Likewise.
11175         (ix86_avoid_lea_for_addr): Likewise.
11176         (ix86_split_lea_for_addr): Likewise.
11177         (ix86_lea_for_add_ok): Likewise.
11178         (ix86_output_call_insn): Likewise.
11180         * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
11181         (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
11182         (ix86_output_function_epilogue): Likewise for locals "insn",
11183         "deleted_debug_label".
11184         (legitimize_tls_address): Likewise for local "insn".
11185         (get_some_local_dynamic_name): Likewise.
11186         (increase_distance): Likewise for params "prev", "next".
11187         (distance_non_agu_define_in_bb): Likewise for params "insn",
11188         "start" and locals "prev", "next".
11189         (distance_non_agu_define): Likewise for param "insn".
11190         (distance_agu_use_in_bb): Likewise for params "insn", "start" and
11191         locals "next", "prev".
11192         (distance_agu_use): Likewise for param "insn".
11193         (ix86_lea_outperforms): Likewise.
11194         (ix86_ok_to_clobber_flags): Likewise.
11195         (ix86_avoid_lea_for_add): Likewise.
11196         (ix86_use_lea_for_mov): Likewise.
11197         (ix86_avoid_lea_for_addr): Likewise.
11198         (find_nearest_reg_def): Likewise, also for locals "prev", "start".
11199         (ix86_split_lea_for_addr): Likewise for param "insn".
11200         (ix86_lea_for_add_ok): Likewise for param "insn".
11201         (ix86_expand_carry_flag_compare): Likewise for local
11202         "compare_seq".
11203         (ix86_expand_int_movcc): Likewise.
11204         (ix86_output_call_insn): Likewise for param "insn".
11205         (ix86_output_call_insn): Likewise for local "i".
11206         (x86_output_mi_thunk): Introduce local "insn", using it in place
11207         of "tmp" when dealing with insns.
11208         (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
11209         "start".
11210         (ix86_pad_returns): Likewise for locals "ret", "prev".
11211         (ix86_count_insn_bb): Likewise for local "insn".
11212         (ix86_pad_short_function): Likewise for locals "ret", "insn".
11213         (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
11214         (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
11215         (expand_vec_perm_interleave2): Likewise for local "seq".
11216         (expand_vec_perm_vperm2f128_vblend): Likewise.
11217         (ix86_loop_unroll_adjust): Likewise for local "insn".  Convert
11218         call to for_each_rtx with for_each_rtx_in_insn.
11220 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11222         * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
11223         "label" from rtx to rtx_code_label *.
11224         (ix86_expand_prologue): Likewise.
11225         (ix86_expand_split_stack_prologue): Likewise for locals "label",
11226         "varargs_label".
11227         (ix86_split_idivmod): Likewise for locals "end_label" and
11228         "qimode_label".
11229         (ix86_expand_branch): Likewise for local "label2".
11230         (ix86_expand_aligntest): Likewise for return type and local "label".
11231         (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
11232         "top_label".
11233         (expand_movmem_epilogue): Likewise for the various locals named
11234         "label".
11235         (expand_setmem_epilogue): Likewise.
11236         (expand_small_movmem_or_setmem): Likewise for local "label".
11237         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
11238         Strengthen param "done_label" from rtx * to rtx_code_label **.
11239         Strengthen locals "loop_label" and "label" from rtx to
11240         rtx_code_label *.
11241         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
11242         Likewise for locals "loop_label", "label".
11243         (ix86_expand_set_or_movmem): Likewise for locals "label",
11244         "jump_around_label", "hot_label".
11245         (ix86_expand_strlensi_unroll_1): Likewise for locals
11246         "align_2_label", align_3_label", "align_4_label", "end_0_label",
11247         "end_2_label".
11248         (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
11249         (void ix86_emit_i387_log1p): Likewise for locals "label1",
11250         "label2", "jump_label".
11251         (ix86_expand_sse_compare_and_jump): Likewise for return type and
11252         local "label".
11253         (ix86_expand_lfloorceil): Likewise for local "label".
11254         (ix86_expand_rint): Likewise.
11255         (ix86_expand_floorceildf_32): Likewise.
11256         (ix86_expand_floorceil): Likewise.
11257         (ix86_expand_rounddf_32): Likewise.
11258         (ix86_expand_trunc): Likewise.
11259         (ix86_expand_truncdf_32): Likewise.
11260         (ix86_expand_round): Likewise.
11262 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11264         * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
11265         first param from rtx to rtx_insn *.
11266         (h8300_insn_length_from_table): Likewise.
11267         * config/h8300/h8300.c (F): Likewise for return type and param
11268         "x".
11269         (Fpa): Add a checked cast to rtx_insn *.
11270         (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
11271         rtx_insn *.
11272         (final_prescan_insn): Likewise for param "insn".
11273         (h8300_binary_length): Likewise.
11274         (h8300_insn_length_from_table): Likewise.
11276 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11278         * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
11279         Strengthen first param "insn" from rtx to rtx_insn *.
11281         * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
11282         Likewise.
11283         (frame_insn): Likewise for return type.  Introduce local "insn"
11284         for use in place of local "x" for use as an rtx_insn *.
11285         (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
11286         (epiphany_expand_prologue): Likewise for local "insn".
11287         * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
11288         * config/epiphany/resolve-sw-modes.c
11289         (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
11290         "seq".
11292 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11294         * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
11295         param from rtx to rtx_insn *.
11296         (c6x_final_prescan_insn): Likewise for first param.
11298         * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
11299         (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
11300         (c6x_expand_compare): Strengthen local "insns" from rtx to
11301         rtx_insn *.
11302         (c6x_get_unit_specifier): Likewise for param "insn".
11303         (c6x_print_unit_specifier_field): Likewise.
11304         (c6x_final_prescan_insn): Likewise.
11305         (emit_add_sp_const): Likewise for local "insn".
11306         (c6x_expand_prologue): Likewise.
11308 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11310         * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
11311         param 1 from rtx to rtx_insn *.
11312         * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
11313         the various locals named "insn".
11314         (expand_epilogue_reg_restore): Likewise.
11315         (frame_related_constant_load): Likewise.
11316         (add_to_reg): Likewise.
11317         (emit_link_insn): Likewise.
11318         (do_link): Likewise.
11319         (expand_interrupt_handler_prologue): Likewise.
11320         (branch_dest): Likewise for param "branch".
11321         (asm_conditional_branch): Likewise for param "insn".
11322         (gen_one_bundle): Likewise for elements of param "slot" and local
11323         "t".
11324         (bfin_gen_bundles): Likewise for locals "insn", "next" and
11325         elements of local "slot".
11326         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
11327         "queue", "next_queue", "prev".
11328         (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
11329         (add_sched_insns_for_speculation): Likewise for local "insn".
11331 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11333         * config/avr/avr-protos.h (output_movqi): Strengthen first param
11334         from rtx to rtx_insn *.
11335         (output_movhi): Likewise.
11336         (output_movsisf): Likewise.
11337         (avr_out_tstsi): Likewise.
11338         (avr_out_tsthi): Likewise.
11339         (avr_out_tstpsi): Likewise.
11340         (avr_out_compare): Likewise.
11341         (avr_out_compare64): Likewise.
11342         (avr_out_movpsi): Likewise.
11343         (ashlqi3_out): Likewise.
11344         (ashlhi3_out): Likewise.
11345         (ashlsi3_out): Likewise.
11346         (ashrqi3_out): Likewise.
11347         (ashrhi3_out): Likewise.
11348         (ashrsi3_out): Likewise.
11349         (lshrqi3_out): Likewise.
11350         (lshrhi3_out): Likewise.
11351         (lshrsi3_out): Likewise.
11352         (avr_out_ashlpsi3): Likewise.
11353         (avr_out_ashrpsi3): Likewise.
11354         (avr_out_lshrpsi3): Likewise.
11355         (avr_out_fract): Likewise.
11356         (avr_out_sbxx_branch): Likewise.
11357         (avr_out_round): Likewise.
11358         (avr_out_xload): Likewise.
11359         (avr_out_movmem): Likewise.
11360         (adjust_insn_length): Likewise.
11361         (avr_out_lpm): Likewise.
11362         (reg_unused_after): Likewise.
11363         (_reg_unused_after): Likewise.
11364         (avr_jump_mode): Likewise for second param.
11365         (jump_over_one_insn): Likewise for first param.
11366         (avr_final_prescan_insn): Likewise.
11367         (out_shift_with_cnt): Likewise for second param.
11369         * config/avr/avr.c (get_sequence_length): Likewise for param
11370         "insns" and local "insn".
11371         (emit_push_byte): Likewise for local "insn".
11372         (emit_push_sfr): Likewise.
11373         (avr_prologue_setup_frame): Likewise for locals "insn",
11374         "fp_plus_insns", "sp_plus_insns".
11375         (avr_expand_epilogue): Likewise for local "fp_plus_insns",
11376         "sp_plus_insns".
11377         (avr_jump_mode): Likewise for param "insn".
11378         (avr_final_prescan_insn): Likewise.
11379         (avr_find_unused_d_reg): Likewise.
11380         (avr_out_lpm_no_lpmx): Likewise.
11381         (avr_out_lpm): Likewise.
11382         (avr_out_xload): Likewise.
11383         (output_movqi): Likewise.
11384         (output_movhi): Likewise.
11385         (out_movqi_r_mr): Likewise.
11386         (out_movhi_r_mr): Likewise.
11387         (out_movsi_r_mr): Likewise.
11388         (out_movsi_mr_r): Likewise.
11389         (output_movsisf): Likewise.
11390         (avr_out_load_psi): Likewise.
11391         (avr_out_store_psi): Likewise.
11392         (avr_out_movpsi): Likewise.
11393         (out_movqi_mr_r): Likewise.
11394         (avr_out_movhi_mr_r_xmega): Likewise.
11395         (out_movhi_mr_r): Likewise.
11396         (compare_condition): Likewise for param "insn" and local "next".
11397         (compare_sign_p): Likewise for param "insn".
11398         (compare_diff_p): Likewise.
11399         (compare_eq_p): Likewise.
11400         (avr_out_compare): Likewise.
11401         (avr_out_compare64): Likewise.
11402         (avr_out_tsthi): Likewise.
11403         (avr_out_tstpsi): Likewise.
11404         (avr_out_tstsi): Likewise.
11405         (out_shift_with_cnt): Likewise.
11406         (ashlqi3_out): Likewise.
11407         (ashlhi3_out): Likewise.
11408         (avr_out_ashlpsi3): Likewise.
11409         (ashlsi3_out): Likewise.
11410         (ashrqi3_out): Likewise.
11411         (ashrhi3_out): Likewise.
11412         (avr_out_ashrpsi3): Likewise.
11413         (ashrsi3_out): Likewise.
11414         (lshrqi3_out): Likewise.
11415         (lshrhi3_out): Likewise.
11416         (avr_out_lshrpsi3): Likewise.
11417         (lshrsi3_out): Likewise.
11418         (avr_out_fract): Likewise.
11419         (avr_out_round): Likewise.
11420         (avr_adjust_insn_length): Likewise.
11421         (reg_unused_after): Likewise.
11422         (_reg_unused_after): Likewise.
11423         (avr_compare_pattern): Likewise.
11424         (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
11425         and locals "branch1", "branch2", "insn2", "jump".
11426         (avr_reorg): Likewise for local "insn".
11427         (avr_2word_insn_p): Likewise for param "insn".
11428         (jump_over_one_insn_p): Likewise.
11429         (avr_out_sbxx_branch): Likewise.
11430         (avr_out_movmem): Likewise.
11432 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11434         * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
11435         param from rtx to rtx_insn *.
11436         (thumb1_final_prescan_insn): Likewise.
11437         (thumb2_final_prescan_insn): Likewise.
11439         * config/arm/arm.c (emit_set_insn): Strengthen return type from
11440         rtx to rtx_insn *.
11441         (struct minipool_node): Likewise for field "insn".
11442         (dump_minipool): Likewise for param "scan".
11443         (create_fix_barrier): Likewise for local "from".  Strengthen local
11444         "label" from rtx to rtx_code_label *.
11445         (push_minipool_barrier): Strengthen param "insn" from rtx to
11446         rtx_insn *.
11447         (push_minipool_fix): Likewise.
11448         (note_invalid_constants): Likewise.
11449         (thumb2_reorg): Likewise for local "insn".
11450         (arm_reorg): Likewise.
11451         (thumb2_final_prescan_insn): Likewise for param
11452         "insn" and local "first_insn".
11453         (arm_final_prescan_insn): Likewise for param "insn" and locals
11454         "start_insn", "this_insn".
11455         (arm_debugger_arg_offset): Likewise for param "insn".
11456         (thumb1_emit_multi_reg_push): Likewise for return type and local
11457         "insn".
11458         (thumb1_final_prescan_insn): Likewise for param "insn".
11459         (thumb_far_jump_used_p): Likewise for local "insn".
11460         (thumb1_expand_prologue): Likewise.
11461         (arm_expand_epilogue_apcs_frame): Likewise.
11462         (arm_expand_epilogue): Likewise for locals "insn", "tmp".
11463         (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
11464         from rtx to rtx_code_label *.
11465         (arm_split_atomic_op): Likewise for local "label".
11466         (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
11468 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11470         * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
11471         first param from rtx to rtx_insn *.
11472         (arc_verify_short): Likewise.
11473         (arc_short_long): Likewise.
11474         (arc_need_delay): Likewise.
11476         * config/arc/arc.c (struct arc_ccfsm): Likewise for field
11477         "target_insn".
11478         (arc_ccfsm_advance): Likewise for param "insn" and locals
11479         "start_insn", "this_insn".
11480         (arc_ccfsm_record_condition): Likewise for local "seq_insn".
11481         (arc_ccfsm_post_advance): Likewise for param "insn".
11482         (arc_next_active_insn): Likewise for return type and param "insn".
11483         Convert NULL_RTX to NULL as appropriate.  Add a checked cast.
11484         (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
11485         (output_short_suffix): Likewise for local "insn".
11486         (arc_final_prescan_insn): Likewise for param "insn".  Remove
11487         now-redundant checked cast.
11488         (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
11489         "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
11490         rtx_insn *.  Add a checked cast.  Introduce local "lc_set_insn"
11491         for use where lc_set became an insn.
11492         (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
11493         rtx to rtx_insn *.
11494         (arc_get_insn_variants): Likewise for local "prev".
11495         (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
11496         "next".
11497         (arc_predicate_delay_insns): Likewise for local "insn".
11498         (arc_pad_return): Likewise for local "prev".  For now, add a
11499         checked cast when extracting the insn from "final_sequence".
11500         (arc_short_long): Likewise for param "insn".
11501         (arc_need_delay): Likewise for param "insn" and local "next".
11502         (arc_label_align): Likewise for locals "prev", "next".
11504 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11506         * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
11507         "insn" from rtx to rtx_insn *.
11508         (alpha_gp_save_rtx): Likewise for local "seq".
11509         (alpha_instantiate_decls): Likewise for local "top".
11510         (get_some_local_dynamic_name): Likewise for local "insn".
11511         (alpha_does_function_need_gp): Likewise.
11512         (set_frame_related_p): Likewise for return type and for locals
11513         "seq" and "insn".
11514         (emit_frame_store_1): Likewise for local "insn".
11515         (alpha_expand_prologue): Likewise for locals "insn", "seq".
11516         (alpha_end_function): Likewise for local "insn".
11517         (alpha_output_mi_thunk_osf): Likewise.
11518         (alphaev4_insn_pipe): Likewise for param "insn".
11519         (alphaev5_insn_pipe): Likewise.
11520         (alphaev4_next_group): Likewise for return type and param 1
11521         "insn".
11522         (alphaev5_next_group): Likewise.
11523         (alpha_align_insns_1): Likewise for return type and param 1 of
11524         callback param "next_group", and for locals "i", "next", "prev",
11525         "where", "where2", "insn".
11527 2014-08-25  Bernd Schmidt  <bernds@codesourcery.com>
11529         * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
11530         rather than modifying the stmt.
11532 2014-08-25  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
11534         * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
11535         cgraph_state conversion.
11537 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11539         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
11540         Strengthen local "insns" from rtx to rtx_insn *.
11541         (aarch64_set_frame_expr): Likewise for local "insn".
11542         (aarch64_save_or_restore_fprs): Likewise.
11543         (aarch64_save_or_restore_callee_save_registers): Likewise.
11544         (aarch64_expand_prologue): Likewise.
11545         (aarch64_expand_epilogue): Likewise.
11546         (aarch64_output_mi_thunk): Likewise.
11547         (aarch64_split_compare_and_swap): Strengthen locals "label1" and
11548         "label2" from rtx to rtx_code_label *.
11549         (aarch64_split_atomic_op): Likewise for local "label".
11551 2014-08-25  Martin Liska  <mliska@suse.cz>
11553         * cgraph.h (symtab_node):
11554         (bool needed_p (void)): created from decide_is_symbol_needed
11555         (bool referred_to_p (void)): created from referred_to_p
11556         (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
11557         * cgraph.h (cgraph_node):
11558         (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
11559         (void expand (void)): created from expand_function
11560         (static void finalize_function (tree, bool)): created from cgraph_finalize_function
11561         (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
11562         (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
11563         (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
11564         * cgraph.h (varpool_node):
11565         (static void add (tree decl): created from varpool_add_new_variable
11566         * cgraph.h (cgraph_edge):
11567         void remove (void);
11568         (void remove_caller (void)): created from cgraph_edge_remove_caller
11569         (void remove_callee (void)): created from cgraph_edge_remove_callee
11570         (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
11571           created from cgraph_set_call_stmt
11572         (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
11573         (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
11574         (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
11575           gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
11576         (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
11577           created from cgraph_speculative_call_info
11578         (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
11579           int freq_scale, bool update_original)): created from cgraph_clone_edge
11580         (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
11581         (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
11582         (bool recursive_p (void)): created from cgraph_edge_recursive_p
11583         (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
11584         (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
11585         (static void rebuild_references (void)): created from cgraph_rebuild_references
11586         * cgraph.h (symbol_table):
11587         (create_reference): renamed from add_reference
11588         (maybe_create_reference): renamed from maybe_add_reference
11589         (void register_symbol (symtab_node *node)): new function
11590         (void clear_asm_symbols (void)): new function
11591         (void unregister (symtab_node *node)): new function
11592         (void release_symbol (cgraph_node *node, int uid)): new function
11593         (cgraph_node * allocate_cgraph_symbol (void)): new function
11594         (void initialize (void)): created from cgraph_init
11595         (symtab_node *first_symbol (void)):new function
11596         (asm_node *first_asm_symbol (void)):new function
11597         (symtab_node *first_defined_symbol (void)):new function
11598         (varpool_node *first_variable (void)):new function
11599         (varpool_node *next_variable (varpool_node *node)):new function
11600         (varpool_node *first_static_initializer (void)):new function
11601         (varpool_node *next_static_initializer (varpool_node *node)):new function
11602         (varpool_node *first_defined_variable (void)):new function
11603         (varpool_node *next_defined_variable (varpool_node *node)):new function
11604         (cgraph_node *first_defined_function (void)):new function
11605         (cgraph_node *next_defined_function (cgraph_node *node)):new function
11606         (cgraph_node *first_function (void)):new function
11607         (cgraph_node *next_function (cgraph_node *node)):new function
11608         (cgraph_node *first_function_with_gimple_body (void)):new function
11609         (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
11610         (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
11611           created from symtab_remove_unreachable_nodes
11612         (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
11613         (void process_new_functions (void)): created from cgraph_process_new_functions
11614         (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
11615         (bool output_variables (void)): created from varpool_node::output_variables
11616         (void output_asm_statements (void)): created from output_asm_statements
11617         (void finalize_compilation_unit (void)): created from finalize_compilation_unit
11618         (void compile (void)): created from compile
11619         (void output_weakrefs (void)): created from output_weakrefs
11620         (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
11621         (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
11622           gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
11623         (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
11624         (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
11625           created from cgraph_next_function_with_gimple_body
11626         (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
11627           created from cgraph_remove_edge_removal_hook
11628         (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
11629           created from cgraph_add_node_removal_hook
11630         (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
11631           created from cgraph_remove_node_removal_hook
11632         (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
11633           created from varpool_add_node_removal_hook
11634         (void remove_varpool_removal_hook (varpool_node_hook_list *)):
11635           created from varpool_remove_node_removal_hook
11636         (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
11637           created from cgraph_add_function_insertion_hook
11638         (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
11639           created from cgraph_remove_function_insertion_hook
11640         (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
11641           created from varpool_add_variable_insertion_hook
11642         (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
11643           created from varpool_remove_variable_insertion_hook
11644         (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
11645           created from cgraph_add_edge_duplication_hook
11646         (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
11647           created from cgraph_remove_edge_duplication_hook
11648         (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
11649           created from cgraph_add_node_duplication_hook
11650         (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
11651           created from cgraph_remove_node_duplication_hook
11652         (void call_edge_removal_hooks (cgraph_edge *e)):
11653           created from cgraph_call_edge_removal_hooks
11654         (void call_cgraph_insertion_hooks (cgraph_node *node)):
11655           created from call_function_insertion_hooks
11656         (void call_cgraph_removal_hooks (cgraph_node *node)):
11657           created from cgraph_call_node_removal_hooks
11658         (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
11659           created from cgraph_node::call_duplication_hooks
11660         (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
11661           created from cgraph_call_edge_duplication_hooks
11662         (void call_varpool_removal_hooks (varpool_node *node)):
11663           created from varpool_call_node_removal_hooks
11664         (void call_varpool_insertion_hooks (varpool_node *node)):
11665           created from varpool_call_variable_insertion_hooks
11666         (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
11667           created from insert_to_assembler_name_hash
11668         (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
11669           created from unlink_from_assembler_name_hash
11670         (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
11671           created from symtab_prevail_in_asm_name_hash
11672         (void symtab_initialize_asm_name_hash (void)):
11673           created from symtab_initialize_asm_name_hash
11674         (void change_decl_assembler_name (tree decl, tree name)):
11675           created from change_decl_assembler_name
11676         (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
11677         (static hashval_t decl_assembler_name_hash (const_tree asmname)):
11678           created from decl_assembler_name_hash
11679         (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
11680           created from decl_assembler_name_equal
11681         (static hashval_t hash_node_by_assembler_name (const void *p)):
11682           created from hash_node_by_assembler_name
11683         (static int eq_assembler_name (const void *p1, const void *p2)):
11684           created from eq_assembler_name
11686 2014-08-25  Marek Polacek  <polacek@redhat.com>
11688         * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
11690 2014-08-25  Petr Murzin  <petr.murzin@intel.com>
11692         * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
11693         (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
11694         SWI1248_AVX512BW mode iterator.
11696 2014-08-25  Kaz Kojima  <kkojima@gcc.gnu.org>
11698         PR target/62111
11699         * config/sh/predicates.md (general_extend_operand): Disable
11700         TRUNCATE before reload completes.
11702 2014-08-24  Gerald Pfeifer  <gerald@pfeifer.com>
11704         * doc/invoke.texi (Optimize Options): Fix markup in two cases.
11706 2014-08-24  Oleg Endo  <olegendo@gcc.gnu.org>
11708         PR target/61996
11709         * config/sh/sh.opt (musermode): Allow negative form.
11710         * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
11711         targets that don't support it.
11712         * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
11713         Document -mno-usermode option.
11715 2014-08-24  Kito Cheng  <kito@0xlab.org>
11717         * system.h (CALLER_SAVE_PROFITABLE): Poison.
11718         * regs.h (CALLER_SAVE_PROFITABLE): Remove.
11719         * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
11720         * doc/tm.texi: Regenerate.
11722 2014-08-24  Kito Cheng  <kito@0xlab.org>
11724         * ira.c: Fix typo in comment.
11726 2014-08-23  Edward Smith-Rowland  <3dw4rd@verizon.net>
11728         * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
11729         Deprecate c++1y. Change language to reflect greater confidence in C++14.
11731 2014-08-23  John David Anglin  <danglin@gcc.gnu.org>
11733         PR target/62038
11734         * config/pa/pa.c (pa_output_function_epilogue): Don't set
11735         last_address when the current function is a thunk.
11736         (pa_asm_output_mi_thunk): When we don't have named sections or they
11737         are not being used, check that thunk can reach the stub table with a
11738         short branch.
11740 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
11742         * web.c (union_match_dups): Strengthen param "insn" from rtx to
11743         rtx_insn *.
11744         (pass_web::execute): Likewise for local "insn".
11746 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
11748         * var-tracking.c (struct micro_operation_def): Strengthen field
11749         "insn" from rtx to rtx_insn *.
11750         (struct emit_note_data_def): Likewise.
11751         (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
11752         (vt_stack_adjustments): Likewise for local "insn".
11753         (adjust_insn): Likewise for param "insn".
11754         (val_store): Likewise.
11755         (val_resolve): Likewise.
11756         (struct count_use_info): Likewise for field "insn".
11757         (log_op_type): Likewise for param "insn".
11758         (reverse_op): Likewise.
11759         (prepare_call_arguments): Likewise.
11760         (add_with_sets):  The initial param takes an insn, but we can't
11761         yet strengthen it from rtx to rtx_insn * since it's used as a
11762         cselib_record_sets_hook callback.  For now rename initial param
11763         from "insn" to "uncast_insn", and introduce a local "insn" of
11764         the stronger rtx_insn * type, with a checked cast.
11765         (compute_bb_dataflow): Strengthen local "insn" from rtx to
11766         rtx_insn *.
11767         (emit_note_insn_var_location): Likewise.
11768         (emit_notes_for_changes): Likewise.
11769         (emit_notes_for_differences): Likewise.
11770         (next_non_note_insn_var_location): Likewise for return type and
11771         for param "insn".
11772         (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
11773         (vt_initialize): Likewise for local "insn".
11774         (delete_debug_insns): Likewise for locals "insn" and "next".
11776 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
11778         * varasm.c (mark_constants): Strengthen param "insn" from rtx to
11779         rtx_insn *.
11780         (mark_constant_pool): Likewise for local "insn".
11782 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
11784         * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
11785         rtx to rtx_insn *.
11786         (dead_debug_promote_uses): Likewise.
11787         (dead_debug_insert_temp): Likewise.
11789 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
11791         * store-motion.c (store_killed_in_insn): Strengthen param "insn"
11792         from const_rtx to const rtx_insn *.
11793         (store_killed_after): Likewise.  Strengthen locals "last", "act"
11794         from rtx to rtx_insn *.
11795         (store_killed_before): Strengthen param "insn" from const_rtx to
11796         const rtx_insn *.  Strengthen local "first" from rtx to rtx_insn *.
11797         (find_moveable_store): Strengthen param "insn" from rtx to
11798         rtx_insn *.
11799         (compute_store_table): Likewise for local "insn".
11800         (insert_insn_start_basic_block): Likewise for param "insn" and
11801         locals "prev", "before", "insn".
11802         (insert_store): For now, add a checked cast to rtx_insn * on the
11803         result of gen_move_insn.
11804         (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
11805         to rtx_insn *.
11806         (replace_store_insn): Likewise.  For now, add a checked cast to
11807         rtx_insn * on the result of gen_move_insn.
11809 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11811         * stmt.c (expand_case): Strengthen local "before_case" from rtx to
11812         rtx_insn *.
11813         (expand_sjlj_dispatch_table): Likewise.
11815 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11817         * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
11818         "insn" from rtx to rtx_insn *.
11820 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11822         * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
11823         "insn" from rtx to rtx_insn *.
11824         (dup_block_and_redirect): Likewise for param 3 "before".
11826         * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
11827         from rtx to rtx_insn *.
11828         (move_insn_for_shrink_wrap): Likewise.
11829         (prepare_shrink_wrap): Likewise for locals "insn", "curr".
11830         (dup_block_and_redirect): Likewise for param "before" and local
11831         "insn".
11832         (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
11833         "end".
11834         (convert_to_simple_return): Likewise for local "start".
11836         * config/i386/i386.c (ix86_finalize_stack_realign_flags):
11837         Strengthen local "insn" from rtx to rtx_insn *, for use when
11838         invoking requires_stack_frame_p.
11840 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11842         * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
11843         rtx_insn *.
11844         (speculate_expr): Likewise for locals "orig_insn_rtx",
11845         "spec_insn_rtx".
11846         (eq_transformed_insns): Likewise for locals "i1", "i2".
11847         (check_for_new_jump): Likewise for return type and local "end".
11848         (find_new_jump): Likewise for return type and local "jump".
11849         (sel_split_edge): Likewise for local "jump".
11850         (sel_create_recovery_block): Likewise.
11851         (sel_redirect_edge_and_branch_force): Likewise.
11852         (sel_redirect_edge_and_branch): Likewise.
11854 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11856         * sel-sched.c (substitute_reg_in_expr): Strengthen local
11857         "new_insn" from rtx to rtx_insn *.
11858         (create_insn_rtx_with_rhs): Likewise for return type and for local
11859         "insn_rtx".
11860         (create_insn_rtx_with_lhs): Likewise.
11861         (create_speculation_check): Likewise for local "insn_rtx".
11862         (implicit_clobber_conflict_p): Likewise for local "insn".
11863         (get_expr_cost): Likewise.
11864         (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
11865         (move_cond_jump): Likewise for locals "next", "prev", "link",
11866         "head", "from", "to".
11868 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11870         * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
11871         "next" from rtx to rtx_insn *.
11872         (find_conditional_protection): Likewise for local "next".
11873         (is_conditionally_protected): Likewise for local "insn1".
11874         (is_pfree): Likewise for locals "insn1", "insn2".
11876 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11878         * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
11879         from rtx to rtx_insn *.
11881         * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
11882         locals "insn1", "insn2" from rtx to rtx_insn *.
11883         (add_deps_for_risky_insns): Likewise for params "head", "tail" and
11884         locals "insn", "prev", "last_jump", "next_tail".
11885         (schedule_ebb): Likewise for params "head", "tail".
11886         (schedule_ebbs): Likewise for locals "tail", "head".
11888         * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
11889         to rtx_insn on "last_insn" in one of the invocations of
11890         schedule_ebb.
11892 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11894         * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
11895         "elem", "insn" from rtx to rtx_insn *.
11896         (change_spec_dep_to_hard): Likewise.
11897         (get_back_and_forw_lists): Likewise for local "con".
11898         (sd_add_dep): Likewise for locals "elem", "insn".
11899         (sd_resolve_dep): Likewise for locals "pro", "con".
11900         (sd_unresolve_dep): Likewise.
11901         (sd_delete_dep): Likewise.
11902         (chain_to_prev_insn): Likewise for local "pro".
11903         (find_inc): Likewise for locals "pro", "con".
11905 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11907         * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
11908         to rtx_insn *.
11909         (reg_set_between_p): Strengthen local "insn" from const_rtx to
11910         const rtx_insn *.
11911         (modified_between_p): Strengthen local "insn" from rtx to
11912         rtx_insn *.
11913         (remove_reg_equal_equiv_notes_for_regno): Likewise.
11914         (keep_with_call_p): Strengthen local "i2" from const_rtx to
11915         const rtx_insn *.
11917 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11919         * resource.c (next_insn_no_annul): Strengthen local "next" from
11920         rtx to rtx_insn *.
11921         (mark_referenced_resources): Likewise for local "insn".
11923 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11925         * reload.h (struct insn_chain): Strengthen field "insn" from rtx
11926         to rtx_insn *.
11927         (find_reloads): Likewise for param 1.
11928         (subst_reloads): Likewise for sole param.
11929         (find_equiv_reg): Likwise for param 2.
11930         (regno_clobbered_p): Likwise for param 2.
11931         (reload): Likewise for param 1.
11933         * caller-save.c (save_call_clobbered_regs): Strengthen local
11934         "insn" from rtx to rtx_insn *.
11935         (insert_one_insn): Likewise for local "insn".
11937         * reload.c (this_insn): Likewise for this global.
11938         (find_reloads): Likewise for param "insn".
11939         (find_reloads_toplev): Likewise.
11940         (find_reloads_address): Likewise.
11941         (subst_reg_equivs): Likewise.
11942         (update_auto_inc_notes): Likewise.
11943         (find_reloads_address_1): Likewise.
11944         (find_reloads_subreg_address): Likewise.
11945         (subst_reloads): Likewise.
11946         (find_equiv_reg): Likewise, also for local "p".
11947         (regno_clobbered_p): Likewise for param "insn".
11949         * reload1.c (reg_reloaded_insn): Likewise for the elements of this
11950         array.
11951         (spill_reg_store): Likewise for the elements of this array.
11952         (remove_init_insns): Likewise for local "equiv_insn".
11953         (will_delete_init_insn_p): Likewise for param "insn".
11954         (reload): Likewise for param ""first" and local "insn".
11955         (calculate_needs_all_insns): Strengthen local "insn" from rtx to
11956         rtx_insn *.
11957         (calculate_elim_costs_all_insns): Likewise.
11958         (delete_caller_save_insns): Likewise.
11959         (spill_failure): Likewise for param "insn".
11960         (delete_dead_insn): Likewise.
11961         (set_label_offsets): Likewise.
11962         (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
11963         "prev_insn".
11964         (elimination_costs_in_insn): Likewise for param "insn".
11965         (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
11966         when referring to an insn.
11967         (set_initial_label_offsets): Likewise.
11968         (set_offsets_for_label): Strengthen param "insn" from rtx to
11969         rtx_insn *.
11970         (init_eliminable_invariants): Likewise for param "first" and local
11971         "insn".
11972         (fixup_eh_region_note): Likewise for param "insn".
11973         (reload_as_needed): Likewise for locals "prev", "insn",
11974         "old_next", "old_prev", "next".
11975         (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
11976         "last".
11977         (reload_inheritance_insn): Strengthen elements of this array from
11978         rtx to rtx_insn *.
11979         (failed_reload): Likewise for param "insn".
11980         (choose_reload_regs): Likewise for local "insn".  Replace use of
11981         NULL_RTX with NULL when referring to an insn.
11982         (input_reload_insns): Strengthen elements of this array from rtx
11983         to rtx_insn *.
11984         (other_input_address_reload_insns): Likewise for this global.
11985         (other_input_reload_insns): Likewise for this global.
11986         (input_address_reload_insns): Likwise for the elements of this
11987         array.
11988         (inpaddr_address_reload_insns): Likwise for the elements of this
11989         array.
11990         (output_reload_insns): Likewise for the elements of this array.
11991         (output_address_reload_insns): Likewise for the elements of this
11992         array.
11993         (outaddr_address_reload_insns): Likewise for the elements of this
11994         array.
11995         (operand_reload_insns): Likewise for this global.
11996         (other_operand_reload_insns): Likewise for this global.
11997         (other_output_reload_insns): Likewise for the elements of this
11998         array.
11999         (new_spill_reg_store): Likewise for the elements of this
12000         array.
12001         (emit_input_reload_insns): Likewise for locals "insn", "temp".
12002         Strengthen local "where" from rtx * to rtx_insn **.
12003         (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
12004         from rtx to rtx_insn *.
12005         (do_input_reload): Likewise for local "insn".
12006         (do_output_reload): Likewise for local "insn".
12007         (emit_reload_insns): Likewise for locals "insn" and "store_insn".
12008         (emit_insn_if_valid_for_reload): Likewise for return type and local
12009         "last".  Add checked cast to rtx_insn when returning "insn" since
12010         this has been through emit_insn.
12011         (gen_reload): Strengthen return type and locals "last", "insn", "set"
12012         from rtx to rtx_insn *.  Add checked cast to rtx_insn when
12013         returning "insn" since it's been through
12014         emit_insn_if_valid_for_reload at this point.
12015         (delete_output_reload): Strengthen param "insn" and locals
12016         "output_reload_insn", "i2" from rtx to rtx_insn *.
12017         (delete_address_reloads): Likewise for params "dead_insn",
12018         "current_insn" and locals "prev", "next".
12019         (delete_address_reloads_1): Likewise for params "dead_insn",
12020         "current_insn" and locals "prev", "i2".
12021         (inc_for_reload): Likewise for locals "last", "add_insn".
12022         (add_auto_inc_notes): Strengthen param "insn" from rtx to
12023         rtx_insn *.
12025         * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
12026         param of this duplicate of the prototype from reload.h
12028 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12030         * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
12031         rtx to rtx_insn *.
12032         (regstat_bb_compute_calls_crossed): Likewise.
12034 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12036         * regrename.c (create_new_chain): Strengthen param "insn" from rtx
12037         to rtx_insn *.
12038         (init_rename_info): Replace use of NULL_RTX with NULL when dealing
12039         with an insn.
12040         (regrename_analyze): Strengthen local "insn" from rtx to
12041         rtx_insn *.
12042         (scan_rtx_reg): Likewise for param "insn".
12043         (scan_rtx_address): Likewise.
12044         (scan_rtx): Likewise.
12045         (restore_operands): Likewise.
12046         (record_out_operands): Likewise.
12047         (build_def_use): Likewise for local "insn".  Replace use of
12048         NULL_RTX with NULL when dealing with an insn.
12050 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12052         * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
12053         * reginfo.c (reg_scan): Likewise, also for local "insn".
12054         (reg_scan_mark_refs): Likewise for param "insn".
12055         (init_subregs_of_mode): Likewise for local "insn".
12057 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12059         * regcprop.c (struct queued_debug_insn_change): Strengthen field
12060         "insn" from rtx to rtx_insn *.
12061         (replace_oldest_value_reg): Likewise for param "insn".
12062         (replace_oldest_value_addr): Likewise.
12063         (replace_oldest_value_mem): Likewise.
12064         (apply_debug_insn_changes): Likewise for local "last_insn".
12065         (copyprop_hardreg_forward_1): Likewise for local "insn".
12067 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12069         * reg-stack.c (next_flags_user): Strengthen return type and param
12070         "insn" from rtx to rtx_insn *.
12071         (straighten_stack): Likewise for param "insn".
12072         (check_asm_stack_operands): Likewise.
12073         (remove_regno_note): Likewise.
12074         (emit_pop_insn): Likewise for return type, param "insn", local
12075         "pop_insn".
12076         (emit_swap_insn):  Strengthen param "insn" and locals "i1", "tmp",
12077         "limit" from rtx to rtx_insn *.
12078         (swap_to_top): Likewise for param "insn".
12079         (move_for_stack_reg): Likewise.
12080         (move_nan_for_stack_reg): Likewise.
12081         (swap_rtx_condition): Likewise.
12082         (compare_for_stack_reg): Likewise.
12083         (subst_all_stack_regs_in_debug_insn): Likewise.
12084         (subst_stack_regs_pat): Likewise, and local "insn2".
12085         (subst_asm_stack_regs): Strengthen param "insn" from rtx to
12086         rtx_insn *.
12087         (subst_stack_regs): Likewise.
12088         (change_stack): Likewise.
12089         (convert_regs_1): Likewise for locals "insn", "next".
12091 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12093         * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
12094         rtx_insn *.
12095         (combine_set_extension): Likewise for param "curr_insn".
12096         (transform_ifelse): Likewise for param "def_insn".
12097         (get_defs): Likewise for param "def_insn".  Strengthen param "dest"
12098         from vec<rtx> * to vec<rtx_insn *> *.
12099         (is_cond_copy_insn): Likewise for param "insn".
12100         (struct ext_state): Strengthen the four vec fields from vec<rtx>
12101         to vec<rtx_insn *>.
12102         (make_defs_and_copies_lists): Strengthen param "extend_insn" and
12103         local "def_insn" from rtx to rtx_insn *.
12104         (get_sub_rtx): Likewise for param "def_insn".
12105         (merge_def_and_ext): Likewise.
12106         (combine_reaching_defs): Likewise.
12107         (add_removable_extension): Likewise for param "insn".
12108         (find_removable_extensions): Likewise for local "insn".
12109         (find_and_remove_re): Likewise for locals "curr_insn" and
12110         "def_insn".  Strengthen locals "reinsn_del_list" and
12111         "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
12113 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12115         * recog.c (split_insn): Strengthen param "insn" and locals
12116         "first", "last" from rtx to rtx_insn *.
12117         (split_all_insns): Likewise for locals "insn", "next".
12118         (split_all_insns_noflow): Likewise.
12120 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12122         * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
12123         const rtx_insn *.
12124         (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
12125         (debug_rtx_find): Likewise for param 1 "x".
12127         * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
12128         const_rtx to const rtx_insn *.  Likewise for local "insn".
12129         (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
12130         (debug_rtx_find): Likewise for param 1 "x".
12131         (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
12132         from const_rtx to const rtx_insn * within the appropriate cases of
12133         the switch statement.
12135         * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
12136         Strengthen local "insns" from rtx to rtx_insn * since this is
12137         passed to a call to debug_rtx_list.
12139 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12141         * predict.h (predict_insn_def): Strengthen param "insn" from rtx
12142         to rtx_insn *.
12144         * function.c (stack_protect_epilogue): Add checked cast to
12145         rtx_insn for now when invoking predict_insn_def.
12147         * predict.c (predict_insn): Strengthen param "insn" from rtx to
12148         rtx_insn *.
12149         (predict_insn_def): Likewise.
12150         (rtl_predict_edge): Likewise for local "last_insn".
12151         (can_predict_insn_p): Strengthen param "insn" from const_rtx to
12152         const rtx_insn *.
12153         (combine_predictions_for_insn): Strengthen param "insn" from rtx
12154         to rtx_insn *.
12155         (bb_estimate_probability_locally): Likewise for local "last_insn".
12156         (expensive_function_p): Likewise for local "insn".
12158         * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
12159         local "jmp", since this is used when invoking predict_insn_def.
12161 2014-08-22  Marek Polacek  <polacek@redhat.com>
12163         PR c++/62199
12164         * doc/invoke.texi: Update -Wlogical-not-parentheses description.
12166 2014-08-22  Marek Polacek  <polacek@redhat.com>
12168         PR c/61271
12169         * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
12170         a comparison in parens.
12171         * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
12172         in parens.
12174 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12176         * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
12177         rtx_insn *.
12179         * cprop.c (fis_get_condition): Likewise.
12181         * postreload.c (reload_cse_regs): Likewise for param "first".
12182         (reload_cse_simplify): Likewise for param "insn".
12183         (reload_cse_regs_1): Likewise for local "insn".
12184         (reload_cse_simplify_set): Likewise for param "insn".
12185         (reload_cse_simplify_operands): Likewise.
12186         (struct reg_use): Likewise for field "insn".
12187         (reload_combine_purge_insn_uses): Likewise for param "insn".
12188         (fixup_debug_insns): Likewise for params "from", "to" and local
12189         "insn".
12190         (try_replace_in_use): Likewise for local "use_insn".
12191         (reload_combine_recognize_const_pattern): Likewise for param
12192         "insn" and locals "add_moved_after_insn", "use_insn".
12193         (reload_combine_recognize_pattern): Likewise for param "insn" and
12194         local "prev".
12195         (reload_combine): Likewise for locals "insn", "prev".
12196         (reload_combine_note_use): Likewise for param "insn".
12197         (move2add_use_add2_insn): Likewise.
12198         (move2add_use_add3_insn): Likewise.
12199         (reload_cse_move2add): Likewise, also for local "next".
12200         (move2add_note_store): Likewise for local "insn".
12202 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12204         * postreload-gcse.c (struct occr): Strengthen field "insn" from
12205         rtx to rtx_insn *.
12206         (struct unoccr): Likewise.
12207         (struct modifies_mem): Likewise.
12208         (alloc_mem): Likewise for local "insn".
12209         (insert_expr_in_table): Likewise for param "insn".
12210         (dump_expr_hash_table_entry): Likewise for local "insn".
12211         (oprs_unchanged_p): Likewise for param "insn".
12212         (load_killed_in_block_p): Likewise for local "setter".
12213         (record_last_reg_set_info): Likewise for param "insn".
12214         (record_last_reg_set_info_regno): Likewise.
12215         (record_last_mem_set_info): Likewise.
12216         (record_last_set_info): Likewise for local "last_set_insn".
12217         (record_opr_changes): Likewise for param "insn".
12218         (hash_scan_set): Likewise.
12219         (compute_hash_table): Likewise for local "insn".
12220         (get_avail_load_store_reg): Likewise for param "insn".
12221         (eliminate_partially_redundant_load): Likewise, also for locals
12222         "avail_insn", "next_pred_bb_end".  Replace use of NULL_RTX with
12223         RTX for insns.
12224         (eliminate_partially_redundant_loads): Likewise for local "insn".
12226 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12228         * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
12229         rtx to rtx_insn *.
12230         (expand_binop): Likewise for locals "entry_last", "last", "insns"
12231         (expand_twoval_unop): Likewise for locals entry_last", "last".
12232         (expand_twoval_binop): Likewise.
12233         (expand_twoval_binop_libfunc): Likewise for local "insns".
12234         (widen_leading): Likewise for local "last".
12235         (expand_doubleword_clz): Likewise for local "seq".  Strengthen
12236         locals "hi0_label", "after_label" from rtx to rtx_code_label *.
12237         (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
12238         (expand_parity): Likewise for locals "last" and "seq".
12239         (expand_ffs): Likewise for local "seq".  Strengthen local
12240         "nonzero_label" from rtx to rtx_code_label *.
12241         (expand_absneg_bit): Strengthen local "insns" from rtx to
12242         rtx_insn *.
12243         (expand_unop_direct): Likewise for local "last".
12244         (expand_unop): Likewise for locals "last", "insns".
12245         (expand_abs_nojump): Likewise for local "last".
12246         (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
12247         (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
12248         rtx_insn *.
12249         (expand_copysign_absneg): Strengthen local "label" from rtx to
12250         rtx_code_label *.
12251         (expand_copysign_bit): Strengthen local "insns" from rtx to
12252         rtx_insn *.
12253         (struct no_conflict_data): Likewise for fields "first", "insn".
12254         (emit_libcall_block_1): Likewise for param "insns" and locals
12255         "next", "last", "insn".
12256         (emit_libcall_block): For now, add a checked cast to rtx_insn *
12257         on "insns" when invoking emit_libcall_block_1.  Ultimately we
12258         want to strengthen insns itself.
12259         (prepare_cmp_insn): Strengthen local "last" from rtx to
12260         rtx_insn *.
12261         (emit_cmp_and_jump_insn_1): Likewise for local "insn".
12262         (prepare_float_lib_cmp): Likewise for local "insns".
12263         (emit_conditional_move): Likewise for local "last".
12264         (emit_conditional_add): Likewise.
12265         (have_sub2_insn): Likewise for local "seq".
12266         (expand_float): Likewise for local "insns".  Strengthen locals
12267         "label", "neglabel" from rtx to rtx_code_label *.
12268         (expand_fix): Likewise for locals "last", "insn", "insns" (to
12269         rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
12270         (expand_fixed_convert): Likewise for local "insns" (to
12271         rtx_insn *).
12272         (expand_sfix_optab): Likewise for local "last".
12273         (expand_compare_and_swap_loop): Strengthen local "label" from rtx
12274         to rtx_code_label *.
12275         (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
12276         from rtx to rtx_insn *.
12277         (expand_atomic_fetch_op): Likewise for local "insn".
12278         (maybe_legitimize_operand_same_code): Likewise for local "last".
12279         (maybe_legitimize_operands): Likewise.
12281 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12283         * modulo-sched.c (struct ps_reg_move_info): Strengthen field
12284         "insn" from rtx to rtx_insn *.
12285         (ps_rtl_insn): Likewise for return type.
12286         (doloop_register_get): Likewise for params "head", "tail" and
12287         locals "insn", "first_insn_not_to_check".
12288         (schedule_reg_move): Likewise for local "this_insn".
12289         (schedule_reg_moves): Add a checked cast to rtx_insn * to result
12290         of gen_move_insn for now.
12291         (reset_sched_times): Strengthen local "insn" from rtx to
12292         rtx_insn *.
12293         (permute_partial_schedule): Likewise.
12294         (duplicate_insns_of_cycles): Likewise for local "u_insn".
12295         (dump_insn_location): Likewise for param "insn".
12296         (loop_canon_p): Likewise for local "insn".
12297         (sms_schedule): Likewise.
12298         (print_partial_schedule): Likewise.
12299         (ps_has_conflicts): Likewise.
12301 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12303         * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
12304         "tailp" from rtx * to rtx_insn **.
12306         * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
12307         from rtx to rtx_insn *.
12308         * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
12309         "tailp" from rtx * to rtx_insn **.  Strengthen locals "beg_head",
12310         "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
12311         rtx to rtx_insn *.
12312         * modulo-sched.c (const_iteration_count): Strengthen return type
12313         and locals "insn", "head", "tail" from rtx to rtx_insn *.  Replace
12314         use of NULL_RTX with NULL when working with insns.
12315         (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
12316         to rtx_insn *.
12317         (sms_schedule): Likewise.
12318         * sched-rgn.c (init_ready_list): Likewise, also for locals
12319         "src_head" and "src_next_tail".
12320         (compute_block_dependences): Likewise.
12321         (free_block_dependencies): Likewise.
12322         (debug_rgn_dependencies): Likewise.
12323         (free_rgn_deps): Likewise.
12324         (compute_priorities): Likewise.
12325         (schedule_region): Likewise.
12326         * sel-sched.c (find_ebb_boundaries): Likewise.
12328         * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
12329         "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
12331 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12333         * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
12334         from rtx to rtx_insn *.
12335         (new_seginfo): Likewise for param "insn".
12336         (create_pre_exit): Likewise for locals "last_insn",
12337         "before_return_copy", "return_copy".
12338         (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
12339         "mode_set".
12341 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12343         * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
12344         from rtx to rtx_insn *.
12345         (lra_push_insn): Likewise for 1st param.
12346         (lra_push_insn_and_update_insn_regno_info): Likewise.
12347         (lra_pop_insn): Likewise for return type.
12348         (lra_invalidate_insn_data): Likewise for 1st param.
12349         (lra_set_insn_deleted): Likewise.
12350         (lra_delete_dead_insn): Likewise.
12351         (lra_process_new_insns): Likewise for first 3 params.
12352         (lra_set_insn_recog_data): Likewise for 1st param.
12353         (lra_update_insn_recog_data): Likewise.
12354         (lra_set_used_insn_alternative): Likewise.
12355         (lra_invalidate_insn_regno_info): Likewise.
12356         (lra_update_insn_regno_info): Likewise.
12357         (lra_former_scratch_operand_p): Likewise.
12358         (lra_eliminate_regs_1): Likewise.
12359         (lra_get_insn_recog_data): Likewise.
12361         * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
12362         rtx to rtx_insn *.
12364         * lra-coalesce.c (move_freq_compare_func): Likewise for locals
12365         "mv1" and "mv2".
12366         (substitute_within_insn): New.
12367         (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
12368         rtx_insn *.  Strengthen sorted_moves from rtx * to rxt_insn **.
12369         Replace call to "substitute" with call to substitute_within_insn.
12371         * lra-constraints.c (curr_insn): Strengthen from rtx to
12372         rtx_insn *.
12373         (get_equiv_with_elimination): Likewise for param "insn".
12374         (match_reload): Strengthen params "before" and "after" from rtx *
12375         to rtx_insn **.
12376         (emit_spill_move): Likewise for return type.  Add a checked cast
12377         to rtx_insn * on result of gen_move_insn for now.
12378         (check_and_process_move): Likewise for local "before".  Replace
12379         NULL_RTX with NULL when referring to insns.
12380         (process_addr_reg): Strengthen params "before" and "after" from
12381         rtx * to rtx_insn **.
12382         (insert_move_for_subreg): Likewise.
12383         (simplify_operand_subreg): Strengthen locals "before" and "after"
12384         from rtx to rtx_insn *.
12385         (process_address_1): Strengthen params "before" and "after" from
12386         rtx * to rtx_insn **.  Strengthen locals "insns", "last_insn" from
12387         rtx to rtx_insn *.
12388         (process_address): Strengthen params "before" and "after" from
12389         rtx * to rtx_insn **.
12390         (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
12391         (curr_insn_transform): Strengthen locals "before" and "after"
12392         from rtx to rtx_insn *.  Replace NULL_RTX with NULL when referring
12393         to insns.
12394         (loc_equivalence_callback): Update cast of "data", changing
12395         resulting type from rtx to rtx_insn *.
12396         (substitute_pseudo_within_insn): New.
12397         (inherit_reload_reg): Strengthen param "insn" from rtx to
12398         rtx_insn *; likewise for local "new_insns".  Replace NULL_RTX with
12399         NULL when referring to insns.  Add a checked cast to rtx_insn *
12400         when using usage_insn to invoke lra_update_insn_regno_info.
12401         (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
12402         likewise for locals "restore", "save".  Add checked casts to
12403         rtx_insn * when using usage_insn to invoke
12404         lra_update_insn_regno_info and lra_process_new_insns.  Replace
12405         NULL_RTX with NULL when referring to insns.
12406         (split_if_necessary): Strengthen param "insn" from rtx to
12407         rtx_insn *.
12408         (update_ebb_live_info): Likewise for params "head", "tail" and local
12409         "prev_insn".
12410         (get_last_insertion_point): Likewise for return type and local "insn".
12411         (get_live_on_other_edges): Likewise for local "last".
12412         (inherit_in_ebb): Likewise for params "head", "tail" and locals
12413         "prev_insn", "next_insn", "restore".
12414         (remove_inheritance_pseudos): Likewise for local "prev_insn".
12415         (undo_optional_reloads): Likewise for local "insn".
12417         * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
12418         "insn".
12419         (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
12420         insns.
12421         (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
12422         rtx_insn *.
12423         (spill_pseudos): Likewise for local "insn".
12424         (init_elimination): Likewise.
12425         (process_insn_for_elimination): Likewise for param "insn".
12427         * lra-lives.c (curr_insn): Likewise.;
12429         * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
12430         (remove_pseudos): Likewise for param "insn".
12431         (spill_pseudos): Likewise for local "insn".
12432         (lra_final_code_change): Likewise for locals "insn", "curr".
12434         * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
12435         (lra_set_insn_deleted): Likewise.
12436         (lra_delete_dead_insn): Likewise, and for local "prev".
12437         (new_insn_reg): Likewise for param "insn".
12438         (lra_set_insn_recog_data): Likewise.
12439         (lra_update_insn_recog_data): Likewise.
12440         (lra_set_used_insn_alternative): Likewise.
12441         (get_insn_freq): Likewise.
12442         (invalidate_insn_data_regno_info): Likewise.
12443         (lra_invalidate_insn_regno_info): Likewise.
12444         (lra_update_insn_regno_info): Likewise.
12445         (lra_constraint_insn_stack): Strengthen from vec<rtx> to
12446         vec<rtx_insn *>.
12447         (lra_push_insn_1): Strengthen param "insn" from rtx to
12448         rtx_insn *.
12449         (lra_push_insn): Likewise.
12450         (lra_push_insn_and_update_insn_regno_info): Likewise.
12451         (lra_pop_insn): Likewise for return type and local "insn".
12452         (push_insns): Likewise for params "from", "to", and local "insn".
12453         (setup_sp_offset): Likewise for params "from", "last" and locals
12454         "before", "insn".
12455         (lra_process_new_insns): Likewise for params "insn", "before",
12456         "after" and local "last".
12457         (struct sloc): Likewise for field "insn".
12458         (lra_former_scratch_operand_p): Likewise for param "insn".
12459         (remove_scratches): Likewise for locals "insn", "last".
12460         (check_rtl): Likewise for local "insn".
12461         (add_auto_inc_notes): Likewise for param "insn".
12462         (update_inc_notes): Likewise for local "insn".
12463         (lra): Replace NULL_RTX with NULL when referring to insn.
12465 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12467         * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
12468         to rtx_insn *.
12469         (resolve_reg_notes): Likewise.
12470         (resolve_simple_move): Likewise for return type, param "insn", and
12471         locals "insns", "minsn".
12472         (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
12473         (resolve_use): Likewise.
12474         (resolve_debug): Likewise.
12475         (find_decomposable_shift_zext): Likewise.
12476         (resolve_shift_zext): Likewise for return type, param "insn", and
12477         locals "insns", "in".  Eliminate use of NULL_RTX in favor of NULL.
12478         (decompose_multiword_subregs): Likewise for local "insn",
12479         "orig_insn", "decomposed_shift", "end".
12481 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12483         * basic-block.h (basic_block split_edge_and_insert): Strengthen
12484         param "insns" from rtx to rtx_insn *.
12486         * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
12487         rtx to rtx_insn *.
12488         (struct iv_to_split): Likewise.
12489         (loop_exit_at_end_p): Likewise for local "insn".
12490         (split_edge_and_insert): Likewise for param "insns".
12491         (compare_and_jump_seq): Likewise for return type, param "cinsn",
12492         and locals "seq", "jump".
12493         (unroll_loop_runtime_iterations): Likewise for locals "init_code",
12494         "branch_code"; update invocations of compare_and_jump_seq to
12495         eliminate NULL_RTX in favor of NULL.
12496         (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
12497         rtx to rtx_insn *.
12498         (reset_debug_uses_in_loop): Likewise.
12499         (analyze_insn_to_expand_var): Likewise for param "insn".
12500         (analyze_iv_to_split_insn): Likewise.
12501         (analyze_insns_in_loop): Likewise for local "insn".
12502         (insert_base_initialization): Likewise for param
12503         "insn" and local "seq".
12504         (split_iv): Likewise for param "insn" and local "seq".
12505         (expand_var_during_unrolling): Likewise for param "insn".
12506         (insert_var_expansion_initialization): Likewise for local "seq".
12507         (combine_var_copies_in_loop_exit): Likewise.
12508         (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
12509         "insn".
12510         (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
12511         (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
12512         "next".
12514 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12516         * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
12517         rtx_insn *.
12518         (iv_analyze_result): Likewise.
12519         (iv_analyze_expr): Likewise.
12520         (biv_p): Likewise.
12522         * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
12523         local "def_insn" from rtx to rtx_insn *.
12524         (get_biv_step_1): Likewise for local "insn".
12525         (iv_analyze_expr): Likewise for param "insn".
12526         (iv_analyze_def): Likewise for local "insn".
12527         (iv_analyze_op): Likewise for param "insn".
12528         (iv_analyze): Likewise.
12529         (iv_analyze_result): Likewise.
12530         (biv_p): Likewise.
12531         (suitable_set_for_replacement): Likewise.
12532         (simplify_using_initial_values): Likewise for local "insn".
12533         (iv_number_of_iterations): Likewise for param "insn".
12534         (check_simple_exit): Add checked cast to rtx_insn when invoking
12535         iv_number_of_iterations for now (until get_condition is
12536         strengthened).
12538         * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
12539         "insn" from rtx to rtx_insn *.
12540         (analyze_insns_in_loop): Likewise for local "insn".
12542 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12544         * loop-invariant.c (struct use): Strengthen field "insn" from rtx
12545         to rtx_insn *.
12546         (struct invariant): Likewise.
12547         (hash_invariant_expr_1): Likewise for param "insn".
12548         (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
12549         (find_exits): Likewise for local "insn".
12550         (create_new_invariant): Likewise for param "insn".
12551         (check_dependencies): Likewise.
12552         (find_invariant_insn): Likewise.
12553         (record_uses): Likewise.
12554         (find_invariants_insn): Likewise.
12555         (find_invariants_bb): Likewise for local "insn".
12556         (get_pressure_class_and_nregs): Likewise for param "insn".
12557         (calculate_loop_reg_pressure): Likewise for local "insn".
12559 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12561         * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
12562         to rtx_insn *.
12563         (add_test): Likewise for locals "seq", "jump".
12564         (doloop_modify): Likewise for locals "sequence", "jump_insn".
12566 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12568         * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
12569         rtx_insn *.
12570         (rebuild_jump_labels_chain): Likewise for param "chain".
12572         * cfgexpand.c (pass_expand::execute): Add checked cast to
12573         rtx_insn * when calling rebuild_jump_labels_chain in region where
12574         we know e->insns.r is non-NULL.
12576         * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
12577         rtx_insn *.
12578         (rebuild_jump_labels): Likewise.
12579         (rebuild_jump_labels_chain): Likewise for param "chain".
12580         (cleanup_barriers): Likewise for locals "insn", "next", "prev".
12581         (init_label_info): Likewise for param "f".
12582         (maybe_propagate_label_ref): Likewise for params "jump_insn",
12583         "prev_nonjump_insn".
12584         (mark_all_labels): Likewise for param "f" and locals "insn",
12585         "prev_nonjump_insn".
12587 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12589         * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
12590         from rtx to rtx_insn *insn.
12591         (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
12592         (ira_add_allocno_copy): Likewise.
12593         * ira-build.c (find_allocno_copy): Strengthen param "insn" from
12594         rtx to rtx_insn *.
12595         (ira_create_copy): Likewise.
12596         (ira_add_allocno_copy): Likewise.
12597         (create_bb_allocnos): Likewise for local "insn".
12598         * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
12599         (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
12600         process_regs_for_copy for rtx_insn * param.
12601         (add_insn_allocno_copies): Strengthen param "insn" from rtx to
12602         rtx_insn *insn.  Update NULL_RTX to NULL in invocation of
12603         process_regs_for_copy for rtx_insn * param.
12604         (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
12605         * ira-costs.c (record_reg_classes): Likewise for param "insn".
12606         (record_operand_costs): Likewise.
12607         (scan_one_insn): Likewise for return type, and for param "insn".
12608         (process_bb_for_costs): Likewise for local "insn".
12609         (process_bb_node_for_hard_reg_moves): Likewise.
12610         * ira-emit.c (struct move): Likewise for field "insn".
12611         (create_move): Eliminate use of NULL_RTX when dealing with an
12612         rtx_insn *.
12613         (emit_move_list): Strengthen return type and locals "result",
12614         "insn" from rtx to rtx_insn *insn.
12615         (emit_moves): Likewise for locals "insns", "tmp".
12616         (ira_emit): Likewise for local "insn".
12617         * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
12618         "insn".
12619         (find_call_crossed_cheap_reg): Likewise.
12620         (process_bb_node_lives): Likewise for local "insn".
12621         * ira.c (decrease_live_ranges_number): Likewise.
12622         (compute_regs_asm_clobbered): Likewise.
12623         (build_insn_chain): Likewise.
12624         (find_moveable_pseudos): Likewise, also locals "def_insn",
12625         "use_insn", "x".  Also strengthen local "closest_uses" from rtx *
12626         to rtx_insn **.  Add a checked cast when assigning from
12627         "closest_use" into closest_uses array in a region where we know
12628         it's a non-NULL insn.
12629         (interesting_dest_for_shprep): Strengthen param "insn" from rtx
12630         to rtx_insn *.
12631         (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
12632         "last_interesting_insn", "uin".
12633         (move_unallocated_pseudos): Likewise for locals "def_insn",
12634         "move_insn", "newinsn".
12636 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12638         * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
12639         Strengthen locals "done_label", "do_error" from rtx to
12640         rtx_code_label *.
12641         (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
12642         from rtx to rtx_insn *.  Strengthen local "sub_check from rtx to
12643         rtx_code_label *.
12644         (ubsan_expand_si_overflow_neg_check): Likewise for locals
12645         "done_label", "do_error" to rtx_code_label * and local  "last" to
12646         rtx_insn *.
12647         (ubsan_expand_si_overflow_mul_check): Likewise for locals
12648         "done_label", "do_error", "large_op0", "small_op0_large_op1",
12649         "one_small_one_large", "both_ops_large", "after_hipart_neg",
12650         "after_lopart_neg", "do_overflow", "hipart_different"  to
12651         rtx_code_label * and local  "last" to rtx_insn *.
12653 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12655         * init-regs.c (initialize_uninitialized_regs): Strengthen locals
12656         "insn" and "move_insn" from rtx to rtx_insn *.
12658 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12660         * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
12661         rtx_insn *.
12662         (cheap_bb_rtx_cost_p): Likewise.
12663         (first_active_insn): Likewise for return type and local "insn".
12664         (last_active_insn):  Likewise for return type and locals "insn",
12665         "head".
12666         (struct noce_if_info): Likewise for fields "jump", "insn_a",
12667         "insn_b".
12668         (end_ifcvt_sequence): Likewise for return type and locals "insn",
12669         "seq".
12670         (noce_try_move): Likewise for local "seq".
12671         (noce_try_store_flag): Likewise.
12672         (noce_try_store_flag_constants): Likewise.
12673         (noce_try_addcc): Likewise.
12674         (noce_try_store_flag_mask): Likewise.
12675         (noce_try_cmove): Likewise.
12676         (noce_try_minmax): Likewise.
12677         (noce_try_abs): Likewise.
12678         (noce_try_sign_mask): Likewise.
12679         (noce_try_bitop): Likewise.
12680         (noce_can_store_speculate_p): Likewise for local "insn".
12681         (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
12682         seq".
12683         (check_cond_move_block): Likewise for local "insn".
12684         (cond_move_convert_if_block): Likewise.
12685         (cond_move_process_if_block): Likewise for locals "seq",
12686         "loc_insn".
12687         (noce_find_if_block): Likewise for local "jump".
12688         (merge_if_block): Likewise for local "last".
12689         (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
12690         (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
12691         (block_has_only_trap): Likewise for return type and local "trap".
12692         (find_if_case_1): Likewise for local "jump".
12693         (dead_or_predicable): Likewise for locals "head", "end", "jump",
12694         "insn".
12696 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12698         * hw-doloop.h (struct hwloop_info_d): Strengthen fields
12699         "last_insn", "loop_end" from rtx to rtx_insn *.
12701         * hw-doloop.c (scan_loop): Likewise for local "insn".
12702         (discover_loop): Likewise for param "tail_insn".
12703         (discover_loops): Likewise for local "tail".
12705         * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
12706         cast to rtx_insn * when assigning from an rtx local to a
12707         hwloop_info's "last_insn" field.
12709 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12711         * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
12712         (add_delay_dependencies): Strengthen local "pro" from rtx to
12713         rtx_insn *.
12714         (recompute_todo_spec): Likewise.
12715         (dep_cost_1): Likewise for locals "insn", "used".
12716         (schedule_insn): Likewise for local "dbg".
12717         (schedule_insn): Likewise for locals "pro", "next".
12718         (unschedule_insns_until): Likewise for local "con".
12719         (restore_pattern): Likewise for local "next".
12720         (estimate_insn_tick): Likewise for local "pro".
12721         (resolve_dependencies): Likewise for local "next".
12722         (fix_inter_tick): Likewise.
12723         (fix_tick_ready): Likewise for local "pro".
12724         (add_to_speculative_block): Likewise for locals "check", "twin",
12725         "pro".
12726         (sched_extend_bb): Likewise for locals "end", "insn".
12727         (init_before_recovery): Likewise for local "x".
12728         (sched_create_recovery_block): Likewise for local "barrier".
12729         (create_check_block_twin): Likewise for local "pro".
12730         (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
12731         "consumer".
12732         (unlink_bb_notes): Update for change to type of bb_header.
12733         Strengthen locals "prev", "label", "note", "next" from rtx to
12734         rtx_insn *.
12735         (clear_priorities): Likewise for local "pro".
12737 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12739         * gcse.c (struct occr): Strengthen field "insn" from rtx to
12740         rtx_insn *.
12741         (test_insn): Likewise for this global.
12742         (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
12743         const rtx_insn *.
12744         (oprs_anticipatable_p): Likewise.
12745         (oprs_available_p): Likewise.
12746         (insert_expr_in_table): Strengthen param "insn" from  rtx to
12747         rtx_insn *.
12748         (hash_scan_set): Likewise.
12749         (hash_scan_clobber): Likewise.
12750         (hash_scan_call): Likewise.
12751         (hash_scan_insn): Likewise.
12752         (compute_hash_table_work): Likewise for local "insn".
12753         (process_insert_insn): Likewise for return type and local "pat".
12754         (insert_insn_end_basic_block): Likewise for locals "new_insn",
12755         "pat", "pat_end", "maybe_cc0_setter".
12756         (pre_edge_insert): Likewise for local "insn".
12757         (pre_insert_copy_insn): Likewise for param "insn".
12758         (pre_insert_copies): Likewise for local "insn".
12759         (struct set_data): Likewise for field "insn".
12760         (single_set_gcse): Likewise for param "insn".
12761         (gcse_emit_move_after): Likewise.
12762         (pre_delete): Likewise for local "insn".
12763         (update_bb_reg_pressure): Likewise for param "from" and local
12764         "insn".
12765         (should_hoist_expr_to_dom): Likewise for param "from".
12766         (hoist_code): Likewise for local "insn".
12767         (get_pressure_class_and_nregs): Likewise for param "insn".
12768         (calculate_bb_reg_pressure): Likewise for local "insn".
12769         (compute_ld_motion_mems): Likewise.
12771 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12773         * genpeep.c (main): Rename param back from "uncast_ins1" to
12774         "ins1", strengthening from rtx to rtx_insn *.  Drop now-redundant
12775         checked cast.
12777         * output.h (peephole): Strengthen param from rtx to rtx_insn *.
12779 2014-08-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
12781         PR target/62195
12782         * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
12783         documentation to state it is only for VSX operations.
12785         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
12786         constraint only active if VSX.
12788         * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
12789         wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
12790         (lfiwzx): Likewise.
12792 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12794         * fwprop.c (single_def_use_dom_walker::before_dom_children):
12795         Strengthen local "insn" from rtx to rtx_insn *.
12796         (use_killed_between): Likewise for param "target_insn".
12797         (all_uses_available_at): Likewise for param "target_insn" and
12798         local "next".
12799         (update_df_init): Likewise for params "def_insn", "insn".
12800         (update_df): Likewise for param "insn".
12801         (try_fwprop_subst): Likewise for param "def_insn" and local
12802         "insn".
12803         (free_load_extend): Likewise for param "insn".
12804         (forward_propagate_subreg): Likewise for param "def_insn" and
12805         local "use_insn".
12806         (forward_propagate_asm): Likewise for param "def_insn" and local
12807         "use_insn".
12808         (forward_propagate_and_simplify): Likewise for param "def_insn"
12809         and local "use_insn".
12810         (forward_propagate_into): Likewise for locals "def_insn" and
12811         "use_insn".
12813 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12815         * function.c (emit_initial_value_sets): Strengthen local "seq"
12816         from rtx to rtx_insn *.
12817         (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
12818         local "seq".
12819         (instantiate_virtual_regs): Likewise for local "insn".
12820         (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
12821         (reorder_blocks_1): Likewise for param "insns" and local "insn".
12822         (expand_function_end): Likewise for locals "insn" and "seq".
12823         (epilogue_done): Likewise for local "insn".
12824         (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
12825         "last", "trial".
12826         (reposition_prologue_and_epilogue_notes): Likewise for locals
12827         "insn", "last", "note", "first".
12828         (match_asm_constraints_1): Likewise for param "insn" and local "insns".
12829         (pass_match_asm_constraints::execute): Likewise for local "insn".
12831 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12833         * output.h (final_scan_insn): Strengthen return type from rtx to
12834         rtx_insn *.
12835         (final_forward_branch_p): Likewise for param.
12836         (current_output_insn): Likewise for this global.
12838         * final.c (rtx debug_insn): Likewise for this variable.
12839         (current_output_insn): Likewise.
12840         (get_attr_length_1): Rename param "insn" to "uncast_insn",
12841         adding "insn" back in as an rtx_insn * with a checked cast, so
12842         that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
12843         first param.
12844         (compute_alignments): Strengthen local "label" from rtx to
12845         rtx_insn *.
12846         (shorten_branches): Rename param from "first" to "uncast_first",
12847         introducing a new local rtx_insn * "first" using a checked cast to
12848         effectively strengthen "first" from rtx to rtx_insn * without
12849         affecting the type signature.  Strengthen locals "insn", "seq",
12850         "next", "label" from rtx to rtx_insn *.
12851         (change_scope): Strengthen param "orig_insn" and local "insn" from
12852         rtx to rtx_insn *.
12853         (final_start_function): Rename param from "first" to "uncast_first",
12854         introducing a new local rtx_insn * "first" using a checked cast to
12855         effectively strengthen "first" from rtx to rtx_insn * without
12856         affecting the type signature.  Strengthen local "insn" from rtx to
12857         rtx_insn *.
12858         (dump_basic_block_info): Strengthen param "insn" from rtx to
12859         rtx_insn *.
12860         (final): Rename param from "first" to "uncast_first",
12861         introducing a new local rtx_insn * "first" using a checked cast to
12862         effectively strengthen "first" from rtx to rtx_insn * without
12863         affecting the type signature.  Strengthen locals "insn", "next"
12864         from rtx to rtx_insn *.
12865         (output_alternate_entry_point): Strengthen param "insn" from rtx to
12866         rtx_insn *.
12867         (call_from_call_insn): Strengthen param "insn" from rtx to
12868         rtx_call_insn *.
12869         (final_scan_insn): Rename param from "insn" to "uncast_insn",
12870         introducing a new local rtx_insn * "insn" using a checked cast to
12871         effectively strengthen "insn" from rtx to rtx_insn * without
12872         affecting the type signature.  Strengthen return type and locals
12873         "next", "note", "prev", "new_rtx" from rtx to rtx_insn *.  Remove
12874         now-redundant checked cast to rtx_insn * from both invocations of
12875         debug_hooks->var_location.  Convert CALL_P into a dyn_cast,
12876         introducing a local "call_insn" for use when invoking
12877         call_from_call_insn.
12878         (notice_source_line): Strengthen param "insn" from rtx to
12879         rtx_insn *.
12880         (leaf_function_p): Likewise for local "insn".
12881         (final_forward_branch_p): Likewise.
12882         (leaf_renumber_regs): Likewise for param "first".
12883         (rest_of_clean_state): Likewise for locals "insn" and "next".
12884         (self_recursive_call_p): Likewise for param "insn".
12885         (collect_fn_hard_reg_usage): Likewise for local "insn".
12886         (get_call_fndecl): Likewise for param "insn".
12887         (get_call_cgraph_rtl_info): Likewise.
12888         (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
12889         introducing a new local rtx_insn * "insn" using a checked cast to
12890         effectively strengthen "insn" from rtx to rtx_insn * without
12891         affecting the type signature.
12893         * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
12894         cast when assigning from param "insn" to current_output_insn.
12895         (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
12896         so that we can assign it back to current_output_insn.
12898 2014-08-20  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
12900         * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
12901         atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
12902         atmxt540s and atmxt540sreva devices.
12903         * config/avr/avr-tables.opt: Regenerate.
12904         * config/avr/t-multilib: Regenerate.
12905         * doc/avr-mmcu.texi: Regenerate.
12907 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12909         * expr.c (convert_move): Strengthen local "insns" from rtx to
12910         rtx_insn *.
12911         (emit_block_move_via_loop): Strengthen locals "cmp_label" and
12912         "top_label" from rtx to rtx_code_label *.
12913         (move_block_to_reg): Strengthen local "insn", "last" from rtx to
12914         rtx_insn *.
12915         (emit_single_push_insn): Likewise for locals "prev", "last".
12916         (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
12917         to rtx_code_label *.
12918         (store_constructor): Likewise for locals "loop_start", "loop_end".
12919         (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
12920         rtx_insn *.
12921         (expand_expr_real_2): Likewise.
12922         (expand_expr_real_1): Strengthen local "label" from rtx to
12923         rtx_code_label *.
12925 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12927         * expmed.c (store_bit_field_using_insv): Strengthen local "last"
12928         from rtx to rtx_insn *.
12929         (store_bit_field_1): Likewise.
12930         (extract_bit_field_1): Likewise.
12931         (expand_mult_const): Likewise for local "insns".
12932         (expmed_mult_highpart): Strengthen local "label" from rtx to
12933         rtx_code_label *.
12934         (expand_smod_pow2): Likewise.
12935         (expand_sdiv_pow2): Likewise.
12936         (expand_divmod): Strengthen locals "last", "insn" from rtx to
12937         rtx_insn *.  Strengthen locals "label", "label1", "label2",
12938         "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
12939         (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
12940         (emit_store_flag): Likewise.
12941         (emit_store_flag_force): Strengthen local "label" from rtx to
12942         rtx_code_label *.
12943         (do_cmp_and_jump): Likewise for param "label".
12945 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12947         * explow.c (force_reg): Strengthen local "insn" from rtx to
12948         rtx_insn *.
12949         (adjust_stack_1): Likewise.
12950         (allocate_dynamic_stack_space): Likewise.  Strengthen locals
12951         "final_label", "available_label", "space_available" from rtx to
12952         rtx_code_label *.
12953         (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
12954         (anti_adjust_stack_and_probe): Likewise.
12956 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12958         * except.h (sjlj_emit_function_exit_after): Strengthen param
12959         "after" from rtx to rtx_insn *.  This is only called with
12960         result of get_last_insn (in function.c) so type-change should be
12961         self-contained.
12963         * function.h (struct rtl_eh): Strengthen field "ehr_label" from
12964         rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
12965         to rtx_insn *.  These fields are only used from except.c so this
12966         type-change should be self-contained to this patch.
12968         * except.c (emit_to_new_bb_before): Strengthen param "seq" and
12969         local "last" from rtx to rtx_insn *.
12970         (dw2_build_landing_pads): Likewise for local "seq".
12971         (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
12972         (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
12973         rtx to rtx_code_label *.  Strengthen locals "fn_begin", "seq" from
12974         rtx to rtx_insn *.
12975         (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
12976         to rtx_insn *.
12977         (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
12978         (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
12979         (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
12980         referring to an insn.  Strengthen local "dispatch_label" from
12981         rtx to rtx_code_label *.
12982         (set_nothrow_function_flags): Strengthen local "insn" from rtx to
12983         rtx_insn *.
12984         (expand_eh_return): Strengthen local "around_label" from
12985         rtx to rtx_code_label *.
12986         (convert_to_eh_region_ranges): Strengthen locals "iter",
12987         "last_action_insn", "first_no_action_insn",
12988         "first_no_action_insn_before_switch",
12989         "last_no_action_insn_before_switch", from rtx to rtx_insn *.
12991 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12993         * dwarf2out.c (last_var_location_insn): Strengthen this variable
12994         from rtx to rtx_insn *.
12995         (cached_next_real_insn): Likewise.
12996         (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
12997         working with insns.
12998         (dwarf2out_var_location): Strengthen locals "next_real",
12999         "next_note", "expected_next_loc_note", "last_start", "insn" from
13000         rtx to rtx_insn *.
13002 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13004         * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
13005         from rtx to rtx_insn *.
13006         (create_pseudo_cfg): Likewise for local "insn".
13008 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13010         * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
13011         from rtx to rtx_insn *.
13012         (df_bb_regno_last_def_find): Likewise.
13014         * df-problems.c (df_rd_bb_local_compute): Likewise.
13015         (df_lr_bb_local_compute): Likewise.
13016         (df_live_bb_local_compute): Likewise.
13017         (df_chain_remove_problem): Likewise.
13018         (df_chain_create_bb): Likewise.
13019         (df_word_lr_bb_local_compute): Likewise.
13020         (df_remove_dead_eq_notes): Likewise for param "insn".
13021         (df_note_bb_compute): Likewise for local "insn".
13022         (simulate_backwards_to_point): Likewise.
13023         (df_md_bb_local_compute): Likewise.
13025         * df-scan.c (df_scan_free_bb_info): Likewise.
13026         (df_scan_start_dump): Likewise.
13027         (df_scan_start_block): Likewise.
13028         (df_install_ref_incremental): Likewise for local "insn".
13029         (df_insn_rescan_all): Likewise.
13030         (df_reorganize_refs_by_reg_by_insn): Likewise.
13031         (df_reorganize_refs_by_insn_bb): Likewise.
13032         (df_recompute_luids): Likewise.
13033         (df_bb_refs_record): Likewise.
13034         (df_update_entry_exit_and_calls): Likewise.
13035         (df_bb_verify): Likewise.
13037 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13039         * ddg.h (struct ddg_node): Strengthen fields "insn" and
13040         "first_note" from rtx to rtx_insn *.
13041         (get_node_of_insn): Likewise for param 2 "insn".
13042         (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
13044         * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
13045         rtx_insn *.
13046         (mem_write_insn_p): Likewise.
13047         (mem_access_insn_p): Likewise.
13048         (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
13049         (def_has_ccmode_p): Likewise for param "insn".
13050         (add_cross_iteration_register_deps): Likewise for locals
13051         "def_insn" and "use_insn".
13052         (insns_may_alias_p): Likewise for params "insn1" and "insn2".
13053         (build_intra_loop_deps): Likewise for local "src_insn".
13054         (create_ddg): Strengthen locals "insn" and "first_note" from rtx
13055         to rtx_insn *.
13056         (get_node_of_insn): Likewise for param "insn".
13058 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13060         * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
13061         (deletable_insn_p): Strengthen param "insn" from rtx to
13062         rtx_insn *.  Add checked cast to rtx_call_insn when invoking
13063         find_call_stack_args, since this is guarded by CALL_P (insn).
13064         (marked_insn_p): Strengthen param "insn" from rtx to
13065         rtx_insn *.
13066         (mark_insn): Likewise.  Add checked cast to rtx_call_insn when
13067         invoking find_call_stack_args, since this is guarded by
13068         CALL_P (insn).
13069         (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
13070         rtx_insn *; we know this is an insn since this was called by
13071         mark_nonreg_stores.
13072         (mark_nonreg_stores_2): Likewise.
13073         (mark_nonreg_stores): Strengthen param "insn" from rtx to
13074         rtx_insn *.
13075         (find_call_stack_args): Strengthen param "call_insn" from rtx to
13076         rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
13077         to rtx_insn *.
13078         (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
13079         from rtx to rtx_insn *.
13080         (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
13081         "next", "ref_insn".
13082         (delete_unmarked_insns): Likewise for locals "insn", "next".
13083         (prescan_insns_for_dce): Likewise for locals "insn", "prev".
13084         (mark_reg_dependencies): Likewise for param "insn".
13085         (rest_of_handle_ud_dce): Likewise for local "insn".
13086         (word_dce_process_block): Likewise.
13087         (dce_process_block): Likewise.
13089 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13091         * cse.c (struct qty_table_elem): Strengthen field "const_insn"
13092         from rtx to rtx_insn *.
13093         (struct change_cc_mode_args): Likewise for field "insn".
13094         (this_insn): Strengthen from rtx to rtx_insn *.
13095         (make_new_qty): Replace use of NULL_RTX with NULL when dealing
13096         with insn.
13097         (validate_canon_reg): Strengthen param "insn" from rtx to
13098         rtx_insn *.
13099         (canon_reg): Likewise.
13100         (fold_rtx): Likewise.  Replace use of NULL_RTX with NULL when
13101         dealing with insn.
13102         (record_jump_equiv): Strengthen param "insn" from rtx to
13103         rtx_insn *.
13104         (try_back_substitute_reg): Likewise, also for locals "prev",
13105         "bb_head".
13106         (find_sets_in_insn): Likewise for param "insn".
13107         (canonicalize_insn): Likewise.
13108         (cse_insn): Likewise.  Add a checked cast.
13109         (invalidate_from_clobbers): Likewise for param "insn".
13110         (invalidate_from_sets_and_clobbers): Likewise.
13111         (cse_process_notes_1): Replace use of NULL_RTX with NULL when
13112         dealing with insn.
13113         (cse_prescan_path): Strengthen local "insn" from rtx to
13114         rtx_insn *.
13115         (cse_extended_basic_block): Likewise for locals "insn" and
13116         "prev_insn".
13117         (cse_main): Likewise for param "f".
13118         (check_for_label_ref): Likewise for local "insn".
13119         (set_live_p): Likewise for second param ("insn").
13120         (insn_live_p): Likewise for first param ("insn") and for local
13121         "next".
13122         (cse_change_cc_mode_insn): Likewise for first param "insn".
13123         (cse_change_cc_mode_insns): Likewise for first and second params
13124         "start" and "end".
13125         (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
13126         and "end".
13127         (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
13128         "cc_src_insn".
13130 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13131             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13132             Anna Tikhonova  <anna.tikhonova@intel.com>
13133             Ilya Tocar  <ilya.tocar@intel.com>
13134             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13135             Ilya Verbin  <ilya.verbin@intel.com>
13136             Kirill Yukhin  <kirill.yukhin@intel.com>
13137             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13139         * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
13140         New.
13141         * config/i386/sse.md
13142         (define_mode_iterator VI248_AVX2): Delete.
13143         (define_mode_iterator VI2_AVX2_AVX512BW): New.
13144         (define_mode_iterator VI48_AVX2): Ditto.
13145         (define_insn <shift_insn><mode>3): Delete.
13146         (define_insn "<shift_insn><mode>3<mask_name>" with
13147         VI2_AVX2_AVX512BW): New.
13148         (define_insn "<shift_insn><mode>3<mask_name>" with
13149         VI48_AVX2): Ditto.
13151 2014-08-22  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/sse.md
13161         (define_mode_iterator VI4F_BRCST32x2): New.
13162         (define_mode_attr 64x2_mode): Ditto.
13163         (define_mode_attr 32x2mode): Ditto.
13164         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
13165         with VI4F_BRCST32x2): Ditto.
13166         (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
13167         with V16FI mode iterator): Ditto.
13168         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
13169         with V16FI): Ditto.
13170         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
13171         with VI8F_BRCST64x2): Ditto.
13173 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13174             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13175             Anna Tikhonova  <anna.tikhonova@intel.com>
13176             Ilya Tocar  <ilya.tocar@intel.com>
13177             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13178             Ilya Verbin  <ilya.verbin@intel.com>
13179             Kirill Yukhin  <kirill.yukhin@intel.com>
13180             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13182         * config/i386/sse.md
13183         (define_mode_iterator VI8_AVX512VL): New.
13184         (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
13186 2014-08-22  Kirill Yukhin  <kirill.yukhin@intel.com>
13188         * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
13189         (define_mode_iterator V48_AVX512VL): New.
13190         (define_mode_iterator V12_AVX512VL): Ditto.
13191         (define_insn <avx512>_load<mode>_mask): Split into two similar
13192         patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
13193         Refactor output template.
13194         (define_insn "<avx512>_store<mode>_mask"): Ditto.
13196 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13198         * cprop.c (struct occr): Strengthen field "insn" from rtx to
13199         rtx_insn *.
13200         (reg_available_p): Likewise for param "insn".
13201         (insert_set_in_table): Likewise.
13202         (hash_scan_set): Likewise.
13203         (hash_scan_insn): Likewise.
13204         (make_set_regs_unavailable): Likewise.
13205         (compute_hash_table_work): Likewise for local "insn".
13206         (reg_not_set_p): Strengthen param "insn" from const_rtx to
13207         const rtx_insn *.
13208         (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
13209         (try_replace_reg): Likewise.
13210         (find_avail_set): Likewise.
13211         (cprop_jump): Likewise for params "setcc", "jump".
13212         (constprop_register): Likewise for param "insn".
13213         (cprop_insn): Likewise.
13214         (do_local_cprop): Likewise.
13215         (local_cprop_pass): Likewise for local "insn".
13216         (bypass_block): Likewise for params "setcc" and "jump".
13217         (bypass_conditional_jumps): Likewise for locals "setcc" and
13218         "insn".
13219         (one_cprop_pass): Likewise for local "insn".
13221 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13223         * compare-elim.c (struct comparison_use): Strengthen field "insn"
13224         from rtx to rtx_insn *.
13225         (struct comparison): Likewise, also for field "prev_clobber".
13226         (conforming_compare): Likewise for param "insn".
13227         (arithmetic_flags_clobber_p): Likewise.
13228         (find_flags_uses_in_insn): Likewise.
13229         (find_comparison_dom_walker::before_dom_children): Likewise for
13230         locals "insn", "next", "last_clobber".
13231         (try_eliminate_compare): Likewise for locals "insn", "bb_head".
13233 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13235         * combine-stack-adj.c (struct csa_reflist): Strengthen field
13236         "insn" from rtx to rtx_insn *.
13237         (single_set_for_csa): Likewise for param "insn".
13238         (record_one_stack_ref): Likewise.
13239         (try_apply_stack_adjustment): Likewise.
13240         (struct record_stack_refs_data): Likewise for field "insn".
13241         (maybe_move_args_size_note): Likewise for params "last" and "insn".
13242         (prev_active_insn_bb): Likewise for return type and param "insn".
13243         (next_active_insn_bb): Likewise.
13244         (force_move_args_size_note): Likewise for params "prev" and "last"
13245         and locals "test", "next_candidate", "prev_candidate".
13246         (combine_stack_adjustments_for_block): Strengthen locals
13247         "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
13248         rtx_insn *.
13250 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13252         * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
13253         (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
13254         (subst_insn): Likewise for this variable.
13255         (added_links_insn): Likewise.
13256         (struct insn_link): Likewise for field "insn".
13257         (alloc_insn_link): Likewise for param "insn".
13258         (struct undobuf): Likewise for field "other_insn".
13259         (find_single_use): Likewise for param "insn" and local "next".
13260         (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
13261         (delete_noop_moves): Likewise for locals "insn", "next".
13262         (create_log_links): Likewise for locals "insn", "use_insn".
13263         Strengthen local "next_use" from rtx * to rtx_insn **.
13264         (insn_a_feeds_b): Likewise for params "a", "b".
13265         (combine_instructions): Likewise for param "f" and locals "insn",
13266         "next", "prev", "first", "last_combined_insn", "link", "link1",
13267         "temp".  Replace use of NULL_RTX with NULL when referring to
13268         insns.
13269         (setup_incoming_promotions): Likewise for param "first"
13270         (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
13271         (can_combine_p): Likewise for params "insn", "i3", "pred",
13272         "pred2", "succ", "succ2" and for local "p".
13273         (combinable_i3pat): Likewise for param "i3".
13274         (cant_combine_insn_p): Likewise for param "insn".
13275         (likely_spilled_retval_p): Likewise.
13276         (adjust_for_new_dest): Likewise.
13277         (update_cfg_for_uncondjump): Likewise, also for local "insn".
13278         (try_combine): Likewise for return type and for params "i3", "i2",
13279         "i1", "i0", "last_combined_insn", and for locals "insn",
13280         "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
13281         "i0_insn".  Eliminate local "tem" in favor of new locals
13282         "tem_note" and "tem_insn", the latter being an rtx_insn *.  Add a
13283         checked cast for now to rtx_insn * on the return type of
13284         gen_rtx_INSN.  Replace use of NULL_RTX with NULL when referring to
13285         insns.
13286         (find_split_point): Strengthen param "insn" from rtx to
13287         rtx_insn *.
13288         (simplify_set): Likewise for local "other_insn".
13289         (recog_for_combine): Likewise for param "insn".
13290         (record_value_for_reg): Likewise.
13291         (record_dead_and_set_regs_1): Likewise for local
13292         "record_dead_insn".
13293         (record_dead_and_set_regs): Likewise for param "insn".
13294         (record_promoted_value): Likewise.
13295         (check_promoted_subreg): Likewise.
13296         (get_last_value_validate): Likewise.
13297         (reg_dead_at_p): Likewise.
13298         (move_deaths): Likewise for param "to_insn".
13299         (distribute_notes): Likewise for params "from_insn", "i3", "i2"
13300         and locals "place", "place2", "cc0_setter".  Eliminate local "tem
13301         in favor of new locals "tem_note" and "tem_insn", the latter being
13302         an rtx_insn *.
13303         (distribute_links): Strengthen locals "place", "insn" from rtx to
13304         rtx_insn *.
13306 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13308         * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
13309         than a const_rtx.
13310         (can_delete_label_p): Require a const rtx_code_label * rather than
13311         a const_rtx.
13312         (delete_insn): Add checked cast to rtx_code_label * when we know
13313         we're dealing with LABEL_P (insn).  Strengthen local "bb_note" from
13314         rtx to rtx_insn *.
13315         (delete_insn_chain): Strengthen locals "prev" and "current" from
13316         rtx to rtx_insn *.  Add a checked cast when assigning from
13317         "finish" (strengthening the params will come later).  Add a
13318         checked cast to rtx_note * in region where we know
13319         NOTE_P (current).
13320         (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
13321         rtx_insn *.
13322         (compute_bb_for_insn): Likewise.
13323         (free_bb_for_insn): Likewise for local "insn".
13324         (compute_bb_for_insn): Likewise.
13325         (update_bb_for_insn_chain): Strengthen params "begin", "end" and
13326         local "insn" from rtx to rtx_insn *
13327         (flow_active_insn_p): Require a const rtx_insn * rather than a
13328         const_rtx.
13329         (contains_no_active_insn_p): Strengthen local "insn" from rtx to
13330         rtx_insn *.
13331         (can_fallthru): Likewise for locals "insn" and "insn2".
13332         (bb_note): Likewise for local "note".
13333         (first_insn_after_basic_block_note): Likewise for local "note" and
13334         for return type.
13335         (rtl_split_block): Likewise for locals "insn" and "next".
13336         (unique_locus_on_edge_between_p): Likewise for locals "insn" and
13337         "end".
13338         (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
13339         "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
13340         "prev", "tmp".
13341         (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
13342         them), "kill_from", "barrier", "new_insn".
13343         (patch_jump_insn): Likewise for params "insn", "old_label".
13344         (redirect_branch_edge): Likewise for locals "old_label", "insn".
13345         (force_nonfallthru_and_redirect): Likewise for locals "insn",
13346         "old_label", "new_label".
13347         (rtl_tidy_fallthru_edge): Likewise for local "q".
13348         (rtl_split_edge): Likewise for locals "before", "last".
13349         (commit_one_edge_insertion): Likewise for locals "before",
13350         "after", "insns", "tmp", "last", adding a checked cast where
13351         currently necessary.
13352         (commit_edge_insertions): Likewise.
13353         (rtl_dump_bb): Likewise for locals "insn", "last".
13354         (print_rtl_with_bb): Likewise for local "x".
13355         (rtl_verify_bb_insns): Likewise for local "x".
13356         (rtl_verify_bb_pointers): Likewise for local "insn".
13357         (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
13358         "head", "end".
13359         (rtl_verify_fallthru): Likewise for local "insn".
13360         (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
13361         (purge_dead_edges): Likewise for local "insn".
13362         (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
13363         (skip_insns_after_block): Likewise for return type and for locals
13364         "insn", "last_insn", "next_head", "prev".
13365         (record_effective_endpoints): Likewise for locals "next_insn",
13366         "insn", "end".
13367         (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
13368         (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
13369         (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
13370         (duplicate_insn_chain): For now, add checked cast from rtx to
13371         rtx_insn * when returning insn.
13372         (cfg_layout_duplicate_bb): Likewise for local "insn".
13373         (cfg_layout_delete_block): Likewise for locals "insn", "next",
13374         "prev", "remaints".
13375         (cfg_layout_merge_blocks): Likewise for local "insn", "last".
13376         (rtl_block_empty_p): Likewise.
13377         (rtl_split_block_before_cond_jump): Likewise for locals "insn",
13378         "split_point", "last".
13379         (rtl_block_ends_with_call_p): Likewise for local "insn".
13380         (need_fake_edge_p): Strengthen param "insn" from const_rtx to
13381         const rtx_insn *.
13382         (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
13383         "split_at_insn" from rtx to rtx_insn *.
13384         (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
13385         (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
13386         to const rtx_insn *.
13387         (rtl_account_profile_record): Likewise.
13389 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13391         * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
13392         rtx to rtx_insn *.
13393         (average_num_loop_insns): Likewise.
13394         (init_set_costs): Likewise for local "seq".
13395         (seq_cost): Likewise for param "seq", from const_rtx to const
13396         rtx_insn *.
13398 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13400         * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
13401         rtx to rtx_insn *.
13403 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13405         * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
13406         "f1" and "f2" from rtx * to rtx_insn **.
13407         (flow_find_head_matching_sequence): Likewise.
13409         * cfgcleanup.c (try_simplify_condjump): Strengthen local
13410         "cbranch_insn" from rtx to rtx_insn *.
13411         (thread_jump): Likewise for local "insn".
13412         (try_forward_edges): Likewise for local "last".
13413         (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
13414         (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
13415         "real_b_end".
13416         (can_replace_by): Likewise for params "i1", "i2".
13417         (old_insns_match_p): Likewise.
13418         (merge_notes): Likewise.
13419         (walk_to_nondebug_insn): Likewise for param "i1".
13420         (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
13421         to rtx_insn **.  Strengthen locals "i1", "i2", "last1", "last2",
13422         "afterlast1", "afterlast2" from rtx to rtx_insn *.
13423         (flow_find_head_matching_sequence): Strengthen params "f1" and
13424         "f2" from rtx * to rtx_insn **.  Strengthen locals "i1", "i2",
13425         "last1", "last2", "beforelast1", "beforelast2" from rtx to
13426         rtx_insn *.
13427         (outgoing_edges_match): Likewise for locals "last1", "last2".
13428         (try_crossjump_to_edge): Likewise for local "insn".
13429         Replace call to for_each_rtx with for_each_rtx_in_insn.
13431         (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
13432         (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
13433         "e0_last", "e_last", "head", "curr", "insn".  Strengthen locals
13434         "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
13435         (try_optimize_cfg): Strengthen local "last" from rtx to
13436         rtx_insn *.
13437         (delete_dead_jumptables): Likewise for locals "insn", "next",
13438         "label".
13440         * ifcvt.c (cond_exec_process_if_block): Likewise for locals
13441         "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
13442         "rtx else_first_tail", to reflect the basic-block.h changes above.
13444 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13446         * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
13447         rtx_insn *.
13448         (purge_dead_tablejump_edges): Likewise.
13449         (find_bb_boundaries): Likewise for locals "insn", "end",
13450         "flow_transfer_insn".
13452 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13454         * caller-save.c (save_call_clobbered_regs): Strengthen locals
13455         "ins" and "prev" from rtx to rtx_insn *.
13457 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13459         * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
13460         rtx_insn *.
13461         (internal_arg_pointer_exp_state): Likewise for field "scan_start".
13462         (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
13463         "scan_start".
13464         (load_register_parameters): Likewise for local "before_arg".
13465         (check_sibcall_argument_overlap): Likewise for param "insn".
13466         (expand_call): Likewise for locals "normal_call_insns",
13467         "tail_call_insns", "insns", "before_call", "after_args",
13468         "before_arg", "last", "prev".  Strengthen one of the "last" from
13469         rtx to rtx_call_insn *.
13470         (fixup_tail_calls): Strengthen local "insn" from rtx to
13471         rtx_insn *.
13472         (emit_library_call_value_1): Likewise for locals "before_call" and
13473         "last".
13475 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13477         * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
13478         and "last" from rtx to rtx_insn *.
13479         (expand_builtin_nonlocal_goto): Likewise for local "insn".
13480         (expand_builtin_apply): Strengthen local "call_insn" from rtx to
13481         rtx_call_insn *.
13482         (expand_errno_check): Strengthen local "lab" from rtx to
13483         rtx_code_label *.
13484         (expand_builtin_mathfn): Strengthen local "insns" from rtx to
13485         rtx_insn *.
13486         (expand_builtin_mathfn_2): Likewise.
13487         (expand_builtin_mathfn_ternary): Likewise.
13488         (expand_builtin_mathfn_3): Likewise.
13489         (expand_builtin_interclass_mathfn): Likewise for local "last".
13490         (expand_builtin_int_roundingfn): Likewise for local "insns".
13491         (expand_builtin_int_roundingfn_2): Likewise.
13492         (expand_builtin_strlen): Likewise for local "before_strlen".
13493         (expand_builtin_strncmp): Likewise for local "seq".
13494         (expand_builtin_signbit): Likewise for local "last".
13495         (expand_builtin_atomic_compare_exchange): Strengthen local "label"
13496         from rtx to rtx_code_label *.
13497         (expand_stack_restore):  Strengthen local "prev" from rtx to
13498         rtx_insn *.
13500 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13502         * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
13503         to rtx_insn *.
13504         (struct btr_def_s): Likewise.
13505         (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
13506         const rtx_insn *.
13507         (add_btr_def): Likewise.
13508         (new_btr_user): Likewise.
13509         (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
13510         rtx to rtx_insn *.
13511         (link_btr_uses): Likewise.
13512         (move_btr_def): Likewise for locals "insp", "old_insn",
13513         "new_insn".  Add checked cast to rtx_insn * for now on result of
13514         gen_move_insn.
13515         (can_move_up): Strengthen param "insn" from const_rtx to
13516         const rtx_insn *.
13518 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13520         * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
13521         rtx_insn *.
13522         (get_uncond_jump_length): Likewise for locals "label", "jump".
13523         (fix_up_crossing_landing_pad): Likewise for locals "new_label",
13524         "jump", "insn".
13525         (add_labels_and_missing_jumps): Likewise for local "new_jump".
13526         (fix_up_fall_thru_edges): Likewise for local "old_jump".
13527         (find_jump_block): Likewise for local "insn".
13528         (fix_crossing_conditional_branches): Likewise for locals
13529         "old_jump", "new_jump".
13530         (fix_crossing_unconditional_branches): Likewise for locals
13531         "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
13532         (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
13534 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13536         * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
13537         rtx to rtx_insn *.
13538         (struct mem_insn): Likewise for field "insn".
13539         (reg_next_use): Strengthen from rtx * to rtx_insn **.
13540         (reg_next_inc_use): Likewise.
13541         (reg_next_def): Likewise.
13542         (move_dead_notes): Strengthen params "to_insn" and "from_insn"
13543         from rtx to rtx_insn *.
13544         (move_insn_before): Likewise for param "next_insn" and local "insns".
13545         (attempt_change): Likewise for local "mov_insn".
13546         (try_merge): Likewise for param "last_insn".
13547         (get_next_ref): Likewise for return type and local "insn".
13548         Strengthen param "next_array" from rtx * to rtx_insn **.
13549         (parse_add_or_inc): Strengthen param "insn" from rtx to
13550         rtx_insn *.
13551         (find_inc): Likewise for locals "insn" and "other_insn" (three of
13552         the latter).
13553         (merge_in_block): Likewise for locals "insn", "curr",
13554         "other_insn".
13555         (pass_inc_dec::execute): Update allocations of the arrays to
13556         reflect the stronger types.
13558 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13560         * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
13561         and "jump" from rtx to rtx_insn *.  Strengthen local "top_label"
13562         from rtx to rtx_code_label *.
13564 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13566         * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
13567         to rtx_insn *.
13569 2014-08-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
13571         * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
13572         generated a warning and prevented bootstrapping the compiler.
13574 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13576         * rtl.h (delete_related_insns): Strengthen return type from rtx to
13577         rtx_insn *.
13579         * jump.c (delete_related_insns): Likewise, also for locals "next"
13580         and "prev".
13582 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13584         * genautomata.c (output_internal_insn_latency_func): When writing
13585         the function "internal_insn_latency" to insn-automata.c,
13586         strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
13587         allowing the optional guard function of (define_bypass) clauses to
13588         expect a pair of rtx_insn *, rather than a pair of rtx.
13589         (output_insn_latency_func): When writing the function
13590         "insn_latency", add an "uncast_" prefix to params "insn" and
13591         "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
13592         using checked casts from the params, thus enabling the above
13593         change to the generated "internal_insn_latency" function.
13595 2014-08-21  Jan Hubicka  <hubicka@ucw.cz>
13597         PR tree-optimization/62091
13598         * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
13599         handle correctly arrays.
13600         (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
13601         inheritance binfos.
13602         (record_known_type): Walk into inner type.
13603         (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
13604         condition on no type changes.
13606 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13608         * genattrtab.c (write_attr_get): Within the generated get_attr_
13609         functions, rename param "insn" to "uncast_insn" and reintroduce
13610         "insn" as an local rtx_insn * using a checked cast, so that "insn"
13611         is an rtx_insn * within insn-attrtab.c
13613 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13615         * output.h (peephole): Strengthen return type from rtx to
13616         rtx_insn *.
13617         * rtl.h (delete_for_peephole): Likewise for both params.
13618         * genpeep.c (main): In generated "peephole" function, strengthen
13619         return type and local "insn" from rtx to rtx_insn *.  For now,
13620         rename param "ins1" to "uncast_ins1", adding "ins1" back as an
13621         rtx_insn *, with a checked cast.
13622         * jump.c (delete_for_peephole): Strengthen params "from", "to" and
13623         locals "insn", "next", "prev" from rtx to rtx_insn *.
13625 2014-08-21  Marc Glisse  <marc.glisse@inria.fr>
13627         PR tree-optimization/62112
13628         * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
13629         * gimple-iterator.h (gsi_replace): Return bool.
13630         * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
13631         moved from ref_may_alias_global_p.
13632         (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
13633         New overloads.
13634         (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
13635         (stmt_kills_ref_p_1): Rename...
13636         (stmt_kills_ref_p): ... to this.
13637         * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
13638         stmt_kills_ref_p): Declare.
13639         * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
13640         Move the self-assignment case...
13641         (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
13643 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13645         * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
13647         * emit-rtl.c (try_split): Likewise, also for locals "before" and
13648         "after".  For now, don't strengthen param "trial", which requires
13649         adding checked casts when returning it.
13651 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13653         * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
13654         "label" from rtx to rtx_code_label *.  Strengthen param 1 of
13655         "var_location" hook from rtx to rtx_insn *.
13656         (debug_nothing_rtx): Delete in favor of...
13657         (debug_nothing_rtx_code_label): New prototype.
13658         (debug_nothing_rtx_rtx): Delete unused prototype.
13659         (debug_nothing_rtx_insn): New prototype.
13661         * final.c (final_scan_insn): Add checked cast to rtx_insn * when
13662         invoking debug_hooks->var_location (in two places, one in a NOTE
13663         case of a switch statement, the other guarded by a CALL_P
13664         conditional.  Add checked cast to rtx_code_label * when invoking
13665         debug_hooks->label (within CODE_LABEL case of switch statement).
13667         * dbxout.c (dbx_debug_hooks): Update "label" hook from
13668         debug_nothing_rtx to debug_nothing_rtx_code_label.  Update
13669         "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
13670         (xcoff_debug_hooks): Likewise.
13671         * debug.c (do_nothing_debug_hooks): Likewise.
13672         (debug_nothing_rtx): Delete in favor of...
13673         (debug_nothing_rtx_insn): New function.
13674         (debug_nothing_rtx_rtx): Delete unused function.
13675         (debug_nothing_rtx_code_label): New function.
13676         * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
13677         debug_nothing_rtx to debug_nothing_rtx_code_label.
13678         (dwarf2out_var_location): Strengthen param "loc_note" from rtx
13679         to rtx_insn *.
13680         * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
13681         debug_nothing_rtx to debug_nothing_rtx_insn.
13682         (sdbout_label): Strengthen param "insn" from rtx to
13683         rtx_code_label *.
13684         * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
13685         debug_nothing_rtx to debug_nothing_rtx_code_label.  Update
13686         "var_location" hook from debug_nothing_rtx to
13687         debug_nothing_rtx_insn.
13689 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13691         * recog.h (insn_output_fn): Update this function typedef to match
13692         the changes below to the generated output functions, strengthening
13693         the 2nd param from rtx to rtx_insn *.
13695         * final.c (get_insn_template): Add a checked cast to rtx_insn * on
13696         insn when invoking an output function, to match the new signature
13697         of insn_output_fn with a stronger second param.
13699         * genconditions.c (write_header): In the generated code for
13700         gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
13701         to match the other changes in this patch.
13703         * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
13704         the generated "gen_" functions from rtx to rtx_insn * within their
13705         implementations.
13707         * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
13708         the subfunctions within the generated "recog_", "split", "peephole2"
13709         function trees from rtx to rtx_insn *.  For now, the top-level
13710         generated functions ("recog", "split", "peephole2") continue to
13711         take a plain rtx for "insn", to avoid introducing dependencies on
13712         other patches.  Rename this 2nd param from "insn" to
13713         "uncast_insn", and reintroduce "insn" as a local variable of type
13714         rtx_insn *, initialized at the top of the generated function with
13715         a checked cast on "uncast_insn".
13716         (make_insn_sequence): Strengthen the 1st param "curr_insn" of
13717         the generated "gen_" functions from rtx to rtx_insn * within their
13718         prototypes.
13720         * genoutput.c (process_template): Strengthen the 2nd param within
13721         the generated "output_" functions "insn" from rtx to rtx_insn *.
13723 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
13725         * tree-profile.c (tree_profiling): Skip external functions
13726         when doing coverage instrumentation.
13727         * cgraphunit.c (compile): Do not assert that all nodes are reachable.
13729 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13731         * config/rs6000/altivec.h (vec_cpsgn): New #define.
13732         (vec_mergee): Likewise.
13733         (vec_mergeo): Likewise.
13734         (vec_cntlz): Likewise.
13735         * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
13736         entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
13737         VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
13738         VMRGEW, and VMRGOW.
13739         * doc/extend.texi: Document various forms of vec_cpsgn,
13740         vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
13741         vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
13742         vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
13743         vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
13744         vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
13746 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13748         * config/rs6000/rs6000.c (context.h): New include.
13749         (tree-pass.h): Likewise.
13750         (make_pass_analyze_swaps): New decl.
13751         (rs6000_option_override): Register pass_analyze_swaps.
13752         (swap_web_entry): New subsclass of web_entry_base (df.h).
13753         (special_handling_values): New enum.
13754         (union_defs): New function.
13755         (union_uses): Likewise.
13756         (insn_is_load_p): Likewise.
13757         (insn_is_store_p): Likewise.
13758         (insn_is_swap_p): Likewise.
13759         (rtx_is_swappable_p): Likewise.
13760         (insn_is_swappable_p): Likewise.
13761         (chain_purpose): New enum.
13762         (chain_contains_only_swaps): New function.
13763         (mark_swaps_for_removal): Likewise.
13764         (swap_const_vector_halves): Likewise.
13765         (adjust_subreg_index): Likewise.
13766         (permute_load): Likewise.
13767         (permute_store): Likewise.
13768         (handle_special_swappables): Likewise.
13769         (replace_swap_with_copy): Likewise.
13770         (dump_swap_insn_table): Likewise.
13771         (rs6000_analyze_swaps): Likewise.
13772         (pass_data_analyze_swaps): New pass_data.
13773         (pass_analyze_swaps): New rtl_opt_pass.
13774         (make_pass_analyze_swaps): New function.
13775         * config/rs6000/rs6000.opt (moptimize-swaps): New option.
13777 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13779         * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
13780         type from rtx to rtx_insn *.
13781         (create_copy_of_insn_rtx): Likewise.
13782         * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
13783         (create_copy_of_insn_rtx): Likewise, also for local "res".
13785 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13787         * rtl.h (find_first_parameter_load): Strengthen return type from
13788         rtx to rtx_insn *.
13789         * rtlanal.c (find_first_parameter_load): Strengthen return type
13790         from rtx to rtx_insn *.  Add checked cast for now, to postpone
13791         strengthening the params.
13793 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13795         PR fortran/44054
13796         * diagnostic.c: Set default caret.
13797         (diagnostic_show_locus): Use it. Tell pretty-printer that a new
13798         line is needed.
13799         * diagnostic.h (struct diagnostic_context):
13801 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13803         * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
13804         (sel_bb_head): Strengthen return type insn_t (currently just an
13805         rtx) to rtx_insn *.
13806         (sel_bb_end): Likewise.
13808         * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
13809         (sel_bb_head): Strengthen return type and local "head" from
13810         insn_t (currently just an rtx) to rtx_insn *.
13811         (sel_bb_end): Likewise for return type.
13812         (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
13813         working with insn.
13815 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13817         * basic-block.h (get_last_bb_insn): Strengthen return type from
13818         rtx to rtx_insn *.
13819         * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
13820         end".
13822 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13824         PR fortran/44054
13825         * diagnostic.c (default_diagnostic_finalizer): Move caret printing
13826         to here ...
13827         (diagnostic_report_diagnostic): ... from here.
13828         * toplev.c (general_init): Move code to c-family.
13830 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13832         * df.h (web_entry_base): Replace existing struct web_entry with a
13833         new class web_entry_base with only the predecessor member.
13834         (unionfind_root): Remove declaration and move to class member.
13835         (unionfind_union): Remove declaration and move to friend
13836         function.
13837         (union_defs): Remove declaration.
13838         * web.c (web_entry_base::unionfind_root): Modify to be member
13839         function and adjust accessors.
13840         (unionfind_union): Modify to be friend function and adjust
13841         accessors.
13842         (web_entry): New subclass of web_entry_base containing the reg
13843         member.
13844         (union_match_dups): Modify for struct -> class changes.
13845         (union_defs): Likewise.
13846         (entry_register): Likewise.
13847         (pass_web::execute): Likewise.
13849 2014-08-20  Bill Schmidt  <wschmidt@vnet.ibm.com>
13851         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
13852         builtin define __VEC_ELEMENT_REG_ORDER__.
13854 2014-08-20  Martin Jambor  <mjambor@suse.cz>
13855             Wei Mi  <wmi@google.com>
13857         PR ipa/60449
13858         PR middle-end/61776
13859         * tree-ssa-operands.c (update_stmt_operands): Remove
13860         MODIFIED_NORETURN_CALLS.
13861         * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
13862         (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
13863         (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
13864         (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
13865         * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
13866         * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
13867         (gimple_call_set_ctrl_altering): New func.
13868         (gimple_call_ctrl_altering_p): Ditto.
13869         * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
13870         (make_blocks): Use gimple_call_initialize_ctrl_altering.
13871         (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
13872         (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
13873         remove MODIFIED_NORETURN_CALLS.
13875 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
13877         * coverage.c (coverage_compute_profile_id): Return non-0;
13878         also handle symbols with unique name.
13879         (coverage_end_function): Do not skip DECL_EXTERNAL functions.
13881 2014-08-20  Steve Ellcey  <sellcey@mips.com>
13883         PR middle-end/49191
13884         * doc/sourcebuild.texi (non_strict_align): New.
13886 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
13888         * cgraphunit.c (ipa_passes, compile): Reshedule
13889         symtab_remove_unreachable_nodes passes; update comments.
13890         * ipa-inline.c (pass_data_ipa_inline): Do not schedule
13891         TODO_remove_functions before the pass; the functions ought to be
13892         already removed.
13893         * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
13894         TODO_remove_functions.
13895         * passes.c (pass_data_early_local_passes): Do not schedule function
13896         removal.
13897         (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
13899 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13901         PR c/59304
13902         * opts-common.c (set_option): Call diagnostic_classify_diagnostic
13903         before setting the option.
13904         * diagnostic.c (diagnostic_classify_diagnostic): Record
13905         command-line status.
13907 2014-08-20  Richard Biener  <rguenther@suse.de>
13909         PR lto/62190
13910         * tree.c (build_common_tree_nodes): Use make_or_reuse_type
13911         to build uint{16,32,64}_type_node.
13913 2014-08-20  Terry Guo  <terry.guo@arm.com>
13915         * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
13916         with immediate_operand.
13918 2014-08-20  David Malcolm  <dmalcolm@redhat.com>
13920         * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
13921         "insn" from an as_a to a safe_as_a, for the case when "insn" is
13922         NULL.
13924 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13926         PR preprocessor/51303
13927         * incpath.c (remove_duplicates): Use cpp_warning.
13929 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13931         PR c/60975
13932         PR c/53063
13933         * doc/options.texi (CPP): Document it.
13934         * doc/invoke.texi (Wvariadic-macros): Fix documentation.
13935         * optc-gen.awk: Handle CPP.
13936         * opth-gen.awk: Likewise.
13938 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
13940         * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
13941         rtx_insn *.
13942         (duplicate_insn_chain): Likewise.
13943         * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
13944         rtx_insn *, also for locals "prevfirst" and "nextlast".  Add a
13945         checked cast for now (until we can strengthen the params in the
13946         same way).
13947         (duplicate_insn_chain): Likewise.
13949 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
13951         * rtl.h (next_cc0_user): Strengthen return type from rtx to
13952         rtx_insn *.
13953         (prev_cc0_setter): Likewise.
13955         * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
13956         rtx_insn *, adding checked casts for now as necessary.
13957         (prev_cc0_setter): Likewise.
13959 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
13961         * expr.h (emit_move_insn): Strengthen return type from rtx to
13962         rtx_insn *.
13963         (emit_move_insn_1): Likewise.
13964         (emit_move_complex_push): Likewise.
13965         (emit_move_complex_parts): Likewise.
13967         * expr.c (emit_move_via_integer): Strengthen return type from rtx
13968         to rtx_insn *.  Replace use of NULL_RTX with NULL when working
13969         with insns.
13970         (emit_move_complex_push): Strengthen return type from rtx to
13971         rtx_insn *.
13972         (emit_move_complex): Likewise, also for local "ret".
13973         (emit_move_ccmode): Likewise.
13974         (emit_move_multi_word): Likewise for return type and locals
13975         "last_insn", "seq".
13976         (emit_move_insn_1): Likewise for return type and locals "result",
13977         "ret".
13978         (emit_move_insn): Likewise for return type and local "last_insn".
13979         (compress_float_constant): Likewise.
13981 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
13983         * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
13984         from rtx to rtx_insn *.
13986         * rtl.h (emit_insn_before): Likewise.
13987         (emit_insn_before_noloc): Likewise.
13988         (emit_insn_before_setloc): Likewise.
13989         (emit_jump_insn_before): Likewise.
13990         (emit_jump_insn_before_noloc): Likewise.
13991         (emit_jump_insn_before_setloc): Likewise.
13992         (emit_call_insn_before): Likewise.
13993         (emit_call_insn_before_noloc): Likewise.
13994         (emit_call_insn_before_setloc): Likewise.
13995         (emit_debug_insn_before): Likewise.
13996         (emit_debug_insn_before_noloc): Likewise.
13997         (emit_debug_insn_before_setloc): Likewise.
13998         (emit_label_before): Likewise.
13999         (emit_insn_after): Likewise.
14000         (emit_insn_after_noloc): Likewise.
14001         (emit_insn_after_setloc): Likewise.
14002         (emit_jump_insn_after): Likewise.
14003         (emit_jump_insn_after_noloc): Likewise.
14004         (emit_jump_insn_after_setloc): Likewise.
14005         (emit_call_insn_after): Likewise.
14006         (emit_call_insn_after_noloc): Likewise.
14007         (emit_call_insn_after_setloc): Likewise.
14008         (emit_debug_insn_after): Likewise.
14009         (emit_debug_insn_after_noloc): Likewise.
14010         (emit_debug_insn_after_setloc): Likewise.
14011         (emit_label_after): Likewise.
14012         (emit_insn): Likewise.
14013         (emit_debug_insn): Likewise.
14014         (emit_jump_insn): Likewise.
14015         (emit_call_insn): Likewise.
14016         (emit_label): Likewise.
14017         (gen_clobber): Likewise.
14018         (emit_clobber): Likewise.
14019         (gen_use): Likewise.
14020         (emit_use): Likewise.
14021         (emit): Likewise.
14023         (emit_barrier_before): Strengthen return type from rtx to
14024         rtx_barrier *.
14025         (emit_barrier_after): Likewise.
14026         (emit_barrier): Likewise.
14028         * emit-rtl.c (emit_pattern_before_noloc):  Strengthen return type
14029         from rtx to rtx_insn *.  Add checked casts for now when converting
14030         "last" from rtx to rtx_insn *.
14031         (emit_insn_before_noloc): Likewise for return type.
14032         (emit_jump_insn_before_noloc): Likewise.
14033         (emit_call_insn_before_noloc): Likewise.
14034         (emit_debug_insn_before_noloc): Likewise.
14035         (emit_barrier_before): Strengthen return type and local "insn"
14036         from rtx to rtx_barrier *.
14037         (emit_label_before): Strengthen return type from rtx to
14038         rtx_insn *.  Add checked cast for now when returning param
14039         (emit_pattern_after_noloc): Strengthen return type from rtx to
14040         rtx_insn *.  Add checked casts for now when converting "last" from
14041         rtx to rtx_insn *.
14042         (emit_insn_after_noloc): Strengthen return type from rtx to
14043         rtx_insn *.
14044         (emit_jump_insn_after_noloc): Likewise.
14045         (emit_call_insn_after_noloc): Likewise.
14046         (emit_debug_insn_after_noloc): Likewise.
14047         (emit_barrier_after): Strengthen return type from rtx to
14048         rtx_barrier *.
14049         (emit_label_after): Strengthen return type from rtx to rtx_insn *.
14050         Add checked cast for now when converting "label" from rtx to
14051         rtx_insn *.
14052         (emit_pattern_after_setloc): Strengthen return type from rtx to
14053         rtx_insn *.  Add checked casts for now when converting "last" from
14054         rtx to rtx_insn *.
14055         (emit_pattern_after): Strengthen return type from rtx to
14056         rtx_insn *.
14057         (emit_insn_after_setloc): Likewise.
14058         (emit_insn_after): Likewise.
14059         (emit_jump_insn_after_setloc): Likewise.
14060         (emit_jump_insn_after): Likewise.
14061         (emit_call_insn_after_setloc): Likewise.
14062         (emit_call_insn_after): Likewise.
14063         (emit_debug_insn_after_setloc): Likewise.
14064         (emit_debug_insn_after): Likewise.
14065         (emit_pattern_before_setloc): Likewise.  Add checked casts for now
14066         when converting "last" from rtx to rtx_insn *.
14067         (emit_pattern_before): Strengthen return type from rtx to
14068         rtx_insn *.
14069         (emit_insn_before_setloc): Likewise.
14070         (emit_insn_before): Likewise.
14071         (emit_jump_insn_before_setloc): Likewise.
14072         (emit_jump_insn_before): Likewise.
14073         (emit_call_insn_before_setloc): Likewise.
14074         (emit_call_insn_before): Likewise.
14075         (emit_debug_insn_before_setloc): Likewise.
14076         (emit_debug_insn_before): Likewise.
14077         (emit_insn): Strengthen return type and locals "last", "insn",
14078         "next" from rtx to rtx_insn *.  Add checked cast to rtx_insn
14079         within cases where we know we have an insn.
14080         (emit_debug_insn): Likewise.
14081         (emit_jump_insn): Likewise.
14082         (emit_call_insn): Strengthen return type and local "insn" from rtx
14083         to rtx_insn *.
14084         (emit_label): Strengthen return type from rtx to rtx_insn *.  Add
14085         a checked cast to rtx_insn * for now on "label".
14086         (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
14087         (emit_clobber): Strengthen return type from rtx to rtx_insn *.
14088         (emit_use): Likewise.
14089         (gen_use): Likewise, also for local "seq".
14090         (emit): Likewise for return type and local "insn".
14091         (rtx_insn): Likewise for return type and local "new_rtx".
14093         * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
14094         from rtx to rtx_barrier *.
14096         * config/sh/sh.c (output_stack_adjust): Since emit_insn has
14097         changed return type from rtx to rtx_insn *, we must update
14098         "emit_fn" type, and this in turn means updating...
14099         (frame_insn): ...this.  Strengthen return type from rtx to
14100         rtx_insn *.  Introduce a new local "insn" of the appropriate type.
14102 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14104         * emit-rtl.c (emit_jump_table_data): Strengthen return type from
14105         rtx to rtx_jump_table_data *.  Also for local.
14106         * rtl.h (emit_jump_table_data): Likewise.
14108 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14110         * basic-block.h (create_basic_block_structure): Strengthen third
14111         param "bb_note" from rtx to rtx_note *.
14112         * rtl.h (emit_note_before): Strengthen return type from rtx to
14113         rtx_note *.
14114         (emit_note_after): Likewise.
14115         (emit_note): Likewise.
14116         (emit_note_copy): Likewise.  Also, strengthen param similarly.
14117         * function.h (struct rtl_data): Strengthen field
14118         "x_stack_check_probe_note" from rtx to rtx_note *.
14120         * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
14121         from rtx to rtx_note *.
14122         * cfgrtl.c (create_basic_block_structure): Strengthen third param
14123         "bb_note" from rtx to rtx_note *.
14124         (duplicate_insn_chain): Likewise for local "last".  Add a checked cast
14125         when calling emit_note_copy.
14126         * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
14127         rtx_note *.
14128         (emit_note_after): Likewise.
14129         (emit_note_before): Likewise.
14130         (emit_note_copy): Likewise.  Also, strengthen param similarly.
14131         (emit_note): Likewise.
14132         * except.c (emit_note_eh_region_end): Likewise for return type.
14133         Strengthen local "next" from rtx to rtx_insn *.
14134         (convert_to_eh_region_ranges): Strengthen local "note"
14135         from rtx to rtx_note *.
14136         * final.c (change_scope): Likewise.
14137         (reemit_insn_block_notes): Likewise, for both locals named "note".
14138         Also, strengthen local "insn" from rtx to rtx_insn *.
14139         * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
14140         rtx to rtx_note *.
14141         * reg-stack.c (compensate_edge): Likewise for local "after". Also,
14142         strengthen local "seq" from rtx to rtx_insn *.
14143         * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
14144         to rtx_note *.
14145         * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
14146         vec<rtx_note *>.
14147         (get_bb_note_from_pool): Strengthen return type from rtx to
14148         rtx_note *.
14149         (sel_create_basic_block): Strengthen local "new_bb_note" from
14150         insn_t to rtx_note *.
14151         * var-tracking.c (emit_note_insn_var_location): Strengthen local
14152         "note" from rtx to rtx_note *.
14153         (emit_notes_in_bb): Likewise.
14155 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14157         * function.h (struct rtl_data): Strengthen field
14158         "x_parm_birth_insn" from rtx to rtx_insn *.
14159         * function.c (struct assign_parm_data_all): Strengthen fields
14160         "first_conversion_insn" and "last_conversion_insn" from rtx to
14161         rtx_insn *.
14163 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14165         * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
14166         to rtx_insn *; also for local "var_end_seq".
14167         (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
14168         (maybe_cleanup_end_of_block): Likewise for param "last" and local
14169         "insn".
14170         (expand_gimple_cond): Likewise for locals "last2" and "last".
14171         (mark_transaction_restart_calls): Likewise for local "insn".
14172         (expand_gimple_stmt): Likewise for return type and locals "last"
14173         and "insn".
14174         (expand_gimple_tailcall): Likewise for locals "last2" and "last".
14175         (avoid_complex_debug_insns): Likewise for param "insn".
14176         (expand_debug_locations): Likewise for locals "insn", "last",
14177         "prev_insn" and "insn2".
14178         (expand_gimple_basic_block): Likewise for local "last".
14179         (construct_exit_block): Likewise for locals "head", "end",
14180         "orig_end".
14181         (pass_expand::execute): Likewise for locals "var_seq",
14182         "var_ret_seq", "next".
14184 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14186         * asan.h (asan_emit_stack_protection): Strengthen return type from
14187         rtx to rtx_insn *.
14188         * asan.c (asan_emit_stack_protection): Likewise.  Add local
14189         "insns" to hold the return value.
14191 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14193         * basic-block.h (bb_note): Strengthen return type from rtx to
14194         rtx_note *.
14195         * sched-int.h (bb_note): Likewise.
14196         * cfgrtl.c (bb_note): Likewise.  Add a checked cast to rtx_note *.
14198 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14200         * rtl.h (make_insn_raw): Strengthen return type from rtx to
14201         rtx_insn *.
14203         * emit-rtl.c (make_insn_raw): Strengthen return type and local
14204         "insn" from rtx to rtx_insn *.
14205         (make_debug_insn_raw): Strengthen return type from rtx to
14206         rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
14207         (make_jump_insn_raw):  Strengthen return type from rtx to
14208         rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
14209         (make_call_insn_raw):  Strengthen return type from rtx to
14210         rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
14211         (emit_pattern_before_noloc): Strengthen return type of "make_raw"
14212         callback from rtx to rtx_insn *; likewise for local "insn" and
14213         "next", adding a checked cast to rtx_insn in the relevant cases of
14214         the switch statement.
14215         (emit_pattern_after_noloc): Strengthen return type of "make_raw"
14216         callback from rtx to rtx_insn *.
14217         (emit_pattern_after_setloc): Likewise.
14218         (emit_pattern_after): Likewise.
14219         (emit_pattern_before_setloc): Likewise.
14220         (emit_pattern_before): Likewise.
14222 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14224         * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
14225         rtx_call_insn *.
14226         * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
14227         accepting an rtx_insn *.
14228         (last_call_insn): Strengthen return type from rtx to
14229         rtx_call_insn *.
14231 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14233         * rtl.h (delete_trivially_dead_insns): Strengthen initial param
14234         "insns" from rtx to rtx_insn *.
14235         * cse.c (delete_trivially_dead_insns): Likewise, also do it for
14236         locals "insn" and "prev".
14238 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14240         * rtl.h (tablejump_p): Strengthen third param from rtx * to
14241         rtx_jump_table_data **.
14243         * cfgbuild.c (make_edges): Introduce local "table", using it in
14244         place of "tmp" for jump table data.
14245         (find_bb_boundaries): Strengthen local "table" from rtx to
14246         rtx_jump_table_data *.
14247         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
14248         (outgoing_edges_match): Likewise for locals "table1" and "table2".
14249         (try_crossjump_to_edge): Likewise.
14250         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
14251         "table".
14252         (patch_jump_insn): Introduce local "table", using it in place of
14253         "tmp" for jump table data.
14254         (force_nonfallthru_and_redirect): Introduce local "table", so that
14255         call to tablejump_p can receive an rtx_jump_table_data **.  Update
14256         logic around the call to overwrite "note" appropriately if
14257         tablejump_p returns non-zero.
14258         (get_last_bb_insn): Introduce local "table", using it in place of
14259         "tmp" for jump table data.
14260         * dwarf2cfi.c (create_trace_edges): Likewise.
14262         * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
14263         from rtx to rtx_jump_table_data *.
14264         (create_fix_barrier): Strengthen local "tmp" from rtx to
14265         rtx_jump_table_data *.
14266         (arm_reorg): Likewise for local "table".
14268         * config/s390/s390.c (s390_chunkify_start): Likewise.
14270         * config/spu/spu.c (spu_emit_branch_hint): Likewise.
14272         * jump.c (delete_related_insns): Strengthen local "lab_next" from
14273         rtx to rtx_jump_table_data *.
14275         * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
14276         rtx_jump_table_data **.  Add a checked cast when writing through
14277         the pointer: we know there that local "table" is non-NULL and that
14278         JUMP_TABLE_DATA_P (table) holds.
14279         (label_is_jump_target_p): Introduce local "table", using it in
14280         place of "tmp" for jump table data.
14282 2014-08-19  Marek Polacek  <polacek@redhat.com>
14284         PR c++/62153
14285         * doc/invoke.texi: Document -Wbool-compare.
14287 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14289         * rtl.h (entry_of_function): Strengthen return type from rtx to
14290         rtx_insn *.
14291         * cfgrtl.c (entry_of_function): Likewise.
14293 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14295         * emit-rtl.h (get_insns): Strengthen return type from rtx to
14296         rtx_insn *, adding a checked cast for now.
14297         (get_last_insn): Likewise.
14299 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14301         * rtl.h (gen_label_rtx): Strengthen return type from rtx to
14302         rtx_code_label *.
14304         * emit-rtl.c (gen_label_rtx): Likewise.
14306 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14308         * rtl.h (previous_insn): Strengthen return type from rtx to
14309         rtx_insn *.
14310         (next_insn): Likewise.
14311         (prev_nonnote_insn): Likewise.
14312         (prev_nonnote_insn_bb): Likewise.
14313         (next_nonnote_insn): Likewise.
14314         (next_nonnote_insn_bb): Likewise.
14315         (prev_nondebug_insn): Likewise.
14316         (next_nondebug_insn): Likewise.
14317         (prev_nonnote_nondebug_insn): Likewise.
14318         (next_nonnote_nondebug_insn): Likewise.
14319         (prev_real_insn): Likewise.
14320         (next_real_insn): Likewise.
14321         (prev_active_insn): Likewise.
14322         (next_active_insn): Likewise.
14324         * emit-rtl.c (next_insn): Strengthen return type from rtx to
14325         rtx_insn *, adding a checked cast.
14326         (previous_insn): Likewise.
14327         (next_nonnote_insn): Likewise.
14328         (next_nonnote_insn_bb): Likewise.
14329         (prev_nonnote_insn): Likewise.
14330         (prev_nonnote_insn_bb): Likewise.
14331         (next_nondebug_insn): Likewise.
14332         (prev_nondebug_insn): Likewise.
14333         (next_nonnote_nondebug_insn): Likewise.
14334         (prev_nonnote_nondebug_insn): Likewise.
14335         (next_real_insn): Likewise.
14336         (prev_real_insn): Likewise.
14337         (next_active_insn): Likewise.
14338         (prev_active_insn): Likewise.
14340         * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
14341         param "stepfunc" so that it returns an rtx_insn * rather than an
14342         rtx, to track the change to prev_nonnote_insn_bb, which is the
14343         only function this is called with.
14344         * config/sh/sh.c (sh_find_set_of_reg): Likewise.
14346 2014-08-19  Jan Hubicka  <hubicka@ucw.cz>
14348         * ipa-visibility.c (update_visibility_by_resolution_info): Fix
14349         assert.
14351 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14353         * coretypes.h (class rtx_debug_insn): Add forward declaration.
14354         (class rtx_nonjump_insn): Likewise.
14355         (class rtx_jump_insn): Likewise.
14356         (class rtx_call_insn): Likewise.
14357         (class rtx_jump_table_data): Likewise.
14358         (class rtx_barrier): Likewise.
14359         (class rtx_code_label): Likewise.
14360         (class rtx_note): Likewise.
14362         * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
14363         adding the invariant DEBUG_INSN_P (X).
14364         (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
14365         the invariant NONJUMP_INSN_P (X).
14366         (class rtx_jump_insn): New, a subclass of rtx_insn, adding
14367         the invariant JUMP_P (X).
14368         (class rtx_call_insn): New, a subclass of rtx_insn, adding
14369         the invariant CALL_P (X).
14370         (class rtx_jump_table): New, a subclass of rtx_insn, adding the
14371         invariant JUMP_TABLE_DATA_P (X).
14372         (class rtx_barrier): New, a subclass of rtx_insn, adding the
14373         invariant BARRIER_P (X).
14374         (class rtx_code_label): New, a subclass of rtx_insn, adding
14375         the invariant LABEL_P (X).
14376         (class rtx_note): New, a subclass of rtx_insn, adding
14377         the invariant NOTE_P(X).
14378         (is_a_helper <rtx_debug_insn *>::test): New.
14379         (is_a_helper <rtx_nonjump_insn *>::test): New.
14380         (is_a_helper <rtx_jump_insn *>::test): New.
14381         (is_a_helper <rtx_call_insn *>::test): New.
14382         (is_a_helper <rtx_jump_table_data *>::test): New functions,
14383         overloaded for both rtx and rtx_insn *.
14384         (is_a_helper <rtx_barrier *>::test): New.
14385         (is_a_helper <rtx_code_label *>::test): New functions, overloaded
14386         for both rtx and rtx_insn *.
14387         (is_a_helper <rtx_note *>::test): New.
14389 2014-08-19  Marek Polacek  <polacek@redhat.com>
14391         * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
14392         CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
14393         * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
14394         CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
14396 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14398         * sel-sched-ir.h (BND_TO): insn_t will eventually be an
14399         rtx_insn *.  To help with transition, for now, convert from an
14400         access macro into a pair of functions: BND_TO, returning an
14401         rtx_insn *, and...
14402         (SET_BND_TO): New function, for use where BND_TO is used as an
14403         lvalue.
14405         * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
14406         SET_BND_TO.
14407         (BND_TO): New function, adding a checked cast.
14408         (SET_BND_TO): New function.
14410         * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
14411         SET_BND_TO.
14412         (compute_av_set_on_boundaries): Likewise.
14414 2014-08-19  H.J. Lu  <hongjiu.lu@intel.com>
14416         * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
14417         destination if it is used in source.
14418         (*clz<mode>2_lzcnt_falsedep_1): Likewise.
14419         (*popcount<mode>2_falsedep_1): Likewise.
14421 2014-08-19  H.J. Lu  <hongjiu.lu@intel.com>
14423         PR other/62168
14424         * configure.ac: Set install_gold_as_default to no first.
14425         * configure: Regenerated.
14427 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14429         * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
14430         "note_list" field will eventually be an rtx_insn *.  To help with
14431         transition, for now, convert from an access macro into a pair of
14432         functions: BB_NOTE_LIST, returning an rtx_insn *, and...
14433         (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
14434         used as an lvalue.
14436         * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
14437         of BB_NOTE_LIST to SET_BB_NOTE_LIST.
14439         * sel-sched-ir.c (init_bb): Likewise.
14440         (sel_restore_notes): Likewise.
14441         (move_bb_info): Likewise.
14442         (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
14443         (SET_BB_NOTE_LIST): New function.
14445 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14447         * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
14448         field will eventually be an rtx_insn *.  To help with transition,
14449         for now, convert from an access macro into a pair of functions:
14450         VINSN_INSN_RTX, returning an rtx_insn *, and...
14451         (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
14452         is used as an lvalue.
14454         * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
14455         SET_VINSN_INSN_RTX where it's used as an lvalue.
14456         (VINSN_INSN_RTX): New function.
14457         (SET_VINSN_INSN_RTX): New function.
14459 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14461         * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
14462         eventually be rtx_insn *, but to help with transition, for now,
14463         convert from an access macro into a pair of functions: DEP_PRO
14464         returning an rtx_insn * and...
14465         (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
14466         lvalue, returning an rtx&.
14467         (DEP_CON): Analogous changes to DEP_PRO above.
14468         (SET_DEP_CON): Likewise.
14470         * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
14471         an lvalue to SET_DEP_CON.
14472         * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
14473         (sd_copy_back_deps): Likewise for DEP_CON.
14474         (DEP_PRO): New function, adding a checked cast for now.
14475         (DEP_CON): Likewise.
14476         (SET_DEP_PRO): New function.
14477         (SET_DEP_CON): Likewise.
14479 2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
14481         * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
14482         (extra_options): Add i386/cygwin.opt.
14483         * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
14484         (CPP_SPEC): Accept -pthread.
14485         (LINK_SPEC): Ditto.
14486         (GOMP_SELF_SPECS): Update comment.
14487         * config/i386/cygwin.opt: New file for -pthread flag.
14489 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14491         * df-core.c (DF_REF_INSN): New, using a checked cast for now.
14492         * df.h (DF_REF_INSN): Convert from a macro to a function, so
14493         that we can return an rtx_insn *.
14495 2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
14497         * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
14498         when building executables, not DLLs.  Add --large-address-aware
14499         under the same conditions.
14500         * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
14501         when building executables, not DLLs.  Add --large-address-aware
14502         under the same conditions when using -m32.
14504         * config/i386/cygwin-stdint.h: Throughout, make type
14505         definitions dependent on target architecture, not host.
14507 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14509         * rtl.h (PREV_INSN): Convert to an inline function.  Strengthen
14510         the return type from rtx to rtx_insn *,  which will enable various
14511         conversions in followup patches.  For now this is is done by a
14512         checked cast.
14513         (NEXT_INSN): Likewise.
14514         (SET_PREV_INSN): Convert to an inline function.  This is intended
14515         for use as an lvalue, and so returns an rtx& to allow in-place
14516         modification.
14517         (SET_NEXT_INSN): Likewise.
14519 2014-07-08  Mark Wielaard  <mjw@redhat.com>
14521         PR debug/59051
14522         * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
14524 2014-08-19  Marek Polacek  <polacek@redhat.com>
14526         PR c/61271
14527         * cgraphunit.c (handle_alias_pairs): Fix condition.
14529 2014-08-19  Richard Biener  <rguenther@suse.de>
14531         * gimple-fold.c (fold_gimple_assign): Properly build a
14532         null-pointer constant when devirtualizing addresses.
14534 2014-07-07  Mark Wielaard  <mjw@redhat.com>
14536         * dwarf2out.c (decl_quals): New function.
14537         (modified_type_die): Take one cv_quals argument instead of two,
14538         one for const and one for volatile.
14539         (add_type_attribute): Likewise.
14540         (generic_parameter_die): Call add_type_attribute with one modifier
14541         argument.
14542         (base_type_for_mode): Likewise.
14543         (add_bounds_info): Likewise.
14544         (add_subscript_info): Likewise.
14545         (gen_array_type_die): Likewise.
14546         (gen_descr_array_type_die): Likewise.
14547         (gen_entry_point_die): Likewise.
14548         (gen_enumeration_type_die): Likewise.
14549         (gen_formal_parameter_die): Likewise.
14550         (gen_subprogram_die): Likewise.
14551         (gen_variable_die): Likewise.
14552         (gen_const_die): Likewise.
14553         (gen_field_die): Likewise.
14554         (gen_pointer_type_die): Likewise.
14555         (gen_reference_type_die): Likewise.
14556         (gen_ptr_to_mbr_type_die): Likewise.
14557         (gen_inheritance_die): Likewise.
14558         (gen_subroutine_type_die): Likewise.
14559         (gen_typedef_die): Likewise.
14560         (force_type_die): Likewise.
14562 2014-08-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14564         * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
14565         if unset.
14566         * configure: Regenerate.
14568 2014-08-19  Richard Biener  <rguenther@suse.de>
14570         * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
14571         DECL_EXTERNALs in BLOCKs as non-references.
14572         * tree-streamer-out.c (streamer_write_chain): Likewise.
14574 2014-08-19  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14575             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14576             Anna Tikhonova  <anna.tikhonova@intel.com>
14577             Ilya Tocar  <ilya.tocar@intel.com>
14578             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14579             Ilya Verbin  <ilya.verbin@intel.com>
14580             Kirill Yukhin  <kirill.yukhin@intel.com>
14581             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14583         * config/i386/sse.md
14584         (define_mode_iterator VI48_AVX512F): Delete.
14585         (define_mode_iterator VI48_AVX512F_AVX512VL): New.
14586         (define_mode_iterator VI2_AVX512VL): Ditto.
14587         (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
14588         Delete.
14589         (define_insn
14590         ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
14591         New.
14592         (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
14593         (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
14594         (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
14595         with VI48_AVX512F_AVX512VL): New.
14596         (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
14597         with VI2_AVX512VL): Ditto.
14599 2014-08-19  Marek Polacek  <polacek@redhat.com>
14601         * doc/invoke.texi: Document -Wc99-c11-compat.
14603 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14605         * rtl.h (PREV_INSN): Split macro in two: the existing one,
14606         for rvalues, and...
14607         (SET_PREV_INSN): New macro, for use as an lvalue.
14608         (NEXT_INSN, SET_NEXT_INSN): Likewise.
14610         * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
14611         PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
14612         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
14613         (fixup_abnormal_edges): Likewise.
14614         (unlink_insn_chain): Likewise.
14615         (fixup_reorder_chain): Likewise.
14616         (cfg_layout_delete_block): Likewise.
14617         (cfg_layout_merge_blocks): Likewise.
14618         * combine.c (update_cfg_for_uncondjump): Likewise.
14619         * emit-rtl.c (link_insn_into_chain): Likewise.
14620         (remove_insn): Likewise.
14621         (delete_insns_since): Likewise.
14622         (reorder_insns_nobb): Likewise.
14623         (emit_insn_after_1): Likewise.
14624         * final.c (rest_of_clean_state): Likewise.
14625         (final_scan_insn): Likewise.
14626         * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
14627         * haifa-sched.c (concat_note_lists): Likewise.
14628         (remove_notes): Likewise.
14629         (restore_other_notes): Likewise.
14630         (move_insn): Likewise.
14631         (unlink_bb_notes): Likewise.
14632         (restore_bb_notes): Likewise.
14633         * jump.c (delete_for_peephole): Likewise.
14634         * optabs.c (emit_libcall_block_1): Likewise.
14635         * reorg.c (emit_delay_sequence): Likewise.
14636         (fill_simple_delay_slots): Likewise.
14637         * sel-sched-ir.c (sel_move_insn): Likewise.
14638         (sel_remove_insn): Likewise.
14639         (get_bb_note_from_pool): Likewise.
14640         * sel-sched.c (move_nop_to_previous_block): Likewise.
14642         * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
14643         * config/c6x/c6x.c (gen_one_bundle): Likewise.
14644         (c6x_gen_bundles): Likewise.
14645         (hwloop_optimize): Likewise.
14646         * config/frv/frv.c (frv_function_prologue): Likewise.
14647         (frv_register_nop): Likewise.
14648         * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
14649         (ia64_reorg): Likewise.
14650         * config/mep/mep.c (mep_reorg_addcombine): Likewise.
14651         (mep_make_bundle): Likewise.
14652         (mep_bundle_insns): Likewise.
14653         * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
14654         * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
14655         * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
14657 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14659         * basic-block.h (BB_HEAD): Convert to a function.  Strengthen the
14660         return type from rtx to rtx_insn *.
14661         (BB_END): Likewise.
14662         (BB_HEADER): Likewise.
14663         (BB_FOOTER): Likewise.
14664         (SET_BB_HEAD): Convert to a function.
14665         (SET_BB_END): Likewise.
14666         (SET_BB_HEADER): Likewise.
14667         (SET_BB_FOOTER): Likewise.
14669         * cfgrtl.c (BB_HEAD): New function, from macro of same name.
14670         Strengthen the return type from rtx to rtx_insn *.  For now, this
14671         is done by adding a checked cast, but this will eventually
14672         become a field lookup.
14673         (BB_END): Likewise.
14674         (BB_HEADER): Likewise.
14675         (BB_FOOTER): Likewise.
14676         (SET_BB_HEAD): New function, from macro of same name.  This is
14677         intended for use as an lvalue, and so returns an rtx& to allow
14678         in-place modification.
14679         (SET_BB_END): Likewise.
14680         (SET_BB_HEADER): Likewise.
14681         (SET_BB_FOOTER): Likewise.
14683 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
14685         * basic-block.h (BB_HEAD): Split macro in two: the existing one,
14686         for rvalues, and...
14687         (SET_BB_HEAD): New macro, for use as a lvalue.
14688         (BB_END, SET_BB_END): Likewise.
14689         (BB_HEADER, SET_BB_HEADER): Likewise.
14690         (BB_FOOTER, SET_BB_FOOTER): Likewise.
14692         * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
14693         of BB_* macros into SET_BB_* macros.
14694         (fix_crossing_unconditional_branches): Likewise.
14695         * caller-save.c (save_call_clobbered_regs): Likewise.
14696         (insert_one_insn): Likewise.
14697         * cfgbuild.c (find_bb_boundaries): Likewise.
14698         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
14699         (outgoing_edges_match): Likewise.
14700         (try_optimize_cfg): Likewise.
14701         * cfgexpand.c (expand_gimple_cond): Likewise.
14702         (expand_gimple_tailcall): Likewise.
14703         (expand_gimple_basic_block): Likewise.
14704         (construct_exit_block): Likewise.
14705         * cfgrtl.c (delete_insn): Likewise.
14706         (create_basic_block_structure): Likewise.
14707         (rtl_delete_block): Likewise.
14708         (rtl_split_block): Likewise.
14709         (emit_nop_for_unique_locus_between): Likewise.
14710         (rtl_merge_blocks): Likewise.
14711         (block_label): Likewise.
14712         (try_redirect_by_replacing_jump): Likewise.
14713         (emit_barrier_after_bb): Likewise.
14714         (fixup_abnormal_edges): Likewise.
14715         (record_effective_endpoints): Likewise.
14716         (relink_block_chain): Likewise.
14717         (fixup_reorder_chain): Likewise.
14718         (fixup_fallthru_exit_predecessor): Likewise.
14719         (cfg_layout_duplicate_bb): Likewise.
14720         (cfg_layout_split_block): Likewise.
14721         (cfg_layout_delete_block): Likewise.
14722         (cfg_layout_merge_blocks): Likewise.
14723         * combine.c (update_cfg_for_uncondjump): Likewise.
14724         * emit-rtl.c (add_insn_after): Likewise.
14725         (remove_insn): Likewise.
14726         (reorder_insns): Likewise.
14727         (emit_insn_after_1): Likewise.
14728         * haifa-sched.c (get_ebb_head_tail): Likewise.
14729         (restore_other_notes): Likewise.
14730         (move_insn): Likewise.
14731         (sched_extend_bb): Likewise.
14732         (fix_jump_move): Likewise.
14733         * ifcvt.c (noce_process_if_block): Likewise.
14734         (dead_or_predicable): Likewise.
14735         * ira.c (update_equiv_regs): Likewise.
14736         * reg-stack.c (change_stack): Likewise.
14737         * sel-sched-ir.c (sel_move_insn): Likewise.
14738         * sel-sched.c (move_nop_to_previous_block): Likewise.
14740         * config/c6x/c6x.c (hwloop_optimize): Likewise.
14741         * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
14743 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
14745         * rtl.h (for_each_rtx_in_insn): New function.
14746         * rtlanal.c (for_each_rtx_in_insn): Likewise.
14748 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
14750         * coretypes.h (class rtx_insn): Add forward declaration.
14752         * rtl.h: Include is-a.h.
14753         (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
14754         workaround to ensure gengtype knows inheritance is occurring,
14755         whilst continuing to use the pre-existing special-casing for
14756         rtx_def.
14757         (class rtx_insn): New subclass of rtx_def, adding the
14758         invariant that we're dealing with something we can sanely use
14759         INSN_UID, NEXT_INSN, PREV_INSN on.
14760         (is_a_helper <rtx_insn *>::test): New.
14761         (is_a_helper <const rtx_insn *>::test): New.
14763 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
14765         * is-a.h (template<T, U> safe_as_a <U *p>) New function.
14767 2014-08-18  Jan Hubicka  <hubicka@ucw.cz>
14769         * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
14770         comdats as extern.
14772 2014-08-18  Jan Hubicka  <hubicka@ucw.cz>
14774         * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
14775         to BUILT_IN_UNREACHABLE.
14777 2014-08-18  Uros Bizjak  <ubizjak@gmail.com>
14779         PR target/62011
14780         * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
14781         New tune flag.
14782         * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
14783         * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
14784         (ffs<mode>2): Do not expand with tzcnt for
14785         TARGET_AVOID_FALSE_DEP_FOR_BMI.
14786         (ffssi2_no_cmove): Ditto.
14787         (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
14788         (ctz<mode>2): New expander.
14789         (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
14790         (*ctz<mode>2_falsedep): New insn.
14791         (*ctz<mode>2): Rename from ctz<mode>2.
14792         (clz<mode>2_lzcnt): New expander.
14793         (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
14794         (*clz<mode>2_lzcnt_falsedep): New insn.
14795         (*clz<mode>2): Rename from ctz<mode>2.
14796         (popcount<mode>2): New expander.
14797         (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
14798         (*popcount<mode>2_falsedep): New insn.
14799         (*popcount<mode>2): Rename from ctz<mode>2.
14800         (*popcount<mode>2_cmp): Remove.
14801         (*popcountsi2_cmp_zext): Ditto.
14803 2014-08-18  Ajit Agarwal  <ajitkum@xilinx.com>
14805         * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
14806         (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
14807         * config/microblaze/microblaze.h
14808         (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
14810 2014-08-18  H.J. Lu  <hongjiu.lu@intel.com>
14812         PR other/62168
14813         * configure.ac: Set install_gold_as_default to no for
14814         --enable-gold=no.
14815         * configure: Regenerated.
14817 2014-08-18 Roman Gareev  <gareevroman@gmail.com>
14819         * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
14820         * config.in: Add undef of HAVE_isl.
14821         * configure: Regenerate.
14822         * configure.ac: Add definition of HAVE_isl.
14823         * graphite-blocking.c: Add checking of HAVE_isl.
14824         * graphite-dependences.c: Likewise.
14825         * graphite-interchange.c: Likewise.
14826         * graphite-isl-ast-to-gimple.c: Likewise.
14827         * graphite-optimize-isl.c: Likewise.
14828         * graphite-poly.c: Likewise.
14829         * graphite-scop-detection.c: Likewise.
14830         * graphite-sese-to-poly.c: Likewise.
14831         * graphite.c: Likewise.
14832         * toplev.c: Replace the checking of HAVE_cloog with the checking
14833         of HAVE_isl.
14835 2014-08-18  Richard Biener  <rguenther@suse.de>
14837         PR tree-optimization/62090
14838         * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
14839         (fold_builtin_3): Do not fold snprintf.
14840         (fold_builtin_4): Likewise.
14841         * gimple-fold.c (gimple_fold_builtin_snprintf): New function
14842         moved from builtins.c.
14843         (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
14844         (gimple_fold_builtin): Do not fold sprintf here.
14846 2014-08-18  Richard Biener  <rguenther@suse.de>
14848         * gimple-fold.c (maybe_fold_reference): Move re-gimplification
14849         code to ...
14850         (maybe_canonicalize_mem_ref_addr): ... this function.
14851         (fold_stmt_1): Apply it here before all simplification.
14853 2014-08-18  Ilya Enkovich  <ilya.enkovich@intel.com>
14855         PR ipa/61800
14856         * cgraph.h (cgraph_node::create_indirect_edge): Add
14857         compute_indirect_info param.
14858         * cgraph.c (cgraph_node::create_indirect_edge): Compute
14859         indirect_info only when it is required.
14860         * cgraphclones.c (cgraph_clone_edge): Do not recompute
14861         indirect_info fore cloned indirect edge.
14863 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14864             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14865             Anna Tikhonova  <anna.tikhonova@intel.com>
14866             Ilya Tocar  <ilya.tocar@intel.com>
14867             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14868             Ilya Verbin  <ilya.verbin@intel.com>
14869             Kirill Yukhin  <kirill.yukhin@intel.com>
14870             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14872         * config/i386/sse.md
14873         (define_mode_iterator VI8_AVX2_AVX512BW): New.
14874         (define_insn "<sse2_avx2>_psadbw"): Add evex version.
14876 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14877             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14878             Anna Tikhonova  <anna.tikhonova@intel.com>
14879             Ilya Tocar  <ilya.tocar@intel.com>
14880             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14881             Ilya Verbin  <ilya.verbin@intel.com>
14882             Kirill Yukhin  <kirill.yukhin@intel.com>
14883             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14885         * config/i386/sse.md
14886         (define_mode_iterator VF1_AVX512VL): New.
14887         (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
14888         (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
14889         New.
14891 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14892             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14893             Anna Tikhonova  <anna.tikhonova@intel.com>
14894             Ilya Tocar  <ilya.tocar@intel.com>
14895             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14896             Ilya Verbin  <ilya.verbin@intel.com>
14897             Kirill Yukhin  <kirill.yukhin@intel.com>
14898             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14900         * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
14901         * config/i386/i386.md
14902         (define_code_iterator any_float): New.
14903         (define_code_attr floatsuffix): New.
14904         * config/i386/sse.md
14905         (define_mode_iterator VF1_128_256VL): New.
14906         (define_mode_iterator VF2_512_256VL): New.
14907         (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
14908         TARGET check.
14909         (define_insn "ufloatv8siv8df<mask_name>"): Delete.
14910         (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
14911         New.
14912         (define_mode_attr qq2pssuff): New.
14913         (define_mode_attr sselongvecmode): New.
14914         (define_mode_attr sselongvecmodelower): New.
14915         (define_mode_attr sseintvecmode3): New.
14916         (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
14917         New.
14918         (define_insn "*<floatsuffix>floatv2div2sf2"): New.
14919         (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
14920         (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
14921         (define_insn "ufloatv2siv2df2<mask_name>"): New.
14923 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14924             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14925             Anna Tikhonova  <anna.tikhonova@intel.com>
14926             Ilya Tocar  <ilya.tocar@intel.com>
14927             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14928             Ilya Verbin  <ilya.verbin@intel.com>
14929             Kirill Yukhin  <kirill.yukhin@intel.com>
14930             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14932         * config/i386/sse.md
14933         (define_mode_iterator VF2_AVX512VL): New.
14934         (define_mode_attr sseintvecmode2): New.
14935         (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
14936         (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
14937         (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
14938         (define_insn
14939         "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
14940         Ditto.
14941         (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
14942         Ditto.
14943         (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
14944         Ditto.
14946 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14947             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14948             Anna Tikhonova  <anna.tikhonova@intel.com>
14949             Ilya Tocar  <ilya.tocar@intel.com>
14950             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14951             Ilya Verbin  <ilya.verbin@intel.com>
14952             Kirill Yukhin  <kirill.yukhin@intel.com>
14953             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14955         * config/i386/i386.md
14956         (define_insn "*movoi_internal_avx"): Add evex version.
14957         (define_insn "*movti_internal"): Ditto.
14959 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14960             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14961             Anna Tikhonova  <anna.tikhonova@intel.com>
14962             Ilya Tocar  <ilya.tocar@intel.com>
14963             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14964             Ilya Verbin  <ilya.verbin@intel.com>
14965             Kirill Yukhin  <kirill.yukhin@intel.com>
14966             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14968         * config/i386/i386.md
14969         (define_attr "isa"): Add avx512dq, noavx512dq.
14970         (define_attr "enabled"): Ditto.
14971         * config/i386/sse.md
14972         (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
14974 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14975             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14976             Anna Tikhonova  <anna.tikhonova@intel.com>
14977             Ilya Tocar  <ilya.tocar@intel.com>
14978             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14979             Ilya Verbin  <ilya.verbin@intel.com>
14980             Kirill Yukhin  <kirill.yukhin@intel.com>
14981             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14983         * config/i386/i386.c
14984         (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
14985         avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
14986         avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
14987         avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
14988         avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
14989         avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
14990         avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
14991         avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
14992         * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
14993         * config/i386/sse.md
14994         (define_mode_iterator VMOVE): Allow V4TI mode.
14995         (define_mode_iterator V_AVX512VL): New.
14996         (define_mode_iterator V): New handling for AVX512VL.
14997         (define_insn "avx512f_load<mode>_mask"): Delete.
14998         (define_insn "<avx512>_load<mode>_mask"): New.
14999         (define_insn "avx512f_store<mode>_mask"): Delete.
15000         (define_insn "<avx512>_store<mode>_mask"): New.
15003 2014-08-18  Yury Gribov  <y.gribov@samsung.com>
15005         PR sanitizer/62089
15006         * asan.c (instrument_derefs): Fix bitfield check.
15008 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
15010         * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
15011         * config/rs6000/htm.md (ttest): Remove clobber.
15012         * config/rs6000/predicates.md (any_mask_operand): New predicate.
15013         (and_operand): Reformat.
15014         (and_2rld_operand): New predicate.
15015         * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
15016         parameter.
15017         * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
15018         parameter.  Handle AND directly.
15019         (rs6000_split_logical_di): Remove last parameter.
15020         (rs6000_split_logical): Remove last parameter.  Remove obsolete
15021         comment.
15022         * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
15023         (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
15024         (ctz<mode>2, ffs<mode>2): Delete clobber.  Reformat.
15025         (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
15026         *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
15027         and 5 anonymous splitters):  Delete.
15028         (and<mode>3): New expander.
15029         (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
15030         (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
15031         (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
15032         (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
15033         (floatdisf2_internal1): Remove clobbers.
15034         (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
15035         *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
15036         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
15037         (and<mode>3 for BOOL_128): Remove clobber.
15038         (*and<mode>3_internal for BOOL_128): Remove clobber.  Adjust call of
15039         rs6000_split_logical.
15040         (*bool<mode>3_internal for BOOL_128): Adjust call of
15041         rs6000_split_logical.
15042         (*boolc<mode>3_internal1 for BOOL_128,
15043         *boolc<mode>3_internal2 for BOOL_128,
15044         *boolcc<mode>3_internal1 for BOOL_128,
15045         *boolcc<mode>3_internal2 for BOOL_128,
15046         *eqv<mode>3_internal1 for BOOL_128,
15047         *eqv<mode>3_internal2 for BOOL_128,
15048         *one_cmpl<mode>3_internal for BOOL_128): Ditto.
15049         * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
15050         clobber.
15051         (*vec_reload_and_reg_<mptrsize>): Delete.
15053 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
15055         * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
15056         and split, *boolccsi3_internal3 and split): Delete.
15057         (*boolccdi3_internal1, *boolccdi3_internal2 and split,
15058         *boolccdi3_internal3 and split): Delete.
15059         (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
15060         (*eqv<mode>3): Move.  Add TODO comment.  Fix attributes.
15062 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
15064         * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
15065         and split, *boolcsi3_internal3 and split): Delete.
15066         (*boolcdi3_internal1, *boolcdi3_internal2 and split,
15067         *boolcdi3_internal3 and split): Delete.
15068         (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
15070 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
15072         * config/rs6000/rs6000.c (print_operand) <'e'>: New.
15073         <'u'>: Also support printing the low-order 16 bits.
15074         * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
15075         *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
15076         (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
15077         *booldi3_internal3 and split): Delete.
15078         (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
15079         *bool<mode>3_dot2): New.
15080         (two anonymous define_splits for non_logical_cint_operand): Merge.
15082 2014-08-17  Marek Polacek  <polacek@redhat.com>
15083             Manuel López-Ibáñez  <manu@gcc.gnu.org>
15085         PR c/62059
15086         * diagnostic.c (adjust_line): Add gcc_checking_assert.
15087         (diagnostic_show_locus): Don't print caret diagnostic
15088         if a column is larger than the line_width.
15090 2014-08-17 Roman Gareev  <gareevroman@gmail.com>
15092         * common.opt: Make the ISL AST generator to be the main code generator
15093         of Graphite.
15095 2014-08-16  Gerald Pfeifer  <gerald@pfeifer.com>
15097         * wide-int.h (generic_wide_int): Declare as class instead of struct.
15099 2014-08-16  John David Anglin  <danglin@gcc.gnu.org>
15101         PR target/61641
15102         * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
15103         Declare.
15104         * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
15105         (pa_output_addr_vec, pa_output_addr_diff_vec): New.
15106         * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
15107         Define.
15108         * config/pa/pa.md (begin_brtab): Delete insn.
15109         (end_brtab): Likewise.
15111 2014-08-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15113         * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
15115 2014-08-15  Jan Hubicka  <hubicka@ucw.cz>
15117         * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
15118         (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
15119         possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
15120         (get_dynamic_type): Remove.
15121         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
15122         (clear_speculation): Bring to ipa-deivrt.h
15123         (get_class_context): Rename to ...
15124         (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
15125         (contains_type_p): Update.
15126         (get_dynamic_type): Rename to ...
15127         ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
15128         (possible_polymorphic_call_targets): UPdate.
15129         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
15130         * ipa-prop.c (ipa_analyze_call_uses): Update.
15132 2014-08-15  Oleg Endo  <olegendo@gcc.gnu.org>
15134         * doc/invoke.texi (SH options): Document missing processor variant
15135         options.  Remove references to Hitachi.  Undocument deprecated mspace
15136         option.
15138 2014-08-15  Jason Merrill  <jason@redhat.com>
15140         * tree.c (type_hash_canon): Uncomment assert.
15142 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15144         * input.h (in_system_header_at): Add comment.
15146 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15148         PR fortran/44054
15149         * diagnostic.c (build_message_string): Make it extern.
15150         * diagnostic.h (build_message_string): Make it extern.
15152 2014-08-15  Vladimir Makarov  <vmakarov@redhat.com>
15154         * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
15155         load/store from/to non-floating class pseudo.
15157 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15159         * input.c (diagnostic_file_cache_fini): Fix typo in comment.
15161 2014-08-15  Richard Biener  <rguenther@suse.de>
15163         * tree-ssa-structalias.c (readonly_id): Rename to string_id.
15164         (get_constraint_for_ssa_var): Remove dead code.
15165         (get_constraint_for_1): Adjust.
15166         (find_what_var_points_to): Likewise.
15167         (init_base_vars): Likewise.  STRING_CSTs do not contain pointers.
15169 2014-08-15  Ilya Tocar  <tocarip@gmail.com>
15171         PR target/61878
15172         * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
15173         (_mm512_mask_cmpge_epu32_mask): Ditto.
15174         (_mm512_cmpge_epu32_mask): Ditto.
15175         (_mm512_mask_cmpge_epi64_mask): Ditto.
15176         (_mm512_cmpge_epi64_mask): Ditto.
15177         (_mm512_mask_cmpge_epu64_mask): Ditto.
15178         (_mm512_cmpge_epu64_mask): Ditto.
15179         (_mm512_mask_cmple_epi32_mask): Ditto.
15180         (_mm512_cmple_epi32_mask): Ditto.
15181         (_mm512_mask_cmple_epu32_mask): Ditto.
15182         (_mm512_cmple_epu32_mask): Ditto.
15183         (_mm512_mask_cmple_epi64_mask): Ditto.
15184         (_mm512_cmple_epi64_mask): Ditto.
15185         (_mm512_mask_cmple_epu64_mask): Ditto.
15186         (_mm512_cmple_epu64_mask): Ditto.
15187         (_mm512_mask_cmplt_epi32_mask): Ditto.
15188         (_mm512_cmplt_epi32_mask): Ditto.
15189         (_mm512_mask_cmplt_epu32_mask): Ditto.
15190         (_mm512_cmplt_epu32_mask): Ditto.
15191         (_mm512_mask_cmplt_epi64_mask): Ditto.
15192         (_mm512_cmplt_epi64_mask): Ditto.
15193         (_mm512_mask_cmplt_epu64_mask): Ditto.
15194         (_mm512_cmplt_epu64_mask): Ditto.
15195         (_mm512_mask_cmpneq_epi32_mask): Ditto.
15196         (_mm512_mask_cmpneq_epu32_mask): Ditto.
15197         (_mm512_cmpneq_epu32_mask): Ditto.
15198         (_mm512_mask_cmpneq_epi64_mask): Ditto.
15199         (_mm512_cmpneq_epi64_mask): Ditto.
15200         (_mm512_mask_cmpneq_epu64_mask): Ditto.
15201         (_mm512_cmpneq_epu64_mask): Ditto.
15202         (_mm512_castpd_ps): Ditto.
15203         (_mm512_castpd_si512): Ditto.
15204         (_mm512_castps_pd): Ditto.
15205         (_mm512_castps_si512): Ditto.
15206         (_mm512_castsi512_ps): Ditto.
15207         (_mm512_castsi512_pd): Ditto.
15208         (_mm512_castpd512_pd128): Ditto.
15209         (_mm512_castps512_ps128): Ditto.
15210         (_mm512_castsi512_si128): Ditto.
15211         (_mm512_castpd512_pd256): Ditto.
15212         (_mm512_castps512_ps256): Ditto.
15213         (_mm512_castsi512_si256): Ditto.
15214         (_mm512_castpd128_pd512): Ditto.
15215         (_mm512_castps128_ps512): Ditto.
15216         (_mm512_castsi128_si512): Ditto.
15217         (_mm512_castpd256_pd512): Ditto.
15218         (_mm512_castps256_ps512): Ditto.
15219         (_mm512_castsi256_si512): Ditto.
15220         (_mm512_cmpeq_epu32_mask): Ditto.
15221         (_mm512_mask_cmpeq_epu32_mask): Ditto.
15222         (_mm512_mask_cmpeq_epu64_mask): Ditto.
15223         (_mm512_cmpeq_epu64_mask): Ditto.
15224         (_mm512_cmpgt_epu32_mask): Ditto.
15225         (_mm512_mask_cmpgt_epu32_mask): Ditto.
15226         (_mm512_mask_cmpgt_epu64_mask): Ditto.
15227         (_mm512_cmpgt_epu64_mask): Ditto.
15228         * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
15229         V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
15230         * config/i386/i386.c (enum ix86_builtins): Add
15231         IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
15232         IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
15233         IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
15234         (bdesc_args): Add __builtin_ia32_si512_256si,
15235         __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
15236         __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
15237         __builtin_ia32_pd512_pd.
15238         (ix86_expand_args_builtin): Handle new FTYPEs.
15239         * config/i386/sse.md (castmode): Add 512-bit modes.
15240         (AVX512MODE2P): New.
15241         (avx512f_<castmode><avxsizesuffix>_<castmode): New.
15242         (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
15244 2014-08-15  Richard Biener  <rguenther@suse.de>
15246         * fold-const.c (tree_swap_operands_p): Put all constants
15247         last, also strip sign-changing NOPs when considering further
15248         canonicalization.  Canonicalize also when optimizing for size.
15250 2014-08-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15252         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
15253         one_match > zero_match case to just before simple_sequence.
15255 2014-08-15  Richard Biener  <rguenther@suse.de>
15257         * data-streamer.h (streamer_string_index, string_for_index):
15258         Remove.
15259         * data-streamer-out.c (streamer_string_index): Make static.
15260         * data-streamer-in.c (string_for_index): Likewise.
15261         * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
15262         * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
15264 2014-08-15  Richard Biener  <rguenther@suse.de>
15266         PR tree-optimization/62031
15267         * tree-data-ref.c (dr_analyze_indices): Do not set
15268         DR_UNCONSTRAINED_BASE.
15269         (dr_may_alias_p): All indirect accesses have to go the
15270         formerly DR_UNCONSTRAINED_BASE path.
15271         * tree-data-ref.h (struct indices): Remove
15272         unconstrained_base member.
15273         (DR_UNCONSTRAINED_BASE): Remove.
15275 2014-08-15  Jakub Jelinek  <jakub@redhat.com>
15277         PR middle-end/62092
15278         * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
15279         OMP_CLAUSE_SHARED for global vars if the global var is mentioned
15280         in OMP_CLAUSE_MAP in some outer target region.
15282 2014-08-15  Bin Cheng  <bin.cheng@arm.com>
15284         * tree-ssa-loop-ivopts.c (ivopts_data): New field
15285         name_expansion_cache.
15286         (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
15287         (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
15288         (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
15289         (difference_cannot_overflow_p): New parameter.  Use affine
15290         expansion for equality check.
15291         (iv_elimination_compare_lt): Pass new argument.
15293 2014-08-14  DJ Delorie  <dj@redhat.com>
15295         * config/rl78/rl78-real.md (addqi3_real): Allow adding global
15296         variables to the accumulator.
15298         * config/rl78/predicates.md (rl78_near_mem_operand): New.
15299         * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
15300         (movhi_virt_mm): Split out near mem-mem moves to avoid problems
15301         with far-far moves.
15303         * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
15304         * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
15305         (umulqihi3_virt): Likewise.
15306         * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
15307         (umulqihi3_real): Likewise.
15309         * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
15311 2014-08-14  Jan Hubicka  <hubicka@ucw.cz>
15313         PR tree-optimization/62091
15314         * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
15315         function_entry_reached.
15316         (walk_aliased_vdefs): Clear it here.
15317         * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
15319 2014-08-14  Jan Hubicka  <hubicka@ucw.cz>
15321         * ipa-utils.h (compare_virtual_tables): Declare.
15322         * ipa-devirt.c (odr_subtypes_equivalent_p): New function
15324 2014-08-14  Marek Polacek  <polacek@redhat.com>
15326         DR 458
15327         * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
15328         (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
15330 2014-08-14  Tom de Vries  <tom@codesourcery.com>
15332         * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
15334 2014-08-14  Tom de Vries  <tom@codesourcery.com>
15336         PR rtl-optimization/62004
15337         PR rtl-optimization/62030
15338         * ifcvt.c (rtx_interchangeable_p): New function.
15339         (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
15340         * emit-rtl.h (mem_attrs_eq_p): Declare.
15342 2014-08-14  Roman Gareev  <gareevroman@gmail.com>
15344         * graphite-scop-detection.c:
15345         Add inclusion of cp-tree.h.
15346         (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
15347         in case they are pointers to object types
15349 2014-08-14  Richard Biener  <rguenther@suse.de>
15351         * BASE-VER: Change to 5.0.0
15353 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15354             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15355             Anna Tikhonova  <anna.tikhonova@intel.com>
15356             Ilya Tocar  <ilya.tocar@intel.com>
15357             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15358             Ilya Verbin  <ilya.verbin@intel.com>
15359             Kirill Yukhin  <kirill.yukhin@intel.com>
15360             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15362         * config/i386/sse.md (define_mode_attr avx512): New.
15363         (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
15364         V4DI modes.
15365         (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
15366         (define_mode_attr ssse3_avx2): Ditto.
15367         (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
15368         (define_mode_attr avx2_avx512bw): New.
15369         (define_mode_attr ssedoublemodelower): New.
15370         (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
15371         V32HI, V64QI modes.
15372         (define_mode_attr ssebytemode): Allow V8DI modes.
15373         (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
15374         (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
15375         (define_mode_attr ssePSmode2): New.
15376         (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
15377         V16HI, V32HI modes.
15378         (define_mode_attr dbpsadbwmode): New.
15379         (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
15380         V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
15381         (vi8_sse4_1_avx2_avx512): New.
15382         (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
15383         mode attribute.
15384         (define_mode_attr blendbits): Move before its immediate use.
15386 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15387             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15388             Anna Tikhonova  <anna.tikhonova@intel.com>
15389             Ilya Tocar  <ilya.tocar@intel.com>
15390             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15391             Ilya Verbin  <ilya.verbin@intel.com>
15392             Kirill Yukhin  <kirill.yukhin@intel.com>
15393             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15395         * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
15396         * config/i386/subst.md
15397         (define_mode_iterator SUBST_V): Update.
15398         (define_mode_iterator SUBST_A): Ditto.
15399         (define_subst_attr "mask_operand7"): New.
15400         (define_subst_attr "mask_operand10"): New.
15401         (define_subst_attr "mask_operand_arg34") : New.
15402         (define_subst_attr "mask_expand_op3"): New.
15403         (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
15404         (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
15405         (define_subst_attr "mask_avx512vl_condition"): New.
15406         (define_subst_attr "round_mask_operand4"): Ditto.
15407         (define_subst_attr "round_mask_scalar_op3"): Delete.
15408         (define_subst_attr "round_mask_op4"): New.
15409         (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
15410         V16SImode.
15411         (define_subst_attr "round_modev8sf_condition"): New.
15412         (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
15413         <MODE>mode.
15414         (define_subst_attr "round_saeonly_mask_operand4"): New.
15415         (define_subst_attr "round_saeonly_mask_op4"): New.
15416         (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
15417         V8DImode, V16SImode.
15418         (define_subst_attr "round_saeonly_modev8sf_condition"): New.
15419         (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
15420         (define_subst_attr "mask_expand4_args"): New.
15421         (define_subst "mask_expand4"): New.
15423 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15424             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15425             Anna Tikhonova  <anna.tikhonova@intel.com>
15426             Ilya Tocar  <ilya.tocar@intel.com>
15427             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15428             Ilya Verbin  <ilya.verbin@intel.com>
15429             Kirill Yukhin  <kirill.yukhin@intel.com>
15430             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15432         * config/i386/i386.md
15433         (define_attr "isa"): Add avx512bw,noavx512bw.
15434         (define_attr "enabled"): Ditto.
15435         (define_split): Add 32/64-bit mask logic.
15436         (define_insn "*k<logic>qi"): New.
15437         (define_insn "*k<logic>hi"): New.
15438         (define_insn "*anddi_1"): Add mask version.
15439         (define_insn "*andsi_1"): Ditto.
15440         (define_insn "*<code><mode>_1"): Ditto.
15441         (define_insn "*<code>hi_1"): Ditto.
15442         (define_insn "kxnor<mode>"): New.
15443         (define_insn "kunpcksi"): New.
15444         (define_insn "kunpckdi"): New.
15445         (define_insn "*one_cmpl<mode>2_1"): Add mask version.
15446         (define_insn "*one_cmplhi2_1"): Ditto.
15448 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15449             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15450             Anna Tikhonova  <anna.tikhonova@intel.com>
15451             Ilya Tocar  <ilya.tocar@intel.com>
15452             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15453             Ilya Verbin  <ilya.verbin@intel.com>
15454             Kirill Yukhin  <kirill.yukhin@intel.com>
15455             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15457         * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
15458         V32HImode.
15460 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15461             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15462             Anna Tikhonova  <anna.tikhonova@intel.com>
15463             Ilya Tocar  <ilya.tocar@intel.com>
15464             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15465             Ilya Verbin  <ilya.verbin@intel.com>
15466             Kirill Yukhin  <kirill.yukhin@intel.com>
15467             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15469         * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
15470         registers.
15471         (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
15472         (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
15473         xmm/ymm16+ when availble.
15474         * config/i386/i386.h
15475         (HARD_REGNO_NREGS): Add mask regs.
15476         (VALID_AVX512F_REG_MODE): Ditto.
15477         (VALID_AVX512F_REG_MODE) : Define.
15478         (VALID_MASK_AVX512BW_MODE): Ditto.
15479         (reg_class) (MASK_REG_P(X)): Define.
15480         * config/i386/i386.md: Do not split long moves with mask register,
15481         use kmovb if avx512bw is availible.
15482         (movdi_internal): Handle mask registers.
15484 2014-08-14  Richard Biener  <rguenther@suse.de>
15486         PR tree-optimization/62081
15487         * tree-ssa-loop.c (pass_fix_loops): New pass.
15488         (pass_tree_loop::gate):  Do not fixup loops here.
15489         * tree-pass.h (make_pass_fix_loops): Declare.
15490         * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
15492 2014-08-14  Richard Biener  <rguenther@suse.de>
15494         * tree.c (type_hash_lookup, type_hash_add): Merge into ...
15495         (type_hash_canon): ... this and avoid 2nd lookup for the add.
15497 2014-08-14  Richard Biener  <rguenther@suse.de>
15499         PR tree-optimization/62090
15500         * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
15501         (fold_builtin_2): Do not fold sprintf.
15502         (fold_builtin_3): Likewise.
15503         * gimple-fold.c (gimple_fold_builtin_sprintf): New function
15504         moved from builtins.c.
15505         (gimple_fold_builtin): Fold sprintf.
15507 2014-08-14  Richard Biener  <rguenther@suse.de>
15509         PR rtl-optimization/62079
15510         * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
15511         run cleanup_cfg.
15513 2014-08-14  Ilya Enkovich  <ilya.enkovich@intel.com>
15515         * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
15516         current_function_decl.
15518 2014-08-14  Ilya Enkovich  <ilya.enkovich@intel.com>
15520         * cgraph.c (cgraph_node::function_symbol): Fix wrong
15521         cgraph_function_node to cgraph_node::function_symbol
15522         refactoring.
15524 2014-08-14  Zhenqiang Chen  <zhenqiang.chen@arm.com>
15526         * config/arm/arm.c (arm_option_override): Set max_insns_skipped
15527         to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
15529 2014-08-13  Chen Gang  gang.chen.5i5j@gmail.com
15531         * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
15532         warning.
15534 2014-08-13  Roman Gareev  <gareevroman@gmail.com>
15536         * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
15537         generator.
15539 2014-08-12  Jakub Jelinek  <jakub@redhat.com>
15541         PR target/62025
15542         * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
15543         any registers that are used in mem_insn.
15545 2014-08-12  Steve Ellcey  <sellcey@mips.com>
15547         * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
15549 2014-08-12  Steve Ellcey  <sellcey@mips.com>
15551         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
15552         (MULTILIB_DIRNAMES): Ditto.
15553         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
15554         * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
15555         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
15556         * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
15557         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
15558         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
15560 2014-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15562         PR target/61413
15563         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
15564         of __ARM_SIZEOF_WCHAR_T.
15566 2014-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15568         PR target/62098
15569         * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
15570         Remove unnecessary attributes.
15572 2014-08-12  Yury Gribov  <y.gribov@samsung.com>
15574         * internal-fn.c (init_internal_fns): Fix off-by-one.
15576 2014-08-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15577             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15578             Anna Tikhonova  <anna.tikhonova@intel.com>
15579             Ilya Tocar  <ilya.tocar@intel.com>
15580             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15581             Ilya Verbin  <ilya.verbin@intel.com>
15582             Kirill Yukhin  <kirill.yukhin@intel.com>
15583             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15585         * config/i386/i386.c (standard_sse_constant_opcode): Use
15586         vpxord/vpternlog if avx512 is availible.
15588 2014-08-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15590         PR middle-end/62103
15591         * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
15592         bitfields, that is when size doesn't match the size of type or the
15593         size of the constructor.
15595 2014-08-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
15597         * config/rs6000/constraints.md (wh constraint): New constraint,
15598         for FP registers if direct move is available.
15599         (wi constraint): New constraint, for VSX/FP registers that can
15600         handle 64-bit integers.
15601         (wj constraint): New constraint for VSX/FP registers that can
15602         handle 64-bit integers for direct moves.
15603         (wk constraint): New constraint for VSX/FP registers that can
15604         handle 64-bit doubles for direct moves.
15605         (wy constraint): Make documentation match implementation.
15607         * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
15608         scalar_in_vmx_p field to simplify tests of whether SFmode or
15609         DFmode can go in the Altivec registers.
15610         (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
15611         (rs6000_setup_reg_addr_masks): Likewise.
15612         (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
15613         field, and wh/wi/wj/wk constraints.
15614         (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
15615         the wh/wi/wj/wk constraints.
15616         (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
15617         upper registers, prefer VSX registers unless the operation is a
15618         memory operation with REG+OFFSET addressing.
15620         * config/rs6000/vsx.md (VSr mode attribute): Add support for
15621         DImode.  Change SFmode to use ww constraint instead of d to allow
15622         SF registers in the upper registers.
15623         (VSr2): Likewise.
15624         (VSr3): Likewise.
15625         (VSr5): Fix thinko in comment.
15626         (VSa): New mode attribute that is an alternative to wa, that
15627         returns the VSX register class that a mode can go in, but may not
15628         be the preferred register class.
15629         (VS_64dm): New mode attribute for appropriate register classes for
15630         referencing 64-bit elements of vectors for direct moves and normal
15631         moves.
15632         (VS_64reg): Likewise.
15633         (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
15634         register allocator to only registers the data type can handle.
15635         (vsx_le_perm_load_<mode>): Likewise.
15636         (vsx_le_perm_store_<mode>): Likewise.
15637         (vsx_xxpermdi2_le_<mode>): Likewise.
15638         (vsx_xxpermdi4_le_<mode>): Likewise.
15639         (vsx_lxvd2x2_le_<mode>): Likewise.
15640         (vsx_lxvd2x4_le_<mode>): Likewise.
15641         (vsx_stxvd2x2_le_<mode>): Likewise.
15642         (vsx_add<mode>3): Likewise.
15643         (vsx_sub<mode>3): Likewise.
15644         (vsx_mul<mode>3): Likewise.
15645         (vsx_div<mode>3): Likewise.
15646         (vsx_tdiv<mode>3_internal): Likewise.
15647         (vsx_fre<mode>2): Likewise.
15648         (vsx_neg<mode>2): Likewise.
15649         (vsx_abs<mode>2): Likewise.
15650         (vsx_nabs<mode>2): Likewise.
15651         (vsx_smax<mode>3): Likewise.
15652         (vsx_smin<mode>3): Likewise.
15653         (vsx_sqrt<mode>2): Likewise.
15654         (vsx_rsqrte<mode>2): Likewise.
15655         (vsx_tsqrt<mode>2_internal): Likewise.
15656         (vsx_fms<mode>4): Likewise.
15657         (vsx_nfma<mode>4): Likewise.
15658         (vsx_eq<mode>): Likewise.
15659         (vsx_gt<mode>): Likewise.
15660         (vsx_ge<mode>): Likewise.
15661         (vsx_eq<mode>_p): Likewise.
15662         (vsx_gt<mode>_p): Likewise.
15663         (vsx_ge<mode>_p): Likewise.
15664         (vsx_xxsel<mode>): Likewise.
15665         (vsx_xxsel<mode>_uns): Likewise.
15666         (vsx_copysign<mode>3): Likewise.
15667         (vsx_float<VSi><mode>2): Likewise.
15668         (vsx_floatuns<VSi><mode>2): Likewise.
15669         (vsx_fix_trunc<mode><VSi>2): Likewise.
15670         (vsx_fixuns_trunc<mode><VSi>2): Likewise.
15671         (vsx_x<VSv>r<VSs>i): Likewise.
15672         (vsx_x<VSv>r<VSs>ic): Likewise.
15673         (vsx_btrunc<mode>2): Likewise.
15674         (vsx_b2trunc<mode>2): Likewise.
15675         (vsx_floor<mode>2): Likewise.
15676         (vsx_ceil<mode>2): Likewise.
15677         (vsx_<VS_spdp_insn>): Likewise.
15678         (vsx_xscvspdp): Likewise.
15679         (vsx_xvcvspuxds): Likewise.
15680         (vsx_float_fix_<mode>2): Likewise.
15681         (vsx_set_<mode>): Likewise.
15682         (vsx_extract_<mode>_internal1): Likewise.
15683         (vsx_extract_<mode>_internal2): Likewise.
15684         (vsx_extract_<mode>_load): Likewise.
15685         (vsx_extract_<mode>_store): Likewise.
15686         (vsx_splat_<mode>): Likewise.
15687         (vsx_xxspltw_<mode>): Likewise.
15688         (vsx_xxspltw_<mode>_direct): Likewise.
15689         (vsx_xxmrghw_<mode>): Likewise.
15690         (vsx_xxmrglw_<mode>): Likewise.
15691         (vsx_xxsldwi_<mode>): Likewise.
15692         (vsx_xscvdpspn): Tighten constraints to only use register classes
15693         the types use.
15694         (vsx_xscvspdpn): Likewise.
15695         (vsx_xscvdpspn_scalar): Likewise.
15697         * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
15698         wj, and wk constraints.
15699         (GPR_REG_CLASS_P): New helper macro for register classes targeting
15700         general purpose registers.
15702         * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
15703         direct moves.
15704         (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
15705         DImode instead of wm.  Use wk constraint for direct move of DFmode
15706         instead of wm.
15707         (extendsidi2_lfiwax): Likewise.
15708         (lfiwax): Likewise.
15709         (lfiwzx): Likewise.
15710         (movdi_internal64): Likewise.
15712         * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
15713         wk constraints. Make the wy constraint documentation match them
15714         implementation.
15716 2014-08-11  Mircea Namolaru  <mircea.namolaru@inria.fr>
15718         Replacement of isl_int by isl_val
15719         * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
15720         (compute_bounds_for_param): use isl_val instead of isl_int
15721         (compute_bounds_for_loop): likewise
15722         * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
15723         (build_linearized_memory_access): use isl_val instead of isl_int
15724         (pdr_stride_in_loop): likewise
15725         * graphite-optimize-isl.c:
15726         (getPrevectorMap): use isl_val instead of isl_int
15727         * graphite-poly.c:
15728         (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
15729         graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
15730         (extern the_isl_ctx): declare
15731         (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
15732         (extract_affine_gmp): likewise
15733         (wrap): likewise
15734         (build_loop_iteration_domains): likewise
15735         (add_param_constraints): likewise
15737 2014-08-11  Richard Biener  <rguenther@suse.de>
15739         PR tree-optimization/62075
15740         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
15741         handle uses in patterns.
15743 2014-08-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15744             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15745             Anna Tikhonova  <anna.tikhonova@intel.com>
15746             Ilya Tocar  <ilya.tocar@intel.com>
15747             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15748             Ilya Verbin  <ilya.verbin@intel.com>
15749             Kirill Yukhin  <kirill.yukhin@intel.com>
15750             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15752         * common/config/i386/i386-common.c
15753         (OPTION_MASK_ISA_AVX512VL_SET): Define.
15754         (OPTION_MASK_ISA_AVX512F_UNSET): Update.
15755         (ix86_handle_option): Handle OPT_mavx512vl.
15756         * config/i386/cpuid.h (bit_AVX512VL): Define.
15757         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
15758         set -mavx512vl accordingly.
15759         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
15760         OPTION_MASK_ISA_AVX512VL.
15761         * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
15762         (ix86_option_override_internal): Define PTA_AVX512VL, handle
15763         PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
15764         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
15765         * config/i386/i386.h (TARGET_AVX512VL): Define.
15766         (TARGET_AVX512VL_P(x)): Ditto.
15767         * config/i386/i386.opt: Add mavx512vl.
15769 2014-08-11  Felix Yang  <fei.yang0953@gmail.com>
15771         PR tree-optimization/62073
15772         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
15773         a basic block.
15775 2014-08-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15776             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15777             Anna Tikhonova  <anna.tikhonova@intel.com>
15778             Ilya Tocar  <ilya.tocar@intel.com>
15779             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15780             Ilya Verbin  <ilya.verbin@intel.com>
15781             Kirill Yukhin  <kirill.yukhin@intel.com>
15782             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15784         * common/config/i386/i386-common.c
15785         (OPTION_MASK_ISA_AVX512BW_SET) : Define.
15786         (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
15787         (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
15788         (ix86_handle_option): Handle OPT_mavx512bw.
15789         * config/i386/cpuid.h (bit_AVX512BW): Define.
15790         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
15791         set -mavx512bw accordingly.
15792         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
15793         OPTION_MASK_ISA_AVX512BW.
15794         * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
15795         (ix86_option_override_internal): Define PTA_AVX512BW, handle
15796         PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
15797         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
15798         * config/i386/i386.h (TARGET_AVX512BW): Define.
15799         (TARGET_AVX512BW_P(x)): Ditto.
15800         * config/i386/i386.opt: Add mavx512bw.
15802 2014-08-11  Richard Biener  <rguenther@suse.de>
15804         PR tree-optimization/62070
15805         * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
15806         Remove SSA checking.
15808 2014-08-11  Yury Gribov  <y.gribov@samsung.com>
15810         * asan.c (asan_check_flags): New enum.
15811         (build_check_stmt_with_calls): Removed function.
15812         (build_check_stmt): Split inlining logic to
15813         asan_expand_check_ifn.
15814         (instrument_derefs): Rename parameter.
15815         (instrument_mem_region_access): Rename parameter.
15816         (instrument_strlen_call): Likewise.
15817         (asan_expand_check_ifn): New function.
15818         (asan_instrument): Remove old code.
15819         (pass_sanopt::execute): Change handling of
15820         asan-instrumentation-with-call-threshold.
15821         (asan_clear_shadow): Fix formatting.
15822         (asan_function_start): Likewise.
15823         (asan_emit_stack_protection): Likewise.
15824         * doc/invoke.texi (asan-instrumentation-with-call-threshold):
15825         Update description.
15826         * internal-fn.c (expand_ASAN_CHECK): New function.
15827         * internal-fn.def (ASAN_CHECK): New internal function.
15828         * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
15829         Update description.
15830         (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
15831         * tree.c: Small comment fix.
15833 2014-08-11  Yury Gribov  <y.gribov@samsung.com>
15835         * gimple.c (gimple_call_fnspec): Support internal functions.
15836         (gimple_call_return_flags): Use const.
15837         * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
15838         * internal-fn.def: Add fnspec information.
15839         * internal-fn.h (internal_fn_fnspec): New function.
15840         (init_internal_fns): Declare new function.
15841         * internal-fn.c (internal_fn_fnspec_array): New global variable.
15842         (init_internal_fns): New function.
15843         * tree-core.h: Update macro call.
15844         * tree.c (build_common_builtin_nodes): Initialize internal fns.
15846 2014-08-10  Gerald Pfeifer  <gerald@pfeifer.com>
15848         * lto-streamer.h (struct output_block::symbol): Change from
15849         struct symtab_node to plain symtab_node.
15850         (referenced_from_this_partition_p): Change first parameter
15851         from struct symtab_node to plain symtab_node.
15853 2014-08-10  Marek Polacek  <polacek@redhat.com>
15855         PR c/51849
15856         * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
15858 2014-08-09  Jan Hubicka  <hubicka@ucw.cz>
15860         * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
15861         DECL correctly; do not give up on types in static storage.
15863 2014-08-09  Paolo Carlini  <paolo.carlini@oracle.com>
15865         * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
15867 2014-08-09  Roman Gareev  <gareevroman@gmail.com>
15869         * graphite-isl-ast-to-gimple.c:
15870         (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
15872         * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
15874 2014-08-08  Guozhi Wei  <carrot@google.com>
15876         * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
15878 2014-08-08  Cary Coutant  <ccoutant@google.com>
15880         * dwarf2out.c (get_skeleton_type_unit): Remove.
15881         (output_skeleton_debug_sections): Remove skeleton type units.
15882         (output_comdat_type_unit): Likewise.
15883         (dwarf2out_finish): Likewise.
15885 2014-08-07  Yi Yang  <ahyangyi@google.com>
15887         * predict.c (expr_expected_value_1): Remove the redundant assignment.
15889 2014-08-08  Richard Biener  <rguenther@suse.de>
15891         * lto-streamer.h (struct lto_input_block): Make it a class
15892         with a constructor.
15893         (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
15894         (struct lto_function_header, struct lto_simple_header,
15895         struct lto_simple_header_with_strings,
15896         struct lto_decl_header, struct lto_function_header): Make
15897         a simple inheritance hieararchy.  Remove unused fields.
15898         (struct lto_asm_header): Remove.
15899         * lto-streamer-out.c (produce_asm): Adjust.
15900         (lto_output_toplevel_asms): Likewise.
15901         (produce_asm_for_decls): Likewise.
15902         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
15903         * data-streamer-in.c (string_for_index): Likewise.
15904         * ipa-inline-analysis.c (inline_read_section): Likewise.
15905         * ipa-prop.c (ipa_prop_read_section): Likewise.
15906         (read_replacements_section): Likewise.
15907         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
15908         * lto-section-in.c (lto_create_simple_input_block): Likewise.
15909         (lto_destroy_simple_input_block): Likewise.
15910         * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
15911         (lto_input_toplevel_asms): Likewise.
15913 2014-08-08  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15914             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15915             Anna Tikhonova  <anna.tikhonova@intel.com>
15916             Ilya Tocar  <ilya.tocar@intel.com>
15917             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15918             Ilya Verbin  <ilya.verbin@intel.com>
15919             Kirill Yukhin  <kirill.yukhin@intel.com>
15920             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15922         * common/config/i386/i386-common.c
15923         (OPTION_MASK_ISA_AVX512DQ_SET): Define.
15924         (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
15925         (ix86_handle_option): Handle OPT_mavx512dq.
15926         * config/i386/cpuid.h (bit_AVX512DQ): Define.
15927         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
15928         set -mavx512dq accordingly.
15929         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
15930         OPTION_MASK_ISA_AVX512DQ.
15931         * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
15932         (ix86_option_override_internal): Define PTA_AVX512DQ, handle
15933         PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
15934         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
15935         * config/i386/i386.h (TARGET_AVX512DQ): Define.
15936         (TARGET_AVX512DQ_P(x)): Ditto.
15937         * config/i386/i386.opt: Add mavx512dq.
15939 2014-08-08  Richard Biener  <rguenther@suse.de>
15941         * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
15942         target_percent, target_percent_s): Export.
15943         (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
15944         fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
15945         fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
15946         fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
15947         fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
15948         Move to gimple-fold.c.
15949         (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
15950         strcat and strcpy.
15951         (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
15952         mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
15953         (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
15954         memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
15955         (rewrite_call_expr_array): Remove.
15956         (fold_builtin_sprintf_chk): Likewise.
15957         (fold_builtin_snprintf_chk): Likewise.
15958         (fold_builtin_varargs): Remove handling of sprintf_chk,
15959         vsprintf_chk, snprintf_chk and vsnprintf_chk.
15960         (gimple_fold_builtin_sprintf_chk): Remove.
15961         (gimple_fold_builtin_snprintf_chk): Likewise.
15962         (gimple_fold_builtin_varargs): Likewise.
15963         (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
15964         * predict.c (optimize_bb_for_size_p): Handle NULL bb.
15965         * gimple.c (gimple_seq_add_seq_without_update): New function.
15966         * gimple.h (gimple_seq_add_seq_without_update): Declare.
15967         * gimple-fold.c: Include output.h.
15968         (gsi_replace_with_seq_vops): New function, split out from ...
15969         (gimplify_and_update_call_from_tree): ... here.
15970         (replace_call_with_value): New function.
15971         (replace_call_with_call_and_fold): Likewise.
15972         (var_decl_component_p): Moved from builtins.c.
15973         (gimple_fold_builtin_memory_op): Moved from builtins.c
15974         fold_builtin_memory_op and rewritten to GIMPLE.
15975         (gimple_fold_builtin_memset): Likewise.
15976         (gimple_fold_builtin_strcpy): Likewise.
15977         (gimple_fold_builtin_strncpy): Likewise.
15978         (gimple_fold_builtin_strcat): Likewise.
15979         (gimple_fold_builtin_fputs): Likewise.
15980         (gimple_fold_builtin_memory_chk): Likewise.
15981         (gimple_fold_builtin_stxcpy_chk): Likewise.
15982         (gimple_fold_builtin_stxncpy_chk): Likewise.
15983         (gimple_fold_builtin_snprintf_chk): Likewise.
15984         (gimple_fold_builtin_sprintf_chk): Likewise.
15985         (gimple_fold_builtin_strlen): New function.
15986         (gimple_fold_builtin_with_strlen): New function split out from
15987         gimple_fold_builtin.
15988         (gimple_fold_builtin): Change signature and handle
15989         bzero, memset, bcopy, memcpy, mempcpy and memmove folding
15990         here.  Call gimple_fold_builtin_with_strlen.
15991         (gimple_fold_call): Adjust.
15993 2014-08-08  Kugan Vivekanandarajah  <kuganv@linaro.org>
15995         * calls.c (precompute_arguments): Check
15996         promoted_for_signed_and_unsigned_p and set the promoted mode.
15997         (promoted_for_signed_and_unsigned_p): New function.
15998         (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
15999         and set the promoted mode.
16000         * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
16001         * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
16002         SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
16005 2014-08-08  Kugan Vivekanandarajah  <kuganv@linaro.org>
16007         * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
16008         instead of SUBREG_PROMOTED_UNSIGNED_SET.
16009         (expand_call): Likewise.
16010         * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
16011         to get promoted mode.
16012         * combine.c (record_promoted_value): Skip > 0 comparison with
16013         SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
16014         * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
16015         of SUBREG_PROMOTED_UNSIGNED_P.
16016         (convert_modes): Likewise.
16017         (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
16018         Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
16019         (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
16020         SUBREG_PROMOTED_UNSIGNED_SET.
16021         * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
16022         instead of SUBREG_PROMOTED_UNSIGNED_SET.
16023         * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
16024         SUBREG_PROMOTED_SET.
16025         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
16026         SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
16027         * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
16028         of SUBREG_PROMOTED_UNSIGNED_P.
16029         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
16030         (SUBREG_PROMOTED_SET): New define.
16031         (SUBREG_PROMOTED_GET): Likewise.
16032         (SUBREG_PROMOTED_SIGN): Likewise.
16033         (SUBREG_PROMOTED_SIGNED_P): Likewise.
16034         (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
16035         (SUBREG_PROMOTED_UNSIGNED_P): Updated.
16036         * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
16037         instead of SUBREG_PROMOTED_UNSIGNED_GET.
16038         (nonzero_bits1): Skip > 0 comparison with the results as
16039         SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
16040         (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
16041         of !SUBREG_PROMOTED_UNSIGNED_P.
16042         * simplify-rtx.c (simplify_unary_operation_1): Use new
16043         SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
16044         (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
16045         SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
16046         SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
16048 2014-08-07  Jan Hubicka  <hubicka@ucw.cz>
16050         * ipa-devirt.c: Include gimple-pretty-print.h
16051         (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
16052         further tests.
16053         (decl_maybe_in_construction_p): Fix conditional on cdtor check
16054         (get_polymorphic_call_info): Fix return value
16055         (type_change_info): New sturcture based on ipa-prop
16056         variant.
16057         (noncall_stmt_may_be_vtbl_ptr_store): New predicate
16058         based on ipa-prop variant.
16059         (extr_type_from_vtbl_ptr_store): New function
16060         based on ipa-prop variant.
16061         (record_known_type): New function.
16062         (check_stmt_for_type_change): New function.
16063         (get_dynamic_type): New function.
16064         * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
16065         * tree-ssa-pre.c: ipa-utils.h
16066         (eliminate_dom_walker::before_dom_children): Use ipa-devirt
16067         machinery; sanity check with ipa-prop devirtualization.
16068         * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
16069         polymorphic flag.
16071 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
16073         * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
16074         * alias.c, cfgexpand.c, cgraphbuild.c,
16075         config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
16076         config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
16077         config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
16078         config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
16079         config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
16080         config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
16081         config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
16082         dse.c, except.c, gengtype.c, gimple-expr.c,
16083         gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
16084         ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
16085         tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
16086         tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
16087         tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
16088         tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
16089         pointer-set.h.
16090         * pointer-set.c: Remove file.
16091         * pointer-set.h: Remove file.
16093 2014-08-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16095         * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
16096         * config/arm/types.md (f_sels, f_seld): Delete.
16098 2014-08-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16100         * config/aarch64/aarch64.md (absdi2): Set simd attribute.
16101         (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
16102         (aarch64_movdi_<mode>high): Likewise.
16103         (aarch64_mov<mode>high_di): Likewise.
16104         (aarch64_movdi_<mode>low): Likewise.
16105         (aarch64_mov<mode>low_di): Likewise.
16106         (aarch64_movtilow_tilow): Likewise.
16107         Add comment explaining usage of fp,simd attributes and of
16108         TARGET_FLOAT and TARGET_SIMD.
16110 2014-08-07  Ian Bolton  <ian.bolton@arm.com>
16111             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16113         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
16114         Use MOVN when one of the half-words is 0xffff.
16116 2014-08-07  Marat Zakirov  <m.zakirov@samsung.com>
16118         * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
16120 2014-08-07  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
16122         * haifa-sched.c (SCHED_SORT): Delete.  Macro used exactly once.
16123         (enum rfs_decition:RFS_*): New constants wrapped in an enum.
16124         (rfs_str): String corresponding to RFS_* constants.
16125         (rank_for_schedule_stats_t): New typedef.
16126         (rank_for_schedule_stats): New static variable.
16127         (rfs_result): New static function.
16128         (rank_for_schedule): Track statistics for deciding heuristics.
16129         (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
16130         static functions.
16131         (ready_sort): Use them for debug printouts.
16132         (schedule_block): Init statistics state.  Print statistics on
16133         rank_for_schedule decisions.
16135 2014-08-07  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
16137         * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
16139 2014-08-07  Ilya Tocar  <ilya.tocar@intel.com>
16141         * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
16142         constraint.
16144 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
16146         * hash-map.h (default_hashmap_traits): Adjust overloads of hash
16147         function to not conflict.
16148         * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
16149         gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
16150         lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
16151         tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
16152         tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
16153         of pointer_map.
16155 2014-08-07  Marek Polacek  <polacek@redhat.com>
16157         * fold-const.c (fold_binary_loc): Add folding of
16158         (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
16160 2013-08-07  Ilya Enkovich  <ilya.enkovich@intel.com>
16162         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
16163         instead of type size.
16164         (ASM_FINISH_DECLARE_OBJECT): Likewise.
16166 2014-08-07  Marat Zakirov  <m.zakirov@samsung.com>
16168         * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
16169         (*thumb1_movqi_insn): Likewise.
16170         * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
16172 2014-08-07  Tom de Vries  <tom@codesourcery.com>
16174         * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
16175         (glibc_2_11_or_earlier): Remove effective-target keywords.
16177 2014-08-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
16179         * config/arm/arm.c (bdesc_2arg): Fix typo.
16180         (arm_atomic_assign_expand_fenv): Remove The default implementation.
16182 2014-08-07  Zhenqiang Chen  <zhenqiang.chen@arm.com>
16184         * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
16186 2014-08-06  Vladimir Makarov  <vmakarov@redhat.com>
16188         PR debug/61923
16189         * haifa-sched.c (advance_one_cycle): Fix dump.
16190         (schedule_block): Don't advance cycle if we are already at the
16191         beginning of the cycle.
16193 2014-08-06  Martin Jambor  <mjambor@suse.cz>
16195         PR ipa/61393
16196         * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
16198 2014-08-06  Richard Biener  <rguenther@suse.de>
16200         PR lto/62034
16201         * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
16202         SCCs here.
16203         (lto_input_tree): Pop SCCs here.
16205 2014-08-06  Richard Biener  <rguenther@suse.de>
16207         PR tree-optimization/61320
16208         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
16209         handle misaligned loads.
16211 2014-08-06  Alan Lawrence  <alan.lawrence@arm.com>
16213         * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
16214         (aarch64_expand_vec_perm_const): Check for dup before zip.
16216 2014-08-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16218         * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
16219         CONST_INT_P instead of GET_CODE and compare.
16220         (aarch64_select_cc_mode): Likewise.
16221         (aarch64_print_operand): Likewise.
16222         (aarch64_rtx_costs): Likewise.
16223         (aarch64_simd_valid_immediate): Likewise.
16224         (aarch64_simd_check_vect_par_cnst_half): Likewise.
16225         (aarch64_simd_emit_pair_result_insn): Likewise.
16227 2014-08-05  David Malcolm  <dmalcolm@redhat.com>
16229         * gdbhooks.py (find_gcc_source_dir): New helper function.
16230         (class PassNames): New class, locating and parsing passes.def.
16231         (class BreakOnPass): New command "break-on-pass".
16233 2014-08-05  Trevor Saunders  <tsaunders@mozilla.com>
16235         * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
16236         getting olde.
16238 2014-08-05  Richard Biener  <rguenther@suse.de>
16240         PR rtl-optimization/61672
16241         * emit-rtl.h (mem_attrs_eq_p): Declare.
16242         * emit-rtl.c (mem_attrs_eq_p): Export.  Handle NULL mem-attrs.
16243         * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
16244         * cfgcleanup.c (merge_memattrs): Likewise.
16245         Include emit-rtl.h.
16247 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16249         * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
16250         rather than singleton vectors.
16251         (vqdmlsls_lane_s32): Likewise.
16253 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16255         * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
16256         Use VSDQ_HSI mode iterator.
16257         (aarch64_sqrdmulh_laneq<mode>): Likewise.
16258         (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
16259         * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
16260         Use BUILTIN_VDQHS macro.
16261         (sqrdmulh_laneq): Likewise.
16262         * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
16263         (vqdmlals_laneq_s32): Likewise.
16264         (vqdmlslh_laneq_s16): Likewise.
16265         (vqdmlsls_laneq_s32): Likewise.
16266         (vqdmulhh_laneq_s16): Likewise.
16267         (vqdmulhs_laneq_s32): Likewise.
16268         (vqrdmulhh_laneq_s16): Likewise.
16269         (vqrdmulhs_laneq_s32): Likewise.
16271 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16273         * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
16274         (vmuld_laneq_f64): Likewise.
16275         (vmuls_laneq_f32): Likewise.
16276         (vmul_n_f64): Likewise.
16277         (vmuld_lane_f64): Reimplement in C.
16278         (vmuls_lane_f32): Likewise.
16280 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16282         * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
16283         to reservation.
16284         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
16286 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16288         * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
16289         (rbitsi2): Likewise.
16290         (*arm_rev): Set predicable and predicable_short_it attributes.
16292 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16294         * convert.c (convert_to_integer): Guard transformation to lrint by
16295         -fno-math-errno.
16297 2014-08-05  James Greenhalgh  <james.greenhalgh@arm.com>
16299         * config/aarch64/aarch64-builtins.c
16300         (aarch64_simd_builtin_type_mode): Delete.
16301         (v8qi_UP): Remap to V8QImode.
16302         (v4hi_UP): Remap to V4HImode.
16303         (v2si_UP): Remap to V2SImode.
16304         (v2sf_UP): Remap to V2SFmode.
16305         (v1df_UP): Remap to V1DFmode.
16306         (di_UP): Remap to DImode.
16307         (df_UP): Remap to DFmode.
16308         (v16qi_UP):V16QImode.
16309         (v8hi_UP): Remap to V8HImode.
16310         (v4si_UP): Remap to V4SImode.
16311         (v4sf_UP): Remap to V4SFmode.
16312         (v2di_UP): Remap to V2DImode.
16313         (v2df_UP): Remap to V2DFmode.
16314         (ti_UP): Remap to TImode.
16315         (ei_UP): Remap to EImode.
16316         (oi_UP): Remap to OImode.
16317         (ci_UP): Map to CImode.
16318         (xi_UP): Remap to XImode.
16319         (si_UP): Remap to SImode.
16320         (sf_UP): Remap to SFmode.
16321         (hi_UP): Remap to HImode.
16322         (qi_UP): Remap to QImode.
16323         (aarch64_simd_builtin_datum): Make mode a machine_mode.
16324         (VAR1): Build builtin name.
16325         (aarch64_init_simd_builtins): Remove dead code.
16327 2014-08-05  Roman Gareev  <gareevroman@gmail.com>
16329         * graphite-isl-ast-to-gimple.c:
16330         (set_options): New function.
16331         (scop_to_isl_ast): Add calling of set_options.
16333 2014-08-05  Jakub Jelinek  <jakub@redhat.com>
16335         * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
16336         (analyze_iv_to_split_insn): Don't initialize them.
16337         (get_ivts_expr): Removed.
16338         (allocate_basic_variable, insert_base_initialization): Use
16339         SET_SRC instead of *get_ivts_expr.
16340         (split_iv): Use &SET_SRC instead of get_ivts_expr.
16342 2014-08-05  Roman Gareev  <gareevroman@gmail.com>
16344         * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
16345         (translate_isl_ast_for_loop): Add checking of the
16346         flag_loop_parallelize_all.
16347         (ast_build_before_for): New function.
16348         (scop_to_isl_ast): Add checking of the
16349         flag_loop_parallelize_all.
16350         * graphite-dependences.c: Move the defenition of the
16351         scop_get_dependences from graphite-optimize-isl.c to this file.
16352         (apply_schedule_on_deps): Add checking of the ux's emptiness.
16353         (carries_deps): Add checking of the x's value.
16354         * graphite-optimize-isl.c: Move the defenition of the
16355         scop_get_dependences to graphite-dependences.c.
16356         * graphite-poly.h: Add declarations of scop_get_dependences
16357         and carries_deps.
16359 2014-08-04  Rohit  <rohitarulraj@freescale.com>
16361         PR target/60102
16362         * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
16363         names.
16364         (alt_reg_names): Likewise.
16365         (rs6000_dwarf_register_span): For SPE high registers, replace
16366         dwarf register numbers with GCC hard register numbers.
16367         (rs6000_init_dwarf_reg_sizes_extra): Likewise.
16368         (rs6000_dbx_register_number): For SPE high registers, return dwarf
16369         register number for the corresponding GCC hard register number.
16370         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
16371         newly added GCC hard register numbers for SPE high registers.
16372         (DWARF_FRAME_REGISTERS):  Likewise.
16373         (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
16374         (DWARF_FRAME_REGNUM): Likewise.
16375         (FIXED_REGISTERS): Likewise.
16376         (CALL_USED_REGISTERS): Likewise.
16377         (CALL_REALLY_USED_REGISTERS): Likewise.
16378         (REG_ALLOC_ORDER): Likewise.
16379         (enum reg_class): Likewise.
16380         (REG_CLASS_NAMES): Likewise.
16381         (REG_CLASS_CONTENTS): Likewise.
16382         (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
16384 2014-08-04  Richard Biener  <rguenther@suse.de>
16386         * gimple-fold.h (gimple_fold_builtin): Remove.
16387         * gimple-fold.c (gimple_fold_builtin): Make static.
16388         * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
16389         fold_stmt, not gimple_fold_builtin.
16391 2014-08-04  Martin Liska <mliska@suse.cz>
16393         * cgraph.h (csi_end_p): Removed.
16394         (csi_next): Likewise.
16395         (csi_node): Likewise.
16396         (csi_start): Likewise.
16397         (cgraph_node_in_set_p): Likewise.
16398         (cgraph_node_set_size): Likewise.
16399         (vsi_end_p): Likewise.
16400         (vsi_next): Likewise.
16401         (vsi_node): Likewise.
16402         (vsi_start): Likewise.
16403         (varpool_node_set_size): Likewise.
16404         (cgraph_node_set_nonempty_p): Likewise.
16405         (varpool_node_set_nonempty_p): Likewise.
16406         * cgraphunit.c (cgraph_process_new_functions): vec replaces
16407         cgraph_node_set.
16408         * ipa-inline-transform.c: Likewise.
16409         * ipa-utils.c (cgraph_node_set_new): Removed.
16410         (cgraph_node_set_add): Likewise.
16411         (cgraph_node_set_remove): Likewise.
16412         (cgraph_node_set_find): Likewise.
16413         (dump_cgraph_node_set): Likewise.
16414         (debug_cgraph_node_set): Likewise.
16415         (free_cgraph_node_set): Likewise.
16416         (varpool_node_set_new): Likewise.
16417         (varpool_node_set_add): Likewise.
16418         (varpool_node_set_remove): Likewise.
16419         (varpool_node_set_find): Likewise.
16420         (dump_varpool_node_set): Likewise.
16421         (free_varpool_node_set): Likewise.
16422         (debug_varpool_node_set): Likewise.
16423         * tree-emutls.c (struct tls_var_data):
16424         (emutls_index): Removed.
16425         (emutls_decl): Likewise.
16426         (gen_emutls_addr): Function implementation uses newly added
16427         hash_map<varpool_node *, tls_var_data>.
16428         (clear_access_vars): Likewise.
16429         (create_emultls_var): Likewise.
16430         (ipa_lower_emutls): Likewise.
16431         (reset_access): New function.
16433 2014-08-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
16435         * config/i386/i386.c (ix86_option_override_internal): Add
16436         PTA_RDRND and PTA_MOVBE for bdver4.
16438 2014-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16439             James Greenhalgh  <james.greenhalgh@arm.com>
16441         * doc/md.texi (clrsb): Document.
16442         (clz): Change reference to x into operand 1.
16443         (ctz): Likewise.
16444         (popcount): Likewise.
16446 2014-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16448         PR target/61713
16449         * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
16450         move to subtarget in serial version if result is ignored.
16452 2014-08-04  Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16453             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16455         * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
16456         to any two insns.  Update comment.  Rename to sched_macro_fuse_insns.
16457         (sched_analyze_insn): Update use of try_group_insn to
16458         sched_macro_fuse_insns.
16459         * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
16460         arguments that are not conditional jumps.
16462 2014-08-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
16464         * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
16465         family information. Handle BTVER2 cpu with cpuid family value.
16467 2014-08-04  Tom de Vries  <tom@codesourcery.com>
16469         * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
16470         (glibc_2_11_or_earlier): Document effective-target keywords.
16472 2014-08-01  Jan Hubicka  <hubicka@ucw.cz>
16474         * ipa-devirt.c (odr_type_warn_count): Add type.
16475         (possible_polymorphic_call_targets): Set it.
16476         (ipa_devirt): Use it.
16478 2014-08-01  Jan Hubicka  <hubicka@ucw.cz>
16480         * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
16481         Document.
16482         * ipa-devirt.c: Include hash-map.h
16483         (struct polymorphic_call_target_d): Add type_warning and decl_warning.
16484         (clear_speculation): Break out of ...
16485         (get_class_context): ... here; speed up handling obviously useless
16486         speculations.
16487         (odr_type_warn_count, decl_warn_count): New structures.
16488         (final_warning_record): New structure.
16489         (final_warning_records): New static variable.
16490         (possible_polymorphic_call_targets): Cleanup handling of
16491         speculative info; do not build speculation when user do not care;
16492         record info about warnings when asked for.
16493         (add_decl_warning): New function.
16494         (type_warning_cmp): New function.
16495         (decl_warning_cmp): New function.
16496         (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
16497         (gate): Enable pass when warnings are requested.
16498         * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
16499         options.
16501 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
16503         * hash-map.h (default_hashmap_traits::mark_key_deleted):
16504         Fix cast.
16505         (hash_map::remove): New method.
16506         (hash_map::traverse): New method.
16507         * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
16508         ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
16509         tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
16510         tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
16511         tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
16512         tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
16513         pointer_map.
16515 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
16517         * hash-set.h: new File.
16518         * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
16519         cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
16520         ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
16521         lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
16522         tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
16523         tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
16524         tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
16525         varpool.c: Use hash_set instead of pointer_set.
16527 2014-08-01  Alan Lawrence  <alan.lawrence@arm.com>
16529         * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
16531 2014-08-01  Jiong Wang <jiong.wang@arm.com>
16533         * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
16534         for frame access when strict_p is false.
16536 2014-08-01  Renlin Li <renlin.li@arm.com>
16537 2014-08-01  Jiong Wang <jiong.wang@arm.com>
16539         * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
16540         aarch64_offset_7bit_signed_scaled_p, remove static and use it.
16541         * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
16542         Declaration.
16543         * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
16544         predicate.
16545         * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
16546         aarch64_mem_pair_offset.
16548 2014-08-01  Jiong Wang <jiong.wang@arm.com>
16550         * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
16551         offset.
16552         (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
16553         * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
16555 2014-08-01  Matthew Fortune  <matthew.fortune@imgtec.com>
16557         * config/mips/mips.h (REGISTER_PREFIX): Define macro.
16559 2014-08-01  James Greenhalgh  <james.greenhalgh@arm.com>
16561         PR regression/61510
16562         * cgraphunit.c (analyze_functions): Use get_create rather than get
16563         for decls which are clones of abstract functions.
16565 2014-08-01  Martin Liska  <mliska@suse.cz>
16567         * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
16568         * ipa-prop.h (count_formal_params): Global function created from static.
16569         * ipa-prop.c (count_formal_params): Likewise.
16570         * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
16571         profiles for semantically equivalent functions.
16572         * passes.c (do_per_function): If we load body of a function
16573         during WPA, this condition should behave same.
16574         * varpool.c (ctor_for_folding): More tolerant assert for variable
16575         aliases created during WPA.
16577 2014-08-01  Martin Liska  <mliska@suse.cz>
16579         * doc/invoke.texi (Options That Control Optimization): Documentation
16580         for -foptimize-strlen introduced. Optimization levels default options
16581         fixed.
16583 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
16585         * opts.c (common_handle_option): Handle -fsanitize=alignment.
16586         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
16587         (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
16588         type to bool.
16589         * stor-layout.h (min_align_of_type): New prototype.
16590         * asan.c (pass_sanopt::execute): Don't perform gsi_next if
16591         ubsan_expand* told us not to do it.  Remove the extra gsi_end_p
16592         check.
16593         * ubsan.c: Include builtins.h.
16594         (ubsan_expand_bounds_ifn): Change return type to bool,
16595         always return true.
16596         (ubsan_expand_null_ifn): Change return type to bool, change
16597         argument to gimple_stmt_iterator *.  Handle both null and alignment
16598         sanitization, take type from ckind argument's type rather than
16599         first argument.
16600         (instrument_member_call): Removed.
16601         (instrument_mem_ref): Remove t argument, add mem and base arguments.
16602         Handle both null and alignment sanitization, don't say whole
16603         struct access is member access.  Build 3 argument IFN_UBSAN_NULL
16604         call instead of 2 argument.
16605         (instrument_null): Adjust instrument_mem_ref caller.  Don't
16606         instrument calls here.
16607         (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
16608         like SANITIZE_NULL.
16609         * stor-layout.c (min_align_of_type): New function.
16610         * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
16611         Or it into SANITIZE_UNDEFINED.
16612         * doc/invoke.texi (-fsanitize=alignment): Document.
16614 2014-07-31  Andi Kleen  <ak@linux.intel.com>
16616         * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
16618 2014-07-31  Andi Kleen  <ak@linux.intel.com>
16620         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
16621         inchash.
16622         (vn_reference_compute_hash): Dito.
16623         (vn_nary_op_compute_hash): Dito.
16624         (vn_phi_compute_hash): Dito.
16625         * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
16627 2014-07-31  Andi Kleen  <ak@linux.intel.com>
16629         * tree-ssa-dom.c (iterative_hash_exprs_commutative):
16630         Rename to inchash:add_expr_commutative. Convert to inchash.
16631         (iterative_hash_hashable_expr): Rename to
16632         inchash:add_hashable_expr. Convert to inchash.
16633         (avail_expr_hash): Dito.
16635 2014-07-31  Andi Kleen  <ak@linux.intel.com>
16637         * ipa-devirt.c (polymorphic_call_target_hasher::hash):
16638         Convert to inchash.
16640 2014-07-31  Andi Kleen  <ak@linux.intel.com>
16642         * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
16644 2014-07-31  Andi Kleen  <ak@linux.intel.com>
16646         * Makefile.in (OBJS): Add rtlhash.o
16647         * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
16648         (loc_checksum): Dito.
16649         (loc_checksum_ordered): Dito.
16650         (hash_loc_operands): Dito.
16651         (hash_locs): Dito.
16652         (hash_loc_list): Dito.
16653         * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
16654         * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
16655         * rtlhash.c: New file.
16656         * rtlhash.h: New file.
16658 2014-07-31  Andi Kleen  <ak@linux.intel.com>
16660         * inchash.h (inchash): Change inchash class to namespace.
16661         (class hash): ... Rename from inchash.
16662         (add_object): Move from macro to class template.
16663         * lto-streamer-out.c (hash_tree): Change inchash
16664         to inchash::hash.
16665         * tree.c (build_type_attribute_qual_variant): Dito.
16666         (type_hash_list): Dito.
16667         (attribute_hash_list): Dito.
16668         (iterative_hstate_expr): Rename to inchash::add_expr
16669         (build_range_type_1): Change inchash to inchash::hash
16670         and use hash::add_expr.
16671         (build_array_type_1): Dito.
16672         (build_function_type): Dito
16673         (build_method_type_directly): Dito.
16674         (build_offset_type): Dito.
16675         (build_complex_type): Dito.
16676         (make_vector_type): Dito.
16677         * tree.h (iterative_hash_expr): Dito.
16679 2014-07-31  Chen Gang  <gang.chen.5i5j@gmail.com>
16681         * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
16683 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
16685         * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
16686         correct alphabetical position.
16687         (vpaddd_f64): Rewrite using builtins.
16688         (vpaddd_s64): Move to correct alphabetical position.
16689         (vpaddd_u64): New.
16691 2014-07-31  Oleg Endo  <olegendo@gcc.gnu.org>
16693         PR target/61844
16694         * config/sh/sh.c (sh_legitimate_address_p,
16695         sh_legitimize_reload_address): Handle reg+reg address modes when
16696         ALLOW_INDEXED_ADDRESS is false.
16697         * config/sh/predicates.md (general_movsrc_operand,
16698         general_movdst_operand): Likewise.
16700 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
16702         * config/aarch64/aarch64-builtins.c
16703         (aarch64_gimple_fold_builtin): Don't fold reduction operations for
16704         BYTES_BIG_ENDIAN.
16706 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
16708         * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
16709         the generated mask based on BYTES_BIG_ENDIAN.
16710         (aarch64_simd_check_vect_par_cnst_half): New.
16711         * config/aarch64/aarch64-protos.h
16712         (aarch64_simd_check_vect_par_cnst_half): New.
16713         * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
16714         the check out to aarch64_simd_check_vect_par_cnst_half.
16715         (vect_par_cnst_lo_half): Likewise.
16716         * config/aarch64/aarch64-simd.md
16717         (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
16718         (move_hi_quad_<mode>): Always generate a low mask.
16720 2014-07-30  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
16722         * doc/invoke.texi (AVR Options): Add documentation about
16723         __AVR_DEVICE_NAME__ built-in macro.
16725 2014-07-31  Charles Baylis  <charles.baylis@linaro.org>
16727         PR target/61948
16728         * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
16729         constraints are satisfied.
16730         (<shift>di3_neon): Likewise.
16732 2014-07-31  Richard Biener  <rguenther@suse.de>
16734         PR tree-optimization/61964
16735         * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
16736         by structural equality.
16738 2014-07-31  Yury Gribov  <y.gribov@samsung.com>
16740         * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
16741         * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
16742         * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
16743         New enums.
16744         * gcc.c (sanitize_spec_function): Support new option.
16745         (SANITIZER_SPEC): Remove now redundant check.
16746         * opts.c (common_handle_option): Support new option.
16747         (finish_options): Check for incompatibilities.
16748         * toplev.c (process_options): Split userspace-specific checks.
16750 2014-07-31  Richard Biener  <rguenther@suse.de>
16752         * lto-streamer.h (struct output_block): Remove global.
16753         (struct data_in): Remove labels, num_named_labels and
16754         num_unnamed_labels.
16755         * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
16756         * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
16758 2014-07-31  Marc Glisse  <marc.glisse@inria.fr>
16760         PR c++/60517
16761         * common.opt (-Wreturn-local-addr): Moved from c.opt.
16762         * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
16763         (isolate_path): New argument to avoid inserting a trap.
16764         (find_implicit_erroneous_behaviour): Handle returning the address
16765         of a local variable.
16766         (find_explicit_erroneous_behaviour): Likewise.
16768 2014-07-31  Bingfeng Mei <bmei@broadcom.com>
16770         PR lto/61868
16771         * toplev.c (init_random_seed): Move piece of code never called to
16772         set_random_seed.
16773         (set_random_seed): see above.
16775 2014-07-31  Tom de Vries  <tom@codesourcery.com>
16777         * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
16779 2014-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
16781         * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
16782         (compute_regs_asm_clobbered): Use extract_asm_operands instead.
16784 2014-07-31  Richard Biener  <rguenther@suse.de>
16786         * data-streamer.h (streamer_write_data_stream): Declare here,
16787         renamed from ...
16788         * lto-streamer.h (lto_output_data_stream): ... this.  Remove.
16789         * lto-cgraph.c (lto_output_node): Adjust.
16790         (lto_output_varpool_node): Likewise.
16791         * data-streamer-out.c (streamer_string_index): Likewise.
16792         (streamer_write_data_stream, lto_append_block): Move from ...
16793         * lto-section-out.c (lto_output_data_stream,
16794         lto_append_block): ... here.
16796 2014-07-30  Mike Stump  <mikestump@comcast.net>
16798         * configure.ac: Also check for popen.
16799         * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
16800         * configure: Regenerate.
16801         * config.in:  Regenerate.
16803 2014-07-30  Martin Jambor  <mjambor@suse.cz>
16805         * tree-sra.c (sra_ipa_modify_assign): Change type of the first
16806         parameter to gimple.
16808 2014-07-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16810         * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
16811         address as second parameter to __tpf_eh_return routine.
16813 2014-07-30  Jiong Wang  <jiong.wang@arm.com>
16815         * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
16816         Thumb2.
16818 2014-07-30  Tom Tromey  <tromey@redhat.com>
16820         PR c/59855
16821         * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
16822         * doc/extend.texi (Type Attributes): Document designated_init
16823         attribute.
16825 2014-07-30  Roman Gareev  <gareevroman@gmail.com>
16827         * graphite-isl-ast-to-gimple.c:
16828         (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
16829         (gcc_expression_from_isl_expression): Pass type to
16830         gcc_expression_from_isl_ast_expr_id.
16832 2014-07-30  Richard Biener  <rguenther@suse.de>
16834         * lto-streamer.h (lto_write_data): New function.
16835         * langhooks.c (lhd_append_data): Do not free block.
16836         * lto-section-out.c (lto_write_data): New function writing
16837         raw data to the current section.
16838         (lto_write_stream): Adjust for langhook semantic change.
16839         (lto_destroy_simple_output_block): Write header directly.
16840         * lto-opts.c (lto_write_options): Write options directly.
16841         * lto-streamer-out.c (produce_asm): Write heaeder directly.
16842         (lto_output_toplevel_asms): Likewise.
16843         (copy_function_or_variable): Copy data directly.
16844         (write_global_references): Output index table directly.
16845         (lto_output_decl_state_refs): Likewise.
16846         (write_symbol): Write data directly.
16847         (produce_symtab): Adjust.
16848         (produce_asm_for_decls): Output header and refs directly.
16850 2014-07-29  Jan Hubicka  <hubicka@ucw.cz>
16852         * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
16853         to speculative_targets
16854         (get_class_context): Fix handling of contextes without outer type;
16855         avoid matching non-polymorphic types in LTO.
16856         (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
16857         parameter to speculative_targetsp; handle speculation.
16858         (dump_possible_polymorphic_call_targets): Update dumping.
16860 2014-07-29  Jan Hubicka  <hubicka@ucw.cz>
16862         * common.opt (Wodr): Enable by default.
16864 2014-07-29  Olivier Hainque  <hainque@adacore.com>
16866         * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
16868 2014-07-29  H.J. Lu  <hongjiu.lu@intel.com>
16870         PR bootstrap/61914
16871         * gengtype.c (strtoken): New function.
16872         (create_user_defined_type): Replace strtok with strtoken.
16874 2014-07-29  Nathan Sidwell  <nathan@acm.org>
16876         * gcov-io.c (gcov_var): Make hidden.
16877         * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
16878         (gcov_do_dump): Declare.
16879         (gcov_output_files): Call gcov_do_dump, not gcov_exit).
16881 2014-07-29  Martin Jambor  <mjambor@suse.cz>
16883         * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
16884         parameter to gimple.
16885         (sra_modify_assign): Likewise.
16887 2014-07-29  Richard Biener  <rguenther@suse.de>
16889         PR middle-end/52478
16890         * expr.c (expand_expr_real_2): Revert last change.
16892 2014-07-28  Jan Hubicka  <hubicka@ucw.cz>
16894         * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
16895         * cgraph.h (cgraph_indirect_call_info): Add speculative data.
16896         * gimple-fold.c (fold_gimple_assign): Fix check for virtual
16897         call.
16898         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
16899         (contains_type_p): Forward declare.
16900         (polymorphic_call_target_hasher::hash): Hash speculative info.
16901         (polymorphic_call_target_hasher::equal): Compare speculative info.
16902         (get_class_context): Handle speuclation.
16903         (contains_type_p): Update.
16904         (get_polymorphic_call_info_for_decl): Update.
16905         (walk_ssa_copies): Break out from ...
16906         (get_polymorphic_call_info): ... here; set speculative context
16907         before giving up.
16908         * ipa-prop.c (ipa_write_indirect_edge_info,
16909         ipa_read_indirect_edge_info): Stream speculative context.
16910         * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
16911         (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
16912         SPECULATIVE_MAYBE_DERIVED_TYPE).
16913         (possible_polymorphic_call_targets overriders): Update.
16914         (dump_possible_polymorphic_call_targets overriders): Update.
16915         (dump_possible_polymorphic_call_target_p overriders): Update.
16917 2014-07-28  Jan Hubicka  <hubicka@ucw.cz>
16919         * gimple-fold.c (fold_gimple_assign): Fix condition guarding
16920         ipa-devirt path; fix thinko there.
16922 2014-07-28  Trevor Saunders  <tsaunders@mozilla.com>
16924         * config/i386/i386.c (ix86_return_in_memory): Replace one
16925         ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
16927 2014-07-28  Marek Polacek  <polacek@redhat.com>
16929         * doc/invoke.texi (-Wno-odr): Fix @item entry.  Tweak wording.
16931 2014-07-28  Peter Bergner  <bergner@vnet.ibm.com>
16933         * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
16934         * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
16935         * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
16936         (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
16937         (USE_LD_AS_NEEDED): Likewise.
16938         (ASM_APP_ON): Likewise.
16939         (ASM_APP_OFF): Likewise.
16940         (TARGET_POSIX_IO): Likewise.
16941         * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
16942         (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
16943         (USE_LD_AS_NEEDED): Likewise.
16944         (ASM_APP_ON): Likewise.
16945         (ASM_APP_OFF): Likewise.
16946         (TARGET_POSIX_IO): Likewise.
16948 2014-07-28  Eric Botcazou  <ebotcazou@adacore.com>
16950         PR middle-end/61734
16951         * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
16952         operators other than the equality operators.
16954 2014-07-28  Richard Biener  <rguenther@suse.de>
16956         PR middle-end/52478
16957         * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
16958         sure to register SImode ones, not only >= word_mode ones.
16959         * expr.c (expand_expr_real_2): When expanding -ftrapv
16960         binops do not use OPTAB_LIB_WIDEN.
16962 2014-07-28  Richard Sandiford  <rdsandiford@googlemail.com>
16964         PR middle-end/61919
16965         * tree-outof-ssa.c (insert_partition_copy_on_edge)
16966         (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
16967         (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
16968         inserting them in the insn stream.
16970 2014-07-28  Marek Polacek  <polacek@redhat.com>
16972         PR middle-end/61913
16973         * common.opt (Wodr): Add Var.
16975 2014-07-28  Richard Biener  <rguenther@suse.de>
16977         PR tree-optimization/61921
16978         * tree-ssa-structalias.c (create_variable_info_for_1): Check
16979         if there is a varpool node before dereferencing it.
16981 2014-07-28  Roman Gareev  <gareevroman@gmail.com>
16983         * graphite-sese-to-poly.c:
16984         (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
16985         id of the pbb), which contains pointer to the pbb1.
16987         * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
16989 2014-07-28  Roman Gareev  <gareevroman@gmail.com>
16991         * graphite-isl-ast-to-gimple.c:
16992         (graphite_create_new_guard): New function.
16993         (translate_isl_ast_node_if): New function.
16994         (translate_isl_ast): Add calling of translate_isl_ast_node_if.
16996         * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
16998 2014-07-27  Anthony Green  <green@moxielogic.com>
17000         * config.gcc: Add moxie-*-moxiebox* configuration.
17001         * config/moxie/moxiebox.h: New file.
17003 2014-07-26  Andrew Pinski  <apinski@cavium.com>
17005         * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
17006         from the read only register.
17008 2014-07-26  Richard Sandiford  <rdsandiford@googlemail.com>
17010         * ira-costs.c (find_costs_and_classes): For -O0, use the best class
17011         as the allocation class if it isn't likely to be spilled.
17013 2014-07-26  Richard Sandiford  <rdsandiford@googlemail.com>
17015         * rtl.h (tls_referenced_p): Declare.
17016         * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
17017         * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
17018         (mips_cannot_force_const_mem): Use tls_referenced_p.
17019         * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
17020         * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
17021         instead of pa_tls_referenced_p.
17022         * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
17023         (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
17024         (pa_legitimate_constant_p): Likewise.
17025         (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
17026         * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
17027         (rs6000_cannot_force_const_mem, rs6000_emit_move)
17028         (rs6000_address_for_altivec): Use tls_referenced_p instead of
17029         rs6000_tls_referenced_p.
17030         (rs6000_tls_symbol_ref_1): Delete.
17032 2014-07-26  Marc Glisse  <marc.glisse@inria.fr>
17034         PR target/44551
17035         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
17036         Optimize inverse of a VEC_CONCAT.
17038 2014-07-25  Xinliang David Li  <davidxl@google.com>
17040         * params.def: New parameter.
17041         * coverage.c (get_coverage_counts): Check new flag.
17042         (coverage_compute_profile_id): Check new flag.
17043         (coverage_begin_function): Check new flag.
17044         (coverage_end_function): Check new flag.
17045         * value-prof.c (coverage_node_map_initialized_p): New function.
17046         (init_node_map): Populate map with all functions.
17047         * doc/invoke.texi: Document new parameter.
17049 2014-07-25  Jan Hubicka  <hubicka@ucw.cz>
17050             Richard Biener <rguenther@suse.de>
17052         * lto-streamer-out.c (struct sccs): Turn to ...
17053         (class DFS): ... this one; refactor the DFS walk so it can
17054         be re-done on per-SCC basis.
17055         (DFS::DFS): New constructor.
17056         (DFS::~DFS): New destructor.
17057         (hash_tree): Add new MAP argument holding in-SCC hash values;
17058         remove POINTER_TYPE hashing hack.
17059         (scc_entry_compare): Rename to ...
17060         (DFS::scc_entry_compare): ... this one.
17061         (hash_scc): Rename to ...
17062         (DFS::hash_scc): ... this one; pass output_block instead
17063         of streamer_cache; work harder to get unique and stable SCC
17064         hashes.
17065         (DFS_write_tree): Rename to ...
17066         (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
17067         (lto_output_tree): Update.
17069 2014-07-25  Andi Kleen  <ak@linux.intel.com>
17071         * lto-streamer-out.c (hash_tree): Convert to inchash.
17073 2014-07-25  Andi Kleen  <ak@linux.intel.com>
17075         * tree.c (build_type_attribute_qual_variant): Use inchash.
17076         (type_hash_list): Dito.
17077         (attribute_hash_list): Dito
17078         (iterative_hstate_expr): Dito.
17079         (iterative_hash_expr): Dito.
17080         (build_range_type_1): Dito.
17081         (build_array_type_1): Dito.
17082         (build_function_type): Dito.
17083         (build_method_type_directly): Dito.
17084         (build_offset_type): Dito.
17085         (build_complex_type): Dito.
17086         (make_vector_type): Dito.
17087         * tree.h (iterative_hash_expr): Add compat wrapper.
17088         (iterative_hstate_expr): Add.
17090 2014-07-25  Andi Kleen  <ak@linux.intel.com>
17092         * Makefile.in (OBJS): Add inchash.o.
17093         (PLUGIN_HEADERS): Add inchash.h.
17094         * ipa-devirt.c: Include inchash.h.
17095         * lto-streamer-out.c: Dito.
17096         * tree-ssa-dom.c: Dito.
17097         * tree-ssa-pre.c: Dito.
17098         * tree-ssa-sccvn.c: Dito.
17099         * tree-ssa-tail-merge.c: Dito.
17100         * asan.c: Dito.
17101         * tree.c (iterative_hash_hashval_t): Move to ...
17102         (iterative_hash_host_wide_int): Move to ...
17103         * inchash.c: Here. New file.
17104         * tree.h (iterative_hash_hashval_t): Move to ...
17105         (iterative_hash_host_wide_int): Move to ...
17106         * inchash.h: Here. New file.
17108 2014-07-25  Richard Biener  <rguenther@suse.de>
17110         PR middle-end/61762
17111         PR middle-end/61894
17112         * fold-const.c (native_encode_int): Add and handle offset
17113         parameter to do partial encodings of expr.
17114         (native_encode_fixed): Likewise.
17115         (native_encode_real): Likewise.
17116         (native_encode_complex): Likewise.
17117         (native_encode_vector): Likewise.
17118         (native_encode_string): Likewise.
17119         (native_encode_expr): Likewise.
17120         * fold-const.c (native_encode_expr): Add offset parameter
17121         defaulting to -1.
17122         * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
17123         (fold_ctor_reference): Handle all reads from tcc_constant
17124         ctors.
17126 2014-07-25  Richard Biener  <rguenther@suse.de>
17128         * tree-inline.c (estimate_move_cost): Mark speed_p argument
17129         as possibly unused.
17131 2014-07-23  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
17133         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
17135 2014-07-24  Kyle McMartin  <kyle@redhat.com>
17137         * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
17139 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17141         * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
17142         Add prototype.
17143         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
17144         function.
17145         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
17146         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
17147         * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
17149 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17151         * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
17152         and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
17153         aggregate types.  Instead, *all* aggregate types, except for single-
17154         element or homogeneous float/vector aggregates, are quadword-aligned
17155         if required by their type alignment.  Issue -Wpsabi note when a type
17156         is now treated differently than before.
17158 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17160         * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
17161         does not fit fully into floating-point registers, and there is still
17162         space in the register parameter area, use GPRs to pass those parts
17163         of the argument.  Issue -Wpsabi note if any parameter is now treated
17164         differently than before.
17165         (rs6000_arg_partial_bytes): Update.
17167 2014-07-24  Uros Bizjak  <ubizjak@gmail.com>
17169         * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
17171 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
17173         * rtl.h (target_rtl): Remove lang_dependent_initialized.
17174         * toplev.c (initialize_rtl): Don't use it.  Move previously
17175         "language-dependent" calls to...
17176         (backend_init): ...here.
17177         (lang_dependent_init_target): Don't set lang_dependent_initialized.
17178         Assert that RTL initialization hasn't happend yet.
17180 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
17182         PR rtl-optimization/61629
17183         * reginfo.c (reinit_regs): Only call ira_init and recog_init if
17184         they have already been initialized.
17186 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
17188         PR middle-end/61268
17189         * function.c (assign_parm_setup_reg): Prevent invalid sharing of
17190         DECL_INCOMING_RTL and entry_parm.
17191         (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
17192         * calls.c (load_register_parameters): Likewise argument values.
17193         (emit_library_call_value_1, store_one_arg): Likewise argument
17194         save areas.
17195         * config/i386/i386.c (assign_386_stack_local): Likewise the local
17196         stack slot.
17197         * explow.c (validize_mem): Modify the argument in-place.
17199 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
17201         * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
17202         (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
17204 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
17206         * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
17207         (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
17209 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
17211         * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
17212         (aarch64_save_callee_saves): New parameter "skip_wb".
17213         (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
17215 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
17217         * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
17218         "wb_candidate2".
17219         * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
17221 2014-07-24  Roman Gareev  <gareevroman@gmail.com>
17223         * graphite-isl-ast-to-gimple.c:
17224         (graphite_create_new_loop): Add calling of isl_id_free to properly
17225         decrement reference counts.
17227         * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
17229 2014-07-24  Martin Liska  <mliska@suse.cz>
17230         * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
17231         function used.
17232         * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
17233         (rs6000_code_end): Likewise.
17235 2014-07-24  Martin Liska  <mliska@suse.cz>
17237         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
17238         symtab_node funtion used.
17239         (rs6000_xcoff_declare_object_name): Likewise.
17241 2014-07-24  Martin Liska  <mliska@suse.cz>
17243         * cgraphunit.c (compile): Correct function used.
17245 2014-07-24  Jan Hubicka  <hubicka@ucw.cz>
17247         * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
17248         as non-indexable.
17250 2014-07-24  Jan Hubicka  <hubicka@ucw.cz>
17252         PR lto/61802
17253         * varasm.c (bss_initializer_p): Handle offlined ctors.
17254         (align_variable, get_variable_align): Likewise.
17255         (make_decl_one_only): Likewise.
17256         (default_binds_local_p_1): Likewise.
17257         (decl_binds_to_current_def_p): Likewise.
17258         (get_variable_section): Get constructor if it is offlined.
17259         (assemble_variable_contents): Sanity check that the caller
17260         streamed in the ctor in LTO.
17262 2014-07-24  Roman Gareev  <gareevroman@gmail.com>
17264         * graphite-isl-ast-to-gimple.c:
17265         (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
17266         (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
17267         isl_ast_op_pdiv_r to the different case.
17269         * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
17271 2014-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17273         PR middle-end/61876
17274         * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
17275         when flag_errno_math is on.
17277 2014-07-24  Martin Liska  <mliska@suse.cz>
17279         * cgraph.h (varpool_node):
17280         (availability get_availability (void)):
17281         created from cgraph_variable_initializer_availability
17282         (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
17283         created from: cgraph_variable_initializer_availability
17284         (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
17285         (void finalize_named_section_flags (void)):
17286         created from varpool_finalize_named_section_flags
17287         (bool assemble_decl (void)): created from varpool_assemble_decl
17288         (void analyze (void)): created from varpool_analyze_node
17289         (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
17290         void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
17291         (void remove_initializer (void)): created from varpool_remove_initializer
17292         (tree get_constructor (void)): created from varpool_get_constructor
17293         (bool externally_visible_p (void)): created from varpool_externally_visible_p
17294         (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
17295         (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
17296         (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
17297         (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
17298         (static void finalize_decl (tree decl)): created from varpool_finalize_decl
17299         (static bool output_variables (void)): created from varpool_output_variables
17300         (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
17301         created from varpool_extra_name_alias
17302         (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
17303         (static void dump_varpool (FILE *f)): created from dump_varpool
17304         (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
17305         (static varpool_node *create_empty (void)): created from varpool_create_empty_node
17306         (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
17307         (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
17308         (void assemble_aliases (void)): created from assemble_aliases
17310 2014-07-24  Martin Liska  <mliska@suse.cz>
17312         * cgraph.h (symtab_node):
17313         (void register_symbol (void)): created from symtab_register_node
17314         (void remove (void)): created from symtab_remove_node
17315         (void dump (FILE *f)): created from dump_symtab_node
17316         (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
17317         (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
17318         (struct ipa_ref *add_reference (symtab_node *referred_node,
17319         enum ipa_ref_use use_type)): created from add_reference
17320         (struct ipa_ref *add_reference (symtab_node *referred_node,
17321         enum ipa_ref_use use_type, gimple stmt)): created from add_reference
17322         (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
17323         gimple stmt)): created from maybe_add_reference
17324         (bool semantically_equivalent_p (symtab_node *target)): created from
17325         symtab_semantically_equivalent_p
17326         (void remove_from_same_comdat_group (void)): created from
17327         remove_from_same_comdat_group
17328         (void add_to_same_comdat_group (symtab_node *old_node)): created from
17329         symtab_add_to_same_comdat_group
17330         (void dissolve_same_comdat_group_list (void)): created from
17331         symtab_dissolve_same_comdat_group_list
17332         (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
17333         (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
17334         created from symtab_alias_ultimate_target
17335         (inline symtab_node *next_defined_symbol (void)): created from
17336         symtab_next_defined_symbol
17337         (bool resolve_alias (symtab_node *target)): created from
17338         symtab_resolve_alias
17339         (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
17340         void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
17341         (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
17342         (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
17343         (void set_section (const char *section)): created from set_section_1
17344         (enum availability get_availability (void)): created from symtab_node_availability
17345         (void make_decl_local (void)): created from symtab_make_decl_local
17346         (bool real_symbol_p (void)): created from symtab_read_node
17347         (can_be_discarded_p (void)): created from symtab_can_be_discarded
17348         (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
17349         (inline bool in_same_comdat_group_p (symtab_node *target)): created from
17350         symtab_in_same_comdat_p;
17351         (bool address_taken_from_non_vtable_p (void)): created from
17352         address_taken_from_non_vtable_p
17353         (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
17354         (static void dump_table (FILE *)): created from dump_symtab
17355         (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
17356         (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
17357         (static bool used_from_object_file_p_worker (symtab_node *node)): created from
17358         symtab_used_from_object_file_p
17359         (void dump_base (FILE *)): created from dump_symtab_base
17360         (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
17361         (void unregister (void)): created from symtab_unregister_node
17362         (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
17363         (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
17364         (static bool noninterposable_alias (symtab_node *node, void *data)): created from
17365         symtab_nonoverwritable_alias_1
17366         * cgraph.h (cgraph_node):
17367         (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
17368         created from cgraph_remove_node_and_inline_clones
17369         (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
17370         (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
17371         bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
17372         (cgraph_node *function_symbol (enum availability *avail = NULL)):
17373         created from cgraph_function_node
17374         (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
17375         vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
17376         struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
17377         created from cgraph_create_clone
17378         (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
17379         vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
17380         created from cgraph_create_virtual_clone
17381         (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
17382         (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
17383         bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
17384         (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
17385         vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
17386         bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
17387         created from cgraph_function_version_info
17388         (struct cgraph_function_version_info *insert_new_function_version (void)):
17389         created from insert_new_cgraph_node_version
17390         (struct cgraph_function_version_info *function_version (void)): created from
17391         get_cgraph_node_version
17392         (void analyze (void)): created from analyze_function
17393         (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
17394         HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
17395         tree real_alias) cgraph_add_thunk
17396         (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
17397         (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
17398         created from cgraph_function_or_thunk_node
17399         (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
17400         created from expand_thunk
17401         (void reset (void)): created from cgraph_reset_node
17402         (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
17403         (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
17404         (void remove (void)): created from cgraph_remove_node
17405         (void dump (FILE *f)): created from dump_cgraph_node
17406         (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
17407         (bool get_body (void)): created from cgraph_get_body
17408         (void release_body (void)): created from cgraph_release_function_body
17409         (void unnest (void)): created from cgraph_unnest_node
17410         (void make_local (void)): created from cgraph_make_node_local
17411         (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
17412         (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
17413         gcov_type count, int freq)): created from cgraph_create_edge
17414         (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
17415         gcov_type count, int freq)): created from cgraph_create_indirect_edge
17416         (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
17417         gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
17418         created from cgraph_create_edge_including_clones
17419         (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
17420         (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
17421         (void remove_callers (void)): created from cgraph_node_remove_callers
17422         (void remove_callees (void)): created from cgraph_node_remove_callees
17423         (enum availability get_availability (void)): created from cgraph_function_body_availability
17424         (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
17425         (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
17426         (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
17427         (void call_duplication_hooks (cgraph_node *node2)): created from
17428         cgraph_call_node_duplication_hooks
17429         (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
17430         void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
17431         (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
17432         void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
17433         (void call_function_insertion_hooks (void)):
17434         created from cgraph_call_function_insertion_hooks
17435         (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
17436         (bool local_p (void)): created from cgraph_local_node
17437         (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
17438         (bool cannot_return_p (void)): created from cgraph_node_cannot_return
17439         (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
17440         (inline bool only_called_directly_or_aliased_p (void)):
17441         created from cgraph_only_called_directly_or_aliased_p
17442         (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
17443         created from cgraph_will_be_removed_from_program_if_no_direct_calls
17444         (bool can_remove_if_no_direct_calls_and_refs_p (void)):
17445         created from cgraph_can_remove_if_no_direct_calls_and_refs_p
17446         (bool can_remove_if_no_direct_calls_p (void)):
17447         created from cgraph_can_remove_if_no_direct_calls_p
17448         (inline bool has_gimple_body_p (void)):
17449         created from cgraph_function_with_gimple_body_p
17450         (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
17451         (static void dump_cgraph (FILE *f)): created from dump_cgraph
17452         (static inline void debug_cgraph (void)): created from debug_cgraph
17453         (static void record_function_versions (tree decl1, tree decl2)):
17454         created from record_function_versions
17455         (static void delete_function_version (tree decl)):
17456         created from delete_function_version
17457         (static void add_new_function (tree fndecl, bool lowered)):
17458         created from cgraph_add_new_function
17459         (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
17460         (static cgraph_node * create (tree decl)): created from cgraph_create_node
17461         (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
17462         (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
17463         (static cgraph_node *get_for_asmname (tree asmname)):
17464         created from cgraph_node_for_asm
17465         (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
17466         created from cgraph_same_body_alias
17467         (static bool used_from_object_file_p_worker (cgraph_node *node,
17468         void *): new function
17469         (static bool non_local_p (cgraph_node *node, void *)):
17470         created from cgraph_non_local_node_p_1
17471         (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
17472         created from verify_cgraph
17473         (static bool make_local (cgraph_node *node, void *)):
17474         created from cgraph_make_node_local
17475         (static cgraph_node *create_alias (tree alias, tree target)):
17476         created from cgraph_create_function_alias
17477         (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
17478         gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
17479         created from cgraph_create_edge_1
17480         * cgraph.h (varpool_node):
17481         (void remove (void)): created from varpool_remove_node
17482         (void dump (FILE *f)): created from dump_varpool_node
17484 2014-07-24  Richard Biener  <rguenther@suse.de>
17486         PR ipa/61823
17487         * tree-ssa-structalias.c (create_variable_info_for_1):
17488         Use varpool_get_constructor.
17489         (create_variable_info_for): Likewise.
17491 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
17493         * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
17494         subtract outgoing area size when restoring stack_pointer_rtx.
17496 2014-07-24  Nick Clifton  <nickc@redhat.com>
17498         * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
17499         that operations are taking place in parallel.
17500         * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
17502 2014-07-24  Thomas Schwinge  <thomas@codesourcery.com>
17504         * omp-low.c (extract_omp_for_data): Add missing break statement.
17506 2014-07-24  Richard Biener  <rguenther@suse.de>
17508         * tree-inline.h (estimate_move_cost): Add speed_p parameter.
17509         * tree-inline.c (estimate_move_cost): Add speed_p parameter
17510         and adjust MOVE_RATIO query accordingly.
17511         (estimate_num_insns): Adjust callers.
17512         * ipa-prop.c (ipa_populate_param_decls): Likewise.
17513         * ipa-cp.c (gather_context_independent_values,
17514         estimate_local_effects): Likewise.
17515         * ipa-split.c (consider_split): Likewise.
17517 2014-07-24  Trevor Saunders  <tsaunders@mozilla.com>
17519         * config/i386/driver-i386.c: Remove names of unused arguments and
17520         unnecessary unused attributes.
17521         * config/i386/host-mingw32.c: Likewise.
17522         * config/i386/i386.c: Likewise.
17523         * config/i386/winnt-stubs.c: Likewise.
17524         * config/i386/winnt.c: Likewise.
17526 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
17528         * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
17529         (aarch64_gen_loadwb_pair): New helper function.
17530         (aarch64_expand_epilogue): Simplify code using new helper functions.
17531         * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
17533 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
17535         * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
17536         (aarch64_gen_storewb_pair): New helper function.
17537         (aarch64_expand_prologue): Simplify code using new helper functions.
17538         * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
17540 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
17542         * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
17543         Rename to aarch64_save_callee_saves, remove restore code.
17544         (aarch64_restore_callee_saves): New function.
17546 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
17548         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
17549         (aarch64_save_callee_saves): New function to handle reg save
17550         for both core and vectore regs.
17552 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
17554         * config/aarch64/aarch64.c (aarch64_gen_load_pair)
17555         (aarch64_gen_store_pair): New helper function.
17556         (aarch64_save_or_restore_callee_save_registers)
17557         (aarch64_save_or_restore_fprs): Use new helper functions.
17559 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
17561         * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
17562         (aarch64_save_or_restore_callee_save_registers)
17563         (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
17565 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
17567         * config/aarch64/aarch64.c
17568         (aarch64_save_or_restore_callee_save_registers)
17569         (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
17571 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
17573         * config/aarch64/aarch64.c
17574         (aarch64_save_or_restore_callee_save_registers)
17575         (aarch64_save_or_restore_fprs): Remove 'increment'.
17577 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
17579         * config/aarch64/aarch64.c
17580         (aarch64_save_or_restore_callee_save_registers)
17581         (aarch64_save_or_restore_fprs): Use register offset in
17582         cfun->machine->frame.reg_offset.
17584 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
17586         * config/aarch64/aarch64.c
17587         (aarch64_save_or_restore_callee_save_registers)
17588         (aarch64_save_or_restore_fprs): Remove base_rtx.
17590 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
17592         * config/aarch64/aarch64.c
17593         (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
17594         to 'start_offset'.  Remove local variable 'start_offset'.
17596 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
17598         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
17599         type to HOST_WIDE_INT.
17601 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
17603         * config/aarch64/aarch64.c (aarch64_expand_prologue)
17604         (aarch64_save_or_restore_fprs)
17605         (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
17607 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
17609         * config/arm/t-rtems-eabi: Add
17610         mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
17611         mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
17612         mbig-endian/mthumb/march=armv7-r, and
17613         mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
17614         multilibs.
17616 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
17617             Chris Johns <chrisj@rtems.org>
17618             Joel Sherrill <joel.sherrill@oarcorp.com>
17620         * config.gcc: Add nios2-*-rtems*.
17621         * config/nios2/rtems.h: New file.
17622         * gcc/config/nios2/t-rtems: New file.
17624 2014-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
17626         PR target/61396
17627         * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
17628         constant numbers, not general constants.
17629         (rs6000_expand_vector_init): Ditto.
17631 2014-07-23  Nathan Sidwell  <nathan@acm.org>
17633         * gcov-tool.c (gcov_list): Declare here.
17634         (set_gcov_list): Remove.
17635         (gcov_output_files): Set gcov_list directly.
17637 2014-07-23  Host Schirmeier  <horst@schirmeier.com>
17639         * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
17641 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
17643         * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
17644         callee-saved registers are available for padding purpose
17645         and r3 is not mandatory, then prefer use those callee-saved
17646         instead of r3.
17648 2014-07-23  Richard Biener  <rguenther@suse.de>
17650         * params.def (PARAM_MAX_COMBINE_INSNS): New.
17651         * combine.c: Include statistics.h and params.h.
17652         (combine_instructions): Guard three and four insn combines
17653         with max-combine-insns value.  Record statistics for combines
17654         performed.
17655         * doc/invoke.texi (max-combine-insns): Document new param.
17657 2014-07-23  Roman Gareev  <gareevroman@gmail.com>
17659         * graphite-isl-ast-to-gimple.c:
17660         (translate_isl_ast_node_block): New function.
17661         (translate_isl_ast): Add calling of translate_isl_ast_node_block.
17663         * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
17664         * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
17666 2014-07-23  Roman Gareev  <gareevroman@gmail.com>
17668         * graphite-isl-ast-to-gimple.c:
17669         (get_max_schedule_dimensions): New function.
17670         (extend_schedule): Likewise.
17671         (generate_isl_schedule): Add calling of extend_schedule and
17672         get_max_schedule_dimensions.
17674 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17676         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
17677         (case UNSPEC): Handle UNSPEC_RBIT.
17679 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17681         * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
17682         (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
17684 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17686         * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
17688 2014-07-22  Roman Gareev  <gareevroman@gmail.com>
17690         * graphite-isl-ast-to-gimple.c:
17691         Add inclusion of gimple-ssa.h, tree-into-ssa.h.
17692         (ivs_params_clear):
17693         (build_iv_mapping): New function.
17694         (translate_isl_ast_node_user): Likewise.
17695         (translate_isl_ast): Add calling of translate_isl_ast_node_user.
17697         * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
17698         * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
17699         * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
17701 2014-07-21  Bin Cheng  <bin.cheng@arm.com>
17703         PR target/55701
17704         * config/arm/arm.md (setmem): New pattern.
17705         * config/arm/arm-protos.h (struct tune_params): New fields.
17706         (arm_gen_setmem): New prototype.
17707         * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
17708         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
17709         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
17710         (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
17711         (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
17712         (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
17713         (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
17714         (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
17715         (arm_const_inline_cost): New function.
17716         (arm_block_set_max_insns): New function.
17717         (arm_block_set_non_vect_profit_p): New function.
17718         (arm_block_set_vect_profit_p): New function.
17719         (arm_block_set_unaligned_vect): New function.
17720         (arm_block_set_aligned_vect): New function.
17721         (arm_block_set_unaligned_non_vect): New function.
17722         (arm_block_set_aligned_non_vect): New function.
17723         (arm_block_set_vect, arm_gen_setmem): New functions.
17725 2014-07-21  Bin Cheng  <bin.cheng@arm.com>
17727         * config/arm/arm.c (output_move_neon): Handle REG explicitly.
17729 2014-07-21  Uros Bizjak  <ubizjak@gmail.com>
17731         PR target/61855
17732         * config/i386/avx512fintrin.h: Move constants for mantissa extraction
17733         out of #ifdef __OPTIMIZE__.
17735 2014-07-20  Eric Botcazou  <ebotcazou@adacore.com>
17737         * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
17738         different trapping status if -fnon-call-exceptions is enabled.
17740 2014-07-20  Eric Botcazou  <ebotcazou@adacore.com>
17742         * expr.c (store_field): Handle VOIDmode for calls that return values
17743         in multiple locations.
17745 2014-07-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17747         * config/rs6000/altivec.md (unspec enum):  Fix typo in UNSPEC_VSLDOI.
17748         (altivec_vsldoi_<mode>): Likewise.
17750 2014-07-20  Roman Gareev  <gareevroman@gmail.com>
17752         * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
17753         to the number of characters in the line.
17755 2014-07-20  Roman Gareev  <gareevroman@gmail.com>
17757         * graphite-isl-ast-to-gimple.c: Add using of
17758         build_nonstandard_integer_type instead of int128_integer_type_node.
17760 2014-07-19  Eric Botcazou  <ebotcazou@adacore.com>
17762         * toplev.c (output_stack_usage): Adjust the location of the warning.
17764 2014-07-19  Daniel Cederman  <cederman@gaisler.com>
17766         * config/sparc/sync.md (*membar_storeload_leon3): New insn.
17767         (*membar_storeload): Disable for LEON3.
17769 2014-07-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17771         PR rtl-optimization/61461
17772         * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
17774 2014-07-18  Uros Bizjak  <ubizjak@gmail.com>
17776         PR target/61794
17777         * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
17778         Fix instruction constraint.
17779         (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
17781 2014-07-18  Jonathan Wakely  <jwakely@redhat.com>
17783         * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
17785 2014-07-18  Chung-Ju Wu  <jasonwucj@gmail.com>
17787         * config/nds32/nds32.c (nds32_can_eliminate): Follow the
17788         GNU coding standards.
17789         (nds32_register_move_cost): Likewise.
17790         (nds32_memory_move_cost): Likewise.
17791         (nds32_address_cost): Likewise.
17793 2014-07-18  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
17795         * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
17797 2014-07-17  John David Anglin  <danglin@gcc.gnu.org>
17799         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
17800         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
17801         and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
17802         (HAVE_sync_compare_and_swapqi): Define.
17803         (HAVE_sync_compare_and_swaphi): Likewise.
17804         (HAVE_sync_compare_and_swapsi): Likewise.
17806 2014-07-17  Richard Sandiford  <rdsandiford@googlemail.com>
17808         * config/mips/p5600.md: Add missing cpu tests.
17810 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17812         * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
17813         (vmla_f64): Likewise.
17814         (vfms_f64): Likewise.
17815         (vmls_f64): Likewise.
17817 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17819         * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
17820         (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
17822 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17824         * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
17825         (vmlal_high_lane_s32): Likewise.
17826         (vmlal_high_lane_u16): Likewise.
17827         (vmlal_high_lane_u32): Likewise.
17828         (vmlsl_high_lane_s16): Likewise.
17829         (vmlsl_high_lane_s32): Likewise.
17830         (vmlsl_high_lane_u16): Likewise.
17831         (vmlsl_high_lane_u32): Likewise.
17833 2014-07-17  Terry Guo  <terry.guo@arm.com>
17835         * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
17836         (alus_reg): Renamed to alus_sreg.
17837         * config/arm/arm-fixed.md: Change type of non-dsp instructions
17838         from alu_reg to alu_sreg.  Change type of dsp instructions from
17839         alu_reg to alu_dsp_reg.
17840         * config/arm/thumb1.md: Likewise.
17841         * config/arm/thumb2.md: Likewise.
17842         * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
17843         * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
17844         with alu_sreg and alus_sreg.
17845         * config/arm/arm1026ejs.md (alu_op): Likewise.
17846         * config/arm/arm1136jfs.md (11_alu_op): Likewise.
17847         * config/arm/arm926ejs.md (9_alu_op): Likewise.
17848         * config/arm/fa526.md (526_alu_op): Likewise.
17849         * config/arm/fa606te.md (606te_alu_op): Likewise.
17850         * config/arm/fa626te.md (626te_alu_op): Likewise.
17851         * config/arm/fa726te.md (726te_alu_op): Likewise.
17852         * config/arm/fmp626.md (mp626_alu_op): Likewise.
17853         * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
17854         alu_sreg, alu_dsp_reg and alus_sreg.
17855         * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
17856         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
17857         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
17858         * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
17859         * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
17860         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
17861         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
17862         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
17863         * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
17864         * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
17865         subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
17866         *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
17867         (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
17868         sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
17869         subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
17870         alus_reg to alus_sreg.
17872 2014-07-17  Andreas Schwab  <schwab@linux-m68k.org>
17874         * real.c (encode_ieee_extended_motorola): Clear integer bit in the
17875         infinity format.
17877 2014-07-17  Richard Biener  <rguenther@suse.de>
17879         PR rtl-optimization/61801
17880         * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
17881         don't set reg_pending_barrier if it appears in a debug-insn.
17883 2014-07-16  DJ Delorie  <dj@redhat.com>
17885         * config/rx/rx.c (rx_option_override): Fix alignment values.
17886         (rx_align_for_label): Likewise.
17888 2014-07-17  Hans-Peter Nilsson  <hp@axis.com>
17890         PR target/61737.
17891         * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
17892         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
17893         (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
17894         functions.
17895         (cris_print_index, cris_print_operand, cris_constant_index_p)
17896         (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
17897         (cris_address_cost): Ditto last CONSTANT_P.
17898         (cris_symbol_type_of): Rename from cris_pic_symbol_type_of.  All
17899         callers changed.  Yield cris_offsettable_symbol for non-PIC
17900         constant symbolic expressions including labels.  Yield cris_unspec
17901         for all unspecs.
17902         (cris_expand_pic_call_address): New parameter MARKERP.  Set its
17903         target to pic_offset_table_rtx for calls that will likely go
17904         through PLT, const0_rtx when they can't.  All callers changed.
17905         Assert flag_pic.  Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
17906         symbolic expressions to be PICified.  Remove second, redundant,
17907         assert on can_create_pseudo_p returning non-zero.  Use
17908         replace_equiv_address_nv, not replace_equiv_address, for final
17909         operand update.
17910         * config/cris/cris.md ("movsi"): Move variable t to pattern
17911         toplevel. Adjust assert for new cris_symbol_type member.  Use
17912         CONSTANT_P instead of CONSTANT_ADDRESS_P.
17913         ("*movsi_internal") <case 9>: Make check for valid unspec operands
17914         for lapc stricter.
17915         <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
17916         ("call", "call_value"): Use second incoming operand as a marker
17917         for pic-offset-table-register being used.
17918         ("*expanded_call_non_v32", "*expanded_call_v32")
17919         ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
17920         second incoming operand to CALL, match cris_call_type_marker.
17921         ("*expanded_call_value_side"): Ditto.  Disable before reload_completed.
17922         ("*expanded_call_side"): Ditto.  Fix typo in comment.
17923         (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
17924         CONSTANT_P.
17925         * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
17926         * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
17927         (enum cris_symbol_type): Rename from cris_pic_symbol_type.  All
17928         users changed.  Add members cris_offsettable_symbol and cris_unspec.
17929         (cris_symbol_type): Rename from cris_pic_symbol_type.
17930         * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
17931         just CONSTANT_P.
17932         * config/cris/cris-protos.h (cris_symbol_type_of,
17933         cris_expand_pic_call_address): Adjust prototypes.
17934         (cris_legitimate_constant_p): New prototype.
17936         * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
17937         an existing tmake_file.  Don't add t-slibgcc and t-linux.
17939 2014-07-17  Jason Merrill  <jason@redhat.com>
17941         PR c++/61623
17942         * symtab.c (symtab_remove_from_same_comdat_group): Also
17943         set_comdat_group to NULL_TREE.
17944         (verify_symtab): Fix diagnostic.
17946 2014-07-16  David Wohlferd  <dw@LimeGreenSocks.com>
17948         PR target/61662
17949         * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
17951 2014-07-16  Dodji Seketeli  <dodji@redhat.com>
17953         Support location tracking for built-in macro tokens
17954         * input.h (is_location_from_builtin_token): New function declaration.
17955         * input.c (is_location_from_builtin_token): New function definition.
17956         * toplev.c (general_init): Tell libcpp what the pre-defined
17957         spelling location for built-in tokens is.
17959 2014-07-16  Jakub Jelinek  <jakub@redhat.com>
17961         * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
17962         on the FUNCTION_DECL.
17964 2014-07-16  Richard Biener  <rguenther@suse.de>
17966         PR other/61782
17967         * doc/extend.texi (always_inline): Clarify.
17969 2014-07-15  Eric Christopher  <echristo@gmail.com>
17971         * doc/invoke.texi (Link Options): Document -z option.
17973 2014-07-15  Uros Bizjak  <ubizjak@gmail.com>
17975         * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
17976         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
17978 2014-07-15  Jan Hubicka  <hubicka@ucw.cz>
17980         * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
17982 2014-07-15  Bernd Schmidt  <bernds@codesourcery.com>
17984         * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
17985         varpool_assemble_decl.
17986         * varpool.c (varpool_assemble_decl): Assert that node->definition is
17987         true.
17989 2014-07-15  Michael Matz  <matz@suse.de>
17991         PR rtl-optimization/61772
17992         * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
17994 2014-07-15  Richard Biener  <rguenther@suse.de>
17996         * opts.c (default_options_table): Disable bit-ccp at -Og.
17998 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
18000         * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
18002 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
18004         * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
18005         NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
18006         call langhook for unknown declaration.
18007         (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
18008         * tree.h (DECL_ARGUMENTS): Update.
18009         * print-tree.c (print_node): Update.
18010         * tree-core.h (tree_decl_non_common): Remove arguments.
18011         (tree_function_decl): Add arguments.
18013 2014-07-14  Richard Earnshaw  <rearnsha@arm.com>
18015         * aarch64.md (add_losym_<mode>): Set type to alu_imm.
18017 2014-07-14  Richard Biener  <rguenther@suse.de>
18019         PR tree-optimization/61779
18020         * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
18021         simplifying a condition.
18023 2014-07-14  Richard Biener  <rguenther@suse.de>
18025         * builtins.c (c_strlen): Make only_value == 2 really only
18026         affect warning generation.
18028 2014-07-14  Richard Biener  <rguenther@suse.de>
18030         PR tree-optimization/61757
18031         PR tree-optimization/61783
18032         PR tree-optimization/61787
18033         * tree-ssa-dom.c (record_equality): Revert canonicalization
18034         change and add comment.
18035         (propagate_rhs_into_lhs): Revert previous fix, removing
18036         loop depth restriction again.
18038 2014-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18040         * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
18041         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
18042         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
18043         * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
18044         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
18045         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
18046         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
18048 2014-07-14  Richard Biener  <rguenther@suse.de>
18050         * cgraph.h (decl_in_symtab_p): Make inline.
18052 2014-07-14  Jakub Jelinek  <jakub@redhat.com>
18054         PR middle-end/61294
18055         * doc/invoke.texi (-Wmemset-transposed-args): Document.
18057         PR target/61656
18058         * config/i386/i386.c (classify_argument): Don't merge classes above
18059         number of words.
18061 2014-07-13  Jan Hubicka  <hubicka@ucw.cz>
18063         * cgraph.h (symtab_node): Add nonzero_address.
18064         (decl_in_symtab_p): Break out from ...
18065         (symtab_get_node): ... here.
18066         * fold-const.c: Include cgraph.h
18067         (tree_single_nonzero_warnv_p): Use symtab to determine
18068         if symbol is non-zero.
18069         * symtab.c (symtab_node::nonzero_address): New method.
18071 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
18073         * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
18074         forgotten in previous commit.
18076 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
18078         * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
18079         on builtin types.
18080         * ipa-devirt.c: Include stor-layout.h and intl.h
18081         (odr_subtypes_equivalent_p): New function.
18082         (warn_odr): New function.
18083         (warn_type_mismatch): New function.
18084         (odr_types_equivalent_p): New function.
18085         (add_type_duplicate): Use it.
18086         * common.opt (Wodr): New flag.
18087         * doc/invoke.texi (Wodr): Document new warning.
18089 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
18091         * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
18092         (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
18093         * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
18094         (varpool_get_constructor): Push CTORS_IN timevar.
18095         * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
18097 2014-07-12  Uros Bizjak  <ubizjak@gmail.com>
18099         * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
18100         Remove VOID_FTYPE_PUSHORT.
18101         * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
18102         Change code to USHORT_FTYPE_VOID.
18103         (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
18104         (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
18105         (ix86_atomic_assign_expand_fenv): Update for
18106         __builtin_ia32_fnstsw changes.
18107         * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
18108         (fnstsw): Change operand 0 to nonimmediate operand.
18110 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
18112         * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
18113         (varpool_get_constructor): New function.
18114         (varpool_ctor_useable_for_folding_p): Break out from ...
18115         (ctor_for_folding): ... here; use varpool_get_constructor.
18116         (varpool_assemble_decl): Likewise.
18117         * lto-streamer.h (struct output_block): Turn cgraph_node
18118         to symbol filed.
18119         (lto_input_variable_constructor): Declare.
18120         * ipa-visibility.c (function_and_variable_visibility): Use
18121         varpool_get_constructor.
18122         * cgraph.h (varpool_get_constructor): Declare.
18123         (varpool_ctor_useable_for_folding_p): New function.
18124         * lto-streamer-out.c (get_symbol_initial_value): Take encoder
18125         parameter; return error_mark_node for non-trivial constructors.
18126         (lto_write_tree_1, DFS_write_tree): Update use of
18127         get_symbol_initial_value.
18128         (output_function): Update initialization of symbol.
18129         (output_constructor): New function.
18130         (copy_function): Rename to ..
18131         (copy_function_or_variable): ... this one; handle vars too.
18132         (lto_output): Output variable sections.
18133         * lto-streamer-in.c (input_constructor): New function.
18134         (lto_read_body): Rename from ...
18135         (lto_read_body_or_constructor): ... this one; handle vars too.
18136         (lto_input_variable_constructor): New function.
18137         * ipa-prop.c (ipa_prop_write_jump_functions,
18138         ipa_prop_write_all_agg_replacement): Update.
18139         * lto-cgraph.c (compute_ltrans_boundary): Use it.
18140         (output_cgraph_opt_summary): Set symbol to NULL.
18142 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
18144         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
18145         non-polymorphic types.
18146         * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
18147         * ipa-devirt.c (types_same_for_odr): Do not explode when one
18148         of types is not polymorphic.
18150 2014-07-11  Vladimir Makarov  <vmakarov@redhat.com>
18152         * lra-constraints.c (remove_inheritance_pseudos): Process
18153         destination pseudo too.
18155 2014-07-11  Rong Xu  <xur@google.com>
18157         * gcov-tool.c (gcov_output_files): Fix build error introduced in
18158         commit r212448.
18160 2014-07-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
18162         * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
18163         * config/avr/avr-devices.c (AVR_MCU): Same.
18164         (avr_mcu_types): add text start value to end of device list.
18165         * config/avr/avr-mcus.def: Add text section start for all devices.
18166         (ata5782): Add new avr5 device.
18167         (ata5831): Same.
18168         * config/avr/avr-tables.opt: Regenerate.
18169         * config/avr/avr.h: Add declaration for text section start handler.
18170         (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
18171         SPEC functions.
18172         (LINK_SPEC): Include text section start handler to linker spec.
18173         * config/avr/driver-avr.c (avr_device_to_text_start): New function to
18174         pass -Ttext option to linker if the text section start for the device
18175         is not zero.
18176         * config/avr/t-multilib: Regenerate.
18177         * doc/avr-mmcu.texi: Regenerate.
18179 2014-07-11  David Edelsohn  <dje.gcc@gmail.com>
18181         * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
18182         * config/rs6000/aix52.h (LINK_SPEC): Same.
18183         * config/rs6000/aix53.h (LINK_SPEC): Same.
18184         * config/rs6000/aix61.h (LINK_SPEC): Same.
18185         * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
18187 2014-07-11  Roman Gareev  <gareevroman@gmail.com>
18189         * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
18190         (graphite_verify): New function.
18191         (ivs_params_clear): New function.
18192         (gcc_expression_from_isl_ast_expr_id): New function.
18193         (gcc_expression_from_isl_expr_int): New function.
18194         (binary_op_to_tree): New function.
18195         (ternary_op_to_tree): New function.
18196         (unary_op_to_tree): New function.
18197         (nary_op_to_tree): New function.
18198         (gcc_expression_from_isl_expr_op): New function.
18199         (gcc_expression_from_isl_expression): New function.
18200         (graphite_create_new_loop): New function.
18201         (translate_isl_ast_for_loop): New function.
18202         (get_upper_bound): New function.
18203         (graphite_create_new_loop_guard): New function.
18204         (translate_isl_ast_node_for): New function.
18205         (translate_isl_ast): New function.
18206         (add_parameters_to_ivs_params): New function.
18207         (scop_to_isl_ast): New parameter ip.
18208         (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
18210 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
18212         * config/xtensa/predicates.md (call expander): Update for
18213         DECL_SECTION_NAME being string.
18215 2014-07-11  Richard Biener  <rguenther@suse.de>
18217         PR middle-end/61473
18218         * builtins.c (fold_builtin_memory_op): Inline memory moves that
18219         can be implemented with a single load followed by a single store.
18220         (c_strlen): Only warn when only_value is not 2.
18222 2014-07-11  Evgeny Stupachenko  <evstupac@gmail.com>
18224         * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
18226 2014-07-11  Marat Zakirov  <m.zakirov@samsung.com>
18228         PR target/61561
18229         * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
18230         (*movhi_bytes): Likewise.
18231         (*arm_movqi_insn): Likewise.
18233 2014-07-11  Uros Bizjak  <ubizjak@gmail.com>
18235         PR target/56858
18236         * config/alpha/alpha.c: Include tree-pass.h, context.h
18237         and pass_manager.h.
18238         (pass_data_handle_trap_shadows): New pass.
18239         (pass_handle_trap_shadows::gate): New pass gate function.
18240         (make_pass_handle_trap_shadows): New function.
18241         (rest_of_handle_trap_shadows): Ditto.
18243         (alpha_align_insns_1): Rename from alpha_align_insns.
18244         (pass_data_align_insns): New pass.
18245         (pass_align_insns::gate): New pass gate function.
18246         (make_pass_aling_insns): New function.
18247         (rest_of_align_insns): Ditto.
18248         (alpha_align_insns): Ditto.
18250         (alpha_option_override): Declare handle_trap_shadows info
18251         and align_insns_info.  Register handle_trap_shadows and align_insns
18252         passes here.
18253         (alpha_reorg): Do not call alpha_trap_shadows and
18254         alpha_align_insn from here.
18256         (alpha_pad_function_end): Do not skip BARRIERs.
18258 2014-07-10  Rong Xu  <xur@google.com>
18260         Add gcov-tool: an offline gcda profile processing tool support.
18261         * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
18262         (gcov_is_error): Ditto.
18263         (gcov_read_string): Ditto.
18264         (gcov_read_sync): Ditto.
18265         * gcov-io.h: Move counter defines to gcov-counter.def.
18266         * gcov-dump.c (tag_counters): Use gcov-counter.def.
18267         * coverage.c: Ditto.
18268         * gcov-tool.c: Offline gcda profile processing tool.
18269         (unlink_gcda_file): Remove one gcda file.
18270         (unlink_profile_dir): Remove gcda files from the profile path.
18271         (gcov_output_files): Output gcda files to an output dir.
18272         (profile_merge): Merge two profiles in directory.
18273         (print_merge_usage_message): Print merge usage.
18274         (merge_usage): Print merge usage and exit.
18275         (do_merge): Driver for profile merge sub-command.
18276         (profile_rewrite): Rewrite profile.
18277         (print_rewrite_usage_message): Print rewrite usage.
18278         (rewrite_usage): Print rewrite usage and exit.
18279         (do_rewrite): Driver for profile rewrite sub-command.
18280         (print_usage): Print gcov-info usage and exit.
18281         (print_version): Print gcov-info version.
18282         (process_args): Process arguments.
18283         (main): Main routine for gcov-tool.
18284         * Makefile.in: Build and install gcov-tool.
18285         * gcov-counter.def: New file split from gcov-io.h.
18286         * doc/gcc.texi: Include gcov-tool.texi.
18287         * doc/gcov-tool.texi: Document for gcov-tool.
18289 2014-07-10  Richard Biener  <rguenther@suse.de>
18291         PR tree-optimization/61757
18292         * tree-ssa-dom.c (loop_depth_of_name): Restore.
18293         (propagate_rhs_into_lhs): Revert part of last change.
18295 2014-07-10  Thomas Schwinge  <thomas@codesourcery.com>
18297         * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
18298         FUNCTION_DECLs.
18300 2014-07-10  Eric Botcazou  <ebotcazou@adacore.com>
18302         PR middle-end/53590
18303         * function.c (allocate_struct_function): Revert r188667 change.
18305         * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
18307 2014-07-10  Tom G. Christensen  <tgc@jupiterrise.com>
18309         * doc/install.texi: Remove links to defunct package providers for
18310         Solaris.
18312 2014-07-09  Tom de Vries  <tom@codesourcery.com>
18314         * final.c (get_call_fndecl): Declare.
18315         (self_recursive_call_p): New function.
18316         (collect_fn_hard_reg_usage): Handle self-recursive function calls.
18318 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
18320         * ipa-devirt.c (record_node): Walk through aliases.
18322 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
18324         * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
18326 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
18328         Revert:
18329         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
18331 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
18333         * ipa-visibility.c (function_and_variable_visibility): Remove
18334         temporary hack disabling local aliases on AIX.
18336 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
18338         * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
18339         * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
18341 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
18343         * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
18344         * rs6000/rs6000.c: Inline output of .set instruction.
18345         (declare_alias_data): New struct.
18346         (rs6000_declare_alias): New function.
18347         (rs6000_xcoff_declare_function_name): Use it.
18348         (rs6000_xcoff_declare_object_name): New function.
18349         * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
18350         (ASM_OUTPUT_DEF): Turn to empty definition.
18352 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
18354         PR bootstrap/61679
18355         * hash-table.h: use hash_table::value_type instead of
18356         Descriptor::value_type in the return types of several methods.
18358 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
18360         * tree-pass.h (pass_data): Remove has_execute member.
18361         * passes.c (execute_one_pass): Don't check pass->has_execute.
18362         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
18363         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
18364         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
18365         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
18366         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
18367         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
18368         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
18369         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
18370         gimple-low.c, gimple-ssa-isolate-paths.c,
18371         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
18372         ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
18373         ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
18374         ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
18375         lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
18376         postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
18377         reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
18378         stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
18379         tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
18380         tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
18381         tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
18382         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
18383         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
18384         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
18385         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
18386         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
18387         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
18388         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
18389         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
18390         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
18391         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
18392         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
18393         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
18394         web.c: Remove initializer for pass_data::has_execute.
18396 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
18398         * graphite-htab.h: Use hash_map instead of hash_table.
18399         * graphite-clast-to-gimple.c: Adjust.
18400         * passes.c: Use hash_map instead of hash_table.
18401         * sese.c: Likewise.
18402         * sese.h: Remove now unused code.
18404 2014-07-08  Sriraman Tallam  <tmsriram@google.com>
18406         PR target/61599
18407         * config/i386/i386.c (ix86_in_large_data_p): Check for size less
18408         than zero.
18410 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
18412         PR rtl-optimization/61673
18413         * combine.c (simplify_comparison): Test just mode's sign bit
18414         in tmode rather than the sign bit and any bits above it.
18416 2014-07-08  Roman Gareev  <gareevroman@gmail.com>
18418         * graphite-isl-ast-to-gimple.c (generate_isl_context):
18419         Add __isl_give to the declaration.
18420         (generate_isl_schedule): Likewise.
18421         (scop_to_isl_ast): Likewise.
18423 2014-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18425         * config/arm/arm.c (cortexa5_extra_costs): New table.
18426         (arm_cortex_a5_tune): Use cortexa5_extra_costs.
18428 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
18430         PR tree-optimization/61725
18431         * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
18432         range, use range_includes_zerop_p instead of integer_zerop on
18433         vr0->min, only use log2 of max if min is not negative.
18435 2014-07-08  Richard Biener  <rguenther@suse.de>
18437         * tree-ssa-dom.h (loop_depth_of_name): Remove.
18438         * tree-ssa-dom.c (record_equivalences_from_phis): Remove
18439         restriction on loop depth difference.
18440         (record_equality): Likewise.
18441         (propagate_rhs_into_lhs): Likewise.  Simplify condition.
18442         (loop_depth_of_name): Remove.
18443         * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
18444         restriction on loop depth difference.
18445         (init_copy_prop): Likewise.
18447 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
18449         * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
18450         parameter.
18451         (walk_aliased_vdefs): Likewise.
18452         * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
18453         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
18454         (detect_type_change_from_memory_writes): Check if entry was reached.
18456 2014-07-08  Richard Biener  <rguenther@suse.de>
18458         PR tree-optimization/61681
18459         * tree-ssa-structalias.c (find_what_var_points_to): Expand
18460         NONLOCAL inside ESCAPED.
18462 2014-07-08  Richard Biener  <rguenther@suse.de>
18464         PR tree-optimization/61680
18465         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
18466         Handle properly all read-write dependences with group accesses.
18468 2014-07-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
18470         PR tree-optimization/61576
18471         * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
18472         block containing reduction statement is predecessor of phi basi block.
18474 2014-07-08  Marek Polacek  <polacek@redhat.com>
18476         PR c/60226
18477         * fold-const.c (round_up_loc): Change the parameter type.
18478         Remove assert.
18479         * fold-const.h (round_up_loc): Adjust declaration.
18480         * stor-layout.c (finalize_record_size): Check for too large types.
18482 2014-07-07  Jan Hubicka  <hubicka@ucw.cz>
18484         * symtab.c: Include calls.h.
18485         (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
18487 2014-07-07  Maciej W. Rozycki  <macro@codesourcery.com>
18489         * config/rs6000/rs6000.c (output_vec_const_move): Handle
18490         little-endian code generation.
18491         * config/rs6000/spe.md (spe_evmergehi): Rename to...
18492         (vec_perm00_v2si): ... this.  Handle little-endian code generation.
18493         (spe_evmergehilo): Rename to...
18494         (vec_perm01_v2si): ... this.  Handle little-endian code generation.
18495         (spe_evmergelo): Rename to...
18496         (vec_perm11_v2si): ... this.  Handle little-endian code generation.
18497         (spe_evmergelohi): Rename to...
18498         (vec_perm10_v2si): ... this.  Handle little-endian code generation.
18499         (spe_evmergehi, spe_evmergehilo): New expanders.
18500         (spe_evmergelo, spe_evmergelohi): Likewise.
18501         (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
18502         (*frob_tf_ti): Likewise.
18503         (*frob_<mode>_di_2): Likewise.
18504         (*frob_tf_di_8_2): Likewise.
18505         (*frob_di_<mode>): Likewise.
18506         (*frob_ti_tf): Likewise.
18507         (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
18508         (*frob_ti_<mode>_8_2): Likewise.
18509         (*frob_ti_tf_2): Likewise.
18510         (mov_si<mode>_e500_subreg0): Rename to...
18511         (mov_si<mode>_e500_subreg0_be): ... this.  Restrict to the big
18512         endianness only.
18513         (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
18514         (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
18515         (*mov_si<mode>_e500_subreg0_elf_low_be): ... this.  Restrict to
18516         the big endianness only.
18517         (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
18518         (*mov_si<mode>_e500_subreg0_2): Rename to...
18519         (*mov_si<mode>_e500_subreg0_2_be): ... this.  Restrict to the
18520         big big endianness only.
18521         (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
18522         (*mov_si<mode>_e500_subreg4): Rename to...
18523         (*mov_si<mode>_e500_subreg4_be): ... this.  Restrict to the big
18524         endianness only.
18525         (mov_si<mode>_e500_subreg4_le): New instruction pattern.
18526         (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
18527         (*mov_si<mode>_e500_subreg4_elf_low_be): ... this.  Restrict to
18528         the big endianness only.
18529         (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
18530         pattern.
18531         (*mov_si<mode>_e500_subreg4_2): Rename to...
18532         (*mov_si<mode>_e500_subreg4_2_be): ... this.  Restrict to the big
18533         endianness only.
18534         (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
18535         (*mov_sitf_e500_subreg8): Rename to...
18536         (*mov_sitf_e500_subreg8_be): ... this.  Restrict to the big
18537         endianness only.
18538         (*mov_sitf_e500_subreg8_le): New instruction pattern.
18539         (*mov_sitf_e500_subreg8_2): Rename to...
18540         (*mov_sitf_e500_subreg8_2_be): ... this.  Restrict to the big
18541         endianness only.
18542         (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
18543         (*mov_sitf_e500_subreg12): Rename to...
18544         (*mov_sitf_e500_subreg12_be): ... this.  Restrict to the big
18545         endianness only.
18546         (*mov_sitf_e500_subreg12_le): New instruction pattern.
18547         (*mov_sitf_e500_subreg12_2): Rename to...
18548         (*mov_sitf_e500_subreg12_2_be): ... this.  Restrict to the big
18549         endianness only.
18550         (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
18552 2014-07-07  Max Ostapenko  <m.ostapenko@partner.samsung.com>
18554         * asan.c (instrument_strlen_call): Do not instrument first byte
18555         in strlen if already instrumented.
18557 2014-07-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18559         * config/arm/arm.opt (mwords-little-endian): Delete.
18560         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
18561         of TARGET_LITTLE_WORDS.
18562         (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
18563         * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
18564         warning.
18565         * doc/invoke.texi: Remove references to -mwords-little-endian.
18567 2014-07-07  Jakub Jelinek  <jakub@redhat.com>
18569         * expmed.c (struct init_expmed_rtl): Change all fields but
18570         pow2 and cint from struct rtx_def to rtx.
18571         (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
18572         (init_expmed): Likewise.  Allocate all the 18 rtxes and ggc_free them
18573         at the end again.
18575 2014-07-06  Marek Polacek  <polacek@redhat.com>
18577         PR c/6940
18578         * doc/invoke.texi: Document -Wsizeof-array-argument.
18580 2014-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
18582         * wide-int.h (wide_int_storage): Change declaration from struct
18583         to class.
18585 2014-07-05  Jan Hubicka  <hubicka@ucw.cz>
18587         * cgraph.c (cgraph_create_indirect_edge): Update call of
18588         get_polymorphic_call_info.
18589         * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
18590         (possible_polymorphic_call_targets): Add parameter call.
18591         (decl_maybe_in_construction_p): New predicate.
18592         (get_polymorphic_call_info): Add parameter call;
18593         use decl_maybe_in_construction_p.
18594         * gimple-fold.c (fold_gimple_assign): Update use of
18595         possible_polymorphic_call_targets.
18596         (gimple_fold_call): Likewise.
18597         * ipa-prop.c: Inlcude calls.h
18598         (ipa_binfo_from_known_type_jfunc): Check that known type is record.
18599         (param_type_may_change_p): New predicate.
18600         (detect_type_change_from_memory_writes): Break out from ...
18601         (detect_type_change): ... this one; use param_type_may_change_p.
18602         (detect_type_change_ssa): Use param_type_may_change_p.
18603         (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
18605 2014-07-05  Charles Baylis  <charles.baylis@linaro.org>
18607         PR target/49423
18608         * config/arm/arm-protos.h (arm_legitimate_address_p,
18609         arm_is_constant_pool_ref): Add prototypes.
18610         * config/arm/arm.c (arm_legitimate_address_p): Remove static.
18611         (arm_is_constant_pool_ref) New function.
18612         * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
18613         arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
18614         (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
18615         operand. Remove pool_range and neg_pool_range attributes.
18616         (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
18617         pool_range and neg_pool_range attributes.
18618         * config/arm/constraints.md (Uh): New constraint.
18619         (Uq): Don't allow constant pool references.
18621 2014-07-04  James Greenhalgh  <james.greenhalgh@arm.com>
18623         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
18624         (move_lo_quad_internal_be_<mode>): Likewise.
18625         (move_lo_quad_<mode>): Convert to define_expand.
18626         (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
18627         (aarch64_simd_move_hi_quad_be_<mode>): New.
18628         (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
18629         (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
18630         (aarch64_combinez_be<mode>): New.
18631         (aarch64_combine<mode>): Convert to define_expand.
18632         (aarch64_combine_internal<mode>): New.
18633         (aarch64_simd_combine<mode>): Remove bogus RTL description.
18635 2014-07-04  Tom de Vries  <tom@codesourcery.com>
18637         * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
18638         combination of earlyclobber and read/write modifiers.
18640 2014-07-04  Tom de Vries  <tom@codesourcery.com>
18642         * config/aarch64/aarch64-simd.md
18643         (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
18645 2014-07-04  Richard Earnshaw  <rearnsha@arm.com>
18647         PR target/61714
18648         * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
18650 2014-07-04  Jakub Jelinek  <jakub@redhat.com>
18652         PR middle-end/61654
18653         * cgraphunit.c (expand_thunk): Call free_dominance_info.
18655         PR tree-optimization/61684
18656         * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
18657         rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
18659 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
18660             Kito Cheng  <kito@0xlab.org>
18661             Monk Chiang  <sh.chiang04@gmail.com>
18663         * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
18664         (nds32_symbol_load_store_p): Move to ...
18665         (nds32_fp_as_gp_check_available): Move to ...
18666         * config/nds32/nds32-fp-as-gp.c: ... here.
18667         * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
18668         extern declaration.
18670 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
18671             Kito Cheng  <kito@0xlab.org>
18672             Monk Chiang  <sh.chiang04@gmail.com>
18674         * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
18675         (nds32_expand_store_multiple): Move to ...
18676         (nds32_expand_movmemqi): Move to ...
18677         * config/nds32/nds32-memory-manipulation.c: ... here.
18679 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
18680             Kito Cheng  <kito@0xlab.org>
18681             Monk Chiang  <sh.chiang04@gmail.com>
18683         * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
18684         (nds32_output_casesi_pc_relative): Move to ...
18685         (nds32_output_casesi): Move to ...
18686         (nds32_mem_format): Move to ...
18687         (nds32_output_16bit_store): Move to ...
18688         (nds32_output_16bit_load): Move to ...
18689         (nds32_output_32bit_store): Move to ...
18690         (nds32_output_32bit_load): Move to ...
18691         (nds32_output_32bit_load_s): Move to ...
18692         (nds32_output_stack_push): Move to ...
18693         (nds32_output_stack_pop): Move to ...
18694         * config/nds32/nds32-md-auxiliary.c: ... here.
18696 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
18697             Ling-Hua Tseng  <uranus@tinlans.org>
18699         * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
18700         the purpose of this file.
18702 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
18703             Kito Cheng  <kito@0xlab.org>
18704             Monk Chiang  <sh.chiang04@gmail.com>
18706         * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
18707         (nds32_address_cost): Move implementation to ...
18708         * config/nds32/nds32-cost.c: ... here.
18709         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
18710         (nds32_address_cost_impl): Declare.
18712 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
18713             Kito Cheng  <kito@0xlab.org>
18714             Monk Chiang  <sh.chiang04@gmail.com>
18716         * config/nds32/nds32.c
18717         (nds32_consecutive_registers_load_store_p): Move to ...
18718         (nds32_valid_multiple_load_store): Move to ...
18719         (nds32_valid_stack_push_pop): Move to ...
18720         (nds32_can_use_bclr_p): Move to ...
18721         (nds32_can_use_bset_p): Move to ...
18722         (nds32_can_use_btgl_p): Move to ...
18723         (nds32_can_use_bitci_p): Move to ...
18724         * config/nds32/nds32-predicates.c: ... here.
18726 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
18727             Kito Cheng  <kito@0xlab.org>
18728             Monk Chiang  <sh.chiang04@gmail.com>
18730         * config/nds32/nds32.c
18731         (nds32_expand_builtin_null_ftype_reg): Move to ...
18732         (nds32_expand_builtin_reg_ftype_imm): Move to ...
18733         (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
18734         (nds32_init_builtins): Move implementation to ...
18735         (nds32_expand_builtin): Move implementation to ...
18736         * config/nds32/nds32-intrinsic.c: ... here.
18737         * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
18738         (nds32_expand_builtin_impl): Declare.
18740 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
18741             Kito Cheng  <kito@0xlab.org>
18742             Monk Chiang  <sh.chiang04@gmail.com>
18744         * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
18745         (nds32_emit_section_tail_template): Move to ...
18746         (nds32_emit_isr_jmptbl_section): Move to ...
18747         (nds32_emit_isr_vector_section): Move to ...
18748         (nds32_emit_isr_reset_conten): Move to ...
18749         (nds32_check_isr_attrs_conflict): Move to ...
18750         (nds32_construct_isr_vectors_information): Move to ...
18751         (nds32_asm_file_start): Move implementation to ...
18752         (nds32_asm_file_end): Move implementation to ...
18753         * config/nds32/nds32-isr.c: ... here.
18754         * config/nds32/nds32-protos.h
18755         (nds32_check_isr_attrs_conflict): Declare.
18756         (nds32_construct_isr_vectors_information): Declare.
18757         (nds32_asm_file_start_for_isr): Declare.
18758         (nds32_asm_file_end_for_isr): Declare.
18760 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
18761             Kito Cheng  <kito@0xlab.org>
18762             Monk Chiang  <sh.chiang04@gmail.com>
18764         * config.gcc (nds32*): Add new modules to extra_objs.
18765         (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
18766         (nds32be-*-*): Likewise.
18767         * config/nds32/nds32-cost.c: New file.
18768         * config/nds32/nds32-fp-as-gp.c: New file.
18769         * config/nds32/nds32-intrinsic.c: New file.
18770         * config/nds32/nds32-isr.c: New file.
18771         * config/nds32/nds32-md-auxiliary.c: New file.
18772         * config/nds32/nds32-memory-manipulation.c: New file.
18773         * config/nds32/nds32-pipelines-auxiliary.c: New file.
18774         * config/nds32/nds32-predicates.c: New file.
18775         * config/nds32/t-nds32: New file.
18777 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
18779         PR tree-optimization/61682
18780         * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
18781         using cases and when one of the operands is equal to 1.
18783 2014-07-03  Segher Boessenkool  <segher@kernel.crashing.org>
18785         * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
18786         ashr<mode>3): Correct mode of operands[2].
18787         (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
18788         lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
18789         Correct mode of operands[2].  Fix split condition.
18791 2014-07-03  Richard Earnshaw  <rearnsha@arm.com>
18793         * arm.md (arch): Add armv6_or_vfpv3.
18794         (arch_enabled): Add test for the above.
18795         * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
18796         on VFP9.
18797         (sqrtsf_vfp, sqrtdf_vfp): Likewise.
18799 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
18801         * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
18802         * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
18803         HWI 1 and negate the unsigned value.
18804         * expmed.c (expand_sdiv_pow2): For modes wider than word always
18805         use AND instead of shift.
18806         * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
18808 2014-07-03  Marek Polacek  <polacek@redhat.com>
18810         * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
18811         (-fsanitize=float-divide-by-zero): Move to the table with
18812         -fsanitize=undefined suboptions.
18813         (-fsanitize=float-cast-overflow): Likewise.
18815 2014-07-03  Maciej W. Rozycki  <macro@codesourcery.com>
18817         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
18818         BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
18819         endianness.
18821 2014-07-03  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
18823         * loop-invariant.c (struct invariant): Add a new member: eqno;
18824         (find_identical_invariants): Update eqno;
18825         (create_new_invariant): Init eqno;
18826         (get_inv_cost): Compute comp_cost with eqno;
18828 2014-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
18830         * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
18831         (walk_insn_part) <ROTATE, ROTATERT>: New cases.
18832         (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
18833         * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
18834         Only do the transformation if both HAVE_rotate and HAVE_rotatert.
18836 2014-07-02  Christian Bruel  <christian.bruel@st.com>
18838         PR target/29349
18839         PR target/53513
18840         * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
18841         (make_preds_opaque): Delete.
18842         (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
18843         (commit_mode_sets): New function.
18844         (optimize_mode_switching): Handle current_mode to mode_switching_emit.
18845         Process all modes at once.
18846         * basic-block.h (pre_edge_lcm_avs): Declare.
18847         * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
18848         Call clear_aux_for_edges. Fix comments.
18849         (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
18850         (pre_edge_rev_lcm): Idem.
18851         * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
18852         parameter.
18853         * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
18854         * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
18855         Idem.
18856         * config/i386/i386.c (x96_emit_mode_set): Idem.
18857         * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
18858         * config/sh/sh.md (toggle_pr):  Defined if TARGET_FPU_SINGLE.
18859         (fpscr_toggle) Disallow from delay slot.
18860         * target.def (emit_mode_set): Add prev_mode parameter.
18861         * doc/tm.texi: Regenerate.
18863 2014-07-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18865         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
18866         variable i.
18868 2014-07-01  Jan Hubicka  <hubicka@ucw.cz>
18870         * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
18871         vtable_pointer_value_to_vtable): Constify.
18872         (contains_polymorphic_type_p): Declare.
18873         * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
18874         vtable_pointer_value_to_vtable): Constify.
18875         (contains_polymorphic_type_p): New predicate.
18876         * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
18877         polymorphic types.
18878         (ipa_set_ancestor_jf): Likewise.
18879         (detect_type_change): Return false in easy cases.
18880         (compute_complex_assign_jump_func): Require type to contain
18881         polymorphic type.
18882         (compute_known_type_jump_func): Likewise.
18884 2014-07-01  Jan Hubicka  <hubicka@ucw.cz>
18886         * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
18887         Remove.
18888         (type_in_anonymous_namespace_p): Constify argument.
18889         * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
18890         * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
18891         (main_odr_variant): New function.
18892         (hash_type_name): Make static; update assert; do not ICE on
18893         non-records.
18894         (types_same_for_odr): Bring here from tree.c; simplify and remove
18895         old structural comparing code that doesn't work for templates.
18896         (odr_hasher::equal): Update assert.
18897         (add_type_duplicate): Return true when bases should be computed;
18898         replace incomplete loader by complete; do not output duplicated
18899         warnings; do not ICE on non-records; set odr_violated flag.
18900         (get_odr_type): Be ready to replace incomplete type by complete
18901         one; work on ODR variants instead of main variants; reorder item
18902         in array so bases have still smaller indexes.
18903         (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
18904         (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
18906 2014-07-01  Cary Coutant  <ccoutant@google.com>
18908         * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
18909         lookup.
18910         (resolve_addr_in_expr): When replacing the rtx in a location list
18911         entry, get a new address table entry.
18912         (dwarf2out_finish): Call index_location_lists even if there are no
18913         addr_index_table entries yet.
18915 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
18917         * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
18918         change for not being obvious.
18920 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
18922         * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
18923         unused argument.
18925 2014-07-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18927         * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
18928         (vcagt_f64): Likewise.
18929         (vcale_f64): Likewise.
18930         (vcaled_f64): Likewise.
18931         (vcales_f32): Likewise.
18932         (vcalt_f64): Likewise.
18933         (vcaltd_f64): Likewise.
18934         (vcalts_f32): Likewise.
18936 2014-07-01  Marek Polacek  <polacek@redhat.com>
18938         * doc/invoke.texi: Document -Wint-conversion.
18940 2014-07-01  Marek Polacek  <polacek@redhat.com>
18942         PR c/58286
18943         * doc/invoke.texi: Document -Wincompatible-pointer-types.
18945 2014-07-01  Martin Liska  <mliska@suse.cz>
18947         IPA REF alias refactoring
18948         * cgraph.h (iterate_direct_aliases): New function.
18949         (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
18950         * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
18951         FOR_EACH_ALIAS added.
18952         (cgraph_for_node_and_aliases): Likewise.
18953         * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
18954         * ipa-inline.c (reset_edge_caches): Likewise.
18955         (update_caller_keys): Likewise.
18956         * trans-mem.c (ipa_tm_execute): Likewise.
18957         *varpool.c (varpool_analyze_node): Likewise.
18958         (varpool_for_node_and_aliases): Likewise.
18959         * ipa-ref.h (first_alias): New function.
18960         (last_alias): Likewise.
18961         (has_aliases_p): Likewise.
18962         * ipa-ref.c (ipa_ref::remove_reference): Removal function
18963         is sensitive to IPA_REF_ALIASes.
18964         * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
18965         are put at the beginning of the list.
18966         (symtab_node::iterate_direct_aliases): New function.
18968 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
18970         Revert:
18971         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
18972         type is complete.
18973         (write_ts_type_common_tree_pointers): Do not stream fields not set
18974         for incomplete types; do not stream duplicated fields for variants;
18975         sanity check that variant and type match.
18976         (write_ts_type_non_common_tree_pointers): Likewise.
18977         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
18978         TYPE_SIZE whether type is complete.
18979         (lto_input_ts_type_common_tree_pointers): Do same changes as in
18980         write_ts_type_common_tree_pointers
18981         (lto_input_ts_type_non_common_tree_pointers): Likewise.
18983 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
18985         * var-tracking.c (add_stores): Return instead of asserting if old
18986         and new values for conditional store are the same.
18988 2014-06-30  Richard Henderson  <rth@redhat.com>
18990         PR rtl-opt/61608
18991         PR target/39284
18992         * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
18993         the cfg if there were any changes.
18994         * passes.def: Revert move of peephole2 after reorder_blocks;
18995         move duplicate_computed_gotos before peephole2.
18997 2014-06-30  Uros Bizjak  <ubizjak@gmail.com>
18999         * except.c (emit_note_eh_region_end): New helper function.
19000         (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
19001         emit EH_REGION_END note.
19002         * jump.c (cleanup_barriers): Do not split a call and its
19003         corresponding CALL_ARG_LOCATION note.
19005 2014-06-30  Jeff Law  <law@redhat.com>
19007         PR tree-optimization/61607
19008         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
19009         deeper into the SSA_NAME_VALUE chain.
19011 2014-06-30  Marek Polacek  <polacek@redhat.com>
19013         * convert.c (convert_to_integer): Don't instrument conversions if the
19014         function has no_sanitize_undefined attribute.
19015         * ubsan.c: Don't run the ubsan pass if the function has
19016         no_sanitize_undefined attribute.
19018 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
19020         * doc/invoke.texi (-fsanitize=bounds): Move to the table with
19021         -fsanitize=undefined suboptions.
19023 2014-06-30  Alan Lawrence  <alan.lawrence@arm.com>
19025         * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
19026         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
19027         against bigendian and adjust indices.
19029 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
19031         * doc/install.texi (Specific, aarch64*-*-*): Fix markup.  Reword a bit.
19033 2014-06-30  Marcus Shawcroft  <marcus.shawcroft@arm.com>
19035         PR target/61633
19036         * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
19037         Add alternative; make early clobber.  Adjust both split patterns
19038         to use operand 0 as the working register.
19040 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
19042         * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
19043         as ira_object_id_map might be NULL, or 1.
19045 2014-06-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
19047         * loop-invariant.c (get_inv_cost): Handle register class.
19048         (gain_for_invariant): Check the register pressure of the inv
19049         and its overlapped register class, other than all.
19051 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
19053         * doc/invoke.texi (Optimize Options): Fix descriptions of
19054         ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
19056 2014-06-29  David Wohlferd <dw@LimeGreenSocks.com>
19058         * doc/extend.texi (Function Attributes): Update 'naked' attribute
19059         documentation.
19061 2014-06-29  Tobias Grosser <tobias@grosser.es>
19063         PR bootstrap/61650
19064         * graphite-isl-ast-to-gimple.c: Add missing guards.
19066 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
19068         * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
19069         * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
19070         * flag-types.h: Add new enum fgraphite_generator.
19071         * graphite-isl-ast-to-gimple.c: New.
19072         * graphite-isl-ast-to-gimple.h: New.
19073         * graphite.c (graphite_transform_loops): Add choice of Graphite
19074         code generator, which depends on flag_graphite_code_gen.
19076 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
19078         * graphite-dependences.c (subtract_commutative_associative_deps):
19079         Add NULL checking of the following variables: must_raw_no_source,
19080         may_raw_no_source, must_war_no_source, may_war_no_source,
19081         must_waw_no_source, may_waw_no_source, must_raw, may_raw,
19082         must_war, may_war, must_waw, may_waw.
19084 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
19086         * graphite-clast-to-gimple.c: gloog is renamed to
19087         graphite_regenerate_ast_cloog.  gloog_error is renamed to
19088         graphite_regenerate_error.
19089         * graphite-clast-to-gimple.h: The definition of the struct
19090         bb_pbb_def is moved to graphite-htab.h.
19091         Add inclusion of the hash-table.h.
19092         * graphite-htab.h: The declaration of the function gloog is moved
19093         to graphite-clast-to-gimple.h and renamed to
19094         graphite_regenerate_ast_cloog.
19095         * graphite.c (graphite_transform_loops): gloog is renamed
19096         to graphite_regenerate_ast_cloog.
19098 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
19100         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
19101         type is complete.
19102         (write_ts_type_common_tree_pointers): Do not stream fields not set
19103         for incomplete types; do not stream duplicated fields for variants;
19104         sanity check that variant and type match.
19105         (write_ts_type_non_common_tree_pointers): Likewise.
19106         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
19107         TYPE_SIZE whether type is complete.
19108         (lto_input_ts_type_common_tree_pointers): Do same changes as in
19109         write_ts_type_common_tree_pointers
19110         (lto_input_ts_type_non_common_tree_pointers): Likewise.
19112 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
19114         * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
19116 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
19118         * tree-inline.c (remap_type_1): Do not duplicate fields
19119         that are shared in between type and its main variant.
19121 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
19123         * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
19124         of the type.
19125         (ipa_set_ancestor_jf) Likewise.
19126         (check_stmt_for_type_change): Check that we work on main variant.
19127         (detect_type_change): Look into main variant.
19128         (compute_known_type_jump_func): Check that main variant has BINFO.
19130 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
19132         * ipa-devirt.c (set_type_binfo): New function.
19133         (add_type_duplicate): Use it.
19134         (get_odr_type): Sanity check that binfos points to main variants.
19135         (get_class_context): Be sure the context's outer_type is main variant.
19136         (contains_type_p): Walk main variant.
19137         (get_polymorphic_call_info_for_decl): Set outer_type to be
19138         main variant.
19139         (get_polymorphic_call_info): Likewise.
19140         (possible_polymorphic_call_targets): Sanity check that we operate
19141         on main variant.
19143 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
19145         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
19147 2014-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19149         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
19150         accidental change due to wide-int branch merge.
19152 2014-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19154         * configure.ac (gcc_cv_as_compress_debug): Check for assembler
19155         compressed debug support.
19156         (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
19157         * configure: Regenerate.
19158         * config.in: Regenerate.
19159         * common.opt (compressed_debug_sections): New enum.
19160         (gz, gz=): New options.
19161         * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
19162         (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
19163         (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
19164         * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
19165         LINK_COMPRESS_DEBUG_SPEC.
19166         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
19167         * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
19168         * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
19169         (Debugging Options): Document -gz[=type].
19171 2014-06-27  Martin Jambor  <mjambor@suse.cz>
19173         PR ipa/61160
19174         * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
19175         args_to_skip, use those from node instead.  Copy args_to_skip and
19176         combined_args_to_skip from node to the new thunk.
19177         (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
19178         (cgraph_create_virtual_clone): Moved computation of
19179         combined_args_to_skip...
19180         (cgraph_clone_node): ...here, simplify it to bitmap_ior..
19182 2014-06-27  trevor Saunders  <tsaunders@mozilla.com>
19184         * config/i386/winnt.c (i386_pe_section_type_flags): Remove
19185         redundant diagnostic machinary.
19187 2014-06-27  Richard Biener  <rguenther@suse.de>
19189         * tree-ssa-math-opts.c (bswap_replace): Fix
19190         SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
19192 2014-06-27  Martin Liska  <mliska@suse.cz>
19194         * gimple.h (gimple_location_safe): New function introduced.
19195         * cgraphunit.c (walk_polymorphic_call_targets): Usage
19196         of gimple_location_safe replaces gimple_location.
19197         (gimple_fold_call): Likewise.
19198         * ipa-devirt.c (ipa_devirt): Likewise.
19199         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
19200         * ipa.c (walk_polymorphic_call_targets): Likewise.
19201         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
19203 2014-06-27  Jakub Jelinek  <jakub@redhat.com>
19205         PR tree-optimization/57233
19206         PR tree-optimization/61299
19207         * tree-vect-generic.c (get_compute_type, count_type_subparts): New
19208         functions.
19209         (expand_vector_operations_1): Use them.  If {L,R}ROTATE_EXPR
19210         would be lowered to scalar shifts, check if corresponding
19211         shifts and vector BIT_IOR_EXPR are supported and don't lower
19212         or lower just to narrower vector type in that case.
19213         * expmed.c (expand_shift_1): Fix up handling of vector
19214         shifts and rotates.
19216 2014-06-26  Uros Bizjak  <ubizjak@gmail.com>
19218         PR target/61586
19219         * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
19221 2014-06-26  Jan Hubicka  <hubicka@ucw.cz>
19223         * doc/invoke.texi (-fsemantic-interposition): Document.
19224         * common.opt (fsemantic-interposition): New flag.
19225         * varasm.c (decl_replaceable_p): Use it.
19227 2014-06-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19229         PR target/61542
19230         * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
19231         extraction other than index 3.
19233 2014-06-26  Teresa Johnson  <tejohnson@google.com>
19235         * doc/invoke.texi: Fix typo.
19236         * dumpfile.c: Add support for documented -fdump-* options
19237         optimized/missed/note/optall.
19239 2014-06-26  Martin Jambor  <mjambor@suse.cz>
19241         * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
19242         (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
19243         (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
19244         (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
19245         * opts.c (default_options_optimization): Set
19246         PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
19247         * doc/invoke.texi (allow-load-data-races)
19248         (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
19249         (allow-store-data-races): Document the new default.
19251 2014-06-26  Martin Jambor  <mjambor@suse.cz>
19253         * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
19254         renamed to ipa_impossible_devirt_target.  Fix typo.
19255         * ipa-prop.h (ipa_impossible_devirt_target): Declare.
19256         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
19257         ipa_impossible_devirt_target.
19259 2014-06-26  Richard Biener  <rguenther@suse.de>
19261         PR tree-optimization/61607
19262         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
19263         explaining why we restrict copies on loop depth.
19264         * tree-ssa-dom.c (cprop_operand): Remove restriction on
19265         on loop depth.
19266         (record_equivalences_from_phis): Instead add it here.
19268 2014-06-26  Bernd Schmidt  <bernds@codesourcery.com>
19270         * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
19271         (LTO_WRAPPER_OBJS): New variable.
19272         (lto-wrapper$(exeext)): Use it.
19273         * collect2.c: Include "collect-utils.h".
19274         (verbose, debug): Remove variables.
19275         (at_file_supplied): No longer static.
19276         (tool_name): New variable.
19277         (do_wait, fork_execute, maybe_unlink): Don't declare.
19278         (tool_cleanup): No longer static.
19279         (notice): Remove function.
19280         (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
19281         fork_execute calls.
19282         (collect_wait, do_wait, collect_execute): Remove functions.
19283         (maybe_unlink): No longer static.
19284         * collect2.h (verbose, debug): Don't declare.
19285         (at_file_supplied): Declare.
19286         * collect-utils.c (utils_cleanup): New arg from_signal.  All callers
19287         changed.
19288         (collect_execute): Replace with implementation from collect2, plus a
19289         new arg use_atfile.  All callers changed.
19290         (collect_wait): Replace with implementation from collect2.
19291         (maybe_unlink_file): Remove function.
19292         (fork_execute): Replace with implementation from collect2, plus a
19293         new arg use_atfile.  All callers changed.
19294         (do_wait): Add call to utils_cleanup to the error path.
19295         * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
19296         (tool_cleanup): Adjust declarations.
19297         * lto-wrapper.c (tool_cleanup): Add unused bool argument.
19298         * tlink.c: Include "collect-utils.h".
19299         (tlink_execute): New arg use_atfile.  All callers changed.
19300         (tlink_init, tlink_execute): Remove declarations.
19302         * collect-utils.c (save_temps): New variable.
19303         (do_wait): Use it instead of debug.  Use fatal_error.
19304         * collect-utils.h (save_temps): Declare.
19305         * collect2.c (verbose): Rename from vflag.  All uses changed.
19306         (tool_cleanup): New function, copied from collect_atexit.
19307         (collect_atexit, handler): Just call it.
19308         * collect2.h (verbose): Declaration renamed from vflag.
19309         * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
19310         debug.
19312         * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
19313         (lto-wrapper$(exeext)): Link with collect-utils.o.
19314         * collect-utils.c: New file.
19315         * collect-utils.h: New file.
19316         * lto-wrapper.c: Include "collect-utils.h".
19317         (args_name): Delete variable.
19318         (tool_name): New variable.
19319         (tool_cleanup): New function.
19320         (maybe_unlink): Renamed from maybe_unlink_file.  All callers changed.
19321         (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
19322         (fork_execute): Remove functions.
19324 2014-06-26  Nick Clifton  <nickc@redhat.com>
19326         * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
19328         * doc/extend.texi (Function Attributes): Fix typo in description
19329         of RX vector attribute.
19331 2014-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
19333         * config.gcc (supported_defaults): Error when passing either
19334         --with-tune or --with-arch in conjunction with --with-cpu for ARM.
19336 2014-06-26  Richard Biener  <rguenther@suse.de>
19338         * tree-ssa-dom.c (cprop_operand): Remove restriction on
19339         propagating volatile pointers.
19341 2014-06-26  Richard Biener  <rguenther@suse.de>
19343         PR tree-optimization/61607
19344         * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
19345         loop if we redirected its latch edge.
19346         (thread_block_1): Do not cancel loops prematurely.
19348 2014-06-25  Jan Hubicka  <hubicka@ucw.cz>
19350         * toplev.c (backend_init_target): Move init_emit_regs and
19351         init_regs to...
19352         (backend_init) ... here; skip ira_init_once and backend_init_target.
19353         (target_reinit) ... and here; clear
19354         this_target_rtl->lang_dependent_initialized.
19355         (lang_dependent_init_target): Clear
19356         this_target_rtl->lang_dependent_initialized;
19357         break out rtl initialization to ...
19358         (initialize_rtl): ... here; call also backend_init_target
19359         and ira_init_once.
19360         * toplev.h (initialize_rtl): New function.
19361         * function.c: Include toplev.h
19362         (init_function_start): Call initialize_rtl.
19363         * rtl.h (target_rtl): Add target_specific_initialized,
19364         lang_dependent_initialized.
19366 2014-06-25  Paul Gortmaker  <paul.gortmaker@windriver.com>
19367             Jakub Jelinek  <jakub@redhat.com>
19369         * gcc.c (set_multilib_dir): Malloc "." pointer as well.
19371 2014-06-25  Tom de Vries  <tom@codesourcery.com>
19373         * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
19375 2014-06-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
19377         * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
19378         check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
19379         Issue a strict overflow warning if appropriate.
19381 2014-06-25  Martin Liska  <mliska@suse.cz>
19383         IPA REF refactoring
19384         * Makefile.in: Removed header file (ipa-ref-inline.h).
19385         * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
19386         called.
19387         (cgraph_speculative_call_info): Likewise.
19388         (cgraph_for_node_thunks_and_aliases): Likewise.
19389         (cgraph_for_node_and_aliases): Likewise.
19390         (verify_cgraph_node): Likewise.
19391         * cgraph.h: Batch of IPA REF functions become member functions of
19392         symtab_node: add_reference, maybe_add_reference, clone_references,
19393         clone_referring, clone_reference, find_reference,
19394         remove_stmt_references, remove_all_references,
19395         remove_all_referring, dump_references, dump_referring,
19396         has_alias_p, iterate_reference, iterate_referring.
19397         * cgraphbuild.c (record_reference): New IPA REF function used.
19398         (record_type_list): Likewise.
19399         (record_eh_tables): Likewise.
19400         (mark_address): Likewise.
19401         (mark_load): Likewise.
19402         (mark_store): Likewise.
19403         (pass_build_cgraph_edges): Likewise.
19404         (rebuild_cgraph_edge): Likewise.
19405         (cgraph_rebuild_references): Likewise.
19406         (pass_remove_cgraph_callee_edges): Likewise.
19407         * cgraphclones.c (cgraph_clone_node): Likewise.
19408         (cgraph_create_virtual_clone): Likewise.
19409         (cgraph_materialize_clone): Likewise.
19410         (cgraph_materialize_all_clones): Likewise.
19411         * cgraphunit.c (cgraph_reset_node): Likewise.
19412         (cgraph_reset_node): Likewise.
19413         (analyze_function): Likewise.
19414         (assemble_thunks_and_aliases): Likewise.
19415         (expand_function): Likewise.
19416         * ipa-comdats.c (propagate_comdat_group): Likewise.
19417         (enqueue_references): Likewise.
19418         * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
19419         (create_specialized_node): Likewise.
19420         * ipa-devirt.c (referenced_from_vtable_p): Likewise.
19421         * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
19422         * ipa-inline.c (reset_edge_caches): Likewise.
19423         (update_caller_keys): Likewise.
19424         (execute): Likewise.
19425         * ipa-prop.c (remove_described_reference): Likewise.
19426         (propagate_controlled_uses): Likewise.
19427         (ipa_edge_duplication_hook): Likewise.
19428         (ipa_modify_call_arguments): Likewise.
19429         * ipa-pure-const.c (propagate_pure_const): Likewise.
19430         * ipa-ref-inline.h: Header file removed, functions moved
19431         to symtab_node class.
19432         * ipa-ref.c (remove_reference): New class member function.
19433         (cannot_lead_to_return): New class member function.
19434         (referring_ref_list): Likewise.
19435         (referred_ref_list): Likewise.
19436         Rest of functions moved to symtab_node class.
19437         * ipa-ref.h: New member functions remove_reference,
19438         cannot_lead_to_return, referring_ref_list, referred_ref_list added
19439         to ipa_ref class.
19440         ipa_ref_list class has new member functions: first_reference,
19441         first_referring, clear, nreferences.
19442         * ipa-reference.c (analyze_function): New IPA REF function used.
19443         (write_node_summary_p): Likewise.
19444         (ipa_reference_write_optimization_summary): Likewise.
19445         * ipa-split.c (split_function): Likewise.
19446         * ipa-utils.c (ipa_reverse_postorder): Likewise.
19447         * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
19448         (function_and_variable_visibility): Likewise.
19449         * ipa.c (has_addr_references_p): Likewise.
19450         (process_references): Argument type changed.
19451         (symtab_remove_unreachable_nodes): New IPA REF function used.
19452         (process_references): Likewise.
19453         (set_writeonly_bit): Likewise.
19454         * lto-cgraph.c: Implementation of new symtab_node member functions
19455         that uses new IPA REF functions.
19456         * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
19457         function used.
19458         * lto-streamer-out.c (output_symbol_p): Likewise.
19459         * lto-streamer.h (referenced_from_this_partition_p): Argument type
19460         changed.
19461         * symtab.c: Implementation of new IPA REF API.
19462         * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
19463         (ipa_tm_create_version): Likewise.
19464         (ipa_tm_execute): Likewise.
19465         * tree-emutls.c (gen_emutls_addr): Likewise.
19466         * tree-inline.c (copy_bb): Likewise.
19467         (delete_unreachable_blocks_update_callgraph): Likewise.
19468         * varpool.c (varpool_remove_unreferenced_decls): Likewise.
19469         (varpool_for_node_and_aliases): Likewise.
19471 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
19473         * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
19475 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
19477         PR bootstrap/61598
19478         * fold-const.c (fold_checksum_tree): Use a hash_table of const
19479         tree_node * instead of tree_node *.
19480         (fold): Adjust.
19481         (print_fold_checksum): Likewise.
19482         (fold_check_failed): Likewise.
19483         (debug_fold_checksum): Likewise.
19484         (fold_build1_stat_loc): Likewise.
19485         (fold_build2_stat_loc): Likewise.
19486         (fold_build3_stat_loc): Likewise.
19487         (fold_build_call_array_loc): Likewise.
19489 2014-06-25  David Edelsohn  <dje.gcc@gmail.com>
19491         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
19492         implementation with call to...
19493         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
19494         function.
19495         * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
19496         Declare.
19498 2014-06-25  Marc Glisse  <marc.glisse@inria.fr>
19500         PR tree-optimization/57742
19501         * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
19502         after replacing the statement.
19504 2014-06-25  Nick Clifton  <nickc@redhat.com>
19506         * config/v850/v850.c (GHS_default_section_names): Change to const
19507         char * type.
19508         (GHS_current_section_names): Likewise.
19509         (v850_insert_attributes): Do not build strings, just assign the
19510         names directly.  Change the type of 'chosen_section' to const
19511         char*.
19512         * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
19513         directly to the array entry.
19514         * config/v850/v850.h (GHS_default_section_names): Change to const
19515         char * type.
19516         (GHS_current_section_names): Likewise.
19518 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
19520         * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
19521         (LANG_HOOKS_DECLS): Add it.
19522         * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
19523         has correct type.
19524         * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
19525         * langhooks.h (struct lang_hooks_for_decls): Add
19526         omp_clause_linear_ctor hook.
19527         * omp-low.c (lower_rec_input_clauses): Set max_vf even if
19528         OMP_CLAUSE_LINEAR_ARRAY is set.  Don't fold_convert
19529         OMP_CLAUSE_LINEAR_STEP.  For OMP_CLAUSE_LINEAR_ARRAY in
19530         combined simd loop use omp_clause_linear_ctor hook.
19532 2014-06-24  Cong Hou  <congh@google.com>
19534         * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
19535         pattern recognition.
19536         (type_conversion_p): PROMOTION is true if it's a type promotion
19537         conversion, and false otherwise.  Return true if the given expression
19538         is a type conversion one.
19539         * tree-vectorizer.h: Adjust the number of patterns.
19540         * tree.def: Add SAD_EXPR.
19541         * optabs.def: Add sad_optab.
19542         * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
19543         * expr.c (expand_expr_real_2): Likewise.
19544         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
19545         * gimple.c (get_gimple_rhs_num_ops): Likewise.
19546         * optabs.c (optab_for_tree_code): Likewise.
19547         * tree-cfg.c (estimate_operator_cost): Likewise.
19548         * tree-ssa-operands.c (get_expr_operands): Likewise.
19549         * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
19550         * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
19551         * doc/generic.texi: Add document for SAD_EXPR.
19552         * doc/md.texi: Add document for ssad and usad.
19554 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
19556         * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
19557         qualification in cast.
19559 2014-06-24  Jan Hubicka  <hubicka@ucw.cz>
19561         * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
19562         * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
19563         * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
19564         (tree_function_decl): ... here.
19565         * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
19566         streaming of vindex to ...
19567         (write_ts_function_decl_tree_pointers): ... here.
19568         * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
19569         Do not stream DECL_VINDEX.
19570         (lto_input_ts_function_decl_tree_pointers): Stream it here.
19572 2014-06-24  Catherine Moore  <clm@codesourcery.com>
19573             Sandra Loosemore  <sandra@codesourcery.com>
19575         * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
19576         * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
19577         * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
19579 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
19581         * doc/invoke.texi (Warning Options): Remove duplicated
19582         -Wmaybe-uninitialized.
19584 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
19586         PR tree-optimization/57742
19587         * tree-ssa-strlen.c (get_string_length): Ignore malloc.
19588         (handle_builtin_malloc, handle_builtin_memset): New functions.
19589         (strlen_optimize_stmt): Call them.
19590         * passes.def: Move strlen after loop+dom but before vrp.
19592 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
19594         PR target/61570
19595         * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
19596         model family 6 CPU with has_longmode never use a CPU without
19597         64-bit support.
19599 2014-06-24  H.J. Lu  <hongjiu.lu@intel.com>
19601         PR target/61570
19602         * config/i386/driver-i386.c (host_detect_local_cpu): Revert
19603         the last change.
19605 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
19607         * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
19608         * dominance.c (iterate_fix_dominators): Use hash_map instead of
19609         pointer_map.
19610         * hash-map.h: New file.
19611         * ipa-comdats.c: Use hash_map instead of pointer_map.
19612         * ipa.c: Likewise.
19613         * lto-section-out.c: Adjust.
19614         * lto-streamer.h: Replace pointer_map with hash_map.
19615         * symtab.c (verify_symtab): Likewise.
19616         * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
19617         * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
19618         * tree-streamer.h: Likewise.
19619         * tree-streamer.c: Adjust.
19620         * pointer-set.h: Remove pointer_map.
19622 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
19624         * hash-table.h: Add a template arg to choose between storing values
19625         and storing pointers to values, and then provide partial
19626         specializations for both.
19627         * tree-browser.c (tree_upper_hasher): Provide the type the hash table
19628         should store, not the type values should point to.
19629         * tree-into-ssa.c (var_info_hasher): Likewise.
19630         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
19631         * tree-complex.c: Adjust.
19632         * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
19633         table instead of int_tree_map *.
19634         * tree-parloops.c: Adjust.
19635         * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
19636         type is being stored.
19637         * tree-vectorizer.c: Adjust.
19639 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
19641         * hash-table.h: Remove a layer of indirection from hash_table so that
19642         it contains the hash table's data instead of a pointer to the data.
19643         * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
19644         config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
19645         config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
19646         data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
19647         fold-const.c, gcse.c, ggc-common.c,
19648         gimple-ssa-strength-reduction.c, gimplify.c,
19649         graphite-clast-to-gimple.c, graphite-dependences.c,
19650         graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
19651         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
19652         loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
19653         lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
19654         postreload-gcse.c, sese.c, statistics.c, store-motion.c,
19655         trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
19656         tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
19657         tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
19658         tree-ssa-live.c, tree-ssa-loop-im.c,
19659         tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
19660         tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
19661         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
19662         tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
19663         tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
19664         tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
19665         vtable-verify.c, vtable-verify.h: Adjust.
19667 2014-06-24  Richard Biener  <rguenther@suse.de>
19669         PR tree-optimization/61572
19670         * tree-ssa-sink.c (statement_sink_location): Do not sink
19671         loads from hard registers.
19673 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
19675         * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
19676         not mentioned in clauses use private clause if the iterator is
19677         declared in #pragma omp for simd, and when adding lastprivate
19678         instead, add it to the outer #pragma omp for too.  Diagnose
19679         if the variable is private in outer context.  For simd collapse > 1
19680         loops, replace all iterators with temporaries.
19681         * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
19682         same even in collapse > 1 loops.
19684         * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
19685         OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
19686         non-NULL.
19687         <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
19688         (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
19689         non-NULL.
19690         (gimplify_adjust_omp_clauses): Likewise.
19691         * omp-low.c (lower_rec_simd_input_clauses,
19692         lower_rec_input_clauses, expand_omp_simd): Handle non-constant
19693         safelen the same as safelen(1).
19694         * tree-nested.c (convert_nonlocal_omp_clauses,
19695         convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED.  For
19696         OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
19697         (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
19698         Fixup handling of GIMPLE_OMP_TARGET.
19699         (convert_tramp_reference_stmt, convert_gimple_call): Handle
19700         GIMPLE_OMP_TARGET.
19702 2014-06-24  Chung-Lin Tang  <cltang@codesourcery.com>
19704         PR tree-optimization/61554
19705         * tree-ssa-propagate.c: Include "bitmap.h".
19706         (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
19707         properly update constructor/destructor.
19708         (substitute_and_fold_dom_walker::before_dom_children):
19709         Remove call to gimple_purge_dead_eh_edges, add bb->index to
19710         need_eh_cleaup instead.
19711         (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
19712         need_eh_cleanup.
19714 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
19716         * varpool.c (dump_varpool_node): Dump used_by_single_function.
19717         * tree-pass.h (make_pass_ipa_single_use): New pass.
19718         * cgraph.h (used_by_single_function): New flag.
19719         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
19720         Stream it.
19721         * passes.def (pass_ipa_single_use): Scedule.
19722         * ipa.c (BOTTOM): New macro.
19723         (meet): New function
19724         (propagate_single_user): New function.
19725         (ipa_single_use): New function.
19726         (pass_data_ipa_single_use): New pass.
19727         (pass_ipa_single_use): New pass.
19728         (pass_ipa_single_use::gate): New gate.
19729         (make_pass_ipa_single_use): New function.
19731 2014-06-23  Kai Tietz  <ktietz@redhat.com>
19733         PR target/39284
19734         * passes.def (peephole2): Move peephole2 pass before sched2 pass.
19735         * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
19737 2014-06-23  Richard Biener  <rguenther@suse.de>
19739         * tree-ssa-loop.c (gate_loop): New function.
19740         (pass_tree_loop::gate): Call it.
19741         (pass_data_tree_no_loop, pass_tree_no_loop,
19742         make_pass_tree_no_loop): New.
19743         * tree-vectorizer.c: Include tree-scalar-evolution.c
19744         (pass_slp_vectorize::execute): Initialize loops and SCEV if
19745         required.
19746         (pass_slp_vectorize::clone): New method.
19747         * timevar.def (TV_TREE_NOLOOP): New.
19748         * tree-pass.h (make_pass_tree_no_loop): Declare.
19749         * passes.def (pass_tree_no_loop): New pass group with
19750         SLP vectorizer.
19752 2014-06-23  H.J. Lu  <hongjiu.lu@intel.com>
19754         PR target/61570
19755         * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
19756         to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
19758 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
19760         * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
19761         "yes" where needed.
19763 2014-06-23  Alan Modra  <amodra@gmail.com>
19765         PR bootstrap/61583
19766         * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
19767         to zero on debug statements.
19769 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
19771         PR target/60825
19772         * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
19773         Ignore third operand if present by marking qualifier_internal.
19775         * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
19777         * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
19778         vector extension.
19779         (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
19780         arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
19781         (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
19782         vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
19783         vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
19784         vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
19785         vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
19786         vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
19787         vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
19788         vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
19789         vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
19790         vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
19791         vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
19792         vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
19793         vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
19794         vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
19795         logic in GCC vector extensions
19797         (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
19798         vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
19799         vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
19800         vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
19801         vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
19802         vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
19803         vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
19804         vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
19805         vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
19806         vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
19808         (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
19810         (vget_high_s64, vget_high_u64): Reimplement with GCC vector
19811         extensions.
19813         (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
19814         (vget_low_s64): Use __GET_LOW macro.
19815         (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
19816         gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
19817         (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
19818         (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
19819         __builtin_aarch64_lane_boundsi, use GCC vector extensions.
19821         (vcombine_s64): Use GCC vector extensions; remove cast.
19822         (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
19823         vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
19824         vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
19825         Fix type signature; remove cast.
19827 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
19829         PR target/60825
19830         * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
19831         V1DFmode.
19832         * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
19833         add V1DFmode
19834         (BUILTIN_VD1): New.
19835         (BUILTIN_VD_RE): Remove.
19836         (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
19837         (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
19838         * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
19839         variant but not df.
19840         (vreinterpretv1df*, vreinterpret*v1df): New.
19841         (vreinterpretdf*, vreinterpret*df): Remove.
19842         * config/aarch64/aarch64-simd.md (aarch64_create,
19843         aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
19844         * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
19845         (VD1): New.
19846         * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
19847         (vcreate_f64): Remove cast, use v1df builtin.
19848         (vcombine_f64): Remove cast, get elements with gcc vector extensions.
19849         (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
19850         vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
19851         vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
19852         vmov_n_f64, vst1_f64): Use gcc vector extensions.
19853         (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
19854         add range check using __builtin_aarch64_im_lane_boundsi.
19855         (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
19856         vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
19857         type signature, use gcc vector extensions.
19858         (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
19859         vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
19860         vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
19861         vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
19862         vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
19863         vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
19864         vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
19865         vreinterpret_u64_f64): Use v1df builtin not df.
19867 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
19869         * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
19870         vector registers.
19872 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
19874         * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
19875         priority directly.
19877 2014-06-23  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
19879         * loop-invariant.c (pre_check_invariant_p): New function.
19880         (find_invariant_insn): Call pre_check_invariant_p.
19882 2014-06-22  Richard Henderson  <rth@redhat.com>
19884         PR target/61565
19885         * compare-elim.c (struct comparison): Add eh_note.
19886         (find_comparison_dom_walker::before_dom_children): Don't eliminate
19887         a redundant comparison in a different EH region.  Purge EH edges if
19888         necessary.
19890 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
19892         * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
19893         (var_shift): Use it.
19894         (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
19895         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
19896         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
19897         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
19898         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
19899         *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
19900         *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
19901         *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
19902         *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
19903         *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
19904         *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
19905         *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
19906         *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
19907         *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
19908         *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
19909         *rotldi3_internal15be): Use the new attribute.  Merge register and
19910         integer alternatives.
19912 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
19914         * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
19915         define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
19916         split, *ashrdi3_internal3 and split): Delete, merge into...
19917         (ashr<mode>3): New expander.
19918         (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
19919         (*ashrsi3_64): Fix formatting.  Replace "i" by "n".
19921 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
19923         * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
19924         *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
19925         *rotldi3_internal3 and split): Delete, merge into...
19926         (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
19927         (*rotlsi3_64): Fix formatting.  Fix condition.  Replace "i" by "n".
19928         Use "rotlw" extended mnemonic.
19930 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
19932         * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
19933         and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
19934         and split, *ashldi3_internal3 and split): Delete, merge into...
19935         (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
19936         (*ashlsi3_64): Fix formatting.  Replace "i" by "n".
19938 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
19940         * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
19941         (lshrsi3, two anonymous define_insns and define_splits,
19942         lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
19943         *lshrdi3_internal3 and split): Delete, merge into...
19944         (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
19945         (*lshrsi3_64): Fix formatting.  Replace "i" by "n".
19947 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
19949         * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
19950         Remove "O" alternative.
19952 2014-06-22  Richard Sandiford  <rdsandiford@googlemail.com>
19954         * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
19955         (mips_move_from_gpr_cost): Likewise.
19956         (mips_register_move_cost): Update accordingly.
19957         (mips_secondary_reload_class): Remove name of in_p.
19959 2014-06-22  Marc Glisse  <marc.glisse@inria.fr>
19961         PR target/61503
19962         * config/i386/i386.md (x86_64_shrd, x86_shrd,
19963         ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
19965 2014-06-21  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
19967         * config/nios2/nios2.c: Include "builtins.h".
19969 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
19971         * cgraph.h (tls_model_names): New variable.
19972         * print-tree.c (print_node): Simplify.
19973         * varpool.c (tls_model_names): New variable.
19974         (dump_varpool_node): Output tls model.
19976 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
19978         * ipa-visibility.c (function_and_variable_visibility): Disable
19979         temporarily local aliases for some targets.
19981 2014-06-20  Marek Polacek  <polacek@redhat.com>
19983         * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
19984         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
19985         into SANITIZE_UNDEFINED.
19986         * doc/invoke.texi: Describe -fsanitize=bounds.
19987         * gimplify.c (gimplify_call_expr): Add gimplification of internal
19988         functions created in the FEs.
19989         * internal-fn.c: Move "internal-fn.h" after "tree.h".
19990         (expand_UBSAN_BOUNDS): New function.
19991         * internal-fn.def (UBSAN_BOUNDS): New internal function.
19992         * internal-fn.h: Don't define internal functions here.
19993         * opts.c (common_handle_option): Add -fsanitize=bounds.
19994         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
19995         BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
19996         * tree-core.h: Define internal functions here.
19997         (struct tree_base): Add ifn field.
19998         * tree-pretty-print.c: Include "internal-fn.h".
19999         (dump_generic_node): Handle functions without CALL_EXPR_FN.
20000         * tree.c (get_callee_fndecl): Likewise.
20001         (build_call_expr_internal_loc): New function.
20002         * tree.def (CALL_EXPR): Update description.
20003         * tree.h (CALL_EXPR_IFN): Define.
20004         (build_call_expr_internal_loc): Declare.
20005         * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
20006         types.
20007         (ubsan_type_descriptor): Change bool parameter to enum
20008         ubsan_print_style.  Adjust the code.  Add handling of
20009         UBSAN_PRINT_ARRAY.
20010         (ubsan_expand_bounds_ifn): New function.
20011         (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
20012         (ubsan_build_overflow_builtin): Likewise.
20013         (instrument_bool_enum_load): Likewise.
20014         (ubsan_instrument_float_cast): Likewise.
20015         * ubsan.h (enum ubsan_print_style): New enum.
20016         (ubsan_expand_bounds_ifn): Declare.
20017         (ubsan_type_descriptor): Adjust declaration.  Use a default parameter.
20019 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
20021         * config/rs6000/rs6000.md: Append `DONE' to preparation
20022         statements of `bswap' pattern splitters.
20024 2014-06-20  Tom de Vries  <tom@codesourcery.com>
20026         * target.def (call_fusage_contains_non_callee_clobbers): Update
20027         definition.
20028         * doc/tm.texi: Regenerate.
20030 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
20031             Max Ostapenko  <m.ostapenko@partner.samsung.com>
20033         PR sanitizer/61547
20034         * asan.c (instrument_strlen_call): Fixed instrumentation of
20035         trailing byte.
20037 2014-06-20  Martin Jambor  <mjambor@suse.cz>
20039         PR ipa/61540
20040         * ipa-prop.c (impossible_devirt_target): New function.
20041         (try_make_edge_direct_virtual_call): Use it, also instead of
20042         asserting.
20044 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
20045             Max Ostapenko  <m.ostapenko@partner.samsung.com>
20047         PR sanitizer/61530
20048         * asan.c (build_check_stmt): Add condition.
20050 2014-06-20  Martin Jambor  <mjambor@suse.cz>
20052         PR ipa/61211
20053         * cgraph.c (clone_of_p): Allow skipped_branch to deal with
20054         expanded clones.
20056 2014-06-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20058         * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
20059         Update comments.
20060         (VCONQ): Make comment more helpful.
20061         (VCON): Delete.
20062         * config/aarch64/aarch64-simd.md
20063         (aarch64_sqdmulh_lane<mode>):
20064         Use VCOND for operands 2.  Update lane checking and flipping logic.
20065         (aarch64_sqrdmulh_lane<mode>): Likewise.
20066         (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
20067         (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
20068         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
20069         attribute of operand 3 to VCOND.
20070         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
20071         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
20072         (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
20073         (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
20074         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
20075         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
20076         define_insn.
20077         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
20078         (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
20079         (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
20080         (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
20081         (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
20082         (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
20083         operand to VCOND.  Update lane flipping and bounds checking logic.
20084         (aarch64_sqdmlal2_lane<mode>): Likewise.
20085         (aarch64_sqdmlsl_lane<mode>): Likewise.
20086         (aarch64_sqdmull_lane<mode>): Likewise.
20087         (aarch64_sqdmull2_lane<mode>): Likewise.
20088         (aarch64_sqdmlal_laneq<mode>):
20089         Replace VCON usage with VCONQ.
20090         Emit aarch64_sqdmlal_laneq<mode>_internal insn.
20091         (aarch64_sqdmlal2_laneq<mode>): Emit
20092         aarch64_sqdmlal2_laneq<mode>_internal insn.
20093         Replace VCON with VCONQ.
20094         (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
20095         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
20096         (aarch64_sqdmull_laneq<mode>): Emit
20097         aarch64_sqdmull_laneq<mode>_internal insn.
20098         Replace VCON with VCONQ.
20099         (aarch64_sqdmull2_laneq<mode>): Emit
20100         aarch64_sqdmull2_laneq<mode>_internal insn.
20101         (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
20102         * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
20103         of 3rd argument to int16x4_t.
20104         (vqdmlalh_lane_s16): Likewise.
20105         (vqdmlslh_lane_s16): Likewise.
20106         (vqdmull_high_lane_s16): Likewise.
20107         (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
20108         (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
20109         (vqdmlsl_lane_s16): Likewise.
20110         (vqdmull_lane_s16): Don't create temporary int16x8_t value.
20111         (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
20112         (vqdmlals_lane_s32): Likewise.
20113         (vqdmlsls_lane_s32): Likewise.
20114         (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
20115         (vqdmulls_lane_s32): Likewise.
20116         (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
20117         (vqdmlsl_lane_s32): Likewise.
20118         (vqdmull_lane_s32): Don't create temporary int32x4_t value.
20119         (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
20120         (vqrdmulhh_lane_s16): Likewise.
20121         (vqdmlsl_high_lane_s16): Likewise.
20122         (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
20123         (vqdmlsl_high_lane_s32): Likewise.
20124         (vqrdmulhs_lane_s32): Likewise.
20126 2014-06-20  Tom de Vries  <tom@codesourcery.com>
20128         * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
20129         get_call_reg_set_usage.
20131 2014-06-20  Tom de Vries  <tom@codesourcery.com>
20133         * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
20134         it contains all call_used_regs.
20136 2014-06-20  Tom de Vries  <tom@codesourcery.com>
20138         * final.c (collect_fn_hard_reg_usage): Add and use variable
20139         function_used_regs.
20141 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
20143         * cgraph.h (struct symtab_node): Add field in_init_priority_hash
20144         (set_init_priority, get_init_priority, set_fini_priority,
20145         get_fini_priority): New methods.
20146         * tree.c (init_priority_for_decl): Remove.
20147         (init_ttree): Do not initialize init priority.
20148         (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
20149         (decl_priority_info): Remove.
20150         (decl_init_priority_insert): Rewrite.
20151         (decl_fini_priority_insert): Rewrite.
20152         * tree.h (tree_priority_map_eq, tree_priority_map_hash,
20153         tree_priority_map_marked_p): Remove.
20154         * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
20155         * lto-streamer-out.c (hash_tree): Do not hash priorities.
20156         * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
20157         not output priorities.
20158         (pack_ts_function_decl_value_fields): Likewise.
20159         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
20160         not input priorities.
20161         (unpack_ts_function_decl_value_fields): Likewise.
20162         * symtab.c (symbol_priority_map): Declare.
20163         (init_priority_hash): Declare.
20164         (symtab_unregister_node): Unregister from priority hash, too.
20165         (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
20166         New methods.
20167         (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
20168         (symbol_priority_info): New function.
20169         (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
20170         New methods.
20171         * tree-core.h (tree_priority_map): Remove.
20173 2014-06-20  Jakub Jelinek  <jakub@redhat.com>
20175         * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
20176         0xff to uint64_t before shifting it up.
20178 2014-06-20  Julian Brown  <julian@codesourcery.com>
20179             Chung-Lin Tang  <cltang@codesourcery.com>
20181         * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
20182         TARGET_THUMB1_ONLY. Add comments.
20184 2014-06-19  Tom de Vries  <tom@codesourcery.com>
20186         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
20187         return type to void.
20188         * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
20190 2014-06-19  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
20192         * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
20193         as "move", from depends_on.
20195 2014-06-19  Terry Guo  <terry.guo@arm.com>
20197         * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
20198         stage.
20200 2014-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
20202         * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
20203         Remove cr5.
20204         (REG_ALLOC_ORDER): Update comment.  Move cr5 earlier.
20206 2014-06-18  Kaz Kojima  <kkojima@gcc.gnu.org>
20208         PR target/61550
20209         * config/sh/sh.c (prepare_move_operands): Don't process TLS
20210         addresses here if reload in progress or completed.
20212 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
20214         * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
20215         "TARGET_MIPS16 ? M16_REGS : GR_REGS".
20216         * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
20217         (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
20218         (mips_register_priority): New function that implements the target
20219         hook TARGET_REGISTER_PRIORITY.
20220         (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
20221         (mips_lra_p): Likewise for TARGET_LRA_P.
20222         (TARGET_REGISTER_PRIORITY): Define macro.
20223         (TARGET_SPILL_CLASS): Likewise.
20224         (TARGET_LRA_P): Likewise.
20225         * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
20226         classes.
20227         (REG_CLASS_NAMES): Likewise.
20228         (REG_CLASS_CONTENTS): Likewise.
20229         (BASE_REG_CLASS): Use M16_SP_REGS.
20230         * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
20231         New set attribute to enable alternatives depending on the register
20232         allocator used.
20233         (*mul_acc_si_r3900, *mul_sub_si): Likewise.
20234         (*lea64): Disable pattern for MIPS16.
20235         * config/mips/mips.opt (mlra): New option.
20237 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
20239         * lra-constraints.c (base_to_reg): New function.
20240         (process_address): Use new function.
20242 2014-06-18  Tom de Vries  <tom@codesourcery.com>
20244         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
20245         * config/aarch64/aarch64.c
20246         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
20247         (aarch64_emit_call_insn): New function.
20248         (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
20249         of emit_call_insn.
20250         * config/aarch64/aarch64.md (define_expand "call_internal")
20251         (define_expand "call_value_internal", define_expand "sibcall_internal")
20252         (define_expand "sibcall_value_internal"): New.
20253         (define_expand "call", define_expand "call_value")
20254         (define_expand "sibcall", define_expand "sibcall_value"): Use internal
20255         expand variant and aarch64_emit_call_insn.
20257 2014-06-18  Radovan Obradovic  <robradovic@mips.com>
20258             Tom de Vries  <tom@codesourcery.com>
20260         * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
20261         * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
20262         Redefine to true.
20263         (arm_emit_call_insn): Add and use sibcall parameter.  Add IP and CC
20264         clobbers to CALL_INSN_FUNCTION_USAGE.
20265         (define_expand "sibcall_internal")
20266         (define_expand "sibcall_value_internal"): New.
20267         (define_expand "call", define_expand "call_value"): Add argument to
20268         arm_emit_call_insn.
20269         (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
20270         (define_expand "sibcall_value"): Use sibcall_value_internal and
20271         arm_emit_call_insn.
20273 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
20275         * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
20277 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
20279         * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
20280         __udivmoddi4.
20282 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
20284         * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
20285         push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
20286         annotations. Fix DWARF information.
20288 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
20290         * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
20291         __udivmoddi4, and fixups for negative operands.
20293 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
20295         * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
20297 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
20299         * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
20300         to __udivmoddi4.
20302 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
20304         * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
20305         manipulation.
20307 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
20309         * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
20310         describing register usage on function entry and exit.
20312 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
20314         * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
20315         (__aeabi_ldivmod): Fix whitespace.
20317 2014-06-18  Andreas Schwab  <schwab@suse.de>
20319         * doc/md.texi (Standard Names): Use @itemx for grouped items.
20320         Remove blank line after @item.
20322 2014-06-18  Richard Henderson  <rth@redhat.com>
20324         PR target/61545
20325         * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
20327 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
20329         * config/arm/arm.c (neon_vector_mem_operand): Allow register
20330         POST_MODIFY for neon loads and stores.
20331         (arm_print_operand): Output post-index register for neon loads and
20332         stores.
20334 2014-06-18  Richard Biener  <rguenther@suse.de>
20336         * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
20338 2014-06-18  Richard Biener  <rguenther@suse.de>
20340         * tree-pass.h (make_pass_dce_loop): Remove.
20341         * passes.def: Replace pass_dce_loop with pass_dce.
20342         * tree-ssa-dce.c (perform_tree_ssa_dce): If something
20343         changed free niter estimates and reset the scev cache.
20344         (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
20345         make_pass_dce_loop): Remove.
20346         * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
20347         (fini_copy_prop): Return whether something changed.  Always
20348         let substitute_and_fold perform DCE and free niter estimates
20349         and reset the scev cache if so.
20350         (execute_copy_prop): If sth changed schedule cleanup-cfg.
20351         (pass_data_copy_prop): Do not unconditionally schedule
20352         cleanup-cfg or update-ssa.
20354 2014-06-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
20356         PR tree-optimization/61518
20357         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
20358         reduction var is used in reduction stmt or phi-function only.
20360 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20362         * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
20364 2014-06-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
20366         PR tree-optimization/61517
20367         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
20368         whose rhs's first tree is the source expression instead of the
20369         expression itself.
20370         (find_bswap_or_nop): Likewise.
20371         (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
20372         gimple stmt whose rhs's first tree is the source. In the memory source
20373         case, move the stmt to be replaced close to one of the original load to
20374         avoid the problem of a store between the load and the stmt's original
20375         location.
20376         (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
20377         signature.
20379 2014-06-18  Andreas Schwab  <schwab@suse.de>
20381         PR rtl-optimization/54555
20382         * postreload.c (move2add_use_add2_insn): Substitute
20383         STRICT_LOW_PART only if it is cheaper.
20385 2014-06-18  Uros Bizjak  <ubizjak@gmail.com>
20387         * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
20388         Do not use unspec as call operand.  Use memory_operand instead of
20389         memory_nox32_operand and add "m" operand constraint.  Disable
20390         pattern for TARGET_X32.
20391         (*sibcall_pop_memory): Ditto.
20392         (*sibcall_value_memory): Ditto.
20393         (*sibcall_value_pop_memory): Ditto.
20394         (sibcall peepholes): Merge SImode and DImode patterns using
20395         W mode iterator.  Use memory_operand instead of memory_nox32_operand.
20396         Disable pattern for TARGET_X32.  Check if eliminated register is
20397         really dead after call insn.  Generate call RTX without unspec operand.
20398         (sibcall_value peepholes): Ditto.
20399         (sibcall_pop peepholes): Fix call insn RTXes.  Use memory_operand
20400         instead of memory_nox32_operand.  Check if eliminated register is
20401         really dead after call insn. Generate call RTX without unspec operand.
20402         (sibcall_value_pop peepholes): Ditto.
20403         * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
20405 2014-06-18  Terry Guo  <terry.guo@arm.com>
20407         PR target/61544
20408         * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
20409         reach the head.
20411 2014-06-18  Olivier Hainque  <hainque@adacore.com>
20413         * tree-core.h (tree_block): Add an "end_locus" field, allowing
20414         memorization of the end of block source location.
20415         * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
20416         * gimplify.c (gimplify_bind_expr): Propagate the block start and
20417         end source location info we have on the block entry/exit code we
20418         generate.
20420 2014-06-18  Richard Biener  <rguenther@suse.de>
20422         * common.opt (fssa-phiopt): New option.
20423         * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
20424         but not with -Og.
20425         * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
20426         * doc/invoke.texi (-fssa-phiopt): Document.
20428 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20430         * genattrtab.c (n_bypassed): New variable.
20431         (process_bypasses): Initialise n_bypassed.
20432         Count number of bypassed reservations.
20433         (make_automaton_attrs): Allocate space for bypassed reservations
20434         rather than number of bypasses.
20436 2014-06-18  Richard Biener  <rguenther@suse.de>
20438         * tree-ssa-propagate.c (replace_phi_args_in): Return whether
20439         we propagated anything.
20440         (substitute_and_fold_dom_walker::before_dom_children): Something
20441         changed if we propagated into PHI arguments.
20442         * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
20443         we removed a stmt.
20445 2014-06-18  Evgeny Stupachenko  <evstupac@gmail.com>
20447         * config/i386/i386.c (ix86_reassociation_width): Add alternative for
20448         vector case.
20449         * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
20450         * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
20451         * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
20452         Introduces alternative way of loads group permutaions.
20453         (vect_transform_grouped_load): Try alternative way of permutations.
20455 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
20457         * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
20458         changed in ORT_TARGET region, don't jump to do_outer.
20459         (struct gimplify_adjust_omp_clauses_data): New type.
20460         (gimplify_adjust_omp_clauses_1): Adjust for data being
20461         a struct gimplify_adjust_omp_clauses_data pointer instead
20462         of tree *.  Pass pre_p as a new argument to
20463         lang_hooks.decls.omp_finish_clause hook.
20464         (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
20465         splay_tree_foreach to pass both list_p and pre_p.
20466         (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
20467         gimplify_omp_workshare, gimplify_omp_target_update): Adjust
20468         gimplify_adjust_omp_clauses callers.
20469         * langhooks.c (lhd_omp_finish_clause): New function.
20470         * langhooks-def.h (lhd_omp_finish_clause): New prototype.
20471         (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
20472         * langhooks.h (struct lang_hooks_for_decls): Add a new
20473         gimple_seq * argument to omp_finish_clause hook.
20474         * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
20475         non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
20476         (scan_omp_parallel, lower_omp_for): When adding
20477         _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
20478         * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
20479         * tree-nested.c (convert_nonlocal_omp_clauses,
20480         convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
20481         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
20483 2014-06-17  Andrew MacLeod  <amacleod@redhat.com>
20485         * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
20486         * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
20488 2014-06-17  Xinliang David Li  <davidxl@google.com>
20490         * tree-pretty-print.c (dump_function_header): Print cgraph uid.
20491         * passes.c (pass_init_dump_file): Do not set initialize
20492         flag to false unconditionally.
20494 2014-06-17  Richard Biener  <rguenther@suse.de>
20496         * genopinit.c (main): Use vec<>::qsort method.
20497         * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
20498         Likewise.
20499         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
20501 2014-06-17  Matthew Fortune  <matthew.fortune@imgtec.com>
20503         * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
20504         * config/mips/mips.c (mips_expand_fcc_reload): Remove.
20505         (mips_move_to_gpr_cost): Remove ST_REGS case.
20506         (mips_move_from_gpr_cost): Likewise.
20507         (mips_register_move_cost): Likewise.
20508         (mips_secondary_reload_class): Likewise.
20510 2014-06-17  Richard Biener  <rguenther@suse.de>
20512         * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
20513         (pass_all_optimizations): Move 3rd copy-prop pass from after
20514         fre to before ifcombine/phiopt.
20516 2014-06-17  Richard Biener  <rguenther@suse.de>
20518         * tree-switch-conversion.c (collect_switch_conv_info): Simplify
20519         and allow all blocks to be forwarders.
20521 2014-06-17  Yufeng Zhang  <yufeng.zhang@arm.com>
20523         PR target/61483
20524         * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
20525         variable 'size'; calculate 'size' right in the front; use
20526         'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
20527         pcum->aapcs_stack_words.
20529 2014-06-17  Nick Clifton  <nickc@redhat.com>
20531         * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
20532         (umulhi3, mulsidi3, umulsidi3): Likewise.
20534 2014-06-17  Thomas Schwinge  <thomas@codesourcery.com>
20536         PR middle-end/61508
20537         * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
20538         check for section name.
20540 2014-06-17  Richard Biener  <rguenther@suse.de>
20542         * tree-ssa-propagate.c: Include domwalk.h.
20543         (substitute_and_fold): Outline main worker into a domwalker ...
20544         (substitute_and_fold_dom_walker::before_dom_children): ... here.
20545         Schedule stmts we can fully propagate for removal.  Remove
20546         poor-mans DCE.
20547         (substitute_and_fold): Apply a dominator walk to perform
20548         substitution.  Process stmts scheduled for removal here.
20550 2014-06-17  Richard Biener  <rguenther@suse.de>
20552         * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
20553         of PHI node moving.
20555 2014-06-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
20557         * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
20558         default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
20559         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
20560         __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
20561         * config/arm/vfp.md (set_fpscr): Make pattern conditional on
20562         TARGET_HARD_FLOAT.
20563         (get_fpscr) : Likewise.
20565 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
20567         PR rtl-optimization/61325
20568         * lra-constraints.c (valid_address_p): Add forward declaration.
20569         (simplify_operand_subreg): Check address validity before and after
20570         alter_reg of memory subreg.
20572 2014-06-16  Uros Bizjak  <ubizjak@gmail.com>
20574         * config/i386/i386.c (decide_alg): Correctly handle
20575         maximum size of stringop algorithm.
20577 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
20579         * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
20581 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
20583         PR rtl-optimization/61522
20584         * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
20586 2014-06-16  Jan Hubicka  <hubicka@ucw.cz>
20588         Revert:
20589         * symtab.c (symtab_node::reset_section): New method.
20590         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
20591         for localization.
20592         * cgraph.h (reset_section): Declare.
20593         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
20594         do not consider comdat locals.
20595         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
20596         for new symbol.
20597         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
20598         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
20599         reset sections of symbols dragged out of the comdats.
20600         (function_and_variable_visibility): Reset sections of
20601         localized symbols.
20603 2014-06-16  Richard Biener  <rguenther@suse.de>
20605         PR tree-optimization/61482
20606         * tree-vrp.c (adjust_range_with_scev): Avoid setting of
20607         [-INF(OVF), +INF(OVF)] range.
20609 2014-06-16  Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
20611         * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
20612         instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
20613         handling 32-bit multiplication.
20615 2014-06-16  Chung-Lin Tang  <cltang@codesourcery.com>
20617         PR middle-end/61430
20618         * lra-lives.c (process_bb_lives): Skip creating copy during
20619         insn scan when src/dest has constrained to same regno.
20621 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
20623         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
20624         DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
20626 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
20628         * asan.c (check_func): New function.
20629         (maybe_create_ssa_name): Likewise.
20630         (build_check_stmt_with_calls): Likewise.
20631         (use_calls_p): Likewise.
20632         (report_error_func): Change interface.
20633         (build_check_stmt): Allow non-integer lengths; add support
20634         for new parameter.
20635         (asan_instrument): Likewise.
20636         (instrument_mem_region_access): Moved code to build_check_stmt.
20637         (instrument_derefs): Likewise.
20638         (instrument_strlen_call): Likewise.
20639         * cfgcleanup.c (old_insns_match_p): Add support for new functions.
20640         * doc/invoke.texi: Describe new parameter.
20641         * params.def: Define new parameter.
20642         * params.h: Likewise.
20643         * sanitizer.def: Describe new builtins.
20645 2014-06-16  Richard Biener  <rguenther@suse.de>
20647         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
20648         Make all defs available at the end.
20649         (eliminate): If we remove a PHI node schedule cfg-cleanup.
20651 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
20653         PR plugins/45078
20654         * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
20656 2014-06-16  Richard Sandiford  <rdsandiford@googlemail.com>
20658         PR bootstrap/61516
20659         * auto-inc-dec.c (merge_in_block): Fix location of insn_info
20660         initialization.  Replace remaining use of uid.
20662 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
20664         * c-family/c-common.c (handle_tls_model_attribute): Use
20665         set_decl_tls_model.
20666         * c-family/c-common.c (handle_tls_model_attribute): Use
20667         set_decl_tls_model.
20668         * cgraph.h (struct varpool_node): Add tls_model.
20669         * tree.c (decl_tls_model, set_decl_tls_model): New functions.
20670         * tree.h (DECL_TLS_MODEL): Update.
20671         (DECL_THREAD_LOCAL_P): Check that variable is static.
20672         (decl_tls_model): Declare.
20673         (set_decl_tls_model): Declare.
20674         * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
20675         set symbol prorperties.
20676         (get_emutls_init_templ_addr): Cleanup.
20677         (new_emutls_decl): Update.
20678         * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
20679         (lto_input_varpool_node): Likewise.
20680         * lto-streamer-out.c (hash_tree): Likewise.
20681         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
20682         not stream DECL_TLS_MODEL.
20683         * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
20684         * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
20686 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
20688         * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
20690 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
20692         * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
20693         (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
20694         lists.
20695         (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
20696         (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
20697         (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
20698         (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
20699         (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
20700         (df_get_artificial_defs, df_get_artificial_uses)
20701         (df_single_def, df_single_use): Update accordingly.
20702         (df_refs_chain_dump): Take the first element in a linked list as
20703         parameter, rather than a pointer to an array of pointers.
20704         * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
20705         * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
20706         (df_chain_create_bb_process_use): Likewise.
20707         (df_md_bb_local_compute_process_def): Likewise.
20708         * fwprop.c (process_defs, process_uses): Likewise.
20709         (register_active_defs, update_uses): Likewise.
20710         (forward_propagate_asm): Update for new df_ref linking.
20711         * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
20712         (df_null_ref_rec, df_null_mw_rec): Likewise.
20713         (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
20714         explicitly.
20715         (df_scan_free_bb_info): Remove check for null artificial_defs.
20716         (df_install_ref_incremental): Adjust for new df_ref linking.
20717         Use a single-element insertion rather than a full sort.
20718         (df_ref_chain_delete_du_chain): Take the first element
20719         in a linked list as parameter, rather than a pointer to an array of
20720         pointers.
20721         (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
20722         (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
20723         (df_insn_info_delete): Remove check for null defs and call to
20724         df_scan_free_mws_vec.
20725         (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
20726         null rather than df_null_*_rec.
20727         (df_insn_rescan_debug_internal): Likewise, and update null
20728         checks in the same way.  Remove check for null defs.
20729         (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
20730         Move a single element rather doing a full sort.
20731         (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
20732         linking.
20733         (df_notes_rescan): Likewise.  Use a merge rather than a full sort.
20734         Initialize df_ref and df_mw_hardreg lists to null rather than
20735         df_null_*_rec.
20736         (df_ref_compare): Take df_refs as parameter, transferring the
20737         old interface to...
20738         (df_ref_ptr_compare): ...this new function.
20739         (df_sort_and_compress_refs): Update accordingly.
20740         (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
20741         old interface to...
20742         (df_mw_ptr_compare): ...this new function.
20743         (df_sort_and_compress_mws): Update accordingly.
20744         (df_install_refs, df_install_mws): Return a linked list rather than
20745         an array of pointers.
20746         (df_refs_add_to_chains): Assert that old lists are empty rather
20747         than freeing them.
20748         (df_insn_refs_verify): Don't handle null defs speciailly.
20749         * web.c (union_match_dups): Update for new df_ref linking.
20751 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
20753         * df.h (df_ref_create, df_ref_remove): Delete.
20754         * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
20755         (df_ref_remove): Likewise.
20757 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
20759         * df.h (df_single_def, df_single_use): New functions.
20760         * ira.c (find_moveable_pseudos): Use them.
20762 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
20764         * df.h (FOR_EACH_INSN_INFO_MW): New macro.
20765         * df-problems.c (df_note_bb_compute): Use it.
20766         * regstat.c (regstat_bb_compute_ri): Likewise.
20768 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
20770         * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
20771         * cse.c (cse_extended_basic_block): Use them.
20772         * dce.c (mark_artificial_use): Likewise.
20773         * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
20774         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
20775         (df_chain_remove_problem, df_chain_bb_dump): Likewise.
20776         (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
20777         (df_simulate_initialize_backwards): Likewise.
20778         (df_simulate_finalize_backwards): Likewise.
20779         (df_simulate_initialize_forwards): Likewise.
20780         (df_md_simulate_artificial_defs_at_top): Likewise.
20781         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
20782         * regrename.c (init_rename_info): Likewise.
20783         * regstat.c (regstat_bb_compute_ri): Likewise.
20784         (regstat_bb_compute_calls_crossed): Likewise.
20786 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
20788         * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
20789         (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
20790         (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
20791         * auto-inc-dec.c (find_inc, merge_in_block): Use them.
20792         * combine.c (create_log_links): Likewise.
20793         * compare-elim.c (find_flags_uses_in_insn): Likewise.
20794         (try_eliminate_compare): Likewise.
20795         * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
20796         * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
20797         (remove_reg_equal_equiv_notes_for_defs): Likewise.
20798         (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
20799         (word_dce_process_block, dce_process_block): Likewise.
20800         * ddg.c (def_has_ccmode_p): Likewise.
20801         * df-core.c (df_bb_regno_first_def_find): Likewise.
20802         (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
20803         * df-problems.c (df_rd_simulate_one_insn): Likewise.
20804         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
20805         (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
20806         (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
20807         (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
20808         (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
20809         (df_simulate_find_defs, df_simulate_find_uses): Likewise.
20810         (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
20811         (df_simulate_uses, df_md_simulate_one_insn): Likewise.
20812         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
20813         * fwprop.c (local_ref_killed_between_p): Likewise.
20814         (all_uses_available_at, free_load_extend): Likewise.
20815         * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
20816         * hw-doloop.c (scan_loop): Likewise.
20817         * ifcvt.c (dead_or_predicable): Likewise.
20818         * init-regs.c (initialize_uninitialized_regs): Likewise.
20819         * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
20820         (process_bb_node_lives): Likewise.
20821         * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
20822         (find_moveable_pseudos): Likewise.
20823         * loop-invariant.c (check_dependencies, record_uses): Likewise.
20824         * recog.c (peep2_find_free_register): Likewise.
20825         * ree.c (get_defs): Likewise.
20826         * regstat.c (regstat_bb_compute_ri): Likewise.
20827         (regstat_bb_compute_calls_crossed): Likewise.
20828         * sched-deps.c (find_inc, find_mem): Likewise.
20829         * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
20830         (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
20831         * shrink-wrap.c (requires_stack_frame_p): Likewise.
20832         (prepare_shrink_wrap): Likewise.
20833         * store-motion.c (compute_store_table, build_store_vectors): Likewise.
20834         * web.c (union_defs, pass_web::execute): Likewise.
20835         * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
20836         (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
20838 2014-06-13  Vladimir Makarov  <vmakarov@redhat.com>
20840         * lra-assign.c (assign_by_spills): Add code to assign vector regs
20841         to inheritance pseudos.
20842         * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
20844 2014-06-13  Peter Bergner  <bergner@vnet.ibm.com>
20846         PR target/61415
20847         * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
20848         (BU_MISC_2): Rename to ...
20849         (BU_LDBL128_2): ... this.
20850         * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
20851         (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
20852         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
20853         RS6000_BTM_LDBL128.
20854         (rs6000_invalid_builtin): Add long double 128-bit builtin support.
20855         (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
20856         * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
20857         (unpacktf_1): Likewise.
20858         * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
20859         (__builtin_longdouble_dw1): Likewise.
20860         * doc/sourcebuild.texi (longdouble128): Document.
20862 2014-06-13  Jeff Law  <law@redhat.com>
20864         PR rtl-optimization/61094
20865         PR rtl-optimization/61446
20866         * ree.c (combine_reaching_defs): Get the mode for the copy from
20867         the extension insn rather than the defining insn.
20869 2014-06-13  Dehao Chen  <dehao@google.com>
20871         * dwarf2out.c (add_linkage_name): Emit more linkage name.
20873 2014-06-13  Thomas Schwinge  <thomas@codesourcery.com>
20875         * doc/install.texi (--enable-linker-plugin-configure-flags)
20876         (--enable-linker-plugin-flags): Document new flags.
20878 2014-06-13  Martin Jambor  <mjambor@suse.cz>
20880         PR ipa/61186
20881         * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
20882         cache_token if returning early.
20884 2014-06-13  Nick Clifton  <nickc@redhat.com>
20886         * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
20887         requested alignment is active.
20888         (LABEL_ALIGN): Likewise.
20889         (LOOP_ALIGN): Likewise.
20891 2014-06-13  Richard Biener  <rguenther@suse.de>
20893         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
20894         Rewrite to propagate the VN result into all uses where
20895         possible and to remove stmts becoming dead because of that.
20896         (eliminate): Generalize stmt removal handling, remove in
20897         reverse dominator order to support proper debug stmt
20898         generation.  Update stmts before removing stmts.
20899         * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
20901 2014-06-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
20903         PR tree-optimization/61375
20904         * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
20905         symbolic number cannot be represented in an uint64_t.
20906         (find_bswap_or_nop_1): Likewise.
20908 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
20910         * symtab.c (symtab_node::reset_section): New method.
20911         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
20912         for localization.
20913         * cgraph.h (reset_section): Declare.
20914         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
20915         do not consider comdat locals.
20916         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
20917         for new symbol.
20918         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
20919         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
20920         reset sections of symbols dragged out of the comdats.
20921         (function_and_variable_visibility): Reset sections of
20922         localized symbols.
20924 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
20926         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
20927         to use symtab and decl_binds_to_current_def_p
20928         * tree-vectorizer.c (increase_alignment): Increase alignment
20929         of alias target, too.
20931 2014-06-12  Jakub Jelinek  <jakub@redhat.com>
20933         PR middle-end/61486
20934         * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
20935         (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
20936         if outer combined construct is distribute.
20937         (gimplify_omp_for): For OMP_DISTRIBUTE set
20938         gimplify_omp_ctxp->distribute.
20939         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
20940         GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
20941         mapping into decl map.
20943 2014-06-12  Jason Merrill  <jason@redhat.com>
20945         * common.opt (fabi-version): Change default to 0.
20947 2014-06-12  Jason Merrill  <jason@redhat.com>
20949         * toplev.c (process_options): Reject -fabi-version=1.
20951 2014-06-12  Jeff Law  <law@redhat.com>
20953         PR tree-optimization/61009
20954         * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
20955         value when we stop processing a block due to problematic PHIs.
20957 2014-06-12  Alan Lawrence  <alan.lawrence@arm.com>
20959         * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
20960         vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
20961         vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
20962         vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
20963         vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
20964         vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
20965         vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
20966         are not in the spec.
20968 2014-06-10  Alan Lawrence  <alan.lawrence@arm.com>
20970         PR target/59843
20971         * config/aarch64/aarch64-modes.def: Add V1DFmode.
20972         * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
20973         Support V1DFmode.
20975 2014-06-12  Eric Botcazou  <ebotcazou@adacore.com>
20977         * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
20979 2014-06-12  Georg-Johann Lay  <avr@gjlay.de>
20981         PR target/61443
20982         * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
20983         loading from address spaces.
20985 2014-06-12  Martin Liska  <mliska@suse.cz>
20987         PR ipa/61462
20988         * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
20989         statement is reachable.
20991 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
20993         * symtab.c (section_hash): New hash.
20994         (symtab_unregister_node): Clear section before freeing.
20995         (hash_section_hash_entry): New haser.
20996         (eq_sections): New function.
20997         (symtab_node::set_section_for_node): New method.
20998         (set_section_1): Update.
20999         (symtab_node::set_section): Take string instead of tree as parameter.
21000         (symtab_resolve_alias): Update.
21001         * cgraph.h (section_hash_entry_d): New structure.
21002         (section_hash_entry): New typedef.
21003         (cgraph_node): Change comdat_group_ to x_comdat_group,
21004         change section_ to x_section and turn into section_hash_entry;
21005         update accestors; put set_section_for_node offline.
21006         * tree.c (decl_section_name): Turn into string.
21007         (set_decl_section_name): Change parameter to be string.
21008         * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
21009         * sdbout.c (sdbout_one_type): Update.
21010         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
21011         * varasm.c (IN_NAMED_SECTION, get_named_section,
21012         resolve_unique_section, hot_function_section, get_named_text_section,
21013         USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
21014         make_decl_rtl, default_unique_section): Update.
21015         * config/c6x/c6x.c (c6x_in_small_data_p): Update.
21016         (c6x_elf_unique_section): Update.
21017         * config/nios2/nios2.c (nios2_in_small_data_p): Update.
21018         * config/pa/pa.c (pa_function_section): Update.
21019         * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
21020         * config/ia64/ia64.c (ia64_in_small_data_p): Update.
21021         * config/arc/arc.c (arc_in_small_data_p): Update.
21022         * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
21023         * config/mcore/mcore.c (mcore_unique_section): Update.
21024         * config/mips/mips.c (mips16_build_function_stub): Update.
21025         (mips16_build_call_stub): Update.
21026         (mips_function_rodata_section): Update.
21027         (mips_in_small_data_p): Update.
21028         * config/score/score.c (score_in_small_data_p): Update.
21029         * config/rx/rx.c (rx_in_small_data): Update.
21030         * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
21031         (rs6000_xcoff_asm_named_section): Update.
21032         (rs6000_xcoff_unique_section): Update.
21033         * config/frv/frv.c (frv_string_begins_with): Update.
21034         (frv_in_small_data_p): Update.
21035         * config/v850/v850.c (v850_encode_data_area): Update.
21036         * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
21037         (bfin_handle_l1_data_attribute): Update.
21038         (bfin_handle_l2_attribute): Update.
21039         * config/mep/mep.c (mep_unique_section): Update.
21040         * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
21041         Update.
21042         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
21043         (h8300_handle_tiny_data_attribute): Update.
21044         * config/m32r/m32r.c (m32r_in_small_data_p): Update.
21045         (m32r_in_small_data_p): Update.
21046         * config/alpha/alpha.c (alpha_in_small_data_p): Update.
21047         * config/i386/i386.c (ix86_in_large_data_p): Update.
21048         * config/i386/winnt.c (i386_pe_unique_section): Update.
21049         * config/darwin.c (darwin_function_section): Update.
21050         * config/lm32/lm32.c (lm32_in_small_data_p): Update.
21051         * tree-emutls.c (get_emutls_init_templ_addr): Update.
21052         (new_emutls_decl): Update.
21053         * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
21054         input_varpool_node): Update.
21055         (ead_string_cst): Turn to ...
21056         (read_string): ... this one.
21057         * dwarf2out.c (secname_for_decl): Update.
21058         * asan.c (asan_protect_global): Update.
21060 2014-06-11  DJ Delorie  <dj@redhat.com>
21062         * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
21063         cache lines.
21064         * config/rx/rx.c (rx_option_override): Likewise.
21065         (rx_align_for_label): Likewise.
21067         * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
21069 2014-06-11  Maciej W. Rozycki  <macro@codesourcery.com>
21071         * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
21072         prototype.
21074 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
21076         * common.md: New file.
21077         * doc/md.texi: Update description of generic, machine-independent
21078         constraints.
21079         * config/s390/constraints.md (e): Delete.
21080         * Makefile.in (md_file): Include common.md.
21081         * config/m32c/t-m32c (md_file): Likewise.
21082         * genpreds.c (general_mem): New array.
21083         (generic_constraint_letters): Remove constraints now defined by
21084         common.md.
21085         (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
21086         Allow the first character to be '<' or '>' as well.
21087         * genoutput.c (general_mem): New array.
21088         (indep_constraints): Remove constraints now defined by common.md.
21089         (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
21090         Remove special handling of 'm'.
21091         * ira-costs.c (record_reg_classes): Remove special handling of
21092         constraints now defined by common.md.
21093         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
21094         * ira-lives.c (single_reg_class): Likewise.
21095         (ira_implicitly_set_insn_hard_regs): Likewise.
21096         * lra-constraints.c (reg_class_from_constraints): Likewise.
21097         (process_alt_operands, process_address, curr_insn_transform): Likewise.
21098         * postreload.c (reload_cse_simplify_operands): Likewise.
21099         * reload.c (push_secondary_reload, scratch_reload_class)
21100         (find_reloads, alternative_allows_const_pool_ref): Likewise.
21101         * reload1.c (maybe_fix_stack_asms): Likewise.
21102         * targhooks.c (default_secondary_reload): Likewise.
21103         * stmt.c (parse_output_constraint): Likewise.
21104         * recog.c (preprocess_constraints): Likewise.
21105         (constrain_operands, peep2_find_free_register): Likewise.
21106         (asm_operand_ok): Likewise, but add a comment saying why 'o'
21107         must be handled specially.
21109 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
21111         * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
21112         * genpreds.c (have_const_dbl_constraints): Delete.
21113         (add_constraint): Don't set it.
21114         (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
21115         * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
21116         constraints using the lookup_constraint logic.
21117         * ira-lives.c (single_reg_class): Likewise.
21118         * ira.c (ira_setup_alts): Likewise.
21119         * lra-constraints.c (process_alt_operands): Likewise.
21120         * recog.c (asm_operand_ok, constrain_operands): Likewise.
21121         * reload.c (find_reloads): Likewise.
21123 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
21125         * genpreds.c (const_int_start, const_int_end): New variables.
21126         (choose_enum_order): Output CONST_INT constraints before memory
21127         constraints.
21128         (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
21129         Add CT_CONST_INT.
21130         * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
21131         * ira.c (ira_setup_alts): Likewise.
21132         * lra-constraints.c (process_alt_operands): Likewise.
21133         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
21134         * reload.c (find_reloads): Likewise.
21136 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
21138         * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
21139         decmem_ok and incmem_ok.  Reformat other bitfields for consistency.
21140         * recog.c (preprocess_constraints): Update accordingly.
21142 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
21144         * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
21145         (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
21146         (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
21147         * genpreds.c (print_type_tree): New function.
21148         (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
21149         REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
21150         EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
21151         Write out enum constraint_type and get_constraint_type.
21152         * lra-constraints.c (satisfies_memory_constraint_p): Take a
21153         constraint_num rather than a constraint string.
21154         (satisfies_address_constraint_p): Likewise.
21155         (reg_class_from_constraints): Avoid old constraint macros.
21156         (process_alt_operands, process_address_1): Likewise.
21157         (curr_insn_transform): Likewise.
21158         * ira-costs.c (record_reg_classes): Likewise.
21159         (record_operand_costs): Likewise.
21160         * ira-lives.c (single_reg_class): Likewise.
21161         (ira_implicitly_set_insn_hard_regs): Likewise.
21162         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
21163         * postreload.c (reload_cse_simplify_operands): Likewise.
21164         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
21165         (constrain_operands, peep2_find_free_register): Likewise.
21166         * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
21167         (find_reloads, alternative_allows_const_pool_ref): Likewise.
21168         * reload1.c (maybe_fix_stack_asms): Likewise.
21169         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
21170         * targhooks.c (default_secondary_reload): Likewise.
21171         * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
21172         to EXTRA_CONSTRAINT_STR.
21173         * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
21175 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
21177         * genpreds.c (write_constraint_satisfied_p_1): Replace with...
21178         (write_constraint_satisfied_p_array): ...this new function.
21179         (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
21180         an array.
21181         (write_insn_preds_c): Update accordingly.
21183 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
21185         * genpreds.c (write_lookup_constraint): Rename to...
21186         (write_lookup_constraint_1): ...this.
21187         (write_lookup_constraint_array): New function.
21188         (write_tm_preds_h): Define lookup_constraint as an inline function
21189         that uses write_lookup_constraint_array where possible.
21190         (write_insn_preds_c): Update for the changes above.
21192 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
21194         * doc/md.texi (regclass_for_constraint): Rename to...
21195         (reg_class_for_constraint): ...this.
21196         * genpreds.c (num_constraints, enum_order, register_start)
21197         (register_end, satisfied_start, memory_start, memory_end)
21198         (address_start, address_end): New variables.
21199         (add_constraint): Count the number of constraints.
21200         (choose_enum_order): New function.
21201         (write_enum_constraint_num): Iterate over enum_order.
21202         (write_regclass_for_constraint): Rename to...
21203         (write_reg_class_for_constraint_1): ...this and update output
21204         accordingly.
21205         (write_constraint_satisfied_p): Rename to...
21206         (write_constraint_satisfied_p_1): ...this and update output
21207         accordingly.  Do nothing if all extra constraints are register
21208         constraints.
21209         (write_insn_extra_memory_constraint): Delete.
21210         (write_insn_extra_address_constraint): Delete.
21211         (write_range_function): New function.
21212         (write_tm_preds_h): Define constraint_satisfied_p and
21213         reg_class_for_constraint as inline functions that do a range check
21214         before calling the out-of-line function.  Use write_range_function
21215         to implement insn_extra_{register,memory,address}_constraint,
21216         the first of which is new.
21217         (write_insn_preds_c): Update after above changes to write_* functions.
21218         (main): Call choose_enum_order.
21220 2014-06-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
21222         PR tree-optimization/61306
21223         * tree-ssa-math-opts.c (struct symbolic_number): Store type of
21224         expression instead of its size.
21225         (do_shift_rotate): Adapt to change in struct symbolic_number. Return
21226         false to prevent optimization when the result is unpredictable due to
21227         arithmetic right shift of signed type with highest byte is set.
21228         (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
21229         (init_symbolic_number): Likewise.
21230         (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
21231         when the result is unpredictable due to sign extension.
21233 2014-06-11  Terry Guo  <terry.guo@arm.com>
21235         * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
21236         (*thumb1_addsi3): Ditto.
21237         (*thumb_subdi3): Ditto.
21238         (thumb1_subsi3_insn): Ditto.
21239         (*thumb_mulsi3): Ditto.
21240         (*thumb_mulsi3_v6): Ditto.
21241         (*thumb1_andsi3_insn): Ditto.
21242         (thumb1_bicsi3): Ditto.
21243         (*thumb1_iorsi3_insn): Ditto.
21244         (*thumb1_xorsi3_insn): Ditto.
21245         (*thumb1_ashlsi3): Ditto.
21246         (*thumb1_ashrsi3): Ditto.
21247         (*thumb1_lshrsi3): Ditto.
21248         (*thumb1_rotrsi3): Ditto.
21249         (*thumb1_negdi2): Ditto.
21250         (*thumb1_negsi2): Ditto.
21251         (*thumb1_abssi2): Ditto.
21252         (*thumb1_neg_abssi2): Ditto.
21253         (*thumb1_one_cmplsi2): Ditto.
21254         (*thumb1_zero_extendhisi2): Ditto.
21255         (*thumb1_zero_extendqisi2): Ditto.
21256         (*thumb1_zero_extendqisi2_v6): Ditto.
21257         (thumb1_extendhisi2): Ditto.
21258         (thumb1_extendqisi2): Ditto.
21259         (*thumb1_movdi_insn): Ditto.
21260         (*thumb1_movsi_insn): Ditto.
21261         (*thumb1_movhi_insn): Ditto.
21262         (thumb_movhi_clobber): Ditto.
21263         (*thumb1_movqi_insn): Ditto.
21264         (*thumb1_movhf): Ditto.
21265         (*thumb1_movsf_insn): Ditto.
21266         (*thumb_movdf_insn): Ditto.
21267         (movmem12b): Ditto.
21268         (movmem8b): Ditto.
21269         (cbranchqi4): Ditto.
21270         (cbranchsi4_insn): Ditto.
21271         (cbranchsi4_scratch): Ditto.
21272         (*negated_cbranchsi4): Ditto.
21273         (*tbit_cbranch): Ditto.
21274         (*tlobits_cbranch): Ditto.
21275         (*tstsi3_cbranch): Ditto.
21276         (*cbranchne_decr1): Ditto.
21277         (*addsi3_cbranch): Ditto.
21278         (*addsi3_cbranch_scratch): Ditto.
21279         (*thumb_cmpdi_zero): Ditto.
21280         (cstoresi_eq0_thumb1): Ditto.
21281         (cstoresi_ne0_thumb1): Ditto.
21282         (*cstoresi_eq0_thumb1_insn): Ditto.
21283         (*cstoresi_ne0_thumb1_insn): Ditto.
21284         (cstoresi_nltu_thumb1): Ditto.
21285         (cstoresi_ltu_thumb1): Ditto.
21286         (thumb1_addsi3_addgeu): Ditto.
21287         (*thumb_jump): Ditto.
21288         (*call_reg_thumb1_v5): Ditto.
21289         (*call_reg_thumb1): Ditto.
21290         (*call_value_reg_thumb1_v5): Ditto.
21291         (*call_value_reg_thumb1): Ditto.
21292         (*call_insn): Ditto.
21293         (*call_value_insn): Ditto.
21294         (thumb1_casesi_internal_pic): Ditto.
21295         (thumb1_casesi_dispatch): Ditto.
21296         (*thumb1_indirect_jump): Ditto.
21297         (prologue_thumb1_interwork): Ditto.
21298         (*epilogue_insns): Ditto.
21299         (consttable_1): Ditto.
21300         (consttable_2): Ditto.
21301         (tablejump): Ditto.
21302         (*thumb1_tablejump): Ditto.
21303         (thumb_eh_return): Ditto.
21304         (define_peephole2): Two of them are thumb1 only and got moved into
21305         new file thumb1.md.
21306         (define_split): Six of them are thumb1 only and got moved into new
21307         file thumb1.md.
21308         * config/arm/thumb1.md: New file comprised of above thumb1 only
21309         patterns.
21311 2014-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21313         * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
21314         * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
21315         dependencies.
21316         * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
21317         (aarch64_crc_builtin_datum): New struct.
21318         (aarch64_crc_builtin_data): New.
21319         (aarch64_init_crc32_builtins): New function.
21320         (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
21321         (aarch64_crc32_expand_builtin): New.
21322         (aarch64_expand_builtin): Add CRC32 builtin expansion case.
21323         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
21324         __ARM_FEATURE_CRC32 when appropriate.
21325         (TARGET_CRC32): Define.
21326         * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
21327         UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
21328         UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
21329         (aarch64_<crc_variant>): New pattern.
21330         * config/aarch64/arm_acle.h: New file.
21331         * config/aarch64/iterators.md (CRC): New int iterator.
21332         (crc_variant, crc_mode): New int attributes.
21333         * doc/aarch64-acle-intrinsics.texi: New file.
21334         * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
21335         Include aarch64-acle-intrinsics.texi.
21337 2014-06-11  Evgeny Stupachenko  <evstupac@gmail.com>
21339         * tree-vect-data-refs.c (vect_grouped_store_supported): New
21340         check for stores group of length 3.
21341         (vect_permute_store_chain): New permutations for stores group of
21342         length 3.
21343         * tree-vect-stmts.c (vect_model_store_cost): Change cost
21344         of vec_perm_shuffle for the new permutations.
21346 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
21348         * ipa-visibility.c (function_and_variable_visibility): Disable virtual
21349         table rewriting temporarily on targets not supporting ONE_ONLY.
21351 2014-06-11  Richard Biener  <rguenther@suse.de>
21353         PR middle-end/61437
21354         Revert
21355         2014-06-04  Richard Biener  <rguenther@suse.de>
21357         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
21358         TREE_PUBLIC and DECL_EXTERNAL decls.
21360 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
21362         * varasm.c (set_implicit_section): New function.
21363         (resolve_unique_section): Use it to set implicit section
21364         for aliases, too.
21365         (get_named_text_section): Use symtab_get_node (decl)->implicit_section
21366         (default_function_section): Likewise.
21367         (decl_binds_to_current_def_p): Constify argument.
21368         * varasm.h (decl_binds_to_current_def_p): Update prototype.
21369         * asan.c (asan_protect_global): Use
21370         symtab_get_node (decl)->implicit_section.
21371         * symtab.c (dump_symtab_base): Dump implicit sections.
21372         (verify_symtab_base): Verify sanity of sectoins and comdats.
21373         (symtab_resolve_alias): Alias share the section of its target.
21374         (set_section_1): New function.
21375         (symtab_node::set_section): Move here, recurse to aliases.
21376         (verify_symtab): Check for duplicated symtab lists.
21377         * tree-core.h (implicit_section_name_p): Remove.
21378         * tree-vect-data-refs.c: Include varasm.h.
21379         (vect_can_force_dr_alignment_p): Fix conditional on when
21380         decl bints to current definition; use
21381         symtab_get_node (decl)->implicit_section.
21382         * cgraph.c (cgraph_make_node_local_1): Fix section set.
21383         * cgraph.h (struct symtab_node): Add implicit_section.
21384         (set_section): Rename to ...
21385         (set_section_for_node): ... this one.
21386         (set_section): Declare.
21387         * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
21388         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
21389         input_overwrite_node, input_varpool_node): Stream implicit_section.
21390         * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
21391         removal; it will fail in LTO.
21393 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21395         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
21396         Change second alternative type to f_mcr.
21397         * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
21398         and 12th alternatives' types to f_mcr and f_mrc.
21399         (*movdi_aarch64): Same for 12th and 13th alternatives.
21400         (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
21401         (aarch64_movtilow_tilow): Change type to fmov.
21403 2014-06-10  Jiong Wang  <jiong.wang@arm.com>
21405         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
21406         (aarch64_save_or_restore_callee_save_registers): Fix layout.
21408 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21410         * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
21411         New expander.
21412         (aarch64_sqrdmulh_lane<mode>): Likewise.
21413         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
21414         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
21415         (aarch64_sqdmulh_laneq<mode>): New expander.
21416         (aarch64_sqrdmulh_laneq<mode>): Likewise.
21417         (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
21418         (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
21419         (aarch64_sqdmulh_lane<mode>): New expander.
21420         (aarch64_sqrdmulh_lane<mode>): Likewise.
21421         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
21422         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
21423         (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
21424         (aarch64_sqdmlal_laneq<mode>): Likewise.
21425         (aarch64_sqdmlsl_lane<mode>): Likewise.
21426         (aarch64_sqdmlsl_laneq<mode>): Likewise.
21427         (aarch64_sqdmlal2_lane<mode>): Likewise.
21428         (aarch64_sqdmlal2_laneq<mode>): Likewise.
21429         (aarch64_sqdmlsl2_lane<mode>): Likewise.
21430         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
21431         (aarch64_sqdmull_lane<mode>): Likewise.
21432         (aarch64_sqdmull_laneq<mode>): Likewise.
21433         (aarch64_sqdmull2_lane<mode>): Likewise.
21434         (aarch64_sqdmull2_laneq<mode>): Likewise.
21436 2014-06-10  Richard Biener  <rguenther@suse.de>
21438         PR tree-optimization/61438
21439         * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
21440         (eliminate_dom_walker::before_dom_children): Only try to inhibit
21441         insertion of IVs if running PRE.
21442         (eliminate): Adjust.
21443         (pass_pre::execute): Likewise.
21444         (pass_fre::execute): Likewise.
21446 2014-06-10  Richard Biener  <rguenther@suse.de>
21448         PR middle-end/61456
21449         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
21450         Do not use the main variant for the type comparison.
21451         (ncr_compar): Likewise.
21452         (nonoverlapping_component_refs_p): Likewise.
21454 2014-06-10  Marcus Shawcroft  <marcus.shawcroft@arm.com>
21456         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
21457         REG_CFA_RESTORE mode.
21459 2014-06-10  Evgeny Stupachenko  <evstupac@gmail.com>
21461         * config/i386/i386.c (expand_vec_perm_pblendv): New.
21462         * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
21463         expand_vec_perm_pblendv.
21465 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21467         * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
21468         available.
21469         Simplify description of __crc32d and __crc32cd intrinsics.
21470         * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
21471         availability.
21473 2014-06-10  Thomas Schwinge  <thomas@codesourcery.com>
21475         PR lto/61334
21476         * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
21477         * config.in: Regenerate.
21478         * configure: Likewise.
21480 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
21482         * ipa-reference.c (is_proper_for_analysis): Exclude addressable
21483         and public vars.
21484         (intersect_static_var_sets): Remove.
21485         (propagate): Do not prune local statics.
21487 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
21489         PR fortran/60928
21490         * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
21491         Set lastprivate_firstprivate even if omp_private_outer_ref
21492         langhook returns true.
21493         <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
21494         langhook, call unshare_expr on new_var and call
21495         build_outer_var_ref to get the last argument.
21497 2014-06-10  Marek Polacek  <polacek@redhat.com>
21499         PR c/60988
21500         * doc/extend.texi: Add cindex for transparent_union.
21502 2014-06-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
21504         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
21505         init_symbolic_number ().
21507 2014-05-18  John David Anglin  <danglin@gcc.gnu.org>
21509         PR middle-end/61141
21510         * emit-rtl.c (reset_all_used_flags): In a sequence, check that
21511         XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
21512         (verify_rtl_sharing): Likewise.
21514 2014-06-09  Marc Glisse  <marc.glisse@inria.fr>
21516         PR c++/54442
21517         * tree.c (build_qualified_type): Use a canonical type for
21518         TYPE_CANONICAL.
21520 2014-06-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21522         * config/arm/arm-modes.def: Remove XFmode.
21524 2014-06-09  Alan Lawrence  <alan.lawrence@arm.com>
21526         PR target/61062
21527         * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
21528         vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
21529         vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
21530         vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
21531         vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
21532         vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
21533         vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
21534         vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
21535         vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
21537 2014-06-09  Jan Hubicka  <hubicka@ucw.cz>
21539         * tree-core.h (tree_decl_with_vis): Remove section_name.
21541 2014-06-09  Kito Cheng  <kito@0xlab.org>
21543         * ira.c (ira): Don't call init_caller_save if LRA enabled
21544         since LRA use its own infrastructure to handle that.
21546 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
21548         * symtab.c (dump_symtab_base): Update dumping.
21549         (symtab_make_decl_local): Clear only DECL_COMDAT.
21550         * tree-vect-data-refs.c (Check that variable is static before
21551         tampering with sections.
21552         * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
21553         (cgraph_create_virtual_clone): Likewise.
21554         * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
21555         (decl_section_name, set_decl_section_name): New accessors.
21556         (find_decls_types_r): Do not walk section name
21557         * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
21558         (decl_comdat_group, decl_comdat_group_id): Constify.
21559         (decl_section_name, set_decl_section_name): Update.
21560         * varpool.c (varpool_finalize_named_section_flags): Use get_section.
21561         * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
21562         (cgraph_make_node_local_1): Clear section and comdat group.
21563         * cgraph.h (set_comdat_group): Sanity check.
21564         (get_section, set_section): New.
21565         * ipa-comdats.c (ipa_comdats): Use get_section.
21566         * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
21567         * lto-streamer-out.c: Do not follow section names.
21568         * c-family/c-common.c (handle_section_attribute): Update.
21569         * lto-cgraph.c (lto_output_node): Output section.
21570         (lto_output_varpool_node): Likewise.
21571         (read_comdat_group): Rename to ...
21572         (read_identifier): ... this one.
21573         (read_string_cst): New function.
21574         (input_node, input_varpool_node): Input section names.
21575         * tree-emutls.c (get_emutls_init_templ_addr): Update.
21576         (new_emutls_decl): Update.
21577         (secname_for_decl): Check section names only of static vars.
21578         * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
21579         * config/i386/winnt.c (i386_pe_unique_section): Likewise.
21580         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
21581         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
21582         * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
21583         * config/mcore/mcore.c (mcore_unique_section): Likewise.
21584         * config/mips/mips.c (mips16_build_function_stub): Likewise.
21585         * config/v850/v850.c (v850_insert_attributes): Likewise.
21586         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
21587         Likewise.
21588         (h8300_handle_tiny_data_attribute): Likewise.
21589         * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
21590         (bfin_handle_l2_attribute): Likewise.
21592 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
21594         * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
21595         remove static initializer.
21597 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
21599         * varasm.c (use_blocks_for_decl_p): Check symbol table
21600         instead of alias attribute.
21601         (place_block_symbol): Recurse on aliases.
21603 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
21605         * ipa-visibility.c: Include varasm.h
21606         (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
21608 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
21610         * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
21611         outputting aliases.
21613 2014-06-07  Steven Bosscher  <steven@gcc.gnu.org>
21615         * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
21616         from test_insn into GGC space escape via SET_SRC.
21618 2014-06-07  Eric Botcazou  <ebotcazou@adacore.com>
21620         * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
21621         call statement, if any.
21622         (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
21623         statements, if any.  Tidy up.
21625 2014-06-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
21627         PR target/61431
21628         * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
21629         iterators, VSX_D that handles 64-bit types, and VSX_LE that
21630         handles swapping the two 64-bit double words on little endian
21631         systems.  Include V1TImode and optionally TImode in VSX_LE so that
21632         these types are properly swapped.  Change all of the insns and
21633         splits that do the 64-bit swaps to use VSX_LE.
21634         (vsx_le_perm_load_<mode>): Likewise.
21635         (vsx_le_perm_store_<mode>): Likewise.
21636         (splitters for little endian memory operations): Likewise.
21637         (vsx_xxpermdi2_le_<mode>): Likewise.
21638         (vsx_lxvd2x2_le_<mode>): Likewise.
21639         (vsx_stxvd2x2_le_<mode>): Likewise.
21641 2014-06-06  Uros Bizjak  <ubizjak@gmail.com>
21643         PR target/61423
21644         * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
21645         define_insn_and_split pattern, merged from *floatunssi<mode>2_1
21646         and corresponding splitters.  Zero extend general register
21647         or memory input operand to XMM temporary.  Enable for
21648         TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
21649         (floatunssi<mode>2): Update expander predicate.
21651 2014-06-06  Vladimir Makarov  <vmakarov@redhat.com>
21653         PR rtl-optimization/61325
21654         * lra-constraints.c (process_address_1): Check scale equal to one
21655         to prevent transformation: base + scale * index => base + new_reg.
21657 2014-06-06  Richard Biener  <rguenther@suse.de>
21659         PR tree-optimization/59299
21660         * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
21661         a def operand.
21662         (nearest_common_dominator_of_uses): Likewise.
21663         (statement_sink_location): Adjust.  Support sinking loads.
21665 2014-06-06  Martin Jambor  <mjambor@suse.cz>
21667         * ipa-prop.c (get_place_in_agg_contents_list): New function.
21668         (build_agg_jump_func_from_list): Likewise.
21669         (determine_known_aggregate_parts): Renamed to
21670         determine_locally_known_aggregate_parts.  Moved some functionality
21671         to the two functions above, removed bound checks.
21673 2014-06-06  James Greenhalgh  <james.greenhalgh@arm.com>
21675         * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
21676         * config/aarch64/aarch64.c (aarch64_move_pointer): New.
21677         (aarch64_progress_pointer): Likewise.
21678         (aarch64_copy_one_part_and_move_pointers): Likewise.
21679         (aarch64_expand_movmen): Likewise.
21680         * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
21681         * config/aarch64/aarch64.md (movmem<mode>): New.
21683 2014-06-06  Bingfeng Mei  <bmei@broadcom.com>
21685         * targhooks.c (default_add_stmt_cost): Call target specific
21686         hook instead of default one.
21688 2014-06-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
21690         * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
21691         endianness instead of host endianness.
21692         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
21693         comments.
21695 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
21697         PR debug/53927
21698         * function.c (instantiate_decls): Process the saved static chain.
21699         (expand_function_start): If not optimizing, save the static chain
21700         onto the stack.
21701         * tree-nested.c (convert_all_function_calls): Always create the static
21702         chain for nested functions if not optimizing.
21704 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
21706         * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
21708 2014-06-06  Richard Biener  <rguenther@suse.de>
21710         * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
21711         (construct_init_block): Likewise.
21712         (construct_exit_block): Likewise.
21713         (pass_expand::execute): Likewise.
21714         * graphite.c (graphite_transforms): Replace check for current_loops
21715         with a check for > 1 loops.
21716         (pass_graphite_transforms::execute): Adjust.
21717         * ipa-split.c (split_function): Remove check for current_loops.
21718         * omp-low.c (expand_parallel_call): Likewise.
21719         (expand_omp_for_init_counts): Likewise.
21720         (extract_omp_for_update_vars): Likewise.
21721         (expand_omp_for_generic): Likewise.
21722         (expand_omp_sections): Likewise.
21723         (expand_omp_target): Likewise.
21724         * tracer.c (tail_duplicate): Likewise.
21725         (pass_tracer::execute): Likewise.
21726         * trans-mem.c (expand_transaction): Likewise.
21727         * tree-complex.c (expand_complex_div_wide): Likewise.
21728         * tree-eh.c (lower_resx): Likewise.
21729         (cleanup_empty_eh_merge_phis): Likewise.
21730         * tree-predcom.c (run_tree_predictive_commoning): Replace check for
21731         current_loops with a check for > 1 loops.
21732         (pass_predcom::execute): Adjust.
21733         * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
21734         * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
21735         * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
21736         * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
21737         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
21738         * tree-switch-conversion.c (process_switch): Likewise.
21739         * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
21740         * tree-vrp.c (vrp_visit_phi_node): Likewise.
21741         (execute_vrp): Likewise.
21742         * ubsan.c (ubsan_expand_null_ifn): Likewise.
21744 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
21746         * rtl.h (insn_location): Declare.
21747         * cfgcleanup.c (try_forward_edges): Compare the locus of locations
21748         with UNKNOWN_LOCATION.
21749         * emit-rtl.c (insn_location): New function.
21750         * final.c (notice_source_line): Check that the instruction has a
21751         location before retrieving it and use insn_location.
21752         * modulo-sched.c (loop_single_full_bb_p): Likewise.
21753         * print-rtl.c (print_rtx): Likewise.
21755 2014-06-06  Richard Biener  <rguenther@suse.de>
21757         * passes.def: Move 2nd VRP pass before phi-only-cprop.
21759 2014-06-06  Christian Bruel  <christian.bruel@st.com>
21761         PR tree-optimization/43934
21762         * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
21763         cost.
21765 2014-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
21767         * ira-lives.c (single_reg_class): Add missing break.  Explicitly
21768         return NO_REGS for extra address and memory constraints.  Handle
21769         operands that match (or are equivalent to something that matches)
21770         extra constant constraints.  Ignore other non-register operands.
21772 2014-06-06  Alan Modra  <amodra@gmail.com>
21774         PR target/61300
21775         * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
21776         * doc/tm.texi: Regenerate.
21777         * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
21778         Use throughout in place of REG_PARM_STACK_SPACE.
21779         * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
21780         "incoming" param.  Pass to rs6000_function_parms_need_stack.
21781         (rs6000_function_parms_need_stack): Add "incoming" param, ignore
21782         prototype_p when incoming.  Use function decl when incoming
21783         to handle K&R style functions.
21784         * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
21785         (INCOMING_REG_PARM_STACK_SPACE): Define.
21787 2014-06-05  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
21789         PR target/52472
21790         * cfgexpand.c (expand_debug_expr): Use address space of nested
21791         TREE_TYPE for ADDR_EXPR and MEM_REF.
21793 2014-06-05  Jeff Law  <law@redhat.com>
21795         PR tree-optimization/61289
21796         * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
21797         DST_MAP parameters.   Invalidate by walking all the SSA_NAME_VALUES
21798         looking for those which match LHS.  All callers changed.
21799         (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
21800         parameters and code which manipulated them.  All callers changed.
21801         (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
21802         and DST_MAP parameters.  Simplify invalidation code by just calling
21803         invalidate_equivalences.  All callers changed.
21804         (thread_across_edge): Simplify now that we don't need to maintain
21805         the map of equivalences to invalidate.
21807 2014-06-05  Kai Tietz  <ktietz@redhat.com>
21808             Richard Henderson  <rth@redhat.com>
21810         PR target/46219
21811         * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
21812         checking for !TARGET_X32.
21813         * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
21814         (sibcall_intern): New define_insn, plus required peepholes.
21815         (sibcall_pop_intern): Likewise.
21816         (sibcall_value_intern): Likewise.
21817         (sibcall_value_pop_intern): Likewise.
21819 2014-06-05  Ilya Enkovich  <ilya.enkovich@intel.com>
21821         * tree-inline.c (tree_function_versioning): Check DF info existence
21822         before accessing it.
21824 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
21826         * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
21827         frame_size.
21828         * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
21829         aarch64_frame hard_fp_offset and frame_size.
21830         (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
21831         frame_size; remove original_frame_size.
21832         (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
21833         (aarch64_initial_elimination_offset): Remove frame_size and
21834         offset.  Use aarch64_frame frame_size.
21836 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
21837             Jiong Wang  <jiong.wang@arm.com>
21838             Renlin  <renlin.li@arm.com>
21840         * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
21841         initialization of R30 offset.  Update offset.  Iterate core
21842         regisers upto X30.  Remove X29, X30 specific code.
21844 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
21845             Jiong Wang  <jiong.wang@arm.com>
21847         * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
21848         (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
21849         (aarch64_register_saved_on_entry): Adjust test.
21851 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
21853         * config/aarch64/aarch64.h (machine_function): Move
21854         saved_varargs_size from here...
21855         (aarch64_frame): ... to here.
21857         * config/aarch64/aarch64.c (aarch64_expand_prologue)
21858         (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
21859         (aarch64_initial_elimination_offset)
21860         (aarch64_setup_incoming_varargs): Adjust location of
21861         saved_varargs_size.
21863 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
21865         * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
21866         layout comment.
21868 2014-06-05  Jaydeep Patil  <Jaydeep.Patil@imgtec.com>
21869             Prachi Godbole  <Prachi.Godbole@imgtec.com>
21871         * config/mips/mips-cpus.def: Add definition for p5600.  Updated
21872         mips32r5 entry to use PROCESSOR_P5600.
21873         * config/mips/mips-tables.opt: Regenerate.
21874         * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
21875         * config/mips/mips.c (mips_fmadd_bypass): New function.
21876         (mips_rtx_cost_data): Add costs for p5600.
21877         (mips_issue_rate): Add support for p5600.
21878         (mips_multipass_dfa_lookahead): Likewise.
21879         * config/mips/mips.h (TUNE_P5600): New define.
21880         (TUNE_MACC_CHAINS): Add TUNE_P5600.
21881         (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
21882         * config/mips/mips.md: Include p5600.md.
21883         (processor): Add p5600.
21884         * config/mips/p5600.md: New file.
21886 2014-06-05  Evgeny Stupachenko  <evstupac@gmail.com>
21888         * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
21889         * config/i386/predicates.md (palignr_operand): New.
21890         Indicates if permutation is suitable for palignr instruction.
21892 2014-06-05  Yuri Rumyantsev  <ysrumyan@gmail.com>
21894         PR tree-optimization/61319
21895         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
21896         stmt belongs to loop.
21898 2014-06-05  Richard Biener  <rguenther@suse.de>
21900         * gimplify.c (create_tmp_from_val): Remove is_formal parameter
21901         and set DECL_GIMPLE_REG_P unconditionally if appropriate.
21902         (lookup_tmp_var): Adjust.
21903         (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
21905 2014-06-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21907         * config/arm/arm.md (enabled): Disable opt_enabled attribute.
21909 2014-06-05  Marek Polacek  <polacek@redhat.com>
21911         PR c/49706
21912         * doc/invoke.texi: Document -Wlogical-not-parentheses.
21914 2014-06-04  Tom de Vries  <tom@codesourcery.com>
21916         * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
21917         CONST_INT.
21919 2014-06-04  Marc Glisse  <marc.glisse@inria.fr>
21921         PR tree-optimization/61385
21922         * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
21924 2014-06-04  Bernd Schmidt  <bernds@codesourcery.com>
21926         * lto-wrapper.c (fatal, fatal_perror): Remove functions.  All callers
21927         changed to use fatal_error.
21928         (main): Ensure lto_wrapper_cleanup is run atexit.
21930 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
21932         * lra-constraints.c (valid_address_p): Move earlier in file.
21933         (address_eliminator): New structure.
21934         (satisfies_memory_constraint_p): New function.
21935         (satisfies_address_constraint_p): Likewise.
21936         (process_alt_operands, process_address, curr_insn_transform): Use them.
21938 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
21940         * lra-int.h (lra_static_insn_data): Make operand_alternative a
21941         const pointer.
21942         (target_lra_int, default_target_lra_int, this_target_lra_int)
21943         (op_alt_data): Delete.
21944         * lra.h (lra_init): Delete.
21945         * lra.c (default_target_lra_int, this_target_lra_int): Delete.
21946         (init_insn_code_data_once): Remove op_alt_data handling.
21947         (finish_insn_code_data_once): Likewise.
21948         (init_op_alt_data): Delete.
21949         (get_static_insn_data): Initialize operand_alternative to null.
21950         (free_insn_recog_data): Cast operand_alternative before freeing it.
21951         (setup_operand_alternative): Take the operand_alternative as
21952         parameter and assume it isn't already cached in the static
21953         insn data.
21954         (lra_set_insn_recog_data): Update accordingly.
21955         (lra_init): Delete.
21956         * ira.c (ira_init): Don't call lra_init.
21957         * target-globals.h (this_target_lra_int): Declare.
21958         (target_globals): Remove lra_int.
21959         (restore_target_globals): Update accordingly.
21960         * target-globals.c: Don't include lra-int.h.
21961         (default_target_globals, save_target_globals): Remove lra_int.
21963 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
21965         * recog.h (operand_alternative): Convert reg_class, reject,
21966         matched and matches into bitfields.
21967         (preprocess_constraints): New overload.
21968         (preprocess_insn_constraints): New function.
21969         (preprocess_constraints): Take the insn as parameter.
21970         (recog_op_alt): Change into a pointer.
21971         (target_recog): Add x_op_alt.
21972         * recog.c (asm_op_alt): New variable.
21973         (recog_op_alt): Change into a pointer.
21974         (preprocess_constraints): New overload, replacing the old function
21975         definition with one that doesn't use global state.
21976         (preprocess_insn_constraints): New function.
21977         (preprocess_constraints): Use them.  Take the insn as parameter.
21978         Use asm_op_alt for asms.
21979         (recog_init): Free existing x_op_alt entries.
21980         * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
21981         pointer const.
21982         (make_early_clobber_and_input_conflicts): Likewise.
21983         (process_bb_node_lives): Pass the insn to process_constraints.
21984         * reg-stack.c (check_asm_stack_operands): Likewise.
21985         (subst_asm_stack_regs): Likewise.
21986         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
21987         * regrename.c (build_def_use): Likewise.
21988         * sched-deps.c (sched_analyze_insn): Likewise.
21989         * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
21990         * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
21991         (note_invalid_constants): Likewise.
21992         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
21993         (ix86_legitimate_combined_insn): Make operand_alternative pointer
21994         const.
21996 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
21998         * recog.c (preprocess_constraints): Don't skip disabled alternatives.
21999         * ira-lives.c (check_and_make_def_conflict): Check for disabled
22000         alternatives.
22001         (make_early_clobber_and_input_conflicts): Likewise.
22002         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
22004 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
22006         * recog.h (alternative_class): New function.
22007         (which_op_alt): Return a const recog_op_alt.
22008         * reg-stack.c (check_asm_stack_operands): Update type accordingly.
22009         (subst_asm_stack_regs): Likewise.
22010         * config/arm/arm.c (note_invalid_constants): Likewise.
22011         * regcprop.c (copyprop_hardreg_forward_1): Likewise.  Don't modify
22012         the operand_alternative; use alternative class instead.
22013         * sel-sched.c (get_reg_class): Likewise.
22014         * regrename.c (build_def_use): Likewise.
22015         (hide_operands, restore_operands, record_out_operands): Update type
22016         accordingly.
22018 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
22020         * recog.h (recog_op_alt): Convert to a flat array.
22021         (which_op_alt): New function.
22022         * recog.c (recog_op_alt): Convert to a flat array.
22023         (preprocess_constraints): Update accordingly, grouping all
22024         operands of the same alternative together, rather than the
22025         other way around.
22026         * ira-lives.c (check_and_make_def_conflict): Likewise.
22027         (make_early_clobber_and_input_conflicts): Likewise.
22028         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
22029         * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
22030         (subst_asm_stack_regs): Likewise.
22031         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
22032         * regrename.c (hide_operands, record_out_operands): Likewise.
22033         (build_def_use): Likewise.
22034         * sel-sched.c (get_reg_class): Likewise.
22035         * config/arm/arm.c (note_invalid_constants): Likewise.
22037 2014-06-04  Jason Merrill  <jason@redhat.com>
22039         PR c++/51253
22040         PR c++/61382
22041         * gimplify.c (gimplify_arg): Non-static.
22042         * gimplify.h: Declare it.
22044 2014-06-04  Richard Biener  <rguenther@suse.de>
22046         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
22047         TREE_PUBLIC and DECL_EXTERNAL decls.
22049 2014-06-04  Matthew Fortune  <matthew.fortune@imgtec.com>
22051         * regcprop.c (copyprop_hardreg_forward_1): Account for
22052         HARD_REGNO_CALL_PART_CLOBBERED.
22054 2014-06-04  Richard Biener  <rguenther@suse.de>
22056         * configure.ac: Check whether the underlying type of int64_t
22057         is long or long long.
22058         * configure: Regenerate.
22059         * config.in: Likewise.
22060         * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
22061         (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
22063 2014-06-04  Richard Biener  <rguenther@suse.de>
22065         PR tree-optimization/60098
22066         * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
22067         we hit a kill.
22068         (dse_optimize_stmt): Simplify, now that we found a kill
22069         earlier.
22071 2014-06-04  Richard Biener  <rguenther@suse.de>
22073         * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
22074         of accesses with non-invariant address.
22076 2014-06-04  Martin Liska  <mliska@suse.cz>
22078         * cgraph.h (cgraph_make_wrapper): New function introduced.
22079         * cgraphunit.c (cgraph_make_wrapper): The function implementation.
22080         * ipa-inline.h (inline_analyze_function): The function is global.
22081         * ipa-inline-analysis.c (inline_analyze_function): Likewise.
22083 2014-06-04  Martin Liska  <mliska@suse.cz>
22085         * tree.h (private_lookup_attribute_starting): New function.
22086         (lookup_attribute_starting): Likewise.
22087         * tree.c (private_lookup_attribute_starting): Likewise.
22089 2014-06-04  Martin Liska  <mliska@suse.cz>
22091         * cgraph.h (expand_thunk): New argument added.
22092         (address_taken_from_non_vtable_p): New global function.
22093         * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
22094         * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
22095         * cgraphunit.c (analyze_function): Likewise.
22096         (assemble_thunks_and_aliases): Argument added to call.
22097         (expand_thunk): New argument forces to produce GIMPLE thunk.
22099 2014-06-04  Martin Liska  <mliska@suse.cz>
22101         * coverage.h (coverage_compute_cfg_checksum): Argument added.
22102         * coverage.c (coverage_compute_cfg_checksum): Likewise.
22103         * profile.c (branch_prob): Likewise.
22105 2014-06-04  Martin Jambor  <mjambor@suse.cz>
22107         PR ipa/61340
22108         * ipa-pure-const.c (propagate_pure_const): Add unreachable default
22109         handler for switch on an ipa_ref_use enum.
22110         * ipa-reference.c (analyze_function): Likewise.
22112 2014-06-04  Kai Tietz  <ktietz@redhat.com>
22114         * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
22115         from old call-instruction.
22117 2014-06-04  Bin Cheng  <bin.cheng@arm.com>
22119         * config/aarch64/aarch64.c (aarch64_classify_address)
22120         (aarch64_legitimize_reload_address): Support full addressing modes
22121         for vector modes.
22122         * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
22123         (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
22125 2014-06-03  Andrew Pinski  <apinski@cavium.com>
22127         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
22128         for OP0.
22130 2014-06-03  Andrew Pinski  <apinski@cavium.com>
22132         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
22133         (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
22135 2014-06-03  Kai Tietz  <ktietz@redhat.com>
22137         * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
22138         for 64-bit ms-abi.
22140 2014-06-03  Dehao Chen  <dehao@google.com>
22142         * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
22143         the same loop.
22145 2014-06-03  Marek Polacek  <polacek@redhat.com>
22147         PR c/60439
22148         * doc/invoke.texi: Document -Wswitch-bool.
22149         * function.c (stack_protect_epilogue): Cast controlling expression of
22150         the switch to int.
22151         * gengtype.c (walk_type): Generate switch expression with its
22152         controlling expression cast to int.
22154 2014-06-03  Vishnu K S  <Vishnu.k_s@atmel.com>
22156         * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
22157         and attiny841.
22158         * config/avr/avr-tables.opt: Regenerate.
22159         * config/avr/t-multilib: Regenerate.
22160         * doc/avr-mmcu.texi: Regenerate.
22162 2014-06-03  Vishnu K S  <vishnu.k_s@atmel.com>
22163             Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
22165         * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
22166         (ata6617c, ata664251): Add new avr35 devices.
22167         (ata6612c): Add new avr4 device.
22168         (ata6613c, ata6614q): Add new avr5 devices.
22169         * config/avr/avr-tables.opt: Regenerate.
22170         * config/avr/t-multilib: Regenerate.
22171         * doc/avr-mmcu.texi: Regenerate.
22173 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
22175         * gcc/config/aarch64/aarch64-builtins.c
22176         (aarch64_types_binop_ssu_qualifiers): New static data.
22177         (TYPES_BINOP_SSU): Define.
22178         * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
22179         urshr_n, ushll_n): Use appropriate unsigned qualifiers.
22180         * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
22181         vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
22182         vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
22183         vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
22184         vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
22185         vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
22186         vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
22187         suffix to builtin function name, remove cast.
22188         (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
22189         vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
22190         vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
22192 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
22194         * gcc/config/aarch64/aarch64-builtins.c
22195         (aarch64_types_binop_uus_qualifiers,
22196         aarch64_types_shift_to_unsigned_qualifiers,
22197         aarch64_types_unsigned_shiftacc_qualifiers): Define.
22198         * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
22199         uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
22200         sqshlu_n, uqshl_n): Update qualifiers.
22201         * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
22202         vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
22203         vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
22204         vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
22205         vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
22206         vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
22207         vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
22208         vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
22209         vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
22210         vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
22211         vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
22212         vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
22213         vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
22214         vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
22215         vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
22216         vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
22217         vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
22218         vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
22219         vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
22220         vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
22221         vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
22222         vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
22223         vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
22224         vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
22225         vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
22226         vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
22227         vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
22229 2014-06-03  Teresa Johnson  <tejohnson@google.com>
22231         * tree-sra.c (modify_function): Record caller nodes after rebuild.
22233 2014-06-02  Jason Merrill  <jason@redhat.com>
22235         PR c++/61020
22236         * varpool.c (ctor_for_folding): Handle uninitialized vtables.
22238 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
22240         * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
22241         location == 0.
22243 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
22245         * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
22246         New pattern.
22247         * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
22248         (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
22249         * config/aarch64/iterators.md (REVERSE): New iterator.
22250         (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
22251         (rev_op): New int_attribute.
22252         * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
22253         vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
22254         vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
22255         vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
22256         vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
22257         vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
22258         vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
22259         Replace temporary __asm__ with __builtin_shuffle.
22261 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
22263         * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
22264         mips64r5.
22265         * config/mips/mips-tables.opt: Regenerate.
22266         * config/mips/mips.c (mips_compute_frame_info): Changed if statement
22267         to use mips_isa_rev rather than ISA_MIPS32R2.
22268         * config/mips/mips.h (ISA_MIPS32R3): New define.
22269         (ISA_MIPS32R5): New define.
22270         (ISA_MIPS64R3): New define.
22271         (ISA_MIPS64R5): New define.
22272         (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
22273         ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
22274         (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
22275         and mips64r5.
22276         (MIPS_ISA_SYNCI_SPEC): Likewise.
22277         (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
22278         (LINK_SPEC): Added mips32r3 and mips32r5.
22279         * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
22280         to mips32r2; and mips64r3 and mips64r5 to mips64r2.
22281         * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
22282         * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
22283         * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
22284         * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
22285         * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
22287 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
22289         * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
22290         options.
22291         * config/mips/mips.opt (mxpa): New option.
22292         * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
22293         assembler.
22295 2014-06-03  Martin Jambor  <mjambor@suse.cz>
22297         PR ipa/61160
22298         * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
22299         thunks.
22301 2014-06-03  Thomas Preud'homme  <thomas.preudhomme@arm.com>
22303         PR tree-optimization/61328
22304         * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
22305         initialization from find_bswap_or_nop_1.
22306         (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
22307         in source_expr2 before using the size value the function sets. Also
22308         make use of init_symbolic_number () in both the old place and
22309         find_bswap_or_nop_load () to avoid reading uninitialized memory when
22310         doing recursion in the GIMPLE_BINARY_RHS case.
22312 2014-06-03  Richard Biener  <rguenther@suse.de>
22314         PR tree-optimization/61383
22315         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
22316         stmts can't trap.
22318 2014-06-03  Richard Sandiford  <rdsandiford@googlemail.com>
22320         * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
22321         (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
22322         (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
22323         (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
22324         in this file.
22325         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
22326         (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
22327         * system.h: ...here and make it unconditional.
22328         * target.def (conditional_register_usage): Mention
22329         define_register_constraint instead of old-style constraint macros.
22330         * doc/tm.texi.in: Remove documentation for old-style constraint macros.
22331         * doc/tm.texi: Regenerate.
22332         * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
22333         protected by !USE_MD_CONSTRAINTS.
22334         * config/frv/frv.md: Remove quote from old version of documentation.
22335         * config/frv/frv.c (frv_conditional_register_usage): Likewise.
22336         * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
22337         CONST_DOUBLE_OK_FOR_LETTER.
22338         * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
22340 2014-06-02  Andrew Pinski  <apinski@cavium.com>
22342         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
22343         /lib/ld-linux32-aarch64.so.1 is used for ILP32.
22344         (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
22345         file whose name depends on -mabi= and -mbig-endian.
22346         * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
22347         Handle LP64 better and handle ilp32 too.
22348         (MULTILIB_OPTIONS): Delete.
22349         (MULTILIB_DIRNAMES): Delete.
22351 2014-06-02  Andrew MacLeod  <amacleod@redhat.com>
22353         * expr.h: Remove prototypes of functions defined in builtins.c.
22354         * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
22355         Remove prototypes of functions defined in builtins.c.
22356         * builtins.h: Update prototype list to include all exported functions.
22357         * builtins.c: (default_libc_has_function, gnu_libc_has_function,
22358         no_c99_libc_has_function): Move to targhooks.c
22359         (build_string_literal, build_call_expr_loc_array,
22360         build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
22361         to tree.c.
22362         (expand_builtin_object_size, fold_builtin_object_size): Make static.
22363         * targhooks.c (default_libc_has_function, gnu_libc_has_function,
22364         no_c99_libc_has_function): Relocate from builtins.c.
22365         * tree.c: Include builtins.h.
22366         (build_call_expr_loc_array, build_call_expr_loc_vec,
22367         build_call_expr_loc, build_call_expr, build_string_literal): Relocate
22368         from builtins.c.
22369         * fold-const.h (fold_fma): Move prototype to builtins.h.
22370         * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
22371         * asan.c: Include builtins.h.
22372         * cfgexpand.c: Likewise.
22373         * convert.c: Likewise.
22374         * emit-rtl.c: Likewise.
22375         * except.c: Likewise.
22376         * expr.c: Likewise.
22377         * fold-const.c: Likewise.
22378         * gimple-fold.c: Likewise.
22379         * gimple-ssa-strength-reduction.c: Likewise.
22380         * gimplify.c: Likewise.
22381         * ipa-inline.c: Likewise.
22382         * ipa-prop.c: Likewise.
22383         * lto-streamer-out.c: Likewise.
22384         * stmt.c: Likewise.
22385         * tree-inline.c: Likewise.
22386         * tree-object-size.c: Likewise.
22387         * tree-sra.c: Likewise.
22388         * tree-ssa-ccp.c: Likewise.
22389         * tree-ssa-forwprop.c: Likewise.
22390         * tree-ssa-loop-ivcanon.c: Likewise.
22391         * tree-ssa-loop-ivopts.c: Likewise.
22392         * tree-ssa-math-opts.c: Likewise.
22393         * tree-ssa-reassoc.c: Likewise.
22394         * tree-ssa-threadedge.c: Likewise.
22395         * tree-streamer-in.c: Likewise.
22396         * tree-vect-data-refs.c: Likewise.
22397         * tree-vect-patterns.c: Likewise.
22398         * tree-vect-stmts.c: Likewise.
22399         * config/aarch64/aarch64.c: Likewise.
22400         * config/alpha/alpha.c: Likewise.
22401         * config/arc/arc.c: Likewise.
22402         * config/arm/arm.c: Likewise.
22403         * config/avr/avr.c: Likewise.
22404         * config/bfin/bfin.c: Likewise.
22405         * config/c6x/c6x.c: Likewise.
22406         * config/cr16/cr16.c: Likewise.
22407         * config/cris/cris.c: Likewise.
22408         * config/epiphany/epiphany.c: Likewise.
22409         * config/fr30/fr30.c: Likewise.
22410         * config/frv/frv.c: Likewise.
22411         * config/h8300/h8300.c: Likewise.
22412         * config/i386/i386.c: Likewise.
22413         * config/i386/winnt.c: Likewise.
22414         * config/ia64/ia64.c: Likewise.
22415         * config/iq2000/iq2000.c: Likewise.
22416         * config/lm32/lm32.c: Likewise.
22417         * config/m32c/m32c.c: Likewise.
22418         * config/m32r/m32r.c: Likewise.
22419         * config/m68k/m68k.c: Likewise.
22420         * config/mcore/mcore.c: Likewise.
22421         * config/mep/mep.c: Likewise.
22422         * config/microblaze/microblaze.c: Likewise.
22423         * config/mips/mips.c: Likewise.
22424         * config/mmix/mmix.c: Likewise.
22425         * config/mn10300/mn10300.c: Likewise.
22426         * config/moxie/moxie.c: Likewise.
22427         * config/msp430/msp430.c: Likewise.
22428         * config/nds32/nds32.c: Likewise.
22429         * config/pa/pa.c: Likewise.
22430         * config/pdp11/pdp11.c: Likewise.
22431         * config/picochip/picochip.c: Likewise.
22432         * config/rl78/rl78.c: Likewise.
22433         * config/rs6000/rs6000.c: Likewise.
22434         * config/rx/rx.c: Likewise.
22435         * config/s390/s390.c: Likewise.
22436         * config/score/score.c: Likewise.
22437         * config/sh/sh.c: Likewise.
22438         * config/sparc/sparc.c: Likewise.
22439         * config/spu/spu.c: Likewise.
22440         * config/stormy16/stormy16.c: Likewise.
22441         * config/tilegx/tilegx.c: Likewise.
22442         * config/tilepro/tilepro.c: Likewise.
22443         * config/v850/v850.c: Likewise.
22444         * config/vax/vax.c: Likewise.
22445         * config/xtensa/xtensa.c: Likewise.
22447 2014-06-02  Jeff Law  <law@redhat.com>
22449         PR rtl-optimization/61094
22450         * ree.c (combine_reaching_defs): Do not reextend an insn if it
22451         was marked as do_no_reextend.  If a copy is needed to eliminate
22452         an extension, then mark it as do_not_reextend.
22454 2014-06-02  Marcus Shawcroft  <marcus.shawcroft@arm.com>
22456         * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
22458 2014-06-02  Richard Henderson  <rth@redhat.com>
22460         PR target/61336
22461         * config/alpha/alpha.c (print_operand_address): Allow symbolic
22462         addresses inside asms.  Use output_operand_lossage instead of
22463         gcc_unreachable.
22465 2014-06-02  Uros Bizjak  <ubizjak@gmail.com>
22467         PR target/61239
22468         * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
22469         GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
22471 2014-06-02  Tom de Vries  <tom@codesourcery.com>
22473         * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
22474         case that x has VOIDmode.
22476 2014-06-02  Bernd Schmidt  <bernds@codesourcery.com>
22478         * varasm.c (copy_constant): Delete function.
22479         (build_constant_desc): Don't call it.
22481 2014-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22483         PR target/61154
22484         * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
22485         * config/arm/arm.md (mov64 splitter): Replace const_double_operand
22486         with immediate_operand.
22488 2014-06-02  Andreas Schwab  <schwab@suse.de>
22490         * config/ia64/ia64.c
22491         (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
22492         pending_data_specs first.
22494 2014-06-02  Richard Biener  <rguenther@suse.de>
22496         PR tree-optimization/61378
22497         * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
22498         valueized_anything.
22500 2014-06-01  Uros Bizjak  <ubizjak@gmail.com>
22502         * config/i386/constraints.md (Bw): Rename from 'w'.
22503         (Bz): Rename from 'z'.
22504         * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
22506 2014-06-01  Kai Tietz  <ktietz@redhat.com>
22508         PR target/61377
22509         * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
22510         * config/i386/i386.md (sibcall_insn_operand): Use Bs
22511         instead of m constraint.
22513 2014-05-31  Andreas Schwab  <schwab@linux-m68k.org>
22515         * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
22516         a separate alternative where the scratch operand 2 is marked as
22517         early clobber.
22519 2014-05-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
22521         * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
22522         (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
22523         (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
22524         and __builtins_arm_get_fpscr.
22525         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
22526         __builtins_arm_get_fpscr.
22527         (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
22528         __builtins_arm_ldfpscr.
22529         (arm_atomic_assign_expand_fenv): New function.
22530         * config/arm/vfp.md (set_fpscr): New pattern.
22531         (get_fpscr) : Likewise.
22532         * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
22533         VUNSPEC_SET_FPSCR.
22534         * doc/extend.texi (AARCH64 Built-in Functions) : Document
22535         __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
22537 2014-05-30  Jakub Jelinek  <jakub@redhat.com>
22539         * asan.c (report_error_func): Add SLOW_P argument, use
22540         BUILT_IN_ASAN_*_N if set.
22541         (build_check_stmt): Likewise.
22542         (instrument_derefs): If T has insufficient alignment,
22543         force same handling as for odd sizes.
22545         * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
22546         BUILT_IN_ASAN_REPORT_STORE_N): New.
22547         * asan.c (struct asan_mem_ref): Change access_size type to
22548         HOST_WIDE_INT.
22549         (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
22550         update_mem_ref_hash_table): Likewise.
22551         (asan_mem_ref_hasher::hash): Hash in a HWI.
22552         (report_error_func): Change size_in_bytes argument to HWI.
22553         Use *_N builtins if size_in_bytes is larger than 16 or not power of
22554         two.
22555         (build_shadow_mem_access): New function.
22556         (build_check_stmt): Use it.  Change size_in_bytes argument to HWI.
22557         Handle size_in_bytes not power of two or larger than 16.
22558         (instrument_derefs): Don't give up if size_in_bytes is not
22559         power of two or is larger than 16.
22561 2014-05-30  Kai Tietz  <ktietz@redhat.com>
22563         PR target/60104
22564         * config/i386/i386.c (x86_output_mi_thunk): Add memory case
22565         for sibling-tail-calls.
22566         * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
22567         to its use.
22568         * config/i386/predicates.md (sibcall_memory_operand): New predicate.
22569         (sibcall_insn_operand): Add check for sibcall_memory_operand.
22571 2014-05-30  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
22573         * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
22574         * config/avr/avr-tables.opt: Regenerate.
22575         * config/avr/t-multilib: Regenerate.
22576         * doc/avr-mmcu.texi: Regenerate.
22578 2014-05-30  Ian Lance Taylor  <iant@google.com>
22580         * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
22581         target("sse").
22583 2014-05-30  Tom de Vries  <tom@codesourcery.com>
22585         * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
22586         Redefine as true.
22588 2014-05-30  Tom de Vries  <tom@codesourcery.com>
22590         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
22591         * lra.c (initialize_lra_reg_info_element): Add init of
22592         actual_call_used_reg_set field.
22593         (lra): Call lra_create_live_ranges before lra_inheritance for
22594         -fuse-caller-save.
22595         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
22596         -fuse-caller-save.
22597         * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
22598         instead of call_used_reg_set for -fuse-caller-save.
22599         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
22601 2014-05-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22603         * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
22604         to mov_imm.
22605         * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
22607 2014-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
22609         * ira.c (ira_get_dup_out_num): Check for output operands at
22610         the start of the loop.  Handle cases where an included alternative
22611         follows an excluded one.
22613 2014-05-29  Mike Stump  <mikestump@comcast.net>
22615         PR debug/61352
22616         * collect2.c (maybe_run_lto_and_relink): Be sure to always run
22617         post ld passes when lto is used.
22619 2014-05-29  Vladimir Makarov  <vmakarov@redhat.com>
22621         PR rtl-optimization/61325
22622         * lra-constraints.c (process_address): Rename to process_address_1.
22623         (process_address): New function.
22625 2014-05-29  Alan Lawrence  <alan.lawrence@arm.com>
22627         * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
22628         TYPES_BINOPV): New static data.
22629         * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
22630         New builtin.
22631         * config/aarch64/aarch64-simd.md (aarch64_ext,
22632         aarch64_im_lane_boundsi): New patterns.
22633         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
22634         patterns for EXT.
22635         (aarch64_evpc_ext): New function.
22637         * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
22639         * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
22640         vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
22641         vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
22642         vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
22643         vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
22645 2014-05-29  Tom de Vries  <tom@codesourcery.com>
22647         * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
22649 2014-05-29  Richard Earnshaw <rearnsha@arm.com>
22650             Richard Sandiford  <rdsandiford@googlemail.com>
22652         * arm/iterators.md (shiftable_ops): New code iterator.
22653         (t2_binop0, arith_shift_insn): New code attributes.
22654         * arm/predicates.md (shift_nomul_operator): New predicate.
22655         * arm/arm.md (insn_enabled): Delete.
22656         (enabled): Remove insn_enabled test.
22657         (*arith_shiftsi): Delete.  Replace with ...
22658         (*<arith_shift_insn>_multsi): ... new pattern.
22659         (*<arith_shift_insn>_shiftsi): ... new pattern.
22660         * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
22662 2014-05-29  Radovan Obradovic  <robradovic@mips.com>
22663             Tom de Vries  <tom@codesourcery.com>
22665         * config/mips/mips.h (POST_CALL_TMP_REG): Define.
22666         * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
22667         clobber.
22668         (mips_split_call): Use POST_CALL_TMP_REG.
22669         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
22671 2014-05-29  Tom de Vries  <tom@codesourcery.com>
22673         * final.c (collect_fn_hard_reg_usage): Guard variable declaration
22674         with #ifdef STACK_REGS.
22676 2014-05-28  Jan Hubicka  <hubicka@ucw.cz>
22678         * varasm.c (get_variable_section): Walk aliases.
22679         (place_block_symbol): Walk aliases.
22681 2014-05-28  Tom de Vries  <tom@codesourcery.com>
22683         Revert:
22684         2014-05-28  Tom de Vries  <tom@codesourcery.com>
22686         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
22687         * lra.c (initialize_lra_reg_info_element): Add init of
22688         actual_call_used_reg_set field.
22689         (lra): Call lra_create_live_ranges before lra_inheritance for
22690         -fuse-caller-save.
22691         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
22692         -fuse-caller-save.
22693         * lra-constraints.c (need_for_call_save_p): Use
22694         actual_call_used_reg_set instead of call_used_reg_set for
22695         -fuse-caller-save.
22696         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
22698 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
22700         * doc/md.texi: Document that the % constraint character must
22701         be at the beginning of the string.
22702         * genoutput.c (validate_insn_alternatives): Check that '=',
22703         '+' and '%' only appear at the beginning of a constraint.
22704         * ira.c (commutative_constraint_p): Delete.
22705         (ira_get_dup_out_num): Expect the '%' commutativity marker to be
22706         at the start of the string.
22707         * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
22708         duplicate '='s.
22709         * config/arm/neon.md (bicdi3_neon): Likewise.
22710         * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
22711         (slt_si, sltu_si): Likewise.
22712         * config/vax/vax.md (sbcdi3): Likewise.
22713         * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
22714         * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
22715         (mul64): Move '%' to beginning of constraint.
22716         * config/arm/arm.md (*xordi3_insn): Likewise.
22717         * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
22718         (xorsi3): Likewise.
22720 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
22722         * doc/md.texi: Document the restrictions on the "enabled" attribute.
22724 2014-05-28  Jason Merrill  <jason@redhat.com>
22726         PR c++/47202
22727         * cgraph.h (symtab_node::get_comdat_group_id): New.
22728         * cgraphunit.c (analyze_functions): Call it.
22729         * symtab.c (dump_symtab_node): Likewise.
22730         * tree.c (decl_comdat_group_id): New.
22731         * tree.h: Declare it.
22732         * lto-streamer-out.c (write_symbol): Use it.
22733         * trans-mem.c (ipa_tm_create_version_alias): Likewise.
22735 2014-05-28  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
22737         PR bootstrap/PR61146
22738         * wide-int.cc: Do not include longlong.h when compiling with clang.
22740 2014-05-28  Richard Biener  <rguenther@suse.de>
22742         * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
22743         * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
22744         (vrp_visit_assignment_or_call): Print less vertical space.
22745         (vrp_visit_stmt): Likewise.
22746         (vrp_visit_phi_node): Likewise.  For a PHI argument with
22747         VR_VARYING range consider recording it as copy.
22749 2014-05-28  Richard Biener  <rguenther@suse.de>
22751         Revert
22752         2014-05-28  Richard Biener  <rguenther@suse.de>
22754         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
22756 2014-05-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
22758         * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
22759         sufficiently aligned and an offset is used at the same time.
22760         (expand_expr_real_1): Likewise.
22762 2014-05-28  Richard Biener  <rguenther@suse.de>
22764         PR middle-end/61045
22765         * fold-const.c (fold_comparison): When folding
22766         X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
22767         the sign of the remaining constant operand stays the same.
22769 2014-05-28  Kaushik Phatak  <kaushik.phatak@kpit.com>
22771         * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
22772         __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
22773         (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
22774         to the assembler.
22775         (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
22776         * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
22777         (m32bit-doubles) Likewise.
22778         * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
22779         * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
22780         option for RL78.
22782 2014-05-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22784         * configure.ac ($gcc_cv_ld_clearcap): New test.
22785         * configure: Regenerate.
22786         * config.in: Regenerate.
22787         * config/sol2.opt (mclear-hwcap): New option.
22788         * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
22789         * config/sol2-clearcap.map: Moved here from
22790         testsuite/gcc.target/i386/clearcap.map.
22791         * config/sol2-clearcapv2.map: Move here from
22792         gcc.target/i386/clearcapv2.map.
22793         * config/t-sol2 (install): Depend on install-clearcap-map.
22794         (install-clearcap-map): New target.
22795         * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
22796         -mclear-hwcap.
22798 2014-05-28  Richard Biener  <rguenther@suse.de>
22800         * hwint.h (*_HALF_WIDE_INT*): Move to ...
22801         * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
22802         ... here and remove the rest.
22803         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
22805 2014-05-28  Richard Biener  <rguenther@suse.de>
22807         PR tree-optimization/61335
22808         * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
22809         new range fails, drop to varying.
22811 2014-05-28  Olivier Hainque  <hainque@adacore.com>
22813         * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
22814         (CPP_SPEC): Add entry for -mcpu=8548.
22815         * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
22816         * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
22818 2014-05-28  Tom de Vries  <tom@codesourcery.com>
22820         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
22821         * lra.c (initialize_lra_reg_info_element): Add init of
22822         actual_call_used_reg_set field.
22823         (lra): Call lra_create_live_ranges before lra_inheritance for
22824         -fuse-caller-save.
22825         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
22826         -fuse-caller-save.
22827         * lra-constraints.c (need_for_call_save_p): Use
22828         actual_call_used_reg_set instead of call_used_reg_set for
22829         -fuse-caller-save.
22830         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
22832 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
22833             Tom de Vries  <tom@codesourcery.com>
22835         * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
22836         to gccoptlist.
22837         (@item -fuse-caller-save): New item.
22839 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
22840             Tom de Vries  <tom@codesourcery.com>
22842         * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
22843         OPT_fuse_caller_save.
22845 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
22846             Tom de Vries  <tom@codesourcery.com>
22848         * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
22849         * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
22850         get_call_reg_set_usage.
22851         * resource.c (mark_set_resources, mark_target_live_regs): Use
22852         get_call_reg_set_usage.
22853         * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
22854         field.
22855         (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
22856         * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
22857         Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
22858         * ira-build.c (ira_create_allocno): Init
22859         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
22860         (create_cap_allocno, propagate_allocno_info)
22861         (propagate_some_info_from_allocno)
22862         (copy_info_to_removed_store_destinations): Handle
22863         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
22864         * ira-costs.c (ira_tune_allocno_costs): Use
22865         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
22867 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
22868             Tom de Vries  <tom@codesourcery.com>
22870         * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
22871         and function_used_regs_valid fields.
22872         * final.c: Move include of hard-reg-set.h to before rtl.h to declare
22873         find_all_hard_reg_sets.
22874         (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
22875         (get_call_reg_set_usage): New function.
22876         (rest_of_handle_final): Use collect_fn_hard_reg_usage.
22877         * regs.h (get_call_reg_set_usage): Declare.
22879 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
22881         PR libgcc/61152
22882         * config/dbx.h (License): Add Runtime Library Exception.
22883         * config/newlib-stdint.h (License): Same.
22884         * config/rtems.h (License): Same
22885         * config/initfini-array.h (License): Same
22886         * config/v850/v850.h (License): Same.
22887         * config/v850/v850-opts.h (License): Same
22888         * config/v850/rtems.h (License): Same.
22890 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
22892         PR target/61044
22893         * doc/extend.texi (Local Labels): Note that label differences are
22894         not supported for AVR.
22896 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
22897             Olivier Hainque  <hainque@adacore.com>
22899         * rtl.h (set_for_reg_notes): Declare.
22900         * emit-rtl.c (set_for_reg_notes): New function.
22901         (set_unique_reg_note): Use it.
22902         * optabs.c (add_equal_note): Likewise
22904 2014-05-27  Andrew Pinski  <apinski@cavium.com>
22906         * config/aarch64/aarch64.md (stack_protect_set_<mode>):
22907         Use <w> for the register in assembly template.
22908         (stack_protect_test): Use the mode of operands[0] for the result.
22909         (stack_protect_test_<mode>): Use <w> for the register
22910         in assembly template.
22912 2014-05-27  DJ Delorie  <dj@redhat.com>
22914         * config/rx/rx.c (add_vector_labels): New.
22915         (rx_output_function_prologue): Call it.
22916         (rx_handle_func_attribute): Don't require empty arguments.
22917         (rx_handle_vector_attribute): New.
22918         (rx_attribute_table): Add "vector" attribute.
22919         * doc/extend.texi (interrupt, vector): Document new/changed
22920         RX-specific attributes.
22922         * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
22924 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
22926         * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
22927         predicate to detect a negative quotient.
22929 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
22931         * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
22932         to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
22933         Add X - Y CMP 0 to X CMP Y transformation.
22934         (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
22936 2014-05-27  Segher Boessenkool  <segher@kernel.crashing.org>
22938         * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
22939         before printing.
22941 2014-05-27  Steve Ellcey  <sellcey@mips.com>
22943         * config/mips/mips.c: Add include of cgraph.h.
22945 2014-05-27  Richard Biener  <rguenther@suse.de>
22947         * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
22949 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
22951         PR libgcc/61152
22952         * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
22953         * config/arm/arm-cores.def (License): Same.
22954         * config/arm/arm-opts.h (License): Same.
22955         * config/arm/aout.h (License): Same.
22956         * config/arm/bpabi.h (License): Same.
22957         * config/arm/elf.h (License): Same.
22958         * config/arm/linux-elf.h (License): Same.
22959         * config/arm/linux-gas.h (License): Same.
22960         * config/arm/netbsd-elf.h (License): Same.
22961         * config/arm/uclinux-eabi.h (License): Same.
22962         * config/arm/uclinux-elf.h (License): Same.
22963         * config/arm/vxworks.h (License): Same.
22965 2014-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22967         * config/arm/neon.md (neon_bswap<mode>): New pattern.
22968         * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
22969         (arm_init_neon_builtins): Handle NEON_BSWAP.
22970         Define required type nodes.
22971         (arm_expand_neon_builtin): Handle NEON_BSWAP.
22972         (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
22973         * config/arm/arm_neon_builtins.def (bswap): Define builtins.
22974         * config/arm/iterators.md (VDQHSD): New mode iterator.
22976 2014-05-27  Richard Biener  <rguenther@suse.de>
22978         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
22979         Try using literal operands when comparing value-ranges failed.
22981 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
22983         * ira.c (commutative_operand): Adjust for change to recog_data.
22984         [Missing from previous commit.]
22986 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
22988         * system.h (TEST_BIT): New macro.
22989         * recog.h (alternative_mask): New type.
22990         (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
22991         (recog_data_d): Replace alternative_enabled_p array with
22992         enabled_alternatives.
22993         (target_recog): New structure.
22994         (default_target_recog, this_target_recog): Declare.
22995         (get_enabled_alternatives, recog_init): Likewise.
22996         * recog.c (default_target_recog, this_target_recog): New variables.
22997         (get_enabled_alternatives): New function.
22998         (extract_insn): Use it.
22999         (recog_init): New function.
23000         (preprocess_constraints, constrain_operands): Adjust for change to
23001         recog_data.
23002         * postreload.c (reload_cse_simplify_operands): Likewise.
23003         * reload.c (find_reloads): Likewise.
23004         * ira-costs.c (record_reg_classes): Likewise.
23005         * ira-lives.c (single_reg_class): Likewise.  Fix bug in which
23006         all alternatives after a disabled one would be skipped.
23007         (ira_implicitly_set_insn_hard_regs): Likewise.
23008         * ira.c (ira_setup_alts): Adjust for change to recog_data.
23009         * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
23010         with enabled_alternatives.
23011         * lra.c (free_insn_recog_data): Update accordingly.
23012         (lra_update_insn_recog_data): Likewise.
23013         (lra_set_insn_recog_data): Likewise.  Use get_enabled_alternatives.
23014         * lra-constraints.c (process_alt_operands): Likewise.  Handle
23015         only_alternative as part of the enabled mask.
23016         * target-globals.h (this_target_recog): Declare.
23017         (target_globals): Add a recog field.
23018         (restore_target_globals): Restore this_target_recog.
23019         * target-globals.c: Include recog.h.
23020         (default_target_globals): Initialize recog field.
23021         (save_target_globals): Likewise.
23022         * reginfo.c (reinit_regs): Call recog_init.
23023         * toplev.c (backend_init_target): Likewise.
23025 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
23027         * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
23028         rather than any named insn's code.
23030 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
23032         PR libgcc/61152
23033         * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
23034         * config/arm/arm-cores.def (License): Same.
23036 2014-05-26  Jan Hubicka  <hubicka@ucw.cz>
23038         * tree.h (decl_comdat_group): Declare.
23039         * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
23040         * tree.c (decl_comdat_group): Here.
23042 2014-05-26  Richard Sandiford  <r.sandiford@uk.ibm.com>
23044         PR rtl-optimization/61222
23045         * combine.c (simplify_shift_const_1): When moving a PLUS outside
23046         the shift, truncate the PLUS operand to the result mode.
23048 2014-05-26  Uros Bizjak  <ubizjak@gmail.com>
23050         PR target/61271
23051         * config/i386/i386.c (ix86_rtx_costs)
23052         <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
23053         Fix condition.
23055 2014-05-26  Martin Jambor  <mjambor@suse.cz>
23057         * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
23058         subreg uses.
23060 2014-05-26  Richard Biener  <rguenther@suse.de>
23062         * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
23063         wi::int_traits <long long>, wi::int_traits <unsigned long long>):
23064         Provide specializations.
23065         (wi::int_traits <HOST_WIDE_INT>,
23066         wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
23068 2014-05-26  Alan Modra  <amodra@gmail.com>
23070         PR target/61098
23071         * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
23072         params and return a bool.  Remove dead code.  Update comment.
23073         Assert we have a const_int source.  Remove bogus code from
23074         32-bit HWI days.  Move !TARGET_POWERPC64 handling, and correct
23075         handling of constants > 2G and reg_equal note, from..
23076         (rs6000_emit_set_long_const): ..here.  Remove unneeded param and
23077         return value.  Update comment.  If we can, use a new pseudo
23078         for intermediate calculations.
23079         * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
23080         prototype.
23081         * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
23082         call to rs6000_emit_set_const in splitter.
23083         (movdi_internal64+2, +3): Likewise.
23085 2014-05-26  Richard Biener  <rguenther@suse.de>
23087         * system.h: Define __STDC_FORMAT_MACROS before
23088         including inttypes.h.
23089         * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
23090         HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
23091         HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
23092         HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
23093         HOST_WIDEST_INT_C): Remove.
23094         (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
23095         if C99 inttypes.h is not available.
23096         * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
23097         * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
23098         * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
23099         * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
23100         * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
23101         (struct output_info): Likewise.
23102         (print_statistics): Adjust.
23103         (dump_bitmap_statistics): Likewise.
23104         * bt-load.c (migrate_btr_defs): Print with PRId64.
23105         * cfg.c (dump_edge_info, dump_bb_info): Likewise.
23106         (MAX_SAFE_MULTIPLIER): Adjust.
23107         * cfghooks.c (dump_bb_for_graph): Print with PRId64.
23108         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
23109         dump_cgraph_node): Likewise.
23110         * final.c (dump_basic_block_info): Likewise.
23111         * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
23112         * gcov.c (format_gcov): Likewise.
23113         * ipa-cp.c (good_cloning_opportunity_p): Likewise.  Use int64_t
23114         for calculation.
23115         (get_clone_agg_value): Use HOST_WIDE_INT for offset.
23116         * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
23117         (inline_small_functions, dump_overall_stats, dump_inline_stats):
23118         Use PRId64 for dumping.
23119         * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
23120         * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
23121         (add_allocno_hard_regs): Adjust.
23122         * loop-doloop.c (doloop_modify): Print using PRId64.
23123         * loop-iv.c (inverse): Compute in uint64_t.
23124         (determine_max_iter, iv_number_of_iterations): Likewise.
23125         * loop-unroll.c (decide_peel_completely, decide_peel_simple):
23126         Print using PRId64.
23127         * lto-streamer-out.c (write_symbol): Use uint64_t.
23128         * mcf.c (CAP_INFINITY): Use int64_t maximum.
23129         (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
23130         find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
23131         * modulo-sched.c (const_iteration_count): Use int64_t.
23132         (sms_schedule): Dump using PRId64.
23133         * predict.c (dump_prediction): Likewise.
23134         * pretty-print.h (pp_widest_integer): Remove.
23135         * profile.c (get_working_sets, is_edge_inconsistent,
23136         is_inconsistent, read_profile_edge_counts): Dump using PRId64.
23137         * tree-pretty-print.c (pp_double_int): Remove case handling
23138         HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
23139         * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
23140         and adjust users.
23141         (pass_optimize_bswap::execute): Remove restriction on hosts.
23142         * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
23143         * tree-streamer-out.c (streamer_write_tree_header): Likewise.
23144         * tree.c (widest_int_cst_value): Remove.
23145         * tree.h (widest_int_cst_value): Likewise.
23146         * value-prof.c (dump_histogram_value): Print using PRId64.
23147         * gengtype.c (main): Also inject int64_t.
23148         * ggc-page.c (struct max_alignment): Use int64_t.
23149         * alloc-pool.c (struct allocation_object_def): Likewise.
23150         * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
23151         for computation.
23152         * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
23153         * doc/tm.texi: Regenerated.
23154         * gengtype-lex.l (IWORD): Handle [u]int64_t.
23155         * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
23156         * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
23157         mmix_output_register_setting): Use [u]int64_t in prototypes.
23158         * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
23159         mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
23160         mmix_output_octa, mmix_output_shifted_value): Adjust.
23161         (mmix_intval): Adjust.  Remove unreachable case.
23162         * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
23164 2014-05-26  Richard Biener  <rguenther@suse.de>
23166         * configure.ac: Drop __int64 type check.  Insist that we
23167         found uint64_t and int64_t.
23168         * hwint.h (HOST_BITS_PER___INT64): Remove.
23169         (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
23170         (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
23171         (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
23172         (HOST_WIDEST_FAST_INT): Remove __int64 case.
23173         * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
23174         for dst_q_src_df_rms_cdt.
23175         * configure: Regenerate.
23176         * config.in: Likewise.
23178 2014-05-26  Michael Tautschnig  <mt@debian.org>
23180         PR target/61249
23181         * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
23182         __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
23184 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
23186         PR rtl-optimization/61278
23187         * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
23189 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
23191         PR rtl-optimization/61220
23192         Part of PR rtl-optimization/61225
23193         * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
23194         insn; skip split_edge for a block with only one successor.
23196 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
23198         * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
23199         for variables.
23201 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
23203         * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
23204         (update_vtable_references): New function.
23205         (function_and_variable_visibility): Rewrite also vtable initializers.
23206         * varpool.c (cgraph_variable_initializer_availability): Remove assert.
23208 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
23210         * ggc.h (ggc_grow): New function.
23211         * ggc-none.c (ggc_grow): New function.
23212         * ggc-page.c (ggc_grow): Likewise.
23214 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
23216         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
23217         address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
23218         comdat_can_be_unshared_p, cgraph_externally_visible_p,
23219         varpool_externally_visible_p, can_replace_by_local_alias,
23220         update_visibility_by_resolution_info, function_and_variable_visibility,
23221         pass_data_ipa_function_and_variable_visibility,
23222         make_pass_ipa_function_and_variable_visibility,
23223         whole_program_function_and_variable_visibility,
23224         pass_data_ipa_whole_program_visibility,
23225         make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
23226         * cgraph.h (cgraph_local_node_p): Declare.
23227         * ipa-visibility.c: New file.
23228         * Makefile.in (OBJS): Add ipa-visiblity.o
23230 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
23232         * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
23233         that var decl is available.
23235 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
23237         * tree-core.h (tree_decl_with_vis): Replace comdat_group by
23238         symtab_node pointer.
23239         * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
23240         (find_decls_types_r): Do not walk COMDAT_GROUP.
23241         * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
23242         * varasm.c (make_decl_one_only): Use set_comdat_group;
23243         create node if needed.
23244         * ipa-inline-transform.c (save_inline_function_body): Update
23245         way we decl->symtab mapping.
23246         * symtab.c (symtab_hash, hash_node, eq_node
23247         symtab_insert_node_to_hashtable): Remove.
23248         (symtab_register_node): Update.
23249         (symtab_unregister_node): Update.
23250         (symtab_get_node): Reimplement as inline function.
23251         (symtab_add_to_same_comdat_group): Update.
23252         (symtab_dissolve_same_comdat_group_list): Update.
23253         (dump_symtab_base): Update.
23254         (verify_symtab_base): Update.
23255         (symtab_make_decl_local): Update.
23256         (fixup_same_cpp_alias_visibility): Update.
23257         (symtab_nonoverwritable_alias): Update.
23258         * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
23259         * ipa.c (update_visibility_by_resolution_info): UPdate.
23260         * bb-reorder.c: Include cgraph.h
23261         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
23262         with comdat groups.
23263         * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
23264         * cgraph.c (cgraph_get_create_node): Update.
23265         * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
23266         and comdat_group_.
23267         (symtab_get_node): Make inline.
23268         (symtab_insert_node_to_hashtable): Remove.
23269         (symtab_can_be_discarded): Update.
23270         (decl_comdat_group): New function.
23271         * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
23272         Update.
23273         * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
23274         comdat group name.
23275         (read_comdat_group): New function.
23276         (input_node, input_varpool_node): Use it.
23277         * trans-mem.c (ipa_tm_create_version_alias): Update code creating
23278         comdat groups.
23279         * mips.c (mips_start_unique_function): Likewise.
23280         (ix86_code_end): Likewise.
23281         (rs6000_code_end): Likweise.
23282         * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
23284 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
23286         * gengtype-state.c (fatal_reading_state): Bring offline.
23287         * optabs.c (widening_optab_handler): Bring offline.
23288         * optabs.h (widening_optab_handler): Likewise.
23289         * final.c (get_attr_length_1): Likewise.
23291 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
23293         * sched-int.h (sd_iterator_cond): Manually tail recurse.
23295 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
23297         * config/rs6000/440.md (ppc440-integer): Include shift without dot.
23298         (ppc440-compare): Include shift with dot.
23299         * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
23300         * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
23301         without dot.
23302         * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
23303         without dot.
23304         (e6500_sfx2): Include it.
23305         * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
23306         *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
23307         *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
23308         andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
23309         *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
23310         *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
23311         *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
23312         *lshiftrt_internal1le, *lshiftrt_internal1be,
23313         *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
23314         *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
23315         *rotldi3_internal10le, *rotldi3_internal10be,
23316         *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
23317         ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
23318         ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
23319         *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
23320         define_insns): Use type "shift" in the appropriate alternatives.
23322 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
23324         * config/rs6000/rs6000.md (type): Add "logical".  Delete
23325         "fast_compare".
23326         (dot): Adjust comment.
23327         (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
23328         *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
23329         *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
23330         anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
23331         *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
23332         *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
23333         *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
23334         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
23336         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
23337         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
23338         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
23339         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
23340         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
23341         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
23342         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
23343         * config/rs6000/8540.md (ppc8540_su): Adjust.
23344         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
23345         cell-cmp-microcoded): Adjust.
23346         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
23347         * config/rs6000/e500mc.md (e500mc_su): Adjust.
23348         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
23349         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
23350         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
23351         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
23352         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
23353         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
23354         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
23355         Adjust.
23356         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
23357         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
23358         Adjust.  Adjust comment.
23359         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
23360         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
23362 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
23364         * config/rs6000/rs6000.md (type): Add "add".
23365         (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
23366         *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
23367         define_insns): Use it.
23368         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
23370         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
23371         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
23372         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
23373         * config/rs6000/601.md (ppc601-integer): Adjust.
23374         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
23375         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
23376         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
23377         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
23378         * config/rs6000/8540.md (ppc8540_su): Adjust.
23379         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
23380         cell-cmp-microcoded): Adjust.
23381         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
23382         * config/rs6000/e500mc.md (e500mc_su): Adjust.
23383         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
23384         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
23385         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
23386         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
23387         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
23388         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
23389         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
23390         Adjust.
23391         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
23392         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
23393         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
23394         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
23396 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
23398         * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
23399         "delayed_compare", "var_delayed_compare".
23400         (var_shift): New attribute.
23401         (cell_micro): Adjust.
23402         (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
23403         *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
23404         rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
23405         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
23406         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
23407         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
23408         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
23409         *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
23410         *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
23411         *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
23412         *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
23413         rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
23414         *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
23415         *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
23416         *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
23417         *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
23418         *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
23419         *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
23420         *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
23421         *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
23422         *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
23423         *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
23424         *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
23425         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
23426         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
23428         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
23429         * config/rs6000/440.md (ppc440-integer): Adjust.
23430         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
23431         * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
23432         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
23433         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
23434         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
23435         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
23436         * config/rs6000/8540.md (ppc8540_su): Adjust.
23437         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
23438         cell-cmp-microcoded): Adjust.
23439         * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
23440         * config/rs6000/e500mc.md (e500mc_su): Adjust.
23441         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
23442         e500mc64_delayed): Adjust.
23443         * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
23444         * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
23445         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
23446         * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
23447         * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
23448         * config/rs6000/power6.md (power6-shift, power6-var-rotate,
23449         power6-delayed-compare, power6-var-delayed-compare): Adjust.
23450         * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
23451         * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
23452         Adjust comment.
23453         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
23454         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
23456 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
23458         * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv".  Add "div".
23459         (bits): New mode_attr.
23460         (idiv_ldiv): Delete mode_attr.
23461         (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
23462         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
23463         rs6000_adjust_priority, is_nonpipeline_insn,
23464         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
23466         * config/rs6000/40x.md (ppc403-idiv): Adjust.
23467         * config/rs6000/440.md (ppc440-idiv): Adjust.
23468         * config/rs6000/476.md (ppc476-idiv): Adjust.
23469         * config/rs6000/601.md (ppc601-idiv): Adjust.
23470         * config/rs6000/603.md (ppc603-idiv): Adjust.
23471         * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
23472         ppc620-ldiv): Adjust.
23473         * config/rs6000/7450.md (ppc7450-idiv): Adjust.
23474         * config/rs6000/7xx.md (ppc750-idiv): Adjust.
23475         * config/rs6000/8540.md (ppc8540_divide): Adjust.
23476         * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
23477         * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
23478         * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
23479         * config/rs6000/e500mc.md (e500mc_divide): Adjust.
23480         * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
23481         * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
23482         * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
23483         * config/rs6000/mpc.md (mpccore-idiv): Adjust.
23484         * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
23485         * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
23486         * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
23487         * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
23488         * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
23489         * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
23490         * config/rs6000/titan.md (titan_fxu_div): Adjust.
23492 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
23494         * config/rs6000/rs6000.md (type): Delete "insert_word",
23495         "insert_dword".  Add "insert".
23496         (size): Update comment.
23497         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
23498         insn_must_be_first_in_group): Adjust.
23499         (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
23500         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
23501         *insvsi_internal6, insvdi_internal): Adjust.
23503         * config/rs6000/40x.md (ppc403-integer): Adjust.
23504         * config/rs6000/440.md (ppc440-integer): Adjust.
23505         * config/rs6000/476.md (ppc476-simple-integer): Adjust.
23506         * config/rs6000/601.md (ppc601-integer): Adjust.
23507         * config/rs6000/603.md (ppc603-integer): Adjust.
23508         * config/rs6000/6xx.md (ppc604-integer): Adjust.
23509         * config/rs6000/7450.md (ppc7450-integer): Adjust.
23510         * config/rs6000/7xx.md (ppc750-integer): Adjust.
23511         * config/rs6000/8540.md (ppc8540_su): Adjust.
23512         * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
23513         * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
23514         * config/rs6000/e500mc.md (e500mc_su): Adjust.
23515         * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
23516         * config/rs6000/e5500.md (e5500_sfx): Adjust.
23517         * config/rs6000/e6500.md (e6500_sfx): Adjust.
23518         * config/rs6000/mpc.md (mpccore-integer): Adjust.
23519         * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
23520         * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
23521         * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
23522         * config/rs6000/power7.md (power7-integer): Adjust.
23523         * config/rs6000/power8.md (power8-1cyc): Adjust.
23524         * config/rs6000/rs64.md (rs64a-integer): Adjust.
23525         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
23527 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
23529         * config/rs6000/rs6000.md (type): Add "mul".  Delete "imul",
23530         "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
23531         (size): New attribute.
23532         (dot): New attribute.
23533         (cell_micro): Adjust.
23534         (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
23535         umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
23536         *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
23537         umuldi3_highpart): Adjust.
23538         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
23539         rs6000_adjust_priority, is_nonpipeline_insn,
23540         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
23542         * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
23543         ppc405-imul3): Adjust.
23544         * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
23545         * config/rs6000/476.md (ppc476-imul): Adjust.
23546         * config/rs6000/601.md (ppc601-imul): Adjust.
23547         * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
23548         * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
23549         ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
23550         * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
23551         * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
23552         Adjust.
23553         * config/rs6000/8540.md (ppc8540_multiply): Adjust.
23554         * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
23555         * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
23556         cell-imul): Adjust.
23557         * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
23558         * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
23559         * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
23560         * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
23561         * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
23562         * config/rs6000/mpc.md (mpccore-imul): Adjust.
23563         * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
23564         power4-lmul, power4-imul, power4-imul3): Adjust.
23565         * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
23566         power5-lmul, power5-imul, power5-imul3): Adjust.
23567         * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
23568         power6-lmul, power6-imul, power6-imul3): Adjust.
23569         * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
23570         * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
23572         * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
23573         rs64a-lmul): Adjust.
23574         * config/rs6000/titan.md (titan_imul): Adjust.
23576 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
23578         * config/rs6000/rs6000.md (type): Add new value "halfmul".
23579         (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
23580         *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
23581         *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
23582         *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
23583         *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
23584         * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
23585         * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
23586         * config/rs6000/476.md (ppc476-imul): Add type halfmul.
23587         * config/rs6000/titan.md: Delete nonsensical comment.
23588         (titan_imul): Add type imul3.
23589         (titan_mulhw): Remove type imul3; add type halfmul.
23591 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
23593         * config/rs6000/rs6000.md (type): Reorder, reformat.
23595 2014-05-23  Martin Jambor  <mjambor@suse.cz>
23597         PR tree-optimization/53787
23598         * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
23599         * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
23600         analysis_done, update all uses.
23601         * ipa-prop.c: Include domwalk.h
23602         (param_analysis_info): Removed.
23603         (param_aa_status): New type.
23604         (ipa_bb_info): Likewise.
23605         (func_body_info): Likewise.
23606         (ipa_get_bb_info): New function.
23607         (aa_overwalked): Likewise.
23608         (find_dominating_aa_status): Likewise.
23609         (parm_bb_aa_status_for_bb): Likewise.
23610         (parm_preserved_before_stmt_p): Changed to use new param AA info.
23611         (load_from_unmodified_param): Accept func_body_info as a parameter
23612         instead of parms_ainfo.
23613         (parm_ref_data_preserved_p): Changed to use new param AA info.
23614         (parm_ref_data_pass_through_p): Likewise.
23615         (ipa_load_from_parm_agg_1): Likewise.  Update callers.
23616         (compute_complex_assign_jump_func): Changed to use new param AA info.
23617         (compute_complex_ancestor_jump_func): Likewise.
23618         (ipa_compute_jump_functions_for_edge): Likewise.
23619         (ipa_compute_jump_functions): Removed.
23620         (ipa_compute_jump_functions_for_bb): New function.
23621         (ipa_analyze_indirect_call_uses): Likewise, moved variable
23622         declarations down.
23623         (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
23624         and info, moved variable declarations down.
23625         (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
23626         node and info.
23627         (ipa_analyze_stmt_uses): Likewise.
23628         (ipa_analyze_params_uses): Removed.
23629         (ipa_analyze_params_uses_in_bb): New function.
23630         (ipa_analyze_controlled_uses): Likewise.
23631         (free_ipa_bb_info): Likewise.
23632         (analysis_dom_walker): New class.
23633         (ipa_analyze_node): Handle node-specific forbidden analysis,
23634         initialize and free func_body_info, use dominator walker.
23635         (ipcp_modif_dom_walker): New class.
23636         (ipcp_transform_function): Create and free func_body_info, use
23637         ipcp_modif_dom_walker, moved a lot of functionality there.
23639 2014-05-23  Marek Polacek  <polacek@redhat.com>
23640             Jakub Jelinek  <jakub@redhat.com>
23642         * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
23643         * gcc.c (sanitize_spec_function): Likewise.
23644         * convert.c (convert_to_integer): Include "ubsan.h".  Add
23645         floating-point to integer instrumentation.
23646         * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
23647         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
23648         SANITIZE_NONDEFAULT.
23649         * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
23650         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
23651         BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
23652         * ubsan.c: Include "realmpfr.h" and "dfp.h".
23653         (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
23654         (ubsan_type_descriptor): Set tkind to 0xffff for types other than
23655         float/double/long double.
23656         (ubsan_instrument_float_cast): New function.
23657         * ubsan.h (ubsan_instrument_float_cast): Declare.
23659 2014-05-23 Jiong Wang  <jiong.wang@arm.com>
23661         * config/aarch64/predicates.md (aarch64_call_insn_operand): New
23662         predicate.
23663         * config/aarch64/constraints.md ("Ucs", "Usf"):  New constraints.
23664         * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
23665         Adjust for tailcalling through registers.
23666         * config/aarch64/aarch64.h (enum reg_class): New caller save
23667         register class.
23668         (REG_CLASS_NAMES): Likewise.
23669         (REG_CLASS_CONTENTS): Likewise.
23670         * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
23671         Allow tailcalling without decls.
23673 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
23675         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
23676         Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
23678         * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
23679         gsi, and variables v_* to v*.
23681 2014-05-23  Eric Botcazou  <ebotcazou@adacore.com>
23683         * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
23685 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
23687         * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
23688         * omp-low.c: Update accordingly.
23690         * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
23691         for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
23692         GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
23693         GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
23694         GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
23695         GF_OMP_TARGET_KIND_UPDATE.
23697         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
23698         Explicitly enumerate the expected region types.
23700 2014-05-23  Paul Eggert  <eggert@cs.ucla.edu>
23702         PR other/56955
23703         * doc/extend.texi (Function Attributes): Fix  __attribute__ ((malloc))
23704         documentation; the old documentation didn't clearly state the
23705         constraints on the contents of the pointed-to storage.
23707 2014-05-23  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
23709         Fix bootstrap error on ia64
23710         * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
23711         Return default value.
23713 2014-05-23  Thomas Preud'homme  <thomas.preudhomme@arm.com>
23715         PR tree-optimization/54733
23716         * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
23717         (CMPNOP): Define.
23718         (find_bswap_or_nop_load): New.
23719         (find_bswap_1): Renamed to ...
23720         (find_bswap_or_nop_1): This. Also add support for memory source.
23721         (find_bswap): Renamed to ...
23722         (find_bswap_or_nop): This. Also add support for memory source and
23723         detection of bitwise operations equivalent to load in target
23724         endianness.
23725         (execute_optimize_bswap): Likewise. Also move its leading comment back
23726         in place and split statement transformation into ...
23727         (bswap_replace): This.
23729 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
23731         PR rtl-optimization/61215
23732         * lra-elelimination.c (lra_eliminate_regs_1): Don't use
23733         simplify_gen_subreg until final substitution.
23735 2014-05-23  Alan Modra  <amodra@gmail.com>
23737         PR target/61231
23738         * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
23739         * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
23740         Use "Y" constraint rather than "m".
23742 2014-05-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
23744         * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
23745         define.
23746         * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
23747         New function declaration.
23748         * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
23749         AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
23750         AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
23751         (aarch64_init_builtins) : Initialize builtins
23752         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
23753         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
23754         (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
23755         __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
23756         and __builtins_aarch64_set_fpsr.
23757         (aarch64_atomic_assign_expand_fenv): New function.
23758         * config/aarch64/aarch64.md (set_fpcr): New pattern.
23759         (get_fpcr) : Likewise.
23760         (set_fpsr) : Likewise.
23761         (get_fpsr) : Likewise.
23762         (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
23763         and UNSPECV_SET_FPSR.
23764         * doc/extend.texi (AARCH64 Built-in Functions) : Document
23765         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
23766         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
23768 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
23770         PR rtl-optimization/60969
23771         * ira-costs.c (record_reg_classes): Process NO_REGS for matching
23772         constraints.  Set up mem cost for NO_REGS case.
23774 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
23776         * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
23778 2012-05-22  Bernd Schmidt  <bernds@codesourcery.com>
23780         * config/darwin.c: Include "lto-section-names.h".
23781         (LTO_SEGMENT_NAME): Don't define.
23782         * config/i386/winnt.c: Include "lto-section-names.h".
23783         * lto-streamer.c: Include "lto-section-names.h".
23784         * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
23785         * lto-wrapper.c: Include "lto-section-names.h".
23786         (LTO_SECTION_NAME_PREFIX): Don't define.
23787         * lto-section-names.h: New file.
23788         * cgraphunit.c: Include "lto-section-names.h".
23790 2014-05-22  Peter Bergner  <bergner@vnet.ibm.com>
23792         * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
23794 2014-05-22  Richard Earnshaw  <rearnsha@arm.com>
23796         PR target/61208
23797         * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
23799 2014-05-22  Nick Clifton  <nickc@redhat.com>
23801         * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
23803 2014-05-22  Eric Botcazou  <ebotcazou@adacore.com>
23805         * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
23806         -> (T)A transformation to integer types.
23808 2014-05-22  Teresa Johnson  <tejohnson@google.com>
23810         * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
23811         (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
23812         (gcov_rewrite): Use gcov_nonruntime_assert.
23813         (gcov_open): Ditto.
23814         (gcov_write_words): Ditto.
23815         (gcov_write_length): Ditto.
23816         (gcov_read_words): Use gcov_nonruntime_assert, and remove
23817         gcc_assert from IN_LIBGCOV code.
23818         (gcov_read_summary): Use gcov_error to flag profile corruption.
23819         (gcov_sync): Use gcov_nonruntime_assert.
23820         (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
23821         (gcov_histo_index): Use gcov_nonruntime_assert.
23822         (static void gcov_histogram_merge): Ditto.
23823         (compute_working_sets): Ditto.
23824         * gcov-io.h (gcov_nonruntime_assert): Define.
23825         (gcov_error): Define for !IN_LIBGCOV
23827 2014-05-22  Richard Biener  <rguenther@suse.de>
23829         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
23830         BUILT_IN_REALLOC like BUILT_IN_STRDUP.
23831         (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
23832         and deallocation site.
23833         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
23834         Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
23835         passing through the incoming points-to set.
23836         (handle_lhs_call): Use flags argument instead of recomputing it.
23837         (find_func_aliases_for_call): Call handle_lhs_call with proper
23838         call return flags.
23840 2014-05-22  Jakub Jelinek  <jakub@redhat.com>
23842         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
23843         all padding bits in REAL_VALUE_TYPE are cleared.
23845 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
23847         Cleanup and improve multipass_dfa_lookahead_guard
23848         * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
23849         (core2i7_first_cycle_multipass_begin,)
23850         (core2i7_first_cycle_multipass_issue,)
23851         (core2i7_first_cycle_multipass_backtrack): Update signature.
23852         * config/ia64/ia64.c
23853         (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
23854         (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
23855         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
23856         hook definition.
23857         (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
23858         ia64_first_cycle_multipass_dfa_lookahead_guard_spec.  Update return
23859         values.
23860         * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
23861         return values.
23862         * doc/tm.texi: Regenerate.
23863         * doc/tm.texi.in
23864         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
23865         * haifa-sched.c (ready_try): Make signed to allow negative values.
23866         (rebug_ready_list_1): Update.
23867         (choose_ready): Simplify.
23868         (sched_extend_ready_list): Update.
23870 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
23872         Remove IA64 speculation tweaking flags
23873         * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
23874         speculation tuning flags.
23875         (msched-prefer-non-data-spec-insns,)
23876         (msched-prefer-non-control-spec-insns): Obsolete options.
23877         * haifa-sched.c (choose_ready): Remove handling of
23878         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
23879         * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
23880         and PREFER_NON_DATA_SPEC.
23881         * sel-sched.c (process_spec_exprs): Remove handling of
23882         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
23884 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
23886         Improve scheduling debug output
23887         * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
23888         (advance_one_cycle): Update.
23889         (schedule_insn, queue_to_ready): Add debug printouts.
23890         (debug_ready_list_1): New static function.
23891         (debug_ready_list): Update.
23892         (max_issue): Add debug printouts.
23893         (dump_insn_stream): New static function.
23894         (schedule_block): Use it.  Also better indent printouts.
23896 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
23898         Fix sched_insn debug counter
23899         * haifa-sched.c (schedule_insn): Update.
23900         (struct haifa_saved_data): Add nonscheduled_insns_begin.
23901         (save_backtrack_point, restore_backtrack_point): Update.
23902         (first_nonscheduled_insn): New static function.
23903         (queue_to_ready, choose_ready): Use it.
23904         (schedule_block): Init nonscheduled_insns_begin.
23905         (sched_emit_insn): Update.
23908 2014-05-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
23910         * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
23911         to GENERAL_REGS.
23912         (aarch64_secondary_reload) : LikeWise.
23913         (aarch64_class_max_nregs) : Remove CORE_REGS.
23914         * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
23915         (REG_CLASS_NAMES) : Likewise.
23916         (REG_CLASS_CONTENTS) : LikeWise.
23917         (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
23919 2014-05-21  Guozhi Wei  <carrot@google.com>
23921         PR target/61202
23922         * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
23923         constraint.
23924         (vqdmulhq_n_s16): Likewise.
23926 2014-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
23928         * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
23930 2014-05-21  Marek Polacek  <polacek@redhat.com>
23932         PR sanitizer/61272
23933         * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
23935 2014-05-21  Martin Jambor  <mjambor@suse.cz>
23937         * doc/invoke.texi (Optimize Options): Document parameters
23938         ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
23939         ipa-cp-array-index-hint-bonus.
23941 2014-05-21  Mark Wielaard  <mjw@redhat.com>
23943         PR debug/16063
23944         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
23945         version >= 3 or not strict DWARF.
23946         * langhooks.h (struct lang_hooks_for_types): Add
23947         enum_underlying_base_type.
23948         * langhooks.c (lhd_enum_underlying_base_type): New function.
23949         * gcc/langhooks.h (struct lang_hooks_for_types): Add
23950         enum_underlying_base_type.
23951         * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
23952         (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
23953         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
23955 2014-05-21  Richard Biener  <rguenther@suse.de>
23957         * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
23959 2014-05-21  John Marino  <gnugcc@marino.st>
23961         * config.gcc (*-*-dragonfly*): New target.
23962         * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
23963         * configure: Regenerate.
23964         * config/dragonfly-stdint.h: New.
23965         * config/dragonfly.h: New.
23966         * config/dragonfly.opt: New.
23967         * config/i386/dragonfly.h: New.
23968         * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
23970 2014-05-21  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
23972         * tree.def (VOID_CST): New.
23973         * tree-core.h (TI_VOID): New.
23974         * tree.h (void_node): New.
23975         * tree.c (tree_node_structure_for_code, tree_code_size)
23976         (iterative_hash_expr): Handle VOID_CST.
23977         (build_common_tree_nodes): Initialize void_node.
23979 2014-05-21  Bernd Schmidt  <bernds@codesourcery.com>
23981         * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
23982         functions.
23983         (reload, calculate_needs_all_insns, reload_as_needed): Use them.
23985         * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
23986         more places.
23988         * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
23989         flag_reorder_blocks_and_partition.
23990         * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
23992 2014-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
23994         PR target/54236
23995         * config/sh/sh.md (*addc_r_1): Rename to addc_t_r.  Remove empty
23996         constraints.
23997         (*addc_r_t): Add new insn_and_split.
23999 2014-05-21  Jakub Jelinek  <jakub@redhat.com>
24001         PR middle-end/61252
24002         * omp-low.c (handle_simd_reference): New function.
24003         (lower_rec_input_clauses): Use it.  Defer adding reference
24004         initialization even for reduction without placeholder if in simd,
24005         handle it properly later on.
24007 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
24009         PR tree-optimization/60899
24010         * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
24011         assume all static symbols will have definition wile parsing and
24012         check the do have definition later in compilation; check that
24013         variable referring symbol will be output before concluding that
24014         reference is safe; be conservative for referring local statics;
24015         be more precise about when comdat is output in other partition.
24017 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
24019         PR bootstrap/60984
24020         * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
24021         parameter.
24022         * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
24023         (ipa_inline): Loop inline_to_all_callers until no more aliases
24024         are removed.
24026 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
24028         * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
24029         set writeonly flag only for vars actually written to.
24031 2014-05-20  Dehao Chen  <dehao@google.com>
24033         * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
24034         and callee count to get clone count.
24035         * tree-inline.c (expand_call_inline): Use callee count instead of bb
24036         count in copy_body.
24038 2014-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
24040         PR rtl-optimization/61243
24041         * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
24043 2014-05-20  Xinliang David Li  <davidxl@google.com>
24045         * cgraphunit.c (walk_polymorphic_call_targets): Add
24046         dbgcnt and fopt-info support.
24047         * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
24048         * ipa-devirt.c (ipa_devirt): Ditto.
24049         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
24050         * ipa.c (walk_polymorphic_call_targets): Ditto.
24051         * gimple-fold.c (fold_gimple_assign): Ditto.
24052         (gimple_fold_call): Ditto.
24053         * dbgcnt.def: New counter.
24055 2014-05-20  DJ Delorie  <dj@redhat.com>
24057         * config/msp430/msp430.md (split): Don't allow subregs when
24058         splitting SImode adds.
24059         (andneghi): Fix subtraction logic.
24060         * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
24062 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
24064         * tree.h (DECL_ONE_ONLY): Return true only for externally visible
24065         symbols.
24066         * except.c (switch_to_exception_section, resolve_unique_section,
24067         get_named_text_section, default_function_rodata_section,
24068         align_variable, get_block_for_decl, default_section_type_flags):
24069         Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
24070         * symtab.c (symtab_add_to_same_comdat_group,
24071         symtab_make_decl_local, fixup_same_cpp_alias_visibility,
24072         symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
24073         Likewise.
24074         * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
24075         * bb-reorder.c (pass_partition_blocks::gate): Likewise.
24076         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
24077         (c6x_function_in_section_p): Likewise.
24078         * config/darwin.c (machopic_select_section): Likewise.
24079         * config/arm/arm.c (arm_function_in_section_p): Likewise.
24080         * config/mips/mips.c (mips_function_rodata_section): Likewise.
24081         * config/mep/mep.c (mep_select_section): LIkewise.
24082         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
24084 2014-05-20  Eric Botcazou  <ebotcazou@adacore.com>
24086         * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
24087         EH region of calls to pure functions that can throw an exception.
24088         * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
24089         (copy_reference_ops_from_call): Also copy the EH region of the call if
24090         it can throw an exception.
24092 2014-05-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24094         * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
24095         nested VEC_SELECTs that are inverses of each other.
24097 2014-05-20  Richard Biener  <rguenther@suse.de>
24099         * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
24100         (extract_and_process_scc_for_name): not here.
24101         (cond_dom_walker::before_dom_children): Only process
24102         stmts that end the BB in interesting ways.
24103         (run_scc_vn): Mark param uses as visited.
24105 2014-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24107         * config/arm/arm.md (arith_shiftsi): Do not predicate for
24108         arm_restrict_it.
24110 2014-05-20  Nick Clifton  <nickc@redhat.com>
24112         * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
24113         (msp430_gimplify_va_arg_expr): New function.
24114         (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
24116         * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
24117         operand 0 in order to prevent confusion about the number of
24118         registers involved.
24120 2014-05-20  Richard Biener  <rguenther@suse.de>
24122         PR tree-optimization/61221
24123         * tree-ssa-pre.c (el_to_update): Remove.
24124         (eliminate_dom_walker::before_dom_children): Handle released
24125         VDEFs by value-numbering them to the associated VUSE.  Update
24126         stmt immediately for substituted call address.
24127         (eliminate): Remove delayed stmt updating code.
24128         * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
24129         possibly late re-numbered vuses.
24130         (vn_reference_lookup_2): Adjust.
24131         (vn_reference_lookup_pieces): Likewise.
24132         (vn_reference_lookup): Likewise.
24134 2014-05-20  Richard Biener  <rguenther@suse.de>
24136         * config.gcc: Remove need_64bit_hwint.
24137         * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
24138         * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
24139         it to be true.
24140         * config.in: Regenerate.
24141         * configure: Likewise.
24143 2014-05-19  David Wohlferd <dw@LimeGreenSocks.com>
24145         * doc/extend.texi: Create Label Attributes section,
24146         move all label attributes into it and reference it.
24148 2014-05-19  Richard Earnshaw  <rearnsha@arm.com>
24150         * arm.c (thumb1_reorg): When scanning backwards skip anything
24151         that's not a proper insn.
24153 2014-05-19  Richard Biener  <rguenther@suse.de>
24155         PR tree-optimization/61221
24156         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
24157         Do nothing for unreachable blocks.
24158         * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
24159         Improve unreachability detection.
24161 2014-05-19  Richard Biener  <rguenther@suse.de>
24163         PR tree-optimization/61209
24164         * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
24166 2014-05-19  Nick Clifton  <nickc@redhat.com>
24168         * except.c (init_eh): Fix computation of builtin setjmp buffer
24169         size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
24171 2014-05-19  Richard Biener  <rguenther@suse.de>
24173         PR tree-optimization/61184
24174         * tree-vrp.c (is_negative_overflow_infinity): Use
24175         TREE_OVERFLOW_P and do that check first.
24176         (is_positive_overflow_infinity): Likewise.
24177         (is_overflow_infinity): Likewise.
24178         (vrp_operand_equal_p): Properly treat operands with
24179         differing overflow as not equal.
24181 2014-05-19  Bernd Schmidt  <bernds@codesourcery.com>
24183         * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
24184         shift simplification where it was intended.
24186 2014-05-19  Christian Bruel  <christian.bruel@st.com>
24188         PR target/61195
24189         * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
24191 2014-05-19  Richard Sandiford  <r.sandiford@uk.ibm.com>
24193         PR target/61084
24194         * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
24195         than wide_int.
24197 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
24199         * reg-notes.def (CROSSING_JUMP): Likewise.
24200         * rtl.h (rtx_def): Update comment for jump flag.
24201         (CROSSING_JUMP_P): Define.
24202         * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
24203         of a REG_CROSSING_JUMP note.
24204         * cfghooks.c (tidy_fallthru_edges): Likewise.
24205         * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
24206         * emit-rtl.c (try_split): Likewise.
24207         * haifa-sched.c (sched_create_recovery_edges): Likewise.
24208         * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
24209         * jump.c (redirect_jump_2): Likewise.
24210         * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
24211         (relax_delay_slots): Likewise.
24212         * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
24213         (bbit_di): Likewise.
24214         * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
24215         * config/sh/sh.md (jump_compact): Likewise.
24216         * bb-reorder.c (rotate_loop): Likewise.
24217         (pass_duplicate_computed_gotos::execute): Likewise.
24218         (add_reg_crossing_jump_notes): Rename to...
24219         (update_crossing_jump_flags): ...this.
24220         (pass_partition_blocks::execute): Update accordingly.
24222 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
24224         * tree.h: Remove extraneous template <>.
24226 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
24228         * ipa.c (symtab_remove_unreachable_nodes): Remove
24229         symbol from comdat group if its body was eliminated.
24230         (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
24231         * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
24232         (symtab_unregister_node): ... this one.
24233         (verify_symtab_base): More strict checking of comdats.
24234         * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
24236 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
24238         * tree-pass.h (make_pass_ipa_comdats): New pass.
24239         * timevar.def (TV_IPA_COMDATS): New timevar.
24240         * passes.def (pass_ipa_comdats): Add.
24241         * Makefile.in (OBJS): Add ipa-comdats.o
24242         * ipa-comdats.c: New file.
24244 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
24246         * ipa.c (update_visibility_by_resolution_info): New function.
24247         (function_and_variable_visibility): Use it.
24249 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
24251         * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
24252         New functions.
24253         (FOR_EACH_DEFINED_SYMBOL): New macro.
24254         (varpool_first_static_initializer, varpool_next_static_initializer,
24255         varpool_first_defined_variable, varpool_next_defined_variable):
24256         Fix comments.
24257         (symtab_in_same_comdat_p): Correctly deal with inline functions.
24259 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
24261         * ggc-page.c (ggc_handle_finalizers): Add comment.
24263 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
24265         * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
24266         * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
24267         (ggc_internal_cleared_alloc): Likewise.
24268         * ggc-page.c (finalizer): New class.
24269         (vec_finalizer): Likewise.
24270         (globals::finalizers): New member.
24271         (globals::vec_finalizers): Likewise.
24272         (ggc_internal_alloc): Record the finalizer if any for the block being
24273         allocated.
24274         (ggc_handle_finalizers): New function.
24275         (ggc_collect): Call ggc_handle_finalizers.
24276         * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
24277         finalizer.
24278         (ggc_internal_cleared_alloc): Likewise.
24279         (finalize): New function.
24280         (need_finalization_p): Likewise.
24281         (ggc_alloc): Install the type's destructor as the finalizer if it
24282         might do something.
24283         (ggc_cleared_alloc): Likewise.
24284         (ggc_vec_alloc): Likewise.
24285         (ggc_cleared_vec_alloc): Likewise.
24287 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
24289         * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
24291 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
24293         * alias.c (record_alias_subset): Adjust.
24294         * bitmap.c (bitmap_element_allocate): Likewise.
24295         (bitmap_gc_alloc_stat): Likewise.
24296         * cfg.c (init_flow): Likewise.
24297         (alloc_block): Likewise.
24298         (unchecked_make_edge): Likewise.
24299         * cfgloop.c (alloc_loop): Likewise.
24300         (flow_loops_find): Likewise.
24301         (rescan_loop_exit): Likewise.
24302         * cfgrtl.c (init_rtl_bb_info): Likewise.
24303         * cgraph.c (insert_new_cgraph_node_version): Likewise.
24304         (cgraph_allocate_node): Likewise.
24305         (cgraph_create_edge_1): Likewise.
24306         (cgraph_allocate_init_indirect_info): Likewise.
24307         * cgraphclones.c (cgraph_clone_edge): Likewise.
24308         * cgraphunit.c (add_asm_node): Likewise.
24309         (init_lowered_empty_function): Likewise.
24310         * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
24311         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
24312         (alpha_use_linkage): Likewise.
24313         * config/arc/arc.c (arc_init_machine_status): Likewise.
24314         * config/arm/arm.c (arm_init_machine_status): Likewise.
24315         * config/avr/avr.c (avr_init_machine_status): Likewise.
24316         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
24317         * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
24318         * config/cris/cris.c (cris_init_machine_status): Likewise.
24319         * config/darwin.c (machopic_indirection_name): Likewise.
24320         (darwin_build_constant_cfstring): Likewise.
24321         (darwin_enter_string_into_cfstring_table): Likewise.
24322         * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
24323         * config/frv/frv.c (frv_init_machine_status): Likewise.
24324         * config/i386/i386.c (get_dllimport_decl): Likewise.
24325         (ix86_init_machine_status): Likewise.
24326         (assign_386_stack_local): Likewise.
24327         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
24328         (i386_pe_maybe_record_exported_symbol): Likewise.
24329         (i386_pe_record_stub): Likewise.
24330         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
24331         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
24332         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
24333         (m32c_note_pragma_address): Likewise.
24334         * config/mep/mep.c (mep_init_machine_status): Likewise.
24335         (mep_note_pragma_flag): Likewise.
24336         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
24337         (mips16_local_alias): Likewise.
24338         (mips_init_machine_status): Likewise.
24339         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
24340         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
24341         * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
24342         * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
24343         * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
24344         * config/pa/pa.c (pa_init_machine_status): Likewise.
24345         (pa_get_deferred_plabel): Likewise.
24346         * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
24347         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
24348         (rs6000_init_machine_status): Likewise.
24349         (output_toc): Likewise.
24350         * config/s390/s390.c (s390_init_machine_status): Likewise.
24351         * config/score/score.c (score_output_external): Likewise.
24352         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
24353         * config/spu/spu.c (spu_init_machine_status): Likewise.
24354         * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
24355         * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
24356         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
24357         * coverage.c (coverage_end_function): Likewise.
24358         * dbxout.c (dbxout_init): Likewise.
24359         * doc/gty.texi: Don't mention variable_size attribute.
24360         * dwarf2cfi.c (new_cfi): Adjust.
24361         (new_cfi_row): Likewise.
24362         (copy_cfi_row): Likewise.
24363         (create_cie_data): Likewise.
24364         * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
24365         (new_loc_descr): Likewise.
24366         (find_AT_string_in_table): Likewise.
24367         (add_addr_table_entry): Likewise.
24368         (new_die): Likewise.
24369         (add_var_loc_to_decl): Likewise.
24370         (clone_die): Likewise.
24371         (clone_as_declaration): Likewise.
24372         (break_out_comdat_types): Likewise.
24373         (new_loc_list): Likewise.
24374         (add_loc_descr_to_each): Likewise.
24375         (add_location_or_const_value_attribute): Likewise.
24376         (add_linkage_name): Likewise.
24377         (lookup_filename): Likewise.
24378         (dwarf2out_var_location): Likewise.
24379         (new_line_info_table): Likewise.
24380         (dwarf2out_init): Likewise.
24381         (mem_loc_descriptor): Likewise.
24382         (loc_descriptor): Likewise.
24383         (add_const_value_attribute): Likewise.
24384         (tree_add_const_value_attribute): Likewise.
24385         (comp_dir_string): Likewise.
24386         (dwarf2out_vms_debug_main_pointer): Likewise.
24387         (string_cst_pool_decl): Likewise.
24388         * emit-rtl.c (set_mem_attrs): Likewise.
24389         (get_reg_attrs): Likewise.
24390         (start_sequence): Likewise.
24391         (init_emit): Likewise.
24392         (init_emit_regs): Likewise.
24393         * except.c (init_eh_for_function): Likewise.
24394         (gen_eh_region): Likewise.
24395         (gen_eh_region_catch): Likewise.
24396         (gen_eh_landing_pad): Likewise.
24397         (add_call_site): Likewise.
24398         * function.c (add_frame_space): Likewise.
24399         (insert_temp_slot_address): Likewise.
24400         (assign_stack_temp_for_type): Likewise.
24401         (get_hard_reg_initial_val): Likewise.
24402         (allocate_struct_function): Likewise.
24403         (prepare_function_start): Likewise.
24404         (types_used_by_var_decl_insert): Likewise.
24405         * gengtype.c (variable_size_p): Remove function.
24406         (enum alloc_quantity): Remove enum.
24407         (write_typed_alloc_def): Remove function.
24408         (write_typed_struct_alloc_def): Likewise.
24409         (write_typed_typedef_alloc_def): Likewise.
24410         (write_typed_alloc_defns): Likewise.
24411         (main): Adjust.
24412         * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
24413         (ggc_cleared_alloc_ptr_array_two_args): Likewise.
24414         * ggc.h (ggc_alloc): new function.
24415         (ggc_cleared_alloc): Likewise.
24416         (ggc_vec_alloc): Template on type of vector element, and remove
24417         element size argument.
24418         (ggc_cleared_vec_alloc): Likewise.
24419         * gimple.c (gimple_build_omp_for): Adjust.
24420         (gimple_copy): Likewise.
24421         * ipa-cp.c (get_replacement_map): Likewise.
24422         (find_aggregate_values_for_callers_subset): Likewise.
24423         (known_aggs_to_agg_replacement_list): Likewise.
24424         * ipa-devirt.c (get_odr_type): Likewise.
24425         * ipa-prop.c (ipa_node_duplication_hook): Likewise.
24426         (read_agg_replacement_chain): Likewise.
24427         * loop-iv.c (get_simple_loop_desc): Likewise.
24428         * lto-cgraph.c (input_node_opt_summary): Likewise.
24429         * lto-section-in.c (lto_new_in_decl_state): Likewise.
24430         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
24431         (input_eh_region): Likewise.
24432         (input_eh_lp): Likewise.
24433         (input_cfg): Likewise.
24434         * optabs.c (set_optab_libfunc): Likewise.
24435         (init_tree_optimization_optabs): Likewise.
24436         (set_conv_libfunc): Likewise.
24437         * passes.c (do_per_function_toporder): Likewise.
24438         * rtl.h: Don't use variable_size gty attribute.
24439         * sese.c (if_region_set_false_region): Adjust.
24440         * stringpool.c (gt_pch_save_stringpool): Likewise.
24441         * target-globals.c (save_target_globals): Likewise.
24442         * toplev.c (general_init): Likewise.
24443         * trans-mem.c (record_tm_replacement): Likewise.
24444         (split_bb_make_tm_edge): Likewise.
24445         * tree-cfg.c (move_sese_region_to_fn): Likewise.
24446         * tree-data-ref.h (lambda_vector_new): Likewise.
24447         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
24448         * tree-iterator.c (tsi_link_before): Likewise.
24449         (tsi_link_after): Likewise.
24450         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
24451         * tree-ssa-loop-niter.c (record_estimate): Likewise.
24452         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
24453         * tree-ssa-operands.h: Don't use variable_size gty attribute.
24454         * tree-ssa.c (init_tree_ssa): Adjust.
24455         * tree-ssanames.c (set_range_info): Likewise.
24456         (get_ptr_info): Likewise.
24457         (duplicate_ssa_name_ptr_info): Likewise.
24458         (duplicate_ssa_name_range_info): Likewise.
24459         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
24460         (unpack_ts_fixed_cst_value_fields): Likewise.
24461         * tree.c (build_fixed): Likewise.
24462         (build_real): Likewise.
24463         (build_string): Likewise.
24464         (decl_priority_info): Likewise.
24465         (decl_debug_expr_insert): Likewise.
24466         (decl_value_expr_insert): Likewise.
24467         (decl_debug_args_insert): Likewise.
24468         (type_hash_add): Likewise.
24469         (build_omp_clause): Likewise.
24470         * ubsan.c (decl_for_type_insert): Likewise.
24471         * varasm.c (get_unnamed_section): Likewise.
24472         (get_noswitch_section): Likewise.
24473         (get_section): Likewise.
24474         (get_block_for_section): Likewise.
24475         (create_block_symbol): Likewise.
24476         (build_constant_desc): Likewise.
24477         (create_constant_pool): Likewise.
24478         (force_const_mem): Likewise.
24479         (record_tm_clone_pair): Likewise.
24480         * varpool.c (varpool_create_empty_node): Likewise.
24482 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
24484         * dwarf2out.c (tree_add_const_value_attribute): Call
24485         ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
24486         * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
24487         instead of ggc_internal_<x>alloc_stat.
24488         * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
24489         (ggc_realloc): Likewise.
24490         * ggc-none.c (ggc_internal_alloc): Likewise.
24491         (ggc_internal_cleared_alloc): Likewise.
24492         * ggc-page.c: Likewise.
24493         * ggc.h (ggc_internal_alloc_stat): Likewise.
24494         (ggc_internal_alloc): Remove macro.
24495         (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
24496         (ggc_internal_cleared_alloc): Remove macro.
24497         (GGC_RESIZEVEC): Adjust.
24498         (ggc_resizevar): Remove macro.
24499         (ggc_internal_vec_alloc_stat): Drop _stat suffix.
24500         (ggc_internal_cleared_vec_alloc_stat): Likewise.
24501         (ggc_internal_vec_cleared_alloc): Remove macro.
24502         (ggc_alloc_atomic_stat): Drop _stat suffix.
24503         (ggc_alloc_atomic): Remove macro.
24504         (ggc_alloc_cleared_atomic): Remove macro.
24505         (ggc_alloc_string_stat): Drop _stat suffix.
24506         (ggc_alloc_string): Remove macro.
24507         (ggc_alloc_rtx_def_stat): Adjust.
24508         (ggc_alloc_tree_node_stat): Likewise.
24509         (ggc_alloc_cleared_tree_node_stat): Likewise.
24510         (ggc_alloc_cleared_gimple_statement_stat): Likewise.
24511         (ggc_alloc_cleared_simd_clone_stat): Likewise.
24512         * gimple.c (gimple_build_omp_for): Likewise.
24513         (gimple_copy): Likewise.
24514         * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
24515         * toplev.c (realloc_for_line_map): Adjust.
24516         * tree-data-ref.h (lambda_vector_new): Likewise.
24517         * tree-phinodes.c (allocate_phi_node): Likewise.
24518         * tree.c (grow_tree_vec_stat): Likewise.
24519         * vec.h (va_gc::reserve): Adjust.
24521 2014-05-17  Ajit Agarwal  <ajitkum@xilinx.com>
24523         * config/microblaze/microblaze.c (break_handler): New Declaration.
24524         (microblaze_break_function_p,microblaze_is_break_handler): New.
24525         (compute_frame_size): Use microblaze_break_function_p.
24526         Add the test of break_handler.
24527         (microblaze_function_prologue) : Add the test of variable
24528         break_handler.  Check the fnname by BREAK_HANDLER_NAME.
24529         (microblaze_function_epilogue) : Add the test of break_handler.
24530         (microblaze_globalize_label) : Add the test of break_handler.
24531         Check the name by BREAK_HANDLER_NAME.
24533         * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
24535         * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
24536         microblaze_is_break_handler test.
24537         (call_internal1,call_value_intern): Use microblaze_break_function_p.
24538         Use SYMBOL_REF_DECL.
24540         * config/microblaze/microblaze-protos.h
24541         (microblaze_break_function_p,microblaze_is_break_handler):
24542         New Declaration.
24544         * doc/extend.texi (MicroBlaze break_handler Functions): Document
24545         new MicroBlaze break_handler functions.
24547 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
24549         * doc/extend.texi (Size of an asm): Move node text according
24550         to its @menu entry position.
24552 2014-05-17  Marc Glisse  <marc.glisse@inria.fr>
24554         PR tree-optimization/61140
24555         PR tree-optimization/61150
24556         PR tree-optimization/61197
24557         * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
24559 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
24561         * doc/invoke.texi (free): Mention Alpha.  Also enabled at -Os.
24563 2014-05-17  Richard Sandiford  <r.sandiford@uk.ibm.com>
24565         * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
24566         __SIZEOF_INT128__ is defined.
24568 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
24570         * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
24571         (rs6000_delegitimize_address): Use it.
24573 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
24575         * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
24576         inplace argument.  Store the new address in the original MEM when true.
24577         * emit-rtl.c (change_address_1): Likewise.
24578         (adjust_address_1, adjust_automodify_address_1, offset_address):
24579         Update accordingly.
24580         * rtl.h (plus_constant): Add an inplace argument.
24581         * explow.c (plus_constant): Likewise.  Try to reuse the original PLUS
24582         when true.  Avoid generating (plus X (const_int 0)).
24583         * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
24584         in-place.  Pass true to plus_constant.
24585         (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
24587 2014-05-16  Dehao Chen  <dehao@google.com>
24589         * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
24591 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
24593         PR target/54089
24594         * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
24595         patterns.
24596         * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
24598 2014-05-16  Dehao Chen  <dehao@google.com>
24600         * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
24601         optimize_function_for_size_p.
24602         * regs.h (REG_FREQ_FROM_BB): Likewise.
24604 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
24606         PR target/51244
24607         * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
24608         negt_reg_operand cases.
24609         * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
24610         predicate.
24611         * config/sh/predicates.md (cbranch_treg_value): Simplify.
24613 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
24615         * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
24616         target variants.
24618 2014-05-16  David Malcolm  <dmalcolm@redhat.com>
24620         Revert:
24621         2014-04-29  David Malcolm  <dmalcolm@redhat.com>
24623         * tree-cfg.c (dump_function_to_file): Dump the return type of
24624         functions, in a line to itself before the function body, mimicking
24625         the layout of a C function.
24627 2014-05-16  Dehao Chen  <dehao@google.com>
24629         * cfghooks.c (make_forwarder_block): Use direct computation to
24630         get fall-through edge's count and frequency.
24632 2014-05-16  Benno Schulenberg  <bensberg@justemail.net>
24634         * config/arc/arc.c (arc_init): Fix typo in error message.
24635         * config/i386/i386.c (ix86_expand_builtin): Likewise.
24636         (split_stack_prologue_scratch_regno): Likewise.
24637         * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
24638         word from error message.
24640 2014-05-16  Zhouyi Zhou <yizhouzhou@ict.ac.cn>
24642         * ira-costs.c: Fix typo in comment.
24644 2014-05-16  David Wohlferd <dw@LimeGreenSocks.com>
24646         * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
24648 2014-05-16  Jan Hubicka  <hubicka@ucw.cz>
24650         * varpool.c (dump_varpool_node): Dump write-only flag.
24651         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
24652         write-only flag.
24653         * tree-cfg.c (execute_fixup_cfg): Remove statements setting
24654         write-only variables.
24655         * ipa.c (process_references): New function.
24656         (set_readonly_bit): New function.
24657         (set_writeonly_bit): New function.
24658         (clear_addressable_bit): New function.
24659         (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
24660         fix handling of aliases.
24661         * cgraph.h (struct varpool_node): Add writeonly flag.
24663 2014-05-16  Vladimir Makarov  <vmakarov@redhat.com>
24665         PR rtl-optimization/60969
24666         * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
24667         Calculate costs for this case.
24669 2014-05-16  Eric Botcazou  <ebotcazou@adacore.com>
24671         * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
24672         <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
24674 2014-05-16  Richard Biener  <rguenther@suse.de>
24676         PR tree-optimization/61194
24677         * tree-vect-patterns.c (adjust_bool_pattern): Also handle
24678         bool patterns ending in a COND_EXPR.
24680 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
24682         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
24684 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
24686         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
24687         where we were unable to cost an RTX.
24689 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
24691         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
24692         HIGH, LO_SUM.
24694 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
24695             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
24697         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
24699 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
24700             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
24702         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
24703         FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
24705 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
24706             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
24708         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
24709         operators.
24711 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
24712             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
24714         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
24715         DIV/MOD.
24717 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
24718             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
24720         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
24721         (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
24723 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
24724             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
24726         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
24727         rotates and shifts.
24729 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
24730             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
24732         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
24733         ZERO_EXTEND and SIGN_EXTEND better.
24735 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
24736             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
24738         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
24739         logical operations.
24741 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
24742             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
24744         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
24745         costs when costing loads and stores to memory.
24747 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
24748             Philip Tomsich  <philipp.tomsich@theobroma-systems.com>
24750         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
24751         for SET RTX.
24753 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
24755         * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
24757 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
24758             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
24760         * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
24761         to...
24762         (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
24763         well formed.
24764         (aarch64_rtx_mult_cost): New.
24765         (aarch64_rtx_costs): Use it, refactor as appropriate.
24767 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
24768             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
24770         * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
24771         emit instructions, return number of instructions which would
24772         be emitted.
24773         (aarch64_add_constant): Update call to aarch64_build_constant.
24774         (aarch64_output_mi_thunk): Likewise.
24775         (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
24776         a CONST_DOUBLE.
24778 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
24780         * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
24781         (TARGET_RTX_COSTS): Call it.
24783 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
24785         * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
24786         (cortexa57_vector_cost): Likewise.
24787         (cortexa57_tunings): Use them.
24789 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
24791         * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
24792         (cpu_addrcost_table): Use it.
24793         * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
24794         (aarch64_address_cost): Rewrite using aarch64_classify_address,
24795         move it.
24797 2014-05-16  Richard Biener  <rguenther@suse.de>
24799         * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
24800         (set_ssa_val_to): Handle unexpected sets to VN_TOP.
24801         (visit_phi): Ignore edges marked as not executable.
24802         (class cond_dom_walker): New.
24803         (cond_dom_walker::before_dom_children): Value-number
24804         control statements and mark successor edges as not
24805         executable if possible.
24806         (run_scc_vn): First walk all control statements in
24807         dominator order, marking edges as not executable.
24808         * tree-inline.c (copy_edges_for_bb): Be not confused
24809         about random edge flags.
24811 2014-05-16  Richard Biener  <rguenther@suse.de>
24813         * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
24815 2014-05-15  Peter Bergner  <bergner@vnet.ibm.com>
24817         PR target/61193
24818         * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
24819         (__TM_simple_begin): Use it.
24820         (__TM_begin): Likewise.
24822 2014-05-15  Martin Jambor  <mjambor@suse.cz>
24824         PR ipa/61085
24825         * ipa-prop.c (update_indirect_edges_after_inlining): Check
24826         type_preserved flag when the indirect edge is polymorphic.
24828 2014-05-15  Martin Jambor  <mjambor@suse.cz>
24830         PR tree-optimization/61090
24831         * tree-sra.c (sra_modify_expr): Pass the current gsi to
24832         build_ref_for_model.
24834 2014-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24836         * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
24837         enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
24839 2014-05-15  Jakub Jelinek  <jakub@redhat.com>
24841         PR tree-optimization/61158
24842         * fold-const.c (fold_binary_loc): If X is zero-extended and
24843         shiftc >= prec, make sure zerobits is all ones instead of
24844         invoking undefined behavior.
24846 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
24848         * regcprop.h: New file.
24849         * regcprop.c (skip_debug_insn_p): New decl.
24850         (replace_oldest_value_reg): Check skip_debug_insn_p.
24851         (copyprop_hardreg_forward_bb_without_debug_insn): New function.
24852         * shrink-wrap.c: Include regcprop.h.
24853         (prepare_shrink_wrap): Call
24854         copyprop_hardreg_forward_bb_without_debug_insn.
24856 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
24858         * shrink-wrap.h: Update comment.
24859         * shrink-wrap.c: Update comment.
24860         (next_block_for_reg): Rename to live_edge_for_reg.
24861         (live_edge_for_reg): Allow live_edge->dest has two predecessors.
24862         (move_insn_for_shrink_wrap): Split live_edge.
24863         (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
24865 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
24867         * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
24868         Delete.
24869         * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
24870         * config/sparc/sparc.md (fptype_ut699): New attribute.
24871         (in_branch_delay): Return false if -mfix-ut699 is specified and
24872         fptype_ut699 is set to single.
24873         (truncdfsf2): Add fptype_ut699 attribute.
24874         (fix_truncdfsi2): Likewise.
24875         (floatsisf2): Change fptype attribute.
24876         (fix_truncsfsi2): Likewise.
24877         (negtf2_notv9): Delete.
24878         (negtf2_v9): Likewise.
24879         (negtf2_hq): New instruction.
24880         (negtf2): New instruction and splitter.
24881         (negdf2_notv9): Rewrite.
24882         (abstf2_notv9): Delete.
24883         (abstf2_hq_v9): Likewise.
24884         (abstf2_v9): Likewise.
24885         (abstf2_hq): New instruction.
24886         (abstf2): New instruction and splitter.
24887         (absdf2_notv9): Rewrite.
24889 2014-05-14  Cary Coutant  <ccoutant@google.com>
24891         PR debug/61013
24892         * opts.c (common_handle_option): Don't special-case "-g".
24893         (set_debug_level): Default to at least level 2 with "-g".
24895 2014-05-14  DJ Delorie  <dj@redhat.com>
24897         * config/msp430/msp430.c (msp430_builtin): Add
24898         MSP430_BUILTIN_DELAY_CYCLES.
24899         (msp430_init_builtins): Register void __delay_cycles(long long).
24900         (msp430_builtin_decl): Add it.
24901         (cg_magic_constant): New.
24902         (msp430_expand_delay_cycles): New.
24903         (msp430_expand_builtin): Call it.
24904         (msp430_print_operand_raw): Change integer printing from "int" to
24905         HOST_WIDE_INT.
24906         * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
24907         (delay_cycles_start): New.
24908         (delay_cycles_end): New.
24909         (delay_cycles_32): New.
24910         (delay_cycles_32x): New.
24911         (delay_cycles_16): New.
24912         (delay_cycles_16x): New.
24913         (delay_cycles_2): New.
24914         (delay_cycles_1): New.
24915         * doc/extend.texi: Document __delay_cycles().
24917 2014-05-14  Sandra Loosemore  <sandra@codesourcery.com>
24919         * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
24920         length attribute computation.
24922 2014-05-14  Richard Sandiford  <rdsandiford@googlemail.com>
24924         PR debug/61188
24925         * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
24927 2014-05-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
24929         PR target/61084
24930         * config/sparc/sparc.md: Fix types of low and high in DI constant
24931         splitter.  Use gen_int_mode in some other splitters.
24933 2014-05-14  Martin Jambor  <mjambor@suse.cz>
24935         PR ipa/60897
24936         * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
24938 2014-05-14  James Norris  <jnorris@codesourcery.com>
24940         * omp-low.c (expand_parallel_call): Remove shadow variable.
24941         (expand_omp_taskreg): Likewise.
24943 2014-05-14  Ilya Tocar  <ilya.tocar@intel.com>
24945         * common/config/i386/i386-common.c
24946         (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
24947         (OPTION_MASK_ISA_XSAVES_SET): Ditto.
24948         (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
24949         (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
24950         (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
24951         (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
24952         (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
24953         * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
24954         xsavecintrin.h, xsavesintrin.h.
24955         (x86_64-*-*): Ditto.
24956         * config/i386/clflushoptintrin.h: New.
24957         * config/i386/xsavecintrin.h: Ditto.
24958         * config/i386/xsavesintrin.h: Ditto.
24959         * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
24960         (bit_XSAVES): Ditto.
24961         (bit_XSAVES): Ditto.
24962         * config/i386/driver-i386.c (host_detect_local_cpu): Handle
24963         -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
24964         -mno-clflushopt.
24965         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
24966         OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
24967         OPTION_MASK_ISA_XSAVES.
24968         * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
24969         -mxsavec, -mxsaves.
24970         (PTA_CLFLUSHOPT) Define.
24971         (PTA_XSAVEC): Ditto.
24972         (PTA_XSAVES): Ditto.
24973         (ix86_option_override_internal): Handle new options.
24974         (ix86_valid_target_attribute_inner_p): Ditto.
24975         (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
24976         IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
24977         IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
24978         (bdesc_special_args): Add __builtin_ia32_xsaves,
24979         __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
24980         __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
24981         (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
24982         (ix86_expand_builtin): Handle new builtins.
24983         * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
24984         (TARGET_CLFLUSHOPT_P): Ditto.
24985         (TARGET_XSAVEC): Ditto.
24986         (TARGET_XSAVEC_P): Ditto.
24987         (TARGET_XSAVES): Ditto.
24988         (TARGET_XSAVES_P): Ditto.
24989         * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
24990         (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
24991         (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
24992         (ANY_XRSTOR): New.
24993         (ANY_XRSTOR64): Ditto.
24994         (xrstor): Ditto.
24995         (xrstor): Change into <xrstor>.
24996         (xrstor_rex64): Change into <xrstor>_rex64.
24997         (xrstor64): Change into <xrstor>64
24998         (clflushopt): New.
24999         * config/i386/i386.opt (mclflushopt): New.
25000         (mxsavec): Ditto.
25001         (mxsaves): Ditto.
25002         * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
25003         xsavecintrin.h.
25004         * doc/invoke.texi: Document new options.
25006 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
25008         PR rtl-optimization/60866
25009         * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
25010         Default it to -1.  Pass it down to init_simplejump_data.
25011         (init_simplejump_data): New parameter old_seqno.  Pass it down
25012         to get_seqno_for_a_jump.
25013         (get_seqno_for_a_jump): New parameter old_seqno.  Use it for
25014         initializing new jump seqno as a last resort.  Add comment.
25015         (sel_redirect_edge_and_branch): Save old seqno of the conditional
25016         jump and pass it down to sel_init_new_insn.
25017         (sel_redirect_edge_and_branch_force): Likewise.
25019 2014-05-14  Georg-Johann Lay  <avr@gjlay.de>
25021         * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
25022         shifted values to avoid build warning.
25024 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
25026         * cfgcleanup.c (try_forward_edges): Use location_t for locations.
25027         * cfgrtl.c (rtl_merge_blocks): Fix comment.
25028         (cfg_layout_merge_blocks): Likewise.
25029         * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
25031 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
25033         PR rtl-optimization/60901
25034         * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
25035         bb predecessor belongs to the same scheduling region.  Adjust comment.
25037 2014-05-13  Peter Bergner  <bergner@vnet.ibm.com>
25039         * doc/sourcebuild.texi: (dfp_hw): Document.
25040         (p8vector_hw): Likewise.
25041         (powerpc_eabi_ok): Likewise.
25042         (powerpc_elfv2): Likewise.
25043         (powerpc_htm_ok): Likewise.
25044         (ppc_recip_hw): Likewise.
25045         (vsx_hw): Likewise.
25047 2014-05-13  Cary Coutant  <ccoutant@google.com>
25049         * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
25051 2014-05-13  David Malcolm  <dmalcolm@redhat.com>
25053         * gengtype-parse.c (require3): Eliminate in favor of...
25054         (require4): New.
25055         (require_template_declaration): Update to support optional single *
25056         on a type.
25058         * gengtype.c (get_ultimate_base_class): Add a non-const overload.
25059         (create_user_defined_type): Handle a single level of explicit
25060         pointerness within template arguments.
25061         (struct write_types_data): Add field "kind".
25062         (filter_type_name): Handle "*" character.
25063         (write_user_func_for_structure_ptr): Require a write_types_data
25064         rather than just a prefix string, so that we can look up the kind
25065         of the wtd and use it as an index into wrote_user_func_for_ptr,
25066         ensuring that such functions are written at most once.  Support
25067         subclasses by invoking the marking function of the ultimate base class.
25068         (write_user_func_for_structure_body): Require a write_types_data
25069         rather than just a prefix string, so that we can pass this to
25070         write_user_func_for_structure_ptr.
25071         (write_func_for_structure): Likewise.
25072         (ggc_wtd): Add initializer of new "kind" field.
25073         (pch_wtd): Likewise.
25075         * gengtype.h (enum write_types_kinds): New.
25076         (struct type): Add field wrote_user_func_for_ptr to the "s"
25077         union member.
25079 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
25081         * fold-const.c (optimize_bit_field_compare): Use wi:: operations
25082         instead of const_binop.
25083         (fold_binary_loc): Likewise.
25085 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
25087         * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
25088         calculation to match get_ref_base_and_extent.
25090 2014-05-13  Catherine Moore  <clm@codesourcery.com>
25091             Sandra Loosemore  <sandra@codesourcery.com>
25093         * configure.ac: Fix assembly for explicit JALR relocation check.
25094         * configure: Regenerate.
25096 2014-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25098         * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
25099         (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
25100         Remove associated type declarations and initialisations.
25101         (arm_expand_neon_builtin): Likewise.
25102         (neon_emit_pair_result_insn): Delete.
25103         * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
25104         * config/arm/neon.md (neon_vtrn<mode>): Delete.
25105         (neon_vzip<mode>): Likewise.
25106         (neon_vuzp<mode>): Likewise.
25108 2014-05-13  Richard Biener  <rguenther@suse.de>
25110         PR ipa/60973
25111         * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
25112         it needs revisiting whether the call still may be tail-called.
25114 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
25116         * rtl.def (SYMBOL_REF): Remove middle "0" field.
25117         * rtl.h (block_symbol): Reduce number of fields to 2.
25118         (rtx_def): Add u2.symbol_ref_flags.
25119         (SYMBOL_REF_FLAGS): Use it.
25120         (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
25121         (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
25122         * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
25123         Lower index of SYMBOL_REF_DATA.
25124         * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
25125         Print SYMBOL_REF_FLAGS at the same time.
25126         * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
25128 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
25130         * rtl.def (VAR_LOCATION): Remove "i" field.
25131         * rtl.h (rtx_def): Add u2.var_location_status.
25132         (PAT_VAR_LOCATION_STATUS): Use it.
25133         (gen_rtx_VAR_LOCATION): Declare.
25134         * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
25135         * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
25136         * var-tracking.c (emit_note_insn_var_location): Remove casts.
25138 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
25140         * rtl.def (scratch): Fix outdated comment and remove "0" field.
25141         * gengtype.c (adjust_field_rtx_def): Update accordingly.
25143 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
25145         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
25146         (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
25147         * rtl.h (rtx_def): Add insn_uid to u2 field.
25148         (RTX_FLAG_CHECK8): Delete in favor of...
25149         (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
25150         (INSN_DELETED_P): Update accordingly.
25151         (INSN_UID): Use u2.insn_uid.
25152         (INSN_CHAIN_CODE_P): Define.
25153         (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
25154         (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
25155         (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
25156         (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
25157         (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
25158         indices accordingly.
25159         * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
25160         Update indices for insn-chain rtxes.
25161         * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
25162         (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
25163         * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
25164         * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
25165         * combine.c (try_combine): Likewise.
25166         * ira.c (setup_prohibited_mode_move_regs): Likewise.
25168 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
25170         * rtl.def (REG): Remove middle field.
25171         * rtl.h (rtx_def): Add orignal_regno to u2.
25172         (ORIGINAL_REGNO): Use it instead of field 1.
25173         (REG_ATTRS): Lower field index accordingly.
25174         * gengtype.c (adjust_field_rtx_def): Remove handling of
25175         ORIGINAL_REGNO.  Move REG_ATTRS index down.
25176         * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
25177         code that prints the REGNO.
25179 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
25181         * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
25182         GENERATOR_FILE.
25184 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
25186         * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
25188 2014-05-13  Bin Cheng  <bin.cheng@arm.com>
25190         * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
25191         (alloc_iv): Lower base expressions containing ADDR_EXPR.
25193 2014-05-13  Ian Bolton  <ian.bolton@arm.com>
25195         * config/aarch64/aarch64-protos.h
25196         (aarch64_hard_regno_caller_save_mode): New prototype.
25197         * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
25198         New function.
25199         * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
25201 2014-05-13  Christian Bruel  <christian.bruel@st.com>
25203         * target.def (mode_switching): New hook vector.
25204         (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
25205         (mode_exit, modepriority_to_mode): Likewise.
25206         * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
25207         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
25208         * target.h: Include tm.h and hard-reg-set.h.
25209         * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
25210         (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
25211         * doc/tm.texi Regenerate.
25212         * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
25213         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
25214         * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
25215         (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
25216         * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
25217         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
25218         * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
25219         (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
25220         * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
25221         (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
25222         (ix86_emit_mode_set): Hookify.
25223         * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
25224         Delete.
25225         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
25226         * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
25227         (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
25228         (epiphany_mode_priority_to_mode): Remove declaration.
25229         * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
25230         (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
25231         (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
25232         Likewise.
25233         (epiphany_mode_priority_to_mode): Change priority type.  Hookify.
25234         (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
25235         (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
25237 2014-05-13  Jakub Jelinek  <jakub@redhat.com>
25239         PR target/61060
25240         * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
25241         is const0_rtx, return immediately.  Don't test count == 0 when
25242         it is always true.
25244 2014-05-13  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
25246         * Makefile.in: add shrink-wrap.o.
25247         * config/i386/i386.c: include "shrink-wrap.h"
25248         * function.c: Likewise.
25249         (requires_stack_frame_p, next_block_for_reg,
25250         move_insn_for_shrink_wrap, prepare_shrink_wrap,
25251         dup_block_and_redirect): Move to shrink-wrap.c
25252         (thread_prologue_and_epilogue_insns): Extract three code segments
25253         as functions in shrink-wrap.c
25254         * function.h: Move #ifdef HAVE_simple_return ... #endif block to
25255         shrink-wrap.h
25256         * shrink-wrap.c: New file.
25257         * shrink-wrap.h: New file.
25259 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
25261         * doc/extend.texi: Reflect current numbers of pragmas.  Remove
25262         reference to Solaris.
25264 2014-05-12  Mike Stump  <mikestump@comcast.net>
25266         PR other/31778
25267         * genattrtab.c (filename): Add.
25268         (convert_set_attr_alternative): Improve error message.
25269         (check_defs): Restore read_md_filename for error messages.
25270         (gen_insn): Save filename.
25272 2014-05-12  Dimitris Papavasiliou  <dpapavas@gmail.com>
25274         * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
25275         -fno-local-ivars and -fivar-visibility.
25276         * c-family/c.opt: Make -Wshadow also implicitly enable
25277         -Wshadow-ivar.
25279 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
25281         * doc/tm.texi: Remove reference to deleted macro.
25282         * doc/tm.texi.in: Likewise.
25284 2014-05-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
25286         PR target/60991
25287         * config/avr/avr.c (avr_out_store_psi): Use correct constant
25288         to restore Y.
25290 2014-05-12  Georg-Johann Lay  <avr@gjlay.de>
25292         PR libgcc/61152
25293         * config/arm/arm.h (License): Add GCC Runtime Library Exception.
25294         * config/arm/aout.h (License): Same.
25295         * config/arm/bpabi.h (License): Same.
25296         * config/arm/elf.h (License): Same.
25297         * config/arm/linux-elf.h (License): Same.
25298         * config/arm/linux-gas.h (License): Same.
25299         * config/arm/netbsd-elf.h (License): Same.
25300         * config/arm/uclinux-eabi.h (License): Same.
25301         * config/arm/uclinux-elf.h (License): Same.
25302         * config/arm/vxworks.h (License): Same.
25304 2014-05-11  Jakub Jelinek  <jakub@redhat.com>
25306         * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
25307         * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
25308         number of operands to 3.
25309         (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
25310         * tree-nested.c (convert_nonlocal_omp_clauses,
25311         convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
25312         * gimplify.c (gimplify_scan_omp_clauses): Handle
25313         OMP_CLAUSE_LINEAR_STMT.
25314         * omp-low.c (lower_rec_input_clauses): Fix typo.
25315         (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
25316         cast between Fortran boolean_type_node and C _Bool if
25317         needed.
25319 2014-05-11  Richard Sandiford  <rdsandiford@googlemail.com>
25321         PR tree-optimization/61136
25322         * wide-int.h (multiple_of_p): Define a version that doesn't return
25323         the quotient.
25324         * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
25325         integer_zerop/const_binop pair.
25326         (multiple_of_p): Likewise, converting both operands to widest_int
25327         precision.
25329 2014-05-09  Teresa Johnson  <tejohnson@google.com>
25331         * cgraphunit.c (analyze_functions): Use correct dump file.
25333 2014-05-09  Florian Weimer  <fweimer@redhat.com>
25335         * cfgexpand.c (stack_protect_decl_p): New function, extracted from
25336         expand_used_vars.
25337         (stack_protect_return_slot_p): New function.
25338         (expand_used_vars): Call stack_protect_decl_p and
25339         stack_protect_return_slot_p for -fstack-protector-strong.
25341 2014-05-09  David Wohlferd <LimeGreenSocks@yahoo.com>
25342         Andrew Haley <aph@redhat.com>
25343         Richard Sandiford <rdsandiford@googlemail.com>
25345         * doc/extend.texi: Rewrite inline asm page / re-org asm-related
25346         pages.
25348 2014-05-09  Kenneth Zadeck  <zadeck@naturalbridge.com>
25350         PR middle-end/61111
25351         * fold-const.c (fold_binary_loc): Changed width of mask.
25353 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
25355         * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
25356         unsigned int initializers for regno_in, regno_out.
25358 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
25360         PR target/61055
25361         * config/avr/avr.md (cc): Add new attribute set_vzn.
25362         (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
25363         Set cc insn attribute to set_vzn instead of set_zn for alternatives
25364         with INC, DEC or NEG.
25365         * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
25366         (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
25367         INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
25369 2014-05-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25371         Revert:
25372         2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25374         * wide-int.cc (UTItype): Define.
25375         (UDWtype): Define for appropriate W_TYPE_SIZE.
25377 2014-05-09  Richard Biener  <rguenther@suse.de>
25379         * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
25380         * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
25381         (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
25382         (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
25383         ssa_propagate): Adjust.
25385 2014-05-08  Jeff Law  <law@redhat.com>
25387         PR tree-optimization/61009
25388         * tree-ssa-threadedge.c (thread_through_normal_block): Return a
25389         tri-state rather than a boolean.  When a block is too big to
25390         thread through, inform caller via negative return value.
25391         (thread_across_edge): If a block was too big for normal threading,
25392         then it's too big for a joiner too, so remove temporary equivalences
25393         and return immediately.
25395 2014-05-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
25396             Matthias Klose  <doko@ubuntu.com>
25398         PR driver/61106
25399         * optc-gen.awk: Fix option handling for -Wunused-parameter.
25401 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
25403         PR target/59952
25404         * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
25406 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
25408         PR target/61092
25409         * config/alpha/alpha.c: Include gimple-iterator.h.
25410         (alpha_gimple_fold_builtin): New function.  Move
25411         ALPHA_BUILTIN_UMULH folding from ...
25412         (alpha_fold_builtin): ... here.
25413         (TARGET_GIMPLE_FOLD_BUILTIN): New define.
25415 2014-05-08  Wei Mi  <wmi@google.com>
25417         PR target/58066
25418         * config/i386/i386.c (ix86_compute_frame_layout): Update
25419         preferred_stack_boundary for call, expanded from tls descriptor.
25420         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
25421         to depend on SP register.
25422         (*tls_local_dynamic_base_32_gnu): Ditto.
25423         (*tls_local_dynamic_32_once): Ditto.
25424         (tls_global_dynamic_64_<mode>): Set
25425         ix86_tls_descriptor_calls_expanded_in_cfun.
25426         (tls_local_dynamic_base_64_<mode>): Ditto.
25427         (tls_global_dynamic_32): Set
25428         ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
25429         to depend on SP register.
25430         (tls_local_dynamic_base_32): Ditto.
25432 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25434         * config/arm/arm_neon.h: Update comment.
25435         * config/arm/neon-docgen.ml: Delete.
25436         * config/arm/neon-gen.ml: Delete.
25437         * doc/arm-neon-intrinsics.texi: Update comment.
25439 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25441         * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
25442         and v4sf versions.
25443         (vand, vorr, veor, vorn, vbic): Remove.
25444         * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
25445         iterator.
25446         (neon_vsub_unspec): Likewise.
25447         (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
25449 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25451         * config/arm/arm_neon.h (vadd_s8): GNU C implementation
25452         (vadd_s16): Likewise.
25453         (vadd_s32): Likewise.
25454         (vadd_f32): Likewise.
25455         (vadd_u8): Likewise.
25456         (vadd_u16): Likewise.
25457         (vadd_u32): Likewise.
25458         (vadd_s64): Likewise.
25459         (vadd_u64): Likewise.
25460         (vaddq_s8): Likewise.
25461         (vaddq_s16): Likewise.
25462         (vaddq_s32): Likewise.
25463         (vaddq_s64): Likewise.
25464         (vaddq_f32): Likewise.
25465         (vaddq_u8): Likewise.
25466         (vaddq_u16): Likewise.
25467         (vaddq_u32): Likewise.
25468         (vaddq_u64): Likewise.
25469         (vmul_s8): Likewise.
25470         (vmul_s16): Likewise.
25471         (vmul_s32): Likewise.
25472         (vmul_f32): Likewise.
25473         (vmul_u8): Likewise.
25474         (vmul_u16): Likewise.
25475         (vmul_u32): Likewise.
25476         (vmul_p8): Likewise.
25477         (vmulq_s8): Likewise.
25478         (vmulq_s16): Likewise.
25479         (vmulq_s32): Likewise.
25480         (vmulq_f32): Likewise.
25481         (vmulq_u8): Likewise.
25482         (vmulq_u16): Likewise.
25483         (vmulq_u32): Likewise.
25484         (vsub_s8): Likewise.
25485         (vsub_s16): Likewise.
25486         (vsub_s32): Likewise.
25487         (vsub_f32): Likewise.
25488         (vsub_u8): Likewise.
25489         (vsub_u16): Likewise.
25490         (vsub_u32): Likewise.
25491         (vsub_s64): Likewise.
25492         (vsub_u64): Likewise.
25493         (vsubq_s8): Likewise.
25494         (vsubq_s16): Likewise.
25495         (vsubq_s32): Likewise.
25496         (vsubq_s64): Likewise.
25497         (vsubq_f32): Likewise.
25498         (vsubq_u8): Likewise.
25499         (vsubq_u16): Likewise.
25500         (vsubq_u32): Likewise.
25501         (vsubq_u64): Likewise.
25502         (vand_s8): Likewise.
25503         (vand_s16): Likewise.
25504         (vand_s32): Likewise.
25505         (vand_u8): Likewise.
25506         (vand_u16): Likewise.
25507         (vand_u32): Likewise.
25508         (vand_s64): Likewise.
25509         (vand_u64): Likewise.
25510         (vandq_s8): Likewise.
25511         (vandq_s16): Likewise.
25512         (vandq_s32): Likewise.
25513         (vandq_s64): Likewise.
25514         (vandq_u8): Likewise.
25515         (vandq_u16): Likewise.
25516         (vandq_u32): Likewise.
25517         (vandq_u64): Likewise.
25518         (vorr_s8): Likewise.
25519         (vorr_s16): Likewise.
25520         (vorr_s32): Likewise.
25521         (vorr_u8): Likewise.
25522         (vorr_u16): Likewise.
25523         (vorr_u32): Likewise.
25524         (vorr_s64): Likewise.
25525         (vorr_u64): Likewise.
25526         (vorrq_s8): Likewise.
25527         (vorrq_s16): Likewise.
25528         (vorrq_s32): Likewise.
25529         (vorrq_s64): Likewise.
25530         (vorrq_u8): Likewise.
25531         (vorrq_u16): Likewise.
25532         (vorrq_u32): Likewise.
25533         (vorrq_u64): Likewise.
25534         (veor_s8): Likewise.
25535         (veor_s16): Likewise.
25536         (veor_s32): Likewise.
25537         (veor_u8): Likewise.
25538         (veor_u16): Likewise.
25539         (veor_u32): Likewise.
25540         (veor_s64): Likewise.
25541         (veor_u64): Likewise.
25542         (veorq_s8): Likewise.
25543         (veorq_s16): Likewise.
25544         (veorq_s32): Likewise.
25545         (veorq_s64): Likewise.
25546         (veorq_u8): Likewise.
25547         (veorq_u16): Likewise.
25548         (veorq_u32): Likewise.
25549         (veorq_u64): Likewise.
25550         (vbic_s8): Likewise.
25551         (vbic_s16): Likewise.
25552         (vbic_s32): Likewise.
25553         (vbic_u8): Likewise.
25554         (vbic_u16): Likewise.
25555         (vbic_u32): Likewise.
25556         (vbic_s64): Likewise.
25557         (vbic_u64): Likewise.
25558         (vbicq_s8): Likewise.
25559         (vbicq_s16): Likewise.
25560         (vbicq_s32): Likewise.
25561         (vbicq_s64): Likewise.
25562         (vbicq_u8): Likewise.
25563         (vbicq_u16): Likewise.
25564         (vbicq_u32): Likewise.
25565         (vbicq_u64): Likewise.
25566         (vorn_s8): Likewise.
25567         (vorn_s16): Likewise.
25568         (vorn_s32): Likewise.
25569         (vorn_u8): Likewise.
25570         (vorn_u16): Likewise.
25571         (vorn_u32): Likewise.
25572         (vorn_s64): Likewise.
25573         (vorn_u64): Likewise.
25574         (vornq_s8): Likewise.
25575         (vornq_s16): Likewise.
25576         (vornq_s32): Likewise.
25577         (vornq_s64): Likewise.
25578         (vornq_u8): Likewise.
25579         (vornq_u16): Likewise.
25580         (vornq_u32): Likewise.
25581         (vornq_u64): Likewise.
25583 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25585         * wide-int.cc (UTItype): Define.
25586         (UDWtype): Define for appropriate W_TYPE_SIZE.
25588 2014-05-08  Marc Glisse  <marc.glisse@inria.fr>
25590         PR tree-optimization/59100
25591         * tree-ssa-phiopt.c: Include tree-inline.h.
25592         (neutral_element_p, absorbing_element_p): New functions.
25593         (value_replacement): Handle conditional binary operations with a
25594         neutral or absorbing element.
25596 2014-05-08  Richard Biener  <rguenther@suse.de>
25598         * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
25599         folding the expression.
25600         (valueize_expr): Remove.
25601         (visit_reference_op_load): Do not valueize the result of
25602         vn_get_expr_for.
25603         (simplify_binary_expression): Likewise.
25604         (simplify_unary_expression): Likewise.
25606 2014-05-08  Richard Biener  <rguenther@suse.de>
25608         * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
25609         looking at TYPE_ARG_TYPES.
25611 2014-05-08  Richard Biener  <rguenther@suse.de>
25613         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
25614         pointer propagation special-case.
25616 2014-05-08  Bin Cheng  <bin.cheng@arm.com>
25618         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
25619         core part of address expressions.
25621 2014-05-08  Alan Modra  <amodra@gmail.com>
25623         PR target/60737
25624         * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
25625         loads and stores when -mno-strict-align at any alignment.
25626         (expand_block_clear): Similarly.  Also correct calculation of
25627         instruction count.
25629 2014-05-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
25631         PR middle-end/39246
25632         * tree-complex.c (expand_complex_move): Keep line info when expanding
25633         complex move.
25634         * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
25635         of complex expression. Use new argument to display correct location
25636         for values coming from phi statement.
25637         (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
25638         (warn_uninitialized_phi): Pass location of phi argument to
25639         warn_uninit.
25640         * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
25641         COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
25643 2014-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
25645         * config/rs6000/predicates.md (indexed_address_mem): New.
25646         * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
25647         load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
25648         fpstore_ux, fpstore_u.
25649         (sign_extend, indexed, update): New.
25650         (cell_micro): Adjust.
25651         (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
25652         *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
25653         *movsi_internal1, *movsi_internal1_single, *movhi_internal,
25654         *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
25655         *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
25656         *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
25657         *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
25658         *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
25659         *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
25660         *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
25661         *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
25662         *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
25663         *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
25664         *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
25665         *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
25667         * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
25668         * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
25669         *vsx_extract_<mode>_store): Adjust.
25670         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
25671         is_cracked_insn, insn_must_be_first_in_group,
25672         insn_must_be_last_in_group): Adjust.
25674         * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
25675         Adjust.
25676         * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
25677         ppc440-fpstore): Adjust.
25678         * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
25679         ppc476-fpstore): Adjust.
25680         * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
25681         ppc601-fpstore): Adjust.
25682         * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
25683         Adjust.
25684         * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
25685         Adjust.
25686         * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
25687         ppc7450-fpstore): Adjust.
25688         * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
25689         * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
25690         * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
25691         Adjust.
25692         * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
25693         cell-fpload, cell-fpload-update, cell-store, cell-store-update,
25694         cell-fpstore, cell-fpstore-update): Adjust.
25695         * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
25696         ppce300c3_store, ppce300c3_fpstore): Adjust.
25697         * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
25698         e500mc_fpstore): Adjust.
25699         * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
25700         e500mc64_store, e500mc64_fpstore): Adjust.
25701         * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
25702         e5500_fpstore): Adjust.
25703         * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
25704         e6500_fpstore): Adjust.
25705         * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
25706         Adjust.
25707         * config/rs6000/power4.md (power4-load, power4-load-ext,
25708         power4-load-ext-update, power4-load-ext-update-indexed,
25709         power4-load-update-indexed, power4-load-update, power4-fpload,
25710         power4-fpload-update, power4-store, power4-store-update,
25711         power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
25712         Adjust.
25713         * config/rs6000/power5.md (power5-load, power5-load-ext,
25714         power5-load-ext-update, power5-load-ext-update-indexed,
25715         power5-load-update-indexed, power5-load-update, power5-fpload,
25716         power5-fpload-update, power5-store, power5-store-update,
25717         power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
25718         Adjust.
25719         * config/rs6000/power6.md (power6-load, power6-load-ext,
25720         power6-load-update, power6-load-update-indexed,
25721         power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
25722         power6-fpload-update, power6-store, power6-store-update,
25723         power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
25724         Adjust.
25725         * config/rs6000/power7.md (power7-load, power7-load-ext,
25726         power7-load-update, power7-load-update-indexed,
25727         power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
25728         power7-fpload-update, power7-store, power7-store-update,
25729         power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
25730         Adjust.
25731         * config/rs6000/power8.md (power8-load, power8-load-update,
25732         power8-load-ext, power8-load-ext-update, power8-fpload,
25733         power8-fpload-update, power8-store, power8-store-update-indexed,
25734         power8-fpstore, power8-fpstore-update): Adjust.
25735         * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
25736         Adjust.
25737         * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
25738         titan_lsu_store, titan_lsu_fpstore): Adjust.
25739         * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
25741 2014-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
25743         PR target/60884
25744         * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
25745         unrolled byte insns.  Emit address increments after move insns.
25747 2014-05-07  David Malcolm  <dmalcolm@redhat.com>
25749         * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
25750         const_gimple, rather than a gimple.
25751         (gimple_call_builtin_p): Likewise, for the three variants.
25753         * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
25754         (gimple_call_builtin_p): Likewise, for the three variants.
25756 2014-05-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
25758         PR tree-optimization/61095
25759         * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
25761 2014-05-07  Richard Biener  <rguenther@suse.de>
25763         PR tree-optimization/61034
25764         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
25765         (maybe_skip_until): Use translate to take into account
25766         lattices when trying to do disambiguations.
25767         (get_continuation_for_phi_1): Likewise.
25768         (get_continuation_for_phi): Adjust for added translate arguments.
25769         (walk_non_aliased_vuses): Likewise.
25770         * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
25771         (walk_non_aliased_vuses): Likewise.
25772         (call_may_clobber_ref_p_1): Declare.
25773         * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
25774         calls.  Stop early if we are only supposed to disambiguate.
25775         * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
25777 2014-05-07  Joern Rennecke  <joern.rennecke@embecosm.com>
25779         * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
25780         Emit an error when the function has arguments.
25782 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
25784         * cfgloop.h (unswitch_loops): Remove.
25785         * doc/passes.texi: Remove references to loop-unswitch.c
25786         * timevar.def (TV_LOOP_UNSWITCH): Remove.
25788 2014-05-07  Evgeny Stupachenko  <evstupac@gmail.com>
25790         * tree-vect-data-refs.c (vect_grouped_load_supported): New
25791         check for loads group of length 3.
25792         (vect_permute_load_chain): New permutations for loads group of
25793         length 3.
25794         * tree-vect-stmts.c (vect_model_load_cost): Change cost
25795         of vec_perm_shuffle for the new permutations.
25797 2014-05-07  Alan Lawrence  <alan.lawrence@arm.com>
25799         * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
25800         vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
25801         vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
25802         vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
25803         vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
25804         vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
25805         vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
25806         vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
25808 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
25810         * loop-unswitch.c: Delete.
25812 2014-05-07  Richard Biener  <rguenther@suse.de>
25814         * config.gcc: Always set need_64bit_hwint to yes.
25816 2014-05-07  Chung-Ju Wu  <jasonwucj@gmail.com>
25818         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
25819         of using optimize_size.
25821 2014-05-06  Mike Stump  <mikestump@comcast.net>
25823         * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
25825 2014-05-06  Joseph Myers  <joseph@codesourcery.com>
25827         * config/i386/sse.md (*mov<mode>_internal)
25828         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
25829         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
25830         (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
25831         (*<code><mode>3, *andnot<mode>3<mask_name>)
25832         (<mask_codefor><code><mode>3<mask_name>): Only consider
25833         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
25835 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
25837         Revert:
25838         2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
25840         * lra-constraints.c (valid_address_p): Move earlier in file.
25841         Add a constraint argument to the address_info version.
25842         (satisfies_memory_constraint_p): New function.
25843         (satisfies_address_constraint_p): Likewise.
25844         (process_alt_operands, curr_insn_transform): Use them.
25845         (process_address): Pass the constraint to valid_address_p when
25846         checking address operands.
25848 2014-05-06  Richard Sandiford  <r.sandiford@uk.ibm.com>
25850         * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
25851         to their respective blocks.  Fix inadvertent use of "node".
25853 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
25855         * emit-rtl.c (init_derived_machine_modes): New functionm, split
25856         out from...
25857         (init_emit_once): ...here.
25858         * rtl.h (init_derived_machine_modes): Declare.
25859         * toplev.c (do_compile): Call it even if no_backend.
25861 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
25862             Mike Stump  <mikestump@comcast.net>
25863             Richard Sandiford  <rdsandiford@googlemail.com>
25864             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25866         * alias.c (ao_ref_from_mem): Use wide-int interfaces.
25867         (rtx_equal_for_memref_p): Update comment.
25868         (adjust_offset_for_component_ref): Use wide-int interfaces.
25869         * builtins.c (get_object_alignment_2): Likewise.
25870         (c_readstr): Likewise.
25871         (target_char_cast): Add comment.
25872         (determine_block_size): Use wide-int interfaces.
25873         (expand_builtin_signbit): Likewise.
25874         (fold_builtin_int_roundingfn): Likewise.
25875         (fold_builtin_bitop): Likewise.
25876         (fold_builtin_bswap): Likewise.
25877         (fold_builtin_logarithm): Use signop.
25878         (fold_builtin_pow): Likewise.
25879         (fold_builtin_memory_op): Use wide-int interfaces.
25880         (fold_builtin_object_size): Likewise.
25881         * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
25882         nb_iterations_estimate.
25883         (record_niter_bound): Use wide-int interfaces.
25884         (get_estimated_loop_iterations_int): Likewise.
25885         (get_estimated_loop_iterations): Likewise.
25886         (get_max_loop_iterations): Likewise.
25887         * cfgloop.h: Include wide-int.h.
25888         (struct nb_iter_bound): Change bound to widest_int.
25889         (struct loop): Change nb_iterations_upper_bound and
25890         nb_iterations_estimate to widest_int.
25891         (record_niter_bound): Switch to use widest_int.
25892         (get_estimated_loop_iterations): Likewise.
25893         (get_max_loop_iterations): Likewise.
25894         (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
25895         update for wide-int.
25896         * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
25897         * combine.c (try_combine): Likewise.
25898         (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
25899         * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
25900         interfaces.
25901         (aarch64_float_const_representable_p): Likewise.
25902         * config/arc/arc.c: Include wide-int.h.
25903         (arc_can_use_doloop_p): Use wide-int interfaces.
25904         * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
25905         (vfp3_const_double_index): Likewise.
25906         * config/avr/avr.c (avr_out_round): Likewise.
25907         (avr_fold_builtin): Likewise.
25908         * config/bfin/bfin.c (bfin_local_alignment): Likewise.
25909         (bfin_can_use_doloop_p): Likewise.
25910         * config/darwin.c (darwin_mergeable_constant_section): Likewise.
25911         (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
25912         * config/i386/i386.c: Include wide-int.h.
25913         (ix86_data_alignment): Use wide-int interfaces.
25914         (ix86_local_alignment): Likewise.
25915         (ix86_emit_swsqrtsf): Update real_from_integer.
25916         * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
25917         * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
25918         * config/rs6000/predicates.md (any_operand): Add const_wide_int.
25919         (zero_constant): Likewise.
25920         (input_operand): Likewise.
25921         (splat_input_operand): Likewise.
25922         (non_logical_cint_operand): Change const_double to const_wide_int.
25923         * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
25924         (easy_altivec_constant): Remove comment.
25925         (paired_expand_vector_init): Use CONSTANT_P.
25926         (rs6000_legitimize_address): Handle CONST_WIDE_INT.
25927         (rs6000_emit_move): Update checks.
25928         (rs6000_aggregate_candidate): Use wide-int interfaces.
25929         (rs6000_expand_ternop_builtin): Likewise.
25930         (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
25931         (rs6000_assemble_integer): Likewise.
25932         (rs6000_hash_constant): Likewise.
25933         (output_toc): Likewise.
25934         (rs6000_rtx_costs): Likewise.
25935         (rs6000_emit_swrsqrt); Update call to real_from_integer.
25936         * config/rs6000/rs6000-c.c: Include wide-int.h.
25937         (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
25938         * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
25939         * config/rs6000/rs6000.md: Use const_scalar_int_operand.
25940         Handle CONST_WIDE_INT.
25941         * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
25942         Use tree_fits_uhwi_p.
25943         * config/sparc/sparc.c: Include wide-int.h.
25944         (sparc_fold_builtin): Use wide-int interfaces.
25945         * config/vax/vax.c: Include wide-int.h.
25946         (vax_float_literal): Use real_from_integer.
25947         * coretypes.h (struct hwivec_def): New.
25948         (hwivec): New.
25949         (const_hwivec): New.
25950         * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
25951         (equiv_constant): Handle CONST_WIDE_INT.
25952         * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
25953         (cselib_hash_rtx): Handle CONST_WIDE_INT.
25954         * dbxout.c (stabstr_U): Use wide-int interfaces.
25955         (dbxout_type): Update to use cst_fits_shwi_p.
25956         * defaults.h (LOG2_BITS_PER_UNIT): Define.
25957         (TARGET_SUPPORTS_WIDE_INT): Add default.
25958         * dfp.c: Include wide-int.h.
25959         (decimal_real_to_integer2): Use wide-int interfaces and rename to
25960         decimal_real_to_integer.
25961         * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
25962         decimal_real_to_integer.
25963         * doc/generic.texi (Constant expressions): Update for wide_int.
25964         * doc/rtl.texi (const_double): Likewise.
25965         (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
25966         (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
25967         * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
25968         (REAL_VALUE_FROM_INT): Remove.
25969         (TARGET_SUPPORTS_WIDE_INT): New.
25970         * doc/tm.texi: Regenerate.
25971         * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
25972         * double-int.h: Include wide-int.h.
25973         (struct wi::int_traits): New.
25974         * dwarf2out.c (get_full_len): New.
25975         (dw_val_equal_p): Add case dw_val_class_wide_int.
25976         (size_of_loc_descr): Likewise.
25977         (output_loc_operands): Likewise.
25978         (insert_double): Remove.
25979         (insert_wide_int): New.
25980         (add_AT_wide): New.
25981         (print_die): Add case dw_val_class_wide_int.
25982         (attr_checksum): Likewise.
25983         (attr_checksum_ordered): Likewise.
25984         (same_dw_val_p): Likewise.
25985         (size_of_die): Likewise.
25986         (value_format): Likewise.
25987         (output_die): Likewise.
25988         (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
25989         Use wide-int.
25990         (clz_loc_descriptor): Use wide-int interfaces.
25991         (mem_loc_descriptor): Likewise.  Handle CONST_WIDE_INT.
25992         (loc_descriptor): Use wide-int interfaces.  Handle CONST_WIDE_INT.
25993         (round_up_to_align): Use wide-int interfaces.
25994         (field_byte_offset): Likewise.
25995         (insert_double): Rename to insert_wide_int.  Use wide-int interfaces.
25996         (add_const_value_attribute): Handle CONST_WIDE_INT.  Update
25997         CONST_DOUBLE handling.  Use wide-int interfaces.
25998         (add_bound_info): Use tree_fits_uhwi_p.  Use wide-int interfaces.
25999         (gen_enumeration_type_die): Use add_AT_wide.
26000         (hash_loc_operands): Add case dw_val_class_wide_int.
26001         (compare_loc_operands): Likewise.
26002         * dwarf2out.h: Include wide-int.h.
26003         (wide_int_ptr): New.
26004         (enum dw_val_class): Add dw_val_class_wide_int.
26005         (struct dw_val_struct): Add val_wide.
26006         * emit-rtl.c (const_wide_int_htab): New.
26007         (const_wide_int_htab_hash): New.
26008         (const_wide_int_htab_eq): New.
26009         (lookup_const_wide_int): New.
26010         (const_double_htab_hash): Use wide-int interfaces.
26011         (const_double_htab_eq): Likewise.
26012         (rtx_to_double_int): Conditionally compile for wide-int.
26013         (immed_double_int_const): Rename to immed_wide_int_const and
26014         update for wide-int.
26015         (immed_double_const): Conditionally compile for wide-int.
26016         (init_emit_once): Use wide-int interfaces.
26017         * explow.c (plus_constant): Likewise.
26018         * expmed.c (mask_rtx): Move further up file.  Use wide-int interfaces.
26019         (lshift_value): Use wide-int interfaces.
26020         (expand_mult): Likewise.
26021         (choose_multiplier): Likewise.
26022         (expand_smod_pow2): Likewise.
26023         (make_tree): Likewise.
26024         * expr.c (convert_modes): Consolidate handling of constants.
26025         Use wide-int interfaces.
26026         (emit_group_load_1): Add note.
26027         (store_expr): Update comment.
26028         (get_inner_reference): Use wide-int interfaces.
26029         (expand_constructor): Update comment.
26030         (expand_expr_real_2): Use wide-int interfaces.
26031         (expand_expr_real_1): Likewise.
26032         (reduce_to_bit_field_precision): Likewise.
26033         (const_vector_from_tree): Likewise.
26034         * final.c: Include wide-int-print.h.
26035         (output_addr_const): Handle CONST_WIDE_INT.  Use CONST_DOUBLE_AS_INT_P.
26036         * fixed-value.c: Include wide-int.h.
26037         (fixed_from_string): Use wide-int interfaces.
26038         (fixed_to_decimal): Likewise.
26039         (fixed_convert_from_real): Likewise.
26040         (real_convert_from_fixed): Likewise.
26041         * fold-const.h (mem_ref_offset): Return an offset_int.
26042         (div_if_zero_remainder): Remove code parameter.
26043         * fold-const.c (div_if_zero_remainder): Remove code parameter.
26044         Use wide-int interfaces.
26045         (may_negate_without_overflow_p): Use wide-int interfaces.
26046         (negate_expr_p): Likewise.
26047         (fold_negate_expr): Likewise.
26048         (int_const_binop_1): Likewise.
26049         (const_binop): Likewise.
26050         (fold_convert_const_int_from_int): Likewise.
26051         (fold_convert_const_int_from_real): Likewise.
26052         (fold_convert_const_int_from_fixed): Likewise.
26053         (fold_convert_const_fixed_from_int): Likewise.
26054         (all_ones_mask_p): Take an unsigned size.  Use wide-int interfaces.
26055         (sign_bit_p): Use wide-int interfaces.
26056         (make_range_step): Likewise.
26057         (build_range_check): Likewise.  Pass an integer of the correct type
26058         instead of using integer_one_node.
26059         (range_predecessor): Pass an integer of the correct type instead
26060         of using integer_one_node.
26061         (range_successor): Likewise.
26062         (merge_ranges): Likewise.
26063         (unextend): Use wide-int interfaces.
26064         (extract_muldiv_1): Likewise.
26065         (fold_div_compare): Likewise.
26066         (fold_single_bit_test): Likewise.
26067         (fold_sign_changed_comparison): Likewise.
26068         (try_move_mult_to_index): Update calls to div_if_zero_remainder.
26069         (fold_plusminus_mult_expr): Use wide-int interfaces.
26070         (native_encode_int): Likewise.
26071         (native_interpret_int): Likewise.
26072         (fold_unary_loc): Likewise.
26073         (pointer_may_wrap_p): Likewise.
26074         (size_low_cst): Likewise.
26075         (mask_with_tz): Likewise.
26076         (fold_binary_loc): Likewise.
26077         (fold_ternary_loc): Likewise.
26078         (multiple_of_p): Likewise.
26079         (tree_call_nonnegative_warnv_p): Update calls to
26080         tree_int_cst_min_precision and real_from_integer.
26081         (fold_negate_const): Use wide-int interfaces.
26082         (fold_abs_const): Likewise.
26083         (fold_relational_const): Use tree_int_cst_lt.
26084         (round_up_loc): Use wide-int interfaces.
26085         * genemit.c (gen_exp): Add CONST_WIDE_INT case.
26086         * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
26087         * gengtype.c: Remove include of double-int.h.
26088         (do_typedef): Use wide-int interfaces.
26089         (open_base_files): Add wide-int.h.
26090         (main): Add offset_int and widest_int typedefs.
26091         * gengtype-lex.l: Handle "^".
26092         (CXX_KEYWORD): Add "static".
26093         * gengtype-parse.c (require3): New.
26094         (require_template_declaration): Handle constant template arguments
26095         and nested templates.
26096         * gengtype-state.c: Don't include "double-int.h".
26097         * genpreds.c (write_one_predicate_function): Update comment.
26098         (write_tm_constrs_h): Add check for hval and lval use in
26099         CONST_WIDE_INT.
26100         * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
26101         (add_to_sequence): Likewise.
26102         * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
26103         and const_double_operand.
26104         * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
26105         interfaces.
26106         * gimple-fold.c (get_base_constructor): Likewise.
26107         (fold_array_ctor_reference): Likewise.
26108         (fold_nonarray_ctor_reference): Likewise.
26109         (fold_const_aggregate_ref_1): Likewise.
26110         (gimple_val_nonnegative_real_p): Likewise.
26111         (gimple_fold_indirect_ref): Likewise.
26112         * gimple-pretty-print.c (dump_ssaname_info): Likewise.
26113         * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
26114         (struct slsr_cand_d): Change index to be widest_int.
26115         (struct incr_info_d): Change incr to be widest_int.
26116         (alloc_cand_and_find_basis): Use wide-int interfaces.
26117         (slsr_process_phi): Likewise.
26118         (backtrace_base_for_ref): Likewise.  Return a widest_int.
26119         (restructure_reference): Take a widest_int instead of a double_int.
26120         (slsr_process_ref): Use wide-int interfaces.
26121         (create_mul_ssa_cand): Likewise.
26122         (create_mul_imm_cand): Likewise.
26123         (create_add_ssa_cand): Likewise.
26124         (create_add_imm_cand): Take a widest_int instead of a double_int.
26125         (slsr_process_add): Use wide-int interfaces.
26126         (slsr_process_cast): Likewise.
26127         (slsr_process_copy): Likewise.
26128         (dump_candidate): Likewise.
26129         (dump_incr_vec): Likewise.
26130         (replace_ref): Likewise.
26131         (cand_increment): Likewise.  Return a widest_int.
26132         (cand_abs_increment): Likewise.
26133         (replace_mult_candidate): Take a widest_int instead of a double_int.
26134         (replace_unconditional_candidate): Use wide-int interfaces.
26135         (incr_vec_index): Take a widest_int instead of a double_int.
26136         (create_add_on_incoming_edge): Likewise.
26137         (create_phi_basis): Use wide-int interfaces.
26138         (replace_conditional_candidate): Likewise.
26139         (record_increment): Take a widest_int instead of a double_int.
26140         (record_phi_increments): Use wide-int interfaces.
26141         (phi_incr_cost): Take a widest_int instead of a double_int.
26142         (lowest_cost_path): Likewise.
26143         (total_savings): Likewise.
26144         (analyze_increments): Use wide-int interfaces.
26145         (ncd_with_phi): Take a widest_int instead of a double_int.
26146         (ncd_of_cand_and_phis): Likewise.
26147         (nearest_common_dominator_for_cands): Likewise.
26148         (insert_initializers): Use wide-int interfaces.
26149         (all_phi_incrs_profitable): Likewise.
26150         (replace_one_candidate): Likewise.
26151         (replace_profitable_candidates): Likewise.
26152         * godump.c: Include wide-int-print.h.
26153         (go_output_typedef): Use wide-int interfaces.
26154         * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
26155         * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
26156         (build_loop_iteration_domains): Likewise.
26157         * hooks.h: Include wide-int.h rather than double-int.h.
26158         (hook_bool_dint_dint_uint_bool_true): Delete.
26159         (hook_bool_wint_wint_uint_bool_true): Declare.
26160         * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
26161         (hook_bool_wint_wint_uint_bool_true): New.
26162         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
26163         interfaces.
26164         (ubsan_expand_si_overflow_mul_check): Likewise.
26165         * ipa-devirt.c (get_polymorphic_call_info): Likewise.
26166         * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
26167         (get_ancestor_addr_info): Likewise.
26168         (ipa_modify_call_arguments): Likewise.
26169         * loop-doloop.c (doloop_modify): Likewise.
26170         (doloop_optimize): Likewise.
26171         * loop-iv.c (iv_number_of_iterations): Likewise.
26172         * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
26173         (unroll_loop_constant_iterations): Likewise.
26174         (decide_unroll_runtime_iterations): Likewise.
26175         (unroll_loop_runtime_iterations): Likewise.
26176         (decide_peel_simple): Likewise.
26177         (decide_unroll_stupid): Likewise.
26178         * lto-streamer-in.c (streamer_read_wi): Add.
26179         (input_cfg): Use wide-int interfaces.
26180         (lto_input_tree_1): Likewise.
26181         * lto-streamer-out.c (streamer_write_wi): Add.
26182         (hash_tree): Use wide-int interfaces.
26183         (output_cfg): Likewise.
26184         * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
26185         (GTFILES): Add wide-int.h and signop.h.
26186         (TAGS): Look for .cc files too.
26187         * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
26188         * optabs.c (expand_subword_shift): Likewise.
26189         (expand_doubleword_shift): Likewise.
26190         (expand_absneg_bit): Likewise.
26191         (expand_copysign_absneg): Likewise.
26192         (expand_copysign_bit): Likewise.
26193         * postreload.c (reload_cse_simplify_set): Likewise.
26194         * predict.c (predict_iv_comparison): Likewise.
26195         * pretty-print.h: Include wide-int-print.h.
26196         (pp_wide_int) New.
26197         * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
26198         * print-tree.c: Include wide-int-print.h.
26199         (print_node_brief): Use wide-int interfaces.
26200         (print_node): Likewise.
26201         * read-rtl.c (validate_const_wide_int): New.
26202         (read_rtx_code): Add CONST_WIDE_INT case.
26203         * real.c: Include wide-int.h.
26204         (real_to_integer2): Delete.
26205         (real_to_integer): New function, returning a wide_int.
26206         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
26207         (ten_to_ptwo): Update call to real_from_integer.
26208         (real_digit): Likewise.
26209         * real.h: Include signop.h, wide-int.h and insn-modes.h.
26210         (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
26211         (REAL_VALUE_TO_INT): Delete.
26212         (real_to_integer): Declare a wide-int form.
26213         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
26214         * recog.c (const_int_operand): Improve comment.
26215         (const_scalar_int_operand): New.
26216         (const_double_operand): Add a separate definition for CONST_WIDE_INT.
26217         * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
26218         (split_double): Likewise.
26219         * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
26220         (rtx_size): Likewise.
26221         (rtx_alloc_stat_v): New.
26222         (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
26223         (cwi_output_hex): New.
26224         (iterative_hash_rtx): Handle CONST_WIDE_INT.
26225         (cwi_check_failed_bounds): New.
26226         * rtl.def (CONST_WIDE_INT): New.
26227         * rtl.h: Include <utility> and wide-int.h.
26228         (struct hwivec_def): New.
26229         (CWI_GET_NUM_ELEM): New.
26230         (CWI_PUT_NUM_ELEM): New.
26231         (struct rtx_def): Add num_elem and hwiv.
26232         (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
26233         (CASE_CONST_UNIQUE): Likewise.
26234         (CASE_CONST_ANY): Likewise.
26235         (CONST_SCALAR_INT_P): Likewise.
26236         (CONST_WIDE_INT_P): New.
26237         (CWI_ELT): New.
26238         (HWIVEC_CHECK): New.
26239         (cwi_check_failed_bounds): New.
26240         (CWI_ELT): New.
26241         (HWIVEC_CHECK): New.
26242         (CONST_WIDE_INT_VEC) New.
26243         (CONST_WIDE_INT_NUNITS) New.
26244         (CONST_WIDE_INT_ELT) New.
26245         (rtx_mode_t): New type.
26246         (wi::int_traits <rtx_mode_t>): New.
26247         (wi::shwi): New.
26248         (wi::min_value): New.
26249         (wi::max_value): New.
26250         (rtx_alloc_v) New.
26251         (const_wide_int_alloc): New.
26252         (immed_wide_int_const): New.
26253         * sched-vis.c (print_value): Handle CONST_WIDE_INT.
26254         * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
26255         * signop.h: New file.
26256         * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
26257         (simplify_const_unary_operation): Use wide-int interfaces.
26258         (simplify_binary_operation_1): Likewise.
26259         (simplify_const_binary_operation): Likewise.
26260         (simplify_const_relational_operation): Likewise.
26261         (simplify_immed_subreg): Likewise.
26262         * stmt.c (expand_case): Likewise.
26263         * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
26264         signop rather than a bool.
26265         * stor-layout.c (layout_type): Use wide-int interfaces.
26266         (initialize_sizetypes): Update calls to
26267         set_min_and_max_values_for_integral_type.
26268         (set_min_and_max_values_for_integral_type): Take a signop rather
26269         than a bool.  Use wide-int interfaces.
26270         (fixup_signed_type): Update accordingly.  Remove
26271         HOST_BITS_PER_DOUBLE_INT limit.
26272         (fixup_unsigned_type): Likewise.
26273         * system.h (STATIC_CONSTANT_P): New.
26274         (STATIC_ASSERT): New.
26275         * target.def (can_use_doloop_p): Take widest_ints rather than
26276         double_ints.
26277         * target.h: Include wide-int.h rather than double-int.h.
26278         * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
26279         than double_ints.
26280         * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
26281         rather than INT_CST_LT_UNSIGNED.
26282         (can_use_doloop_if_innermost): Take widest_ints rather than
26283         double_ints.
26284         * tree-affine.c: Include wide-int-print.h.
26285         (double_int_ext_for_comb): Delete.
26286         (wide_int_ext_for_comb): New.
26287         (aff_combination_zero): Use wide-int interfaces.
26288         (aff_combination_const): Take a widest_int instead of a double_int.
26289         (aff_combination_elt): Use wide-int interfaces.
26290         (aff_combination_scale): Take a widest_int instead of a double_int.
26291         (aff_combination_add_elt): Likewise.
26292         (aff_combination_add_cst): Likewise.
26293         (aff_combination_add): Use wide-int interfaces.
26294         (aff_combination_convert): Likewise.
26295         (tree_to_aff_combination): Likewise.
26296         (add_elt_to_tree): Take a widest_int instead of a double_int.
26297         (aff_combination_to_tree): Use wide-int interfaces.
26298         (aff_combination_remove_elt): Likewise.
26299         (aff_combination_add_product): Take a widest_int instead of
26300         a double_int.
26301         (aff_combination_mult): Use wide-int interfaces.
26302         (aff_combination_expand): Likewise.
26303         (double_int_constant_multiple_p): Delete.
26304         (wide_int_constant_multiple_p): New.
26305         (aff_combination_constant_multiple_p): Take a widest_int pointer
26306         instead of a double_int pointer.
26307         (print_aff): Use wide-int interfaces.
26308         (get_inner_reference_aff): Take a widest_int pointer
26309         instead of a double_int pointer.
26310         (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
26311         * tree-affine.h: Include wide-int.h.
26312         (struct aff_comb_elt): Change type of coef to widest_int.
26313         (struct affine_tree_combination): Change type of offset to widest_int.
26314         (double_int_ext_for_comb): Delete.
26315         (wide_int_ext_for_comb): New.
26316         (aff_combination_const): Use widest_int instead of double_int.
26317         (aff_combination_scale): Likewise.
26318         (aff_combination_add_elt): Likewise.
26319         (aff_combination_constant_multiple_p): Likewise.
26320         (get_inner_reference_aff): Likewise.
26321         (aff_comb_cannot_overlap_p): Likewise.
26322         (aff_combination_zero_p): Use wide-int interfaces.
26323         * tree.c: Include tree.h.
26324         (init_ttree): Use make_int_cst.
26325         (tree_code_size): Removed code for INTEGER_CST case.
26326         (tree_size): Add INTEGER_CST case.
26327         (make_node_stat): Update comment.
26328         (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
26329         (build_int_cst_type): Use wide-int interfaces.
26330         (double_int_to_tree): Likewise.
26331         (double_int_fits_to_tree_p): Delete.
26332         (force_fit_type_double): Delete.
26333         (force_fit_type): New.
26334         (int_cst_hash_hash): Use wide-int interfaces.
26335         (int_cst_hash_eq): Likewise.
26336         (build_int_cst_wide): Delete.
26337         (wide_int_to_tree): New.
26338         (cache_integer_cst): Use wide-int interfaces.
26339         (build_low_bits_mask): Likewise.
26340         (cst_and_fits_in_hwi): Likewise.
26341         (real_value_from_int_cst): Likewise.
26342         (make_int_cst_stat): New.
26343         (integer_zerop): Use wide_int interfaces.
26344         (integer_onep): Likewise.
26345         (integer_all_onesp): Likewise.
26346         (integer_pow2p): Likewise.
26347         (integer_nonzerop): Likewise.
26348         (tree_log2): Likewise.
26349         (tree_floor_log2): Likewise.
26350         (tree_ctz): Likewise.
26351         (int_size_in_bytes): Likewise.
26352         (mem_ref_offset): Return an offset_int rather than a double_int.
26353         (build_type_attribute_qual_variant): Use wide_int interfaces.
26354         (type_hash_eq): Likewise
26355         (tree_int_cst_equal): Likewise.
26356         (tree_int_cst_lt): Delete.
26357         (tree_int_cst_compare): Likewise.
26358         (tree_fits_shwi_p): Use wide_int interfaces.
26359         (tree_fits_uhwi_p): Likewise.
26360         (tree_int_cst_sign_bit): Likewise.
26361         (tree_int_cst_sgn): Likewise.
26362         (tree_int_cst_min_precision): Take a signop rather than a bool.
26363         (simple_cst_equal): Use wide_int interfaces.
26364         (compare_tree_int): Likewise.
26365         (iterative_hash_expr): Likewise.
26366         (int_fits_type_p): Likewise.  Use tree_int_cst_lt rather than
26367         INT_CST_LT.
26368         (get_type_static_bounds): Use wide_int interfaces.
26369         (tree_int_cst_elt_check_failed): New.
26370         (build_common_tree_nodes): Reordered to set prec before filling in
26371         value.
26372         (int_cst_value): Check cst_and_fits_in_hwi.
26373         (widest_int_cst_value): Use wide_int interfaces.
26374         (upper_bound_in_type): Likewise.
26375         (lower_bound_in_type): Likewise.
26376         (num_ending_zeros): Likewise.
26377         (drop_tree_overflow): Likewise.
26378         * tree-call-cdce.c (check_pow): Update call to real_from_integer.
26379         (gen_conditions_for_pow_cst_base): Likewise.
26380         * tree-cfg.c: Include wide-int.h and wide-int-print.h.
26381         (group_case_labels_stmt): Use wide-int interfaces.
26382         (verify_gimple_assign_binary): Likewise.
26383         (print_loop): Likewise.
26384         * tree-chrec.c (tree_fold_binomial): Likewise.
26385         * tree-core.h (struct tree_base): Add int_length.
26386         (struct tree_int_cst): Change rep of value.
26387         * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
26388         (dr_may_alias_p): Likewise.
26389         (max_stmt_executions_tree): Likewise.
26390         * tree.def (INTEGER_CST): Update comment.
26391         * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
26392         * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
26393         * tree-dump.c: Include wide-int.h and wide-int-print.h.
26394         (dequeue_and_dump): Use wide-int interfaces.
26395         * tree.h: Include wide-int.h.
26396         (NULL_TREE): Moved to earlier loc in file.
26397         (TREE_INT_CST_ELT_CHECK): New.
26398         (tree_int_cst_elt_check_failed): New.
26399         (TYPE_SIGN): New.
26400         (TREE_INT_CST): Delete.
26401         (TREE_INT_CST_LOW): Use wide-int interfaces.
26402         (TREE_INT_CST_HIGH): Delete.
26403         (TREE_INT_CST_NUNITS): New.
26404         (TREE_INT_CST_EXT_NUNITS): Likewise.
26405         (TREE_INT_CST_OFFSET_NUNITS): Likewise.
26406         (TREE_INT_CST_ELT): Likewise.
26407         (INT_CST_LT): Delete.
26408         (tree_int_cst_elt_check): New (two forms).
26409         (type_code_size): Update comment.
26410         (make_int_cst_stat, make_int_cst): New.
26411         (tree_to_double_int): Delete.
26412         (double_int_fits_to_tree_p): Delete.
26413         (force_fit_type_double): Delete.
26414         (build_int_cstu): Replace with out-of-line function.
26415         (build_int_cst_wide): Delete.
26416         (tree_int_cst_lt): Define inline.
26417         (tree_int_cst_le): New.
26418         (tree_int_cst_compare): Define inline.
26419         (tree_int_cst_min_precision): Take a signop rather than a bool.
26420         (wi::int_traits <const_tree>): New.
26421         (wi::int_traits <tree>): New.
26422         (wi::extended_tree): New.
26423         (wi::int_traits <wi::extended_tree>): New.
26424         (wi::to_widest): New.
26425         (wi::to_offset): New.
26426         (wi::fits_to_tree_p): New.
26427         (wi::min_value): New.
26428         (wi::max_value): New.
26429         * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
26430         (copy_tree_body_r): Likewise.
26431         * tree-object-size.c (compute_object_offset): Likewise.
26432         (addr_object_size): Likewise.
26433         * tree-predcom.c: Include wide-int-print.h.
26434         (struct dref_d): Change type of offset to widest_int.
26435         (dump_dref): Call wide-int printer.
26436         (aff_combination_dr_offset): Use wide-int interfaces.
26437         (determine_offset): Take a widest_int pointer rather than a
26438         double_int pointer.
26439         (split_data_refs_to_components): Use wide-int interfaces.
26440         (suitable_component_p): Likewise.
26441         (order_drefs): Likewise.
26442         (add_ref_to_chain): Likewise.
26443         (valid_initializer_p): Likewise.
26444         (determine_roots_comp): Likewise.
26445         * tree-pretty-print.c: Include wide-int-print.h.
26446         (dump_generic_node): Use wide-int interfaces.
26447         * tree-sra.c (sra_ipa_modify_expr): Likewise.
26448         * tree-ssa-address.c (addr_for_mem_ref): Likewise.
26449         (move_fixed_address_to_symbol): Likewise.
26450         (move_hint_to_base): Likewise.
26451         (move_pointer_to_base): Likewise.
26452         (move_variant_to_index): Likewise.
26453         (most_expensive_mult_to_index): Likewise.
26454         (addr_to_parts): Likewise.
26455         (copy_ref_info): Likewise.
26456         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
26457         (indirect_refs_may_alias_p): Likewise.
26458         (stmt_kills_ref_p_1): Likewise.
26459         * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
26460         * tree-ssa-ccp.c: Update comment at top of file.  Include
26461         wide-int-print.h.
26462         (struct prop_value_d): Change type of mask to widest_int.
26463         (extend_mask): New function.
26464         (dump_lattice_value): Use wide-int interfaces.
26465         (get_default_value): Likewise.
26466         (set_constant_value): Likewise.
26467         (set_value_varying): Likewise.
26468         (valid_lattice_transition): Likewise.
26469         (set_lattice_value): Likewise.
26470         (value_to_double_int): Delete.
26471         (value_to_wide_int): New.
26472         (get_value_from_alignment): Use wide-int interfaces.
26473         (get_value_for_expr): Likewise.
26474         (do_dbg_cnt): Likewise.
26475         (ccp_finalize): Likewise.
26476         (ccp_lattice_meet): Likewise.
26477         (bit_value_unop_1): Use widest_ints rather than double_ints.
26478         (bit_value_binop_1): Likewise.
26479         (bit_value_unop): Use wide-int interfaces.
26480         (bit_value_binop): Likewise.
26481         (bit_value_assume_aligned): Likewise.
26482         (evaluate_stmt): Likewise.
26483         (ccp_fold_stmt): Likewise.
26484         (visit_cond_stmt): Likewise.
26485         (ccp_visit_stmt): Likewise.
26486         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
26487         (constant_pointer_difference): Likewise.
26488         (associate_pointerplus): Likewise.
26489         (combine_conversions): Likewise.
26490         * tree-ssa-loop.h: Include wide-int.h.
26491         (struct tree_niter_desc): Change type of max to widest_int.
26492         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
26493         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
26494         (remove_redundant_iv_tests): Likewise.
26495         (canonicalize_loop_induction_variables): Likewise.
26496         * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
26497         (constant_multiple_of): Take a widest_int pointer instead of
26498         a double_int pointer.
26499         (get_computation_aff): Use wide-int interfaces.
26500         (ptr_difference_cost): Likewise.
26501         (difference_cost): Likewise.
26502         (get_loop_invariant_expr_id): Likewise.
26503         (get_computation_cost_at): Likewise.
26504         (iv_elimination_compare_lt): Likewise.
26505         (may_eliminate_iv): Likewise.
26506         * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
26507         instead of double_int.
26508         (max_loop_iterations): Likewise.
26509         (max_stmt_executions): Likewise.
26510         (estimated_stmt_executions): Likewise.
26511         * tree-ssa-loop-niter.c: Include wide-int-print.h.
26512         (split_to_var_and_offset): Use wide-int interfaces.
26513         (determine_value_range): Likewise.
26514         (bound_difference_of_offsetted_base): Likewise.
26515         (bounds_add): Take a widest_int instead of a double_int.
26516         (number_of_iterations_ne_max): Use wide-int interfaces.
26517         (number_of_iterations_ne): Likewise.
26518         (number_of_iterations_lt_to_ne): Likewise.
26519         (assert_loop_rolls_lt): Likewise.
26520         (number_of_iterations_lt): Likewise.
26521         (number_of_iterations_le): Likewise.
26522         (number_of_iterations_cond): Likewise.
26523         (number_of_iterations_exit): Likewise.
26524         (finite_loop_p): Likewise.
26525         (derive_constant_upper_bound_assign): Likewise.
26526         (derive_constant_upper_bound): Return a widest_int.
26527         (derive_constant_upper_bound_ops): Likewise.
26528         (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
26529         (record_estimate): Take a widest_int rather than a double_int.
26530         (record_nonwrapping_iv): Use wide-int interfaces.
26531         (double_int_cmp): Delete.
26532         (wide_int_cmp): New.
26533         (bound_index): Take a widest_int rather than a double_int.
26534         (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
26535         (maybe_lower_iteration_bound): Likewise.
26536         (estimate_numbers_of_iterations_loop): Likewise.
26537         (estimated_loop_iterations): Take a widest_int pointer than than
26538         a double_int pointer.
26539         (estimated_loop_iterations_int): Use wide-int interfaces.
26540         (max_loop_iterations): Take a widest_int pointer than than
26541         a double_int pointer.
26542         (max_loop_iterations_int): Use wide-int interfaces.
26543         (max_stmt_executions): Take a widest_int pointer than than
26544         a double_int pointer.
26545         (estimated_stmt_executions): Likewise.
26546         (n_of_executions_at_most): Use wide-int interfaces.
26547         (scev_probably_wraps_p): Likewise.
26548         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
26549         to real_to_integer.
26550         * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
26551         interfaces.
26552         * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
26553         double_ints.  Adjust for trailing_wide_ints <3> representation.
26554         (set_nonzero_bits): Likewise.
26555         (get_range_info): Return wide_ints rather than double_ints.
26556         Adjust for trailing_wide_ints <3> representation.
26557         (get_nonzero_bits): Likewise.
26558         (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
26559         representation.
26560         * tree-ssanames.h (struct range_info_def): Replace min, max and
26561         nonzero_bits with a trailing_wide_ints <3>.
26562         (set_range_info): Use wide_int_refs rather than double_ints.
26563         (set_nonzero_bits): Likewise.
26564         (get_range_info): Return wide_ints rather than double_ints.
26565         (get_nonzero_bits): Likewise.
26566         * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
26567         * tree-ssa-pre.c (phi_translate_1): Likewise.
26568         * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
26569         (acceptable_pow_call): Likewise.
26570         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
26571         interfaces.
26572         (vn_reference_fold_indirect): Likewise.
26573         (vn_reference_maybe_forwprop_address): Likewise.
26574         (valueize_refs_1): Likewise.
26575         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
26576         * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
26577         tree_int_cst_lt and tree_int_cst_le.
26578         * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
26579         interfaces.
26580         (streamer_alloc_tree): Likewise.
26581         * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
26582         (streamer_write_tree_header): Likewise.
26583         (streamer_write_integer_cst): Likewise.
26584         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
26585         (build_constructors): Likewise.
26586         (array_value_type): Likewise.
26587         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
26588         (vect_check_gather): Likewise.
26589         * tree-vect-generic.c (build_replicated_const): Likewise.
26590         (expand_vector_divmod): Likewise.
26591         * tree-vect-loop.c (vect_transform_loop): Likewise.
26592         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
26593         (vect_do_peeling_for_alignment): Likewise.
26594         * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
26595         * tree-vrp.c: Include wide-int.h.
26596         (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
26597         (extract_range_from_assert): Use wide-int interfaces.
26598         (vrp_int_const_binop): Likewise.
26599         (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
26600         double_int pointers.
26601         (ranges_from_anti_range): Use wide-int interfaces.
26602         (quad_int_cmp): Delete.
26603         (quad_int_pair_sort): Likewise.
26604         (extract_range_from_binary_expr_1): Use wide-int interfaces.
26605         (extract_range_from_unary_expr_1): Likewise.
26606         (adjust_range_with_scev): Likewise.
26607         (masked_increment): Take and return wide_ints rather than double_ints.
26608         (register_edge_assert_for_2): Use wide-int interfaces.
26609         (check_array_ref): Likewise.
26610         (search_for_addr_array): Likewise.
26611         (maybe_set_nonzero_bits): Likewise.
26612         (union_ranges): Pass an integer of the correct type instead of
26613         using integer_one_node.
26614         (intersect_ranges): Likewise.
26615         (simplify_truth_ops_using_ranges): Likewise.
26616         (simplify_bit_ops_using_ranges): Use wide-int interfaces.
26617         (range_fits_type_p): Likewise.
26618         (simplify_cond_using_ranges): Likewise.  Take a signop rather than
26619         a bool.
26620         (simplify_conversion_using_ranges): Use wide-int interfaces.
26621         (simplify_float_conversion_using_ranges): Likewise.
26622         (vrp_finalize): Likewise.
26623         * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
26624         (gimple_stringops_transform): Likewise.
26625         * varasm.c (decode_addr_const): Likewise.
26626         (const_hash_1): Likewise.
26627         (const_rtx_hash_1): Likewise
26628         (output_constant): Likewise.
26629         (array_size_for_constructor): Likewise.
26630         (output_constructor_regular_field): Likewise.
26631         (output_constructor_bitfield): Likewise.
26632         * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
26633         * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
26634         GENERATOR_FILEs.
26635         * gencheck.c: Define BITS_PER_UNIT.
26636         * wide-int.cc: New.
26637         * wide-int.h: New.
26638         * wide-int-print.cc: New.
26639         * wide-int-print.h: New.
26641 2014-05-06  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
26643         * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
26645 2014-05-06  Richard Biener  <rguenther@suse.de>
26647         * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
26648         TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
26649         (TODO_verify_all): Adjust.
26650         * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
26651         TODO_verify_stmts and TODO_verify_rtl_sharing.
26652         * bb-reorder.c: Likewise.
26653         * cfgexpand.c: Likewise.
26654         * cprop.c: Likewise.
26655         * cse.c: Likewise.
26656         * function.c: Likewise.
26657         * fwprop.c: Likewise.
26658         * gcse.c: Likewise.
26659         * gimple-ssa-isolate-paths.c: Likewise.
26660         * gimple-ssa-strength-reduction.c: Likewise.
26661         * ipa-split.c: Likewise.
26662         * loop-init.c: Likewise.
26663         * loop-unroll.c: Likewise.
26664         * lower-subreg.c: Likewise.
26665         * modulo-sched.c: Likewise.
26666         * postreload-gcse.c: Likewise.
26667         * predict.c: Likewise.
26668         * recog.c: Likewise.
26669         * sched-rgn.c: Likewise.
26670         * store-motion.c: Likewise.
26671         * tracer.c: Likewise.
26672         * trans-mem.c: Likewise.
26673         * tree-call-cdce.c: Likewise.
26674         * tree-cfg.c: Likewise.
26675         * tree-cfgcleanup.c: Likewise.
26676         * tree-complex.c: Likewise.
26677         * tree-eh.c: Likewise.
26678         * tree-emutls.c: Likewise.
26679         * tree-if-conv.c: Likewise.
26680         * tree-into-ssa.c: Likewise.
26681         * tree-loop-distribution.c: Likewise.
26682         * tree-object-size.c: Likewise.
26683         * tree-parloops.c: Likewise.
26684         * tree-pass.h: Likewise.
26685         * tree-sra.c: Likewise.
26686         * tree-ssa-ccp.c: Likewise.
26687         * tree-ssa-copy.c: Likewise.
26688         * tree-ssa-copyrename.c: Likewise.
26689         * tree-ssa-dce.c: Likewise.
26690         * tree-ssa-dom.c: Likewise.
26691         * tree-ssa-dse.c: Likewise.
26692         * tree-ssa-forwprop.c: Likewise.
26693         * tree-ssa-ifcombine.c: Likewise.
26694         * tree-ssa-loop-ch.c: Likewise.
26695         * tree-ssa-loop-ivcanon.c: Likewise.
26696         * tree-ssa-loop.c: Likewise.
26697         * tree-ssa-math-opts.c: Likewise.
26698         * tree-ssa-phiopt.c: Likewise.
26699         * tree-ssa-phiprop.c: Likewise.
26700         * tree-ssa-pre.c: Likewise.
26701         * tree-ssa-reassoc.c: Likewise.
26702         * tree-ssa-sink.c: Likewise.
26703         * tree-ssa-strlen.c: Likewise.
26704         * tree-ssa-tail-merge.c: Likewise.
26705         * tree-ssa-uncprop.c: Likewise.
26706         * tree-switch-conversion.c: Likewise.
26707         * tree-tailcall.c: Likewise.
26708         * tree-vect-generic.c: Likewise.
26709         * tree-vectorizer.c: Likewise.
26710         * tree-vrp.c: Likewise.
26711         * tsan.c: Likewise.
26712         * var-tracking.c: Likewise.
26713         * bt-load.c: Likewise.
26714         * cfgcleanup.c: Likewise.
26715         * combine-stack-adj.c: Likewise.
26716         * combine.c: Likewise.
26717         * compare-elim.c: Likewise.
26718         * config/epiphany/resolve-sw-modes.c: Likewise.
26719         * config/i386/i386.c: Likewise.
26720         * config/mips/mips.c: Likewise.
26721         * config/s390/s390.c: Likewise.
26722         * config/sh/sh_treg_combine.cc: Likewise.
26723         * config/sparc/sparc.c: Likewise.
26724         * dce.c: Likewise.
26725         * dse.c: Likewise.
26726         * final.c: Likewise.
26727         * ifcvt.c: Likewise.
26728         * mode-switching.c: Likewise.
26729         * passes.c: Likewise.
26730         * postreload.c: Likewise.
26731         * ree.c: Likewise.
26732         * reg-stack.c: Likewise.
26733         * regcprop.c: Likewise.
26734         * regrename.c: Likewise.
26735         * web.c: Likewise.
26737 2014-05-06  Richard Biener  <rguenther@suse.de>
26739         PR middle-end/61070
26740         * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
26741         * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
26743 2014-05-05  Jan Hubicka  <hubicka@ucw.cz>
26745         PR ipa/60965
26746         * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
26748 2014-05-05  Radovan Obradovic  <robradovic@mips.com>
26749             Tom de Vries  <tom@codesourcery.com>
26751         * target.def (call_fusage_contains_non_callee_clobbers): New
26752         DEFHOOKPOD.
26753         * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
26754         Hooks to @menu.
26755         (@node Miscellaneous Register Hooks): New node.
26756         (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
26757         * doc/tm.texi: Regenerate.
26759 2014-05-05  Marek Polacek  <polacek@redhat.com>
26761         PR driver/61065
26762         * opts.c (common_handle_option): Call error_at instead of warning_at.
26764 2014-05-05  Richard Biener  <rguenther@suse.de>
26766         * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
26767         from last_verified if update_ssa ran.  Move TODO_verify_rtl_sharing
26768         under the TODO_verify_il umbrella.
26770 2014-05-05  Richard Biener  <rguenther@suse.de>
26772         * passes.c (execute_function_todo): Move TODO_verify_flow under
26773         the TODO_verify_ul umbrella.
26775 2014-05-05  Richard Biener  <rguenther@suse.de>
26777         PR middle-end/61010
26778         * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
26779         X & CST away from a CST that is the mask of a mode.
26781 2014-05-05  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
26783         * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
26784         int argument to enum machine_mode.
26785         (picochip_class_max_nregs): Ditto.
26786         * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
26787         (picochip_class_max_nregs): Ditto.
26789 2014-05-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26791         * target.def: Add new target hook.
26792         * doc/tm.texi: Regenerate.
26793         * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
26794         * targhooks.c (default_keep_leaf_when_profiled): New function.
26796         * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
26797         (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
26799 2014-05-05  Bin Cheng  <bin.cheng@arm.com>
26801         PR tree-optimization/60363
26802         * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
26803         (copy_phi_args): New parameters.  Call get_value_locus_in_path.
26804         (update_destination_phis): New parameter.
26805         (create_edge_and_update_destination_phis): Ditto.
26806         (ssa_fix_duplicate_block_edges): Pass new arguments.
26807         (thread_single_edge): Ditto.
26809 2014-05-04  Peter Bergner  <bergner@vnet.ibm.com>
26811         * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
26812         (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
26813         (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
26814         * config/rs6000/rs6000-builtin.def (BU_MISC_1):
26815         Use RS6000_BTM_HARD_FLOAT.
26816         (BU_MISC_2): Likewise.
26817         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
26818         RS6000_BTM_HARD_FLOAT.
26819         (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
26820         is explicitly used.
26821         (rs6000_invalid_builtin): Add hard floating builtin support.
26822         (rs6000_expand_builtin): Relax the gcc_assert to allow the new
26823         hard float builtins.
26824         (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
26826 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
26828         * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
26829         Add missing function* argument.
26831 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
26833         * lra-constraints.c (valid_address_p): Move earlier in file.
26834         Add a constraint argument to the address_info version.
26835         (satisfies_memory_constraint_p): New function.
26836         (satisfies_address_constraint_p): Likewise.
26837         (process_alt_operands, curr_insn_transform): Use them.
26838         (process_address): Pass the constraint to valid_address_p when
26839         checking address operands.
26841 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
26843         * config/mips/mips.c (mips_isa_rev): New variable.
26844         (mips_set_architecture): Set it.
26845         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
26846         from mips_isa_rev.
26847         (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
26848         (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
26849         (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
26850         (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
26851         (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
26852         conditions in terms of mips_isa_rev.
26853         (mips_isa_rev): Declare.
26855 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
26857         * config/sh/sh-mem.cc: Use tabs instead of spaces.
26858         (prob_unlikely, prob_likely): Make variables const.
26860 2014-05-03  Denis Chertykov  <chertykov@gmail.com>
26862         * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
26864 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
26866         * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
26868 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
26870         * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
26871         (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
26872         * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
26873         functions.
26874         (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
26875         sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
26876         sh_pass_in_reg_p.
26877         Replace usage of ROUND_REG with sh_round_reg.
26878         Use CEIL instead of ROUND_ADVANCE.
26880 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
26882         PR target/61026
26883         * config/sh/sh.c: Include stdlib headers before everything else.
26885 2014-05-02  Jakub Jelinek  <jakub@redhat.com>
26887         * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
26888         GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
26889         (gimplify_adjust_omp_clauses): Simd region is never
26890         directly nested in combined parallel.  Instead, for linear
26891         with copyin/copyout, if in combined for simd loop, make decl
26892         firstprivate/lastprivate on OMP_FOR.
26893         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
26894         expand_omp_for_static_chunk): When setting endvar, also set
26895         fd->loop.v to the same value.
26897 2014-05-02  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
26899         * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
26901 2014-05-02  Alan Lawrence  <alan.lawrence@arm.com>
26903         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
26904         expression.
26906 2014-05-02  Marek Polacek  <polacek@redhat.com>
26908         * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
26910 2014-05-02  Kito Cheng  <kito@0xlab.org>
26912         * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
26913         to a C expression marco.
26914         * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
26915         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
26916         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
26917         * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
26918         HONOR_REG_ALLOC_ORDER.
26919         * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
26921 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
26923         * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
26925 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
26927         * config/arc/arc.c (arc_select_cc_mode): Fix typo.
26929 2014-05-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
26931         * tree-if-conv.c (is_cond_scalar_reduction): New function.
26932         (convert_scalar_cond_reduction): Likewise.
26933         (predicate_scalar_phi): Add recognition and transformation
26934         of simple conditioanl reduction to be vectorizable.
26936 2014-05-01  Marek Polacek  <polacek@redhat.com>
26938         PR c/43245
26939         * doc/invoke.texi: Document -Wdiscarded-qualifiers.
26941 2014-04-30  Alan Lawrence  <alan.lawrence@arm.com>
26943         * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
26944         vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
26945         vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
26946         vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
26947         vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
26948         vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
26949         vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
26950         vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
26952 2014-04-30  Joern Rennecke  <joern.rennecke@embecosm.com>
26954         * config/arc/arc.opt (mlra): Move comment above option name
26955         to avoid mis-parsing as language options.
26957 2014-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26959         * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
26960         * config/sol2.h: ... here.
26961         * config/sol2-10.h: Remove.
26963         * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
26964         (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
26965         (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
26966         (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
26967         (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
26968         * config/sol2.h: ... here.
26969         (SECTION_NAME_FORMAT): Don't redefine.
26970         (STARTFILE_ARCH32_SPEC): Rename to ...
26971         (STARTFILE_ARCH_SPEC): ... this.
26972         (ASM_OUTPUT_ALIGNED_COMMON): Move ...
26973         * config/sparc/sol2.h: ... here.
26974         (SECTION_NAME_FORMAT): Don't undef.
26975         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
26976         (SUBTARGET_EXTRA_SPECS): Remove.
26977         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
26979         * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
26980         (MD_STARTFILE_PREFIX): Remove.
26981         (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
26982         (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
26983         (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
26984         (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
26985         (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
26986         (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
26987         * config/i386/sol2.h: ... here.
26988         (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
26989         * config/i386/sol2-bi.h: Remove.
26990         * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
26991         (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
26993         * config/i386/t-sol2-64: Rename to ...
26994         * config/i386/t-sol2: ... this.
26995         * config/sparc/t-sol2-64: Rename to ...
26996         * config/sparc/t-sol2: ... this.
26998         * config.gcc (*-*-solaris2*): Split sol2_tm_file into
26999         sol2_tm_file_head, sol2_tm_file_tail.
27000         Include ${cpu_type}/sol2.h before sol2.h.
27001         Remove sol2-10.h.
27002         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
27003         i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
27004         Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
27005         Reflect i386/t-sol2-64 renaming.
27006         (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
27007         Reflect sparc/t-sol2-64 renaming.
27009 2014-04-30  Richard Biener  <rguenther@suse.de>
27011         * passes.c (execute_function_todo): Move TODO_verify_stmts
27012         and TODO_verify_ssa under the TODO_verify_il umbrella.
27013         * tree-ssa.h (verify_ssa): Adjust prototype.
27014         * tree-ssa.c (verify_ssa): Add parameter to tell whether
27015         we should verify SSA operands.
27016         * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
27017         * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
27018         whether we should verify whether not throwing stmts have EH info.
27019         * graphite-scop-detection.c (create_sese_edges): Adjust.
27020         * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
27021         * tree-eh.c (lower_try_finally_switch): Do not add the
27022         default case label twice.
27024 2014-04-30  Marek Polacek  <polacek@redhat.com>
27026         * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
27027         * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
27028         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
27029         * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
27031 2014-04-29  Alan Lawrence  <alan.lawrence@arm.com>
27033         * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
27034         vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
27035         vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
27036         vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
27037         vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
27038         vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
27039         vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
27040         vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
27042 2014-04-29  David Malcolm  <dmalcolm@redhat.com>
27044         * tree-cfg.c (dump_function_to_file): Dump the return type of
27045         functions, in a line to itself before the function body, mimicking
27046         the layout of a C function.
27048 2014-04-29  Jakub Jelinek  <jakub@redhat.com>
27050         PR tree-optimization/60971
27051         * tree-tailcall.c (process_assignment): Reject conversions which
27052         reduce precision.
27054 2014-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
27056         * calls.c (initialize_argument_information): Always treat
27057         PUSH_ARGS_REVERSED as 1, simplify code accordingly.
27058         (expand_call): Likewise.
27059         (emit_library_call_calue_1): Likewise.
27060         * expr.c (PUSH_ARGS_REVERSED): Do not define.
27061         (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
27062         code accordingly.
27064 2014-04-29  Nick Clifton  <nickc@redhat.com>
27066         * config/msp430/msp430.md (umulsidi): Fix typo.
27067         (mulhisi3): Enable even inside interrupt handlers.
27068         * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
27069         bigger return address pushed in large mode.
27071 2014-04-29  Nick Clifton  <nickc@redhat.com>
27073         * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
27074         (arc_init_reg_tables): Use a machine_mode enum to iterate over
27075         available modes.
27076         * config/m32r/m32r.c (init_reg_tables): Likewise.
27077         * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
27078         enum to hold the modes.
27080 2014-04-29  Richard Biener  <rguenther@suse.de>
27082         * dominance.c (free_dominance_info): Add overload with
27083         function parameter.
27084         (dom_info_state): Likewise.
27085         (dom_info_available_p): Likewise.
27086         * basic-block.h (free_dominance_info, dom_info_state,
27087         dom_info_available_p): Declare overloads.
27088         * passes.c (execute_function_todo): Verify that verifiers
27089         don't change dominator info state.  Drop dominator info
27090         for IPA pass invocations.
27091         * cgraph.c (release_function_body): Restore asserts that
27092         dominator information is released.
27094 2014-04-29  Patrick Palka  <patrick@parcs.ath.cx>
27096         * doc/invoke.texi: Fix typo.
27097         * tree-vrp.c: Fix typos.
27098         * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
27100 2014-04-29  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
27102         * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
27104 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
27106         * config/aarch64/aarch64-builtins.c
27107         (aarch64_types_storestruct_lane_qualifiers): New.
27108         (TYPES_STORESTRUCT_LANE): Likewise.
27109         * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
27110         (st3_lane): Likewise.
27111         (st4_lane): Likewise.
27112         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
27113         (vec_store_lanesci_lane<mode>): Likewise.
27114         (vec_store_lanesxi_lane<mode>): Likewise.
27115         (aarch64_st2_lane<VQ:mode>): Likewise.
27116         (aarch64_st3_lane<VQ:mode>): Likewise.
27117         (aarch64_st4_lane<VQ:mode>): Likewise.
27118         * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
27119         * config/aarch64/arm_neon.h
27120         (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
27121         use new macro arguments.
27122         (__ST3_LANE_FUNC): Likewise.
27123         (__ST4_LANE_FUNC): Likewise.
27124         * config/aarch64/iterators.md (V_TWO_ELEM): New.
27125         (V_THREE_ELEM): Likewise.
27126         (V_FOUR_ELEM): Likewise.
27128 2014-04-28  David Malcolm  <dmalcolm@redhat.com>
27130         * doc/gimple.texi: Replace the description of the now-defunct
27131         union gimple_statement_d with a diagram showing the
27132         gimple_statement_base class hierarchy and its relationships to
27133         the GSS_ and GIMPLE_ enums.
27135 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
27137         * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
27138         * config/aarch64/aarch64.c
27139         (aarch64_cannot_change_mode_class): Weaken conditions.
27140         (aarch64_modes_tieable_p): New.
27141         * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
27143 2014-04-28  Pat Haugen  <pthaugen@us.ibm.com>
27145         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
27146         (loadsync_<mode>): Change mode.
27147         (load_quadpti, store_quadpti): New.
27148         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
27149         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
27151 2014-04-28  Martin Jambor  <mjambor@suse.cz>
27153         * tree-sra.c (sra_modify_expr): Generate new memory accesses with
27154         same alias type as the original statement.
27155         (subreplacement_assignment_data): New type.
27156         (handle_unscalarized_data_in_subtree): New type of parameter,
27157         generate new memory accesses with same alias type as the original
27158         statement.
27159         (load_assign_lhs_subreplacements): Likewise.
27160         (sra_modify_constructor_assign): Generate new memory accesses with
27161         same alias type as the original statement.
27163 2014-04-28  Richard Biener  <rguenther@suse.de>
27165         * tree-pass.h (TODO_verify_il): Define.
27166         (TODO_verify_all): Complete properly.
27167         * passes.c (execute_function_todo): Move existing loop-closed
27168         SSA verification under TODO_verify_il.
27169         (execute_one_pass): Trigger TODO_verify_il at todo-after time.
27170         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
27171         Fix tree sharing issue.
27173 2014-04-28  Richard Biener  <rguenther@suse.de>
27175         PR middle-end/60092
27176         * builtins.def (DEF_C11_BUILTIN): Add.
27177         (BUILT_IN_ALIGNED_ALLOC): Likewise.
27178         * coretypes.h (enum function_class): Add function_c11_misc.
27179         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
27180         BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
27181         (call_may_clobber_ref_p_1): Likewise.
27182         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
27183         (mark_all_reaching_defs_necessary_1): Likewise.
27184         (propagate_necessity): Likewise.
27185         (eliminate_unnecessary_stmts): Likewise.
27186         * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
27188 2014-04-28  Richard Biener  <rguenther@suse.de>
27190         * tree-vrp.c (vrp_var_may_overflow): Remove.
27191         (vrp_visit_phi_node): Rather than bumping to +-INF possibly
27192         with overflow immediately bump to one before that value and
27193         let iteration figure out overflow status.
27195 2014-04-28  Richard Biener  <rguenther@suse.de>
27197         * configure.ac: Do valgrind header checks unconditionally.
27198         Add --enable-valgrind-annotations.
27199         * system.h: Guard valgrind header inclusion with
27200         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
27201         * alloc-pool.c (pool_alloc, pool_free): Use
27202         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
27203         to guard possibly dead code.
27204         * config.in: Regenerated.
27205         * configure: Likewise.
27207 2014-04-28  Jeff Law  <law@redhat.com>
27209         PR tree-optimization/60902
27210         * tree-ssa-threadedge.c
27211         (record_temporary_equivalences_from_stmts_at_dest): Only iterate
27212         over real defs when invalidating outputs from statements that do not
27213         produce useful outputs for threading.
27215 2014-04-28  Richard Biener  <rguenther@suse.de>
27217         PR tree-optimization/60979
27218         * graphite-scop-detection.c (scopdet_basic_block_info): Reject
27219         SCOPs that end in a block with a successor with abnormal
27220         predecessors.
27222 2014-04-28  Richard Biener  <rguenther@suse.de>
27224         * tree-pass.h (execute_pass_list): Adjust prototype.
27225         * passes.c (pass_manager::execute_early_local_passes): Adjust.
27226         (do_per_function): Change callback signature, push all actual
27227         work to the callbals.
27228         (do_per_function_toporder): Likewise.
27229         (execute_function_dump): Adjust.
27230         (execute_function_todo): Likewise.
27231         (clear_last_verified): Likewise.
27232         (verify_curr_properties): Likewise.
27233         (update_properties_after_pass): Likewise.
27234         (execute_pass_list_1): Split out from ...
27235         (execute_pass_list): ... here.  Adjust.
27236         (execute_ipa_pass_list): Likewise.
27237         * cgraphunit.c (cgraph_add_new_function): Adjust.
27238         (analyze_function): Likewise.
27239         (expand_function): Likewise.
27240         * cgraph.c (release_function_body): Free dominance info
27241         here instead of asserting it was magically freed elsewhere.
27243 2014-04-28  Eric Botcazou  <ebotcazou@adacore.com>
27245         * configure.ac: Tweak GAS check for LEON instructions on SPARC.
27246         * configure: Regenerate.
27247         * config/sparc/sparc.opt (muser-mode): New option.
27248         * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
27249         for LEON3.
27250         (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
27251         * doc/invoke.texi (SPARC options): Document -muser-mode.
27253 2014-04-27  Richard Sandiford  <rdsandiford@googlemail.com>
27255         * cselib.c (find_slot_memmode): Delete.
27256         (cselib_hasher): Change compare_type to a struct.
27257         (cselib_hasher::equal): Update accordingly.  Don't expect wrapped
27258         constants.
27259         (preserve_constants_and_equivs): Adjust for new compare_type.
27260         (cselib_find_slot): Likewise.  Take the mode of the rtx as argument.
27261         (wrap_constant): Delete.
27262         (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
27264 2014-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
27266         * doc/install.texi (Building with profile feedback): Remove
27267         outdated sentence.
27269 2014-04-26  Tom de Vries  <tom@codesourcery.com>
27271         * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
27272         array accesses.
27274 2014-04-25  Cary Coutant  <ccoutant@google.com>
27276         PR debug/60929
27277         * dwarf2out.c (should_move_die_to_comdat): A type definition
27278         can contain a subprogram definition, but don't move it to a
27279         comdat unit.
27280         (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
27281         (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
27282         from original DIE.
27283         (clone_tree_hash): Rename to...
27284         (clone_tree_partial): ...this; change callers.  Copy
27285         DW_TAG_subprogram DIEs as declarations.
27286         (copy_decls_walk): Don't copy children of a declaration into a
27287         type unit.
27289 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
27291         PR target/60969
27292         * config/i386/i386.md (*movsf_internal): Set MODE to SI for
27293         alternative 12.
27295 2014-04-25  Jiong Wang  <jiong.wang@arm.com>
27297         * config/arm/predicates.md (call_insn_operand): Add long_call check.
27298         * config/arm/arm.md (sibcall, sibcall_value): Force the address to
27299         reg for long_call.
27300         * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
27301         restriction.
27303 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27305         * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
27307 2014-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27309         PR tree-optimization/60930
27310         * gimple-ssa-strength-reduction.c (create_mul_imm_cand):  Reject
27311         creating a multiply candidate by folding two constant
27312         multiplicands when the result overflows.
27314 2014-04-25  Jakub Jelinek  <jakub@redhat.com>
27316         PR tree-optimization/60960
27317         * tree-vect-generic.c (expand_vector_operation): Only call
27318         expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
27320 2014-04-25  Tom de Vries  <tom@codesourcery.com>
27322         * expr.c (clobber_reg_mode): New function.
27323         * expr.h (clobber_reg): New function.
27325 2014-04-25  Tom de Vries  <tom@codesourcery.com>
27327         * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
27328         clobbers.
27330 2014-04-25  Radovan Obradovic  <robradovic@mips.com>
27331             Tom de Vries  <tom@codesourcery.com>
27333         * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
27334         handle.
27335         * rtl.h (find_all_hard_reg_sets): Add bool parameter.
27336         * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
27337         new argument to find_all_hard_reg_sets call.
27339 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27341         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
27342         Use HOST_WIDE_INT_C for mask literal.
27343         (aarch_rev16_shleft_mask_imm_p): Likewise.
27345 2014-04-25  Eric Botcazou  <ebotcazou@adacore.com>
27347         PR target/60941
27348         * config/sparc/sparc.md (ashlsi3_extend): Delete.
27350 2014-04-25  Marc Glisse  <marc.glisse@inria.fr>
27352         PR preprocessor/56540
27353         * config/i386/i386-c.c (ix86_target_macros): Define
27354         __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
27356 2014-04-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27358         * configure.ac (tga_func): Remove.
27359         (LIB_TLS_SPEC): Remove.
27360         * configure: Regenerate.
27361         * config.in: Regenerate.
27362         * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
27364 2014-04-25  Richard Biener  <rguenther@suse.de>
27366         PR ipa/60912
27367         * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
27368         call stmt use/clobber sets during stmt walk instead of
27369         walking the possibly incomplete set of caller edges.
27371 2014-04-25  Richard Biener  <rguenther@suse.de>
27373         PR ipa/60911
27374         * passes.c (apply_ipa_transforms): Inline into only caller ...
27375         (execute_one_pass): ... here.  Properly bring in function
27376         bodies for nodes we want to apply IPA transforms to.
27378 2014-04-24  Cong Hou  <congh@google.com>
27380         PR tree-optimization/60896
27381         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
27382         all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
27383         (vect_mark_pattern_stmts): Set the def type of all statements in
27384         PATTERN_DEF_SEQ as vect_internal_def.
27386 2014-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
27388         * doc/extend.texi (PowerPC Built-in Functions): Document new
27389         powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
27390         (PowerPC AltiVec/VSX Built-in Functions): Likewise.
27392         * config/rs6000/predicates.md (const_0_to_3_operand): New
27393         predicate to match 0..3 integer constants.
27395         * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
27396         to support adding miscellaneous builtin functions.
27397         (BU_DFP_MISC_2): Likewise.
27398         (BU_P7_MISC_1): Likewise.
27399         (BU_P7_MISC_2): Likewise.
27400         (BU_P8V_MISC_3): Likewise.
27401         (BU_MISC_1): Likewise.
27402         (BU_MISC_2): Likewise.
27403         (DIVWE): Add extended divide builtin functions.
27404         (DIVWEO): Likewise.
27405         (DIVWEU): Likewise.
27406         (DIVWEUO): Likewise.
27407         (DIVDE): Likewise.
27408         (DIVDEO): Likewise.
27409         (DIVDEU): Likewise.
27410         (DIVDEUO): Likewise.
27411         (DXEX): Add decimal floating-point builtin functions.
27412         (DXEXQ): Likewise.
27413         (DDEDPD): Likewise.
27414         (DDEDPDQ): Likewise.
27415         (DENBCD): Likewise.
27416         (DENBCDQ): Likewise.
27417         (DIEX): Likewise.
27418         (DIEXQ): Likewise.
27419         (DSCLI): Likewise.
27420         (DSCLIQ): Likewise.
27421         (DSCRI): Likewise.
27422         (DSCRIQ): Likewise.
27423         (CDTBCD): Add new BCD builtin functions.
27424         (CBCDTD): Likewise.
27425         (ADDG6S): Likewise.
27426         (BCDADD): Likewise.
27427         (BCDADD_LT): Likewise.
27428         (BCDADD_EQ): Likewise.
27429         (BCDADD_GT): Likewise.
27430         (BCDADD_OV): Likewise.
27431         (BCDSUB): Likewise.
27432         (BCDSUB_LT): Likewise.
27433         (BCDSUB_EQ): Likewise.
27434         (BCDSUB_GT): Likewise.
27435         (BCDSUB_OV): Likewise.
27436         (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
27437         (UNPACK_TD): Likewise.
27438         (PACK_TF): Likewise.
27439         (UNPACK_TF): Likewise.
27440         (UNPACK_TF_0): Likewise.
27441         (UNPACK_TF_1): Likewise.
27442         (PACK_V1TI): Likewise.
27443         (UNPACK_V1TI): Likewise.
27445         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
27446         support for decimal floating point builtin functions.
27447         (rs6000_expand_ternop_builtin): Add checks for the new builtin
27448         functions that take constant arguments.
27449         (rs6000_invalid_builtin): Add decimal floating point builtin support.
27450         (rs6000_init_builtins): Setup long double, _Decimal64, and
27451         _Decimal128 types for new builtin functions.
27452         (builtin_function_type): Set the unsigned flags appropriately for
27453         the new builtin functions.
27454         (rs6000_opt_masks): Add support for decimal floating point builtin
27455         functions.
27457         * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
27458         floating point builtin functions.
27459         (RS6000_BTM_COMMON): Likewise.
27460         (RS6000_BTI_long_double): Likewise.
27461         (RS6000_BTI_dfloat64): Likewise.
27462         (RS6000_BTI_dfloat128): Likewise.
27463         (long_double_type_internal_node): Likewise.
27464         (dfloat64_type_internal_node): Likewise.
27465         (dfloat128_type_internal_node): Likewise.
27467         * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
27468         2.07 bcd arithmetic instructions.
27469         (UNSPEC_BCDSUB): Likewise.
27470         (UNSPEC_BCD_OVERFLOW): Likewise.
27471         (UNSPEC_BCD_ADD_SUB): Likewise.
27472         (bcd_add_sub): Likewise.
27473         (BCD_TEST): Likewise.
27474         (bcd<bcd_add_sub>): Likewise.
27475         (bcd<bcd_add_sub>_test): Likewise.
27476         (bcd<bcd_add_sub>_test2): Likewise.
27477         (bcd<bcd_add_sub>_<code>): Likewise.
27478         (peephole2 for combined bcd ops): Likewise.
27480         * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
27481         decimal floating point builtin functions.
27482         (UNSPEC_DENBCD): Likewise.
27483         (UNSPEC_DXEX): Likewise.
27484         (UNSPEC_DIEX): Likewise.
27485         (UNSPEC_DSCLI): Likewise.
27486         (UNSPEC_DSCRI): Likewise.
27487         (D64_D128): Likewise.
27488         (dfp_suffix): Likewise.
27489         (dfp_ddedpd_<mode>): Likewise.
27490         (dfp_denbcd_<mode>): Likewise.
27491         (dfp_dxex_<mode>): Likewise.
27492         (dfp_diex_<mode>): Likewise.
27493         (dfp_dscli_<mode>): Likewise.
27494         (dfp_dscri_<mode>): Likewise.
27496         * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
27497         builtin functions.
27498         (UNSPEC_CDTBCD): Likewise.
27499         (UNSPEC_CBCDTD): Likewise.
27500         (UNSPEC_DIVE): Add support for new extended divide builtin functions.
27501         (UNSPEC_DIVEO): Likewise.
27502         (UNSPEC_DIVEU): Likewise.
27503         (UNSPEC_DIVEUO): Likewise.
27504         (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
27505         pack/unpack 128-bit types.
27506         (UNSPEC_PACK_128BIT): Likewise.
27507         (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
27508         (udiv<mode>3): Use idiv_ldiv mode attribute.
27509         (div<mode>3): Likewise.
27510         (addg6s): Add new BCD builtin functions.
27511         (cdtbcd): Likewise.
27512         (cbcdtd): Likewise.
27513         (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
27514         (div_extend): Likewise.
27515         (div<div_extend>_<mode>"): Likewise.
27516         (FP128_64): Add support for new builtin functions to pack/unpack
27517         128-bit types.
27518         (unpack<mode>): Likewise.
27519         (unpacktf_0): Likewise.
27520         (unpacktf_1): Likewise.
27521         (unpack<mode>_dm): Likewise.
27522         (unpack<mode>_nodm): Likewise.
27523         (pack<mode>): Likewise.
27524         (unpackv1ti): Likewise.
27525         (packv1ti): Likewise.
27527 2014-04-24  Vishnu K S  <Vishnu.k_s@atmel.com>
27529         * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
27530         is disabled.
27532 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
27534         * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
27535         * gimplify.c (omp_is_private): Change last argument's type to int.
27536         Only diagnose lastprivate if the simd argument is 1, only diagnose
27537         linear if the simd argument is 2.
27538         (gimplify_omp_for): Adjust omp_is_private callers.  When adding
27539         lastprivate or private, add the clause to OMP_FOR_CLAUSES.  Pass
27540         GOVD_EXPLICIT to omp_add_variable.  For simd with collapse == 1
27541         create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
27542         If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
27543         increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
27544         * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
27545         OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
27546         * tree-nested.c (convert_nonlocal_omp_clauses,
27547         convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
27549 2014-04-24  Segher Boessenkool  <segher@kernel.crashing.org>
27551         PR target/60822
27552         * config/m68k/m68k.md (extendplussidi): Don't allow memory for
27553         operand 1.
27555 2014-04-24  Dimitris Papavasiliou  <dpapavas@gmail.com>
27557         * flag-types.h (enum ivar_visibility): Add.
27559 2014-04-24  Trevor Saunders  <tsaunders@mozilla.com>
27561         * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
27562         function * argument.
27564 2014-04-24  Alan Lawrence  <alan.lawrence@arm.com>
27566         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
27568 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
27569             Tom de Vries  <tom@codesourcery.com>
27571         * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
27572         * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
27573         reg-note.
27574         * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
27575         * emit-rtl.c (try_split): Same.
27577 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
27578             Tom de Vries  <tom@codesourcery.com>
27580         * common.opt (fuse-caller-save): New option.
27582 2014-04-24  Tejas Belagod  <tejas.belagod@arm.com>
27584         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
27585         elements for big-endian.
27587 2014-04-24  Richard Biener  <rguenther@suse.de>
27589         * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
27590         during TER and instead use the sepops interface for expanding
27591         non-GIMPLE_SINGLE_RHS.
27593 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27595         * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
27596         if not HAVE_AS_IX86_DIFF_SECT_DELTA.
27598 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27600         * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
27601         assembler 64-bit option.
27602         * configure: Regenerate.
27604 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27606         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
27607         TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
27608         (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
27609         (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
27610         (TARGET_CRYPTO): Take TARGET_SIMD into account.
27612 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27614         * config/aarch64/aarch64-builtins.c
27615         (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
27616         BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
27617         * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
27618         * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
27619         builtins.
27620         * config/aarch64/iterator.md (VDQHSD): New mode iterator.
27621         (Vrevsuff): New mode attribute.
27623 2014-04-24  Terry Guo  <terry.guo@arm.com>
27625         * config/arm/arm.h (machine_function): Define variable
27626         after_arm_reorg here.
27627         * config/arm/arm.c (after_arm_reorg): Remove the definition.
27628         (arm_split_constant): Update the way to access variable
27629         after_arm_reorg.
27630         (arm_reorg): Ditto.
27631         (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
27633 2014-04-23  Tom de Vries  <tom@codesourcery.com>
27635         * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
27637 2014-04-23  David Malcolm  <dmalcolm@redhat.com>
27639         * is-a.h: Update comments to reflect the following changes to the
27640         "pointerness" of the API, making the template parameter match the
27641         return type, allowing use of is-a.h with typedefs of pointers.
27642         (is_a_helper::cast): Return a T rather then a pointer to a T, so
27643         that the return type matches the parameter to the is_a_helper.
27644         (as_a): Likewise.
27645         (dyn_cast): Likewise.
27647         * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
27648         pointer from the is-a.h API.
27650         * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
27651         (is_a_helper <cgraph_node *>::test): ...this, matching change to
27652         is-a.h API.
27653         (is_a_helper <varpool_node>::test): Likewise, convert to...
27654         (is_a_helper <varpool_node *>::test): ...this.
27656         (varpool_first_variable): Update for removal of implicit pointer
27657         from the is-a.h API.
27658         (varpool_next_variable): Likewise.
27659         (varpool_first_static_initializer): Likewise.
27660         (varpool_next_static_initializer): Likewise.
27661         (varpool_first_defined_variable): Likewise.
27662         (varpool_next_defined_variable): Likewise.
27663         (cgraph_first_defined_function): Likewise.
27664         (cgraph_next_defined_function): Likewise.
27665         (cgraph_first_function): Likewise.
27666         (cgraph_next_function): Likewise.
27667         (cgraph_first_function_with_gimple_body): Likewise.
27668         (cgraph_next_function_with_gimple_body): Likewise.
27669         (cgraph_alias_target): Likewise.
27670         (varpool_alias_target): Likewise.
27671         (cgraph_function_or_thunk_node): Likewise.
27672         (varpool_variable_node): Likewise.
27673         (symtab_real_symbol_p): Likewise.
27674         * cgraphunit.c (referred_to_p): Likewise.
27675         (analyze_functions): Likewise.
27676         (handle_alias_pairs): Likewise.
27677         * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
27678         * gimple-ssa.h (gimple_vuse_op): Likewise.
27679         (gimple_vdef_op): Likewise.
27680         * gimple-streamer-in.c (input_gimple_stmt): Likewise.
27681         * gimple.c (gimple_build_asm_1): Likewise.
27682         (gimple_build_try): Likewise.
27683         (gimple_build_resx): Likewise.
27684         (gimple_build_eh_dispatch): Likewise.
27685         (gimple_build_omp_for): Likewise.
27686         (gimple_omp_for_set_clauses): Likewise.
27688         * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
27689         (is_a_helper <gimple_statement_asm *>::test): ...this.
27690         (is_a_helper <gimple_statement_bind>::test): Convert to...
27691         (is_a_helper <gimple_statement_bind *>::test): ...this.
27692         (is_a_helper <gimple_statement_call>::test): Convert to...
27693         (is_a_helper <gimple_statement_call *>::test): ...this.
27694         (is_a_helper <gimple_statement_catch>::test): Convert to...
27695         (is_a_helper <gimple_statement_catch *>::test): ...this.
27696         (is_a_helper <gimple_statement_resx>::test): Convert to...
27697         (is_a_helper <gimple_statement_resx *>::test): ...this.
27698         (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
27699         (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
27700         (is_a_helper <gimple_statement_eh_else>::test): Convert to...
27701         (is_a_helper <gimple_statement_eh_else *>::test): ...this.
27702         (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
27703         (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
27704         (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
27705         (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
27706         (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
27707         (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
27708         (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
27709         (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
27710         (is_a_helper <gimple_statement_omp_return>::test): Convert to...
27711         (is_a_helper <gimple_statement_omp_return *>::test): ...this.
27712         (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
27713         (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
27714         (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
27715         (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
27716         (is_a_helper <gimple_statement_omp_for>::test): Convert to...
27717         (is_a_helper <gimple_statement_omp_for *>::test): ...this.
27718         (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
27719         (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
27720         (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
27721         (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
27722         (is_a_helper <gimple_statement_omp_target>::test): Convert to...
27723         (is_a_helper <gimple_statement_omp_target *>::test): ...this.
27724         (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
27725         (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
27726         (is_a_helper <gimple_statement_omp_single>::test): Convert to...
27727         (is_a_helper <gimple_statement_omp_single *>::test): ...this.
27728         (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
27729         (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
27730         (is_a_helper <gimple_statement_omp_task>::test): Convert to...
27731         (is_a_helper <gimple_statement_omp_task *>::test): ...this.
27732         (is_a_helper <gimple_statement_phi>::test): Convert to...
27733         (is_a_helper <gimple_statement_phi *>::test): ...this.
27734         (is_a_helper <gimple_statement_transaction>::test): Convert to...
27735         (is_a_helper <gimple_statement_transaction *>::test): ...this.
27736         (is_a_helper <gimple_statement_try>::test): Convert to...
27737         (is_a_helper <gimple_statement_try *>::test): ...this.
27738         (is_a_helper <gimple_statement_wce>::test): Convert to...
27739         (is_a_helper <gimple_statement_wce *>::test): ...this.
27740         (is_a_helper <const gimple_statement_asm>::test): Convert to...
27741         (is_a_helper <const gimple_statement_asm *>::test): ...this.
27742         (is_a_helper <const gimple_statement_bind>::test): Convert to...
27743         (is_a_helper <const gimple_statement_bind *>::test): ...this.
27744         (is_a_helper <const gimple_statement_call>::test): Convert to...
27745         (is_a_helper <const gimple_statement_call *>::test): ...this.
27746         (is_a_helper <const gimple_statement_catch>::test): Convert to...
27747         (is_a_helper <const gimple_statement_catch *>::test): ...this.
27748         (is_a_helper <const gimple_statement_resx>::test): Convert to...
27749         (is_a_helper <const gimple_statement_resx *>::test): ...this.
27750         (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
27751         (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
27752         (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
27753         (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
27754         (is_a_helper <const gimple_statement_omp_atomic_load>::test):
27755         Convert to...
27756         (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
27757         ...this.
27758         (is_a_helper <const gimple_statement_omp_atomic_store>::test):
27759         Convert to...
27760         (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
27761         ...this.
27762         (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
27763         (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
27764         (is_a_helper <const gimple_statement_omp_continue>::test): Convert
27765         to...
27766         (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
27767         (is_a_helper <const gimple_statement_omp_critical>::test): Convert
27768         to...
27769         (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
27770         (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
27771         (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
27772         (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
27773         (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
27774         (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
27775         to...
27776         (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
27777         (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
27778         (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
27779         (is_a_helper <const gimple_statement_omp_sections>::test): Convert
27780         to...
27781         (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
27782         (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
27783         (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
27784         (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
27785         (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
27786         (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
27787         (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
27788         (is_a_helper <const gimple_statement_phi>::test): Convert to...
27789         (is_a_helper <const gimple_statement_phi *>::test): ...this.
27790         (is_a_helper <const gimple_statement_transaction>::test): Convert to...
27791         (is_a_helper <const gimple_statement_transaction *>::test): ...this.
27792         (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
27793         (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
27794         (is_a_helper <gimple_statement_with_ops>::test): Convert to...
27795         (is_a_helper <gimple_statement_with_ops *>::test): ...this.
27796         (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
27797         to...
27798         (is_a_helper <const gimple_statement_with_memory_ops *>::test):
27799         ...this.
27800         (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
27801         (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
27803         (gimple_use_ops): Update for removal of implicit pointer from the
27804         is-a.h API.
27805         (gimple_set_use_ops): Likewise.
27806         (gimple_vuse): Likewise.
27807         (gimple_vdef): Likewise.
27808         (gimple_vuse_ptr): Likewise.
27809         (gimple_vdef_ptr): Likewise.
27810         (gimple_set_vuse): Likewise.
27811         (gimple_set_vdef): Likewise.
27812         (gimple_omp_return_set_lhs): Likewise.
27813         (gimple_omp_return_lhs): Likewise.
27814         (gimple_omp_return_lhs_ptr): Likewise.
27815         (gimple_call_fntype): Likewise.
27816         (gimple_call_set_fntype): Likewise.
27817         (gimple_call_set_internal_fn): Likewise.
27818         (gimple_call_use_set): Likewise.
27819         (gimple_call_clobber_set): Likewise.
27820         (gimple_bind_vars): Likewise.
27821         (gimple_bind_set_vars): Likewise.
27822         (gimple_bind_body_ptr): Likewise.
27823         (gimple_bind_set_body): Likewise.
27824         (gimple_bind_add_stmt): Likewise.
27825         (gimple_bind_block): Likewise.
27826         (gimple_bind_set_block): Likewise.
27827         (gimple_asm_ninputs): Likewise.
27828         (gimple_asm_noutputs): Likewise.
27829         (gimple_asm_nclobbers): Likewise.
27830         (gimple_asm_nlabels): Likewise.
27831         (gimple_asm_input_op): Likewise.
27832         (gimple_asm_input_op_ptr): Likewise.
27833         (gimple_asm_output_op): Likewise.
27834         (gimple_asm_output_op_ptr): Likewise.
27835         (gimple_asm_set_output_op): Likewise.
27836         (gimple_asm_clobber_op): Likewise.
27837         (gimple_asm_set_clobber_op): Likewise.
27838         (gimple_asm_label_op): Likewise.
27839         (gimple_asm_set_label_op): Likewise.
27840         (gimple_asm_string): Likewise.
27841         (gimple_catch_types): Likewise.
27842         (gimple_catch_types_ptr): Likewise.
27843         (gimple_catch_handler_ptr): Likewise.
27844         (gimple_catch_set_types): Likewise.
27845         (gimple_catch_set_handler): Likewise.
27846         (gimple_eh_filter_types): Likewise.
27847         (gimple_eh_filter_types_ptr): Likewise.
27848         (gimple_eh_filter_failure_ptr): Likewise.
27849         (gimple_eh_filter_set_types): Likewise.
27850         (gimple_eh_filter_set_failure): Likewise.
27851         (gimple_eh_must_not_throw_fndecl): Likewise.
27852         (gimple_eh_must_not_throw_set_fndecl): Likewise.
27853         (gimple_eh_else_n_body_ptr): Likewise.
27854         (gimple_eh_else_e_body_ptr): Likewise.
27855         (gimple_eh_else_set_n_body): Likewise.
27856         (gimple_eh_else_set_e_body): Likewise.
27857         (gimple_try_eval_ptr): Likewise.
27858         (gimple_try_cleanup_ptr): Likewise.
27859         (gimple_try_set_eval): Likewise.
27860         (gimple_try_set_cleanup): Likewise.
27861         (gimple_wce_cleanup_ptr): Likewise.
27862         (gimple_wce_set_cleanup): Likewise.
27863         (gimple_phi_capacity): Likewise.
27864         (gimple_phi_num_args): Likewise.
27865         (gimple_phi_result): Likewise.
27866         (gimple_phi_result_ptr): Likewise.
27867         (gimple_phi_set_result): Likewise.
27868         (gimple_phi_arg): Likewise.
27869         (gimple_phi_set_arg): Likewise.
27870         (gimple_resx_region): Likewise.
27871         (gimple_resx_set_region): Likewise.
27872         (gimple_eh_dispatch_region): Likewise.
27873         (gimple_eh_dispatch_set_region): Likewise.
27874         (gimple_omp_critical_name): Likewise.
27875         (gimple_omp_critical_name_ptr): Likewise.
27876         (gimple_omp_critical_set_name): Likewise.
27877         (gimple_omp_for_clauses): Likewise.
27878         (gimple_omp_for_clauses_ptr): Likewise.
27879         (gimple_omp_for_set_clauses): Likewise.
27880         (gimple_omp_for_collapse): Likewise.
27881         (gimple_omp_for_index): Likewise.
27882         (gimple_omp_for_index_ptr): Likewise.
27883         (gimple_omp_for_set_index): Likewise.
27884         (gimple_omp_for_initial): Likewise.
27885         (gimple_omp_for_initial_ptr): Likewise.
27886         (gimple_omp_for_set_initial): Likewise.
27887         (gimple_omp_for_final): Likewise.
27888         (gimple_omp_for_final_ptr): Likewise.
27889         (gimple_omp_for_set_final): Likewise.
27890         (gimple_omp_for_incr): Likewise.
27891         (gimple_omp_for_incr_ptr): Likewise.
27892         (gimple_omp_for_set_incr): Likewise.
27893         (gimple_omp_for_pre_body_ptr): Likewise.
27894         (gimple_omp_for_set_pre_body): Likewise.
27895         (gimple_omp_parallel_clauses): Likewise.
27896         (gimple_omp_parallel_clauses_ptr): Likewise.
27897         (gimple_omp_parallel_set_clauses): Likewise.
27898         (gimple_omp_parallel_child_fn): Likewise.
27899         (gimple_omp_parallel_child_fn_ptr): Likewise.
27900         (gimple_omp_parallel_set_child_fn): Likewise.
27901         (gimple_omp_parallel_data_arg): Likewise.
27902         (gimple_omp_parallel_data_arg_ptr): Likewise.
27903         (gimple_omp_parallel_set_data_arg): Likewise.
27904         (gimple_omp_task_clauses): Likewise.
27905         (gimple_omp_task_clauses_ptr): Likewise.
27906         (gimple_omp_task_set_clauses): Likewise.
27907         (gimple_omp_task_child_fn): Likewise.
27908         (gimple_omp_task_child_fn_ptr): Likewise.
27909         (gimple_omp_task_set_child_fn): Likewise.
27910         (gimple_omp_task_data_arg): Likewise.
27911         (gimple_omp_task_data_arg_ptr): Likewise.
27912         (gimple_omp_task_set_data_arg): Likewise.
27913         (gimple_omp_taskreg_clauses): Likewise.
27914         (gimple_omp_taskreg_clauses_ptr): Likewise.
27915         (gimple_omp_taskreg_set_clauses): Likewise.
27916         (gimple_omp_taskreg_child_fn): Likewise.
27917         (gimple_omp_taskreg_child_fn_ptr): Likewise.
27918         (gimple_omp_taskreg_set_child_fn): Likewise.
27919         (gimple_omp_taskreg_data_arg): Likewise.
27920         (gimple_omp_taskreg_data_arg_ptr): Likewise.
27921         (gimple_omp_taskreg_set_data_arg): Likewise.
27922         (gimple_omp_task_copy_fn): Likewise.
27923         (gimple_omp_task_copy_fn_ptr): Likewise.
27924         (gimple_omp_task_set_copy_fn): Likewise.
27925         (gimple_omp_task_arg_size): Likewise.
27926         (gimple_omp_task_arg_size_ptr): Likewise.
27927         (gimple_omp_task_set_arg_size): Likewise.
27928         (gimple_omp_task_arg_align): Likewise.
27929         (gimple_omp_task_arg_align_ptr): Likewise.
27930         (gimple_omp_task_set_arg_align): Likewise.
27931         (gimple_omp_single_clauses): Likewise.
27932         (gimple_omp_single_clauses_ptr): Likewise.
27933         (gimple_omp_single_set_clauses): Likewise.
27934         (gimple_omp_target_clauses): Likewise.
27935         (gimple_omp_target_clauses_ptr): Likewise.
27936         (gimple_omp_target_set_clauses): Likewise.
27937         (gimple_omp_target_child_fn): Likewise.
27938         (gimple_omp_target_child_fn_ptr): Likewise.
27939         (gimple_omp_target_set_child_fn): Likewise.
27940         (gimple_omp_target_data_arg): Likewise.
27941         (gimple_omp_target_data_arg_ptr): Likewise.
27942         (gimple_omp_target_set_data_arg): Likewise.
27943         (gimple_omp_teams_clauses): Likewise.
27944         (gimple_omp_teams_clauses_ptr): Likewise.
27945         (gimple_omp_teams_set_clauses): Likewise.
27946         (gimple_omp_sections_clauses): Likewise.
27947         (gimple_omp_sections_clauses_ptr): Likewise.
27948         (gimple_omp_sections_set_clauses): Likewise.
27949         (gimple_omp_sections_control): Likewise.
27950         (gimple_omp_sections_control_ptr): Likewise.
27951         (gimple_omp_sections_set_control): Likewise.
27952         (gimple_omp_for_set_cond): Likewise.
27953         (gimple_omp_for_cond): Likewise.
27954         (gimple_omp_atomic_store_set_val): Likewise.
27955         (gimple_omp_atomic_store_val): Likewise.
27956         (gimple_omp_atomic_store_val_ptr): Likewise.
27957         (gimple_omp_atomic_load_set_lhs): Likewise.
27958         (gimple_omp_atomic_load_lhs): Likewise.
27959         (gimple_omp_atomic_load_lhs_ptr): Likewise.
27960         (gimple_omp_atomic_load_set_rhs): Likewise.
27961         (gimple_omp_atomic_load_rhs): Likewise.
27962         (gimple_omp_atomic_load_rhs_ptr): Likewise.
27963         (gimple_omp_continue_control_def): Likewise.
27964         (gimple_omp_continue_control_def_ptr): Likewise.
27965         (gimple_omp_continue_set_control_def): Likewise.
27966         (gimple_omp_continue_control_use): Likewise.
27967         (gimple_omp_continue_control_use_ptr): Likewise.
27968         (gimple_omp_continue_set_control_use): Likewise.
27969         (gimple_transaction_body_ptr): Likewise.
27970         (gimple_transaction_label): Likewise.
27971         (gimple_transaction_label_ptr): Likewise.
27972         (gimple_transaction_set_body): Likewise.
27973         (gimple_transaction_set_label): Likewise.
27975         * ipa-devirt.c (build_type_inheritance_graph): Likewise.
27976         * ipa-inline-analysis.c (inline_write_summary): Likewise.
27977         * ipa-ref.c (ipa_record_reference): Likewise.
27978         * ipa-reference.c (analyze_function): Likewise.
27979         (ipa_reference_write_optimization_summary): Likewise.
27980         * ipa.c (symtab_remove_unreachable_nodes): Likewise.
27981         (address_taken_from_non_vtable_p): Likewise.
27982         (comdat_can_be_unshared_p_1): Likewise.
27983         * lto-cgraph.c (lto_output_ref): Likewise.
27984         (add_references): Likewise.
27985         (compute_ltrans_boundary): Likewise.
27986         (output_symtab): Likewise.
27987         (input_ref): Likewise.
27988         (input_cgraph_1): Likewise.
27989         (output_cgraph_opt_summary): Likewise.
27990         * lto-streamer-out.c (lto_output): Likewise.
27991         (output_symbol_p): Likewise.
27992         * lto-streamer.h (lsei_next_function_in_partition): Likewise.
27993         (lsei_start_function_in_partition): Likewise.
27994         (lsei_next_variable_in_partition): Likewise.
27995         (lsei_start_variable_in_partition): Likewise.
27996         * symtab.c (insert_to_assembler_name_hash): Likewise.
27997         (unlink_from_assembler_name_hash): Likewise.
27998         (symtab_unregister_node): Likewise.
27999         (symtab_remove_node): Likewise.
28000         (dump_symtab_node): Likewise.
28001         (verify_symtab_base): Likewise.
28002         (verify_symtab_node): Likewise.
28003         (symtab_make_decl_local): Likewise.
28004         (symtab_alias_ultimate_target): Likewise.
28005         (symtab_resolve_alias): Likewise.
28006         (symtab_get_symbol_partitioning_class): Likewise.
28007         * tree-phinodes.c (allocate_phi_node): Likewise.
28008         (reserve_phi_args_for_new_edge): Likewise.
28009         (remove_phi_args): Likewise.
28010         * varpool.c (varpool_node_for_asm): Likewise.
28011         (varpool_remove_unreferenced_decls): Likewise.
28013 2014-04-23  Jeff Law  <law@redhat.com>
28015         PR tree-optimization/60902
28016         * tree-ssa-threadedge.c
28017         (record_temporary_equivalences_from_stmts_at_dest): Make sure to
28018         invalidate outputs from statements that do not produce useful
28019         outputs for threading.
28021 2014-04-23  Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
28023         * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
28024         (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
28025         machine descriptions for Stack Smashing Protector.
28027 2014-04-23  Richard Earnshaw  <rearnsha@arm.com>
28029         * aarch64.md (<optab>_rol<mode>3): New pattern.
28030         (<optab>_rolsi3_uxtw): Likewise.
28031         * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
28033 2014-04-23  James Greenhalgh  <james.greenhalgh@arm.com>
28035         * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
28036         (arm_cortex_a12_tune): Likewise.
28038 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28040         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
28042 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28044         * config/arm/arm.md (arm_rev16si2): New pattern.
28045         (arm_rev16si2_alt): Likewise.
28046         * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
28048 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28050         * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
28051         (rev16<mode>2_alt): Likewise.
28052         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
28053         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
28054         (aarch_rev16_shleft_mask_imm_p): Likewise.
28055         (aarch_rev16_p_1): Likewise.
28056         (aarch_rev16_p): Likewise.
28057         * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
28058         (aarch_rev16_shright_mask_imm_p): Likewise.
28059         (aarch_rev16_shleft_mask_imm_p): Likewise.
28061 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28063         * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
28064         * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
28065         rev cost.
28066         (cortex_a53_extra_costs): Likewise.
28067         (cortex_a57_extra_costs): Likewise.
28068         * config/arm/arm.c (cortexa9_extra_costs): Likewise.
28069         (cortexa7_extra_costs): Likewise.
28070         (cortexa8_extra_costs): Likewise.
28071         (cortexa12_extra_costs): Likewise.
28072         (cortexa15_extra_costs): Likewise.
28073         (v7m_extra_costs): Likewise.
28074         (arm_new_rtx_costs): Handle BSWAP.
28076 2013-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28078         * config/arm/arm.c (cortexa8_extra_costs): New table.
28079         (arm_cortex_a8_tune): New tuning struct.
28080         * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
28082 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28084         * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
28086 2014-04-23  Richard Biener  <rguenther@suse.de>
28088         * Makefile.in (OBJS): Remove loop-unswitch.o.
28089         * tree-pass.h (make_pass_rtl_unswitch): Remove.
28090         * passes.def (pass_rtl_unswitch): Likewise.
28091         * loop-init.c (gate_rtl_unswitch): Likewise.
28092         (rtl_unswitch): Likewise.
28093         (pass_data_rtl_unswitch): Likewise.
28094         (pass_rtl_unswitch): Likewise.
28095         (make_pass_rtl_unswitch): Likewise.
28096         * rtl.h (reversed_condition): Likewise.
28097         (compare_and_jump_seq): Likewise.
28098         * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
28099         and make static.
28100         * loop-unroll.c (compare_and_jump_seq): Likewise.
28102 2014-04-23  Richard Biener  <rguenther@suse.de>
28104         PR tree-optimization/60903
28105         * tree-ssa-loop-im.c (analyze_memory_references): Remove
28106         commented code block.
28107         (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
28108         loop flags to newly created BBs and edges.
28110 2014-04-23  Nick Clifton  <nickc@redhat.com>
28112         * config/msp430/msp430.c (msp430_handle_option): Move function
28113         to msp430-common.c
28114         (msp430_option_override): Simplify mcu and mcpu option handling.
28115         (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult.  Add
28116         support for -mhwmult command line option.
28117         (has_32bit_hwmult): Rename to use_32bit_hwmult.  Add support for
28118         -mhwmult command line option.
28119         (msp430_hwmult_enabled): Delete.
28120         (msp43o_output_labelref): Add support for -mhwmult command line option.
28121         * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
28122         (umulsidi3): Likewise.
28123         * config/msp430/msp430.opt (mmcu): Add Report attribute.
28124         (mcpu, mlarge, msmall): Likewise.
28125         (mhwmult): New option.
28126         * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
28127         prototype.
28128         (msp430_is_f5_mcu): Remove prototype.
28129         (msp430_use_f5_series_hwmult): Add prototype.
28130         * config/msp430/msp430-opts.h: New file.
28131         * common/config/msp430: New directory.
28132         * common/config/msp430/msp430-common.c: New file.
28133         * config.gcc (msp430): Remove target_has_targetm_common.
28134         * doc/invoke.texi: Document -mhwmult command line option.
28136 2014-04-23  Nick Clifton  <nickc@redhat.com>
28138         * config/i386/cygwin.h (ENDFILE_SPEC): Include
28139         default-manifest.o if it can be found in the search path.
28140         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
28142 2014-04-23  Terry Guo  <terry.guo@arm.com>
28144         * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
28146 2014-04-23  Richard Biener  <rguenther@suse.de>
28148         PR middle-end/60895
28149         * tree-inline.c (declare_return_variable): Use mark_addressable.
28151 2014-04-23  Richard Biener  <rguenther@suse.de>
28153         PR middle-end/60891
28154         * loop-init.c (loop_optimizer_init): Make sure to apply
28155         LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
28157 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
28159         PR sanitizer/60275
28160         * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
28161         New options.
28162         * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
28163         if flag_sanitize_undefined_trap_on_error.
28164         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
28165         BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
28166         BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
28167         BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
28168         BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
28169         BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
28170         BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
28171         BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
28172         BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
28173         * ubsan.c (ubsan_instrument_unreachable): Return
28174         __builtin_trap () if flag_sanitize_undefined_trap_on_error.
28175         (ubsan_expand_null_ifn): Emit __builtin_trap ()
28176         if flag_sanitize_undefined_trap_on_error and
28177         __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
28178         (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
28179         instrument_bool_enum_load): Emit __builtin_trap () if
28180         flag_sanitize_undefined_trap_on_error and
28181         __builtin_handle_*_abort () if !flag_sanitize_recover.
28182         * doc/invoke.texi (-fsanitize-recover,
28183         -fsanitize-undefined-trap-on-error): Document.
28185 2014-04-22  Christian Bruel  <christian.bruel@st.com>
28187         * config/sh/sh.md (mov<mode>): Replace movQIHI.
28188         Force immediates to SImode.
28190 2014-04-22  Sandra Loosemore  <sandra@codesourcery.com>
28192         * config/nios2/nios2.md (UNSPEC_ROUND): New.
28193         (lroundsfsi2): New.
28194         * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
28195         * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
28196         * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
28197         (nios2_fpu_insn): Add entry for round.
28198         (N2FPU_NO_ERRNO_P): Define.
28199         (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
28200         flag_errno_math.
28201         * doc/invoke.texi (Nios II Options): Document -mcustom-round.
28203 2014-04-22  Richard Henderson  <rth@redhat.com>
28205         * config/aarch64/aarch64 (addti3, subti3): New expanders.
28206         (add<GPI>3_compare0): Remove leading * from name.
28207         (add<GPI>3_carryin): Likewise.
28208         (sub<GPI>3_compare0): Likewise.
28209         (sub<GPI>3_carryin): Likewise.
28210         (<su_optab>mulditi3): New expander.
28211         (multi3): New expander.
28212         (madd<GPI>): Remove leading * from name.
28214 2014-04-22  Martin Jambor  <mjambor@suse.cz>
28216         * cgraphclones.c (cgraph_function_versioning): Copy
28217         ipa_transforms_to_apply instead of asserting it is empty.
28219 2014-04-22  H.J. Lu  <hongjiu.lu@intel.com>
28221         PR target/60868
28222         * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
28223         on count_exp to get mode.
28225 2014-04-22  Andrew Pinski  <apinski@cavium.com>
28227         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
28228         Handle TLS for ILP32.
28229         * config/aarch64/aarch64.md (tlsie_small): Rename to ...
28230         (tlsie_small_<mode>): this and handle PTR.
28231         (tlsie_small_sidi): New pattern.
28232         (tlsle_small): Change to an expand to handle ILP32.
28233         (tlsle_small_<mode>): New pattern.
28234         (tlsdesc_small): Rename to ...
28235         (tlsdesc_small_<mode>): this and handle PTR.
28237 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
28239         * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
28241 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
28243         * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
28244         (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
28245         (aarch64_types_signed_poly_qualifiers): Likewise.
28246         (aarch64_types_unsigned_signed_qualifiers): Likewise.
28247         (aarch64_types_poly_signed_qualifiers): Likewise.
28248         (TYPES_REINTERP_SS): Type macro added.
28249         (TYPES_REINTERP_SU): Likewise.
28250         (TYPES_REINTERP_SP): Likewise.
28251         (TYPES_REINTERP_US): Likewise.
28252         (TYPES_REINTERP_PS): Likewise.
28253         (aarch64_fold_builtin): New expression folding added.
28254         * config/aarch64/aarch64-simd-builtins.def (REINTERP):
28255         Declarations removed.
28256         (REINTERP_SS): Declarations added.
28257         (REINTERP_US): Likewise.
28258         (REINTERP_PS): Likewise.
28259         (REINTERP_SU): Likewise.
28260         (REINTERP_SP): Likewise.
28261         * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
28262         (vreinterpretq_p8_f64): Likewise.
28263         (vreinterpret_p16_f64): Likewise.
28264         (vreinterpretq_p16_f64): Likewise.
28265         (vreinterpret_f32_f64): Likewise.
28266         (vreinterpretq_f32_f64): Likewise.
28267         (vreinterpret_f64_f32): Likewise.
28268         (vreinterpret_f64_p8): Likewise.
28269         (vreinterpret_f64_p16): Likewise.
28270         (vreinterpret_f64_s8): Likewise.
28271         (vreinterpret_f64_s16): Likewise.
28272         (vreinterpret_f64_s32): Likewise.
28273         (vreinterpret_f64_s64): Likewise.
28274         (vreinterpret_f64_u8): Likewise.
28275         (vreinterpret_f64_u16): Likewise.
28276         (vreinterpret_f64_u32): Likewise.
28277         (vreinterpret_f64_u64): Likewise.
28278         (vreinterpretq_f64_f32): Likewise.
28279         (vreinterpretq_f64_p8): Likewise.
28280         (vreinterpretq_f64_p16): Likewise.
28281         (vreinterpretq_f64_s8): Likewise.
28282         (vreinterpretq_f64_s16): Likewise.
28283         (vreinterpretq_f64_s32): Likewise.
28284         (vreinterpretq_f64_s64): Likewise.
28285         (vreinterpretq_f64_u8): Likewise.
28286         (vreinterpretq_f64_u16): Likewise.
28287         (vreinterpretq_f64_u32): Likewise.
28288         (vreinterpretq_f64_u64): Likewise.
28289         (vreinterpret_s64_f64): Likewise.
28290         (vreinterpretq_s64_f64): Likewise.
28291         (vreinterpret_u64_f64): Likewise.
28292         (vreinterpretq_u64_f64): Likewise.
28293         (vreinterpret_s8_f64): Likewise.
28294         (vreinterpretq_s8_f64): Likewise.
28295         (vreinterpret_s16_f64): Likewise.
28296         (vreinterpretq_s16_f64): Likewise.
28297         (vreinterpret_s32_f64): Likewise.
28298         (vreinterpretq_s32_f64): Likewise.
28299         (vreinterpret_u8_f64): Likewise.
28300         (vreinterpretq_u8_f64): Likewise.
28301         (vreinterpret_u16_f64): Likewise.
28302         (vreinterpretq_u16_f64): Likewise.
28303         (vreinterpret_u32_f64): Likewise.
28304         (vreinterpretq_u32_f64): Likewise.
28306 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
28308         * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
28309         * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
28310         (vreinterpret_p8_s8): Likewise.
28311         * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
28312         (vreinterpret_p8_s16): Likewise.
28313         (vreinterpret_p8_s32): Likewise.
28314         (vreinterpret_p8_s64): Likewise.
28315         (vreinterpret_p8_f32): Likewise.
28316         (vreinterpret_p8_u8): Likewise.
28317         (vreinterpret_p8_u16): Likewise.
28318         (vreinterpret_p8_u32): Likewise.
28319         (vreinterpret_p8_u64): Likewise.
28320         (vreinterpret_p8_p16): Likewise.
28321         (vreinterpretq_p8_s8): Likewise.
28322         (vreinterpretq_p8_s16): Likewise.
28323         (vreinterpretq_p8_s32): Likewise.
28324         (vreinterpretq_p8_s64): Likewise.
28325         (vreinterpretq_p8_f32): Likewise.
28326         (vreinterpretq_p8_u8): Likewise.
28327         (vreinterpretq_p8_u16): Likewise.
28328         (vreinterpretq_p8_u32): Likewise.
28329         (vreinterpretq_p8_u64): Likewise.
28330         (vreinterpretq_p8_p16): Likewise.
28331         (vreinterpret_p16_s8): Likewise.
28332         (vreinterpret_p16_s16): Likewise.
28333         (vreinterpret_p16_s32): Likewise.
28334         (vreinterpret_p16_s64): Likewise.
28335         (vreinterpret_p16_f32): Likewise.
28336         (vreinterpret_p16_u8): Likewise.
28337         (vreinterpret_p16_u16): Likewise.
28338         (vreinterpret_p16_u32): Likewise.
28339         (vreinterpret_p16_u64): Likewise.
28340         (vreinterpret_p16_p8): Likewise.
28341         (vreinterpretq_p16_s8): Likewise.
28342         (vreinterpretq_p16_s16): Likewise.
28343         (vreinterpretq_p16_s32): Likewise.
28344         (vreinterpretq_p16_s64): Likewise.
28345         (vreinterpretq_p16_f32): Likewise.
28346         (vreinterpretq_p16_u8): Likewise.
28347         (vreinterpretq_p16_u16): Likewise.
28348         (vreinterpretq_p16_u32): Likewise.
28349         (vreinterpretq_p16_u64): Likewise.
28350         (vreinterpretq_p16_p8): Likewise.
28351         (vreinterpret_f32_s8): Likewise.
28352         (vreinterpret_f32_s16): Likewise.
28353         (vreinterpret_f32_s32): Likewise.
28354         (vreinterpret_f32_s64): Likewise.
28355         (vreinterpret_f32_u8): Likewise.
28356         (vreinterpret_f32_u16): Likewise.
28357         (vreinterpret_f32_u32): Likewise.
28358         (vreinterpret_f32_u64): Likewise.
28359         (vreinterpret_f32_p8): Likewise.
28360         (vreinterpret_f32_p16): Likewise.
28361         (vreinterpretq_f32_s8): Likewise.
28362         (vreinterpretq_f32_s16): Likewise.
28363         (vreinterpretq_f32_s32): Likewise.
28364         (vreinterpretq_f32_s64): Likewise.
28365         (vreinterpretq_f32_u8): Likewise.
28366         (vreinterpretq_f32_u16): Likewise.
28367         (vreinterpretq_f32_u32): Likewise.
28368         (vreinterpretq_f32_u64): Likewise.
28369         (vreinterpretq_f32_p8): Likewise.
28370         (vreinterpretq_f32_p16): Likewise.
28371         (vreinterpret_s64_s8): Likewise.
28372         (vreinterpret_s64_s16): Likewise.
28373         (vreinterpret_s64_s32): Likewise.
28374         (vreinterpret_s64_f32): Likewise.
28375         (vreinterpret_s64_u8): Likewise.
28376         (vreinterpret_s64_u16): Likewise.
28377         (vreinterpret_s64_u32): Likewise.
28378         (vreinterpret_s64_u64): Likewise.
28379         (vreinterpret_s64_p8): Likewise.
28380         (vreinterpret_s64_p16): Likewise.
28381         (vreinterpretq_s64_s8): Likewise.
28382         (vreinterpretq_s64_s16): Likewise.
28383         (vreinterpretq_s64_s32): Likewise.
28384         (vreinterpretq_s64_f32): Likewise.
28385         (vreinterpretq_s64_u8): Likewise.
28386         (vreinterpretq_s64_u16): Likewise.
28387         (vreinterpretq_s64_u32): Likewise.
28388         (vreinterpretq_s64_u64): Likewise.
28389         (vreinterpretq_s64_p8): Likewise.
28390         (vreinterpretq_s64_p16): Likewise.
28391         (vreinterpret_u64_s8): Likewise.
28392         (vreinterpret_u64_s16): Likewise.
28393         (vreinterpret_u64_s32): Likewise.
28394         (vreinterpret_u64_s64): Likewise.
28395         (vreinterpret_u64_f32): Likewise.
28396         (vreinterpret_u64_u8): Likewise.
28397         (vreinterpret_u64_u16): Likewise.
28398         (vreinterpret_u64_u32): Likewise.
28399         (vreinterpret_u64_p8): Likewise.
28400         (vreinterpret_u64_p16): Likewise.
28401         (vreinterpretq_u64_s8): Likewise.
28402         (vreinterpretq_u64_s16): Likewise.
28403         (vreinterpretq_u64_s32): Likewise.
28404         (vreinterpretq_u64_s64): Likewise.
28405         (vreinterpretq_u64_f32): Likewise.
28406         (vreinterpretq_u64_u8): Likewise.
28407         (vreinterpretq_u64_u16): Likewise.
28408         (vreinterpretq_u64_u32): Likewise.
28409         (vreinterpretq_u64_p8): Likewise.
28410         (vreinterpretq_u64_p16): Likewise.
28411         (vreinterpret_s8_s16): Likewise.
28412         (vreinterpret_s8_s32): Likewise.
28413         (vreinterpret_s8_s64): Likewise.
28414         (vreinterpret_s8_f32): Likewise.
28415         (vreinterpret_s8_u8): Likewise.
28416         (vreinterpret_s8_u16): Likewise.
28417         (vreinterpret_s8_u32): Likewise.
28418         (vreinterpret_s8_u64): Likewise.
28419         (vreinterpret_s8_p8): Likewise.
28420         (vreinterpret_s8_p16): Likewise.
28421         (vreinterpretq_s8_s16): Likewise.
28422         (vreinterpretq_s8_s32): Likewise.
28423         (vreinterpretq_s8_s64): Likewise.
28424         (vreinterpretq_s8_f32): Likewise.
28425         (vreinterpretq_s8_u8): Likewise.
28426         (vreinterpretq_s8_u16): Likewise.
28427         (vreinterpretq_s8_u32): Likewise.
28428         (vreinterpretq_s8_u64): Likewise.
28429         (vreinterpretq_s8_p8): Likewise.
28430         (vreinterpretq_s8_p16): Likewise.
28431         (vreinterpret_s16_s8): Likewise.
28432         (vreinterpret_s16_s32): Likewise.
28433         (vreinterpret_s16_s64): Likewise.
28434         (vreinterpret_s16_f32): Likewise.
28435         (vreinterpret_s16_u8): Likewise.
28436         (vreinterpret_s16_u16): Likewise.
28437         (vreinterpret_s16_u32): Likewise.
28438         (vreinterpret_s16_u64): Likewise.
28439         (vreinterpret_s16_p8): Likewise.
28440         (vreinterpret_s16_p16): Likewise.
28441         (vreinterpretq_s16_s8): Likewise.
28442         (vreinterpretq_s16_s32): Likewise.
28443         (vreinterpretq_s16_s64): Likewise.
28444         (vreinterpretq_s16_f32): Likewise.
28445         (vreinterpretq_s16_u8): Likewise.
28446         (vreinterpretq_s16_u16): Likewise.
28447         (vreinterpretq_s16_u32): Likewise.
28448         (vreinterpretq_s16_u64): Likewise.
28449         (vreinterpretq_s16_p8): Likewise.
28450         (vreinterpretq_s16_p16): Likewise.
28451         (vreinterpret_s32_s8): Likewise.
28452         (vreinterpret_s32_s16): Likewise.
28453         (vreinterpret_s32_s64): Likewise.
28454         (vreinterpret_s32_f32): Likewise.
28455         (vreinterpret_s32_u8): Likewise.
28456         (vreinterpret_s32_u16): Likewise.
28457         (vreinterpret_s32_u32): Likewise.
28458         (vreinterpret_s32_u64): Likewise.
28459         (vreinterpret_s32_p8): Likewise.
28460         (vreinterpret_s32_p16): Likewise.
28461         (vreinterpretq_s32_s8): Likewise.
28462         (vreinterpretq_s32_s16): Likewise.
28463         (vreinterpretq_s32_s64): Likewise.
28464         (vreinterpretq_s32_f32): Likewise.
28465         (vreinterpretq_s32_u8): Likewise.
28466         (vreinterpretq_s32_u16): Likewise.
28467         (vreinterpretq_s32_u32): Likewise.
28468         (vreinterpretq_s32_u64): Likewise.
28469         (vreinterpretq_s32_p8): Likewise.
28470         (vreinterpretq_s32_p16): Likewise.
28471         (vreinterpret_u8_s8): Likewise.
28472         (vreinterpret_u8_s16): Likewise.
28473         (vreinterpret_u8_s32): Likewise.
28474         (vreinterpret_u8_s64): Likewise.
28475         (vreinterpret_u8_f32): Likewise.
28476         (vreinterpret_u8_u16): Likewise.
28477         (vreinterpret_u8_u32): Likewise.
28478         (vreinterpret_u8_u64): Likewise.
28479         (vreinterpret_u8_p8): Likewise.
28480         (vreinterpret_u8_p16): Likewise.
28481         (vreinterpretq_u8_s8): Likewise.
28482         (vreinterpretq_u8_s16): Likewise.
28483         (vreinterpretq_u8_s32): Likewise.
28484         (vreinterpretq_u8_s64): Likewise.
28485         (vreinterpretq_u8_f32): Likewise.
28486         (vreinterpretq_u8_u16): Likewise.
28487         (vreinterpretq_u8_u32): Likewise.
28488         (vreinterpretq_u8_u64): Likewise.
28489         (vreinterpretq_u8_p8): Likewise.
28490         (vreinterpretq_u8_p16): Likewise.
28491         (vreinterpret_u16_s8): Likewise.
28492         (vreinterpret_u16_s16): Likewise.
28493         (vreinterpret_u16_s32): Likewise.
28494         (vreinterpret_u16_s64): Likewise.
28495         (vreinterpret_u16_f32): Likewise.
28496         (vreinterpret_u16_u8): Likewise.
28497         (vreinterpret_u16_u32): Likewise.
28498         (vreinterpret_u16_u64): Likewise.
28499         (vreinterpret_u16_p8): Likewise.
28500         (vreinterpret_u16_p16): Likewise.
28501         (vreinterpretq_u16_s8): Likewise.
28502         (vreinterpretq_u16_s16): Likewise.
28503         (vreinterpretq_u16_s32): Likewise.
28504         (vreinterpretq_u16_s64): Likewise.
28505         (vreinterpretq_u16_f32): Likewise.
28506         (vreinterpretq_u16_u8): Likewise.
28507         (vreinterpretq_u16_u32): Likewise.
28508         (vreinterpretq_u16_u64): Likewise.
28509         (vreinterpretq_u16_p8): Likewise.
28510         (vreinterpretq_u16_p16): Likewise.
28511         (vreinterpret_u32_s8): Likewise.
28512         (vreinterpret_u32_s16): Likewise.
28513         (vreinterpret_u32_s32): Likewise.
28514         (vreinterpret_u32_s64): Likewise.
28515         (vreinterpret_u32_f32): Likewise.
28516         (vreinterpret_u32_u8): Likewise.
28517         (vreinterpret_u32_u16): Likewise.
28518         (vreinterpret_u32_u64): Likewise.
28519         (vreinterpret_u32_p8): Likewise.
28520         (vreinterpret_u32_p16): Likewise.
28521         (vreinterpretq_u32_s8): Likewise.
28522         (vreinterpretq_u32_s16): Likewise.
28523         (vreinterpretq_u32_s32): Likewise.
28524         (vreinterpretq_u32_s64): Likewise.
28525         (vreinterpretq_u32_f32): Likewise.
28526         (vreinterpretq_u32_u8): Likewise.
28527         (vreinterpretq_u32_u16): Likewise.
28528         (vreinterpretq_u32_u64): Likewise.
28529         (vreinterpretq_u32_p8): Likewise.
28530         (vreinterpretq_u32_p16): Likewise.
28532 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
28534         * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
28535         Pattern extended.
28536         * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
28537         (sqabs): Likewise.
28538         * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
28539         (vqnegd_s64): Likewise.
28540         (vqabs_s64): Likewise.
28541         (vqabsd_s64): Likewise.
28543 2014-04-22  Richard Henderson  <rth@redhat.com>
28545         * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
28546         computation to the top of the loop.
28548 2014-04-22  Renlin  <renlin.li@arm.com>
28549             Jiong Wang  <jiong.wang@arm.com>
28551         * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
28552         * config/aarch64/aarch64.c (aarch64_layout_frame)
28553         (aarch64_initial_elimination_offset): Likewise.
28555 2014-04-22  Marcus Shawcroft  <marcus.shawcroft@arm.com>
28557         * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
28558         Fix indentation.
28560 2014-04-22  Richard Sandiford  <rdsandiford@googlemail.com>
28562         * machmode.h (bitwise_mode_for_mode): Declare.
28563         * stor-layout.h (bitwise_type_for_mode): Likewise.
28564         * stor-layout.c (bitwise_mode_for_mode): New function.
28565         (bitwise_type_for_mode): Likewise.
28566         * builtins.c (fold_builtin_memory_op): Use it instead of
28567         int_mode_for_mode and build_nonstandard_integer_type.
28569 2014-04-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28571         * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
28572         (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
28573         (*-*-solaris2*): Simplify.
28574         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
28575         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
28576         *-*-solaris2.9* handling.
28578         * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
28579         as bug.
28580         (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
28581         (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
28582         handling, simplify.
28583         (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
28584         * configure: Regenerate.
28586         * config/i386/sol2-9.h: Remove.
28588         * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
28589         (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
28590         Remove Solaris 9 references.
28592 2014-04-22  Vidya Praveen  <vidyapraveen@arm.com>
28594         * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
28595         (floatuns<GPI:mode><GPF:mode>2): Remove.
28596         (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
28597         and floatuns conversions.
28598         (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
28599         and floatuns conversions.
28600         * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
28601         (w1,w2): New mode attributes for inequal width conversions.
28603 2014-04-22  Renlin Li  <Renlin.Li@arm.com>
28605         * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
28606         the output asm format.
28608 2014-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
28610         * config/aarch64/aarch64-simd.md
28611         (aarch64_cm<optab>di): Always split.
28612         (*aarch64_cm<optab>di): New.
28613         (aarch64_cmtstdi): Always split.
28614         (*aarch64_cmtstdi): New.
28616 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
28618         PR tree-optimization/60823
28619         * omp-low.c (ipa_simd_modify_function_body): Go through
28620         all SSA_NAMEs and for those refering to vector arguments
28621         which are going to be replaced adjust SSA_NAME_VAR and,
28622         if it is a default definition, change it into a non-default
28623         definition assigned at the beginning of function from new_decl.
28624         (ipa_simd_modify_stmt_ops): Rewritten.
28625         * tree-dfa.c (set_ssa_default_def): When removing default def,
28626         check for NULL loc instead of NULL *loc.
28628 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
28630         * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
28631         restrictions on core registers for DImode values in Thumb2.
28633 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
28635         * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
28636         * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
28638 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
28640         * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
28641         (*iordi_notzesidi_di): Likewise.
28642         (*iordi_notsesidi_di): Likewise.
28644 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
28646         * config/arm/arm-protos.h (tune_params): New struct members.
28647         * config/arm/arm.c: Initialise tune_params per processor.
28648         (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
28649         for speed, based on new tune_params.
28651 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
28653         * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
28654         * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
28655         * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
28656         * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
28657         * config/aarch64/arm_neon.h (vrnd_f64): Added.
28658         (vrnda_f64): Likewise.
28659         (vrndi_f64): Likewise.
28660         (vrndm_f64): Likewise.
28661         (vrndn_f64): Likewise.
28662         (vrndp_f64): Likewise.
28663         (vrndx_f64): Likewise.
28665 2014-04-22  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
28667         * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
28668         GET_MODE_SIZE argument is enum machine_mode.
28670 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
28672         PR target/60910
28673         * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
28674         value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
28676 2014-04-22  Lin Zuojian  <manjian2006@gmail.com>
28678         PR middle-end/60281
28679         * asan.c (asan_emit_stack_protection): Force the base to align to
28680         appropriate bits if STRICT_ALIGNMENT.  Set shadow_mem align to
28681         appropriate bits if STRICT_ALIGNMENT.
28682         * cfgexpand.c (expand_stack_vars): Set base_align appropriately
28683         when asan is on.
28684         (expand_used_vars): Leave a space in the stack frame for alignment
28685         if STRICT_ALIGNMENT.
28687 2014-04-21  David Malcolm  <dmalcolm@redhat.com>
28689         * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
28690         than a gimple.
28691         (gimple_store_p): Likewise.
28692         (gimple_assign_load_p): Likewise.
28693         (gimple_assign_cast_p): Likewise.
28694         (gimple_clobber_p): Likewise.
28696         * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
28697         rather than a gimple.
28698         (gimple_assign_cast_p): Likewise.
28700 2014-04-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
28702         PR target/60735
28703         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
28704         If mode is DDmode and TARGET_E500_DOUBLE allow move.
28706         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
28707         more debug information for E500 if -mdebug=reg.
28709 2014-04-21  Uros Bizjak  <ubizjak@gmail.com>
28711         PR target/60909
28712         * config/i386/i386.c (ix86_expand_builtin)
28713         <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
28714         register for target RTX.
28715         <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
28717 2014-04-18  Cong Hou  <congh@google.com>
28719         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
28720         the widen-mult pattern by handling two operands with different sizes,
28721         and operands whose size is smaller than half of the result type.
28723 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
28725         * ipa-inline.h (INLINE_HINT_known_hot): New hint.
28726         * ipa-inline-analysis.c (dump_inline_hints): Dump it.
28727         (do_estimate_edge_time): Compute it.
28728         * ipa-inline.c (want_inline_small_function_p): Bypass
28729         INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
28731 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
28733         * ipa-inline.c (spec_rem): New static variable.
28734         (dump_overall_stats): New function.
28735         (dump_inline_stats): New function.
28737 2014-04-18  Richard Henderson  <rth@redhat.com>
28739         * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
28740         to GET_MODE_SIZE, not a reg_class_t.
28742 2014-04-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28744         * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
28745         (vsx_xxmrglw_<mode>): Likewise.
28747 2014-04-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
28749         PR target/60876
28750         * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
28751         GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
28752         (rs6000_init_hard_regno_mode_ok): Likewise.
28754 2014-04-17  Jan Hubicka  <hubicka@ucw.cz>
28756         * ipa-inline.c (inline_small_functions): Account only non-cold
28757         functions.
28758         * doc/invoke.texi (inline-unit-growth): Update documentation.
28760 2014-04-17  Pat Haugen  <pthaugen@us.ibm.com>
28762         * config/rs6000/rs6000.md (addti3, subti3): New.
28764 2014-04-17  H.J. Lu  <hongjiu.lu@intel.com>
28766         PR target/60863
28767         * config/i386/i386.c (ix86_expand_clear): Remove outdated
28768         comment.  Check optimize_insn_for_size_p instead of
28769         optimize_insn_for_speed_p.
28771 2014-04-17  Martin Jambor  <mjambor@suse.cz>
28773         * gimple-iterator.c (gsi_start_edge): New function.
28774         * gimple-iterator.h (gsi_start_edge): Declare.
28775         * tree-sra.c (single_non_eh_succ): New function.
28776         (disqualify_ops_if_throwing_stmt): Renamed to
28777         disqualify_if_bad_bb_terminating_stmt.  Allow throwing statements
28778         having one non-EH successor BB.
28779         (sra_modify_expr): If stmt ends bb, use single non-EH successor to
28780         generate loads into replacements.
28781         (sra_modify_assign): Likewise and and also use the simple path for
28782         such statements.
28783         (sra_modify_function_body): Commit statements on edges.
28785 2014-04-17  Richard Biener  <rguenther@suse.de>
28787         PR middle-end/60849
28788         * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
28789         comparison results and add clarifying comment.
28791 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
28793         * genmodes.c (struct mode_data): Add need_bytesize_adj field.
28794         (blank_mode): Initialize it.
28795         (emit_mode_size_inline, emit_mode_nunits_inline,
28796         emit_mode_inner_inline): New functions.
28797         (emit_insn_modes_h): Call them and surround their output with
28798         #if GCC_VERSION >= 4001 ... #endif.
28799         * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
28800         For GCC_VERSION >= 4001 use mode_*_inline routines instead of
28801         mode_* arrays if the argument is __builtin_constant_p.
28802         * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
28803         is enum machine_mode.
28805 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
28807         * passes.c (opt_pass::execute): Adjust.
28808         (pass_manager::execute_pass_mode_switching): Likewise.
28809         (early_local_passes::execute): Likewise.
28810         (execute_one_pass): Pass cfun to the pass's execute method.
28811         * tree-pass.h (opt_pass::execute): Add function * argument.
28812         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
28813         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
28814         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
28815         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
28816         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
28817         config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
28818         except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
28819         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
28820         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
28821         ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
28822         ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
28823         lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
28824         postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
28825         reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
28826         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
28827         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
28828         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
28829         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
28830         tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
28831         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
28832         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
28833         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
28834         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
28835         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
28836         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
28837         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
28838         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
28839         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
28840         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
28841         Adjust.
28843 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
28845         * passes.c (opt_pass::gate): Take function * argument.
28846         (gate_all_early_local_passes): Merge into
28847         (early_local_passes::gate): this.
28848         (gate_all_early_optimizations): Merge into
28849         (all_early_optimizations::gate): this.
28850         (gate_all_optimizations): Mege into
28851         (all_optimizations::gate): this.
28852         (gate_all_optimizations_g): Merge into
28853         (all_optimizations_g::gate): this.
28854         (gate_rest_of_compilation): Mege into
28855         (rest_of_compilation::gate): this.
28856         (gate_postreload): Merge into
28857         (postreload::gate): this.
28858         (dump_one_pass): Pass cfun to the pass's gate method.
28859         (execute_ipa_summary_passes): Likewise.
28860         (execute_one_pass): Likewise.
28861         (ipa_write_summaries_2): Likewise.
28862         (ipa_write_optimization_summaries_1): Likewise.
28863         (ipa_read_summaries_1): Likewise.
28864         (ipa_read_optimization_summaries_1): Likewise.
28865         (execute_ipa_stmt_fixups): Likewise.
28866         * tree-pass.h (opt_pass::gate): Add function * argument.
28867         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
28868         combine-stack-adj.c, combine.c, compare-elim.c,
28869         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
28870         config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
28871         config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
28872         dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c,  fwprop.c, gcse.c,
28873         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
28874         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
28875         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
28876         loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
28877         omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
28878         reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
28879         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
28880         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
28881         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
28882         tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
28883         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
28884         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
28885         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
28886         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
28887         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
28888         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
28889         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
28890         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
28891         tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
28892         tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
28893         var-tracking.c, vtable-verify.c, web.c: Adjust.
28895 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
28897         * configure.ac: Check for -Woverloaded-virtual and enable it if found.
28898         * configure: Regenerate.
28900 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
28902         * passes.c (dump_one_pass): don't check pass->has_gate.
28903         (execute_ipa_summary_passes): Likewise.
28904         (execute_one_pass): Likewise.
28905         (ipa_write_summaries_2): Likewise.
28906         (ipa_write_optimization_summaries_1): Likewise.
28907         (ipa_read_optimization_summaries_1): Likewise.
28908         (execute_ipa_stmt_fixups): Likewise.
28909         * tree-pass.h (pass_data::has_gate): Remove.
28910         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
28911         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
28912         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
28913         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
28914         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
28915         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
28916         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
28917         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
28918         gimple-low.c, gimple-ssa-isolate-paths.c,
28919         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
28920         ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
28921         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
28922         ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
28923         modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
28924         recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
28925         reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
28926         trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
28927         tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
28928         tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
28929         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
28930         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
28931         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
28932         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
28933         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
28934         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
28935         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
28936         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
28937         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
28938         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
28939         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
28940         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
28941         Adjust.
28943 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
28945         * pass_manager.h (pass_manager::register_dump_files_1): Remove
28946         declaration.
28947         * passes.c (pass_manager::register_dump_files_1): Merge into
28948         (pass_manager::register_dump_files): this, and remove its handling of
28949         properties since the pass always has the properties anyway.
28950         (pass_manager::pass_manager): Adjust.
28952 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
28954         * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
28955         * passes.c (pass_manager::register_dump_files_1): Remove dead code
28956         dealing with properties.
28957         (pass_manager::register_dump_files): Adjust.
28959 2014-03-20  Mark Wielaard  <mjw@redhat.com>
28961         * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
28962         then represent the bound as normal constant value.
28964 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
28966         PR target/60847
28967         Forward port from 4.8 branch
28968         2013-07-19  Kirill Yukhin  <kirill.yukhin@intel.com>
28970         * config/i386/bmiintrin.h (_blsi_u32): New.
28971         (_blsi_u64): Ditto.
28972         (_blsr_u32): Ditto.
28973         (_blsr_u64): Ditto.
28974         (_blsmsk_u32): Ditto.
28975         (_blsmsk_u64): Ditto.
28976         (_tzcnt_u32): Ditto.
28977         (_tzcnt_u64): Ditto.
28979 2014-04-17  Kito Cheng  <kito@0xlab.org>
28981         * gcc.c (used_arg): Prevent out of bound access for multilib_options.
28983 2014-04-17  Richard Biener  <rguenther@suse.de>
28985         PR middle-end/60849
28986         * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
28987         boolean results for comparisons.
28989 2014-04-17  Richard Biener  <rguenther@suse.de>
28991         PR tree-optimization/60836
28992         * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
28993         initial PHI args to be gimple values.
28995 2014-04-17  Richard Biener  <rguenther@suse.de>
28997         PR tree-optimization/60841
28998         * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
28999         * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
29000         of stmts to SLP build.
29001         * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
29002         (vect_analyze_slp): Likewise.
29003         (vect_analyze_slp_instance): Likewise.
29004         (vect_build_slp_tree): Limit overall SLP tree growth.
29005         * tree-vectorizer.h (vect_analyze_data_refs,
29006         vect_analyze_slp): Adjust prototypes.
29008 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
29010         * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
29011         Silvermont.
29013 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
29015         * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
29016         * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
29017         * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
29018         for TARGET_SLOW_PSHUFB
29020 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
29022         * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
29023         * config/i386/i386.c (intel_cost): Ditto.
29025 2014-04-17  Joey Ye  <joey.ye@arm.com>
29027         * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
29029 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
29031         * opts.c (common_handle_option): Disable -fipa-reference coorectly
29032         with -fuse-profile.
29034 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
29036         * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
29037         (type_all_derivations_known_p): New predicate.
29038         (type_all_ctors_visible_p): New predicate.
29039         (type_possibly_instantiated_p): New predicate.
29040         (get_odr_type): Compute all_derivations_known.
29041         (dump_odr_type): Dump the flag.
29042         (maybe_record_type): Cleanup.
29043         (record_target_from_binfo): Add bases_to_consider array;
29044         record bases for types w/o instances and skip CXX destructor.
29045         (possible_polymorphic_call_targets_1): Add bases_to_consider
29046         and consider_construction parameters; check if type may have instance.
29047         (get_polymorphic_call_info): Set maybe_in_construction to true
29048         when we know nothing.
29049         (record_targets_from_bases): Skip CXX destructors; they are
29050         never called for types in construction.
29051         (possible_polymorphic_call_targets): Do not record target when
29052         type may not have instance.
29054 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
29056         PR ipa/60854
29057         * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
29058         external aliases alive, too.
29060 2014-04-16  Andrew  Pinski  <apinski@cavium.com>
29062         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
29063         definition.
29065 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
29067         * final.c (compute_alignments): Do not apply loop alignment to a block
29068         falling through to the exit.
29070 2014-04-16  Catherine Moore  <clm@codesourcery.com>
29072         * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
29073         Adjust constraints for microMIPS store patterns.
29075 2014-04-16  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
29077         * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
29079 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
29081         * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
29082         (append_use): Run at -O0.
29083         (append_vdef): Likewise.
29084         * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
29085         * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
29087 2014-04-16  Jakub Jelinek  <jakub@redhat.com>
29089         PR tree-optimization/60844
29090         * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
29091         (propagate_op_to_single_use, remove_visited_stmt_chain,
29092         linearize_expr, repropagate_negates, reassociate_bb): Use it
29093         instead of gsi_remove.
29095 2014-04-16  Martin Jambor  <mjambor@suse.cz>
29097         * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
29098         ipa_transforms_to_apply.
29099         (cgraph_function_versioning): Assert that old_node has empty
29100         ipa_transforms_to_apply.
29101         * trans-mem.c (ipa_tm_create_version): Likewise.
29102         * tree-inline.c (tree_function_versioning): Do not duplicate
29103         ipa_transforms_to_apply.
29105 2014-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29107         PR target/60817
29108         * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
29109         x86_64-*-* cases.
29110         Pass necessary as flags on 64-bit Solaris/x86.
29111         Use lowercase relocs for x86_64-*-*.
29112         * configure: Regenerate.
29114 2014-04-15  Jan Hubicka  <jh@suse.cz>
29116         * ipa-devirt.c (referenced_from_vtable_p): New predicate.
29117         (maybe_record_node, likely_target_p): Use it.
29119 2014-04-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29121         PR target/60839
29122         Revert following patch
29124         2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
29126         PR target/60735
29127         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
29128         software floating point or no floating point registers, do not
29129         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
29130         in GPRs that occurs after we tested for GPRs that would never be
29131         true.
29133         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
29134         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
29135         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
29136         specifically allow DDmode, since that does not use the SPE SIMD
29137         instructions.
29139 2014-03-21  Mark Wielaard  <mjw@redhat.com>
29141         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
29142         as unsigned or int depending on type and value used.
29144 2014-04-15  Richard Biener  <rguenther@suse.de>
29146         PR rtl-optimization/56965
29147         * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
29148         * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
29149         ... here.
29150         * alias.c (true_dependence_1): Do not call
29151         nonoverlapping_component_refs_p.
29152         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
29153         nonoverlapping_component_refs_p.
29154         (indirect_refs_may_alias_p): Likewise.
29156 2014-04-15  Teresa Johnson  <tejohnson@google.com>
29158         * cfg.c (dump_bb_info): Fix flags check.
29159         * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
29161 2014-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29163         PR rtl-optimization/60663
29164         * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
29165         avoid 0 cost.
29167 2014-04-15  Richard Biener  <rguenther@suse.de>
29169         * lto-streamer.h (LTO_major_version): Bump to 4.
29171 2014-04-15  Richard Biener  <rguenther@suse.de>
29173         * common.opt (lto_partition_model): New enum.
29174         (flto-partition=): Merge separate options with a single with argument,
29175         add -flto-partition=one support.
29176         * flag-types.h (enum lto_partition_model): Declare.
29177         * opts.c (finish_options): Remove duplicate -flto-partition=
29178         option check.
29179         * lto-wrapper.c (run_gcc): Adjust.
29181 2014-04-15  Richard Biener  <rguenther@suse.de>
29183         * alias.c (ncr_compar): New function.
29184         (nonoverlapping_component_refs_p): Re-implement in O (n log n).
29186 2014-04-15  Richard Biener  <rguenther@suse.de>
29188         * alias.c (record_component_aliases): Do not walk BINFOs.
29190 2014-04-15  Richard Biener  <rguenther@suse.de>
29192         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
29193         Add struct function argument and adjust.
29194         (find_func_aliases_for_call): Likewise.
29195         (find_func_aliases): Likewise.
29196         (find_func_clobbers): Likewise.
29197         (intra_create_variable_infos): Likewise.
29198         (compute_points_to_sets): Likewise.
29199         (ipa_pta_execute): Adjust.  Do not push/pop cfun.
29201 2014-04-15  Richard Biener  <rguenther@suse.de>
29203         * tree.c (iterative_hash_expr): Use enum tree_code_class
29204         to store TREE_CODE_CLASS.
29205         (tree_block): Likewise.
29206         (tree_set_block): Likewise.
29207         * tree.h (fold_build_pointer_plus_loc): Use
29208         convert_to_ptrofftype_loc.
29210 2014-04-15  Jakub Jelinek  <jakub@redhat.com>
29212         PR plugins/59335
29213         * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
29214         added in 4.9.
29216 2014-04-15  Eric Botcazou  <ebotcazou@adacore.com>
29218         * cfgloop.h (struct loop): Move force_vectorize down.
29219         * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
29220         (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
29221         * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
29222         * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
29223         * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
29224         * tree-core.h (enum annot_expr_kind): Add new kind values.
29225         * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
29226         * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
29227         kinds.
29228         * tree.def (ANNOTATE_EXPR): Tweak comment.
29230 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
29232         * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
29233         cxa_pure_virtual).
29235 2014-04-14  Paolo Carlini  <paolo.carlini@oracle.com>
29237         * tree.h (TYPE_IDENTIFIER): Declare.
29238         * tree.c (subrange_type_for_debug_p): Use it.
29239         * godump.c (go_format_type): Likewise.
29240         * dwarf2out.c (is_cxx_auto, modified_type_die,
29241         gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
29242         * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
29244 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
29246         PR lto/60820
29247         * varpool.c (varpool_remove_node): Do not alter decls when streaming.
29249 2014-04-14  Uros Bizjak  <ubizjak@gmail.com>
29251         * config/i386/i386.c (examine_argument): Return bool.  Return true if
29252         parameter should be passed in memory.
29253         <case X86_64_COMPLEX_X87_CLASS>: Adjust.
29254         (construct_container): Update calls to examine_argument.
29255         (function_arg_advance_64): Ditto.
29256         (return_in_memory_32): Merge with ix86_return_in_memory.
29257         (return_in_memory_64): Ditto.
29258         (return_in_memory_ms_64): Ditto.
29260 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
29262         * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
29263         * coverage.c (coverage_compute_profile_id): Handle externally visible
29264         symbols.
29266 2014-04-14  Martin Jambor  <mjambor@suse.cz>
29268         * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
29269         DECL_DISREGARD_INLINE_LIMITS functions.
29271 2014-04-14  H.J. Lu  <hongjiu.lu@intel.com>
29273         PR target/60827
29274         * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
29276 2014-04-14  H.J. Lu  <hongjiu.lu@intel.com>
29278         PR target/60827
29279         * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
29280         optimize_insn_for_speed_p instead of
29281         optimize_function_for_speed_p.
29283 2014-04-14  Yufeng Zhang  <yufeng.zhang@arm.com>
29285         * doc/invoke.texi (free): Document AArch64.
29287 2014-04-14  Richard Biener  <rguenther@suse.de>
29289         PR tree-optimization/60042
29290         * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
29291         (insert_into_preds_of_block): Do not prevent PHI insertion
29292         for REFERENCE exprs here ...
29293         (eliminate_dom_walker::before_dom_children): ... but prevent
29294         their use here under similar conditions when applied to the
29295         IL after PRE optimizations.
29297 2014-04-14  Richard Biener  <rguenther@suse.de>
29299         * passes.def: Move early points-to after early SRA.
29301 2014-04-14  Richard Biener  <rguenther@suse.de>
29303         * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
29304         check for which sign-changes we allow when forwarding
29305         a converted value into a switch.
29307 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
29309         * stor-layout.c (place_field): Finalize non-constant offset for the
29310         field, if any.
29312 2014-04-14  Richard Biener  <rguenther@suse.de>
29314         * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
29315         as argument.
29316         (expand_switch_using_bit_tests_p): Likewise.
29317         (process_switch): Compute and pass on speed_p based on the
29318         switch stmt.
29319         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
29320         optimize_bb_for_speed_p.
29322 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
29324         * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
29325         * function.h (struct function): Rename has_force_vect_loops into
29326         has_force_vectorize_loops.
29327         * lto-streamer-in.c (input_cfg): Adjust for renaming.
29328         (input_struct_function_base): Likewise.
29329         * lto-streamer-out.c (output_cfg): Likewise.
29330         (output_struct_function_base): Likewise.
29331         * omp-low.c (expand_omp_simd): Likewise.
29332         * tree-cfg.c (move_sese_region_to_fn): Likewise.
29333         * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
29334         (version_loop_for_if_conversion): Likewise.
29335         (tree_if_conversion): Likewise.
29336         (main_tree_if_conversion): Likewise.
29337         (gate_tree_if_conversion): Likewise.
29338         * tree-inline.c (copy_loops): Likewise.
29339         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
29340         * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
29341         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
29342         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
29343         * tree-vectorizer.c (vectorize_loops): Likewise.
29344         * tree-vectorizer.h (unlimited_cost_model): Likewise.
29346 2014-04-14  Richard Biener  <rguenther@suse.de>
29348         PR lto/60720
29349         * lto-streamer-out.c (wrap_refs): New function.
29350         (lto_output): Wrap symbol references in global initializes in
29351         type-preserving MEM_REFs.
29353 2014-04-14  Christian Bruel  <christian.bruel@st.com>
29355         * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
29357 2014-04-14  Christian Bruel  <christian.bruel@st.com>
29359         * config/sh/sh.md (setmemqi): New expand pattern.
29360         * config/sh/sh.h (CLEAR_RATIO): Define.
29361         * config/sh/sh-mem.cc (sh_expand_setmem): Define.
29362         * config/sh/sh-protos.h (sh_expand_setmem): Declare.
29364 2014-04-14  Richard Biener  <rguenther@suse.de>
29366         PR middle-end/55022
29367         * fold-const.c (negate_expr_p): Don't negate directional rounding
29368         division.
29369         (fold_negate_expr): Likewise.
29371 2014-04-14  Richard Biener  <rguenther@suse.de>
29373         PR tree-optimization/59817
29374         PR tree-optimization/60453
29375         * graphite-scop-detection.c (graphite_can_represent_scev): Complete
29376         recursion to catch all CHRECs in the scalar evolution and restrict
29377         the predicate for the remains appropriately.
29379 2014-04-12  Catherine Moore  <clm@codesourcery.com>
29381         * config/mips/constraints.md: Add new register constraint "kb".
29382         * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
29383         (*movhi_internal): Likewise.
29384         (*movqi_internal): Likewise.
29385         * config/mips/mips.h (M16_STORE_REGS): New register class.
29386         (REG_CLASS_NAMES): Add M16_STORE_REGS.
29387         (REG_CLASS_CONTENTS): Likewise.
29388         * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
29390 2014-04-11  Tobias Burnus  <burnus@net-b.de>
29392         PR c/60194
29393         * doc/invoke.texi (-Wformat-signedness): Document it.
29394         (Wformat=2): Mention that this enables -Wformat-signedness.
29396 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
29398         * common/config/epiphany/epiphany-common.c
29399         (epiphany_option_optimization_table): Enable section anchors by
29400         default at -O1 or higher.
29401         * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
29402         (TARGET_MIN_ANCHOR_OFFSET): Likewise.
29403         (epiphany_rtx_costs) <SET>: For binary operators, the set as such
29404         carries no extra cost.
29405         (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
29406         * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
29407         * config/epiphany/predicates.md (memclob_operand): New predicate.
29408         * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
29409         Use memclob_operand predicate and X constraint for operand 3.
29411 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
29413         * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
29414         with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
29415         its operands.
29417 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
29419         PR rtl-optimization/60651
29420         * mode-switching.c (optimize_mode_switching): Make sure to emit
29421         sets of a lower numbered entity before sets of a higher numbered
29422         entity to a mode of the same or lower priority.
29423         When creating a seginfo for a basic block that starts with a code
29424         label, move the insertion point past the code label.
29425         (new_seginfo): Document and enforce requirement that
29426         NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
29427         * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
29428         * doc/tm.texi: Regenerate.
29430 2014-01-11  Joern Rennecke  <joern.rennecke@embecosm.com>
29432         PR target/60811
29433         * config/arc/arc.c (arc_save_restore): Fix assert typo.
29435 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
29437         * BASE-VER: Set to 4.10.0.
29439 2014-04-11  Tobias Burnus  <burnus@net-b.de>
29441         PR other/59055
29442         * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
29443         * doc/gcc.texi (Service): Update description in the @menu
29444         * doc/invoke.texi (Option Summary): Remove misplaced and
29445         duplicated @menu.
29447 2014-04-11  Steve Ellcey  <sellcey@mips.com>
29448             Jakub Jelinek  <jakub@redhat.com>
29450         PR middle-end/60556
29451         * expr.c (convert_move): Use emit_store_flag_force instead of
29452         emit_store_flag.  Pass lowpart_mode instead of VOIDmode as 5th
29453         argument to it.
29455 2014-04-11  Richard Biener  <rguenther@suse.de>
29457         PR middle-end/60797
29458         * varasm.c (assemble_alias): Avoid endless error reporting
29459         recursion by setting TREE_ASM_WRITTEN.
29461 2014-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29463         * config/s390/s390.md: Add a splitter for NOT rtx.
29465 2014-04-11  Jakub Jelinek  <jakub@redhat.com>
29467         PR rtl-optimization/60663
29468         * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
29470 2014-04-10  Jan Hubicka  <hubicka@ucw.cz>
29471             Jakub Jelinek  <jakub@redhat.com>
29473         PR lto/60567
29474         * ipa.c (function_and_variable_visibility): Copy forced_by_abi
29475         flag from decl_node to node.
29477 2014-04-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
29479         PR debug/60655
29480         * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
29481         (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
29482         ameliorating the cases where it can be.
29484 2014-04-09  David Edelsohn  <dje.gcc@gmail.com>
29486         Revert
29487         2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
29489         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
29490         (loadsync_<mode>): Change mode.
29491         (load_quadpti, store_quadpti): New.
29492         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
29493         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
29494         * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
29496 2014-04-09  Cong Hou  <congh@google.com>
29498         PR testsuite/60773
29499         * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
29500         documentation.
29502 2014-04-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29504         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
29505         instead of vnor to exploit possible fusion opportunity in the
29506         future.
29507         (altivec_expand_vec_perm_const_le): Likewise.
29509 2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
29511         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
29512         (loadsync_<mode>): Change mode.
29513         (load_quadpti, store_quadpti): New.
29514         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
29515         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
29517 2014-04-08  Richard Sandiford  <rdsandiford@googlemail.com>
29519         PR target/60763
29520         * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
29521         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
29522         Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
29524 2014-04-08  Richard Biener  <rguenther@suse.de>
29526         PR middle-end/60706
29527         * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
29528         a 64bit widest int print double-int similar to on HWI64 hosts.
29530 2014-04-08  Richard Biener  <rguenther@suse.de>
29532         PR tree-optimization/60785
29533         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
29534         default defs properly.
29536 2014-04-08  Nathan Sidwell  <nathan@codesourcery.com>
29538         * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
29539         (Weffc++): Likewise.
29541 2014-04-07  Jan Hubicka  <hubcika@ucw.cz>
29543         * ipa-devirt.c (maybe_record_node): When node is not recorded,
29544         set completep to false rather than true.
29546 2014-04-07  Douglas B Rupp  <rupp@adacore.com>
29548         PR target/60504
29549         * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
29550         ARM_TARGET2_DWARF_FORMAT.
29552 2014-04-07  Charles Baylis  <charles.baylis@linaro.org>
29554         PR target/60609
29555         * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
29556         (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
29557         ADDR_DIFF_VEC.
29559 2014-04-07  Richard Biener  <rguenther@suse.de>
29561         PR tree-optimization/60766
29562         * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
29563         (may_eliminate_iv): Convert cand_value_at result to desired type.
29565 2014-04-07  Jason Merrill  <jason@redhat.com>
29567         PR c++/60731
29568         * common.opt (-fno-gnu-unique): Add.
29569         * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
29571 2014-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29573         * haifa-sched.c: Fix outdated function reference and minor
29574         grammar errors in introductory comment.
29576 2014-04-07  Richard Biener  <rguenther@suse.de>
29578         PR middle-end/60750
29579         * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
29580         for noreturn calls.
29581         * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
29583 2014-04-06  John David Anglin  <danglin@gcc.gnu.org>
29585         PR debug/55794
29586         * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
29587         size accounting for thunks.
29588         (pa_asm_output_mi_thunk): Use final_start_function() and
29589         final_end_function() to output function start and end directives.
29591 2014-04-05  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
29593         * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
29594         device specific ISA/ feature information. Remove short_sp and
29595         errata_skip ds.  Add avr_device_specific_features enum to have device
29596         specific info.
29597         * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
29598         errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
29599         * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
29600         updated device specific info.
29601         * config/avr/avr-mcus.def: Merge device specific details to
29602         dev_attribute field.
29603         * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
29604         errata_skip.
29605         * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
29606         * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
29607         assembler if RMW isa supported by current device.
29608         * config/avr/genmultilib.awk: Update as device info structure changed.
29609         * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
29611 2014-04-04  Cong Hou  <congh@google.com>
29613         PR tree-optimization/60656
29614         * tree-vect-stmts.c (supportable_widening_operation):
29615         Fix a bug that elements in a vector with vect_used_by_reduction
29616         property are incorrectly reordered when the operation on it is not
29617         consistant with the one in reduction operation.
29619 2014-04-04  John David Anglin  <danglin@gcc.gnu.org>
29621         PR rtl-optimization/60155
29622         * gcse.c (record_set_data): New function.
29623         (single_set_gcse): New function.
29624         (gcse_emit_move_after): Use single_set_gcse instead of single_set.
29625         (hoist_code): Likewise.
29626         (get_pressure_class_and_nregs): Likewise.
29628 2014-04-04  Eric Botcazou  <ebotcazou@adacore.com>
29630         * explow.c (probe_stack_range): Emit a final optimization blockage.
29632 2014-04-04  Anthony Green  <green@moxielogic.com>
29634         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
29635         typos.
29637 2014-04-04  Jan Hubicka  <hubicka@ucw.cz>
29639         PR ipa/59626
29640         * lto-cgraph.c (input_overwrite_node): Check that partitioning
29641         flags are set only during streaming.
29642         * ipa.c (process_references, walk_polymorphic_call_targets,
29643         symtab_remove_unreachable_nodes): Drop bodies of always inline
29644         after early inlining.
29645         (symtab_remove_unreachable_nodes): Remove always_inline attribute.
29647 2014-04-04  Jakub Jelinek  <jakub@redhat.com>
29648         Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
29650         PR debug/60655
29651         * dwarf2out.c (const_ok_for_output_1): Reject expressions
29652         containing a NOT.
29654 2014-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29656         PR bootstrap/60743
29657         * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
29658         duration.
29659         (cortex_a53_fdivd): Likewise.
29661 2014-04-04  Martin Jambor  <mjambor@suse.cz>
29663         PR ipa/60640
29664         * cgraph.h (cgraph_clone_node): New parameter added to declaration.
29665         Adjust all callers.
29666         * cgraph.c (clone_of_p): Also return true if thunks match.
29667         (verify_edge_corresponds_to_fndecl): Removed extraneous call to
29668         cgraph_function_or_thunk_node and an obsolete comment.
29669         * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
29670         file.
29671         (build_function_decl_skip_args): Likewise.
29672         (set_new_clone_decl_and_node_flags): New function.
29673         (duplicate_thunk_for_node): Likewise.
29674         (redirect_edge_duplicating_thunks): Likewise.
29675         (cgraph_clone_node): New parameter args_to_skip, pass it to
29676         redirect_edge_duplicating_thunks which is called instead of
29677         cgraph_redirect_edge_callee.
29678         (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
29679         moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
29681 2014-04-04  Jeff Law  <law@redhat.com>
29683         PR target/60657
29684         * config/arm/predicates.md (const_int_I_operand): New predicate.
29685         (const_int_M_operand): Similarly.
29686         * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
29687         const_int_operand.
29688         (insv_t2, extv_reg, extzv_t2): Likewise.
29689         (load_multiple_with_writeback): Similarly for const_int_I_operand.
29690         (pop_multiple_with_writeback_and_return): Likewise.
29691         (vfp_pop_multiple_with_writeback): Likewise
29693 2014-04-04  Richard Biener  <rguenther@suse.de>
29695         PR ipa/60746
29696         * tree-ssanames.c (make_ssa_name_fn): Fix assert.
29697         * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
29698         non-GIMPLE_LABELs.
29699         * gimplify.h (gimple_add_tmp_var_fn): Declare.
29700         * gimplify.c (gimple_add_tmp_var_fn): New function.
29701         * gimple-expr.h (create_tmp_reg_fn): Declare.
29702         * gimple-expr.c (create_tmp_reg_fn): New function.
29703         * gimple-low.c (record_vars_into): Don't change cfun.
29704         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
29705         code generation without cfun.
29707 2014-04-04  Thomas Schwinge  <thomas@codesourcery.com>
29709         PR bootstrap/60719
29710         * Makefile.in (install-driver): Fix shell scripting.
29712 2014-04-03  Cong Hou  <congh@google.com>
29714         PR tree-optimization/60505
29715         * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
29716         threshold of number of iterations below which no vectorization
29717         will be done.
29718         * tree-vect-loop.c (new_loop_vec_info):
29719         Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
29720         * tree-vect-loop.c (vect_analyze_loop_operations):
29721         Set LOOP_VINFO_COST_MODEL_THRESHOLD.
29722         * tree-vect-loop.c (vect_transform_loop):
29723         Use LOOP_VINFO_COST_MODEL_THRESHOLD.
29724         * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
29725         of iterations of the loop and see if we should build the epilogue.
29727 2014-04-03  Richard Biener  <rguenther@suse.de>
29729         * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
29730         (streamer_tree_cache_create): Adjust.
29731         * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
29732         to allow optional nodes array.
29733         (streamer_tree_cache_insert_1): Use next_idx to assign idx.
29734         (streamer_tree_cache_append): Likewise.
29735         (streamer_tree_cache_create): Create nodes array optionally
29736         as specified by parameter.
29737         * lto-streamer-out.c (create_output_block): Avoid maintaining
29738         the node array in the writer cache.
29739         (DFS_write_tree): Remove assertion.
29740         (produce_asm_for_decls): Free the out decl state hash table early.
29741         * lto-streamer-in.c (lto_data_in_create): Adjust for
29742         streamer_tree_cache_create prototype change.
29744 2014-04-03  Richard Biener  <rguenther@suse.de>
29746         * tree-streamer-out.c (streamer_write_chain): Do not temporarily
29747         set TREE_CHAIN to NULL_TREE.
29749 2014-04-03  Richard Biener  <rguenther@suse.de>
29751         PR tree-optimization/60740
29752         * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
29753         over all GIMPLE_COND operands.
29755 2014-04-03  Nathan Sidwell  <nathan@codesourcery.com>
29757         * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
29758         (Weffc++): Remove Scott's numbering, merge lists and reference
29759         Wnon-virtual-dtor.
29761 2014-04-03  Nick Clifton  <nickc@redhat.com>
29763         * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
29764         properly.
29766 2014-04-03  Martin Jambor  <mjambor@suse.cz>
29768         * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
29769         mention gcc_unreachable before failing.
29770         * ipa.c (symtab_remove_unreachable_nodes): Also print order of
29771         removed symbols.
29773 2014-04-02  Jan Hubicka  <hubicka@ucw.cz>
29775         PR ipa/60659
29776         * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
29777         inconsistent code and instead mark the context inconsistent.
29778         (possible_polymorphic_call_targets): For inconsistent contexts
29779         return empty complete list.
29781 2014-04-02  Anthony Green  <green@moxielogic.com>
29783         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
29784         (extendqisi2, extendhisi2): Define.
29785         * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
29786         (WCHAR_TYPE): Change to unsigned int.
29788 2014-04-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29790         PR tree-optimization/60733
29791         * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
29792         insertion point for PHI candidates to be the end of the feeding
29793         block for the PHI argument.
29795 2014-04-02  Vladimir Makarov  <vmakarov@redhat.com>
29797         PR rtl-optimization/60650
29798         * lra-constraints.c (process_alt_operands): Decrease reject for
29799         earlyclobber matching.
29801 2014-04-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29803         * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
29805 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29807         * config/spu/spu.c (pad_bb): Do not crash when the last
29808         insn is CODE_FOR_blockage.
29810 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29812         * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
29813         lies outside the target mode.
29815 2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
29817         PR target/60735
29818         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
29819         software floating point or no floating point registers, do not
29820         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
29821         in GPRs that occurs after we tested for GPRs that would never be
29822         true.
29824         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
29825         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
29826         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
29827         specifically allow DDmode, since that does not use the SPE SIMD
29828         instructions.
29830 2014-04-02  Richard Biener  <rguenther@suse.de>
29832         PR middle-end/60729
29833         * optabs.c (expand_abs_nojump): Honor flag_trapv only for
29834         MODE_INTs.  Properly use negv_optab.
29835         (expand_abs): Likewise.
29837 2014-04-02  Richard Biener  <rguenther@suse.de>
29839         PR bootstrap/60719
29840         * Makefile.in (install-driver): Guard extra installs with special
29841         names properly.
29843 2014-04-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
29845         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
29846         Document vec_vgbbd.
29848 2014-04-01  Richard Henderson  <rth@redhat.com>
29850         PR target/60704
29851         * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
29852         alternative enabled before register allocation.
29854 2014-04-01  Chung-Lin Tang  <cltang@codesourcery.com>
29856         * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
29857         * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
29858         typo.
29859         (nios2_large_got_address): Remove unneeded 'sym' parameter.
29860         (nios2_got_address): Update nios2_large_got_address call site.
29861         (nios2_delegitimize_address): New function.
29862         (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
29863         * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
29864         (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
29866 2014-04-01  Martin Husemann  <martin@duskware.de>
29868         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
29869         for -mabi=32.
29871 2014-04-01  Richard Sandiford  <rdsandiford@googlemail.com>
29873         PR rtl-optimization/60604
29874         * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
29875         check from register_operand.
29876         (register_operand): Redefine in terms of general_operand.
29877         (nonmemory_operand): Use register_operand for the non-constant cases.
29879 2014-04-01  Richard Biener  <rguenther@suse.de>
29881         * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
29883 2014-04-01  Sebastian Huber  <sebastian.huber@embedded-brains.de>
29885         * doc/invoke.texi (mapp-regs): Clarify.
29887 2014-03-31  Ulrich Drepper  <drepper@gmail.com>
29889         * config/i386/avx512fintrin.h (__v32hi): Define type.
29890         (__v64qi): Likewise.
29891         (_mm512_set1_epi8): Define.
29892         (_mm512_set1_epi16): Define.
29893         (_mm512_set4_epi32): Define.
29894         (_mm512_set4_epi64): Define.
29895         (_mm512_set4_pd): Define.
29896         (_mm512_set4_ps): Define.
29897         (_mm512_setr4_epi64): Define.
29898         (_mm512_setr4_epi32): Define.
29899         (_mm512_setr4_pd): Define.
29900         (_mm512_setr4_ps): Define.
29901         (_mm512_setzero_epi32): Define.
29903 2014-03-31  Martin Jambor  <mjambor@suse.cz>
29905         PR middle-end/60647
29906         * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
29907         callsite_arguments_match_p.  Updated all callers.  Also check types of
29908         corresponding formal parameters and actual arguments.
29909         (not_all_callers_have_enough_arguments_p) Renamed to
29910         some_callers_have_mismatched_arguments_p.
29912 2014-03-31  Yuri Rumyantsev  <ysrumyan@gmail.com>
29914         * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
29916 2014-03-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
29918         PR target/60034
29919         * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
29920         section anchor.
29922 2014-03-30  Uros Bizjak  <ubizjak@gmail.com>
29924         * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
29925         (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
29926         Split out
29927         <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
29928         Use FMAMODE_NOVF512 mode iterator.
29929         (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
29930         (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
29931         (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
29932         (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
29933         Split out
29934         <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
29935         Use VF_128_256 mode iterator.
29936         (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
29937         Ditto.
29939 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
29941         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
29942         static chain if needed.
29944 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
29946         PR target/60697
29947         * lra-constraints.c (index_part_to_reg): New.
29948         (process_address): Use it.
29950 2014-03-27  Jeff Law  <law@redhat.com>
29951             Jakub Jelinek  <jakub@redhat.com>
29953         PR target/60648
29954         * expr.c (do_tablejump): Use simplify_gen_binary rather than
29955         gen_rtx_{PLUS,MULT} to build up the address expression.
29957         * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
29958         creating non-canonical RTL.
29960 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
29962         PR ipa/60243
29963         * ipa-inline.c (want_inline_small_function_p): Short circuit large
29964         functions; reorganize to make cheap checks first.
29965         (inline_small_functions): Do not estimate growth when dumping;
29966         it is expensive.
29967         * ipa-inline.h (inline_summary): Add min_size.
29968         (growth_likely_positive): New function.
29969         * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
29970         (set_cond_stmt_execution_predicate): Cleanup.
29971         (estimate_edge_size_and_time): Compute min_size.
29972         (estimate_calls_size_and_time): Likewise.
29973         (estimate_node_size_and_time): Likewise.
29974         (inline_update_overall_summary): Update min_size.
29975         (do_estimate_edge_time): Likewise.
29976         (do_estimate_edge_size): Update.
29977         (do_estimate_edge_hints): Update.
29978         (growth_likely_positive): New function.
29980 2014-03-28  Jakub Jelinek  <jakub@redhat.com>
29982         PR target/60693
29983         * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
29984         also if addr has VOIDmode.
29986 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29988         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
29989         * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
29990         Declare extern.
29991         * config/arm/cortex-a53.md: Add reservations and bypass for crypto
29992         instructions as well as AdvancedSIMD loads.
29994 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29996         * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
29997         Use crypto_aese type.
29998         (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
29999         * config/arm/arm.md (is_neon_type): Replace crypto_aes with
30000         crypto_aese, crypto_aesmc.  Move to types.md.
30001         * config/arm/types.md (crypto_aes): Split into crypto_aese,
30002         crypto_aesmc.
30003         * config/arm/iterators.md (crypto_type): Likewise.
30005 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
30007         * cgraph.c: Include expr.h and tree-dfa.h.
30008         (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
30009         remove LHS.
30011 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
30013         PR target/60675
30014         * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
30015         regs from checking multi-reg pseudos.
30017 2014-03-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30019         * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
30021 2014-03-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30023         * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
30024         if it would clobber the stack pointer, even temporarily.
30026 2014-03-28  Eric Botcazou  <ebotcazou@adacore.com>
30028         * mode-switching.c: Make small adjustments to the top comment.
30030 2014-03-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
30032         * config/rs6000/constraints.md (wD constraint): New constraint to
30033         match the constant integer to get the top DImode/DFmode out of a
30034         vector in a VSX register.
30036         * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
30037         match the constant integer to get the top DImode/DFmode out of a
30038         vector in a VSX register.
30040         * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
30041         for ISA 2.07.
30043         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
30044         vbpermq builtins.
30046         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
30047         -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
30049         * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
30050         Optimize vec_extract of 64-bit values, where the value being
30051         extracted is in the top word, where we can use scalar
30052         instructions.  Add direct move and store support.  Combine the big
30053         endian/little endian vector select load support into a single insn.
30054         (vsx_extract_<mode>_internal1): Likewise.
30055         (vsx_extract_<mode>_internal2): Likewise.
30056         (vsx_extract_<mode>_load): Likewise.
30057         (vsx_extract_<mode>_store): Likewise.
30058         (vsx_extract_<mode>_zero): Delete, big and little endian insns are
30059         combined into vsx_extract_<mode>_load.
30060         (vsx_extract_<mode>_one_le): Likewise.
30062         * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
30063         define the top 64-bit vector element.
30065         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
30066         constraint.
30068         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
30069         Document vec_vbpermq builtin.
30071         PR target/60672
30072         * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
30073         enable use of xxsldwi and xxpermdi builtin functions.
30074         (vec_xxpermdi): Likewise.
30076         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
30077         Document use of vec_xxsldwi and vec_xxpermdi builtins.
30079 2014-03-27  Vladimir Makarov  <vmakarov@redhat.com>
30081         PR rtl-optimization/60650
30082         * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
30083         first_p.  Use it.
30084         (find_spills_for): New.
30085         (assign_by_spills): Pass the new parameter to find_hard_regno_for.
30086         Spill all pseudos on the second iteration.
30088 2014-03-27  Marek Polacek  <polacek@redhat.com>
30090         PR c/50347
30091         * doc/extend.texi (ffs Builtins): Change unsigned types to signed
30092         types.
30094 2014-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30096         * config/s390/s390.c (s390_can_use_return_insn): Check for
30097         call-saved FPRs on 31 bit.
30099 2014-03-27  Jakub Jelinek  <jakub@redhat.com>
30101         PR middle-end/60682
30102         * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
30103         if they need regimplification, just drop them instead of
30104         calling gimple_regimplify_operands on them.
30106 2014-03-27  Marcus Shawcroft  <marcus.shawcroft@arm.com>
30108         PR target/60580
30109         * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
30110         (aarch64_frame_pointer_required): Adjust logic.
30111         (aarch64_can_eliminate): Adjust logic.
30112         (aarch64_override_options_after_change): Adjust logic.
30114 2014-03-27  Dehao Chen  <dehao@google.com>
30116         * ipa-inline.c (early_inliner): Update node's inline info.
30118 2014-03-26  Dehao Chen  <dehao@google.com>
30120         * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
30121         compiler inserted conditional jumps for NAN float check.
30123 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
30125         * ubsan.h (ubsan_create_data): Change second argument's type
30126         to const location_t *.
30127         * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
30128         _("<unknown>").
30129         (ubsan_create_data): Change second argument to const location_t *PLOC.
30130         Create Loc field whenever PLOC is non-NULL.
30131         (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
30132         ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
30133         callers.
30135         PR other/59545
30136         * real.c (real_to_integer2): Change type of low to UHWI.
30138 2014-03-26  Tobias Burnus  <burnus@net-b.de>
30140         * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
30141         (CILK_SELF_SPECS): New define.
30142         (driver_self_specs): Use it.
30144 2014-03-26  Richard Biener  <rguenther@suse.de>
30146         * tree-pretty-print.c (percent_K_format): Implement special
30147         case for LTO and its stripped down BLOCK tree.
30149 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
30151         PR sanitizer/60636
30152         * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
30154         * tree-vrp.c (simplify_internal_call_using_ranges): If only
30155         one range is range_int_cst_p, but not both, at least optimize
30156         addition/subtraction of 0 and multiplication by 0 or 1.
30157         * gimple-fold.c (gimple_fold_call): Fold
30158         IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
30159         (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
30160         INTEGER_CSTs, try to fold at least x * 0 and y - y.
30162 2014-03-26  Eric Botcazou  <ebotcazou@adacore.com>
30164         PR rtl-optimization/60452
30165         * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
30166         <case REG>: Return 1 for invalid offsets from the frame pointer.
30168 2014-03-26  Marek Polacek  <polacek@redhat.com>
30170         PR c/37428
30171         * doc/extend.texi (C Extensions): Mention variable-length arrays in
30172         a structure/union.
30174 2014-03-26  Marek Polacek  <polacek@redhat.com>
30176         PR c/39525
30177         * doc/extend.texi (Designated Inits): Describe what happens to omitted
30178         field members.
30180 2014-03-26  Marek Polacek  <polacek@redhat.com>
30182         PR other/59545
30183         * ira-color.c (update_conflict_hard_regno_costs): Perform the
30184         multiplication in unsigned type.
30186 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
30188         * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
30190 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
30192         * doc/contrib.texi: Add myself as Andes nds32 port contributor.
30194 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
30196         PR ipa/60315
30197         * cif-code.def (UNREACHABLE) New code.
30198         * ipa-inline.c (inline_small_functions): Skip edges to
30199         __builtlin_unreachable.
30200         (estimate_edge_growth): Allow edges to __builtlin_unreachable.
30201         * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
30202         predicate to __bulitin_unreachable.
30203         (set_cond_stmt_execution_predicate): Fix issue when
30204         invert_tree_comparison returns ERROR_MARK.
30205         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
30206         propagate to inline clones.
30207         * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
30208         to unreachable.
30209         * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
30210         * cgraphclones.c (cgraph_clone_node): If call destination is already
30211         ureachable, do not redirect it back.
30212         * tree-inline.c (fold_marked_statements): Hanlde calls becoming
30213         unreachable.
30215 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
30217         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
30218         Do not modify inline clones.
30220 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
30222         * config/i386/i386.md (general_sext_operand): New mode attr.
30223         (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
30224         don't generate (sign_extend (const_int)).
30225         (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
30226         operands[2].  Use We constraint instead of <i> and
30227         <general_sext_operand> predicate instead of <general_operand>.
30228         (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
30229         * config/i386/constraints.md (We): New constraint.
30230         * config/i386/predicates.md (x86_64_sext_operand,
30231         sext_operand): New predicates.
30233 2014-03-25  Martin Jambor  <mjambor@suse.cz>
30235         PR ipa/60600
30236         * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
30237         inconsistent devirtualizations to __builtin_unreachable.
30239 2014-03-25  Marek Polacek  <polacek@redhat.com>
30241         PR c/35449
30242         * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
30244 2014-03-25  Alan Lawrence  <alan.lawrence@arm.com>
30246         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
30247         order of elements for big-endian.
30249 2014-03-25  Richard Biener  <rguenther@suse.de>
30251         PR middle-end/60635
30252         * gimplify-me.c (gimple_regimplify_operands): Update the
30253         re-gimplifed stmt.
30255 2014-03-25  Martin Jambor  <mjambor@suse.cz>
30257         PR ipa/59176
30258         * lto-cgraph.c (lto_output_node): Stream body_removed flag.
30259         (lto_output_varpool_node): Likewise.
30260         (input_overwrite_node): Likewise.
30261         (input_varpool_node): Likewise.
30263 2014-03-25  Richard Biener  <rguenther@suse.de>
30265         * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
30266         (run_gcc): Likewise.
30268 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
30270         * combine.c (simplify_compare_const): Add MODE argument.
30271         Handle mode_width 0 as very large mode_width.
30272         (try_combine, simplify_comparison): Adjust callers.
30274         * cselib.c (cselib_hash_rtx): Perform addition in unsigned
30275         type to avoid signed integer overflow.
30276         * explow.c (plus_constant): Likewise.
30278 2014-03-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
30280         * doc/generic.texi: Correct typos.
30282 2014-03-24  Tobias Burnus  <burnus@net-b.de>
30284         * doc/invoke.texi (-flto): Expand section about
30285         using static libraries with LTO.
30287 2014-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30289         PR rtl-optimization/60501
30290         * optabs.def (addptr3_optab): New optab.
30291         * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
30292         * doc/md.texi ("addptrm3"): Document new RTL standard expander.
30293         * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
30295         * lra.c (emit_add3_insn): Use the addptr pattern if available.
30297         * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
30299 2014-03-24  Ulrich Drepper  <drepper@gmail.com>
30301         * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
30302         _mm512_set1_pd.
30304         * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
30305         (_mm256_undefined_ps): Define.
30306         (_mm256_undefined_pd): Define.
30307         * config/i386/emmintrin.h (_mm_undefined_si128): Define.
30308         (_mm_undefined_pd): Define.
30309         * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
30310         * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
30311         (_mm512_undefined_ps): Define.
30312         (_mm512_undefined_pd): Define.
30313         Use _mm*_undefined_*.
30314         * config/i386/avx2intrin.h: Use _mm*_undefined_*.
30316 2014-03-24  Alex Velenko  <Alex.Velenko@arm.com>
30318         * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
30319         (lshr_simd): DI mode added.
30320         * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
30321         (aarch64_ushr_simddi): Likewise.
30322         * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
30323         * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
30324         (vshrd_n_u64): Likewise.
30326 2014-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30328         * Makefile.in (s-macro_list): Depend on cc1.
30330 2014-03-23  Teresa Johnson  <tejohnson@google.com>
30332         * ipa-utils.c (ipa_print_order): Use specified dump file.
30334 2014-03-23  Eric Botcazou  <ebotcazou@adacore.com>
30336         PR rtl-optimization/60601
30337         * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
30339         * gcc.c (eval_spec_function): Initialize save_growing_value.
30341 2014-03-22  Jakub Jelinek  <jakub@redhat.com>
30343         PR sanitizer/60613
30344         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
30345         code == MINUS_EXPR, never swap op0 with op1.
30347         * toplev.c (init_local_tick): Avoid signed integer multiplication
30348         overflow.
30349         * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
30350         shift by first operand's bitsize.
30352 2014-03-21  Jakub Jelinek  <jakub@redhat.com>
30354         PR target/60610
30355         * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
30356         redefine to 1 or 0.
30357         * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
30358         TARGET_ISA_64BIT_P(x).
30360 2014-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30362         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
30363         pattern for vector nor instead of subtract from splat(-1).
30364         (altivec_expand_vec_perm_const_le): Likewise.
30366 2014-03-21  Richard Henderson  <rth@twiddle.net>
30368         PR target/60598
30369         * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
30370         related insns after epilogue_completed.
30372 2014-03-21  Martin Jambor  <mjambor@suse.cz>
30374         PR ipa/59176
30375         * cgraph.h (symtab_node): New flag body_removed.
30376         * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
30377         when removing bodies.
30378         * symtab.c (dump_symtab_base): Dump body_removed flag.
30379         * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
30380         had their bodies removed.
30382 2014-03-21  Martin Jambor  <mjambor@suse.cz>
30384         PR ipa/60419
30385         * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
30386         in the border.
30388 2014-03-21  Richard Biener  <rguenther@suse.de>
30390         PR tree-optimization/60577
30391         * tree-core.h (struct tree_base): Document nothrow_flag use
30392         in DECL_NONALIASED.
30393         * tree.h (DECL_NONALIASED): New.
30394         (may_be_aliased): Adjust.
30395         * coverage.c (build_var): Set DECL_NONALIASED.
30397 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
30399         * expr.c (expand_expr_real_1): Remove outdated comment.
30401 2014-03-20  Jakub Jelinek  <jakub@redhat.com>
30403         PR middle-end/60597
30404         * ira.c (adjust_cleared_regs): Call copy_rtx on
30405         *reg_equiv[REGNO (loc)].src_p before passing it to
30406         simplify_replace_fn_rtx.
30408         PR target/60568
30409         * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
30410         into CONST, put pic register as first operand of PLUS.  Use
30411         gen_const_mem for both 32-bit and 64-bit PIC got loads.
30413 2014-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30415         * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
30417 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
30419         * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
30420         around for store forwarding issue in the FPU on the UT699.
30421         * config/sparc/sparc.md (in_branch_delay): Return false for single FP
30422         loads and operations if -mfix-ut699 is specified.
30423         (divtf3_hq): Tweak attribute.
30424         (sqrttf2_hq): Likewise.
30426 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
30428         * calls.c (store_one_arg): Remove incorrect const qualification on the
30429         type of the temporary.
30430         * cfgexpand.c (expand_return): Likewise.
30431         * expr.c (expand_constructor): Likewise.
30432         (expand_expr_real_1): Likewise.
30434 2014-03-20  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
30436         * config/arm/arm.c (arm_dwarf_register_span): Update the element number
30437         of parts.
30439 2014-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
30441         PR target/60039
30442         * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
30444 2014-03-19  James Greenhalgh  <james.greenhalgh@arm.com>
30446         * config/arm/aarch-common-protos.h
30447         (alu_cost_table): Fix spelling of "extend".
30448         * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
30450 2014-03-19  Richard Biener  <rguenther@suse.de>
30452         PR middle-end/60553
30453         * tree-core.h (tree_type_common): Re-order pointer members
30454         to reduce recursion depth during GC walks.
30456 2014-03-19  Marek Polacek  <polacek@redhat.com>
30458         PR sanitizer/60569
30459         * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
30460         before accessing it.
30462 2014-03-19  Richard Biener  <rguenther@suse.de>
30464         PR lto/59543
30465         * lto-streamer-in.c (input_function): In WPA stage do not drop
30466         debug stmts.
30468 2014-03-19  Jakub Jelinek  <jakub@redhat.com>
30470         PR tree-optimization/60559
30471         * vectorizable_mask_load_store): Replace scalar MASK_LOAD
30472         with build_zero_cst assignment.
30474 2014-03-18  Kai Tietz  <ktietz@redhat.com>
30476         PR rtl-optimization/56356
30477         * sdbout.c (sdbout_parms): Verify that parms'
30478         incoming argument is valid.
30479         (sdbout_reg_parms): Likewise.
30481 2014-03-18  Richard Henderson  <rth@redhat.com>
30483         PR target/60562
30484         * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
30485         be shadowed by *float<SWI48><MODEF>2_sse.  Test X87_ENABLE_FLOAT.
30486         (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
30488 2014-03-18  Basile Starynkevitch  <basile@starynkevitch.net>
30490         * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
30491         * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
30492         Italicize plugin event names in description.  Explain that
30493         PLUGIN_PRAGMAS has no sense for lto1.  Explain PLUGIN_INCLUDE_FILE.
30494         Remind that no GCC functions should be called after PLUGIN_FINISH.
30495         Explain what pragmas with expansion are.
30497 2014-03-18  Martin Liska  <mliska@suse.cz>
30499         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
30500         gimple call statement is update.
30501         * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
30502         GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
30504 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
30506         PR sanitizer/60557
30507         * ubsan.c (ubsan_instrument_unreachable): Call
30508         initialize_sanitizer_builtins.
30509         (ubsan_pass): Likewise.
30511         PR sanitizer/60535
30512         * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
30513         varpool_finalize_decl instead of rest_of_decl_compilation.
30515 2014-03-18  Richard Biener  <rguenther@suse.de>
30517         * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
30518         by using bitmap_and_compl instead of bitmap_and_compl_into.
30519         (df_rd_transfer_function): Likewise.
30521 2014-03-18  Richard Biener  <rguenther@suse.de>
30523         * doc/lto.texi (fresolution): Fix typo.
30525 2014-03-18  Richard Biener  <rguenther@suse.de>
30527         * doc/invoke.texi (flto): Update for changes in 4.9.
30529 2014-03-18  Richard Biener  <rguenther@suse.de>
30531         * doc/loop.texi: Remove section on the removed lambda framework.
30532         Update loop docs with recent changes in preserving loop structure.
30534 2014-03-18  Richard Biener  <rguenther@suse.de>
30536         * doc/lto.texi (-fresolution): Document.
30538 2014-03-18  Richard Biener  <rguenther@suse.de>
30540         * doc/contrib.texi: Adjust my name.
30542 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
30544         PR ipa/58721
30545         * internal-fn.c: Include diagnostic-core.h.
30546         (expand_BUILTIN_EXPECT): New function.
30547         * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
30548         (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
30549         IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
30550         * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
30551         IFN_BUILTIN_EXPECT.
30552         * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
30553         Revert 3 argument __builtin_expect code.
30554         (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
30555         * gimple-fold.c (gimple_fold_call): Likewise.
30556         * tree.h (fold_builtin_expect): New prototype.
30557         * builtins.c (build_builtin_expect_predicate): Add predictor
30558         argument, if non-NULL, create 3 argument __builtin_expect.
30559         (fold_builtin_expect): No longer static.  Add ARG2 argument,
30560         pass it through to build_builtin_expect_predicate.
30561         (fold_builtin_2): Adjust caller.
30562         (fold_builtin_3): Handle BUILT_IN_EXPECT.
30563         * internal-fn.def (BUILTIN_EXPECT): New.
30565 2014-03-18  Tobias Burnus  <burnus@net-b.de>
30567         PR ipa/58721
30568         * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
30569         PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
30570         PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
30572 2014-03-18  Jan Hubicka  <hubicka@ucw.cz>
30574         PR ipa/58721
30575         * predict.c (combine_predictions_for_bb): Fix up formatting.
30576         (expr_expected_value_1, expr_expected_value): Add predictor argument,
30577         fill what it points to if non-NULL.
30578         (tree_predict_by_opcode): Adjust caller, use the predictor.
30579         * predict.def (PRED_COMPARE_AND_SWAP): Add.
30581 2014-03-18  Eric Botcazou  <ebotcazou@adacore.com>
30583         * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
30584         proper constant for the store mode.
30586 2014-03-18  Ilya Enkovich  <ilya.enkovich@intel.com>
30588         * symtab.c (change_decl_assembler_name): Fix transparent alias
30589         chain construction.
30591 2014-03-16  Renlin Li  <Renlin.Li@arm.com>
30593         * config/aarch64/aarch64.c: Correct the comments about the
30594         aarch64 stack layout.
30596 2014-03-18  Thomas Schwinge  <thomas@codesourcery.com>
30598         * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
30599         check for GF_OMP_FOR_KIND_FOR.
30601 2013-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
30603         * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
30604         ymm and zmm register names.
30606 2014-03-17  Jakub Jelinek  <jakub@redhat.com>
30608         PR target/60516
30609         * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
30610         note creation for the 2010-08-31 changes.
30612 2014-03-17  Marek Polacek  <polacek@redhat.com>
30614         PR middle-end/60534
30615         * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
30616         as -fno-tree-loop-vectorize.
30617         (expand_omp_simd): Likewise.
30619 2014-03-15  Eric Botcazou  <ebotcazou@adacore.com>
30621         * config/sparc/sparc-protos.h (tls_call_delay): Delete.
30622         (eligible_for_call_delay): New prototype.
30623         * config/sparc/sparc.c (tls_call_delay): Rename into...
30624         (eligible_for_call_delay): ...this.  Return false if the instruction
30625         cannot be put in the delay slot of a branch.
30626         (eligible_for_restore_insn): Simplify.
30627         (eligible_for_return_delay): Return false if the instruction cannot be
30628         put in the delay slot of a branch and simplify.
30629         (eligible_for_sibcall_delay): Return false if the instruction cannot be
30630         put in the delay slot of a branch.
30631         * config/sparc/sparc.md (fix_ut699): New attribute.
30632         (tls_call_delay): Delete.
30633         (in_call_delay): Reimplement.
30634         (eligible_for_sibcall_delay): Rename into...
30635         (in_sibcall_delay): ...this.
30636         (eligible_for_return_delay): Rename into...
30637         (in_return_delay): ...this.
30638         (in_branch_delay): Reimplement.
30639         (in_uncond_branch_delay): Delete.
30640         (in_annul_branch_delay): Delete.
30642 2014-03-14  Richard Henderson  <rth@redhat.com>
30644         PR target/60525
30645         * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
30646         define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
30647         (*floathi<X87MODEF>2_i387_with_temp): Remove.
30648         (floathi splitters): Remove.
30649         (float<SWI48x>xf2): New pattern.
30650         (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2.  Drop
30651         code that tried to handle DImode for 32-bit, but which was excluded
30652         by the pattern's condition.  Drop allocation of stack temporary.
30653         (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
30654         (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
30655         (*float<SWI48><MODEF>2_mixed_interunit): Remove.
30656         (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
30657         (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
30658         (*float<SWI48><MODEF>2_sse_with_temp): Remove.
30659         (*float<SWI48><MODEF>2_sse_interunit): Remove.
30660         (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
30661         (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
30662         (*float<SWI48x><X87MODEF>2_i387): Remove.
30663         (all float _with_temp splitters): Remove.
30664         (*float<SWI48x><MODEF>2_i387): New pattern.
30665         (*float<SWI48><MODEF>2_sse): New pattern.
30666         (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
30667         (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
30669 2014-03-14  Jakub Jelinek  <jakub@redhat.com>
30670             Marek Polacek  <polacek@redhat.com>
30672         PR middle-end/60484
30673         * common.opt (dump_base_name_prefixed): New Variable.
30674         * opts.c (finish_options): Don't prepend directory to x_dump_base_name
30675         if x_dump_base_name_prefixed is already set, set it at the end.
30677 2014-03-14  Vladimir Makarov  <vmakarov@redhat.com>
30679         PR rtl-optimization/60508
30680         * lra-constraints.c (get_reload_reg): Add new parameter
30681         in_subreg_p.
30682         (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
30683         Pass the new parameter values.
30685 2014-03-14  Richard Biener  <rguenther@suse.de>
30687         * common.opt: Revert unintented changes from r205065.
30688         * opts.c: Likewise.
30690 2014-03-14  Richard Biener  <rguenther@suse.de>
30692         PR middle-end/60518
30693         * cfghooks.c (split_block): Properly adjust all loops the
30694         block was a latch of.
30696 2014-03-14  Martin Jambor  <mjambor@suse.cz>
30698         PR lto/60461
30699         * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
30700         and simplify it.
30702 2014-03-14  Georg-Johann Lay  <avr@gjlay.de>
30704         PR target/59396
30705         * config/avr/avr.c (avr_set_current_function): Pass function name
30706         through default_strip_name_encoding before sanity checking instead
30707         of skipping the first char of the assembler name.
30709 2014-03-13  Richard Henderson  <rth@redhat.com>
30711         PR debug/60438
30712         * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
30713         (ix86_force_to_memory, ix86_free_from_memory): Remove.
30714         * config/i386/i386-protos.h: Likewise.
30715         * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
30716         in the expander instead of a splitter.
30717         (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
30718         any possibility of requiring a memory.
30719         (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
30720         (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
30721         (fp branch splitters): Update for ix86_split_fp_branch.
30722         (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
30723         (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
30724         (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
30725         (*fop_<MODEF>_2_i387): Remove f/r alternative.
30726         (*fop_<MODEF>_3_i387): Likewise.
30727         (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
30728         (splitters for the fop_* register patterns): Remove.
30729         (fscalexf4_i387): Rename from *fscalexf4_i387.
30730         (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
30732 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
30734         PR tree-optimization/59779
30735         * tree-dfa.c (get_ref_base_and_extent): Use double_int
30736         type for bitsize and maxsize instead of HOST_WIDE_INT.
30738 2014-03-13  Steven Bosscher  <steven@gcc.gnu.org>
30740         PR rtl-optimization/57320
30741         * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
30742         the CFG after thread_prologue_and_epilogue_insns.
30744 2014-03-13  Vladimir Makarov  <vmakarov@redhat.com>
30746         PR rtl-optimization/57189
30747         * lra-constraints.c (process_alt_operands): Disfavor spilling
30748         vector pseudos.
30750 2014-03-13  Cesar Philippidis  <cesar@codesourcery.com>
30752         * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
30754 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
30756         PR tree-optimization/59025
30757         PR middle-end/60418
30758         * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
30759         same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
30761 2014-03-13  Georg-Johann Lay  <avr@gjlay.de>
30763         PR target/60486
30764         * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
30765         calls of avr_out_plus_1.
30767 2014-03-13  Bin Cheng  <bin.cheng@arm.com>
30769         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
30770         BB's single pred and update the father loop's latch info later.
30772 2014-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
30774         * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
30775         (VEC_M): Likewise.
30776         (VEC_N): Likewise.
30777         (VEC_R): Likewise.
30778         (VEC_base): Likewise.
30779         (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
30780         registers, we need to swap double words in little endian mode.
30782         * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
30783         to be a container mode for 128-bit integer operations added in ISA
30784         2.07.  Unlike TImode and PTImode, the preferred register set is
30785         the Altivec/VMX registers for the 128-bit operations.
30787         * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
30788         declarations.
30789         (rs6000_split_128bit_ok_p): Likewise.
30791         * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
30792         macros for creating ISA 2.07 normal and overloaded builtin
30793         functions with 3 arguments.
30794         (BU_P8V_OVERLOAD_3): Likewise.
30795         (VPERM_1T): Add support for V1TImode in 128-bit vector operations
30796         for use as overloaded functions.
30797         (VPERM_1TI_UNS): Likewise.
30798         (VSEL_1TI): Likewise.
30799         (VSEL_1TI_UNS): Likewise.
30800         (ST_INTERNAL_1ti): Likewise.
30801         (LD_INTERNAL_1ti): Likewise.
30802         (XXSEL_1TI): Likewise.
30803         (XXSEL_1TI_UNS): Likewise.
30804         (VPERM_1TI): Likewise.
30805         (VPERM_1TI_UNS): Likewise.
30806         (XXPERMDI_1TI): Likewise.
30807         (SET_1TI): Likewise.
30808         (LXVD2X_V1TI): Likewise.
30809         (STXVD2X_V1TI): Likewise.
30810         (VEC_INIT_V1TI): Likewise.
30811         (VEC_SET_V1TI): Likewise.
30812         (VEC_EXT_V1TI): Likewise.
30813         (EQV_V1TI): Likewise.
30814         (NAND_V1TI): Likewise.
30815         (ORC_V1TI): Likewise.
30816         (VADDCUQ): Add support for 128-bit integer arithmetic instructions
30817         added in ISA 2.07.  Add both normal 'altivec' builtins, and the
30818         overloaded builtin.
30819         (VADDUQM): Likewise.
30820         (VSUBCUQ): Likewise.
30821         (VADDEUQM): Likewise.
30822         (VADDECUQ): Likewise.
30823         (VSUBEUQM): Likewise.
30824         (VSUBECUQ): Likewise.
30826         * config/rs6000/rs6000-c.c (__int128_type): New static to hold
30827         __int128_t and __uint128_t types.
30828         (__uint128_type): Likewise.
30829         (altivec_categorize_keyword): Add support for vector __int128_t,
30830         vector __uint128_t, vector __int128, and vector unsigned __int128
30831         as a container type for TImode operations that need to be done in
30832         VSX/Altivec registers.
30833         (rs6000_macro_to_expand): Likewise.
30834         (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
30835         to support 128-bit integer instructions vaddcuq, vadduqm,
30836         vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
30837         (altivec_resolve_overloaded_builtin): Add support for V1TImode.
30839         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
30840         for V1TImode, and set up preferences to use VSX/Altivec registers.
30841         Setup VSX reload handlers.
30842         (rs6000_debug_reg_global): Likewise.
30843         (rs6000_init_hard_regno_mode_ok): Likewise.
30844         (rs6000_preferred_simd_mode): Likewise.
30845         (vspltis_constant): Do not allow V1TImode as easy altivec constants.
30846         (easy_altivec_constant): Likewise.
30847         (output_vec_const_move): Likewise.
30848         (rs6000_expand_vector_set): Convert V1TImode set and extract to
30849         simple move.
30850         (rs6000_expand_vector_extract): Likewise.
30851         (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
30852         addressing.
30853         (rs6000_const_vec): Add support for V1TImode.
30854         (rs6000_emit_le_vsx_load): Swap double words when loading or
30855         storing TImode/V1TImode.
30856         (rs6000_emit_le_vsx_store): Likewise.
30857         (rs6000_emit_le_vsx_move): Likewise.
30858         (rs6000_emit_move): Add support for V1TImode.
30859         (altivec_expand_ld_builtin): Likewise.
30860         (altivec_expand_st_builtin): Likewise.
30861         (altivec_expand_vec_init_builtin): Likewise.
30862         (altivec_expand_builtin): Likewise.
30863         (rs6000_init_builtins): Add support for V1TImode type.  Add
30864         support for ISA 2.07 128-bit integer builtins.  Define type names
30865         for the VSX/Altivec vector types.
30866         (altivec_init_builtins): Add support for overloaded vector
30867         functions with V1TImode type.
30868         (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
30869         (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
30870         external function.
30871         (rs6000_split_128bit_ok_p): Likewise.
30872         (rs6000_handle_altivec_attribute): Create V1TImode from vector
30873         __int128_t and vector __uint128_t.
30875         * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
30876         and mode attributes.
30877         (VSX_M): Likewise.
30878         (VSX_M2): Likewise.
30879         (VSm): Likewise.
30880         (VSs): Likewise.
30881         (VSr): Likewise.
30882         (VSv): Likewise.
30883         (VS_scalar): Likewise.
30884         (VS_double): Likewise.
30885         (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
30887         * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
30888         we support the ISA 2.07 128-bit integer arithmetic instructions.
30889         (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
30890         (enum rs6000_builtin_type_index): Add fields to hold V1TImode
30891         and TImode types for use with the builtin functions.
30892         (V1TI_type_node): Likewise.
30893         (unsigned_V1TI_type_node): Likewise.
30894         (intTI_type_internal_node): Likewise.
30895         (uintTI_type_internal_node): Likewise.
30897         * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
30898         128-bit builtin functions.
30899         (UNSPEC_VADDEUQM): Likewise.
30900         (UNSPEC_VADDECUQ): Likewise.
30901         (UNSPEC_VSUBCUQ): Likewise.
30902         (UNSPEC_VSUBEUQM): Likewise.
30903         (UNSPEC_VSUBECUQ): Likewise.
30904         (VM): Add V1TImode to vector mode iterators.
30905         (VM2): Likewise.
30906         (VI_unit): Likewise.
30907         (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
30908         (altivec_vaddcuq): Likewise.
30909         (altivec_vsubuqm): Likewise.
30910         (altivec_vsubcuq): Likewise.
30911         (altivec_vaddeuqm): Likewise.
30912         (altivec_vaddecuq): Likewise.
30913         (altivec_vsubeuqm): Likewise.
30914         (altivec_vsubecuq): Likewise.
30916         * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
30917         mode iterators.
30918         (BOOL_128): Likewise.
30919         (BOOL_REGS_OUTPUT): Likewise.
30920         (BOOL_REGS_OP1): Likewise.
30921         (BOOL_REGS_OP2): Likewise.
30922         (BOOL_REGS_UNARY): Likewise.
30923         (BOOL_REGS_AND_CR0): Likewise.
30925         * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
30926         128-bit integer builtin support.
30927         (vec_vadduqm): Likewise.
30928         (vec_vaddecuq): Likewise.
30929         (vec_vaddeuqm): Likewise.
30930         (vec_vsubecuq): Likewise.
30931         (vec_vsubeuqm): Likewise.
30932         (vec_vsubcuq): Likewise.
30933         (vec_vsubuqm): Likewise.
30935         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
30936         Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
30937         vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
30938         128-bit integer add/subtract to ISA 2.07.
30940 2014-03-12  Joern Rennecke  <joern.rennecke@embecosm.com>
30942         * config/arc/arc.c (arc_predicate_delay_insns):
30943         Fix third argument passed to conditionalize_nonjump.
30945 2014-03-12  Yufeng Zhang  <yufeng.zhang@arm.com>
30947         * config/aarch64/aarch64-builtins.c
30948         (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
30949         BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
30950         * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
30951         instead of __builtin_lfloor.
30952         (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
30954 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
30956         * tree-ssa-ifcombine.c (forwarder_block_to): New function.
30957         (tree_ssa_ifcombine_bb_1): New function.
30958         (tree_ssa_ifcombine_bb): Use it.  Handle also cases where else_bb
30959         is an empty forwarder block to then_bb or vice versa and then_bb
30960         and else_bb are effectively swapped.
30962 2014-03-12  Christian Bruel  <christian.bruel@st.com>
30964         PR target/60264
30965         * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
30966         REG_CFA_DEF_CFA note.
30967         (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
30968         (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
30970 2014-03-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
30972         PR tree-optimization/60454
30973         * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
30975 2014-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30977         * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
30978         Do not define target_cpu_default2 to generic.
30979         * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
30980         * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
30981         * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
30983 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
30984             Marc Glisse  <marc.glisse@inria.fr>
30986         PR tree-optimization/60502
30987         * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
30988         instead of build_low_bits_mask.
30990 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
30992         PR middle-end/60482
30993         * tree-vrp.c (register_edge_assert_for_1): Don't add assert
30994         if there are multiple uses, but op doesn't live on E edge.
30995         * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
30996         clobber stmts before __builtin_unreachable.
30998 2014-03-11  Richard Sandiford  <rdsandiford@googlemail.com>
31000         * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
31001         hard_frame_pointer_rtx.
31002         * cse.c (cse_insn): Remove volatile check.
31003         * cselib.c (cselib_process_insn): Likewise.
31004         * dse.c (scan_insn): Likewise.
31006 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
31008         * config/arc/arc.c (conditionalize_nonjump): New function,
31009         broken out of ...
31010         (arc_ifcvt): ... this.
31011         (arc_predicate_delay_insns): Use it.
31013 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
31015         * config/arc/predicates.md (extend_operand): During/after reload,
31016         allow const_int_operand.
31017         * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
31018         (umulsidi3_700): Likewise.  Change operand 2 constraint back to "cL".
31019         (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
31020         to "i".
31021         (umulsi3_highpart_i): Likewise.
31023 2014-03-11  Richard Biener  <rguenther@suse.de>
31025         * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
31026         Add asserts to guard possible wrong-code bugs.
31028 2014-03-11  Richard Biener  <rguenther@suse.de>
31030         PR tree-optimization/60429
31031         PR tree-optimization/60485
31032         * tree-ssa-structalias.c (set_union_with_increment): Properly
31033         take into account all fields that overlap the shifted vars.
31034         (do_sd_constraint): Likewise.
31035         (do_ds_constraint): Likewise.
31036         (get_constraint_for_ptr_offset): Likewise.
31038 2014-03-11  Chung-Lin Tang  <cltang@codesourcery.com>
31040         * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
31041         (nios2_compute_frame_layout):
31042         Add calculation of cfun->machine->fp_save_offset.
31043         (nios2_expand_prologue): Correct setting of frame pointer register
31044         in prologue.
31045         (nios2_expand_epilogue): Update recovery of stack pointer from
31046         frame pointer accordingly.
31047         (nios2_initial_elimination_offset): Update calculation of offset
31048         for eliminating to HARD_FRAME_POINTER_REGNUM.
31050 2014-03-10  Jakub Jelinek  <jakub@redhat.com>
31052         PR ipa/60457
31053         * ipa.c (symtab_remove_unreachable_nodes): Don't call
31054         cgraph_get_create_node on VAR_DECLs.
31056 2014-03-10  Richard Biener  <rguenther@suse.de>
31058         PR middle-end/60474
31059         * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
31061 2014-03-08  Douglas B Rupp  <rupp@gnat.com>
31063         * config/vms/vms.opt (vms_float_format): New variable.
31065 2014-03-08  Tobias Burnus  <burnus@net-b.de>
31067         * doc/invoke.texi (-fcilkplus): Update implementation status.
31069 2014-03-08  Paulo Matos  <paulo@matos-sorge.com>
31070             Richard Biener  <rguenther@suse.de>
31072         * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
31073         consistently accross all TUs.
31074         (run_gcc): Enable -fshort-double automatically at link at link-time
31075         and disallow override.
31077 2014-03-08  Richard Sandiford  <rdsandiford@googlemail.com>
31079         PR target/58271
31080         * config/mips/mips.c (mips_option_override): Promote -mpaired-single
31081         warning to an error.  Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
31082         if they can't be used.
31084 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31086         * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
31087         for Solaris 11/x86 ld.
31088         * configure: Regenerate.
31090 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31092         * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
31093         (LIB_TLS_SPEC): Save as ld_tls_libs.
31094         (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
31095         (HAVE_AS_IX86_TLSLDM): New test.
31096         * configure, config.in: Regenerate.
31097         * config/i386/i386.c (legitimize_tls_address): Fall back to
31098         TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
31099         cannot support TLS_MODEL_LOCAL_DYNAMIC.
31100         * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
31101         instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
31103 2014-03-07  Paulo Matos  <paulo@matos-sorge.com>
31105         * common.opt (fira-loop-pressure): Mark as optimization.
31107 2014-03-07  Thomas Schwinge  <thomas@codesourcery.com>
31109         * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
31110         an OpenMP mappable type.
31112 2014-03-06  Matthias Klose  <doko@ubuntu.com>
31114         * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
31115         MULTILIB_OSDIRNAMES is not defined.
31117 2014-03-06  Jakub Jelinek  <jakub@redhat.com>
31118             Meador Inge  <meadori@codesourcery.com>
31120         PR target/58595
31121         * config/arm/arm.c (arm_tls_symbol_p): Remove.
31122         (arm_legitimize_address): Call legitimize_tls_address for any
31123         arm_tls_referenced_p expression, handle constant addend.  Call it
31124         before testing for !TARGET_ARM.
31125         (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
31127 2014-03-06  Richard Biener  <rguenther@suse.de>
31129         PR middle-end/60445
31130         PR lto/60424
31131         PR lto/60427
31132         Revert
31133         2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
31135         * tree-streamer.c (record_common_node): Assert we don't record
31136         nodes with type double.
31137         (preload_common_node): Skip type double, complex double and double
31138         pointer since it is now frontend dependent due to fshort-double option.
31140 2014-03-06  Richard Biener  <rguenther@suse.de>
31142         * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
31143         or -fno-lto is specified and the linker has full plugin support.
31144         * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
31145         (main): Remove -flto processing, adjust lto_mode using use_plugin late.
31146         * lto-wrapper.c (merge_and_complain): Merge compile-time
31147         optimization levels.
31148         (run_gcc): And pass it through to the link options.
31150 2014-03-06  Alexandre Oliva  <aoliva@redhat.com>
31152         PR debug/60381
31153         Revert:
31154         2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
31155         PR debug/59992
31156         * cselib.c (remove_useless_values): Skip to avoid quadratic
31157         behavior if the condition moved from...
31158         (cselib_process_insn): ... here holds.
31160 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
31162         PR plugins/59335
31163         * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
31164         ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
31166         PR plugins/59335
31167         * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
31168         (TM_H): Add x86-tune.def.
31170 2014-03-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31172         * config/aarch64/aarch64.c (generic_tunings):
31173         Use cortexa57_extra_costs.
31175 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
31177         PR lto/60404
31178         * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
31179         of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
31180         * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
31181         cost for in_lto_p.
31183 2014-03-04  Heiher  <r@hev.cc>
31185         * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
31186         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
31188 2014-03-04  Uros Bizjak  <ubizjak@gmail.com>
31190         * config/i386/predicates.md (const2356_operand): Change to ...
31191         (const2367_operand): ... this.
31192         * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
31193         const2367_operand.
31194         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
31195         (*avx512pf_scatterpf<mode>sf): Ditto.
31196         (avx512pf_scatterpf<mode>df): Ditto.
31197         (*avx512pf_scatterpf<mode>df_mask): Ditto.
31198         (*avx512pf_scatterpf<mode>df): Ditto.
31199         * config/i386/i386.c (ix86_expand_builtin): Update
31200         incorrect hint operand error message.
31202 2014-03-04  Richard Biener  <rguenther@suse.de>
31204         * lto-section-in.c (lto_get_section_data): Fix const cast.
31206 2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
31208         * tree-streamer.c (record_common_node): Assert we don't record
31209         nodes with type double.
31210         (preload_common_node): Skip type double, complex double and double
31211         pointer since it is now frontend dependent due to fshort-double option.
31213 2014-03-04  Richard Biener  <rguenther@suse.de>
31215         PR lto/60405
31216         * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
31217         (lto_input_toplevel_asms): Likewise.
31218         * lto-section-in.c (lto_get_section_data): Instead do it here
31219         for every section.
31221 2014-03-04  Richard Biener  <rguenther@suse.de>
31223         PR tree-optimization/60382
31224         * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
31225         dead PHIs a reduction.
31227 2014-03-03  Uros Bizjak  <ubizjak@gmail.com>
31229         * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
31230         hint value.
31231         (_mm_prefetch): Move out of GCC target("sse") pragma.
31232         * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
31233         GCC target("prfchw") pragma.
31234         * config/i386/i386.md (prefetch): Emit prefetchwt1 only
31235         for locality <= 2.
31236         * config/i386/i386.c (ix86_option_override_internal): Enable
31237         -mprfchw with -mprefetchwt1.
31239 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
31241         * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
31242         Mark as varying.
31244 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
31246         * opts.h (CL_PCH_IGNORE): Define.
31247         * targhooks.c (option_affects_pch_p):
31248         Return false for options that have CL_PCH_IGNORE set.
31249         * opt-functions.awk: Process PchIgnore.
31250         * doc/options.texi: Document PchIgnore.
31252         * config/arc/arc.opt (misize): Add PchIgnore property.
31254 2014-03-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31256         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
31257         reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
31258         constraint on constants to permit them being loaded into
31259         GENERAL_REGS or BASE_REGS.
31261 2014-03-03  Nick Clifton  <nickc@redhat.com>
31263         * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
31264         anti-cacnonical alternatives.
31265         (negandhi3_real): New pattern.
31266         * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
31268 2014-03-03  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
31270         * config/avr/avr-mcus.def: Remove atxmega16x1.
31271         * config/avr/avr-tables.opt: Regenerate.
31272         * config/avr/t-multilib: Regenerate.
31273         * doc/avr-mmcu.texi: Regenerate.
31275 2014-03-03  Tobias Grosser  <tobias@grosser.es>
31276             Mircea Namolaru  <mircea.namolaru@inria.fr>
31278         PR tree-optimization/58028
31279         * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
31280         scalar dimensions.
31282 2014-03-03  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
31284         * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
31285         not handled by recognizers.
31287 2014-03-03  Jakub Jelinek  <jakub@redhat.com>
31289         PR middle-end/60175
31290         * function.c (expand_function_end): Don't emit
31291         clobber_return_register sequence if clobber_after is a BARRIER.
31292         * cfgexpand.c (construct_exit_block): Append instructions before
31293         return_label to prev_bb.
31295 2014-03-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31297         * config/rs6000/constraints.md: Document reserved use of "wc".
31299 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
31301         PR ipa/60150
31302         * ipa.c (function_and_variable_visibility): When dissolving comdat
31303         group, also set all symbols to local.
31305 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
31307         PR ipa/60306
31309         Revert:
31310         2013-12-14  Jan Hubicka  <jh@suse.cz>
31311         PR middle-end/58477
31312         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
31314 2014-03-02  Jon Beniston  <jon@beniston.com>
31316         PR bootstrap/48230
31317         PR bootstrap/50927
31318         PR bootstrap/52466
31319         PR target/46898
31320         * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
31321         (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
31322         * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
31323         (simple_return, *simple_return): New patterns
31324         * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
31325         * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
31327 2014-03-01  Paolo Carlini  <paolo.carlini@oracle.com>
31329         * dwarf2out.c (gen_subprogram_die): Tidy.
31331 2014-03-01  Oleg Endo  <olegendo@gcc.gnu.org>
31333         PR target/60071
31334         * config/sh/sh.md (*mov_t_msb_neg): Split into ...
31335         (*mov_t_msb_neg_negc): ... this new insn.
31337 2014-02-28  Jason Merrill  <jason@redhat.com>
31339         PR c++/58678
31340         * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
31341         function.
31343 2014-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
31345         PR c++/60314
31346         * dwarf2out.c (decltype_auto_die): New static.
31347         (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
31348         (gen_type_die_with_usage): Handle 'decltype(auto)'.
31349         (is_cxx_auto): Likewise.
31351 2014-02-28  Ian Bolton  <ian.bolton@arm.com>
31353         * config/aarch64/aarch64.h: Define __ARM_NEON by default if
31354         we are not using general regs only.
31356 2014-02-28  Richard Biener  <rguenther@suse.de>
31358         PR target/60280
31359         * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
31360         previous fix and only allow to remove trivial pre-headers
31361         and latches.  Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
31362         (remove_forwarder_block): Properly update the latch of a loop.
31364 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
31366         PR debug/59992
31367         * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
31368         (cselib_preserved_hash_table): New.
31369         (preserve_constants_and_equivs): Move preserved vals to it.
31370         (cselib_find_slot): Look it up first.
31371         (cselib_init): Initialize it.
31372         (cselib_finish): Release it.
31373         (dump_cselib_table): Dump it.
31375 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
31377         PR debug/59992
31378         * cselib.c (remove_useless_values): Skip to avoid quadratic
31379         behavior if the condition moved from...
31380         (cselib_process_insn): ... here holds.
31382 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
31384         PR debug/57232
31385         * var-tracking.c (vt_initialize): Apply the same condition to
31386         preserve the CFA base value.
31388 2014-02-28  Joey Ye  <joey.ye@arm.com>
31390         PR target/PR60169
31391         * config/arm/arm.c (thumb_far_jump_used_p): Don't change
31392         if reload in progress or completed.
31394 2014-02-28  Tobias Burnus  <burnus@net-b.de>
31396         PR middle-end/60147
31397         * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
31398         NAMELIST_DECL.
31400 2014-02-27  H.J. Lu  <hongjiu.lu@intel.com>
31402         * doc/tm.texi.in (Condition Code Status): Update documention for
31403         relative locations of cc0-setter and cc0-user.
31405 2014-02-27  Jeff Law  <law@redhat.com>
31407         PR rtl-optimization/52714
31408         * combine.c (try_combine): When splitting an unrecognized PARALLEL
31409         into two independent simple sets, if I3 is a jump, ensure the
31410         pattern we place into I3 is a (set (pc) ...).
31412 2014-02-27  Mikael Pettersson  <mikpe@it.uu.se>
31413             Jeff Law  <law@redhat.com>
31415         PR rtl-optimization/49847
31416         * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
31417         are in different blocks.
31418         * doc/tm.texi (Condition Code Status): Update documention for
31419         relative locations of cc0-setter and cc0-user.
31421 2014-02-27  Vladimir Makarov  <vmakarov@redhat.com>
31423         PR target/59222
31424         * lra.c (lra_emit_add): Check SUBREG too.
31426 2014-02-27  Andreas Schwab  <schwab@suse.de>
31428         * config/m68k/m68k.c (m68k_option_override): Disable
31429         -flive-range-shrinkage for classic m68k.
31430         (m68k_override_options_after_change): Likewise.
31432 2014-02-27  Marek Polacek  <polacek@redhat.com>
31434         PR middle-end/59223
31435         * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
31436         -Wmaybe-uninitialized.
31438 2014-02-27  Alan Modra  <amodra@gmail.com>
31440         PR target/57936
31441         * reload1.c (emit_input_reload_insns): When reload_override_in,
31442         set old to rl->in_reg when rl->in_reg is a subreg.
31444 2014-02-26  Richard Biener  <rguenther@suse.de>
31446         PR bootstrap/60343
31447         * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
31449 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
31451         * common/config/i386/predicates.md (const1256_operand): Remove.
31452         (const2356_operand): New.
31453         (const_1_to_2_operand): Remove.
31454         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
31455         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
31456         (*avx512pf_gatherpf<mode>sf): Ditto.
31457         (avx512pf_gatherpf<mode>df): Ditto.
31458         (*avx512pf_gatherpf<mode>df_mask): Ditto.
31459         (*avx512pf_gatherpf<mode>df): Ditto.
31460         (avx512pf_scatterpf<mode>sf): Ditto.
31461         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
31462         (*avx512pf_scatterpf<mode>sf): Ditto.
31463         (avx512pf_scatterpf<mode>df): Ditto.
31464         (*avx512pf_scatterpf<mode>df_mask): Ditto.
31465         (*avx512pf_scatterpf<mode>df): Ditto.
31466         * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
31468 2014-02-26  Ilya Tocar  <ilya.tocar@intel.com>
31470         * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
31471         (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
31472         (_mm512_mask_testn_epi64_mask): Move to ...
31473         * config/i386/avx512cdintrin.h: Here.
31474         * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
31475         * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
31476         (avx512f_scalef<mode><mask_name><round_name>): Ditto.
31477         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
31478         TARGET_AVX512F from TARGET_AVX512CD.
31480 2014-02-26  Richard Biener  <rguenther@suse.de>
31482         PR ipa/60327
31483         * ipa.c (walk_polymorphic_call_targets): Properly guard
31484         call to inline_update_overall_summary.
31486 2014-02-26  Bin Cheng  <bin.cheng@arm.com>
31488         PR target/60280
31489         * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
31490         and latches only if requested.  Fix latch if it is removed.
31491         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
31492         LOOPS_HAVE_PREHEADERS.
31494 2014-02-25  Andrew Pinski  <apinski@cavium.com>
31496         * builtins.c (expand_builtin_thread_pointer): Create a new target
31497         when the target is NULL.
31499 2014-02-25  Vladimir Makarov  <vmakarov@redhat.com>
31501         PR rtl-optimization/60317
31502         * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
31503         * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
31504         * lra-assigns.c: Include params.h.
31505         (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
31506         other reload pseudos considerations.
31508 2014-02-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31510         * config/rs6000/vector.md (*vector_unordered<mode>): Change split
31511         to use canonical form for nor<mode>3.
31513 2014-02-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31515         PR target/55426
31516         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
31517         conversions.
31519 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
31521         * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
31522         (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
31523         (ix86_handle_option): Handle OPT_mprefetchwt1.
31524         * config/i386/cpuid.h (bit_PREFETCHWT1): New.
31525         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
31526         PREFETCHWT1 CPUID.
31527         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
31528         OPTION_MASK_ISA_PREFETCHWT1.
31529         * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
31530         (PTA_PREFETCHWT1): New.
31531         (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
31532         (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
31533         * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
31534         * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
31535         (*prefetch_avx512pf_<mode>_: Change into ...
31536         (*prefetch_prefetchwt1_<mode>: This.
31537         * config/i386/i386.opt (mprefetchwt1): New.
31538         * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
31539         (_mm_prefetch): Handle intent to write.
31540         * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
31542 2014-02-25  Richard Biener  <rguenther@suse.de>
31544         PR middle-end/60291
31545         * emit-rtl.c (mem_attrs_htab): Remove.
31546         (mem_attrs_htab_hash): Likewise.
31547         (mem_attrs_htab_eq): Likewise.
31548         (set_mem_attrs): Always allocate new mem-attrs when something changed.
31549         (init_emit_once): Do not allocate mem_attrs_htab.
31551 2014-02-25  Richard Biener  <rguenther@suse.de>
31553         PR lto/60319
31554         * lto-opts.c (lto_write_options): Output non-explicit conservative
31555         -fwrapv, -fno-trapv and -fno-strict-overflow.
31556         * lto-wrapper.c (merge_and_complain): Handle merging those options.
31557         (run_gcc): And pass them through.
31559 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
31561         * sel-sched.c (calculate_new_fences): New parameter ptime.
31562         Calculate it as a maximum over all fence cycles.
31563         (sel_sched_region_2): Adjust the call to calculate_new_fences.
31564         Print the final schedule timing when sched_verbose.
31566 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
31568         PR rtl-optimization/60292
31569         * sel-sched.c (fill_vec_av_set): Do not reset target availability
31570         bit fot the fence instruction.
31572 2014-02-24  Alangi Derick  <alangiderick@gmail.com>
31574         * calls.h: Fix typo in comment.
31576 2014-02-24  John David Anglin  <danglin@gcc.gnu.org>
31578         * config/pa/pa.c (pa_output_move_double): Don't valididate when
31579         adjusting offsetable addresses.
31581 2014-02-24  Guozhi Wei  <carrot@google.com>
31583         * sparseset.h (sparseset_pop): Fix the wrong index.
31585 2014-02-24  Walter Lee  <walt@tilera.com>
31587         * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
31588         (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
31589         triplet.
31590         * common/config/tilegx/tilegx-common.c
31591         (TARGET_DEFAULT_TARGET_FLAGS): Define.
31592         * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
31593         (LINK_SPEC): Ditto.
31594         * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
31595         * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
31596         (tilegx_gimplify_va_arg_expr): Handle big endian.
31597         (tilegx_expand_unaligned_load): Ditto.
31598         (tilegx_expand_unaligned_store): Ditto.
31599         (TARGET_RETURN_IN_MSB): New.
31600         * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
31601         (TARGET_ENDIAN_DEFAULT): New.
31602         (TARGET_BIG_ENDIAN): Handle big endian.
31603         (BYTES_BIG_ENDIAN): Ditto.
31604         (WORDS_BIG_ENDIAN): Ditto.
31605         (FLOAT_WORDS_BIG_ENDIAN): Ditto.
31606         (ENDIAN_SPEC): New.
31607         (EXTRA_SPECS): New.
31608         * config/tilegx/tilegx.md (extv): Handle big endian.
31609         (extzv): Ditto.
31610         (insn_st<n>): Ditto.
31611         (insn_st<n>_add<bitsuffix>): Ditto.
31612         (insn_stnt<n>): Ditto.
31613         (insn_stnt<n>_add<bitsuffix>):Ditto.
31614         (vec_interleave_highv8qi): Handle big endian.
31615         (vec_interleave_highv8qi_be): New.
31616         (vec_interleave_highv8qi_le): New.
31617         (insn_v1int_h): Handle big endian.
31618         (vec_interleave_lowv8qi): Handle big endian.
31619         (vec_interleave_lowv8qi_be): New.
31620         (vec_interleave_lowv8qi_le): New.
31621         (insn_v1int_l): Handle big endian.
31622         (vec_interleave_highv4hi): Handle big endian.
31623         (vec_interleave_highv4hi_be): New.
31624         (vec_interleave_highv4hi_le): New.
31625         (insn_v2int_h): Handle big endian.
31626         (vec_interleave_lowv4hi): Handle big endian.
31627         (vec_interleave_lowv4hi_be): New.
31628         (vec_interleave_lowv4hi_le): New.
31629         (insn_v2int_l): Handle big endian.
31630         (vec_interleave_highv2si): Handle big endian.
31631         (vec_interleave_highv2si_be): New.
31632         (vec_interleave_highv2si_le): New.
31633         (insn_v4int_h): Handle big endian.
31634         (vec_interleave_lowv2si): Handle big endian.
31635         (vec_interleave_lowv2si_be): New.
31636         (vec_interleave_lowv2si_le): New.
31637         (insn_v4int_l): Handle big endian.
31638         * config/tilegx/tilegx.opt (mbig-endian): New option.
31639         (mlittle-endian): New option.
31640         * doc/install.texi: Document tilegxbe-linux.
31641         * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
31643 2014-02-24  Martin Jambor  <mjambor@suse.cz>
31645         PR ipa/60266
31646         * ipa-cp.c (propagate_constants_accross_call): Bail out early if
31647         there are no parameter descriptors.
31649 2014-02-24  Andrey Belevantsev  <abel@ispras.ru>
31651         PR rtl-optimization/60268
31652         * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
31653         initialization to ...
31654         (sched_rgn_init): ... here.
31655         (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
31657 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
31659         * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
31660         names.
31662 2014-02-23  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
31664         * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
31665         definition.
31667 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
31669         * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
31670         define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
31672 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
31674         * config/microblaze/predicates.md: Add cmp_op predicate.
31675         * config/microblaze/microblaze.md: Add branch_compare instruction
31676         which uses cmp_op predicate and emits cmp insn before branch.
31677         * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
31678         to microblaze_expand_conditional_branch and consolidate logic.
31679         (microblaze_expand_conditional_branch): emit branch_compare
31680         insn instead of handling cmp op separate from branch insn.
31682 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31684         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
31685         to permit subregs.
31687 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31689         * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
31690         define_insn with define_expand and new define_insn
31691         *altivec_lve<VI_char>x_internal.
31692         (altivec_stve<VI_char>x): Replace define_insn with define_expand
31693         and new define_insn *altivec_stve<VI_char>x_internal.
31694         * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
31695         prototype.
31696         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
31697         lve*x built-ins.
31698         (altivec_expand_stvex_be): New function.
31700 2014-02-22  Joern Rennecke  <joern.rennecke@embecosm.com>
31702         * config/avr/avr.c (avr_can_eliminate): Allow elimination from
31703         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
31704         * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
31705         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
31707 2014-02-21  Vladimir Makarov  <vmakarov@redhat.com>
31709         PR target/60298
31710         * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
31711         instead of emit_move_insn.
31713 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31715         * config/rs6000/altivec.md (altivec_vsumsws): Replace second
31716         vspltw with vsldoi.
31717         (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
31718         gen_altivec_vsumsws.
31720 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31722         * config/rs6000/altivec.md (altivec_lvxl): Rename as
31723         *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
31724         (altivec_lvxl_<mode>): New define_expand incorporating
31725         -maltivec=be semantics where needed.
31726         (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
31727         (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
31728         semantics where needed.
31729         (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
31730         (altivec_stvx_<mode>): New define_expand incorporating
31731         -maltivec=be semantics where needed.
31732         (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
31733         VM2 iterator instead of V4SI.
31734         (altivec_stvxl_<mode>): New define_expand incorporating
31735         -maltivec=be semantics where needed.
31736         * config/rs6000/rs6000-builtin.def: Add new built-in definitions
31737         LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
31738         LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
31739         STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
31740         STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
31741         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
31742         ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
31743         similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
31744         ALTIVEC_BUILTIN_STVXL.
31745         * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
31746         (altivec_expand_stvx_be): Likewise.
31747         * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
31748         (altivec_expand_lvx_be): Likewise.
31749         (altivec_expand_stvx_be): Likewise.
31750         (altivec_expand_builtin): Add cases for
31751         ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
31752         ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
31753         (altivec_init_builtins): Add definitions for
31754         __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
31755         __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
31757 2014-02-21  Catherine Moore  <clm@codesourcery.com>
31759         * doc/invoke.texi (mvirt, mno-virt): Document.
31760         * config/mips/mips.opt (mvirt): New option.
31761         * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
31763 2014-02-21  Richard Biener  <rguenther@suse.de>
31765         PR tree-optimization/60276
31766         * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
31767         (STMT_VINFO_MIN_NEG_DIST): New macro.
31768         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
31769         STMT_VINFO_MIN_NEG_DIST.
31770         * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
31771         made for negative dependence distances still hold.
31773 2014-02-21  Richard Biener  <rguenther@suse.de>
31775         PR middle-end/60291
31776         * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
31777         DECL_INITIAL for globals not in the current function context.
31779 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
31781         PR tree-optimization/56490
31782         * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
31783         * tree-ssa-uninit.c: Include params.h.
31784         (compute_control_dep_chain): Add num_calls argument, return false
31785         if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
31786         num_calls to recursive call.
31787         (find_predicates): Change dep_chain into normal array,
31788         cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
31789         variable and adjust compute_control_dep_chain caller.
31790         (find_def_preds): Likewise.
31792 2014-02-21  Thomas Schwinge  <thomas@codesourcery.com>
31794         * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
31795         <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
31797 2014-02-21  Nick Clifton  <nickc@redhat.com>
31799         * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
31800         (pushhi1): Likewise.
31801         (popqi1): Add mode to pre_dec.
31802         (pophi1): Likewise.
31804 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
31806         * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
31807         mode for mask of V8SFmode permutation.
31809 2014-02-20  Richard Henderson  <rth@redhat.com>
31811         PR c++/60272
31812         * builtins.c (expand_builtin_atomic_compare_exchange): Always make
31813         a new pseudo for OLDVAL.
31815 2014-02-20  Jakub Jelinek  <jakub@redhat.com>
31817         PR target/57896
31818         * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
31819         gen_reg_rtx if d->testing_p.
31820         (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
31821         if d->testing_p and we will certainly return true.
31822         (expand_vec_perm_even_odd_1): Likewise.  Don't call gen_reg_rtx
31823         if d->testing_p.
31825 2014-02-20  Uros Bizjak  <ubizjak@gmail.com>
31827         * emit-rtl.c (gen_reg_rtx): Assert that
31828         crtl->emit.regno_pointer_align_length is non-zero.
31830 2014-02-20  Richard Henderson  <rth@redhat.com>
31832         PR c++/60272
31833         * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
31834         on failure the store back into EXPECT.
31836 2014-02-20  Chung-Lin Tang  <cltang@codesourcery.com>
31837             Sandra Loosemore  <sandra@codesourcery.com>
31839         * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
31840         * config/nios2/nios2.c (nios2_function_profiler): Add
31841         -fPIC (flag_pic == 2) support.
31842         (nios2_handle_custom_fpu_cfg): Fix warning parameter.
31843         (nios2_large_offset_p): New function.
31844         (nios2_unspec_reloc_p): Move up position, update to use
31845         nios2_large_offset_p.
31846         (nios2_unspec_address): Remove function.
31847         (nios2_unspec_offset): New function.
31848         (nios2_large_got_address): New function.
31849         (nios2_got_address): Add large offset support.
31850         (nios2_legitimize_tls_address): Update usage of removed and new
31851         functions.
31852         (nios2_symbol_binds_local_p): New function.
31853         (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
31854         (nios2_legitimize_address): Update to use nios2_large_offset_p.
31855         (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
31856         (nios2_print_operand): Merge H/L processing, add hiadj/lo
31857         processing for (const (unspec ...)).
31858         (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
31860 2014-02-20  Richard Biener  <rguenther@suse.de>
31862         * tree-cfg.c (replace_uses_by): Mark altered BBs before
31863         doing the substitution.
31864         (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
31866 2014-02-20  Martin Jambor  <mjambor@suse.cz>
31868         PR ipa/55260
31869         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
31870         info when checking whether lattices are bottom.
31872 2014-02-20  Richard Biener  <rguenther@suse.de>
31874         PR middle-end/60221
31875         * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
31876         regions at -O0.
31878 2014-02-20  Jan Hubicka  <hubicka@ucw.cz>
31880         PR ipa/58555
31881         * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
31882         parameter specifying the scaling.
31883         (inline_call): Update.
31884         (want_inline_recursively): Guard division by zero.
31885         (recursive_inlining): Update.
31886         * ipa-inline.h (clone_inlined_nodes): Update.
31888 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
31890         PR target/60204
31891         * config/i386/i386.c (classify_argument): Pass structures of size
31892         64 bytes or less in register.
31894 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
31895             Kirill Yukhin  <kirill.yukhin@intel.com>
31897         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
31898         (_mm_rcp28_round_ss): Ditto.
31899         (_mm_rsqrt28_round_sd): Ditto.
31900         (_mm_rsqrt28_round_ss): Ditto.
31901         * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
31902         (_mm_rcp14_round_ss): Ditto.
31903         (_mm_rsqrt14_round_sd): Ditto.
31904         (_mm_rsqrt14_round_ss): Ditto.
31905         * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
31906         the first input operand, get rid of match_dup.
31907         (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
31908         attribute to sse.
31909         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
31910         Ditto.
31911         (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
31912         operand as the first input operand, set type attribute.
31913         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
31914         Set type attribute.
31915         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
31916         operand as the first input operand, set type attribute.
31918 2014-02-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31920         * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
31921         bit of zero.
31923 2014-02-19  H.J. Lu  <hongjiu.lu@intel.com>
31925         PR target/60207
31926         * config/i386/i386.c (construct_container): Remove TFmode check
31927         for X86_64_INTEGER_CLASS.
31929 2014-02-19  Uros Bizjak  <ubizjak@gmail.com>
31931         PR target/59794
31932         * config/i386/i386.c (type_natural_mode): Warn for ABI changes
31933         only when -Wpsabi is enabled.
31935 2014-02-19  Michael Hudson-Doyle  <michael.hudson@linaro.org>
31937         PR target/59799
31938         * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
31939         passing arrays in registers are the same as for structs, so remove the
31940         special case for them.
31942 2014-02-19  Eric Botcazou  <ebotcazou@adacore.com>
31944         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
31945         destination type, extract only the valid bits if the source type is not
31946         integral and has a different mode.
31948 2014-02-19  Richard Biener  <rguenther@suse.de>
31950         PR ipa/60243
31951         * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
31952         for all calls.
31954 2014-02-19  Richard Biener  <rguenther@suse.de>
31956         PR ipa/60243
31957         * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
31958         (ipa_modify_call_arguments): Emit an argument load explicitely and
31959         preserve virtual SSA form there and for the replacement call.
31960         Do not update SSA form nor free dominance info.
31962 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
31964         * ipa.c (function_and_variable_visibility): Also clear WEAK
31965         flag when disolving COMDAT_GROUP.
31967 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
31969         * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
31970         * ipa-prop.c (ipa_set_jf_known_type): Return early when
31971         not devirtualizing.
31972         (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
31973         do more sanity checks.
31974         (detect_type_change): Return true when giving up early.
31975         (compute_complex_assign_jump_func): Fix type parameter of
31976         ipa_set_ancestor_jf.
31977         (compute_complex_ancestor_jump_func): Likewise.
31978         (update_jump_functions_after_inlining): Fix updating of
31979         ancestor function.
31980         * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
31982 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
31984         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
31985         inline clones when edge disappears.
31987 2014-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
31989         PR target/60203
31990         * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
31991         Split 64-bit moves into 2 patterns.  Do not allow the use of
31992         direct move for TDmode in little endian, since the decimal value
31993         has little endian bytes within a word, but the 64-bit pieces are
31994         ordered in a big endian fashion, and normal subreg's of TDmode are
31995         not allowed.
31996         (mov<mode>_64bit_dm): Likewise.
31997         (movtd_64bit_nodm): Likewise.
31999 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
32001         PR tree-optimization/60174
32002         * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
32003         statement of an SSA_NAME that occurs in an abnormal PHI node.
32005 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
32007         PR sanitizer/60142
32008         * final.c (SEEN_BB): Remove.
32009         (SEEN_NOTE, SEEN_EMITTED): Renumber.
32010         (final_scan_insn): Don't force_source_line on second
32011         NOTE_INSN_BASIC_BLOCK.
32013 2014-02-18  Uros Bizjak  <ubizjak@gmail.com>
32015         PR target/60205
32016         * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
32017         * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
32018         (type_natural_mode): Warn ABI change when %zmm register is not
32019         available for AVX512F vector value passing.
32021 2014-02-18  Kai Tietz  <ktietz@redhat.com>
32023         PR target/60193
32024         * config/i386/i386.c (ix86_expand_prologue): Use value in
32025         rax register as displacement when restoring %r10 or %rax.
32026         Fix wrong offset when restoring both registers.
32028 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
32030         * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
32031         assertion with conditional return.
32033 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
32034             Uros Bizjak  <ubizjak@gmail.com>
32036         PR driver/60233
32037         * config/i386/driver-i386.c (host_detect_local_cpu): If
32038         YMM state is not saved by the OS, also clear has_f16c.  Move
32039         CPUID 0x80000001 handling before YMM state saving checking.
32041 2014-02-18  Andrey Belevantsev  <abel@ispras.ru>
32043         PR rtl-optimization/58960
32044         * haifa-sched.c (alloc_global_sched_pressure_data): New,
32045         factored out from ...
32046         (sched_init): ... here.
32047         (free_global_sched_pressure_data): New, factored out from ...
32048         (sched_finish): ... here.
32049         * sched-int.h (free_global_sched_pressure_data): Declare.
32050         * sched-rgn.c (nr_regions_initial): New static global.
32051         (haifa_find_rgns): Initialize it.
32052         (schedule_region): Disable sched-pressure for the newly
32053         generated regions.
32055 2014-02-17  Richard Biener  <rguenther@suse.de>
32057         * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
32058         release SSA defs of pattern stmts.
32060 2014-02-17  Richard Biener  <rguenther@suse.de>
32062         * tree-inline.c (expand_call_inline): Release the virtual
32063         operand defined by the call we are about to inline.
32065 2014-02-17  Richard Biener  <rguenther@suse.de>
32067         * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
32069 2014-02-17  Kirill Yukhin  <kirill.yukhin@intel.com>
32070             Ilya Tocar  <ilya.tocar@intel.com>
32072         * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
32073         arguments order in builtin.
32074         (_mm512_permutexvar_epi64): Ditto.
32075         (_mm512_mask_permutexvar_epi64): Ditto
32076         (_mm512_maskz_permutexvar_epi32): Ditto
32077         (_mm512_permutexvar_epi32): Ditto
32078         (_mm512_mask_permutexvar_epi32): Ditto
32080 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32082         * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
32083         (p8_vmrgow): Likewise.
32085 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32087         * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
32088         endian targets.
32090 2014-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
32092         PR target/60203
32093         * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
32094         (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
32095         into 64-bit and 32-bit moves.  On 64-bit moves, add support for
32096         using direct move instructions on ISA 2.07.  Also adjust
32097         instruction length for 64-bit.
32098         (mov<mode>_64bit, TFmode/TDmode): Likewise.
32099         (mov<mode>_32bit, TFmode/TDmode): Likewise.
32101 2014-02-15  Alan Modra  <amodra@gmail.com>
32103         PR target/58675
32104         PR target/57935
32105         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
32106         find_replacement on parts of insn rtl that might be reloaded.
32108 2014-02-15  Richard Biener  <rguenther@suse.de>
32110         PR tree-optimization/60183
32111         * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
32112         (tree_ssa_phiprop): Calculate and free post-dominators.
32114 2014-02-14  Jeff Law  <law@redhat.com>
32116         PR rtl-optimization/60131
32117         * ree.c (get_extended_src_reg): New function.
32118         (combine_reaching_defs): Use it rather than assuming location of REG.
32119         (find_and_remove_re): Verify first operand of extension is
32120         a REG before adding the insns to the copy list.
32122 2014-02-14  Roland McGrath  <mcgrathr@google.com>
32124         * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
32125         * configure: Regenerated.
32126         * config.in: Regenerated.
32127         * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
32128         instead of ASM_SHORT.
32130 2014-02-14  Vladimir Makarov  <vmakarov@redhat.com>
32131             Richard Earnshaw  <rearnsha@arm.com>
32133         PR rtl-optimization/59535
32134         * lra-constraints.c (process_alt_operands): Encourage alternative
32135         when unassigned pseudo class is superset of the alternative class.
32136         (inherit_reload_reg): Don't inherit when optimizing for code size.
32137         * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
32138         returning CORE_REGS for anything but Thumb1 and BASE_REGS for
32139         modes not less than 4 for Thumb1.
32141 2014-02-14  Kyle McMartin  <kyle@redhat.com>
32143         PR pch/60010
32144         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
32146 2014-02-14  Richard Biener  <rguenther@suse.de>
32148         * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
32149         (get_frame_arg): Drop the assert with langhook types_compatible_p.
32150         Do not strip INDIRECT_REFs.
32152 2014-02-14  Richard Biener  <rguenther@suse.de>
32154         PR lto/60179
32155         * lto-streamer-out.c (DFS_write_tree_body): Do not follow
32156         DECL_FUNCTION_SPECIFIC_TARGET.
32157         (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
32158         * tree-streamer-out.c (pack_ts_target_option): Remove.
32159         (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
32160         (write_ts_function_decl_tree_pointers): Do not stream
32161         DECL_FUNCTION_SPECIFIC_TARGET.
32162         * tree-streamer-in.c (unpack_ts_target_option): Remove.
32163         (unpack_value_fields): Do not stream TS_TARGET_OPTION.
32164         (lto_input_ts_function_decl_tree_pointers): Do not stream
32165         DECL_FUNCTION_SPECIFIC_TARGET.
32167 2014-02-14  Jakub Jelinek  <jakub@redhat.com>
32169         * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
32170         (get_initial_def_for_induction, vectorizable_induction): Ignore
32171         debug stmts when looking for exit_phi.
32172         (vectorizable_live_operation): Fix up condition.
32174 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
32176         * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
32177         nreverse() because it changes the content of original tree list.
32179 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
32181         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
32182         * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
32184 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
32186         * config/nds32/nds32.c (nds32_naked_function_p): Follow the
32187         GNU coding standards.
32189 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
32191         PR debug/60152
32192         * dwarf2out.c (gen_subprogram_die): Don't call
32193         add_calling_convention_attribute if subr_die is old_die.
32195 2014-02-13  Sharad Singhai  <singhai@google.com>
32197         * doc/optinfo.texi: Fix order of nodes.
32199 2014-02-13  Uros Bizjak  <ubizjak@gmail.com>
32201         * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
32202         operands[2], not operands[3].
32204 2014-02-13  Richard Biener  <rguenther@suse.de>
32206         PR bootstrap/59878
32207         * doc/install.texi (ISL): Update recommended version to 0.12.2,
32208         mention the possibility of an in-tree build.
32209         (CLooG): Update recommended version to 0.18.1, mention the
32210         possibility of an in-tree build and clarify that the ISL
32211         bundled with CLooG does not work.
32213 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
32215         PR target/43546
32216         * expr.c (compress_float_constant): If x is a hard register,
32217         extend into a pseudo and then move to x.
32219 2014-02-13  Dominik Vogt  <vogt@linux.vnet.ibm.com>
32221         * config/s390/s390.c (s390_asm_output_function_label): Fix crash
32222         caused by bad second argument to warning_at() with -mhotpatch and
32223         nested functions (e.g. with gfortran).
32225 2014-02-13  Richard Sandiford  <rdsandiford@googlemail.com>
32227         * opts.c (option_name): Remove "enabled by default" rider.
32229 2014-02-12  John David Anglin  <danglin@gcc.gnu.org>
32231         * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
32233 2014-02-12  H.J. Lu  <hongjiu.lu@intel.com>
32234             Uros Bizjak  <ubizjak@gmail.com>
32236         PR target/60151
32237         * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
32238         * configure: Regenerated.
32240 2014-02-12  Richard Biener  <rguenther@suse.de>
32242         * vec.c (vec_prefix::calculate_allocation): Move as
32243         inline variant to vec.h.
32244         (vec_prefix::calculate_allocation_1): New out-of-line version.
32245         * vec.h (vec_prefix::calculate_allocation_1): Declare.
32246         (vec_prefix::m_has_auto_buf): Rename to ...
32247         (vec_prefix::m_using_auto_storage): ... this.
32248         (vec_prefix::calculate_allocation): Inline the easy cases
32249         and dispatch to calculate_allocation_1 which doesn't need the
32250         prefix address.
32251         (va_heap::reserve): Use gcc_checking_assert.
32252         (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
32253         m_using_auto_storage.
32254         (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
32255         member and adjust.
32256         (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
32257         (vec<T, va_heap, vl_ptr>::release): Avoid casting.
32258         (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
32260 2014-02-12  Richard Biener  <rguenther@suse.de>
32262         * gcse.c (compute_transp): break from loop over canon_modify_mem_list
32263         when we found a dependence.
32265 2014-02-12  Thomas Schwinge  <thomas@codesourcery.com>
32267         * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
32268         common code...
32269         (maybe_fold_stmt): ... into this new function.
32270         * omp-low.c (lower_omp): Update comment.
32272         * omp-low.c (lower_omp_target): Add clobber for sizes array, after
32273         last use.
32275         * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
32276         dereference.
32278 2014-02-12  James Greenhalgh  <james.greenhalgh@arm.com>
32280         * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
32281         identifiers in comments.
32282         (cortexa53_extra_costs): Likewise.
32283         * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
32284         (cortexa7_extra_costs): Likewise.
32285         (cortexa12_extra_costs): Likewise.
32286         (cortexa15_extra_costs): Likewise.
32287         (v7m_extra_costs): Likewise.
32289 2014-02-12  Richard Biener  <rguenther@suse.de>
32291         PR middle-end/60092
32292         * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
32293         of posix_memalign being successful.
32294         (lower_stmt): Restrict lowering of posix_memalign to when
32295         -ftree-bit-ccp is enabled.
32297 2014-02-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
32299         * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
32300         arg_loc.
32301         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
32303 2014-02-12  Eric Botcazou  <ebotcazou@adacore.com>
32305         PR rtl-optimization/60116
32306         * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
32307         other_insn once the combination has been validated.
32309 2014-02-11  Jan Hubicka  <hubicka@ucw.cz>
32311         PR lto/59468
32312         * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
32313         and wrapper.
32314         * ipa-devirt.c: Include demangle.h
32315         (odr_violation_reported): New static variable.
32316         (add_type_duplicate): Update odr_violations.
32317         (maybe_record_node): Add completep parameter; update it.
32318         (record_target_from_binfo): Add COMPLETEP parameter;
32319         update it as needed.
32320         (possible_polymorphic_call_targets_1): Likewise.
32321         (struct polymorphic_call_target_d): Add nonconstruction_targets;
32322         rename FINAL to COMPLETE.
32323         (record_targets_from_bases): Sanity check we found the binfo;
32324         fix COMPLETEP updating.
32325         (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
32326         parameter, fix computing of COMPLETEP.
32327         (dump_possible_polymorphic_call_targets): Imrove readability of dump;
32328         at LTO time do demangling.
32329         (ipa_devirt): Use nonconstruction_targets; Improve dumps.
32330         * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
32331         parameter.
32332         (gimple_get_virt_method_for_binfo): Likewise.
32333         * gimple-fold.h (gimple_get_virt_method_for_binfo,
32334         gimple_get_virt_method_for_vtable): Update prototypes.
32336 2014-02-11  Vladimir Makarov  <vmakarov@redhat.com>
32338         PR target/49008
32339         * genautomata.c (add_presence_absence): Fix typo with
32340         {final_}presence_list.
32342 2014-02-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
32344         PR target/60137
32345         * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
32346         for VSX/Altivec vectors that land in GPR registers.
32348 2014-02-11  Richard Henderson  <rth@redhat.com>
32349             Jakub Jelinek  <jakub@redhat.com>
32351         PR debug/59776
32352         * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
32353         around drhs if type conversion to lacc->type is not useless.
32355 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32357         * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
32358         tuning struct.
32359         (cortex-a57.cortex-a53): Likewise.
32360         * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
32362 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32364         * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
32365         arm_restrict_it.
32367 2014-02-11  Renlin Li  <Renlin.Li@arm.com>
32369         * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
32370         add_options_for_arm_vfp3.
32372 2014-02-11  Jeff Law  <law@redhat.com>
32374         PR middle-end/54041
32375         * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
32376         object with an undesirable mode.
32378 2014-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32380         PR libgomp/60107
32381         * config/i386/sol2-9.h: New file.
32382         * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
32383         *-*-solaris2.9*): Use it.
32385 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
32387         * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
32388         * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
32390 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
32392         * config/microblaze/microblaze.c: Extend mcpu version format
32394 2014-02-10  David Holsgrove  <david.holsgrove@xilinx.com>
32396         * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
32398 2014-02-10  Richard Henderson  <rth@redhat.com>
32400         PR target/59927
32401         * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
32402         * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
32403         ms-abi vs -mno-accumulate-outgoing-args.
32404         (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
32405         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
32406         respect to ms-abi.
32408 2014-02-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
32410         PR middle-end/60080
32411         * cfgexpand.c (expand_asm_operands): Attach source location to
32412         ASM_INPUT rtx objects.
32413         * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
32415 2014-02-10  Nick Clifton  <nickc@redhat.com>
32417         * config/mn10300/mn10300.c (popcount): New function.
32418         (mn10300_expand_prologue): Include saved registers in stack usage
32419         count.
32421 2014-02-10  Jeff Law  <law@redhat.com>
32423         PR middle-end/52306
32424         * reload1.c (emit_input_reload_insns): Do not create invalid RTL
32425         when changing the SET_DEST of a prior insn to avoid an input reload.
32427 2014-02-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
32429         * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
32430         big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
32431         -mcall-openbsd, or -mcall-linux.
32432         (CC1_ENDIAN_BIG_SPEC): Remove.
32433         (CC1_ENDIAN_LITTLE_SPEC): Remove.
32434         (CC1_ENDIAN_DEFAULT_SPEC): Remove.
32435         (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
32436         (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
32437         and %cc1_endian_default.
32438         * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
32440 2014-02-10  Richard Biener  <rguenther@suse.de>
32442         PR tree-optimization/60115
32443         * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
32444         MEM_REF handling.  Properly verify that the accesses are not
32445         out of the objects bound.
32447 2014-02-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32449         * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
32450         coretex to cortex.
32452 2014-02-10  Eric Botcazou  <ebotcazou@adacore.com>
32454         * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
32455         proper constants and fix formatting.
32456         (possible_polymorphic_call_targets): Fix formatting.
32458 2014-02-10  Kirill Yukhin  <kirill.yukhin@intel.com>
32459             Ilya Tocar  <ilya.tocar@intel.com>
32461         * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
32462         (_mm512_loadu_epi32): Renamed into...
32463         (_mm512_loadu_si512): This.
32464         (_mm512_storeu_epi32): Renamed into...
32465         (_mm512_storeu_si512): This.
32466         (_mm512_maskz_ceil_ps): Removed.
32467         (_mm512_maskz_ceil_pd): Ditto.
32468         (_mm512_maskz_floor_ps): Ditto.
32469         (_mm512_maskz_floor_pd): Ditto.
32470         (_mm512_floor_round_ps): Ditto.
32471         (_mm512_floor_round_pd): Ditto.
32472         (_mm512_ceil_round_ps): Ditto.
32473         (_mm512_ceil_round_pd): Ditto.
32474         (_mm512_mask_floor_round_ps): Ditto.
32475         (_mm512_mask_floor_round_pd): Ditto.
32476         (_mm512_mask_ceil_round_ps): Ditto.
32477         (_mm512_mask_ceil_round_pd): Ditto.
32478         (_mm512_maskz_floor_round_ps): Ditto.
32479         (_mm512_maskz_floor_round_pd): Ditto.
32480         (_mm512_maskz_ceil_round_ps): Ditto.
32481         (_mm512_maskz_ceil_round_pd): Ditto.
32482         (_mm512_expand_pd): Ditto.
32483         (_mm512_expand_ps): Ditto.
32484         * config/i386/i386.c (ix86_builtins): Remove
32485         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
32486         (bdesc_args): Ditto.
32487         * config/i386/predicates.md (const1256_operand): New.
32488         (const_1_to_2_operand): Ditto.
32489         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
32490         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
32491         (*avx512pf_gatherpf<mode>sf): Ditto.
32492         (avx512pf_gatherpf<mode>df): Ditto.
32493         (*avx512pf_gatherpf<mode>df_mask): Ditto.
32494         (*avx512pf_gatherpf<mode>df): Ditto.
32495         (avx512pf_scatterpf<mode>sf): Ditto.
32496         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
32497         (*avx512pf_scatterpf<mode>sf): Ditto.
32498         (avx512pf_scatterpf<mode>df): Ditto.
32499         (*avx512pf_scatterpf<mode>df_mask): Ditto.
32500         (*avx512pf_scatterpf<mode>df): Ditto.
32501         (avx512f_expand<mode>): Removed.
32502         (<shift_insn><mode>3<mask_name>): Change predicate type.
32504 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
32506         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
32507         not at the end of datarefs vector use ordered_remove to avoid
32508         reordering datarefs vector.
32510         PR c/59984
32511         * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
32512         mark local addressable non-static vars as GOVD_PRIVATE
32513         instead of GOVD_LOCAL.
32514         * omp-low.c (lower_omp_for): Move gimple_bind_vars
32515         and BLOCK_VARS of gimple_bind_block to new_stmt rather
32516         than copying them.
32518         PR middle-end/60092
32519         * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
32520         if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
32521         assume_aligned or alloc_align attributes.
32522         (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
32523         arguments.  Handle also assume_aligned and alloc_align attributes.
32524         (evaluate_stmt): Adjust bit_value_assume_aligned caller.  Handle
32525         calls to functions with assume_aligned or alloc_align attributes.
32526         * doc/extend.texi: Document assume_aligned and alloc_align attributes.
32528 2014-02-08  Terry Guo  <terry.guo@arm.com>
32530         * doc/invoke.texi: Document ARM -march=armv7e-m.
32532 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
32534         * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
32535         flag on __cilkrts_rethrow builtin.
32537         PR ipa/60026
32538         * ipa-cp.c (determine_versionability): Fail at -O0
32539         or __attribute__((optimize (0))) or -fno-ipa-cp functions.
32540         * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
32542         Revert:
32543         2014-02-04  Jakub Jelinek  <jakub@redhat.com>
32545         PR ipa/60026
32546         * tree-inline.c (copy_forbidden): Fail for
32547         __attribute__((optimize (0))) functions.
32549 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
32551         * varpool.c: Include pointer-set.h.
32552         (varpool_remove_unreferenced_decls): Variables in other partitions
32553         will not be output; be however careful to not lose information
32554         about partitioning.
32556 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
32558         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
32559         lookup in the vtable constructor.
32561 2014-02-07  Jeff Law  <law@redhat.com>
32563         PR target/40977
32564         * config/m68k/m68k.md (ashldi_extsi): Turn into a
32565         define_insn_and_split.
32567         * ipa-inline.c (inline_small_functions): Fix typos.
32569 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
32571         * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
32572         (s390_can_use_return_insn): Declare.
32573         * config/s390/s390.h (EPILOGUE_USES): Define.
32574         * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
32575         instructions.
32576         (s390_chunkify_start): Handle return JUMP_LABELs.
32577         (s390_early_mach): Emit a main_pool instruction on the entry edge.
32578         (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
32579         (s390_can_use_return_insn): New functions.
32580         (s390_fix_long_loop_prediction): Handle conditional returns.
32581         (TARGET_SET_UP_BY_PROLOGUE): Define.
32582         * config/s390/s390.md (ANY_RETURN): New code iterator.
32583         (*creturn, *csimple_return, return, simple_return): New patterns.
32585 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
32587         * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
32588         notes to each restore.  Also add REG_CFA_DEF_CFA when restoring %r15.
32589         (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P.  Update the
32590         REG_CFA_RESTORE list when deciding not to restore a register.
32592 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
32594         * config/s390/s390.c: Include tree-pass.h and context.h.
32595         (s390_early_mach): New function, split out from...
32596         (s390_emit_prologue): ...here.
32597         (pass_data_s390_early_mach): New pass structure.
32598         (pass_s390_early_mach): New class.
32599         (s390_option_override): Create and register early_mach pass.
32600         Move to end of file.
32602 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
32604         * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
32605         to match for the exit block.
32607 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32609         * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
32610         ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
32611         Reject misaligned operands.
32613 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32615         * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
32617 2014-02-07  Richard Biener  <rguenther@suse.de>
32619         PR middle-end/60092
32620         * gimple-low.c (lower_builtin_posix_memalign): New function.
32621         (lower_stmt): Call it to lower posix_memalign in a way
32622         to make alignment info accessible.
32624 2014-02-07  Jakub Jelinek  <jakub@redhat.com>
32626         PR c++/60082
32627         * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
32628         __builtin_setjmp_receiver.
32630 2014-02-07  Richard Biener  <rguenther@suse.de>
32632         PR middle-end/60092
32633         * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
32634         * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
32635         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
32636         Handle BUILT_IN_POSIX_MEMALIGN.
32637         (find_func_clobbers): Likewise.
32638         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
32639         (call_may_clobber_ref_p_1): Likewise.
32641 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
32643         PR ipa/59918
32644         * ipa-devirt.c (record_target_from_binfo): Remove overactive
32645         sanity check.
32647 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
32649         PR ipa/59469
32650         * lto-cgraph.c (lto_output_node): Use
32651         symtab_get_symbol_partitioning_class.
32652         (lto_output_varpool_node): likewise.
32653         (symtab_get_symbol_partitioning_class): Move here from
32654         lto/lto-partition.c
32655         * cgraph.h (symbol_partitioning_class): Likewise.
32656         (symtab_get_symbol_partitioning_class): Declare.
32658 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
32660         * ggc.h (ggc_internal_cleared_alloc): New macro.
32661         * vec.h (vec_safe_copy): Handle memory stats.
32662         * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
32663         * target-globals.c (save_target_globals): Likewise.
32665 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
32667         PR target/60077
32668         * expr.c (emit_move_resolve_push): Export; be bit more selective
32669         on when to clear alias set.
32670         * expr.h (emit_move_resolve_push): Declare.
32671         * function.h (struct function): Add tail_call_marked.
32672         * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
32673         * config/i386/i386-protos.h (ix86_expand_push): Remove.
32674         * config/i386/i386.md (TImode move expander): De not call
32675         ix86_expand_push.
32676         (FP push expanders): Preserve memory attributes.
32677         * config/i386/sse.md (push<mode>1): Remove.
32678         * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
32679         (ix86_expand_push): Remove.
32680         * config/i386/mmx.md (push<mode>1): Remove.
32682 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
32684         PR rtl-optimization/60030
32685         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
32686         lopart with paradoxical subreg before shifting it up by hprec.
32688 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32690         * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
32691         Remove extra newline at end of file.
32692         * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
32693         (arm_issue_rate): Handle cortexa57.
32694         * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
32695         (cortex-a57.cortex-a53): Likewise.
32697 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
32699         PR target/59575
32700         * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
32701         don't record in REG_FRAME_RELATED_EXPR registers not set in that
32702         bitmask.
32703         (arm_expand_prologue): Adjust all callers.
32704         (arm_unwind_emit_sequence): Allow saved, but not important for unwind
32705         info, registers also at the lowest numbered registers side.  Use
32706         gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
32707         XEXP.
32709         PR debug/59992
32710         * var-tracking.c (adjust_mems): Before adding a SET to
32711         amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
32713 2014-02-06  Alan Modra  <amodra@gmail.com>
32715         PR target/60032
32716         * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
32717         change SDmode to DDmode when lra_in_progress.
32719 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
32721         PR middle-end/59150
32722         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
32723         free_data_ref on the dr first, and before goto again also set dr
32724         to the next dr.  For simd_lane_access, free old datarefs[i] before
32725         overwriting it.  For get_vectype_for_scalar_type failure, don't
32726         free_data_ref if simd_lane_access.
32728         * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
32730         PR target/60062
32731         * tree.h (opts_for_fn): New inline function.
32732         (opt_for_fn): Define.
32733         * config/i386/i386.c (ix86_function_regparm): Use
32734         opt_for_fn (decl, optimize) instead of optimize.
32736 2014-02-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
32738         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
32739         for SYMBOL_REF in large memory model.
32741 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32743         * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
32744         and crypto support.
32745         (cortex-a57): Likewise.
32746         (cortex-a57.cortex-a53): Likewise.
32748 2014-02-06  Yury Gribov  <y.gribov@samsung.com>
32749             Kugan Vivekanandarajah  <kuganv@linaro.org>
32751         * config/arm/arm.c (arm_vector_alignment_reachable): Check
32752         unaligned_access.
32753         * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
32755 2014-02-06  Richard Biener  <rguenther@suse.de>
32757         * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
32758         set_loop_copy and initialize_original_copy_tables.
32760 2014-02-06  Alex Velenko  <Alex.Velenko@arm.com>
32762         * config/aarch64/aarch64-simd.md
32763         (aarch64_ashr_simddi): Change QI to SI.
32765 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
32766             Jakub Jelinek  <jakub@redhat.com>
32768         PR middle-end/60013
32769         * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
32770         of the dataflow.
32772 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32774         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
32775         CODE_FOR_altivec_vpku[hw]um to
32776         CODE_FOR_altivec_vpku[hw]um_direct.
32777         * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
32778         UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
32779         (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
32780         UNSPEC_VUNPACK_LO_SIGN_DIRECT.
32782 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32784         * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
32785         generation for -maltivec=be.
32786         (altivec_vsumsws): Simplify redundant test.
32788 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32790         * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
32791         (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
32792         (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
32793         (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
32794         gen_altivec_vpkuwum.
32795         (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
32796         BYTES_BIG_ENDIAN.
32797         (altivec_vpks<VI_char>ss): Likewise.
32798         (altivec_vpks<VI_char>us): Likewise.
32799         (altivec_vpku<VI_char>us): Likewise.
32800         (altivec_vpku<VI_char>um): Likewise.
32801         (altivec_vpku<VI_char>um_direct): New (copy of
32802         altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
32803         internal use).
32804         (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
32805         target is little endian and -maltivec=be is not specified.
32806         (*altivec_vupkhs<VU_char>_direct): New (copy of
32807         altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
32808         (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
32809         target is little endian and -maltivec=be is not specified.
32810         (*altivec_vupkls<VU_char>_direct): New (copy of
32811         altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
32812         (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
32813         little endian and -maltivec=be is not specified.
32814         (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
32815         little endian and -maltivec=be is not specified.
32817 2014-02-05  Richard Henderson  <rth@redhat.com>
32819         PR debug/52727
32820         * combine-stack-adj.c: Revert r206943.
32821         * sched-int.h (struct deps_desc): Add last_args_size.
32822         * sched-deps.c (init_deps): Initialize it.
32823         (sched_analyze_insn): Add OUTPUT dependencies between insns that
32824         contain REG_ARGS_SIZE notes.
32826 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
32828         * lto-cgraph.c (asm_nodes_output): Make global.
32829         * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
32830         * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
32831         (driver_handle_option): Handle OPT_fwpa.
32833 2014-02-05  Jakub Jelinek  <jakub@redhat.com>
32835         PR ipa/59947
32836         * ipa-devirt.c (possible_polymorphic_call_targets): Fix
32837         a comment typo and formatting issue.  If odr_hash hasn't been
32838         created, return vNULL and set *completep to false.
32840         PR middle-end/57499
32841         * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
32842         bb with no successors.
32844 2014-02-05  James Greenhalgh  <james.greenhalgh@arm.com>
32846         PR target/59718
32847         * doc/invoke.texi (-march): Clarify documentation for ARM.
32848         (-mtune): Likewise.
32849         (-mcpu): Likewise.
32851 2014-02-05  Richard Biener  <rguenther@suse.de>
32853         * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
32854         when not vectorizing because of too many alias checks.
32855         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
32856         Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
32858 2014-02-05  Nick Clifton  <nickc@redhat.com>
32860         * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
32861         accept extended registers in any mode when compiling for the MN10300.
32863 2014-02-05  Yury Gribov  <y.gribov@samsung.com>
32865         * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
32866         * ipa-inline.c (report_inline_failed_reason): Handle mismatched
32867         sanitization attributes.
32868         (can_inline_edge_p): Likewise.
32869         (sanitize_attrs_match_for_inline_p): New function.
32871 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
32873         * ipa-prop.c (detect_type_change): Shor circuit testing of
32874         type changes on THIS pointer.
32876 2014-02-04  John David Anglin  <danglin@gcc.gnu.org>
32878         PR target/59777
32879         * config/pa/pa.c (legitimize_tls_address): Return original address
32880         if not passed a SYMBOL_REF rtx.
32881         (hppa_legitimize_address): Call legitimize_tls_address for all TLS
32882         addresses.
32883         (pa_emit_move_sequence): Simplify TLS source operands.
32884         (pa_legitimate_constant_p): Reject all TLS constants.
32885         * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
32886         (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
32888 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
32890         * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
32891         groups when we know they are controlled by LTO.
32892         * varasm.c (default_binds_local_p_1): If object is in other partition,
32893         it will be resolved locally.
32895 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
32897         * config/host-linux.c (linux_gt_pch_use_address): Don't
32898         use SSIZE_MAX because it is not always defined.
32900 2014-02-04  Vladimir Makarov  <vmakarov@redhat.com>
32902         PR bootstrap/59913
32903         * lra-constraints.c (need_for_split_p): Use more 3 reloads as
32904         threshold for pseudo splitting.
32905         (update_ebb_live_info): Process call argument hard registers and
32906         hard registers from insn definition too.
32907         (max_small_class_regs_num): New constant.
32908         (inherit_in_ebb): Update live hard regs through EBBs.  Update
32909         reloads_num only for small register classes.  Don't split for
32910         outputs of jumps.
32912 2014-02-04  Markus Trippelsdorf  <markus@trippelsdorf.de>
32914         PR ipa/60058
32915         * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
32916         is non-null.
32918 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
32920         * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
32921         visibility is safe.
32923 2014-02-04  Marek Polacek  <polacek@redhat.com>
32925         * gdbinit.in (pel): Define.
32927 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
32929         * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
32930         behavior.
32932 2014-02-04  Richard Biener  <rguenther@suse.de>
32934         PR lto/59723
32935         * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
32936         in function context local.
32937         (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
32938         * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
32939         similar to LTO_imported_decl_ref.
32941 2014-02-04  Jakub Jelinek  <jakub@redhat.com>
32943         PR tree-optimization/60002
32944         * cgraphclones.c (build_function_decl_skip_args): Clear
32945         DECL_LANG_SPECIFIC.
32947         PR tree-optimization/60023
32948         * tree-if-conv.c (predicate_mem_writes): Pass true instead of
32949         false to gsi_replace.
32950         * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
32951         has been in some EH region and vec_stmt could throw, add
32952         vec_stmt into the same EH region.
32953         * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
32954         has no lhs, ignore it.
32955         * internal-fn.c (expand_MASK_LOAD): Likewise.
32957         PR ipa/60026
32958         * tree-inline.c (copy_forbidden): Fail for
32959         __attribute__((optimize (0))) functions.
32961         PR other/58712
32962         * omp-low.c (simd_clone_struct_copy): If from->inbranch
32963         is set, copy one less argument.
32964         (expand_simd_clones): Don't subtract clone_info->inbranch
32965         from simd_clone_struct_alloc argument.
32967         PR rtl-optimization/57915
32968         * recog.c (simplify_while_replacing): If all unary/binary/relational
32969         operation arguments are constant, attempt to simplify those.
32971         PR middle-end/59261
32972         * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
32973         if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
32975 2014-02-04  Richard Biener  <rguenther@suse.de>
32977         PR tree-optimization/60012
32978         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
32979         TBAA disambiguation to all DDRs.
32981 2014-02-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32983         PR target/59788
32984         * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
32985         (LINK_SPEC): Use it for -shared, -shared-libgcc.
32987 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
32989         PR ipa/59882
32990         * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
32992 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
32994         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
32995         * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
32997 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
32999         PR ipa/59831
33000         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
33001         to figure out targets of polymorphic calls with known decl.
33002         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
33003         * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
33004         * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
33005         (get_polymorphic_call_info): ... here.
33006         (get_polymorphic_call_info_from_invariant): New function.
33008 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
33010         * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
33011         lookup via vtable pointer; check for type consistency
33012         and turn inconsitent facts into UNREACHABLE.
33013         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
33014         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
33015         type inconsistent querries; return UNREACHABLE instead.
33017 2014-02-03  Richard Henderson  <rth@twiddle.net>
33019         PR tree-opt/59924
33020         * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
33021         already processed this node.
33022         (normalize_one_pred_1): Pass along mark_set.
33023         (normalize_one_pred): Create and destroy a pointer_set_t.
33024         (normalize_one_pred_chain): Likewise.
33026 2014-02-03  Laurent Aflonsi  <laurent.alfonsi@st.com>
33028         PR gcov-profile/58602
33029         * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
33031 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
33033         PR ipa/59831
33034         * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
33035         -fno-devirtualize; try to devirtualize by the knowledge of
33036         virtual table pointer given by aggregate propagation.
33037         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
33038         (ipa_print_node_jump_functions): Dump also offset that
33039         is relevant for polymorphic calls.
33040         (determine_known_aggregate_parts): Add arg_type parameter; use it
33041         instead of determining the type from pointer type.
33042         (ipa_compute_jump_functions_for_edge): Update call of
33043         determine_known_aggregate_parts.
33044         * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
33045         (gimple_get_virt_method_for_binfo): ... here; simplify using
33046         vtable_pointer_value_to_vtable.
33047         * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
33048         * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
33049         to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
33050         (vtable_pointer_value_to_vtable): Break out from ...; handle also
33051         POINTER_PLUS_EXPR.
33052         (vtable_pointer_value_to_binfo): ... here.
33053         * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
33055 2014-02-03  Teresa Johnson  <tejohnson@google.com>
33057         * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
33058         redef of outer loop index variable.
33060 2014-02-03  Marc Glisse  <marc.glisse@inria.fr>
33062         PR c++/53017
33063         PR c++/59211
33064         * doc/extend.texi (Function Attributes): Typo.
33066 2014-02-03  Cong Hou  <congh@google.com>
33068         PR tree-optimization/60000
33069         * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
33070         if the vectorized statement is a store.  A store statement can only
33071         appear at the end of pattern statements.
33073 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
33075         * config/i386/i386.c (flag_opts): Add -mlong-double-128.
33076         (ix86_option_override_internal): Default long double to 64-bit for
33077         32-bit Bionic and to 128-bit for 64-bit Bionic.
33079         * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
33080         TARGET_LONG_DOUBLE_128 is true.
33081         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
33083         * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
33084         (mlong-double-64): Negate -mlong-double-128.
33085         (mlong-double-128): New option.
33087         * config/i386/i386-c.c (ix86_target_macros): Define
33088         __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
33090         * doc/invoke.texi: Document -mlong-double-128.
33092 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
33094         PR rtl-optimization/60024
33095         * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
33097 2014-02-03  Markus Trippelsdorf  <markus@trippelsdorf.de>
33099         * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
33101 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
33103         PR rtl-optimization/57662
33104         * sel-sched.c (code_motion_path_driver): Do not mark already not
33105         existing blocks in the visiting bitmap.
33107 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
33109         * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
33110         on the insn being emitted.
33112 2014-02-03  James Greenhalgh  <james.greenhalgh@arm.com>
33113             Will Deacon  <will.deacon@arm.com>
33115         * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
33117 2014-02-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33119         * config/arm/arm-tables.opt: Regenerate.
33121 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33123         * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
33124         for vector types other than V16QImode.
33125         * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
33126         define_expand, and call altivec_expand_vec_perm_le when producing
33127         code with little endian element order.
33128         (*altivec_vperm_<mode>_internal): New insn having previous
33129         behavior of altivec_vperm_<mode>.
33130         (altivec_vperm_<mode>_uns): Change to a define_expand, and call
33131         altivec_expand_vec_perm_le when producing code with little endian
33132         element order.
33133         (*altivec_vperm_<mode>_uns_internal): New insn having previous
33134         behavior of altivec_vperm_<mode>_uns.
33136 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33138         * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
33139         (altivec_vsumsws): Add handling for -maltivec=be with a little
33140         endian target.
33141         (altivec_vsumsws_direct): New.
33142         (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
33143         gen_altivec_vsumsws.
33145 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
33147         * ipa-devirt.c (subbinfo_with_vtable_at_offset,
33148         vtable_pointer_value_to_binfo): New functions.
33149         * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
33150         * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
33152 2014-02-02  Sandra Loosemore  <sandra@codesourcery.com>
33154         * config/nios2/nios2.md (load_got_register): Initialize GOT
33155         pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
33156         * config/nios2/nios2.c (nios2_function_profiler): Likewise.
33158 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
33160         * ipa-prop.c (update_jump_functions_after_inlining): When type is not
33161         preserverd by passthrough, do not propagate the type.
33163 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
33165         * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
33166         (mips_atomic_assign_expand_fenv): New function.
33167         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
33169 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
33171         * doc/extend.texi (__builtin_mips_get_fcsr): Document.
33172         (__builtin_mips_set_fcsr): Likewise.
33173         * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
33174         MIPS_USI_FTYPE_VOID.
33175         * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
33176         (mips16_expand_set_fcsr): Likewise.
33177         * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
33178         (mips16_set_fcsr_stub): Likewise.
33179         (mips16_get_fcsr_one_only_stub): New class.
33180         (mips16_set_fcsr_one_only_stub): Likewise.
33181         (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
33182         (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
33183         (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
33184         (hard_float): New availability predicate.
33185         (mips_builtins): Add get_fcsr and set_fcsr.
33186         (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
33187         * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
33188         (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
33189         (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
33190         (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
33191         patterns.
33193 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
33195         * config/mips/mips.c (mips_one_only_stub): New class.
33196         (mips_need_mips16_rdhwr_p): Replace with...
33197         (mips16_rdhwr_stub): ...this new variable.
33198         (mips16_stub_call_address): New function.
33199         (mips16_rdhwr_one_only_stub): New class.
33200         (mips_expand_thread_pointer): Use mips16_stub_call_address.
33201         (mips_output_mips16_rdhwr): Delete.
33202         (mips_finish_stub): New function.
33203         (mips_code_end): Use it to handle rdhwr stubs.
33205 2014-02-02  Uros Bizjak  <ubizjak@gmail.com>
33207         PR target/60017
33208         * config/i386/i386.c (classify_argument): Fix handling of bit_offset
33209         when calculating size of integer atomic types.
33211 2014-02-02  H.J. Lu  <hongjiu.lu@intel.com>
33213         * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
33215 2014-02-01  Jakub Jelinek  <jakub@redhat.com>
33217         PR tree-optimization/60003
33218         * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
33219         * profile.c (branch_prob): Use gimple_call_builtin_p
33220         to check for BUILT_IN_SETJMP_RECEIVER.
33221         * tree-inline.c (copy_bb): Call notice_special_calls.
33223 2014-01-31  Vladimir Makarov  <vmakarov@redhat.com>
33225         PR bootstrap/59985
33226         * lra-constraints.c (process_alt_operands): Update reload_sum only
33227         on the first pass.
33229 2014-01-31  Richard Henderson  <rth@redhat.com>
33231         PR middle-end/60004
33232         * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
33233         until after else_eh is processed.
33235 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
33237         * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
33238         (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
33239         (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
33240         in smmintrin.h, remove them.
33241         (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
33242         * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
33243         * config/i386/i386.md (ROUND_SAE): Fix value.
33244         * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
33245         (const48_operand): New.
33246         * config/i386/subst.md (round), (round_expand): Use
33247         const_4_or_8_to_11_operand.
33248         (round_saeonly), (round_saeonly_expand): Use const48_operand.
33250 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
33252         * config/i386/constraints.md (Yk): Swap meaning with k.
33253         * config/i386/i386.md (movhi_internal): Change Yk to k.
33254         (movqi_internal): Ditto.
33255         (*k<logic><mode>): Ditto.
33256         (*andhi_1): Ditto.
33257         (*andqi_1): Ditto.
33258         (kandn<mode>): Ditto.
33259         (*<code>hi_1): Ditto.
33260         (*<code>qi_1): Ditto.
33261         (kxnor<mode>): Ditto.
33262         (kortestzhi): Ditto.
33263         (kortestchi): Ditto.
33264         (kunpckhi): Ditto.
33265         (*one_cmplhi2_1): Ditto.
33266         (*one_cmplqi2_1): Ditto.
33267         * config/i386/sse.md (): Change k to Yk.
33268         (avx512f_load<mode>_mask): Ditto.
33269         (avx512f_blendm<mode>): Ditto.
33270         (avx512f_store<mode>_mask): Ditto.
33271         (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
33272         (avx512f_storedqu<mode>_mask): Ditto.
33273         (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
33274         Ditto.
33275         (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
33276         (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
33277         (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
33278         (avx512f_maskcmp<mode>3): Ditto.
33279         (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
33280         (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
33281         (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
33282         (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
33283         (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
33284         (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
33285         (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
33286         (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
33287         (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
33288         (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
33289         (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
33290         (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
33291         (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
33292         (vec_extract_lo_<mode>_maskm): Ditto.
33293         (vec_extract_hi_<mode>_maskm): Ditto.
33294         (avx512f_vternlog<mode>_mask): Ditto.
33295         (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
33296         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
33297         (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
33298         (avx512f_<code>v8div16qi2_mask): Ditto.
33299         (avx512f_<code>v8div16qi2_mask_store): Ditto.
33300         (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
33301         (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
33302         (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
33303         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
33304         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
33305         (*avx512pf_gatherpf<mode>df_mask): Ditto.
33306         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
33307         (*avx512pf_scatterpf<mode>df_mask): Ditto.
33308         (avx512cd_maskb_vec_dupv8di): Ditto.
33309         (avx512cd_maskw_vec_dupv16si): Ditto.
33310         (avx512f_vpermi2var<mode>3_maskz): Ditto.
33311         (avx512f_vpermi2var<mode>3_mask): Ditto.
33312         (avx512f_vpermi2var<mode>3_mask): Ditto.
33313         (avx512f_vpermt2var<mode>3_maskz): Ditto.
33314         (*avx512f_gathersi<mode>): Ditto.
33315         (*avx512f_gathersi<mode>_2): Ditto.
33316         (*avx512f_gatherdi<mode>): Ditto.
33317         (*avx512f_gatherdi<mode>_2): Ditto.
33318         (*avx512f_scattersi<mode>): Ditto.
33319         (*avx512f_scatterdi<mode>): Ditto.
33320         (avx512f_compress<mode>_mask): Ditto.
33321         (avx512f_compressstore<mode>_mask): Ditto.
33322         (avx512f_expand<mode>_mask): Ditto.
33323         * config/i386/subst.md (mask): Change k to Yk.
33324         (mask_scalar_merge): Ditto.
33325         (sd): Ditto.
33327 2014-01-31  Marc Glisse  <marc.glisse@inria.fr>
33329         * doc/extend.texi (Vector Extensions): Document ?: in C++.
33331 2014-01-31  Richard Biener  <rguenther@suse.de>
33333         PR middle-end/59990
33334         * builtins.c (fold_builtin_memory_op): Make sure to not
33335         use a floating-point mode or a boolean or enumeral type for
33336         the copy operation.
33338 2014-01-30  DJ Delorie  <dj@redhat.com>
33340         * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
33341         * config/msp430/msp430.md (msp430_refsym_need_exit): New.
33342         * config/msp430/msp430.c (msp430_expand_epilogue): Call it
33343         whenever main() has an epilogue.
33345 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33347         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
33348         unused variable "field".
33349         * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
33350         (vsx_mergeh_<mode>): Likewise.
33351         * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
33352         (altivec_vmrghh): Likewise.
33353         (altivec_vmrghw): Likewise.
33354         (altivec_vmrglb): Likewise.
33355         (altivec_vmrglh): Likewise.
33356         (altivec_vmrglw): Likewise.
33357         (altivec_vspltb): Add missing uses.
33358         (altivec_vsplth): Likewise.
33359         (altivec_vspltw): Likewise.
33360         (altivec_vspltsf): Likewise.
33362 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
33364         PR target/59923
33365         * ifcvt.c (cond_exec_process_insns): Don't conditionalize
33366         frame related instructions.
33368 2014-01-30  Vladimir Makarov  <vmakarov@redhat.com>
33370         PR rtl-optimization/59959
33371         * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
33372         any reload of register whose subreg is invalid.
33374 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
33376         * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
33377         * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
33378         Add missing return type - void.
33380 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33382         * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
33383         gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
33384         remove element index adjustment for endian (now handled in vsx.md
33385         and altivec.md).
33386         (altivec_expand_vec_perm_const): Use
33387         gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
33388         * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
33389         (vsx_xxspltw_<mode>): Adjust element index for little endian.
33390         * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
33391         define_expand and a new define_insn *altivec_vspltb_internal;
33392         adjust for -maltivec=be on a little endian target.
33393         (altivec_vspltb_direct): New.
33394         (altivec_vsplth): Divide into a define_expand and a new
33395         define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
33396         little endian target.
33397         (altivec_vsplth_direct): New.
33398         (altivec_vspltw): Divide into a define_expand and a new
33399         define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
33400         little endian target.
33401         (altivec_vspltw_direct): New.
33402         (altivec_vspltsf): Divide into a define_expand and a new
33403         define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
33404         a little endian target.
33406 2014-01-30  Richard Biener  <rguenther@suse.de>
33408         PR tree-optimization/59993
33409         * tree-ssa-forwprop.c (associate_pointerplus): Check we
33410         can propagate form the earlier stmt and avoid the transform
33411         when the intermediate result is needed.
33413 2014-01-30  Alangi Derick  <alangiderick@gmail.com>
33415         * README.Portability: Fix typo.
33417 2014-01-30  David Holsgrove  <david.holsgrove@xilinx.com>
33419         * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
33420         comparison_operator with ordered_comparison_operator.
33422 2014-01-30  Nick Clifton  <nickc@redhat.com>
33424         * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
33425         Rename to mn10300_store_multiple_regs.
33426         * config/mn10300/mn10300.c: Likewise.
33427         * config/mn10300/mn10300.md (store_movm): Fix typo: call
33428         store_multiple_regs.
33429         * config/mn10300/predicates.md (mn10300_store_multiple_operation):
33430         Call mn10300_store_multiple_regs.
33432 2014-01-30  Nick Clifton  <nickc@redhat.com>
33433             DJ Delorie  <dj@redhat.com>
33435         * config/rl78/rl78.c (register_sizes): Make the "upper half" of
33436         %fp 2 to keep registers after it properly word-aligned.
33437         (rl78_alloc_physical_registers_umul): Handle the case where both
33438         input operands are the same.
33440 2014-01-30  Richard Biener  <rguenther@suse.de>
33442         PR tree-optimization/59903
33443         * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
33444         check properly.
33446 2014-01-30  Jason Merrill  <jason@redhat.com>
33448         PR c++/59633
33449         * tree.c (walk_type_fields): Handle VECTOR_TYPE.
33451         PR c++/59645
33452         * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
33454 2014-01-30  Richard Biener  <rguenther@suse.de>
33456         PR tree-optimization/59951
33457         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
33459 2014-01-30  Savin Zlobec  <savin.zlobec@gmail.com>
33461         PR target/59784
33462         * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
33463         SFmode to DFmode case.
33465 2014-01-29  DJ Delorie  <dj@redhat.com>
33467         * config/msp430/msp430.opt (-minrt): New.
33468         * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
33469         if -minrt given.
33470         (ENDFILE_SPEC): Likewise.
33472 2014-01-29  Jan Hubicka  <hubicka@ucw.cz>
33474         * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
33475         (estimate_function_body_sizes): Use it.
33477 2014-01-29  Paolo Carlini  <paolo.carlini@oracle.com>
33479         PR c++/58561
33480         * dwarf2out.c (is_cxx_auto): New.
33481         (is_base_type): Use it.
33482         (gen_type_die_with_usage): Likewise.
33484 2014-01-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33486         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const):  Use
33487         CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
33488         * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
33489         -maltivec=be with LE targets.
33490         (vsx_mergeh_<mode>): Likewise.
33491         * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
33492         (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
33493         (altivec_vmrghb): Replace with define_expand and new
33494         *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
33495         (altivec_vmrghb_direct): New define_insn.
33496         (altivec_vmrghh): Replace with define_expand and new
33497         *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
33498         (altivec_vmrghh_direct): New define_insn.
33499         (altivec_vmrghw): Replace with define_expand and new
33500         *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
33501         (altivec_vmrghw_direct): New define_insn.
33502         (*altivec_vmrghsf): Adjust for endianness.
33503         (altivec_vmrglb): Replace with define_expand and new
33504         *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
33505         (altivec_vmrglb_direct): New define_insn.
33506         (altivec_vmrglh): Replace with define_expand and new
33507         *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
33508         (altivec_vmrglh_direct): New define_insn.
33509         (altivec_vmrglw): Replace with define_expand and new
33510         *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
33511         (altivec_vmrglw_direct): New define_insn.
33512         (*altivec_vmrglsf): Adjust for endianness.
33513         (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
33514         (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
33515         (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
33516         (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
33517         (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
33518         (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
33519         (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
33520         (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
33522 2014-01-29  Marcus Shawcroft  <marcus.shawcroft@arm.com>
33524         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
33525         (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
33526         whitespace.
33528 2014-01-29  Richard Biener  <rguenther@suse.de>
33530         PR tree-optimization/58742
33531         * tree-ssa-forwprop.c (associate_pointerplus): Rename to
33532         associate_pointerplus_align.
33533         (associate_pointerplus_diff): New function.
33534         (associate_pointerplus): Likewise.  Call associate_pointerplus_align
33535         and associate_pointerplus_diff.
33537 2014-01-29  Richard Biener  <rguenther@suse.de>
33539         * lto-streamer.h (LTO_major_version): Bump to 3.
33540         (LTO_minor_version): Reset to 0.
33542 2014-01-29  Renlin Li  <Renlin.Li@arm.com>
33544         * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
33545         * config/arm/arm.c (FL_FOR_ARCH7VE): New.
33546         (arm_file_start): Generate correct asm header for armv7ve.
33547         * config/arm/bpabi.h: Add multilib support for armv7ve.
33548         * config/arm/driver-arm.c: Change the architectures of cortex-a7
33549         and cortex-a15 to armv7ve.
33550         * config/arm/t-aprofile: Add multilib support for armv7ve.
33551         * doc/invoke.texi: Document -march=armv7ve.
33553 2014-01-29  Richard Biener  <rguenther@suse.de>
33555         PR tree-optimization/58742
33556         * tree-ssa-forwprop.c (associate_plusminus): Return true
33557         if we changed sth, defer EH cleanup to ...
33558         (ssa_forward_propagate_and_combine): ... here.  Call simplify_mult.
33559         (simplify_mult): New function.
33561 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
33563         PR middle-end/59917
33564         PR tree-optimization/59920
33565         * tree.c (build_common_builtin_nodes): Remove
33566         __builtin_setjmp_dispatcher initialization.
33567         * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
33568         * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
33569         instead of gsi_after_labels + manually skipping debug stmts.
33570         Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
33571         ignore bbs with IFN_ABNORMAL_DISPATCHER.
33572         * tree-inline.c (copy_edges_for_bb): Remove
33573         can_make_abnormal_goto argument, instead add abnormal_goto_dest
33574         argument.  Ignore computed_goto_p stmts.  Don't call
33575         make_abnormal_goto_edges.  If a call might need abnormal edges
33576         for non-local gotos, see if it already has an edge to
33577         IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
33578         with true argument, don't do anything then, otherwise add
33579         EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
33580         (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
33581         caller.
33582         * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
33583         (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
33584         (lower_stmt): Don't set data->calls_builtin_setjmp.
33585         (lower_builtin_setjmp): Adjust comment.
33586         * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
33587         * tree-cfg.c (found_computed_goto): Remove.
33588         (factor_computed_gotos): Remove.
33589         (make_goto_expr_edges): Return bool, true for computed gotos.
33590         Don't call make_abnormal_goto_edges.
33591         (build_gimple_cfg): Don't set found_computed_goto, don't call
33592         factor_computed_gotos.
33593         (computed_goto_p): No longer static.
33594         (make_blocks): Don't set found_computed_goto.
33595         (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
33596         (make_edges): If make_goto_expr_edges returns true, push bb
33597         into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
33598         instead of calling make_abnormal_goto_edges push bb into ab_edge_call
33599         vector.  Record mapping between bbs and OpenMP regions if there
33600         are any, adjust make_gimple_omp_edges caller.  Call
33601         handle_abnormal_edges.
33602         (make_abnormal_goto_edges): Remove.
33603         * tree-cfg.h (make_abnormal_goto_edges): Remove.
33604         (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
33605         * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
33606         * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
33607         * internal-fn.def (ABNORMAL_DISPATCHER): New.
33608         * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
33609         filling *region also set *region_idx to (*region)->entry->index.
33611         PR other/58712
33612         * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
33613         For REGs set ORIGINAL_REGNO.
33615 2014-01-29  Bingfeng Mei  <bmei@broadcom.com>
33617         * doc/md.texi: Mention that a target shouldn't implement
33618         vec_widen_(s|u)mul_even/odd pair if it is less efficient
33619         than hi/lo pair.
33621 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
33623         PR tree-optimization/59594
33624         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
33625         a copy of the datarefs vector rather than the vector itself.
33627 2014-01-28  Jason Merrill  <jason@redhat.com>
33629         PR c++/53756
33630         * dwarf2out.c (auto_die): New static.
33631         (gen_type_die_with_usage): Handle C++1y 'auto'.
33632         (gen_subprogram_die): If in-class DIE had 'auto', emit type again
33633         on definition.
33635 2014-01-28  H.J. Lu  <hongjiu.lu@intel.com>
33637         PR target/59672
33638         * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
33639         (SPEC_X32): Likewise.
33640         (SPEC_64): Likewise.
33641         * config/i386/i386.c (ix86_option_override_internal): Turn off
33642         OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
33643         for TARGET_16BIT.
33644         (x86_file_start): Output .code16gcc for TARGET_16BIT.
33645         * config/i386/i386.h (TARGET_16BIT): New macro.
33646         (TARGET_16BIT_P): Likewise.
33647         * config/i386/i386.opt: Add m16.
33648         * doc/invoke.texi: Document -m16.
33650 2014-01-28  Jakub Jelinek  <jakub@redhat.com>
33652         PR preprocessor/59935
33653         * input.c (location_get_source_line): Bail out on when line number
33654         is zero, and test the return value of lookup_or_add_file_to_cache_tab.
33656 2014-01-28  Richard Biener  <rguenther@suse.de>
33658         PR tree-optimization/58742
33659         * tree-ssa-forwprop.c (associate_plusminus): Handle
33660         pointer subtraction of the form (T)(P + A) - (T)P.
33662 2014-01-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33664         * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
33665         at const_int_cost.
33667 2014-01-28  Richard Biener  <rguenther@suse.de>
33669         Revert
33670         2014-01-28  Richard Biener  <rguenther@suse.de>
33672         PR rtl-optimization/45364
33673         PR rtl-optimization/59890
33674         * var-tracking.c (local_get_addr_clear_given_value): Handle
33675         already cleared slot.
33676         (val_reset): Handle not allocated local_get_addr_cache.
33677         (vt_find_locations): Use post-order on the inverted CFG.
33679 2014-01-28  Richard Biener  <rguenther@suse.de>
33681         * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
33683 2014-01-28  Richard Biener  <rguenther@suse.de>
33685         PR rtl-optimization/45364
33686         PR rtl-optimization/59890
33687         * var-tracking.c (local_get_addr_clear_given_value): Handle
33688         already cleared slot.
33689         (val_reset): Handle not allocated local_get_addr_cache.
33690         (vt_find_locations): Use post-order on the inverted CFG.
33692 2014-01-28  Alan Modra  <amodra@gmail.com>
33694         * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
33695         * configure.ac <recursive call for build != host>: Define
33696         GENERATOR_FILE.  Comment.  Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
33697         and LD_FOR_BUILD too.
33698         * configure: Regenerate.
33700 2014-01-27  Allan Sandfeld Jensen  <sandfeld@kde.org>
33702         * config/i386/i386.c (get_builtin_code_for_version): Separate
33703         Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
33704         Broadwell from Haswell.
33706 2014-01-27  Steve Ellcey  <sellcey@mips.com>
33708         * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
33709         Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
33710         * config/mips/mips.c (mips_option_override): Change setting
33711         of TARGET_DSP.
33712         * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
33713         * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
33714         Change from Mask to Var.
33716 2014-01-27  Jeff Law  <law@redhat.com>
33718         * ipa-inline.c (inline_small_functions): Fix typo.
33720 2014-01-27  Ilya Tocar  <ilya.tocar@intel.com>
33722         * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
33723         (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
33724         (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
33725         (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
33726         (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
33727         (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
33728         (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
33729         (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
33730         (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
33731         (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
33732         (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
33733         (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
33734         (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
33735         (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
33736         (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
33737         (_mm512_storeu_epi64): Ditto.
33738         (_mm512_cmpge_epi32_mask): Ditto.
33739         (_mm512_cmpge_epu32_mask): Ditto.
33740         (_mm512_cmpge_epi64_mask): Ditto.
33741         (_mm512_cmpge_epu64_mask): Ditto.
33742         (_mm512_cmple_epi32_mask): Ditto.
33743         (_mm512_cmple_epu32_mask): Ditto.
33744         (_mm512_cmple_epi64_mask): Ditto.
33745         (_mm512_cmple_epu64_mask): Ditto.
33746         (_mm512_cmplt_epi32_mask): Ditto.
33747         (_mm512_cmplt_epu32_mask): Ditto.
33748         (_mm512_cmplt_epi64_mask): Ditto.
33749         (_mm512_cmplt_epu64_mask): Ditto.
33750         (_mm512_cmpneq_epi32_mask): Ditto.
33751         (_mm512_cmpneq_epu32_mask): Ditto.
33752         (_mm512_cmpneq_epi64_mask): Ditto.
33753         (_mm512_cmpneq_epu64_mask): Ditto.
33754         (_mm512_expand_pd): Ditto.
33755         (_mm512_expand_ps): Ditto.
33756         * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
33757         VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
33758         VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
33759         * config/i386/i386.c (ix86_builtins): Add
33760         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
33761         IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
33762         IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
33763         IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
33764         IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
33765         IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
33766         IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
33767         IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
33768         IX86_BUILTIN_PMOVUSQW512_MEM.
33769         (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
33770         __builtin_ia32_pmovsqd512mem_mask,
33771         __builtin_ia32_pmovqd512mem_mask,
33772         __builtin_ia32_pmovusqw512mem_mask,
33773         __builtin_ia32_pmovsqw512mem_mask,
33774         __builtin_ia32_pmovqw512mem_mask,
33775         __builtin_ia32_pmovusdw512mem_mask,
33776         __builtin_ia32_pmovsdw512mem_mask,
33777         __builtin_ia32_pmovdw512mem_mask,
33778         __builtin_ia32_pmovqb512mem_mask,
33779         __builtin_ia32_pmovusqb512mem_mask,
33780         __builtin_ia32_pmovsqb512mem_mask,
33781         __builtin_ia32_pmovusdb512mem_mask,
33782         __builtin_ia32_pmovsdb512mem_mask,
33783         __builtin_ia32_pmovdb512mem_mask.
33784         (bdesc_args): Add __builtin_ia32_expanddf512,
33785         __builtin_ia32_expandsf512.
33786         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
33787         VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
33788         VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
33789         * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
33790         (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
33791         (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
33792         (avx512f_<code>v8div16qi2_mask_store): This.
33793         (avx512f_expand<mode>): New.
33795 2014-01-27  Kirill Yukhin  <kirill.yukhin@intel.com>
33797         * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
33798         New.
33799         (_mm512_mask_prefetch_i64gather_pd): Ditto.
33800         (_mm512_prefetch_i32scatter_pd): Ditto.
33801         (_mm512_mask_prefetch_i32scatter_pd): Ditto.
33802         (_mm512_prefetch_i64scatter_pd): Ditto.
33803         (_mm512_mask_prefetch_i64scatter_pd): Ditto.
33804         (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
33805         (_mm512_mask_prefetch_i64gather_ps): Ditto.
33806         (_mm512_prefetch_i32scatter_ps): Ditto.
33807         (_mm512_mask_prefetch_i32scatter_ps): Ditto.
33808         (_mm512_prefetch_i64scatter_ps): Ditto.
33809         (_mm512_mask_prefetch_i64scatter_ps): Ditto.
33810         * config/i386/i386-builtin-types.def: Define
33811         VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
33812         and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
33813         * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
33814         IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
33815         IX86_BUILTIN_SCATTERPFQPD.
33816         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
33817         __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
33818         __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
33819         __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
33820         __builtin_ia32_scatterpfqps.
33821         (ix86_expand_builtin): Expand new built-ins.
33822         * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
33823         fix memory access data type.
33824         (*avx512pf_gatherpf<mode>_mask): Ditto.
33825         (*avx512pf_gatherpf<mode>): Ditto.
33826         (avx512pf_scatterpf<mode>): Ditto.
33827         (*avx512pf_scatterpf<mode>_mask): Ditto.
33828         (*avx512pf_scatterpf<mode>): Ditto.
33829         (GATHER_SCATTER_SF_MEM_MODE): New.
33830         (avx512pf_gatherpf<mode>df): Ditto.
33831         (*avx512pf_gatherpf<mode>df_mask): Ditto.
33832         (*avx512pf_scatterpf<mode>df): Ditto.
33834 2014-01-27  Jakub Jelinek  <jakub@redhat.com>
33836         PR bootstrap/59934
33837         * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
33838         know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
33839         reached.
33841 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
33843         * common/config/arm/arm-common.c
33844         (arm_rewrite_mcpu): Handle multiple names.
33845         * config/arm/arm.h
33846         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
33848 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
33850         * gimple-builder.h (create_gimple_tmp): Delete.
33852 2014-01-27  Christian Bruel  <christian.bruel@st.com>
33854         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
33855         words comparisons.
33857 2014-01-26  John David Anglin  <danglin@gcc.gnu.org>
33859         * config/pa/pa.md (call): Generate indirect long calls to non-local
33860         functions when outputing 32-bit code.
33861         (call_value): Likewise except for special call to buggy powf function.
33863         * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
33864         portable runtime and PIC indirect calls.
33865         (pa_output_indirect_call): Remove unnecessary nop from portable runtime
33866         and PIC call sequences.  Use ldo instead of blr to set return register
33867         in PIC call sequence.
33869 2014-01-25  Walter Lee  <walt@tilera.com>
33871         * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
33872         avoid clobbering a live register.
33874 2014-01-25  Walter Lee  <walt@tilera.com>
33876         * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
33877         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
33878         * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
33879         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
33881 2014-01-25  Walter Lee  <walt@tilera.com>
33883         * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
33884         arguments on even registers.
33885         (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
33886         STACK_BOUNDARY.
33887         * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
33888         (BIGGEST_ALIGNMENT): Ditto.
33889         (BIGGEST_FIELD_ALIGNMENT): Ditto.
33891 2014-01-25  Walter Lee  <walt@tilera.com>
33893         * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
33894         insns before bundling.
33895         * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
33897 2014-01-25  Walter Lee  <walt@tilera.com>
33899         * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
33900         PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
33901         * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
33903 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
33905         * config/mips/constraints.md (kl): Delete.
33906         * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
33907         define expands, using...
33908         (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
33909         instructions for MIPS16.
33910         (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
33911         non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
33913 2014-01-25  Walter Lee  <walt@tilera.com>
33915         * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
33916         (clzdi2): Ditto.
33917         (ffsdi2): Ditto.
33919 2014-01-25  Walter Lee  <walt@tilera.com>
33921         * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
33922         (TARGET_EXPAND_TO_RTL_HOOK): Define.
33924 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
33926         * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
33927         Handle XOR.
33929 2014-01-25  Jakub Jelinek  <jakub@redhat.com>
33931         * print-rtl.c (in_call_function_usage): New var.
33932         (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
33933         EXPR_LIST mode as mode and not as reg note name.
33935         PR middle-end/59561
33936         * cfgloopmanip.c (copy_loop_info): If
33937         loop->warned_aggressive_loop_optimizations, make sure
33938         the flag is set in target loop too.
33940 2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
33942         * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
33943         flag_cilkplus.
33944         * builtins.def: Likewise.
33945         * cilk.h (fn_contains_cilk_spawn_p): Likewise.
33946         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
33947         * ira.c (ira_setup_eliminable_regset): Likewise.
33948         * omp-low.c (gate_expand_omp): Likewise.
33949         (execute_lower_omp): Likewise.
33950         (diagnose_sb_0): Likewise.
33951         (gate_diagnose_omp_blocks): Likewise.
33952         (simd_clone_clauses_extract): Likewise.
33953         (gate): Likewise.
33955 2014-01-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33957         * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
33958         correction for little endian...
33959         * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
33960         here.
33962 2014-01-24  Jeff Law  <law@redhat.com>
33964         PR tree-optimization/59919
33965         * tree-vrp.c (find_assert_locations_1): Do not register asserts
33966         for non-returning calls.
33968 2014-01-24  James Greenhalgh  <james.greenhalgh@arm.com>
33970         * common/config/aarch64/aarch64-common.c
33971         (aarch64_rewrite_mcpu): Handle multiple names.
33972         * config/aarch64/aarch64.h
33973         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
33975 2014-01-24  Dodji Seketeli  <dodji@redhat.com>
33977         * input.c (add_file_to_cache_tab): Handle the case where fopen
33978         returns NULL.
33980 2014-01-23  H.J. Lu  <hongjiu.lu@intel.com>
33982         PR target/59929
33983         * config/i386/i386.md (pushsf splitter): Get stack adjustment
33984         from push operand if code of push isn't PRE_DEC.
33986 2014-01-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
33988         PR target/59909
33989         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
33990         -mquad-memory-atomic.  Update -mquad-memory documentation to say
33991         it is only used for non-atomic loads/stores.
33993         * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
33994         -mquad-memory or -mquad-memory-atomic switches.
33996         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
33997         -mquad-memory-atomic to ISA 2.07 support.
33999         * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
34000         to separate support of normal quad word memory operations (ldq, stq)
34001         from the atomic quad word memory operations.
34003         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
34004         support to separate non-atomic quad word operations from atomic
34005         quad word operations.  Disable non-atomic quad word operations in
34006         little endian mode so that we don't have to swap words after the
34007         load and before the store.
34008         (quad_load_store_p): Add comment about atomic quad word support.
34009         (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
34010         options printed with -mdebug=reg.
34012         * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
34013         -mquad-memory-atomic as the test for whether we have quad word
34014         atomic instructions.
34015         (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
34016         or -mp8-vector are used, allow byte/half-word atomic operations.
34018         * config/rs6000/sync.md (load_lockedti): Insure that the address
34019         is a proper indexed or indirect address for the lqarx instruction.
34020         On little endian systems, swap the hi/lo registers after the lqarx
34021         instruction.
34022         (load_lockedpti): Use indexed_or_indirect_operand predicate to
34023         insure the address is valid for the lqarx instruction.
34024         (store_conditionalti): Insure that the address is a proper indexed
34025         or indirect address for the stqcrx. instruction.  On little endian
34026         systems, swap the hi/lo registers before doing the stqcrx.
34027         instruction.
34028         (store_conditionalpti): Use indexed_or_indirect_operand predicate to
34029         insure the address is valid for the stqcrx. instruction.
34031         * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
34032         Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
34033         type of quad memory support is available.
34035 2014-01-23  Vladimir Makarov  <vmakarov@redhat.com>
34037         PR regression/59915
34038         * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
34039         there is a danger of looping.
34041 2014-01-23  Pat Haugen  <pthaugen@us.ibm.com>
34043         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
34044         force flag_ira_loop_pressure if set via command line.
34046 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
34048         * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
34049         (ashr_simd): New builtin handling DI mode.
34050         * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
34051         (aarch64_sshr_simddi): New match pattern.
34052         * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
34053         (vshrd_n_s64): Likewise.
34054         * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
34056 2014-01-23  Nick Clifton  <nickc@redhat.com>
34058         * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
34059         (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
34060         favour of mcu specific scripts.
34061         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
34062         430x multilibs.
34064 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
34065             Alex Velenko  <Alex.Velenko@arm.com>
34067         * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
34068         (vaddv_s16): Likewise.
34069         (vaddv_s32): Likewise.
34070         (vaddv_u8): Likewise.
34071         (vaddv_u16): Likewise.
34072         (vaddv_u32): Likewise.
34073         (vaddvq_s8): Likewise.
34074         (vaddvq_s16): Likewise.
34075         (vaddvq_s32): Likewise.
34076         (vaddvq_s64): Likewise.
34077         (vaddvq_u8): Likewise.
34078         (vaddvq_u16): Likewise.
34079         (vaddvq_u32): Likewise.
34080         (vaddvq_u64): Likewise.
34081         (vaddv_f32): Likewise.
34082         (vaddvq_f32): Likewise.
34083         (vaddvq_f64): Likewise.
34084         (vmaxv_f32): Likewise.
34085         (vmaxv_s8): Likewise.
34086         (vmaxv_s16): Likewise.
34087         (vmaxv_s32): Likewise.
34088         (vmaxv_u8): Likewise.
34089         (vmaxv_u16): Likewise.
34090         (vmaxv_u32): Likewise.
34091         (vmaxvq_f32): Likewise.
34092         (vmaxvq_f64): Likewise.
34093         (vmaxvq_s8): Likewise.
34094         (vmaxvq_s16): Likewise.
34095         (vmaxvq_s32): Likewise.
34096         (vmaxvq_u8): Likewise.
34097         (vmaxvq_u16): Likewise.
34098         (vmaxvq_u32): Likewise.
34099         (vmaxnmv_f32): Likewise.
34100         (vmaxnmvq_f32): Likewise.
34101         (vmaxnmvq_f64): Likewise.
34102         (vminv_f32): Likewise.
34103         (vminv_s8): Likewise.
34104         (vminv_s16): Likewise.
34105         (vminv_s32): Likewise.
34106         (vminv_u8): Likewise.
34107         (vminv_u16): Likewise.
34108         (vminv_u32): Likewise.
34109         (vminvq_f32): Likewise.
34110         (vminvq_f64): Likewise.
34111         (vminvq_s8): Likewise.
34112         (vminvq_s16): Likewise.
34113         (vminvq_s32): Likewise.
34114         (vminvq_u8): Likewise.
34115         (vminvq_u16): Likewise.
34116         (vminvq_u32): Likewise.
34117         (vminnmv_f32): Likewise.
34118         (vminnmvq_f32): Likewise.
34119         (vminnmvq_f64): Likewise.
34121 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
34123         * config/aarch64/aarch64-simd.md
34124         (aarch64_dup_lane<mode>): Correct lane number on big-endian.
34125         (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
34126         (*aarch64_mul3_elt<mode>): Likewise.
34127         (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
34128         (*aarch64_mul3_elt_to_64v2df): Likewise.
34129         (*aarch64_mla_elt<mode>): Likewise.
34130         (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
34131         (*aarch64_mls_elt<mode>): Likewise.
34132         (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
34133         (*aarch64_fma4_elt<mode>): Likewise.
34134         (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
34135         (*aarch64_fma4_elt_to_64v2df): Likewise.
34136         (*aarch64_fnma4_elt<mode>): Likewise.
34137         (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
34138         (*aarch64_fnma4_elt_to_64v2df): Likewise.
34139         (aarch64_sq<r>dmulh_lane<mode>): Likewise.
34140         (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
34141         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
34142         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
34143         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
34144         (aarch64_sqdmull_lane<mode>_internal): Likewise.
34145         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
34147 2013-01-23  Alex Velenko  <Alex.Velenko@arm.com>
34149         * config/aarch64/aarch64-simd.md
34150         (aarch64_be_checked_get_lane<mode>): New define_expand.
34151         * config/aarch64/aarch64-simd-builtins.def
34152         (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
34153         New builtin definition.
34154         * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
34155         Use new safe be builtin.
34157 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
34159         * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
34160         New define_insn.
34161         (aarch64_be_st1<mode>): Likewise.
34162         (aarch_ld1<VALL:mode>): Define_expand modified.
34163         (aarch_st1<VALL:mode>): Likewise.
34164         * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
34165         (UNSPEC_ST1): Likewise.
34167 2014-01-23  David Holsgrove  <david.holsgrove@xilinx.com>
34169         * config/microblaze/microblaze.md: Add trap insn and attribute
34171 2014-01-23  Dodji Seketeli  <dodji@redhat.com>
34173         PR preprocessor/58580
34174         * input.h (location_get_source_line): Take an additional line_size
34175         parameter.
34176         (void diagnostics_file_cache_fini): Declare new function.
34177         * input.c (struct fcache): New type.
34178         (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
34179         New static constants.
34180         (diagnostic_file_cache_init, total_lines_num)
34181         (lookup_file_in_cache_tab, evicted_cache_tab_entry)
34182         (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
34183         (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
34184         (get_next_line, read_next_line, goto_next_line, read_line_num):
34185         New static function definitions.
34186         (diagnostic_file_cache_fini): New function.
34187         (location_get_source_line): Take an additional output line_len
34188         parameter.  Re-write using lookup_or_add_file_to_cache_tab and
34189         read_line_num.
34190         * diagnostic.c (diagnostic_finish): Call
34191         diagnostic_file_cache_fini.
34192         (adjust_line): Take an additional input parameter for the length
34193         of the line, rather than calculating it with strlen.
34194         (diagnostic_show_locus): Adjust the use of
34195         location_get_source_line and adjust_line with respect to their new
34196         signature.  While displaying a line now, do not stop at the first
34197         null byte.  Rather, display the zero byte as a space and keep
34198         going until we reach the size of the line.
34199         * Makefile.in: Add vec.o to OBJS-libcommon
34201 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
34202             Ilya Tocar  <ilya.tocar@intel.com>
34204         * config/i386/avx512fintrin.h (_mm512_kmov): New.
34205         * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
34206         (__builtin_ia32_kmov16): Ditto.
34207         * config/i386/i386.md (UNSPEC_KMOV): New.
34208         (kmovw): Ditto.
34210 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
34212         * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
34213         (_mm512_storeu_si512): Ditto.
34215 2014-01-23  Richard Sandiford  <rdsandiford@googlemail.com>
34217         PR target/52125
34218         * rtl.h (get_referenced_operands): Declare.
34219         * recog.c (get_referenced_operands): New function.
34220         * config/mips/mips.c (mips_reorg_process_insns): Check which asm
34221         operands have been referenced when recording LO_SUM references.
34223 2014-01-22  David Holsgrove  <david.holsgrove@xilinx.com>
34225         * config/microblaze/microblaze.md: Correct bswaphi2 insn.
34227 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
34229         * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
34230         Enable for generic and recent AMD targets.
34232 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
34234         * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
34235         ARG_SIZE note when adjustment was eliminated.
34237 2014-01-22  Jeff Law  <law@redhat.com>
34239         PR tree-optimization/59597
34240         * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
34241         in file.  Accept new argument REGISTERING and use it to modify
34242         dump output appropriately.
34243         (register_jump_thread): Corresponding changes.
34244         (mark_threaded_blocks): Reinstate code to cancel unprofitable
34245         thread paths involving joiner blocks.  Add code to dump cancelled
34246         jump threading paths.
34248 2014-01-22  Vladimir Makarov  <vmakarov@redhat.com>
34250         PR rtl-optimization/59477
34251         * lra-constraints.c (inherit_in_ebb): Process call for living hard
34252         regs.  Update reloads_num and potential_reload_hard_regs for all insns.
34254 2014-01-22  Tom Tromey  <tromey@redhat.com>
34256         * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
34257         PARAMS.
34258         * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
34260 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
34262         PR rtl-optimization/59896
34263         * lra-constraints.c (process_alt_operands): Check unused note for
34264         matched operands of insn with no output reloads.
34266 2014-01-21  Richard Sandiford  <rdsandiford@googlemail.com>
34268         * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
34269         (mips_move_from_gpr_cost): Likewise.
34271 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
34273         PR rtl-optimization/59858
34274         * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
34275         ira_class_hard_regs_num.
34276         (process_alt_operands): Increase reject for dying matched operand.
34278 2014-01-21  Jakub Jelinek  <jakub@redhat.com>
34280         PR target/59003
34281         * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
34282         smaller than size, perform several stores or loads and stores
34283         at dst + count - size to store or copy all of size bytes, rather
34284         than just last modesize bytes.
34286 2014-01-20  DJ Delorie  <dj@redhat.com>
34288         * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
34289         that CLOBBERs are REGs before propogating their values.
34291 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
34293         PR middle-end/59789
34294         * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
34295         (cgraph_inline_failed_type): New function.
34296         * cgraph.h (DEFCIFCODE): Add type.
34297         (cgraph_inline_failed_type_t): New enum.
34298         (cgraph_inline_failed_type): New prototype.
34299         * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
34300         FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
34301         FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
34302         LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
34303         MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
34304         RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
34305         OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
34306         INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
34307         Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
34308         FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
34309         EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
34310         OPTIMIZATION_MISMATCH.
34311         * tree-inline.c (expand_call_inline): Emit errors during
34312         early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
34314 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
34316         PR target/59685
34317         * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
34318         mode attribute in insn output.
34320 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
34322         * output.h (output_constant): Delete.
34323         * varasm.c (output_constant): Make private.
34325 2014-01-20  Alex Velenko  <Alex.Velenko@arm.com>
34327         * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
34329 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
34331         PR middle-end/59860
34332         * tree.h (fold_builtin_strcat): New prototype.
34333         * builtins.c (fold_builtin_strcat): No longer static.  Add len
34334         argument, if non-NULL, don't call c_strlen.  Optimize
34335         directly into __builtin_memcpy instead of __builtin_strcpy.
34336         (fold_builtin_2): Adjust fold_builtin_strcat caller.
34337         * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
34339 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
34341         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
34342         for SImode_address_operand operands, having only a REG argument.
34344 2014-01-20  Marcus Shawcroft  <marcus.shawcroft@arm.com>
34346         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
34347         loader name using mbig-endian.
34348         (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
34350 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
34352         * doc/invoke.texi (-march): Clarify documentation for AArch64.
34353         (-mtune): Likewise.
34354         (-mcpu): Likewise.
34356 2014-01-20  Tejas Belagod  <tejas.belagod@arm.com>
34358         * config/aarch64/aarch64-protos.h
34359         (aarch64_cannot_change_mode_class_ptr): Declare.
34360         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
34361         aarch64_cannot_change_mode_class_ptr): New.
34362         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
34363         backend hook aarch64_cannot_change_mode_class.
34365 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
34367         * common/config/aarch64/aarch64-common.c
34368         (aarch64_handle_option): Don't handle any option order logic here.
34369         * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
34370         selected_cpu, warn on architecture version mismatch.
34371         (aarch64_override_options): Fix parsing order for option strings.
34373 2014-01-20  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
34374             Iain Sandoe  <iain@codesourcery.com>
34376         PR bootstrap/59496
34377         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
34378         warning.  Amend comment to reflect current functionality.
34380 2014-01-20  Richard Biener  <rguenther@suse.de>
34382         PR middle-end/59860
34383         * builtins.c (fold_builtin_strcat): Remove case better handled
34384         by tree-ssa-strlen.c.
34386 2014-01-20  Alan Lawrence  <alan.lawrence@arm.com>
34388         * config/aarch64/aarch64.opt
34389         (mcpu, march, mtune): Make case-insensitive.
34391 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
34393         PR target/59880
34394         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
34395         if operands[1] is a REG or ZERO_EXTEND of a REG.
34397 2014-01-19  Jan Hubicka  <hubicka@ucw.cz>
34399         * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
34401 2014-01-19  John David Anglin  <danglin@gcc.gnu.org>
34403         * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
34404         long non-pic millicode calls.
34406 2014-01-19  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
34408         * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
34410 2014-01-19  Kito Cheng  <kito@0xlab.org>
34412         * builtins.c (expand_movstr): Check movstr expand done or fail.
34414 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
34415             H.J. Lu  <hongjiu.lu@intel.com>
34417         PR target/59379
34418         * config/i386/i386.md (*lea<mode>): Zero-extend return register
34419         to DImode for zero-extended addresses.
34421 2014-01-19  Jakub Jelinek  <jakub@redhat.com>
34423         PR rtl-optimization/57763
34424         * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
34425         on the new indirect jump_insn and increment LABEL_NUSES (label).
34427 2014-01-18  H.J. Lu  <hongjiu.lu@intel.com>
34429         PR bootstrap/59580
34430         PR bootstrap/59583
34431         * config.gcc (x86_archs): New variable.
34432         (x86_64_archs): Likewise.
34433         (x86_cpus): Likewise.
34434         Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
34435         --with-arch/--with-cpu= options.
34436         Support --with-arch=/--with-cpu={nehalem,westmere,
34437         sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
34439 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
34441         * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
34442         and PROCESSOR_ATHLON to simplify code.  Move "memory" calculation.
34444 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
34446         * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
34448 2014-01-18  Jakub Jelinek  <jakub@redhat.com>
34450         PR target/58944
34451         * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
34452         clear cpp_get_options (parse_in)->warn_unused_macros for
34453         ix86_target_macros_internal with cpp_define.
34455 2014-01-18  Richard Sandiford  <rdsandiford@googlemail.com>
34457         * jump.c (delete_related_insns): Keep (use (insn))s.
34458         * reorg.c (redundant_insn): Check for barriers too.
34460 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
34462         * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
34464 2014-01-17  John David Anglin  <danglin@gcc.gnu.org>
34466         * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
34467         call to $$dyncall when TARGET_LONG_CALLS is true.
34469 2014-01-17  Jeff Law  <law@redhat.com>
34471         * ree.c (combine_set_extension): Temporarily disable test for
34472         changing number of hard registers.
34474 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
34476         PR middle-end/58125
34477         * ipa-inline-analysis.c (inline_free_summary):
34478         Do not free summary of aliases.
34480 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
34482         PR middle-end/59706
34483         * gimplify.c (gimplify_expr): Use create_tmp_var
34484         instead of create_tmp_var_raw.  If cond doesn't have
34485         integral type, don't add the IFN_ANNOTATE builtin at all.
34487 2014-01-17  Martin Jambor  <mjambor@suse.cz>
34489         PR ipa/59736
34490         * ipa-cp.c (prev_edge_clone): New variable.
34491         (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
34492         Also resize prev_edge_clone vector.
34493         (ipcp_edge_duplication_hook): Also update prev_edge_clone.
34494         (ipcp_edge_removal_hook): New function.
34495         (ipcp_driver): Register ipcp_edge_removal_hook.
34497 2014-01-17  Andrew Pinski  <apinski@cavium.com>
34498             Steve Ellcey  <sellcey@mips.com>
34500         PR target/59462
34501         * config/mips/mips.c (mips_print_operand): Check operand mode instead
34502         of operator mode.
34504 2014-01-17  Jeff Law  <law@redhat.com>
34506         PR middle-end/57904
34507         * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
34508         so that pass_ccp runs first.
34510 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
34512         * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
34513         (ix86_adjust_cost): Use !TARGET_XXX.
34514         (do_reorder_for_imul): Likewise.
34515         (swap_top_of_ready_list): Likewise.
34516         (ix86_sched_reorder): Likewise.
34518 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
34520         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
34521         PROCESSOR_INTEL.  Treat like PROCESSOR_GENERIC.
34522         * config/i386/i386.c (intel_memcpy): New.  Duplicate slm_memcpy.
34523         (intel_memset): New.  Duplicate slm_memset.
34524         (intel_cost): New.  Duplicate slm_cost.
34525         (m_INTEL): New macro.
34526         (processor_target_table): Add "intel".
34527         (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
34528         with PROCESSOR_INTEL for "intel".
34529         (ix86_lea_outperforms): Support PROCESSOR_INTEL.  Duplicate
34530         PROCESSOR_SILVERMONT.
34531         (ix86_issue_rate): Likewise.
34532         (ix86_adjust_cost): Likewise.
34533         (ia32_multipass_dfa_lookahead): Likewise.
34534         (swap_top_of_ready_list): Likewise.
34535         (ix86_sched_reorder): Likewise.
34536         (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
34537         instead of TARGET_OPT_AGU.
34538         * config/i386/i386.h (TARGET_INTEL): New.
34539         (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
34540         (processor_type): Add PROCESSOR_INTEL.
34541         * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
34542         Add X86_TUNE_AVOID_LEA_FOR_ADDR.
34544 2014-01-17  Marek Polacek  <polacek@redhat.com>
34546         PR c/58346
34547         * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
34548         size is zero.
34550 2014-01-17  Richard Biener  <rguenther@suse.de>
34552         PR tree-optimization/46590
34553         * opts.c (default_options_table): Add entries for
34554         OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
34555         all enabled at -O1 but not for -Og.
34556         * common.opt (fbranch-count-reg): Remove Init(1).
34557         (fmove-loop-invariants): Likewise.
34558         (ftree-pta): Likewise.
34560 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
34562         * config/i386/i386.c (ix86_data_alignment): For compatibility with
34563         (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
34564         decls to at least the GCC 4.8 used alignments.
34566         PR fortran/59440
34567         * tree-nested.c (convert_nonlocal_reference_stmt,
34568         convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
34569         of GIMPLE_BIND stmts, adjust associated decls.
34571 2014-01-17  Richard Biener  <rguenther@suse.de>
34573         PR tree-optimization/46590
34574         * vec.h (vec<>::bseach): New member function implementing
34575         binary search according to C89 bsearch.
34576         (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
34577         * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
34578         bitmap pointer again.  Make accesses_in_loop a flat array.
34579         (mem_ref_obstack): New global.
34580         (outermost_indep_loop): Adjust for mem_ref->stored changes.
34581         (mark_ref_stored): Likewise.
34582         (ref_indep_loop_p_2): Likewise.
34583         (set_ref_stored_in_loop): New helper function.
34584         (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
34585         (memref_free): Adjust.
34586         (record_mem_ref_loc): Simplify.
34587         (gather_mem_refs_stmt): Adjust.
34588         (sort_locs_in_loop_postorder_cmp): New function.
34589         (analyze_memory_references): Sort accesses_in_loop after
34590         loop postorder number.
34591         (find_ref_loc_in_loop_cmp): New function.
34592         (for_all_locs_in_loop): Find relevant cluster of locs in
34593         accesses_in_loop and iterate without recursion.
34594         (execute_sm): Avoid uninit warning.
34595         (struct ref_always_accessed): Simplify.
34596         (ref_always_accessed::operator ()): Likewise.
34597         (ref_always_accessed_p): Likewise.
34598         (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
34599         loop postorder numbers here.
34600         (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
34601         numbers.
34603 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
34605         PR c++/57945
34606         * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
34607         on decls for which assemble_alias has been called.
34609 2014-01-17  Nick Clifton  <nickc@redhat.com>
34611         * config/msp430/msp430.opt: (mcpu): New option.
34612         * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
34613         (msp430_option_override): Parse target_cpu.  If the MCU name
34614         matches a generic string, clear target_mcu.
34615         (msp430_attr): Allow numeric interrupt values up to 63.
34616         (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
34617         * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
34618         option.
34619         * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
34620         Add mcpu matches.
34621         * config/msp430/msp430.md (popm): Use %J rather than %I.
34622         (addsi3): Use msp430_nonimmediate_operand for operand 2.
34623         (addhi_cy_i): Use immediate_operand for operand 2.
34624         * doc/invoke.texi: Document -mcpu option.
34626 2014-01-17  Richard Biener  <rguenther@suse.de>
34628         PR rtl-optimization/38518
34629         * df.h (df_analyze_loop): Declare.
34630         * df-core.c: Include cfgloop.h.
34631         (df_analyze_1): Split out main part of df_analyze.
34632         (df_analyze): Adjust.
34633         (loop_inverted_post_order_compute): New function.
34634         (loop_post_order_compute): Likewise.
34635         (df_analyze_loop): New function avoiding whole-function
34636         postorder computes.
34637         * loop-invariant.c (find_defs): Use df_analyze_loop.
34638         (find_invariants): Adjust.
34639         * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
34641 2014-01-17  Zhenqiang Chen  <zhenqiang.chen@arm.com>
34643         * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
34644         (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
34646 2014-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
34648         * ipa-ref.c (ipa_remove_stmt_references): Fix references
34649         traversal when removing references.
34651 2014-01-16  Jan Hubicka  <hubicka@ucw.cz>
34653         PR ipa/59775
34654         * tree.c (get_binfo_at_offset): Look harder for virtual bases.
34656 2014-01-16  Bernd Schmidt  <bernds@codesourcery.com>
34658         PR middle-end/56791
34659         * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
34660         pushing a reload for an autoinc when we had previously reloaded an
34661         inner part of the address.
34663 2014-01-16  Jakub Jelinek  <jakub@redhat.com>
34665         * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
34666         field.
34667         (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
34668         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
34669         when not giving up or versioning for alias only because of
34670         loop->safelen.
34671         (vect_analyze_data_ref_dependences): Set to true.
34672         * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
34673         is a GIMPLE_PHI.
34674         (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
34675         LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
34676         to the condition.
34678         PR middle-end/58344
34679         * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
34681         PR target/59839
34682         * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
34683         operand 0 predicate for gathers, use a new pseudo as subtarget.
34685 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
34687         PR middle-end/59609
34688         * lra-constraints.c (process_alt_operands): Add printing debug info.
34689         Check absence of input/output reloads for matched operands too.
34691 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
34693         PR rtl-optimization/59835
34694         * ira.c (ira_init_register_move_cost): Increase cost for
34695         impossible modes.
34697 2014-01-16  Alan Lawrence  <alan.lawrence@arm.com>
34699         * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
34701 2014-01-16  Richard Earnshaw  <rearnsha@arm.com>
34703         PR target/59780
34704         * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
34705         non-register objects.  Use gen_(high/low)part more consistently.
34706         Fix assertions.
34708 2014-01-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
34710         PR target/59844
34711         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
34712         endian support, remove tests for WORDS_BIG_ENDIAN.
34713         (p8_mfvsrd_3_<mode>): Likewise.
34714         (reload_gpr_from_vsx<mode>): Likewise.
34715         (reload_gpr_from_vsxsf): Likewise.
34716         (p8_mfvsrd_4_disf): Likewise.
34718 2014-01-16  Richard Biener  <rguenther@suse.de>
34720         PR rtl-optimization/46590
34721         * lcm.c (compute_antinout_edge): Use postorder iteration.
34722         (compute_laterin): Use inverted postorder iteration.
34724 2014-01-16  Nick Clifton  <nickc@redhat.com>
34726         PR middle-end/28865
34727         * varasm.c (output_constant): Return the number of bytes actually
34728         emitted.
34729         (output_constructor_array_range): Update the field size with the
34730         number of bytes emitted by output_constant.
34731         (output_constructor_regular_field): Likewise.  Also do not
34732         complain if the total number of bytes emitted is now greater
34733         than the expected fieldpos.
34734         * output.h (output_constant): Update prototype and descriptive comment.
34736 2014-01-16  Marek Polacek  <polacek@redhat.com>
34738         PR middle-end/59827
34739         * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
34740         it is error_mark_node.
34742 2014-01-15  Uros Bizjak  <ubizjak@gmail.com>
34744         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
34745         VALID_AVX256_REG_OR_OI_MODE.
34747 2014-01-15  Pat Haugen  <pthaugen@us.ibm.com>
34749         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
34750         current procedure should be profiled.
34752 2014-01-15  Andrew Pinski  <apinski@cavium.com>
34754         * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
34755         of moving from/to the STACK_REG register class.
34757 2014-01-15  Richard Henderson  <rth@redhat.com>
34759         PR debug/54694
34760         * reginfo.c (global_regs_decl): Globalize.
34761         * rtl.h (global_regs_decl): Declare.
34762         * ira.c (do_reload): Diagnose frame_pointer_needed and it
34763         reserved via global_regs.
34765 2014-01-15  Teresa Johnson  <tejohnson@google.com>
34767         * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
34769 2014-01-15  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
34771         * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
34772         and vmulosh rather than call gen_vec_widen_smult_*.
34773         (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
34774         than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
34775         (vec_widen_smult_even_v16qi): Likewise.
34776         (vec_widen_umult_even_v8hi): Likewise.
34777         (vec_widen_smult_even_v8hi): Likewise.
34778         (vec_widen_umult_odd_v16qi): Likewise.
34779         (vec_widen_smult_odd_v16qi): Likewise.
34780         (vec_widen_umult_odd_v8hi): Likewise.
34781         (vec_widen_smult_odd_v8hi): Likewise.
34782         (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
34783         vmuloub rather than call gen_vec_widen_umult_*.
34784         (vec_widen_umult_lo_v16qi): Likewise.
34785         (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
34786         vmulosb rather than call gen_vec_widen_smult_*.
34787         (vec_widen_smult_lo_v16qi): Likewise.
34788         (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
34789         rather than call gen_vec_widen_umult_*.
34790         (vec_widen_umult_lo_v8hi): Likewise.
34791         (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
34792         rather than call gen_vec_widen_smult_*.
34793         (vec_widen_smult_lo_v8hi): Likewise.
34795 2014-01-15  Jeff Law  <law@redhat.com>
34797         PR tree-optimization/59747
34798         * ree.c (find_and_remove_re): Properly handle case where a second
34799         eliminated extension requires widening a copy created for elimination
34800         of a prior extension.
34801         (combine_set_extension): Ensure that the number of hard regs needed
34802         for a destination register does not change when we widen it.
34804 2014-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
34806         * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
34807         (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
34808         (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
34809         (arm*-*-rtems*): Use t-rtems from existing tmake_file.
34810         (avr-*-rtems*): Likewise.
34811         (bfin*-rtems*): Likewise.
34812         (moxie-*-rtems*): Likewise.
34813         (h8300-*-rtems*): Likewise.
34814         (i[34567]86-*-rtems*): Likewise.
34815         (lm32-*-rtems*): Likewise.
34816         (m32r-*-rtems*): Likewise.
34817         (m68k-*-rtems*): Likewise.
34818         (microblaze*-*-rtems*): Likewise.
34819         (mips*-*-rtems*): Likewise.
34820         (powerpc-*-rtems*): Likewise.
34821         (sh-*-rtems*): Likewise.
34822         (sparc-*-rtems*): Likewise.
34823         (sparc64-*-rtems*): Likewise.
34824         (v850-*-rtems*): Likewise.
34825         (m32c-*-rtems*): Likewise.
34827 2014-01-15  Vladimir Makarov  <vmakarov@redhat.com>
34829         PR rtl-optimization/59511
34830         * ira.c (ira_init_register_move_cost): Use memory costs for some
34831         cases of register move cost calculations.
34832         * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
34833         instead of BB frequency.
34834         * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
34835         * lra-assigns.c (find_hard_regno_for): Ditto.
34837 2014-01-15  Richard Biener  <rguenther@suse.de>
34839         PR tree-optimization/59822
34840         * tree-vect-stmts.c (hoist_defs_of_uses): New function.
34841         (vectorizable_load): Use it to hoist defs of uses of invariant
34842         loads out of the loop.
34844 2014-01-15  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
34845             Kugan Vivekanandarajah  <kuganv@linaro.org>
34847         PR target/59695
34848         * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
34849         truncation.
34851 2014-01-15  Richard Biener  <rguenther@suse.de>
34853         PR rtl-optimization/59802
34854         * lcm.c (compute_available): Use inverted postorder to seed
34855         the initial worklist.
34857 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34859         PR target/59803
34860         * config/s390/s390.c (s390_preferred_reload_class): Don't return
34861         ADDR_REGS for invalid symrefs in non-PIC code.
34863 2014-01-15  Jakub Jelinek  <jakub@redhat.com>
34865         PR other/58712
34866         * builtins.c (determine_block_size): Initialize *probable_max_size
34867         even if len_rtx is CONST_INT.
34869 2014-01-14  Andrew Pinski  <apinski@cavium.com>
34871         * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
34872         * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
34873         (cortexa53_tunings): Likewise.
34874         (aarch64_sched_issue_rate): New function.
34875         (TARGET_SCHED_ISSUE_RATE): Define.
34877 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
34879         * ira-costs.c (find_costs_and_classes): Add missed
34880         ira_init_register_move_cost_if_necessary.
34882 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
34884         PR target/59787
34885         * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
34887 2014-01-14  H.J. Lu  <hongjiu.lu@intel.com>
34889         PR target/59794
34890         * config/i386/i386.c (type_natural_mode): Add a bool parameter
34891         to indicate if type is used for function return value.  Warn ABI
34892         change if the vector mode isn't available for function return value.
34893         (ix86_function_arg_advance): Pass false to type_natural_mode.
34894         (ix86_function_arg): Likewise.
34895         (ix86_gimplify_va_arg): Likewise.
34896         (function_arg_32): Don't warn ABI change.
34897         (ix86_function_value): Pass true to type_natural_mode.
34898         (ix86_return_in_memory): Likewise.
34899         (ix86_struct_value_rtx): Removed.
34900         (TARGET_STRUCT_VALUE_RTX): Likewise.
34902 2014-01-14  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
34904         * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
34905         converting a conditional jump into a conditional return.
34907 2014-01-14  Richard Biener  <rguenther@suse.de>
34909         PR tree-optimization/58921
34910         PR tree-optimization/59006
34911         * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
34912         hoisting invariant stmts.
34913         * tree-vect-stmts.c (vectorizable_load): Insert the splat of
34914         invariant loads on the preheader edge if possible.
34916 2014-01-14  Joey Ye  <joey.ye@arm.com>
34918         * doc/plugin.texi (Building GCC plugins): Update to C++.
34920 2014-01-14  Kirill Yukhin  <kirill.yukhin@intel.com>
34922         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
34923         (_mm_rcp28_round_ss): Ditto.
34924         (_mm_rsqrt28_round_sd): Ditto.
34925         (_mm_rsqrt28_round_ss): Ditto.
34926         (_mm_rcp28_sd): Ditto.
34927         (_mm_rcp28_ss): Ditto.
34928         (_mm_rsqrt28_sd): Ditto.
34929         (_mm_rsqrt28_ss): Ditto.
34930         * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
34931         * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
34932         * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
34933         (IX86_BUILTIN_RCP28SD): Ditto.
34934         (IX86_BUILTIN_RCP28SS): Ditto.
34935         (IX86_BUILTIN_RSQRT28SD): Ditto.
34936         (IX86_BUILTIN_RSQRT28SS): Ditto.
34937         (bdesc_special_args): Define __builtin_ia32_movntdqa512,
34938         __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
34939         __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
34940         (ix86_expand_special_args_builtin): Expand new FTYPE.
34941         * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
34942         (srcp14<mode>): Make insn unary.
34943         (avx512f_vmscalef<mode><round_name>): Use substed predicate.
34944         (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
34945         (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
34946         (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
34947         (avx512er_exp2<mode><mask_name><round_saeonly_name>):
34948         Fix rounding: make it SAE only.
34949         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
34950         Ditto.
34951         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
34952         Ditto.
34953         (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
34954         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
34955         (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
34956         * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
34957         (round_saeonly_mask_scalar_operand4): Ditto.
34958         (round_saeonly_mask_scalar_op3): Ditto.
34959         (round_saeonly_mask_scalar_op4): Ditto.
34961 2014-01-13  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
34963         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
34964         Implement -maltivec=be for vec_insert and vec_extract.
34966 2014-01-10  DJ Delorie  <dj@redhat.com>
34968         * config/msp430/msp430.md (call_internal): Don't allow memory
34969         references with SP as the base register.
34970         (call_value_internal): Likewise.
34971         * config/msp430/constraints.md (Yc): New.  For memory references
34972         that don't use SP as a base register.
34974         * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
34975         "an integer without a # prefix"
34976         * config/msp430/msp430.md (epilogue_helper): Use it.
34978 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
34980         PR target/59617
34981         * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
34982         AVX512F gather builtins.
34983         * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
34984         on gather decls with INTEGER_TYPE masktype.
34985         (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
34986         directly into the builtin rather than hoisting it before loop.
34988         PR tree-optimization/59387
34989         * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
34990         (scev_const_prop): If folded_casts and type has undefined overflow,
34991         use force_gimple_operand instead of force_gimple_operand_gsi and
34992         for each added stmt if it is assign with
34993         arith_code_with_undefined_signed_overflow, call
34994         rewrite_to_defined_overflow.
34995         * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
34996         gimple-fold.h instead.
34997         (arith_code_with_undefined_signed_overflow,
34998         rewrite_to_defined_overflow): Moved to ...
34999         * gimple-fold.c (arith_code_with_undefined_signed_overflow,
35000         rewrite_to_defined_overflow): ... here.  No longer static.
35001         Include gimplify-me.h.
35002         * gimple-fold.h (arith_code_with_undefined_signed_overflow,
35003         rewrite_to_defined_overflow): New prototypes.
35005 2014-01-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35007         * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
35009 2014-01-13  Eric Botcazou  <ebotcazou@adacore.com>
35011         * builtins.c (get_object_alignment_2): Minor tweak.
35012         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
35014 2014-01-13  Christian Bruel  <christian.bruel@st.com>
35016         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
35017         optimized non constant lengths.
35019 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
35021         PR libgomp/59194
35022         * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
35023         load as __atomic_load_N if possible.
35025 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
35027         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
35028         target parameter.
35029         (rs6000_expand_builtin): Adjust call.
35031 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
35033         PR target/58115
35034         * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
35035         * config/rs6000/rs6000.c: Include target-globals.h.
35036         (rs6000_set_current_function): Instead of doing target_reinit
35037         unconditionally, use save_target_globals_default_opts and
35038         restore_target_globals.
35040         * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
35041         FPSCR.
35042         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
35043         (rs6000_expand_builtin): Handle mffs and mtfsf.
35044         (rs6000_init_builtins): Define mffs and mtfsf.
35045         * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
35046         (rs6000_mffs): New pattern.
35047         (rs6000_mtfsf): New pattern.
35049 2014-01-11  Bin Cheng  <bin.cheng@arm.com>
35051         * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
35052         Start narrowing with START.  Apply candidate-use pair
35053         and check overall cost in narrowing.
35054         (iv_ca_prune): Pass new argument.
35056 2014-01-10  Jeff Law  <law@redhat.com>
35058         PR middle-end/59743
35059         * ree.c (combine_reaching_defs): Ensure the defining statement
35060         occurs before the extension when optimizing extensions with
35061         different source and destination hard registers.
35063 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
35065         PR ipa/58585
35066         * ipa-devirt.c (build_type_inheritance_graph): Also add types of
35067         vtables into the type inheritance graph.
35069 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
35071         PR rtl-optimization/59754
35072         * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
35073         modes in the REGNO != REGNO case.
35075 2014-01-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
35077         * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
35079 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
35081         PR tree-optimization/59745
35082         * tree-predcom.c (tree_predictive_commoning_loop): Call
35083         free_affine_expand_cache if giving up because components is NULL.
35085         * target-globals.c (save_target_globals): Allocate < 4KB structs using
35086         GC in payload of target_globals struct instead of allocating them on
35087         the heap and the larger structs separately using GC.
35088         * target-globals.h (struct target_globals): Make regs, hard_regs,
35089         reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
35090         of GTY((skip)) and change type to void *.
35091         (reset_target_globals): Cast loads from those fields to corresponding
35092         types.
35094 2014-01-10  Steve Ellcey  <sellcey@mips.com>
35096         PR plugins/59335
35097         * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
35098         gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
35099         tree-ssanames.h, print-tree.h, varasm.h, and context.h.
35101 2014-01-10  Richard Earnshaw  <rearnsha@arm.com>
35103         PR target/59744
35104         * aarch64-modes.def (CC_Zmode): New flags mode.
35105         * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
35106         represents an equality.
35107         (aarch64_get_condition_code): Handle CC_Zmode.
35108         * aarch64.md (compare_neg<mode>): Restrict to equality operations.
35110 2014-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
35112         * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
35113         extraction in good case.
35115 2014-01-10  Richard Biener  <rguenther@suse.de>
35117         PR tree-optimization/59374
35118         * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
35119         checking after SLP discovery.  Mark stmts not participating
35120         in any SLP instance properly.
35122 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35124         * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
35125         when handling a SET rtx.
35127 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35129         * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
35130         (cortex-a57): Likewise.
35131         (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
35133 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35135         * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
35136         non-iwmmxt builtins.
35138 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
35140         PR ipa/58252
35141         PR ipa/59226
35142         * ipa-devirt.c record_target_from_binfo): Take as argument
35143         stack of binfos and lookup matching one for virtual inheritance.
35144         (possible_polymorphic_call_targets_1): Update.
35146 2014-01-10  Huacai Chen  <chenhc@lemote.com>
35148         * config/mips/driver-native.c (host_detect_local_cpu): Handle new
35149         kernel strings for Loongson-2E/2F/3A.
35151 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
35153         PR middle-end/59670
35154         * tree-vect-data-refs.c (vect_analyze_data_refs): Check
35155         is_gimple_call before calling gimple_call_internal_p.
35157 2014-01-09  Steve Ellcey  <sellcey@mips.com>
35159         * Makefile.in (TREE_FLOW_H): Remove.
35160         (TREE_SSA_H): Add file names from tree-flow.h.
35161         * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
35162         * tree.h: Remove tree-flow.h reference.
35163         * hash-table.h: Remove tree-flow.h reference.
35164         * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
35165         reference with tree-ssa-loop.h.
35167 2014-01-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
35169         * doc/invoke.texi: Add -maltivec={be,le} options, and document
35170         default element-order behavior for -maltivec.
35171         * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
35172         * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
35173         that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
35174         when targeting big endian, at least for now.
35175         * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
35177 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
35179         PR middle-end/47735
35180         * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
35181         var satisfies use_register_for_decl, just take into account type
35182         alignment, rather than decl alignment.
35184         PR tree-optimization/59622
35185         * gimple-fold.c (gimple_fold_call): Fix a typo in message.  For
35186         __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
35187         __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
35188         Don't devirtualize for inplace at all.  For targets.length () == 1,
35189         if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
35191 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
35193         * config/i386/i386.md (cpu): Remove the unused btver1.
35195 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
35197         * gdbasan.in: Put a breakpoint on __sanitizer::Report.
35199 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
35201         PR target/58115
35202         * tree-core.h (struct target_globals): New forward declaration.
35203         (struct tree_target_option): Add globals field.
35204         * tree.h (TREE_TARGET_GLOBALS): Define.
35205         (prepare_target_option_nodes_for_pch): New prototype.
35206         * target-globals.h (struct target_globals): Define even if
35207         !SWITCHABLE_TARGET.
35208         * tree.c (prepare_target_option_node_for_pch,
35209         prepare_target_option_nodes_for_pch): New functions.
35210         * config/i386/i386.h (SWITCHABLE_TARGET): Define.
35211         * config/i386/i386.c: Include target-globals.h.
35212         (ix86_set_current_function): Instead of doing target_reinit
35213         unconditionally, use save_target_globals_default_opts and
35214         restore_target_globals.
35216 2014-01-09  Richard Biener  <rguenther@suse.de>
35218         PR tree-optimization/59715
35219         * tree-cfg.h (split_critical_edges): Declare.
35220         * tree-cfg.c (split_critical_edges): Export.
35221         * tree-ssa-sink.c (execute_sink_code): Split critical edges.
35223 2014-01-09  Max Ostapenko  <m.ostapenko@partner.samsung.com>
35225         * cfgexpand.c (expand_stack_vars): Optionally disable
35226         asan stack protection.
35227         (expand_used_vars): Likewise.
35228         (partition_stack_vars): Likewise.
35229         * asan.c (asan_emit_stack_protection): Optionally disable
35230         after return stack usage.
35231         (instrument_derefs): Optionally disable memory access instrumentation.
35232         (instrument_builtin_call): Likewise.
35233         (instrument_strlen_call): Likewise.
35234         (asan_protect_global): Optionally disable global variables protection.
35235         * doc/invoke.texi: Added doc for new options.
35236         * params.def: Added new options.
35237         * params.h: Likewise.
35239 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
35241         PR rtl-optimization/59724
35242         * ifcvt.c (cond_exec_process_if_block): Don't call
35243         flow_find_head_matching_sequence with 0 longest_match.
35244         * cfgcleanup.c (flow_find_head_matching_sequence): Count even
35245         non-active insns if !stop_after.
35246         (try_head_merge_bb): Revert 2014-01-07 changes.
35248 2014-01-08  Jeff Law  <law@redhat.com>
35250         * ree.c (get_sub_rtx): New function, extracted from...
35251         (merge_def_and_ext): Here.
35252         (combine_reaching_defs): Use get_sub_rtx.
35254 2014-01-08  Eric Botcazou  <ebotcazou@adacore.com>
35256         * cgraph.h (varpool_variable_node): Do not choke on null node.
35258 2014-01-08  Catherine Moore  <clm@codesourcery.com>
35260         * config/mips/mips.md (simple_return): Attempt to use JRC
35261         for microMIPS.
35262         * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
35264 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
35266         PR rtl-optimization/59137
35267         * reorg.c (steal_delay_list_from_target): Call update_block for
35268         elided insns.
35269         (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
35271 2014-01-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
35273         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
35274         two duplicate entries.
35276 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
35278         Revert:
35279         2012-10-07  Richard Sandiford  <rdsandiford@googlemail.com>
35281         * config/mips/mips.c (mips_truncated_op_cost): New function.
35282         (mips_rtx_costs): Adjust test for BADDU.
35283         * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
35285         2012-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
35287         * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
35288         (*baddu_si): ...this new pattern.
35290 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
35292         PR ipa/59722
35293         * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
35295 2014-01-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>
35297         PR middle-end/57748
35298         * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
35299         inner_reference_p.
35300         (expand_expr, expand_normal): Adjust.
35301         * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
35302         inner_reference_p. Use inner_reference_p to expand inner references.
35303         (store_expr): Adjust.
35304         * cfgexpand.c (expand_call_stmt): Adjust.
35306 2014-01-08  Rong Xu  <xur@google.com>
35308         * gcov-io.c (gcov_var): Move from gcov-io.h.
35309         (gcov_position): Ditto.
35310         (gcov_is_error): Ditto.
35311         (gcov_rewrite): Ditto.
35312         * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
35313         only part to libgcc/libgcov.h.
35315 2014-01-08  Marek Polacek  <polacek@redhat.com>
35317         PR middle-end/59669
35318         * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
35320 2014-01-08  Marek Polacek  <polacek@redhat.com>
35322         PR sanitizer/59667
35323         * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
35325 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
35327         PR rtl-optimization/59649
35328         * stor-layout.c (get_mode_bounds): For BImode return
35329         0 and STORE_FLAG_VALUE.
35331 2014-01-08  Richard Biener  <rguenther@suse.de>
35333         PR middle-end/59630
35334         * gimple.h (is_gimple_builtin_call): Remove.
35335         (gimple_builtin_call_types_compatible_p): New.
35336         (gimple_call_builtin_p): New overload.
35337         * gimple.c (is_gimple_builtin_call): Remove.
35338         (validate_call): Rename to ...
35339         (gimple_builtin_call_types_compatible_p): ... this and export.  Also
35340         check return types.
35341         (validate_type): New static function.
35342         (gimple_call_builtin_p): New overload and adjust.
35343         * gimple-fold.c (gimple_fold_builtin): Fold the return value.
35344         (gimple_fold_call): Likewise.  Use gimple_call_builtin_p.
35345         (gimple_fold_stmt_to_constant_1): Likewise.
35346         * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
35348 2014-01-08  Richard Biener  <rguenther@suse.de>
35350         PR middle-end/59471
35351         * gimplify.c (gimplify_expr): Gimplify register-register type
35352         VIEW_CONVERT_EXPRs to separate stmts.
35354 2014-01-07  Jeff Law  <law@redhat.com>
35356         PR middle-end/53623
35357         * ree.c (combine_set_extension): Handle case where source
35358         and destination registers in an extension insn are different.
35359         (combine_reaching_defs): Allow source and destination registers
35360         in extension to be different under limited circumstances.
35361         (add_removable_extension): Remove restriction that the
35362         source and destination registers in the extension are the same.
35363         (find_and_remove_re): Emit a copy from the extension's
35364         destination to its source after the defining insn if
35365         the source and destination registers are different.
35367         PR middle-end/59285
35368         * ifcvt.c (merge_if_block): If we are merging a block with more than
35369         one successor with a block with no successors, remove any BARRIER
35370         after the second block.
35372 2014-01-07  Dan Xio Qiang  <ziyan01@163.com>
35374         * hw-doloop.c (reorg_loops): Release the bitmap obstack.
35376 2014-01-07  John David Anglin  <danglin@gcc.gnu.org>
35378         PR target/59652
35379         * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
35380         for 14-bit register offsets when INT14_OK_STRICT is false.
35382 2014-01-07  Roland Stigge  <stigge@antcom.de>
35383             Michael Meissner  <meissner@linux.vnet.ibm.com>
35385         PR 57386/target
35386         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
35387         Only check TFmode for SPE constants.  Don't check TImode or TDmode.
35389 2014-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
35391         * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
35392         -mcpu.
35394 2014-01-07  Yufeng Zhang  <yufeng.zhang@arm.com>
35396         * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
35397         with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
35398         rtx is const0_rtx or not.
35400 2014-01-07  Richard Sandiford  <rdsandiford@googlemail.com>
35402         PR target/58115
35403         * target-globals.c (save_target_globals): Remove this_fn_optab
35404         handling.
35405         * toplev.c: Include optabs.h.
35406         (target_reinit): Temporarily restore the global options if another
35407         set of options are in force.
35409 2014-01-07  Jakub Jelinek  <jakub@redhat.com>
35411         PR rtl-optimization/58668
35412         * cfgcleanup.c (flow_find_cross_jump): Don't count
35413         any jumps if dir_p is NULL.  Remove p1 variable, use active_insn_p
35414         to determine what is counted.
35415         (flow_find_head_matching_sequence): Use active_insn_p to determine
35416         what is counted.
35417         (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
35418         counting change.
35419         * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
35420         determine what is counted.
35422         PR tree-optimization/59643
35423         * tree-predcom.c (split_data_refs_to_components): If one dr is
35424         read and one write, determine_offset fails and the write isn't
35425         in the bad component, just put the read into the bad component.
35427 2014-01-07  Mike Stump  <mikestump@comcast.net>
35428             Jakub Jelinek  <jakub@redhat.com>
35430         PR pch/59436
35431         * tree-core.h (struct tree_optimization_option): Change optabs
35432         type from unsigned char * to void *.
35433         * optabs.c (init_tree_optimization_optabs): Adjust
35434         TREE_OPTIMIZATION_OPTABS initialization.
35436 2014-01-06  Jakub Jelinek  <jakub@redhat.com>
35438         PR target/59644
35439         * config/i386/i386.h (struct machine_function): Add
35440         no_drap_save_restore field.
35441         * config/i386/i386.c (ix86_save_reg): Use
35442         !cfun->machine->no_drap_save_restore instead of
35443         crtl->stack_realign_needed.
35444         (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
35445         this function clears frame_pointer_needed.  Set
35446         cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
35447         and DRAP reg is needed.
35449 2014-01-06  Marek Polacek  <polacek@redhat.com>
35451         PR c/57773
35452         * doc/implement-c.texi: Mention that other integer types are
35453         permitted as bit-field types in strictly conforming mode.
35455 2014-01-06  Felix Yang  <fei.yang0953@gmail.com>
35457         * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
35458         is newly allocated.
35460 2014-01-06  Richard Earnshaw  <rearnsha@arm.com>
35462         * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
35464 2014-01-06  Martin Jambor  <mjambor@suse.cz>
35466         PR ipa/59008
35467         * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
35468         to int.
35469         * ipa-prop.c (ipa_print_node_params): Fix indentation.
35471 2014-01-06  Eric Botcazou  <ebotcazou@adacore.com>
35473         PR debug/59350
35474         PR debug/59510
35475         * var-tracking.c (add_stores): Preserve the value of the source even if
35476         we don't record the store.
35478 2014-01-06  Terry Guo  <terry.guo@arm.com>
35480         * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
35482 2014-01-05  Iain Sandoe  <iain@codesourcery.com>
35484         PR bootstrap/59541
35485         * config/darwin.c (darwin_function_section): Adjust return values to
35486         correspond to optimisation changes made in r206070.
35488 2014-01-05  Uros Bizjak  <ubizjak@gmail.com>
35490         * config/i386/i386.c (ix86_data_alignment): Calculate max_align
35491         from prefetch_block tune setting.
35492         (nocona_cost): Correct size of prefetch block to 64.
35494 2014-01-04  Eric Botcazou  <ebotcazou@adacore.com>
35496         * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
35497         (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
35498         used to save the static chain register in the computation of the offset
35499         from which the FP registers need to be restored.
35501 2014-01-04  Jakub Jelinek  <jakub@redhat.com>
35503         PR tree-optimization/59519
35504         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
35505         ICE if get_current_def (current_new_name) is already non-NULL, as long
35506         as it is a phi result of some other phi in *new_exit_bb that has
35507         the same argument.
35509         * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
35510         or vmovdqu* for misaligned_operand.
35511         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
35512         <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
35513         * config/i386/i386.c (ix86_expand_special_args_builtin): Set
35514         aligned_mem for AVX512F masked aligned load and store builtins and for
35515         non-temporal moves.
35517 2014-01-03  Bingfeng Mei  <bmei@broadcom.com>
35519         PR tree-optimization/59651
35520         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
35521         Address range for negative step should be added by TYPE_SIZE_UNIT.
35523 2014-01-03  Andreas Schwab  <schwab@linux-m68k.org>
35525         * config/m68k/m68k.c (handle_move_double): Handle pushes with
35526         overlapping registers also for registers other than the stack pointer.
35528 2014-01-03  Marek Polacek  <polacek@redhat.com>
35530         PR other/59661
35531         * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
35532         __builtin_FILE.
35534 2014-01-03  Jakub Jelinek  <jakub@redhat.com>
35536         PR target/59625
35537         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
35538         asm goto as jump.
35540         * config/i386/i386.md (MODE_SIZE): New mode attribute.
35541         (push splitter): Use <P:MODE_SIZE> instead of
35542         GET_MODE_SIZE (<P:MODE>mode).
35543         (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
35544         (mov -1, reg peephole2): Likewise.
35545         * config/i386/sse.md (*mov<mode>_internal,
35546         <sse>_storeu<ssemodesuffix><avxsizesuffix>,
35547         <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
35548         *<code><mode>3, *andnot<mode>3<mask_name>,
35549         <mask_codefor><code><mode>3<mask_name>): Likewise.
35550         * config/i386/subst.md (mask_mode512bit_condition,
35551         sd_mask_mode512bit_condition): Likewise.
35553 2014-01-02  Xinliang David Li  <davidxl@google.com>
35555         PR tree-optimization/59303
35556         * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
35557         (dump_predicates): Better output format.
35558         (pred_equal_p): New function.
35559         (is_neq_relop_p): Ditto.
35560         (is_neq_zero_form_p): Ditto.
35561         (pred_expr_equal_p): Ditto.
35562         (pred_neg_p): Ditto.
35563         (simplify_pred): Ditto.
35564         (simplify_preds_2): Ditto.
35565         (simplify_preds_3): Ditto.
35566         (simplify_preds_4): Ditto.
35567         (simplify_preds): Ditto.
35568         (push_pred): Ditto.
35569         (push_to_worklist): Ditto.
35570         (get_pred_info_from_cmp): Ditto.
35571         (is_degenerated_phi): Ditto.
35572         (normalize_one_pred_1): Ditto.
35573         (normalize_one_pred): Ditto.
35574         (normalize_one_pred_chain): Ditto.
35575         (normalize_preds): Ditto.
35576         (normalize_cond_1): Remove function.
35577         (normalize_cond): Ditto.
35578         (is_gcond_subset_of): Ditto.
35579         (is_subset_of_any): Ditto.
35580         (is_or_set_subset_of): Ditto.
35581         (is_and_set_subset_of): Ditto.
35582         (is_norm_cond_subset_of): Ditto.
35583         (pred_chain_length_cmp): Ditto.
35584         (convert_control_dep_chain_into_preds): Type change.
35585         (find_predicates): Ditto.
35586         (find_def_preds): Ditto.
35587         (destroy_predicates_vecs): Ditto.
35588         (find_matching_predicates_in_rest_chains): Ditto.
35589         (use_pred_not_overlap_with_undef_path_pred): Ditto.
35590         (is_pred_expr_subset): Ditto.
35591         (is_pred_chain_subset_of): Ditto.
35592         (is_included_in): Ditto.
35593         (is_superset_of): Ditto.
35595 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
35597         Update copyright years.
35599 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
35601         * common/config/arc/arc-common.c, config/arc/arc-modes.def,
35602         config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
35603         config/arc/arc.md, config/arc/arc.opt,
35604         config/arm/arm_neon_builtins.def, config/arm/crypto.def,
35605         config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
35606         config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
35607         config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
35608         config/linux-protos.h, config/linux.c, config/winnt-c.c,
35609         diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
35610         vtable-verify.c, vtable-verify.h: Use the standard form for the
35611         copyright notice.
35613 2014-01-02  Tobias Burnus  <burnus@net-b.de>
35615         * gcc.c (process_command): Update copyright notice dates.
35616         * gcov-dump.c: Ditto.
35617         * gcov.c: Ditto.
35618         * doc/cpp.texi: Bump @copying's copyright year.
35619         * doc/cppinternals.texi: Ditto.
35620         * doc/gcc.texi: Ditto.
35621         * doc/gccint.texi: Ditto.
35622         * doc/gcov.texi: Ditto.
35623         * doc/install.texi: Ditto.
35624         * doc/invoke.texi: Ditto.
35626 2014-01-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
35628         * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
35630 2014-01-01  Jakub Jelinek  <jakub@redhat.com>
35632         * config/i386/sse.md (*mov<mode>_internal): Guard
35633         EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
35635         PR rtl-optimization/59647
35636         * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
35637         new_rtx into UNSIGNED_FLOAT rtxes.
35639 Copyright (C) 2014 Free Software Foundation, Inc.
35641 Copying and distribution of this file, with or without modification,
35642 are permitted in any medium without royalty provided the copyright
35643 notice and this notice are preserved.